mirror of
https://github.com/jzillmann/pdf-to-markdown.git
synced 2024-11-25 09:13:49 +01:00
19 lines
589 KiB
JavaScript
19 lines
589 KiB
JavaScript
|
webpackJsonp([1],{267:function(e,t,a){var r,i,n;(function(e,a){!function(e,s){"use strict";i=[t],r=s,n="function"==typeof r?r.apply(t,i):r,!(void 0!==n&&(a.exports=n))}(this,function(t){"use strict";var r=("undefined"!=typeof document&&document.currentScript?document.currentScript.src:null,{});(function(){!function(e,t){t(e.pdfjsCoreArithmeticDecoder={})}(this,function(e){var t=function(){function e(e,t,a){this.data=e,this.bp=t,this.dataEnd=a,this.chigh=e[t],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}var t=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];return e.prototype={byteIn:function(){var e=this.data,t=this.bp;if(255===e[t]){var a=e[t+1];a>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t)}else t++,this.clow+=t<this.dataEnd?e[t]<<8:65280,this.ct=8,this.bp=t;this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)},readBit:function(e,a){var r,i=e[a]>>1,n=1&e[a],s=t[i],o=s.qe,c=this.a-o;if(this.chigh<o)c<o?(c=o,r=n,i=s.nmps):(c=o,r=1^n,1===s.switchFlag&&(n=r),i=s.nlps);else{if(this.chigh-=o,0!==(32768&c))return this.a=c,n;c<o?(r=1^n,1===s.switchFlag&&(n=r),i=s.nlps):(r=n,i=s.nmps)}do 0===this.ct&&this.byteIn(),c<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--;while(0===(32768&c));return this.a=c,e[a]=i<<1|n,r}},e}();e.ArithmeticDecoder=t}),function(e,t){t(e.pdfjsCoreCharsets={})}(this,function(e){var t=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","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","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","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","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","period
|
|||
|
this.end=t,this.message="Missing data ["+e+", "+t+")"}return e.prototype=new Error,e.prototype.name="MissingDataException",e.constructor=e,e}(),le=function(){function e(e){this.message=e}return e.prototype=new Error,e.prototype.name="XRefParseException",e.constructor=e,e}(),he=/\x00/g,ue=function(){function e(e,t){this.buffer=e,this.byteLength=e.length,this.length=void 0===t?this.byteLength>>2:t,a(this.length)}function t(e){return{get:function(){var t=this.buffer,a=e<<2;return(t[a]|t[a+1]<<8|t[a+2]<<16|t[a+3]<<24)>>>0},set:function(t){var a=this.buffer,r=e<<2;a[r]=255&t,a[r+1]=t>>8&255,a[r+2]=t>>16&255,a[r+3]=t>>>24&255}}}function a(a){for(;r<a;)Object.defineProperty(e.prototype,r,t(r)),r++}e.prototype=Object.create(null);var r=0;return e}();t.Uint32ArrayView=ue;var fe=[1,0,0,1,0,0],de=function(){function e(){}var t=["rgb(",0,",",0,",",0,")"];e.makeCssRgb=function(e,a,r){return t[1]=e,t[3]=a,t[5]=r,t.join("")},e.transform=function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]},e.applyTransform=function(e,t){var a=e[0]*t[0]+e[1]*t[2]+t[4],r=e[0]*t[1]+e[1]*t[3]+t[5];return[a,r]},e.applyInverseTransform=function(e,t){var a=t[0]*t[3]-t[1]*t[2],r=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/a,i=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/a;return[r,i]},e.getAxialAlignedBoundingBox=function(t,a){var r=e.applyTransform(t,a),i=e.applyTransform(t.slice(2,4),a),n=e.applyTransform([t[0],t[3]],a),s=e.applyTransform([t[2],t[1]],a);return[Math.min(r[0],i[0],n[0],s[0]),Math.min(r[1],i[1],n[1],s[1]),Math.max(r[0],i[0],n[0],s[0]),Math.max(r[1],i[1],n[1],s[1])]},e.inverseTransform=function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]},e.apply3dTransform=function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]},e.singularValueDecompose2dScale=function(e){var t=[e[0],e[2],e[1],e[3]],a=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],n=e[2]*t[1]+e[3]*t[3],s=(a+n)/2,o=Math.sqrt((a+n)*(a+n)-4*(a*n-i*r))/2,c=s+o||1,l=s-o||1;return[Math.sqrt(c),Math.sqrt(l)]},e.normalizeRect=function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t},e.intersect=function(t,a){function r(e,t){return e-t}var i=[t[0],t[2],a[0],a[2]].sort(r),n=[t[1],t[3],a[1],a[3]].sort(r),s=[];return t=e.normalizeRect(t),a=e.normalizeRect(a),(i[0]===t[0]&&i[1]===a[0]||i[0]===a[0]&&i[1]===t[0])&&(s[0]=i[1],s[2]=i[2],(n[0]===t[1]&&n[1]===a[1]||n[0]===a[1]&&n[1]===t[1])&&(s[1]=n[1],s[3]=n[2],s))},e.sign=function(e){return e<0?-1:1};var a=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];return e.toRoman=function(e,t){l(E(e)&&e>0,"The number should be a positive integer.");for(var r,i=[];e>=1e3;)e-=1e3,i.push("M");r=e/100|0,e%=100,i.push(a[r]),r=e/10|0,e%=10,i.push(a[10+r]),i.push(a[20+e]);var n=i.join("");return t?n.toLowerCase():n},e.appendToArray=function(e,t){Array.prototype.push.apply(e,t)},e.prependToArray=function(e,t){Array.prototype.unshift.apply(e,t)},e.extendObj=function(e,t){for(var a in t)e[a]=t[a]},e.getInheritableProperty=function(e,t,a){for(;e&&!e.has(t);)e=e.get("Parent");return e?a?e.getArray(t):e.get(t):null},e.inherit=function(e,t,a){e.prototype=Object.create(t.prototype),e.prototype.constructor=e;for(var r in a)e.prototype[r]=a[r]},e.loadScript=function(e,t){var a=document.createElement("script"),r=!1;a.setAttribute("src",e),t&&(a.onload=function(){r||t(),r=!0}),document.getElementsByTagName("head")[0].appendChild(a)},e}(),ge=function(){function e(e,t,a,r,i,n){this.viewBox=e,this.scale=t,this.rotation=a,this.offsetX=r,this.offsetY=i;var s,o,c,l,h=(e[2]+e[0])/2,u=(e[3]+e[1])/2;switch(a%=360,a=a<0?a+360:a){case 180:s=-1,o=0,c=0,l=1;break;case 90:s=0,o=1,c=1,l=0;break;case 270:s=0,o=-1,c=-1,l=0;break;default:s=1,o=0,c=0,l=-1}n&&(c=-c,l=-l);var f,d,g,p;0===s?(f=Math.abs(u-e[1])*t+r,d=Math.abs(h-
|
|||
|
u&&(e.fontMatrix=u);var f=c.getByName("FontBBox");f&&(e.ascent=f[3],e.descent=f[1],e.ascentScaled=!0);var d,g;if(t.isCIDFont){for(var p=this.parseIndex(c.getByName("FDArray")).obj,m=0,b=p.count;m<b;++m){var v=p.get(m),y=this.createDict(A,this.parseDict(v),t.strings);this.parsePrivateDict(y),t.fdArray.push(y)}g=null,d=this.parseCharsets(c.getByName("charset"),h.count,t.strings,!0),t.fdSelect=this.parseFDSelect(c.getByName("FDSelect"),h.count)}else d=this.parseCharsets(c.getByName("charset"),h.count,t.strings,!1),g=this.parseEncoding(c.getByName("Encoding"),e,t.strings,d.charset);t.charset=d,t.encoding=g;var w=this.parseCharStrings(h,c.privateDict.subrsIndex,s.obj,t.fdSelect,t.fdArray);return t.charStrings=w.charStrings,t.seacs=w.seacs,t.widths=w.widths,t},parseHeader:function(){for(var e=this.bytes,t=e.length,a=0;a<t&&1!==e[a];)++a;a>=t?i("Invalid CFF header"):0!==a&&(n("cff data is shifted"),e=e.subarray(a),this.bytes=e);var r=e[0],s=e[1],o=e[2],c=e[3],l=new w(r,s,o,c);return{obj:l,endPos:o}},parseDict:function(e){function t(){var t=e[r++];return 30===t?a():28===t?(t=e[r++],t=(t<<24|e[r++]<<16)>>16):29===t?(t=e[r++],t=t<<8|e[r++],t=t<<8|e[r++],t=t<<8|e[r++]):t>=32&&t<=246?t-139:t>=247&&t<=250?256*(t-247)+e[r++]+108:t>=251&&t<=254?-(256*(t-251))-e[r++]-108:(o('CFFParser_parseDict: "'+t+'" is a reserved command.'),NaN)}function a(){for(var t="",a=15,i=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],n=e.length;r<n;){var s=e[r++],o=s>>4,c=15&s;if(o===a)break;if(t+=i[o],c===a)break;t+=i[c]}return parseFloat(t)}var r=0,i=[],n=[];r=0;for(var s=e.length;r<s;){var c=e[r];c<=21?(12===c&&(c=c<<8|e[++r]),n.push([c,i]),i=[],++r):i.push(t())}return n},parseIndex:function(e){var t,a,r=new x,i=this.bytes,n=i[e++]<<8|i[e++],s=[],o=e;if(0!==n){var c=i[e++],l=e+(n+1)*c-1;for(t=0,a=n+1;t<a;++t){for(var h=0,u=0;u<c;++u)h<<=8,h+=i[e++];s.push(l+h)}o=s[n]}for(t=0,a=s.length-1;t<a;++t){var f=s[t],d=s[t+1];r.add(i.subarray(f,d))}return{obj:r,endPos:o}},parseNameIndex:function(e){for(var t=[],a=0,r=e.count;a<r;++a){for(var i=e.get(a),n=Math.min(i.length,127),o=[],c=0;c<n;++c){var l=i[c];(0!==c||0!==l)&&(l<33||l>126||91===l||93===l||40===l||41===l||123===l||125===l||60===l||62===l||47===l||37===l||35===l)?o[c]=95:o[c]=l}t.push(s(o))}return t},parseStringIndex:function(e){for(var t=new C,a=0,r=e.count;a<r;++a){var i=e.get(a);t.add(s(i))}return t},createDict:function(e,t,a){for(var r=new e(a),i=0,n=t.length;i<n;++i){var s=t[i],o=s[0],c=s[1];r.setByKey(o,c)}return r},parseCharString:function(e,r,i,n){if(e.callDepth>b)return!1;for(var s=e.stackSize,c=e.stack,l=r.length,h=0;h<l;){var u=r[h++],f=null;if(12===u){var d=r[h++];0===d?(r[h-2]=139,r[h-1]=22,s=0):f=a[d]}else if(28===u)c[s]=(r[h]<<24|r[h+1]<<16)>>16,h+=2,s++;else if(14===u){if(s>=4&&(s-=4,this.seacAnalysisEnabled))return e.seac=c.slice(s,s+4),!1;f=t[u]}else if(u>=32&&u<=246)c[s]=u-139,s++;else if(u>=247&&u<=254)c[s]=u<251?(u-247<<8)+r[h]+108:-(u-251<<8)-r[h]-108,h++,s++;else if(255===u)c[s]=(r[h]<<24|r[h+1]<<16|r[h+2]<<8|r[h+3])/65536,h+=4,s++;else if(19===u||20===u)e.hints+=s>>1,h+=e.hints+7>>3,s%=2,f=t[u];else{if(10===u||29===u){var g;if(g=10===u?i:n,!g)return f=t[u],o("Missing subrsIndex for "+f.id),!1;var p=32768;g.count<1240?p=107:g.count<33900&&(p=1131);var m=c[--s]+p;if(m<0||m>=g.count)return f=t[u],o("Out of bounds subrIndex for "+f.id),!1;e.stackSize=s,e.callDepth++;var v=this.parseCharString(e,g.get(m),i,n);if(!v)return!1;e.callDepth--,s=e.stackSize;continue}if(11===u)return e.stackSize=s,!0;f=t[u]}if(f){if(f.stem&&(e.hints+=s>>1),"min"in f&&!e.undefStack&&s<f.min)return o("Not enough parameters for "+f.id+"; actual: "+s+", expected: "+f.min),!1;e.firstStackClearing&&f.stackClearing&&(e.firstStackClearing=!1,s-=f.min,s>=2&&f.stem?s%=2:s>1&&o("Found too many parameters for stack-clearing command"),s>0&&c[s-1]>=0&&(e.width=c[s-1])),"stackDelta"in f?("stackFn"in f&&f.stackFn(c,s),s+=f.stackDelta):f.stackClearing?s=0:f.resetStack?(s=0,e.undefStack=!1):f.undefStack&&(s=0,e.undefStack=!0,e.firstStackClearing=!1)}}return e.stackSize=s,!0},parseCharStrings:function(e,t,a,r,i)
|
|||
|
e.Ocircumflexacute=7888,e.Ocircumflexdotbelow=7896,e.Ocircumflexgrave=7890,e.Ocircumflexhookabove=7892,e.Ocircumflexsmall=63476,e.Ocircumflextilde=7894,e.Ocyrillic=1054,e.Odblacute=336,e.Odblgrave=524,e.Odieresis=214,e.Odieresiscyrillic=1254,e.Odieresissmall=63478,e.Odotbelow=7884,e.Ogoneksmall=63227,e.Ograve=210,e.Ogravesmall=63474,e.Oharmenian=1365,e.Ohm=8486,e.Ohookabove=7886,e.Ohorn=416,e.Ohornacute=7898,e.Ohorndotbelow=7906,e.Ohorngrave=7900,e.Ohornhookabove=7902,e.Ohorntilde=7904,e.Ohungarumlaut=336,e.Oi=418,e.Oinvertedbreve=526,e.Omacron=332,e.Omacronacute=7762,e.Omacrongrave=7760,e.Omega=8486,e.Omegacyrillic=1120,e.Omegagreek=937,e.Omegaroundcyrillic=1146,e.Omegatitlocyrillic=1148,e.Omegatonos=911,e.Omicron=927,e.Omicrontonos=908,e.Omonospace=65327,e.Oneroman=8544,e.Oogonek=490,e.Oogonekmacron=492,e.Oopen=390,e.Oslash=216,e.Oslashacute=510,e.Oslashsmall=63480,e.Osmall=63343,e.Ostrokeacute=510,e.Otcyrillic=1150,e.Otilde=213,e.Otildeacute=7756,e.Otildedieresis=7758,e.Otildesmall=63477,e.P=80,e.Pacute=7764,e.Pcircle=9413,e.Pdotaccent=7766,e.Pecyrillic=1055,e.Peharmenian=1354,e.Pemiddlehookcyrillic=1190,e.Phi=934,e.Phook=420,e.Pi=928,e.Piwrarmenian=1363,e.Pmonospace=65328,e.Psi=936,e.Psicyrillic=1136,e.Psmall=63344,e.Q=81,e.Qcircle=9414,e.Qmonospace=65329,e.Qsmall=63345,e.R=82,e.Raarmenian=1356,e.Racute=340,e.Rcaron=344,e.Rcedilla=342,e.Rcircle=9415,e.Rcommaaccent=342,e.Rdblgrave=528,e.Rdotaccent=7768,e.Rdotbelow=7770,e.Rdotbelowmacron=7772,e.Reharmenian=1360,e.Rfraktur=8476,e.Rho=929,e.Ringsmall=63228,e.Rinvertedbreve=530,e.Rlinebelow=7774,e.Rmonospace=65330,e.Rsmall=63346,e.Rsmallinverted=641,e.Rsmallinvertedsuperior=694,e.S=83,e.SF010000=9484,e.SF020000=9492,e.SF030000=9488,e.SF040000=9496,e.SF050000=9532,e.SF060000=9516,e.SF070000=9524,e.SF080000=9500,e.SF090000=9508,e.SF100000=9472,e.SF110000=9474,e.SF190000=9569,e.SF200000=9570,e.SF210000=9558,e.SF220000=9557,e.SF230000=9571,e.SF240000=9553,e.SF250000=9559,e.SF260000=9565,e.SF270000=9564,e.SF280000=9563,e.SF360000=9566,e.SF370000=9567,e.SF380000=9562,e.SF390000=9556,e.SF400000=9577,e.SF410000=9574,e.SF420000=9568,e.SF430000=9552,e.SF440000=9580,e.SF450000=9575,e.SF460000=9576,e.SF470000=9572,e.SF480000=9573,e.SF490000=9561,e.SF500000=9560,e.SF510000=9554,e.SF520000=9555,e.SF530000=9579,e.SF540000=9578,e.Sacute=346,e.Sacutedotaccent=7780,e.Sampigreek=992,e.Scaron=352,e.Scarondotaccent=7782,e.Scaronsmall=63229,e.Scedilla=350,e.Schwa=399,e.Schwacyrillic=1240,e.Schwadieresiscyrillic=1242,e.Scircle=9416,e.Scircumflex=348,e.Scommaaccent=536,e.Sdotaccent=7776,e.Sdotbelow=7778,e.Sdotbelowdotaccent=7784,e.Seharmenian=1357,e.Sevenroman=8550,e.Shaarmenian=1351,e.Shacyrillic=1064,e.Shchacyrillic=1065,e.Sheicoptic=994,e.Shhacyrillic=1210,e.Shimacoptic=1004,e.Sigma=931,e.Sixroman=8549,e.Smonospace=65331,e.Softsigncyrillic=1068,e.Ssmall=63347,e.Stigmagreek=986,e.T=84,e.Tau=932,e.Tbar=358,e.Tcaron=356,e.Tcedilla=354,e.Tcircle=9417,e.Tcircumflexbelow=7792,e.Tcommaaccent=354,e.Tdotaccent=7786,e.Tdotbelow=7788,e.Tecyrillic=1058,e.Tedescendercyrillic=1196,e.Tenroman=8553,e.Tetsecyrillic=1204,e.Theta=920,e.Thook=428,e.Thorn=222,e.Thornsmall=63486,e.Threeroman=8546,e.Tildesmall=63230,e.Tiwnarmenian=1359,e.Tlinebelow=7790,e.Tmonospace=65332,e.Toarmenian=1337,e.Tonefive=444,e.Tonesix=388,e.Tonetwo=423,e.Tretroflexhook=430,e.Tsecyrillic=1062,e.Tshecyrillic=1035,e.Tsmall=63348,e.Twelveroman=8555;e.Tworoman=8545;e.U=85,e.Uacute=218,e.Uacutesmall=63482,e.Ubreve=364,e.Ucaron=467,e.Ucircle=9418,e.Ucircumflex=219,e.Ucircumflexbelow=7798,e.Ucircumflexsmall=63483,e.Ucyrillic=1059,e.Udblacute=368,e.Udblgrave=532,e.Udieresis=220,e.Udieresisacute=471,e.Udieresisbelow=7794,e.Udieresiscaron=473,e.Udieresiscyrillic=1264,e.Udieresisgrave=475,e.Udieresismacron=469,e.Udieresissmall=63484,e.Udotbelow=7908,e.Ugrave=217,e.Ugravesmall=63481,e.Uhookabove=7910,e.Uhorn=431,e.Uhornacute=7912,e.Uhorndotbelow=7920,e.Uhorngrave=7914,e.Uhornhookabove=7916,e.Uhorntilde=7918,e.Uhungarumlaut=368,e.Uhungarumlautcyrillic=1266,e.Uinvertedbreve=534,e.Ukcyrillic=1144,e.Umacron=362,e.Umacroncyrillic=1262,e.Umacrondieresis
|
|||
|
e.hieuhparenkorean=12813,e.hihiragana=12402,e.hikatakana=12498,e.hikatakanahalfwidth=65419,e.hiriq=1460,e.hiriq14=1460,e.hiriq21=1460,e.hiriq2d=1460,e.hiriqhebrew=1460,e.hiriqnarrowhebrew=1460,e.hiriqquarterhebrew=1460,e.hiriqwidehebrew=1460,e.hlinebelow=7830,e.hmonospace=65352,e.hoarmenian=1392,e.hohipthai=3627,e.hohiragana=12411,e.hokatakana=12507,e.hokatakanahalfwidth=65422,e.holam=1465,e.holam19=1465,e.holam26=1465,e.holam32=1465,e.holamhebrew=1465,e.holamnarrowhebrew=1465,e.holamquarterhebrew=1465,e.holamwidehebrew=1465,e.honokhukthai=3630,e.hookabovecomb=777,e.hookcmb=777,e.hookpalatalizedbelowcmb=801,e.hookretroflexbelowcmb=802,e.hoonsquare=13122,e.horicoptic=1001,e.horizontalbar=8213,e.horncmb=795,e.hotsprings=9832,e.house=8962,e.hparen=9379,e.hsuperior=688,e.hturned=613,e.huhiragana=12405,e.huiitosquare=13107,e.hukatakana=12501,e.hukatakanahalfwidth=65420,e.hungarumlaut=733,e.hungarumlautcmb=779,e.hv=405,e.hyphen=45,e.hypheninferior=63205,e.hyphenmonospace=65293,e.hyphensmall=65123,e.hyphensuperior=63206,e.hyphentwo=8208,e.i=105,e.iacute=237,e.iacyrillic=1103,e.ibengali=2439,e.ibopomofo=12583,e.ibreve=301,e.icaron=464,e.icircle=9432,e.icircumflex=238,e.icyrillic=1110,e.idblgrave=521,e.ideographearthcircle=12943,e.ideographfirecircle=12939,e.ideographicallianceparen=12863,e.ideographiccallparen=12858,e.ideographiccentrecircle=12965,e.ideographicclose=12294,e.ideographiccomma=12289,e.ideographiccommaleft=65380,e.ideographiccongratulationparen=12855,e.ideographiccorrectcircle=12963,e.ideographicearthparen=12847,e.ideographicenterpriseparen=12861,e.ideographicexcellentcircle=12957,e.ideographicfestivalparen=12864,e.ideographicfinancialcircle=12950,e.ideographicfinancialparen=12854,e.ideographicfireparen=12843,e.ideographichaveparen=12850,e.ideographichighcircle=12964,e.ideographiciterationmark=12293,e.ideographiclaborcircle=12952,e.ideographiclaborparen=12856,e.ideographicleftcircle=12967,e.ideographiclowcircle=12966,e.ideographicmedicinecircle=12969,e.ideographicmetalparen=12846,e.ideographicmoonparen=12842,e.ideographicnameparen=12852,e.ideographicperiod=12290,e.ideographicprintcircle=12958,e.ideographicreachparen=12867,e.ideographicrepresentparen=12857,e.ideographicresourceparen=12862,e.ideographicrightcircle=12968,e.ideographicsecretcircle=12953,e.ideographicselfparen=12866,e.ideographicsocietyparen=12851,e.ideographicspace=12288,e.ideographicspecialparen=12853,e.ideographicstockparen=12849,e.ideographicstudyparen=12859,e.ideographicsunparen=12848,e.ideographicsuperviseparen=12860,e.ideographicwaterparen=12844,e.ideographicwoodparen=12845,e.ideographiczero=12295,e.ideographmetalcircle=12942,e.ideographmooncircle=12938,e.ideographnamecircle=12948,e.ideographsuncircle=12944,e.ideographwatercircle=12940,e.ideographwoodcircle=12941,e.ideva=2311,e.idieresis=239,e.idieresisacute=7727,e.idieresiscyrillic=1253,e.idotbelow=7883,e.iebrevecyrillic=1239,e.iecyrillic=1077,e.ieungacirclekorean=12917,e.ieungaparenkorean=12821,e.ieungcirclekorean=12903,e.ieungkorean=12615;e.ieungparenkorean=12807;e.igrave=236,e.igujarati=2695,e.igurmukhi=2567,e.ihiragana=12356,e.ihookabove=7881,e.iibengali=2440,e.iicyrillic=1080,e.iideva=2312,e.iigujarati=2696,e.iigurmukhi=2568,e.iimatragurmukhi=2624,e.iinvertedbreve=523,e.iishortcyrillic=1081,e.iivowelsignbengali=2496,e.iivowelsigndeva=2368,e.iivowelsigngujarati=2752,e.ij=307,e.ikatakana=12452,e.ikatakanahalfwidth=65394,e.ikorean=12643,e.ilde=732,e.iluyhebrew=1452,e.imacron=299,e.imacroncyrillic=1251,e.imageorapproximatelyequal=8787,e.imatragurmukhi=2623,e.imonospace=65353,e.increment=8710,e.infinity=8734,e.iniarmenian=1387,e.integral=8747,e.integralbottom=8993,e.integralbt=8993,e.integralex=63733,e.integraltop=8992,e.integraltp=8992,e.intersection=8745,e.intisquare=13061,e.invbullet=9688,e.invcircle=9689,e.invsmileface=9787,e.iocyrillic=1105,e.iogonek=303,e.iota=953,e.iotadieresis=970,e.iotadieresistonos=912,e.iotalatin=617,e.iotatonos=943,e.iparen=9380,e.irigurmukhi=2674,e.ismallhiragana=12355,e.ismallkatakana=12451,e.ismallkatakanahalfwidth=65384,e.issharbengali=2554,e.istroke=616,e.isuper
|
|||
|
e.thagurmukhi=2597,e.thalarabic=1584,e.thalfinalarabic=65196,e.thanthakhatlowleftthai=63640,e.thanthakhatlowrightthai=63639,e.thanthakhatthai=3660,e.thanthakhatupperleftthai=63638,e.theharabic=1579,e.thehfinalarabic=65178,e.thehinitialarabic=65179,e.thehmedialarabic=65180,e.thereexists=8707,e.therefore=8756,e.theta=952,e.theta1=977,e.thetasymbolgreek=977,e.thieuthacirclekorean=12921,e.thieuthaparenkorean=12825,e.thieuthcirclekorean=12907,e.thieuthkorean=12620,e.thieuthparenkorean=12811,e.thirteencircle=9324,e.thirteenparen=9344,e.thirteenperiod=9364,e.thonangmonthothai=3601,e.thook=429,e.thophuthaothai=3602,e.thorn=254,e.thothahanthai=3607,e.thothanthai=3600,e.thothongthai=3608,e.thothungthai=3606,e.thousandcyrillic=1154,e.thousandsseparatorarabic=1644,e.thousandsseparatorpersian=1644,e.three=51,e.threearabic=1635,e.threebengali=2537,e.threecircle=9314,e.threecircleinversesansserif=10124,e.threedeva=2409,e.threeeighths=8540,e.threegujarati=2793,e.threegurmukhi=2665,e.threehackarabic=1635,e.threehangzhou=12323,e.threeideographicparen=12834,e.threeinferior=8323,e.threemonospace=65299,e.threenumeratorbengali=2550,e.threeoldstyle=63283,e.threeparen=9334,e.threeperiod=9354,e.threepersian=1779,e.threequarters=190,e.threequartersemdash=63198,e.threeroman=8562,e.threesuperior=179,e.threethai=3667,e.thzsquare=13204,e.tihiragana=12385,e.tikatakana=12481,e.tikatakanahalfwidth=65409,e.tikeutacirclekorean=12912,e.tikeutaparenkorean=12816,e.tikeutcirclekorean=12898,e.tikeutkorean=12599,e.tikeutparenkorean=12802,e.tilde=732,e.tildebelowcmb=816,e.tildecmb=771,e.tildecomb=771,e.tildedoublecmb=864,e.tildeoperator=8764,e.tildeoverlaycmb=820,e.tildeverticalcmb=830,e.timescircle=8855,e.tipehahebrew=1430,e.tipehalefthebrew=1430,e.tippigurmukhi=2672,e.titlocyrilliccmb=1155,e.tiwnarmenian=1407,e.tlinebelow=7791,e.tmonospace=65364,e.toarmenian=1385,e.tohiragana=12392,e.tokatakana=12488,e.tokatakanahalfwidth=65412,e.tonebarextrahighmod=741,e.tonebarextralowmod=745,e.tonebarhighmod=742,e.tonebarlowmod=744,e.tonebarmidmod=743,e.tonefive=445,e.tonesix=389,e.tonetwo=424,e.tonos=900,e.tonsquare=13095,e.topatakthai=3599,e.tortoiseshellbracketleft=12308,e.tortoiseshellbracketleftsmall=65117,e.tortoiseshellbracketleftvertical=65081,e.tortoiseshellbracketright=12309,e.tortoiseshellbracketrightsmall=65118,e.tortoiseshellbracketrightvertical=65082,e.totaothai=3605,e.tpalatalhook=427,e.tparen=9391,e.trademark=8482,e.trademarksans=63722,e.trademarkserif=63195,e.tretroflexhook=648,e.triagdn=9660,e.triaglf=9668,e.triagrt=9658,e.triagup=9650,e.ts=678,e.tsadi=1510,e.tsadidagesh=64326,e.tsadidageshhebrew=64326,e.tsadihebrew=1510,e.tsecyrillic=1094,e.tsere=1461,e.tsere12=1461,e.tsere1e=1461,e.tsere2b=1461,e.tserehebrew=1461,e.tserenarrowhebrew=1461,e.tserequarterhebrew=1461,e.tserewidehebrew=1461,e.tshecyrillic=1115,e.tsuperior=63219,e.ttabengali=2463,e.ttadeva=2335,e.ttagujarati=2719,e.ttagurmukhi=2591,e.tteharabic=1657,e.ttehfinalarabic=64359,e.ttehinitialarabic=64360,e.ttehmedialarabic=64361,e.tthabengali=2464,e.tthadeva=2336,e.tthagujarati=2720,e.tthagurmukhi=2592,e.tturned=647,e.tuhiragana=12388,e.tukatakana=12484,e.tukatakanahalfwidth=65410,e.tusmallhiragana=12387,e.tusmallkatakana=12483,e.tusmallkatakanahalfwidth=65391,e.twelvecircle=9323,e.twelveparen=9343,e.twelveperiod=9363,e.twelveroman=8571,e.twentycircle=9331,e.twentyhangzhou=21316,e.twentyparen=9351,e.twentyperiod=9371,e.two=50,e.twoarabic=1634,e.twobengali=2536,e.twocircle=9313,e.twocircleinversesansserif=10123,e.twodeva=2408,e.twodotenleader=8229,e.twodotleader=8229,e.twodotleadervertical=65072,e.twogujarati=2792,e.twogurmukhi=2664,e.twohackarabic=1634,e.twohangzhou=12322,e.twoideographicparen=12833,e.twoinferior=8322,e.twomonospace=65298,e.twonumeratorbengali=2549,e.twooldstyle=63282,e.twoparen=9333,e.twoperiod=9353,e.twopersian=1778,e.tworoman=8561,e.twostroke=443,e.twosuperior=178;e.twothai=3666;e.twothirds=8532,e.u=117,e.uacute=250,e.ubar=649,e.ubengali=2441,e.ubopomofo=12584,e.ubreve=365,e.ucaron=468,e.ucircle=9444,e.ucircumflex=251,e.ucircumflexbelow=7799,e.ucyrillic=1091,e.udattadeva=2385,e.
|
|||
|
0!==(w|C|x|S|A|I|B)?(w*=T[P+1],C*=T[P+2],x*=T[P+3],S*=T[P+4],A*=T[P+5],I*=T[P+6],B*=T[P+7],i=p*k+128>>8,n=p*S+128>>8,s=C,o=I,c=m*(w-B)+128>>8,y=m*(w+B)+128>>8,b=x<<4,v=A<<4,i=i+n+1>>1,n=i-n,R=s*g+o*d+128>>8,s=s*d-o*g+128>>8,o=R,c=c+v+1>>1,v=c-v,y=y+b+1>>1,b=y-b,i=i+o+1>>1,o=i-o,n=n+s+1>>1,s=n-s,R=c*f+y*u+2048>>12,c=c*u-y*f+2048>>12,y=R,R=b*h+v*l+2048>>12,b=b*l-v*h+2048>>12,v=R,r[P]=i+y,r[P+7]=i-y,r[P+1]=n+v,r[P+6]=n-v,r[P+2]=s+b,r[P+5]=s-b,r[P+3]=o+c,r[P+4]=o-c):(R=p*k+512>>10,r[P]=R,r[P+1]=R,r[P+2]=R,r[P+3]=R,r[P+4]=R,r[P+5]=R,r[P+6]=R,r[P+7]=R);for(var E=0;E<8;++E)k=r[E],w=r[E+8],C=r[E+16],x=r[E+24],S=r[E+32],A=r[E+40],I=r[E+48],B=r[E+56],0!==(w|C|x|S|A|I|B)?(i=p*k+2048>>12,n=p*S+2048>>12,s=C,o=I,c=m*(w-B)+2048>>12,y=m*(w+B)+2048>>12,b=x,v=A,i=(i+n+1>>1)+4112,n=i-n,R=s*g+o*d+2048>>12,s=s*d-o*g+2048>>12,o=R,c=c+v+1>>1,v=c-v,y=y+b+1>>1,b=y-b,i=i+o+1>>1,o=i-o,n=n+s+1>>1,s=n-s,R=c*f+y*u+2048>>12,c=c*u-y*f+2048>>12,y=R,R=b*h+v*l+2048>>12,b=b*l-v*h+2048>>12,v=R,k=i+y,B=i-y,w=n+v,I=n-v,C=s+b,A=s-b,x=o+c,S=o-c,k=k<16?0:k>=4080?255:k>>4,w=w<16?0:w>=4080?255:w>>4,C=C<16?0:C>=4080?255:C>>4,x=x<16?0:x>=4080?255:x>>4,S=S<16?0:S>=4080?255:S>>4,A=A<16?0:A>=4080?255:A>>4,I=I<16?0:I>=4080?255:I>>4,B=B<16?0:B>=4080?255:B>>4,O[t+E]=k,O[t+E+8]=w,O[t+E+16]=C,O[t+E+24]=x,O[t+E+32]=S,O[t+E+40]=A,O[t+E+48]=I,O[t+E+56]=B):(R=p*k+8192>>14,R=R<-2040?0:R>=2024?255:R+2056>>4,O[t+E]=R,O[t+E+8]=R,O[t+E+16]=R,O[t+E+24]=R,O[t+E+32]=R,O[t+E+40]=R,O[t+E+48]=R,O[t+E+56]=R)}function s(e,t){for(var a=t.blocksPerLine,i=t.blocksPerColumn,s=new Int16Array(64),o=0;o<i;o++)for(var c=0;c<a;c++){var l=r(t,o,c);n(t,l,s)}return t.blockData}function o(e){return e<=0?0:e>=255?255:e}var c=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),l=4017,h=799,u=3406,f=2276,d=1567,g=3784,p=5793,m=2896;return e.prototype={parse:function(e){function r(){var t=e[u]<<8|e[u+1];return u+=2,t}function n(){var t=r(),a=e.subarray(u,u+t-2);return u+=a.length,a}function o(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),a=Math.ceil(e.scanLines/8/e.maxV),r=0;r<e.components.length;r++){j=e.components[r];var i=Math.ceil(Math.ceil(e.samplesPerLine/8)*j.h/e.maxH),n=Math.ceil(Math.ceil(e.scanLines/8)*j.v/e.maxV),s=t*j.h,o=a*j.v,c=64*o*(s+1);j.blockData=new Int16Array(c),j.blocksPerLine=i,j.blocksPerColumn=n}e.mcusPerLine=t,e.mcusPerColumn=a}var l,h,u=0,f=null,d=null,g=[],p=[],m=[],b=r();for(65496!==b&&a("JPEG error: SOI not found"),b=r();65497!==b;){var v,y,k;switch(b){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var w=n();65504===b&&74===w[0]&&70===w[1]&&73===w[2]&&70===w[3]&&0===w[4]&&(f={version:{major:w[5],minor:w[6]},densityUnits:w[7],xDensity:w[8]<<8|w[9],yDensity:w[10]<<8|w[11],thumbWidth:w[12],thumbHeight:w[13],thumbData:w.subarray(14,14+3*w[12]*w[13])}),65518===b&&65===w[0]&&100===w[1]&&111===w[2]&&98===w[3]&&101===w[4]&&(d={version:w[5]<<8|w[6],flags0:w[7]<<8|w[8],flags1:w[9]<<8|w[10],transformCode:w[11]});break;case 65499:for(var C,x=r(),S=x+u-2;u<S;){var A=e[u++],I=new Uint16Array(64);if(A>>4===0)for(y=0;y<64;y++)C=c[y],I[C]=e[u++];else if(A>>4===1)for(y=0;y<64;y++)C=c[y],I[C]=r();else a("JPEG error: DQT - invalid table spec");g[15&A]=I}break;case 65472:case 65473:case 65474:l&&a("JPEG error: Only single frame JPEGs supported"),r(),l={},l.extended=65473===b,l.progressive=65474===b,l.precision=e[u++],l.scanLines=r(),l.samplesPerLine=r(),l.components=[],l.componentIds={};var B,R=e[u++],T=0,O=0;for(v=0;v<R;v++){B=e[u];var P=e[u+1]>>4,E=15&e[u+1];T<P&&(T=P),O<E&&(O=E);var M=e[u+2];k=l.components.push({h:P,v:E,quantizationId:M,quantizationTable:null}),l.componentIds[B]=k-1,u+=3}l.maxH=T,l.maxV=O,o(l);break;case 65476:var L=r();for(v=2;v<L;){var D=e[u++],F=new Uint8Array(16),U=0;for(y=0;y<16;y++,u++)U+=F[y]=e[u];var q=new Uint8Array(U);for(y=0;y<U;y++,u++)q[y]=e[u];v+=17+U,(D>>4===0?m:p)[15&D]=t(F,q)
|
|||
|
},e.prototype.extend=function(e,t,a){var r=t-1,i=t+1,n=t+a-2,s=t+a;e[r--]=e[i++],e[s++]=e[n--],e[r--]=e[i++],e[s++]=e[n--],e[r--]=e[i++],e[s++]=e[n--],e[r]=e[i],e[s]=e[n]},e.prototype.iterate=function(e,t,a,r){var i,n,s,o,c,l,h=e.width,u=e.height,f=e.items,d=t.width,g=t.height,p=t.items;for(s=0,i=0;i<u;i++)for(o=2*i*d,n=0;n<h;n++,s++,o+=2)p[o]=f[s];f=e.items=null;var m=4,b=new Float32Array(d+2*m);if(1===d){if(0!==(1&a))for(l=0,s=0;l<g;l++,s+=d)p[s]*=.5}else for(l=0,s=0;l<g;l++,s+=d)b.set(p.subarray(s,s+d),m),this.extend(b,m,d),this.filter(b,m,d),p.set(b.subarray(m,m+d),s);var v=16,y=[];for(i=0;i<v;i++)y.push(new Float32Array(g+2*m));var k,w=0;if(e=m+g,1===g){if(0!==(1&r))for(c=0;c<d;c++)p[c]*=.5}else for(c=0;c<d;c++){if(0===w){for(v=Math.min(d-c,v),s=c,o=m;o<e;s+=d,o++)for(k=0;k<v;k++)y[k][o]=p[s+k];w=v}w--;var C=y[w];if(this.extend(C,m,g),this.filter(C,m,g),0===w)for(s=c-v+1,o=m;o<e;s+=d,o++)for(k=0;k<v;k++)p[s+k]=y[k][o]}return{width:d,height:g,items:p}},e}(),E=function(){function e(){P.call(this)}return e.prototype=Object.create(P.prototype),e.prototype.filter=function(e,t,a){var r=a>>1;t|=0;var i,n,s,o,c=-1.586134342059924,l=-.052980118572961,h=.882911075530934,u=.443506852043971,f=1.230174104914001,d=1/f;for(i=t-3,n=r+4;n--;i+=2)e[i]*=d;for(i=t-2,s=u*e[i-1],n=r+3;n--&&(o=u*e[i+1],e[i]=f*e[i]-s-o,n--);i+=2)i+=2,s=u*e[i+1],e[i]=f*e[i]-s-o;for(i=t-1,s=h*e[i-1],n=r+2;n--&&(o=h*e[i+1],e[i]-=s+o,n--);i+=2)i+=2,s=h*e[i+1],e[i]-=s+o;for(i=t,s=l*e[i-1],n=r+1;n--&&(o=l*e[i+1],e[i]-=s+o,n--);i+=2)i+=2,s=l*e[i+1],e[i]-=s+o;if(0!==r)for(i=t+1,s=c*e[i-1],n=r;n--&&(o=c*e[i+1],e[i]-=s+o,n--);i+=2)i+=2,s=c*e[i+1],e[i]-=s+o},e}(),M=function(){function e(){P.call(this)}return e.prototype=Object.create(P.prototype),e.prototype.filter=function(e,t,a){var r=a>>1;t|=0;var i,n;for(i=t,n=r+1;n--;i+=2)e[i]-=e[i-1]+e[i+1]+2>>2;for(i=t+1,n=r;n--;i+=2)e[i]+=e[i-1]+e[i+1]>>1},e}();return e}();e.JpxImage=h}),function(e,t){t(e.pdfjsCoreMetrics={},e.pdfjsSharedUtil)}(this,function(e,t){var a=t.getLookupTableFactory,r=a(function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=a(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,
|
|||
|
e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722;e.uring=556;e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-Italic"]=a(function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterlin
|
|||
|
e["⽑"]="毛",e["⽒"]="氏",e["⽓"]="气",e["⽔"]="水",e["⽕"]="火",e["⽖"]="爪",e["⽗"]="父",e["⽘"]="爻",e["⽙"]="爿",e["⽚"]="片",e["⽛"]="牙",e["⽜"]="牛",e["⽝"]="犬",e["⽞"]="玄",e["⽟"]="玉",e["⽠"]="瓜",e["⽡"]="瓦",e["⽢"]="甘",e["⽣"]="生",e["⽤"]="用",e["⽥"]="田",e["⽦"]="疋",e["⽧"]="疒",e["⽨"]="癶",e["⽩"]="白",e["⽪"]="皮",e["⽫"]="皿",e["⽬"]="目",e["⽭"]="矛",e["⽮"]="矢",e["⽯"]="石",e["⽰"]="示",e["⽱"]="禸",e["⽲"]="禾",e["⽳"]="穴",e["⽴"]="立",e["⽵"]="竹",e["⽶"]="米",e["⽷"]="糸",e["⽸"]="缶",e["⽹"]="网",e["⽺"]="羊",e["⽻"]="羽",e["⽼"]="老",e["⽽"]="而",e["⽾"]="耒",e["⽿"]="耳",e["⾀"]="聿",e["⾁"]="肉",e["⾂"]="臣",e["⾃"]="自",e["⾄"]="至",e["⾅"]="臼",e["⾆"]="舌",e["⾇"]="舛",e["⾈"]="舟",e["⾉"]="艮",e["⾊"]="色",e["⾋"]="艸",e["⾌"]="虍",e["⾍"]="虫",e["⾎"]="血",e["⾏"]="行",e["⾐"]="衣",e["⾑"]="襾",e["⾒"]="見",e["⾓"]="角",e["⾔"]="言",e["⾕"]="谷",e["⾖"]="豆",e["⾗"]="豕",e["⾘"]="豸",e["⾙"]="貝",e["⾚"]="赤",e["⾛"]="走",e["⾜"]="足",e["⾝"]="身",e["⾞"]="車",e["⾟"]="辛",e["⾠"]="辰",e["⾡"]="辵",e["⾢"]="邑",e["⾣"]="酉",e["⾤"]="釆",e["⾥"]="里",e["⾦"]="金",e["⾧"]="長",e["⾨"]="門",e["⾩"]="阜",e["⾪"]="隶",e["⾫"]="隹",e["⾬"]="雨",e["⾭"]="靑",e["⾮"]="非",e["⾯"]="面",e["⾰"]="革",e["⾱"]="韋",e["⾲"]="韭",e["⾳"]="音",e["⾴"]="頁",e["⾵"]="風",e["⾶"]="飛",e["⾷"]="食",e["⾸"]="首",e["⾹"]="香",e["⾺"]="馬",e["⾻"]="骨",e["⾼"]="高",e["⾽"]="髟",e["⾾"]="鬥",e["⾿"]="鬯",e["⿀"]="鬲",e["⿁"]="鬼",e["⿂"]="魚",e["⿃"]="鳥",e["⿄"]="鹵";e["⿅"]="鹿";e["⿆"]="麥",e["⿇"]="麻",e["⿈"]="黃",e["⿉"]="黍",e["⿊"]="黑",e["⿋"]="黹",e["⿌"]="黽",e["⿍"]="鼎",e["⿎"]="鼓",e["⿏"]="鼠",e["⿐"]="鼻",e["⿑"]="齊",e["⿒"]="齒",e["⿓"]="龍",e["⿔"]="龜",e["⿕"]="龠",e["〶"]="〒",e["〸"]="十",e["〹"]="卄",e["〺"]="卅",e["゛"]=" ゙",e["゜"]=" ゚",e["ㄱ"]="ᄀ",e["ㄲ"]="ᄁ",e["ㄳ"]="ᆪ",e["ㄴ"]="ᄂ",e["ㄵ"]="ᆬ",e["ㄶ"]="ᆭ",e["ㄷ"]="ᄃ",e["ㄸ"]="ᄄ",e["ㄹ"]="ᄅ",e["ㄺ"]="ᆰ",e["ㄻ"]="ᆱ",e["ㄼ"]="ᆲ",e["ㄽ"]="ᆳ",e["ㄾ"]="ᆴ",e["ㄿ"]="ᆵ",e["ㅀ"]="ᄚ",e["ㅁ"]="ᄆ",e["ㅂ"]="ᄇ",e["ㅃ"]="ᄈ",e["ㅄ"]="ᄡ",e["ㅅ"]="ᄉ",e["ㅆ"]="ᄊ",e["ㅇ"]="ᄋ",e["ㅈ"]="ᄌ",e["ㅉ"]="ᄍ",e["ㅊ"]="ᄎ",e["ㅋ"]="ᄏ",e["ㅌ"]="ᄐ",e["ㅍ"]="ᄑ",e["ㅎ"]="ᄒ",e["ㅏ"]="ᅡ",e["ㅐ"]="ᅢ",e["ㅑ"]="ᅣ",e["ㅒ"]="ᅤ",e["ㅓ"]="ᅥ",e["ㅔ"]="ᅦ",e["ㅕ"]="ᅧ",e["ㅖ"]="ᅨ",e["ㅗ"]="ᅩ",e["ㅘ"]="ᅪ",e["ㅙ"]="ᅫ",e["ㅚ"]="ᅬ",e["ㅛ"]="ᅭ",e["ㅜ"]="ᅮ",e["ㅝ"]="ᅯ",e["ㅞ"]="ᅰ",e["ㅟ"]="ᅱ",e["ㅠ"]="ᅲ",e["ㅡ"]="ᅳ",e["ㅢ"]="ᅴ",e["ㅣ"]="ᅵ",e["ㅤ"]="ᅠ",e["ㅥ"]="ᄔ",e["ㅦ"]="ᄕ",e["ㅧ"]="ᇇ",e["ㅨ"]="ᇈ",e["ㅩ"]="ᇌ",e["ㅪ"]="ᇎ",e["ㅫ"]="ᇓ",e["ㅬ"]="ᇗ",e["ㅭ"]="ᇙ",e["ㅮ"]="ᄜ",e["ㅯ"]="ᇝ",e["ㅰ"]="ᇟ",e["ㅱ"]="ᄝ",e["ㅲ"]="ᄞ",e["ㅳ"]="ᄠ",e["ㅴ"]="ᄢ",e["ㅵ"]="ᄣ",e["ㅶ"]="ᄧ",e["ㅷ"]="ᄩ",e["ㅸ"]="ᄫ",e["ㅹ"]="ᄬ",e["ㅺ"]="ᄭ",e["ㅻ"]="ᄮ",e["ㅼ"]="ᄯ",e["ㅽ"]="ᄲ",e["ㅾ"]="ᄶ",e["ㅿ"]="ᅀ",e["ㆀ"]="ᅇ",e["ㆁ"]="ᅌ",e["ㆂ"]="ᇱ",e["ㆃ"]="ᇲ",e["ㆄ"]="ᅗ",e["ㆅ"]="ᅘ",e["ㆆ"]="ᅙ",e["ㆇ"]="ᆄ",e["ㆈ"]="ᆅ",e["ㆉ"]="ᆈ",e["ㆊ"]="ᆑ",e["ㆋ"]="ᆒ",e["ㆌ"]="ᆔ",e["ㆍ"]="ᆞ",e["ㆎ"]="ᆡ",e["㈀"]="(ᄀ)",e["㈁"]="(ᄂ)",e["㈂"]="(ᄃ)",e["㈃"]="(ᄅ)",e["㈄"]="(ᄆ)",e["㈅"]="(ᄇ)",e["㈆"]="(ᄉ)",e["㈇"]="(ᄋ)",e["㈈"]="(ᄌ)",e["㈉"]="(ᄎ)",e["㈊"]="(ᄏ)",e["㈋"]="(ᄐ)",e["㈌"]="(ᄑ)",e["㈍"]="(ᄒ)",e["㈎"]="(가)",e["㈏"]="(나)",e["㈐"]="(다)",e["㈑"]="(라)",e["㈒"]="(마)",e["㈓"]="(바)",e["㈔"]="(사)",e["㈕"]="(아)",e["㈖"]="(자)",e["㈗"]="(차)",e["㈘"]="(카)",e["㈙"]="(타)",e["㈚"]="(파)",e["㈛"]="(하)",e["㈜"]="(주)",e["㈝"]="(오전)",e["㈞"]="(오후)",e["<EFBFBD><EFBFBD>
|
|||
|
return e.prototype=Object.create(C.prototype),e.prototype.readBlock=function(){for(;!this.eof;){var e=this.lookChar();this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}},e.prototype.addPixels=function(e,t){var a=this.codingLine,r=this.codingPos;e>a[r]&&(e>this.columns&&(c("row is wrong length"),this.err=!0,e=this.columns),1&r^t&&++r,a[r]=e),this.codingPos=r},e.prototype.addPixelsNeg=function(e,t){var a=this.codingLine,r=this.codingPos;if(e>a[r])e>this.columns&&(c("row is wrong length"),this.err=!0,e=this.columns),1&r^t&&++r,a[r]=e;else if(e<a[r]){for(e<0&&(c("invalid code"),this.err=!0,e=0);r>0&&e<a[r-1];)--r;a[r]=e}this.codingPos=r},e.prototype.lookChar=function(){var e,t,d,g,p=this.refLine,m=this.codingLine,b=this.columns;if(0===this.outputBits){if(this.eof)return null;this.err=!1;var v,y,k;if(this.nextLine2D){for(g=0;m[g]<b;++g)p[g]=m[g];for(p[g++]=b,p[g]=b,m[0]=0,this.codingPos=0,e=0,t=0;m[this.codingPos]<b;)switch(v=this.getTwoDimCode()){case r:this.addPixels(p[e+1],t),p[e+1]<b&&(e+=2);break;case i:if(v=y=0,t){do v+=k=this.getBlackCode();while(k>=64);do y+=k=this.getWhiteCode();while(k>=64)}else{do v+=k=this.getWhiteCode();while(k>=64);do y+=k=this.getBlackCode();while(k>=64)}for(this.addPixels(m[this.codingPos]+v,t),m[this.codingPos]<b&&this.addPixels(m[this.codingPos]+y,1^t);p[e]<=m[this.codingPos]&&p[e]<b;)e+=2;break;case u:if(this.addPixels(p[e]+3,t),t^=1,m[this.codingPos]<b)for(++e;p[e]<=m[this.codingPos]&&p[e]<b;)e+=2;break;case l:if(this.addPixels(p[e]+2,t),t^=1,m[this.codingPos]<b)for(++e;p[e]<=m[this.codingPos]&&p[e]<b;)e+=2;break;case s:if(this.addPixels(p[e]+1,t),t^=1,m[this.codingPos]<b)for(++e;p[e]<=m[this.codingPos]&&p[e]<b;)e+=2;break;case n:if(this.addPixels(p[e],t),t^=1,m[this.codingPos]<b)for(++e;p[e]<=m[this.codingPos]&&p[e]<b;)e+=2;break;case f:if(this.addPixelsNeg(p[e]-3,t),t^=1,m[this.codingPos]<b)for(e>0?--e:++e;p[e]<=m[this.codingPos]&&p[e]<b;)e+=2;break;case h:if(this.addPixelsNeg(p[e]-2,t),t^=1,m[this.codingPos]<b)for(e>0?--e:++e;p[e]<=m[this.codingPos]&&p[e]<b;)e+=2;break;case o:if(this.addPixelsNeg(p[e]-1,t),t^=1,m[this.codingPos]<b)for(e>0?--e:++e;p[e]<=m[this.codingPos]&&p[e]<b;)e+=2;break;case a:this.addPixels(b,0),this.eof=!0;break;default:c("bad 2d code"),this.addPixels(b,0),this.err=!0}}else for(m[0]=0,this.codingPos=0,t=0;m[this.codingPos]<b;){if(v=0,t){do v+=k=this.getBlackCode();while(k>=64)}else do v+=k=this.getWhiteCode();while(k>=64);this.addPixels(m[this.codingPos]+v,t),t^=1}var w=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(v=this.lookBits(12),this.eoline)for(;v!==a&&1!==v;)this.eatBits(1),v=this.lookBits(12);else for(;0===v;)this.eatBits(1),v=this.lookBits(12);1===v?(this.eatBits(12),w=!0):v===a&&(this.eof=!0)}else this.eof=!0;if(!this.eof&&this.encoding>0&&(this.nextLine2D=!this.lookBits(1),this.eatBits(1)),this.eoblock&&w&&this.byteAlign){if(v=this.lookBits(12),1===v){if(this.eatBits(12),this.encoding>0&&(this.lookBits(1),this.eatBits(1)),this.encoding>=0)for(g=0;g<4;++g)v=this.lookBits(12),1!==v&&c("bad rtc code: "+v),this.eatBits(12),this.encoding>0&&(this.lookBits(1),this.eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(v=this.lookBits(13),v===a)return this.eof=!0,null;if(v>>1===1)break;this.eatBits(1)}this.eatBits(12),this.encoding>0&&(this.eatBits(1),this.nextLine2D=!(1&v))}m[0]>0?this.outputBits=m[this.codingPos=0]:this.outputBits=m[this.codingPos=1],this.row++}var C;if(this.outputBits>=8)C=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&m[this.codingPos]<b&&(this.codingPos++,this.outputBits=m[this.codingPos]-m[this.codingPos-1]);else{d=8,C=0;do this.outputBits>d?(C<<=d,1&this.codingPos||(C|=255>>8-d),this.outputBits-=d,d=0):(C<<=this.outputBits,1&this.codingPos||(C|=255>>8-this.outputBits),d-=this.outputBits,this.outputBits=0,m[this.codingPos]<b?(this.codingPos++,this.outputBits=m[this.codingPos]-m[this.codingPos-1]):d>0&&(C<<=d,d=0));while(d)}return this.black&&(C^=255),C},e.prototype.findTableCode=function(e,t,r,i){for(var n=i||0,s=e;s<=t;++s){var o=this.lookBits(s);i
|
|||
|
var l=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]);return r.prototype={decryptBlock:function(e,t,a){var r,n=e.length,s=this.buffer,o=this.bufferPosition;if(a)this.iv=a;else{for(r=0;o<16&&r<n;++r,++o)s[o]=e[r];if(o<16)return this.bufferLength=o,new Uint8Array([]);this.iv=s,e=e.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=i,this.decryptBlock(e,t)},encrypt:function(e,t){var r,i,n,s=e.length,o=this.buffer,c=this.bufferPosition,l=[];for(t||(t=new Uint8Array(16)),r=0;r<s;++r)if(o[c]=e[r],++c,!(c<16)){for(i=0;i<16;++i)o[i]^=t[i];var h=a(o,this.key);this.iv=h,l.push(h),o=new Uint8Array(16),c=0}if(this.buffer=o,this.bufferLength=c,this.iv=t,0===l.length)return new Uint8Array([]);var u=16*l.length,f=new Uint8Array(u);for(r=0,i=0,n=l.length;r<n;++r,i+=16)f.set(l[r],i);return f}},r}(),I=function(){function e(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}function t(){}return t.prototype={checkOwnerPassword:function(t,a,r,i){var n=new Uint8Array(t.length+56);n.set(t,0),n.set(a,t.length),n.set(r,t.length+a.length);var s=k(n,0,n.length);return e(s,i)},checkUserPassword:function(t,a,r){var i=new Uint8Array(t.length+8);i.set(t,0),i.set(a,t.length);var n=k(i,0,i.length);return e(n,r)},getOwnerKey:function(e,t,a,r){var i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.se
|
|||
|
rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],callsubr:[10],flex:[12,35],drop:[12,18],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};return e.prototype={convert:function(e,a,r){for(var n,s,o,l=e.length,h=!1,u=0;u<l;u++){var f=e[u];if(f<32){switch(12===f&&(f=(f<<8)+e[++u]),f){case 1:if(!c){this.stack=[];break}h=this.executeCommand(2,t.hstem);break;case 3:if(!c){this.stack=[];break}h=this.executeCommand(2,t.vstem);break;case 4:if(this.flexing){if(this.stack.length<1){h=!0;break}var d=this.stack.pop();this.stack.push(0,d);break}h=this.executeCommand(1,t.vmoveto);break;case 5:h=this.executeCommand(2,t.rlineto);break;case 6:h=this.executeCommand(1,t.hlineto);break;case 7:h=this.executeCommand(1,t.vlineto);break;case 8:h=this.executeCommand(6,t.rrcurveto);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){h=!0;break}o=this.stack.pop(),h=this.convert(a[o],a,r);break;case 11:return h;case 13:if(this.stack.length<2){h=!0;break}n=this.stack.pop(),s=this.stack.pop(),this.lsb=s,this.width=n,this.stack.push(n,s),h=this.executeCommand(2,t.hmoveto);break;case 14:this.output.push(t.endchar[0]);break;case 21:if(this.flexing)break;h=this.executeCommand(2,t.rmoveto);break;case 22:if(this.flexing){this.stack.push(0);break}h=this.executeCommand(1,t.hmoveto);break;case 30:h=this.executeCommand(4,t.vhcurveto);break;case 31:h=this.executeCommand(4,t.hvcurveto);break;case 3072:this.stack=[];break;case 3073:if(!c){this.stack=[];break}h=this.executeCommand(2,t.vstem);break;case 3074:if(!c){this.stack=[];break}h=this.executeCommand(2,t.hstem);break;case 3078:r?(this.seac=this.stack.splice(-4,4),h=this.executeCommand(0,t.endchar)):h=this.executeCommand(4,t.endchar);break;case 3079:if(this.stack.length<4){h=!0;break}this.stack.pop();n=this.stack.pop();var g=this.stack.pop();s=this.stack.pop(),this.lsb=s,this.width=n,this.stack.push(n,s,g),h=this.executeCommand(3,t.rmoveto);break;case 3084:if(this.stack.length<2){h=!0;break}var p=this.stack.pop(),m=this.stack.pop();this.stack.push(m/p);break;case 3088:if(this.stack.length<2){h=!0;break}o=this.stack.pop();var b=this.stack.pop();if(0===o&&3===b){var v=this.stack.splice(this.stack.length-17,17);this.stack.push(v[2]+v[0],v[3]+v[1],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14]),h=this.executeCommand(13,t.flex,!0),this.flexing=!1,this.stack.push(v[15],v[16])}else 1===o&&0===b&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:i('Unknown type 1 charstring command of "'+f+'"')}if(h)break}else f<=246?f-=139:f=f<=250?256*(f-247)+e[++u]+108:f<=254?-(256*(f-251))-e[++u]-108:(255&e[++u])<<24|(255&e[++u])<<16|(255&e[++u])<<8|(255&e[++u])<<0,this.stack.push(f)}return h},executeCommand:function(e,t,a){var r=this.stack.length;if(e>r)return!0;for(var i=r-e,n=i;n<r;n++){var s=this.stack[n];s===(0|s)?this.output.push(28,s>>8&255,255&s):(s=65536*s|0,this.output.push(255,s>>24&255,s>>16&255,s>>8&255,255&s))}return this.output.push.apply(this.output,t),a?this.stack.splice(i,e):this.stack.length=0,!1}},e}(),h=function(){function e(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function t(e,t,a){if(a>=e.length)return new Uint8Array(0);var r,i,n=0|t,s=52845,o=22719;for(r=0;r<a;r++)n=(e[r]+n)*s+o&65535;var c=e.length-a,l=new Uint8Array(c);for(r=a,i=0;i<c;r++,i++){var h=e[r];l[i]=h^n>>8,n=(h+n)*s+o&65535}return l}function a(t,a,r){var i,n,s=0|a,o=52845,c=22719,l=t.length,h=l>>>1,u=new Uint8Array(h);for(i=0,n=0;i<l;i++){var f=t[i];if(e(f)){i++;for(var d;i<l&&!e(d=t[i]);)i++;if(i<l){var g=parseInt(String.fromCharCode(f,d),16);u[n++]=g^s>>8,s=(g+s)*o+c&65535}}}return Array.prototype.slice.call(u,r,n)}function r(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}function i(r,i,n){if(i){var o=r.getBytes(),c=!(e(o[0])&&e(o[1])&&e(o[2])&&e(o[3]));r=new s(c?t(o,h,4):a(o,h,4))}this.seacAnalysisEnabled=!!n,this.stream=r,this.nextChar()}var h=55665,u=4330;return i.prototype={readNumberArray:function(){this.getToken();for(var e=[];;){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e},readNumber:f
|
|||
|
yMax:0,yMin:0,ascent:0,descent:0};var r=0,n=0,s=0,o=0,c=null,l=0;if(t)for(var h in t){h|=0,(c>h||!c)&&(c=h),l<h&&(l=h);var u=G(h);u<32?r|=1<<u:u<64?n|=1<<u-32:u<96?s|=1<<u-64:u<123?o|=1<<u-96:k("Unicode ranges Bits > 123 are reserved for internal usage")}else c=0,l=255;var f=e.bbox||[0,0,0,0],d=a.unitsPerEm||1/(e.fontMatrix||m)[0],g=e.ascentScaled?1:d/oe,p=a.ascent||Math.round(g*(e.ascent||f[3])),b=a.descent||Math.round(g*(e.descent||f[1]));b>0&&e.descent>0&&f[1]<0&&(b=-b);var v=a.yMax||p,y=-a.yMin||-b;return"\0$ô\0\0\0»\0\0\0»\0\0ß\x001\0\0\0\0"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+B(r)+B(n)+B(s)+B(o)+"*21*"+i(e.italicAngle?1:0)+i(c||e.firstChar)+i(l||e.lastChar)+i(p)+i(b)+"\0d"+i(v)+i(y)+"\0\0\0\0\0\0\0\0"+i(e.xHeight)+i(e.capHeight)+i(0)+i(c||e.firstChar)+"\0"}function V(e){var t=Math.floor(e.italicAngle*Math.pow(2,16));return"\0\0\0"+B(t)+"\0\0\0\0"+B(e.fixedPitch)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function K(e,t){t||(t=[[],[]]);var a,r,n,s,o,c=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||"",t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],l=[];for(a=0,r=c.length;a<r;a++){o=t[1][a]||c[a];var h=[];for(n=0,s=o.length;n<s;n++)h.push(i(o.charCodeAt(n)));l.push(h.join(""))}var u=[c,l],f=["\0","\0"],d=["\0\0","\0"],g=["\0\0","\t"],p=c.length*f.length,m="\0\0"+i(p)+i(12*p+6),b=0;for(a=0,r=f.length;a<r;a++){var v=u[a];for(n=0,s=v.length;n<s;n++){o=v[n];var y=f[a]+d[a]+g[a]+i(n)+i(o.length)+i(b);m+=y,b+=o.length}}return m+=c.join("")+l.join("")}return e.getFontID=function(){var e=1;return function(){return String(e++)}}(),e.prototype={name:null,font:null,mimetype:null,encoding:null,get renderer(){var e=L.create(this,ce);return I(this,"renderer",e)},exportData:function(){var e={};for(var t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e},checkAndRepair:function(e,i,n){function s(e){var t=y(e.getBytes(4)),a=e.getInt32()>>>0,r=e.getInt32()>>>0,i=e.getInt32()>>>0,n=e.pos;e.pos=e.start?e.start:0,e.skip(r);var s=e.getBytes(i);return e.pos=n,"head"===t&&(s[8]=s[9]=s[10]=s[11]=0,s[17]|=32),{tag:t,checksum:a,length:i,offset:r,data:s}}function o(e){return{version:y(e.getBytes(4)),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function c(e,t,a,r){if(!e)return R("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var i,n=(t.start?t.start:0)+e.offset;t.pos=n;for(var s,o=(t.getUint16(),t.getUint16()),c=!1,l=0;l<o;l++){var h=t.getUint16(),u=t.getUint16(),f=t.getInt32()>>>0,d=!1;if(0===h&&0===u?d=!0:1===h&&0===u?d=!0:3!==h||1!==u||(a||!r)&&s?a&&3===h&&0===u&&(d=!0,c=!0):(d=!0,a||(c=!0)),d&&(s={platformId:h,encodingId:u,offset:f}),c)break}if(s&&(t.pos=n+s.offset),!s||t.peekByte()===-1)return R("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var g,p,m=t.getUint16(),b=(t.getUint16(),t.getUint16(),!1),v=[];if(0===m){for(g=0;g<256;g++){var y=t.getByte();y&&v.push({charCode:g,glyphId:y})}b=!0}else if(4===m){var k=t.getUint16()>>1;t.getBytes(6);var w,C=[];for(w=0;w<k;w++)C.push({end:t.getUint16()});for(t.getUint16(),w=0;w<k;w++)C[w].start=t.getUint16();for(w=0;w<k;w++)C[w].delta=t.getUint16();var x=0;for(w=0;w<k;w++){i=C[w];var S=t.getUint16();if(S){var A=(S>>1)-(k-w);i.offsetIndex=A,x=Math.max(x,A+i.end-i.start+1)}else i.offsetIndex=-1}var I=[];for(g=0;g<x;g++)I.push(t.getUint16());for(w=0;w<k;w++){i=C[w],n=i.start;var B=i.end,T=i.delta;for(A=i.offsetIndex,g=n;g<=B;g++)65535!==g&&(p=A<0?g:I[A+g-n],p=p+T&65535,0!==p&&v.push({charCode:g,glyphId:p}))}}else{if(6!==m)return R("cmap table has unsupported format: "+m),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var O=t.getUint16(),P=t.getUint16();for(g=0;g<P;g++){p=t.getUint16();var E=O+g;v.push({charCode:E,glyphId:p})}}for(v.sort(function(e,t){return e.charCode-t.charCode}),l=1;l<v.length;l++)v[l-1].charCode===v[l].charCode&&(v.splice(l,1),l--);return{platformId:s.platformId,encodingId:s.encodingId,mappings:v,h
|
|||
|
r=i.pop(),a=i.pop(),i.push(a%r);break;case"mul":r=i.pop(),a=i.pop(),i.push(a*r);break;case"ne":r=i.pop(),a=i.pop(),i.push(a!==r);break;case"neg":a=i.pop(),i.push(-a);break;case"not":a=i.pop(),c(a)?i.push(!a):i.push(~a);break;case"or":r=i.pop(),a=i.pop(),c(a)&&c(r)?i.push(a||r):i.push(a|r);break;case"pop":i.pop();break;case"roll":r=i.pop(),a=i.pop(),i.roll(a,r);break;case"round":a=i.pop(),i.push(Math.round(a));break;case"sin":a=i.pop(),i.push(Math.sin(a));break;case"sqrt":a=i.pop(),i.push(Math.sqrt(a));break;case"sub":r=i.pop(),a=i.pop(),i.push(a-r);break;case"true":i.push(!0);break;case"truncate":a=i.pop(),a=a<0?Math.ceil(a):Math.floor(a),i.push(a);break;case"xor":r=i.pop(),a=i.pop(),c(a)&&c(r)?i.push(a!==r):i.push(a^r);break;default:n("Unknown operator "+t)}else i.push(t);return i.stack}},e}(),m=function(){function e(e){this.type=e}function t(t,a,r){e.call(this,"args"),this.index=t,this.min=a,this.max=r}function a(t){e.call(this,"literal"),this.number=t,this.min=t,this.max=t}function r(t,a,r,i,n){e.call(this,"binary"),this.op=t,this.arg1=a,this.arg2=r,this.min=i,this.max=n}function i(t,a){e.call(this,"max"),this.arg=t,this.min=t.min,this.max=a}function n(t,a,r){e.call(this,"var"),this.index=t,this.min=a,this.max=r}function s(t,a){e.call(this,"definition"),this.variable=t,this.arg=a}function o(){this.parts=[]}function c(e,t){return"literal"===t.type&&0===t.number?e:"literal"===e.type&&0===e.number?t:"literal"===t.type&&"literal"===e.type?new a(e.number+t.number):new r("+",e,t,e.min+t.min,e.max+t.max)}function l(e,t){if("literal"===t.type){if(0===t.number)return new a(0);if(1===t.number)return e;if("literal"===e.type)return new a(e.number*t.number)}if("literal"===e.type){if(0===e.number)return new a(0);if(1===e.number)return t}var i=Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),n=Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max);return new r("*",e,t,i,n)}function h(e,t){if("literal"===t.type){if(0===t.number)return e;if("literal"===e.type)return new a(e.number-t.number)}return"binary"===t.type&&"-"===t.op&&"literal"===e.type&&1===e.number&&"literal"===t.arg1.type&&1===t.arg1.number?t.arg2:new r("-",e,t,e.min-t.max,e.max-t.min)}function u(e,t){return e.min>=t?new a(t):e.max<=t?e:new i(e,t)}function f(){}return e.prototype.visit=function(e){throw new Error("abstract method")},t.prototype=Object.create(e.prototype),t.prototype.visit=function(e){e.visitArgument(this)},a.prototype=Object.create(e.prototype),a.prototype.visit=function(e){e.visitLiteral(this)},r.prototype=Object.create(e.prototype),r.prototype.visit=function(e){e.visitBinaryOperation(this)},i.prototype=Object.create(e.prototype),i.prototype.visit=function(e){e.visitMin(this)},n.prototype=Object.create(e.prototype),n.prototype.visit=function(e){e.visitVariable(this)},s.prototype=Object.create(e.prototype),s.prototype.visit=function(e){e.visitVariableDefinition(this)},o.prototype={visitArgument:function(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")},visitVariable:function(e){this.parts.push("v",e.index)},visitLiteral:function(e){this.parts.push(e.number)},visitBinaryOperation:function(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")},visitVariableDefinition:function(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")},visitMin:function(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")},toString:function(){return this.parts.join("")}},f.prototype={compile:function(e,r,i){var f,d,g,p,m,b,v,y,k,w,C=[],x=[],S=r.length>>1,A=i.length>>1,I=0;for(f=0;f<S;f++)C.push(new t(f,r[2*f],r[2*f+1]));for(f=0,d=e.length;f<d;f++)if(w=e[f],"number"!=typeof w)switch(w){case"add":if(C.length<2)return null;b=C.pop(),m=C.pop(),C.push(c(m,b));break;case"cvr":if(C.length<1)return null;break;case"mul":if(C.length<2)return null;b=C.pop(),m=C.pop(),C.push(l(m,b));break;case"sub":if(C.length<2)return null;b=C.pop(),m=C.pop(),C.push(h(m,b));break;case"exch":if(C.length<2)retu
|
|||
|
if(s&&s.has("Dests")?a=s.getRaw("Dests"):this.catDict.has("Dests")&&(r=this.catDict.get("Dests")),r){var o=r.get(e);o&&(n=t(o))}if(a){var c=new z(a,i);n=t(c.get(e))}return n},get pageLabels(){var e=null;try{e=this.readPageLabels()}catch(e){if(e instanceof c)throw e;C("Unable to read page labels.")}return y(this,"pageLabels",e)},readPageLabels:function(){var e=this.catDict.getRaw("PageLabels");if(!e)return null;for(var t=new Array(this.numPages),a=null,r="",i=new H(e,this.xref),n=i.getAll(),s="",o=1,c=0,l=this.numPages;c<l;c++){if(c in n){var u=n[c];h(O(u),"The PageLabel is not a dictionary.");var f=u.get("Type");h(!f||R(f,"PageLabel"),"Invalid type in PageLabel dictionary.");var d=u.get("S");h(!d||R(d),"Invalid style in PageLabel dictionary."),a=d?d.name:null;var g=u.get("P");h(!g||v(g),"Invalid prefix in PageLabel dictionary."),r=g?k(g):"";var p=u.get("St");h(!p||b(p)&&p>=1,"Invalid start in PageLabel dictionary."),o=p||1}switch(a){case"D":s=o;break;case"R":case"r":s=S.toRoman(o,"r"===a);break;case"A":case"a":for(var m=26,y=65,w=97,C="a"===a?w:y,x=o-1,A=String.fromCharCode(C+x%m),I=[],B=0,T=x/m|0;B<=T;B++)I.push(A);s=I.join("");break;default:h(!a,'Invalid style "'+a+'" in PageLabel dictionary.')}t[c]=r+s,s="",o++}return t},get attachments(){var e,t=this.xref,a=null,r=this.catDict.get("Names");if(r&&(e=r.getRaw("EmbeddedFiles")),e){var i=new z(e,t),n=i.getAll();for(var s in n){var o=new G(n[s],t);a||(a=Object.create(null)),a[k(s)]=o.serializable}}return y(this,"attachments",a)},get javaScript(){function e(e){var t=e.get("S");if(R(t,"JavaScript")){var a=e.get("JS");if(M(a))a=u(a.getBytes());else if(!v(a))return;r.push(k(a))}}var t=this.xref,a=this.catDict.get("Names"),r=[];if(a&&a.has("JavaScript")){var i=new z(a.getRaw("JavaScript"),t),n=i.getAll();for(var s in n){var o=n[s];O(o)&&e(o)}}var c=this.catDict.get("OpenAction");if(O(c,"Action")){var l=c.get("S");if(R(l,"Named")){var h=c.get("N");R(h,"Print")&&r.push("print({});")}else e(c)}return y(this,"javaScript",r)},cleanup:function(){var e=[];return this.fontCache.forEach(function(t){e.push(t)}),Promise.all(e).then(function(e){for(var t=0,a=e.length;t<a;t++){var r=e[t].dict;delete r.translated}this.fontCache.clear()}.bind(this))},getPage:function(e){return e in this.pagePromises||(this.pagePromises[e]=this.getPageDict(e).then(function(t){var a=t[0],r=t[1];return this.pageFactory.createPage(e,a,r,this.fontCache)}.bind(this))),this.pagePromises[e]},getPageDict:function(e){function t(){for(;r.length;){var o=r.pop();if(P(o))return void n.fetchAsync(o).then(function(n){return O(n,"Page")||O(n)&&!n.has("Kids")?void(e===i?a.resolve([n,o]):(i++,t())):(r.push(n),void t())},a.reject);h(O(o),"page dictionary kid reference points to wrong type of object");var c=o.get("Count");if(0===c&&(s=!0),i+c<=e)i+=c;else{var l=o.get("Kids");if(h(p(l),"page dictionary kids object is not an array"),s||c!==l.length)for(var u=l.length-1;u>=0;u--)r.push(l[u]);else r=[l[e-i]],i=e}}a.reject("Page index "+e+" not found.")}var a=f(),r=[this.catDict.getRaw("Pages")],i=0,n=this.xref,s=!1;return t(),a.promise},getPageIndex:function(e){function t(t){var a,i=0;return r.fetchAsync(t).then(function(r){if(E(t,e)&&!O(r,"Page")&&(!O(r)||r.has("Type")||!r.has("Contents")))throw new Error("The reference does not point to a /Page Dict.");return r?(h(O(r),"node must be a Dict."),a=r.getRaw("Parent"),r.getAsync("Parent")):null}).then(function(e){return e?(h(O(e),"parent must be a Dict."),e.getAsync("Kids")):null}).then(function(e){if(!e)return null;for(var n=[],s=!1,o=0;o<e.length;o++){var c=e[o];if(h(P(c),"kid must be a Ref."),c.num===t.num){s=!0;break}n.push(r.fetchAsync(c).then(function(e){if(e.has("Count")){var t=e.get("Count");i+=t}else i++}))}return s||d("kid ref not found in parents kids"),Promise.all(n).then(function(){return[i,a]})})}function a(e){return t(e).then(function(e){if(!e)return i;var t=e[0],r=e[1];return i+=t,a(r)})}var r=this.xref,i=0;return a(e)}},e.parseDestDictionary=function(e){function t(e){return 0===e.indexOf("www.")?"http://"+e:e}function a(e){try{return w(e)}catch(t){return e}}var r=e.de
|
|||
|
h.knockout=c.get("K")||!1,l=c.has("CS")?K.parse(c.get("CS"),this.xref,e):null),a&&a.backdrop&&(l=l||K.singletons.rgb,a.backdrop=l.getRgb(a.backdrop,0)),r.addOp(C.beginGroup,[h])}return r.addOp(C.paintFormXObjectBegin,[s,o]),this.getOperatorList(t,i,t.dict.get("Resources")||e,r,n).then(function(){r.addOp(C.paintFormXObjectEnd,[]),c&&r.addOp(C.endGroup,[h])})},buildPaintImageXObject:function(t,a,r,i,n,s){var o=this,c=a.dict,l=c.get("Width","W"),h=c.get("Height","H");if(!(l&&O(l)&&h&&O(h)))return void M("Image dimensions are missing, or not numbers.");var u=this.options.maxImageSize;if(u!==-1&&l*h>u)return void M("Image exceeded maximum allowed size and was removed.");var f,d,g=c.get("ImageMask","IM")||!1;if(g){var p=c.get("Width","W"),m=c.get("Height","H"),b=p+7>>3,v=a.getBytes(b*m),y=c.getArray("Decode","D"),k=!!y&&y[0]>0;return f=V.createMask(v,p,m,a instanceof _,k),f.cached=!0,d=[f],i.addOp(C.paintImageMaskXObject,d),void(n&&(s[n]={fn:C.paintImageMaskXObject,args:d}))}var w=c.get("SMask","SM")||!1,x=c.get("Mask")||!1,S=200;if(r&&!w&&!x&&!(a instanceof z)&&l+h<S){var A=new V(this.xref,t,a,r,null,null);return f=A.createImageData(!0),void i.addOp(C.paintInlineImageXObject,[f])}var I=this.uniquePrefix||"",B="img_"+I+ ++this.idCounters.obj;if(i.addDependency(B),d=[B,l,h],!w&&!x&&a instanceof z&&e.isSupported(a,this.xref,t))return i.addOp(C.paintJpegXObject,d),void this.handler.send("obj",[B,this.pageIndex,"JpegStream",a.getIR(this.options.forceDataSchema)]);var R=null;(a instanceof z||x instanceof z||w instanceof z)&&(R=new e(o.xref,t,o.handler,o.options.forceDataSchema)),V.buildImage(o.handler,o.xref,t,a,r,R).then(function(e){var t=e.createImageData(!1);o.handler.send("obj",[B,o.pageIndex,"Image",t],[t.data.buffer])}).then(void 0,function(e){M("Unable to decode image: "+e),o.handler.send("obj",[B,o.pageIndex,"Image",null])}),i.addOp(C.paintImageXObject,d),n&&(s[n]={fn:C.paintImageXObject,args:d})},handleSMask:function(e,t,a,r,i){var n=e.get("G"),s={subtype:e.get("S").name,backdrop:e.get("BC")},o=e.get("TR");if(ae(o)){for(var c=re.parse(this.xref,o),l=new Uint8Array(256),h=new Float32Array(1),u=0;u<256;u++)h[0]=u/255,c(h,0,h,0),l[u]=255*h[0]|0;s.transferMap=l}return this.buildFormXObject(t,n,s,a,r,i.state.clone())},handleTilingType:function(e,t,a,r,i,n,s){var o=new Ae,c=[i.get("Resources"),a],l=L.merge(this.xref,c);return this.getOperatorList(r,s,l,o).then(function(){n.addDependencies(o.dependencies),n.addOp(e,ne({fnArray:o.fnArray,argsArray:o.argsArray},i,t))})},handleSetFont:function(e,t,a,r,i,n){var s;t&&(t=t.slice(),s=t[0].name);var o=this;return this.loadFont(s,a,this.xref,e).then(function(t){return t.font.isType3Font?t.loadType3Data(o,e,r,i).then(function(){return t},function(e){return o.handler.send("UnsupportedFeature",{featureId:k.font}),new Se("g_font_error",new J("Type3 font load error: "+e),t.font)}):t}).then(function(e){return n.font=e.font,e.send(o.handler),e.loadedName})},handleText:function(e,t){var a=t.font,r=a.charsToGlyphs(e),i=!!(t.textRenderingMode&x.ADD_TO_PATH_FLAG);if(a.data&&(i||this.options.disableFontFace))for(var n=function(e){if(!a.renderer.hasBuiltPath(e)){var t=a.renderer.getPathJs(e);this.handler.send("commonobj",[a.loadedName+"_path_"+e,"FontPath",t])}}.bind(this),s=0,o=r.length;s<o;s++){var c=r[s];n(c.fontChar);var l=c.accent;l&&l.fontChar&&n(l.fontChar)}return r},setGState:function(e,t,a,r,i,n){for(var s=[],o=t.getKeys(),c=this,l=Promise.resolve(),h=0,u=o.length;h<u;h++){var f=o[h],d=t.get(f);switch(f){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":s.push([f,d]);break;case"Font":l=l.then(function(){return c.handleSetFont(e,null,d[0],a,r,n.state).then(function(e){a.addDependency(e),s.push([f,[e,d[1]]])})});break;case"BM":s.push([f,d]);break;case"SMask":if(q(d,"None")){s.push([f,!1]);break}U(d)?(l=l.then(function(t){return c.handleSMask(t,e,a,r,n)}.bind(this,d)),s.push([f,!0])):M("Unsupported SMask type");break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":
|
|||
|
id:C.setStrokeColorN,numArgs:33,variableArgs:!0},e.sc={id:C.setFillColor,numArgs:4,variableArgs:!0},e.scn={id:C.setFillColorN,numArgs:33,variableArgs:!0},e.G={id:C.setStrokeGray,numArgs:1,variableArgs:!1},e.g={id:C.setFillGray,numArgs:1,variableArgs:!1},e.RG={id:C.setStrokeRGBColor,numArgs:3,variableArgs:!1},e.rg={id:C.setFillRGBColor,numArgs:3,variableArgs:!1},e.K={id:C.setStrokeCMYKColor,numArgs:4,variableArgs:!1},e.k={id:C.setFillCMYKColor,numArgs:4,variableArgs:!1},e.sh={id:C.shadingFill,numArgs:1,variableArgs:!1},e.BI={id:C.beginInlineImage,numArgs:0,variableArgs:!1},e.ID={id:C.beginImageData,numArgs:0,variableArgs:!1},e.EI={id:C.endInlineImage,numArgs:1,variableArgs:!1},e.Do={id:C.paintXObject,numArgs:1,variableArgs:!1},e.MP={id:C.markPoint,numArgs:1,variableArgs:!1},e.DP={id:C.markPointProps,numArgs:2,variableArgs:!1},e.BMC={id:C.beginMarkedContent,numArgs:1,variableArgs:!1},e.BDC={id:C.beginMarkedContentProps,numArgs:2,variableArgs:!1},e.EMC={id:C.endMarkedContent,numArgs:0,variableArgs:!1},e.BX={id:C.beginCompat,numArgs:0,variableArgs:!1},e.EX={id:C.endCompat,numArgs:0,variableArgs:!1},e.BM=null,e.BD=null,e.true=null,e.fa=null,e.fal=null,e.fals=null,e.false=null,e.nu=null,e.nul=null,e.null=null});return e.prototype={get savedStatesDepth(){return this.stateManager.stateStack.length},read:function(e){for(var t=e.args;;){var a=this.parser.getObj();if(F(a)){var r=a.cmd,i=this.opMap[r];if(!i){M('Unknown command "'+r+'"');continue}var n=i.id,s=i.numArgs,o=null!==t?t.length:0;if(i.variableArgs)o>s&&R("Command "+n+": expected [0,"+s+"] args, but received "+o+" args.");else{if(o!==s){for(var c=this.nonProcessedArgs;o>s;)c.push(t.shift()),o--;for(;o<s&&0!==c.length;)null===t&&(t=[]),t.unshift(c.pop()),o++}if(o<s){M("Skipping command "+n+": expected "+s+" args, but received "+o+" args."),null!==t&&(t.length=0);continue}}return this.preprocessCommand(n,t),e.fn=n,e.args=t,!0}if(W(a))return!1;null!==a&&(null===t&&(t=[]),t.push(a),A(t.length<=33,"Too many arguments"))}},preprocessCommand:function(e,t){switch(0|e){case C.save:this.stateManager.save();break;case C.restore:this.stateManager.restore();break;case C.transform:this.stateManager.transform(t)}}},e}(),Oe=function(){function e(e,t,a){for(var r=e,i=0,n=t.length-1;i<n;i++){var s=t[i];r=r[s]||(r[s]=[])}r[t[t.length-1]]=a}function t(e,t,a,r){for(var i=e+2,n=0;n<t;n++){var s=r[i+4*n],o=1===s.length&&s[0];if(!o||1!==o.width||1!==o.height||o.data.length&&(1!==o.data.length||0!==o.data[0]))break;a[i+4*n]=C.paintSolidColorImageMask}return t-n}function a(){}var r=[];return e(r,[C.save,C.transform,C.paintInlineImageXObject,C.restore],function(e){for(var t=10,a=200,r=1e3,i=1,n=e.fnArray,s=e.argsArray,o=e.iCurr,c=o-3,l=o-2,h=o-1,u=c+4,f=n.length;u+3<f&&n[u]===C.save&&n[u+1]===C.transform&&n[u+2]===C.paintInlineImageXObject&&n[u+3]===C.restore;)u+=4;var d=Math.min((u-c)/4,a);if(d<t)return u;var g,p=0,m=[],b=0,v=i,y=i;for(g=0;g<d;g++){var k=s[l+(g<<2)],x=s[h+(g<<2)][0];v+x.width>r&&(p=Math.max(p,v),y+=b+2*i,v=0,b=0),m.push({transform:k,x:v,y:y,w:x.width,h:x.height}),v+=x.width+2*i,b=Math.max(b,x.height)}var S=Math.max(p,v)+i,A=y+b+i,I=new Uint8Array(S*A*4),B=S<<2;for(g=0;g<d;g++){var R=s[h+(g<<2)][0].data,T=m[g].w<<2,O=0,P=m[g].x+m[g].y*S<<2;I.set(R.subarray(0,T),P-B);for(var E=0,M=m[g].h;E<M;E++)I.set(R.subarray(O,O+T),P),O+=T,P+=B;for(I.set(R.subarray(O-T,O),P);P>=0;)R[P-4]=R[P],R[P-3]=R[P+1],R[P-2]=R[P+2],R[P-1]=R[P+3],R[P+T]=R[P+T-4],R[P+T+1]=R[P+T-3],R[P+T+2]=R[P+T-2],R[P+T+3]=R[P+T-1],P-=B}return n.splice(c,4*d,C.paintInlineImageXObjectGroup),s.splice(c,4*d,[{width:S,height:A,kind:w.RGBA_32BPP,data:I},m]),c+1}),e(r,[C.save,C.transform,C.paintImageMaskXObject,C.restore],function(e){for(var a=10,r=100,i=1e3,n=e.fnArray,s=e.argsArray,o=e.iCurr,c=o-3,l=o-2,h=o-1,u=c+4,f=n.length;u+3<f&&n[u]===C.save&&n[u+1]===C.transform&&n[u+2]===C.paintImageMaskXObject&&n[u+3]===C.restore;)u+=4;var d=(u-c)/4;if(d=t(c,d,n,s),d<a)return u;var g,p,m,b=!1,v=s[h][0];if(0===s[l][1]&&0===s[l][2]){b=!0;var y=s[l][0],k=s[l][3];p=l+4;var w=h+4;for(g=1;g<d;g++,p+=4,w+=4)if(m=s[p],s[w][0]!==v||m[0]!==y||0!==m
|
|||
|
supportTransfers:r}):void e.send("test",!1)}}),e.on("configure",function(e){x(e.verbosity)}),e.on("GetDocRequest",function(e){return O.createDocumentHandler(e,t)})},createDocumentHandler:function(e,t){function a(){if(B)throw new Error("Worker was terminated")}function r(e){P.push(e)}function i(e){e.finish();var t=P.indexOf(e);P.splice(t,1)}function n(e){var t=y(),a=function(){var e=x.ensureDoc("numPages"),a=x.ensureDoc("fingerprint"),i=x.ensureXRef("encrypt");Promise.all([e,a,i]).then(function(e){var a={numPages:e[0],fingerprint:e[1],encrypted:!!e[2]};t.resolve(a)},r)},r=function(e){t.reject(e)};return x.ensureDoc("checkHeader",[]).then(function(){x.ensureDoc("parseStartXRef",[]).then(function(){x.ensureDoc("parse",[e]).then(a,r)},r)},r),t.promise}function s(e,t){var r,i=y(),n=e.source;if(n.data){try{r=new A(E,n.data,n.password,t,M),i.resolve(r)}catch(e){i.reject(e)}return i.promise}var s;try{n.chunkedViewerLoading?s=new T(n,D):(v(o,"pdfjs/core/network module is not loaded"),s=new o(e))}catch(e){return i.reject(e),i.promise}var c=s.getFullReader();c.headersReady.then(function(){if(c.isStreamingSupported&&c.isRangeSupported||(c.onProgress=function(e){D.send("DocProgress",{loaded:e.loaded,total:e.total})}),c.isRangeSupported){var e=n.disableAutoFetch||c.isStreamingSupported;r=new I(E,s,{msgHandler:D,url:n.url,password:n.password,length:c.contentLength,disableAutoFetch:e,rangeChunkSize:n.rangeChunkSize},t,M),i.resolve(r),O=null}}).catch(function(e){i.reject(e),O=null});var l=[],h=0,u=function(){var e=b(l);n.length&&e.length!==n.length&&C("reported HTTP length is different from actual");try{r=new A(E,e,n.password,t,M),i.resolve(r)}catch(e){i.reject(e)}l=[]},f=new Promise(function(e,t){var i=function(e){try{if(a(),e.done)return r||u(),void(O=null);var n=e.value;h+=m(n),c.isStreamingSupported||D.send("DocProgress",{loaded:h,total:Math.max(h,c.contentLength||0)}),r?r.sendProgressiveData(n):l.push(n),c.read().then(i,t)}catch(e){t(e)}};c.read().then(i,t)});return f.catch(function(e){i.reject(e),O=null}),O=function(){s.cancelAllRequests("abort")},i.promise}function k(e){function t(e){a(),D.send("GetDoc",{pdfInfo:e})}function o(e){if(e instanceof d){var t=new R("PasswordException: response "+e.code);r(t),D.sendWithPromise("PasswordRequest",e).then(function(e){i(t),x.updatePassword(e.password),c()}).catch(function(e){i(t),D.send("PasswordException",e)}.bind(null,e))}else e instanceof l?D.send("InvalidPDF",e):e instanceof u?D.send("MissingPDF",e):e instanceof f?D.send("UnexpectedResponse",e):D.send("UnknownError",new g(e.message,e.toString()))}function c(){a(),n(!1).then(t,function(e){return a(),e instanceof p?(x.requestLoadedStream(),void x.onLoadedStream().then(function(){a(),n(!0).then(t,o)})):void o(e)},o)}a();var h={url:void 0===e.cMapUrl?null:e.cMapUrl,packed:e.cMapPacked===!0},m={forceDataSchema:e.disableCreateObjectURL,maxImageSize:void 0===e.maxImageSize?-1:e.maxImageSize,disableFontFace:e.disableFontFace,cMapOptions:h};s(e,m).then(function(e){if(B)throw e.terminate(),new Error("Worker was terminated");x=e,D.send("PDFManagerReady",null),x.onLoadedStream().then(function(e){D.send("DataLoaded",{length:e.bytes.byteLength})})}).then(c,o)}var x,B=!1,O=null,P=[],E=e.docId,M=e.docBaseUrl,L=e.docId+"_worker",D=new h(L,E,t);return D.postMessageTransfers=e.postMessageTransfers,D.on("GetPage",function(e){return x.getPage(e.pageIndex).then(function(e){var t=x.ensure(e,"rotate"),a=x.ensure(e,"ref"),r=x.ensure(e,"userUnit"),i=x.ensure(e,"view");return Promise.all([t,a,r,i]).then(function(e){return{rotate:e[0],ref:e[1],userUnit:e[2],view:e[3]}})})}),D.on("GetPageIndex",function(e){var t=new S(e.ref.num,e.ref.gen),a=x.pdfDocument.catalog;return a.getPageIndex(t)}),D.on("GetDestinations",function(e){return x.ensureCatalog("destinations")}),D.on("GetDestination",function(e){return x.ensureCatalog("getDestination",[e.id])}),D.on("GetPageLabels",function(e){return x.ensureCatalog("pageLabels")}),D.on("GetAttachments",function(e){return x.ensureCatalog("attachments")}),D.on("GetJavaScript",function(e){return x.ensureCatalog("javaScript")}),D.on
|