@pdftron/pdfjs-express 8.7.4 → 8.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/core/22.chunk.js +7 -7
- package/public/core/23.chunk.js +7 -7
- package/public/core/AndroidContentPartRetriever.chunk.js +2 -2
- package/public/core/ArrayBufferPdfPartRetriever.chunk.js +1 -1
- package/public/core/AzurePartRetriever.chunk.js +2 -2
- package/public/core/ContentEdit.chunk.js +28 -26
- package/public/core/ExternalAnnotationMerger.chunk.js +13 -13
- package/public/core/ExternalPdfPartRetriever.chunk.js +6 -6
- package/public/core/HttpPartRetriever.chunk.js +12 -11
- package/public/core/IOSPartRetriever.chunk.js +2 -3
- package/public/core/LocalPartRetriever.chunk.js +4 -4
- package/public/core/LocalPdfPartRetriever.chunk.js +3 -3
- package/public/core/PDFInfoVersion1.chunk.js +16 -15
- package/public/core/SelectionInfoOld.chunk.js +14 -14
- package/public/core/StreamingPartRetriever.chunk.js +9 -9
- package/public/core/WebDBPartRetriever.chunk.js +2 -2
- package/public/core/WebViewerServerPartRetriever.chunk.js +41 -40
- package/public/core/WinRTPartRetriever.chunk.js +2 -2
- package/public/core/pdfjs/PDFJSDocumentType.js +1620 -1621
- package/public/core/pdfjs/pdf.worker.js +947 -937
- package/public/core/pdfjs/pikaday.chunk.js +32 -32
- package/public/core/pdfjs/vendors.pikaday.chunk.js +34 -33
- package/public/core/pikaday.chunk.js +34 -33
- package/public/core/vendors.ascii85.chunk.js +6 -6
- package/public/core/vendors.ascii85.quill.chunk.js +34 -31
- package/public/core/vendors.pako.chunk.js +80 -76
- package/public/core/vendors.quill.chunk.js +421 -409
- package/public/core/webviewer-core.min.js +2811 -2708
- package/public/ui/style.css +1 -1
- package/public/ui/style.css.map +1 -1
- package/public/ui/webviewer-ui.min.js +6 -6
- package/public/ui/webviewer-ui.min.js.map +1 -1
- package/webviewer.min.js +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
|
-
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[20],{447:function(
|
|
3
|
-
function(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
0;if(
|
|
7
|
-
5-da;for(
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[20],{447:function(Ba,ua,r){(function(pa){function ka(b){this.Pf=b=b||{};if(Array.isArray(b.table)){var h=[];b.table.forEach(function(n,ba){h[n.charCodeAt(0)]=ba});b.K9=b.table;b.U6=h}}var ma=pa.from||function(){switch(arguments.length){case 1:return new pa(arguments[0]);case 2:return new pa(arguments[0],arguments[1]);case 3:return new pa(arguments[0],arguments[1],arguments[2]);default:throw new Exception("unexpected call.");}},fa=
|
|
3
|
+
pa.allocUnsafe||function(b){return new pa(b)},ea=function(){return"undefined"===typeof Uint8Array?function(b){return Array(b)}:function(b){return new Uint8Array(b)}}(),z=String.fromCharCode(0),x=z+z+z+z,y=ma("<~").Ox(0),f=ma("~>").Ox(0),e=function(){var b=Array(85),h;for(h=0;85>h;h++)b[h]=String.fromCharCode(33+h);return b}(),a=function(){var b=Array(256),h;for(h=0;85>h;h++)b[33+h]=h;return b}();z=Ba.exports=new ka;ka.prototype.encode=function(b,h){var n=ea(5),ba=b,w=this.Pf,da,ja;"string"===typeof ba?
|
|
4
|
+
ba=ma(ba,"binary"):ba instanceof pa||(ba=ma(ba));h=h||{};if(Array.isArray(h)){b=h;var aa=w.vB||!1;var ca=w.vJ||!1}else b=h.table||w.K9||e,aa=void 0===h.vB?w.vB||!1:!!h.vB,ca=void 0===h.vJ?w.vJ||!1:!!h.vJ;w=0;var ia=Math.ceil(5*ba.length/4)+4+(aa?4:0);h=fa(ia);aa&&(w+=h.write("<~",w));var ha=da=ja=0;for(ia=ba.length;ha<ia;ha++){var la=ba.rL(ha);ja*=256;ja+=la;da++;if(!(da%4)){if(ca&&538976288===ja)w+=h.write("y",w);else if(ja){for(da=4;0<=da;da--)la=ja%85,n[da]=la,ja=(ja-la)/85;for(da=0;5>da;da++)w+=
|
|
5
|
+
h.write(b[n[da]],w)}else w+=h.write("z",w);da=ja=0}}if(da)if(ja){ba=4-da;for(ha=4-da;0<ha;ha--)ja*=256;for(da=4;0<=da;da--)la=ja%85,n[da]=la,ja=(ja-la)/85;for(da=0;5>da;da++)w+=h.write(b[n[da]],w);w-=ba}else for(ha=0;ha<da+1;ha++)w+=h.write(b[0],w);aa&&(w+=h.write("~>",w));return h.slice(0,w)};ka.prototype.decode=function(b,h){var n=this.Pf,ba=!0,w=!0,da,ja,aa;h=h||n.U6||a;if(!Array.isArray(h)&&(h=h.table||h,!Array.isArray(h))){var ca=[];Object.keys(h).forEach(function(na){ca[na.charCodeAt(0)]=h[na]});
|
|
6
|
+
h=ca}ba=!h[122];w=!h[121];b instanceof pa||(b=ma(b));ca=0;if(ba||w){var ia=0;for(aa=b.length;ia<aa;ia++){var ha=b.rL(ia);ba&&122===ha&&ca++;w&&121===ha&&ca++}}var la=0;aa=Math.ceil(4*b.length/5)+4*ca+5;n=fa(aa);if(4<=b.length&&b.Ox(0)===y){for(ia=b.length-2;2<ia&&b.Ox(ia)!==f;ia--);if(2>=ia)throw Error("Invalid ascii85 string delimiter pair.");b=b.slice(2,ia)}ia=da=ja=0;for(aa=b.length;ia<aa;ia++)ha=b.rL(ia),ba&&122===ha?la+=n.write(x,la):w&&121===ha?la+=n.write(" ",la):void 0!==h[ha]&&(ja*=85,
|
|
7
|
+
ja+=h[ha],da++,da%5||(la=n.ima(ja,la),da=ja=0));if(da){b=5-da;for(ia=0;ia<b;ia++)ja*=85,ja+=84;ia=3;for(aa=b-1;ia>aa;ia--)la=n.jma(ja>>>8*ia&255,la)}return n.slice(0,la)};z.dna=new ka({table:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#".split("")});z.Bma=new ka({vB:!0});z.x_=ka}).call(this,r(455).Buffer)}}]);}).call(this || window)
|
|
@@ -1,32 +1,35 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
|
-
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[1],{455:function(
|
|
3
|
-
return
|
|
4
|
-
if(
|
|
5
|
-
if(0>
|
|
6
|
-
(
|
|
7
|
-
(ArrayBuffer.isView(
|
|
8
|
-
0>
|
|
9
|
-
|
|
10
|
-
h=+
|
|
11
|
-
n,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
this.
|
|
25
|
-
|
|
26
|
-
(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[1],{455:function(Ba,ua,r){(function(pa){function ka(){try{var ra=new Uint8Array(1);ra.__proto__={__proto__:Uint8Array.prototype,poa:function(){return 42}};return"function"===typeof ra.subarray&&0===ra.subarray(1,1).byteLength}catch(ta){return!1}}function ma(ra,ta){if((fa.Se?2147483647:1073741823)<ta)throw new RangeError("Invalid typed array length");fa.Se?(ra=new Uint8Array(ta),ra.__proto__=fa.prototype):(null===ra&&(ra=new fa(ta)),
|
|
3
|
+
ra.length=ta);return ra}function fa(ra,ta,va){if(!(fa.Se||this instanceof fa))return new fa(ra,ta,va);if("number"===typeof ra){if("string"===typeof ta)throw Error("If encoding is specified then the first argument must be a string");return x(this,ra)}return ea(this,ra,ta,va)}function ea(ra,ta,va,oa){if("number"===typeof ta)throw new TypeError('"value" argument must not be a number');if("undefined"!==typeof ArrayBuffer&&ta instanceof ArrayBuffer){ta.byteLength;if(0>va||ta.byteLength<va)throw new RangeError("'offset' is out of bounds");
|
|
4
|
+
if(ta.byteLength<va+(oa||0))throw new RangeError("'length' is out of bounds");ta=void 0===va&&void 0===oa?new Uint8Array(ta):void 0===oa?new Uint8Array(ta,va):new Uint8Array(ta,va,oa);fa.Se?(ra=ta,ra.__proto__=fa.prototype):ra=y(ra,ta);ta=ra}else if("string"===typeof ta){oa=ra;ra=va;if("string"!==typeof ra||""===ra)ra="utf8";if(!fa.KU(ra))throw new TypeError('"encoding" must be a valid string encoding');va=a(ta,ra)|0;oa=ma(oa,va);ta=oa.write(ta,ra);ta!==va&&(oa=oa.slice(0,ta));ta=oa}else ta=f(ra,
|
|
5
|
+
ta);return ta}function z(ra){if("number"!==typeof ra)throw new TypeError('"size" argument must be a number');if(0>ra)throw new RangeError('"size" argument must not be negative');}function x(ra,ta){z(ta);ra=ma(ra,0>ta?0:e(ta)|0);if(!fa.Se)for(var va=0;va<ta;++va)ra[va]=0;return ra}function y(ra,ta){var va=0>ta.length?0:e(ta.length)|0;ra=ma(ra,va);for(var oa=0;oa<va;oa+=1)ra[oa]=ta[oa]&255;return ra}function f(ra,ta){if(fa.isBuffer(ta)){var va=e(ta.length)|0;ra=ma(ra,va);if(0===ra.length)return ra;
|
|
6
|
+
ta.copy(ra,0,0,va);return ra}if(ta){if("undefined"!==typeof ArrayBuffer&&ta.buffer instanceof ArrayBuffer||"length"in ta)return(va="number"!==typeof ta.length)||(va=ta.length,va=va!==va),va?ma(ra,0):y(ra,ta);if("Buffer"===ta.type&&la(ta.data))return y(ra,ta.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");}function e(ra){if(ra>=(fa.Se?2147483647:1073741823))throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+
|
|
7
|
+
(fa.Se?2147483647:1073741823).toString(16)+" bytes");return ra|0}function a(ra,ta){if(fa.isBuffer(ra))return ra.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(ra)||ra instanceof ArrayBuffer))return ra.byteLength;"string"!==typeof ra&&(ra=""+ra);var va=ra.length;if(0===va)return 0;for(var oa=!1;;)switch(ta){case "ascii":case "latin1":case "binary":return va;case "utf8":case "utf-8":case void 0:return ja(ra).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2*
|
|
8
|
+
va;case "hex":return va>>>1;case "base64":return ca(ra).length;default:if(oa)return ja(ra).length;ta=(""+ta).toLowerCase();oa=!0}}function b(ra,ta,va){var oa=!1;if(void 0===ta||0>ta)ta=0;if(ta>this.length)return"";if(void 0===va||va>this.length)va=this.length;if(0>=va)return"";va>>>=0;ta>>>=0;if(va<=ta)return"";for(ra||(ra="utf8");;)switch(ra){case "hex":ra=ta;ta=va;va=this.length;if(!ra||0>ra)ra=0;if(!ta||0>ta||ta>va)ta=va;oa="";for(va=ra;va<ta;++va)ra=oa,oa=this[va],oa=16>oa?"0"+oa.toString(16):
|
|
9
|
+
oa.toString(16),oa=ra+oa;return oa;case "utf8":case "utf-8":return ba(this,ta,va);case "ascii":ra="";for(va=Math.min(this.length,va);ta<va;++ta)ra+=String.fromCharCode(this[ta]&127);return ra;case "latin1":case "binary":ra="";for(va=Math.min(this.length,va);ta<va;++ta)ra+=String.fromCharCode(this[ta]);return ra;case "base64":return 0===ta&&va===this.length?ha.FS(this):ha.FS(this.slice(ta,va));case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":ta=this.slice(ta,va);va="";for(ra=0;ra<ta.length;ra+=
|
|
10
|
+
2)va+=String.fromCharCode(ta[ra]+256*ta[ra+1]);return va;default:if(oa)throw new TypeError("Unknown encoding: "+ra);ra=(ra+"").toLowerCase();oa=!0}}function h(ra,ta,va,oa,wa){if(0===ra.length)return-1;"string"===typeof va?(oa=va,va=0):2147483647<va?va=2147483647:-2147483648>va&&(va=-2147483648);va=+va;isNaN(va)&&(va=wa?0:ra.length-1);0>va&&(va=ra.length+va);if(va>=ra.length){if(wa)return-1;va=ra.length-1}else if(0>va)if(wa)va=0;else return-1;"string"===typeof ta&&(ta=fa.from(ta,oa));if(fa.isBuffer(ta))return 0===
|
|
11
|
+
ta.length?-1:n(ra,ta,va,oa,wa);if("number"===typeof ta)return ta&=255,fa.Se&&"function"===typeof Uint8Array.prototype.indexOf?wa?Uint8Array.prototype.indexOf.call(ra,ta,va):Uint8Array.prototype.lastIndexOf.call(ra,ta,va):n(ra,[ta],va,oa,wa);throw new TypeError("val must be string, number or Buffer");}function n(ra,ta,va,oa,wa){function Da(Ka,Ra){return 1===Ha?Ka[Ra]:Ka.Ox(Ra*Ha)}var Ha=1,La=ra.length,Ca=ta.length;if(void 0!==oa&&(oa=String(oa).toLowerCase(),"ucs2"===oa||"ucs-2"===oa||"utf16le"===
|
|
12
|
+
oa||"utf-16le"===oa)){if(2>ra.length||2>ta.length)return-1;Ha=2;La/=2;Ca/=2;va/=2}if(wa)for(oa=-1;va<La;va++)if(Da(ra,va)===Da(ta,-1===oa?0:va-oa)){if(-1===oa&&(oa=va),va-oa+1===Ca)return oa*Ha}else-1!==oa&&(va-=va-oa),oa=-1;else for(va+Ca>La&&(va=La-Ca);0<=va;va--){La=!0;for(oa=0;oa<Ca;oa++)if(Da(ra,va+oa)!==Da(ta,oa)){La=!1;break}if(La)return va}return-1}function ba(ra,ta,va){va=Math.min(ra.length,va);for(var oa=[];ta<va;){var wa=ra[ta],Da=null,Ha=239<wa?4:223<wa?3:191<wa?2:1;if(ta+Ha<=va)switch(Ha){case 1:128>
|
|
13
|
+
wa&&(Da=wa);break;case 2:var La=ra[ta+1];128===(La&192)&&(wa=(wa&31)<<6|La&63,127<wa&&(Da=wa));break;case 3:La=ra[ta+1];var Ca=ra[ta+2];128===(La&192)&&128===(Ca&192)&&(wa=(wa&15)<<12|(La&63)<<6|Ca&63,2047<wa&&(55296>wa||57343<wa)&&(Da=wa));break;case 4:La=ra[ta+1];Ca=ra[ta+2];var Ka=ra[ta+3];128===(La&192)&&128===(Ca&192)&&128===(Ka&192)&&(wa=(wa&15)<<18|(La&63)<<12|(Ca&63)<<6|Ka&63,65535<wa&&1114112>wa&&(Da=wa))}null===Da?(Da=65533,Ha=1):65535<Da&&(Da-=65536,oa.push(Da>>>10&1023|55296),Da=56320|
|
|
14
|
+
Da&1023);oa.push(Da);ta+=Ha}ra=oa.length;if(ra<=na)oa=String.fromCharCode.apply(String,oa);else{va="";for(ta=0;ta<ra;)va+=String.fromCharCode.apply(String,oa.slice(ta,ta+=na));oa=va}return oa}function w(ra,ta,va){if(0!==ra%1||0>ra)throw new RangeError("offset is not uint");if(ra+ta>va)throw new RangeError("Trying to access beyond buffer length");}function da(ra,ta,va,oa,wa,Da){if(!fa.isBuffer(ra))throw new TypeError('"buffer" argument must be a Buffer instance');if(ta>wa||ta<Da)throw new RangeError('"value" argument is out of bounds');
|
|
15
|
+
if(va+oa>ra.length)throw new RangeError("Index out of range");}function ja(ra,ta){ta=ta||Infinity;for(var va,oa=ra.length,wa=null,Da=[],Ha=0;Ha<oa;++Ha){va=ra.charCodeAt(Ha);if(55295<va&&57344>va){if(!wa){if(56319<va){-1<(ta-=3)&&Da.push(239,191,189);continue}else if(Ha+1===oa){-1<(ta-=3)&&Da.push(239,191,189);continue}wa=va;continue}if(56320>va){-1<(ta-=3)&&Da.push(239,191,189);wa=va;continue}va=(wa-55296<<10|va-56320)+65536}else wa&&-1<(ta-=3)&&Da.push(239,191,189);wa=null;if(128>va){if(0>--ta)break;
|
|
16
|
+
Da.push(va)}else if(2048>va){if(0>(ta-=2))break;Da.push(va>>6|192,va&63|128)}else if(65536>va){if(0>(ta-=3))break;Da.push(va>>12|224,va>>6&63|128,va&63|128)}else if(1114112>va){if(0>(ta-=4))break;Da.push(va>>18|240,va>>12&63|128,va>>6&63|128,va&63|128)}else throw Error("Invalid code point");}return Da}function aa(ra){for(var ta=[],va=0;va<ra.length;++va)ta.push(ra.charCodeAt(va)&255);return ta}function ca(ra){var ta=ha,va=ta.pla;ra=(ra.trim?ra.trim():ra.replace(/^\s+|\s+$/g,"")).replace(qa,"");if(2>
|
|
17
|
+
ra.length)ra="";else for(;0!==ra.length%4;)ra+="=";return va.call(ta,ra)}function ia(ra,ta,va,oa){for(var wa=0;wa<oa&&!(wa+va>=ta.length||wa>=ra.length);++wa)ta[wa+va]=ra[wa];return wa}var ha=r(464);r(465);var la=r(466);ua.Buffer=fa;ua.Ema=function(ra){+ra!=ra&&(ra=0);return fa.zQ(+ra)};ua.i0=50;fa.Se=void 0!==pa.Se?pa.Se:ka();ua.Yoa=fa.Se?2147483647:1073741823;fa.from=function(ra,ta,va){return ea(null,ra,ta,va)};fa.Se&&(fa.prototype.__proto__=Uint8Array.prototype,fa.__proto__=Uint8Array,"undefined"!==
|
|
18
|
+
typeof Symbol&&Symbol.species&&fa[Symbol.species]===fa&&Object.defineProperty(fa,Symbol.species,{value:null,configurable:!0}));fa.zQ=function(ra){z(ra);return ma(null,ra)};fa.allocUnsafe=function(ra){return x(null,ra)};fa.isBuffer=function(ra){return!(null==ra||!ra.j3)};fa.compare=function(ra,ta){if(!fa.isBuffer(ra)||!fa.isBuffer(ta))throw new TypeError("Arguments must be Buffers");if(ra===ta)return 0;for(var va=ra.length,oa=ta.length,wa=0,Da=Math.min(va,oa);wa<Da;++wa)if(ra[wa]!==ta[wa]){va=ra[wa];
|
|
19
|
+
oa=ta[wa];break}return va<oa?-1:oa<va?1:0};fa.KU=function(ra){switch(String(ra).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "latin1":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;default:return!1}};fa.concat=function(ra,ta){if(!la(ra))throw new TypeError('"list" argument must be an Array of Buffers');if(0===ra.length)return fa.zQ(0);var va;if(void 0===ta)for(va=ta=0;va<ra.length;++va)ta+=ra[va].length;ta=fa.allocUnsafe(ta);var oa=
|
|
20
|
+
0;for(va=0;va<ra.length;++va){var wa=ra[va];if(!fa.isBuffer(wa))throw new TypeError('"list" argument must be an Array of Buffers');wa.copy(ta,oa);oa+=wa.length}return ta};fa.byteLength=a;fa.prototype.j3=!0;fa.prototype.toString=function(){var ra=this.length|0;return 0===ra?"":0===arguments.length?ba(this,0,ra):b.apply(this,arguments)};fa.prototype.hs=function(ra){if(!fa.isBuffer(ra))throw new TypeError("Argument must be a Buffer");return this===ra?!0:0===fa.compare(this,ra)};fa.prototype.inspect=
|
|
21
|
+
function(){var ra="",ta=ua.i0;0<this.length&&(ra=this.toString("hex",0,ta).match(/.{2}/g).join(" "),this.length>ta&&(ra+=" ... "));return"<Buffer "+ra+">"};fa.prototype.compare=function(ra,ta,va,oa,wa){if(!fa.isBuffer(ra))throw new TypeError("Argument must be a Buffer");void 0===ta&&(ta=0);void 0===va&&(va=ra?ra.length:0);void 0===oa&&(oa=0);void 0===wa&&(wa=this.length);if(0>ta||va>ra.length||0>oa||wa>this.length)throw new RangeError("out of range index");if(oa>=wa&&ta>=va)return 0;if(oa>=wa)return-1;
|
|
22
|
+
if(ta>=va)return 1;ta>>>=0;va>>>=0;oa>>>=0;wa>>>=0;if(this===ra)return 0;var Da=wa-oa,Ha=va-ta,La=Math.min(Da,Ha);oa=this.slice(oa,wa);ra=ra.slice(ta,va);for(ta=0;ta<La;++ta)if(oa[ta]!==ra[ta]){Da=oa[ta];Ha=ra[ta];break}return Da<Ha?-1:Ha<Da?1:0};fa.prototype.includes=function(ra,ta,va){return-1!==this.indexOf(ra,ta,va)};fa.prototype.indexOf=function(ra,ta,va){return h(this,ra,ta,va,!0)};fa.prototype.lastIndexOf=function(ra,ta,va){return h(this,ra,ta,va,!1)};fa.prototype.write=function(ra,ta,va,oa){if(void 0===
|
|
23
|
+
ta)oa="utf8",va=this.length,ta=0;else if(void 0===va&&"string"===typeof ta)oa=ta,va=this.length,ta=0;else if(isFinite(ta))ta|=0,isFinite(va)?(va|=0,void 0===oa&&(oa="utf8")):(oa=va,va=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var wa=this.length-ta;if(void 0===va||va>wa)va=wa;if(0<ra.length&&(0>va||0>ta)||ta>this.length)throw new RangeError("Attempt to write outside buffer bounds");oa||(oa="utf8");for(wa=!1;;)switch(oa){case "hex":ta=Number(ta)||
|
|
24
|
+
0;oa=this.length-ta;va?(va=Number(va),va>oa&&(va=oa)):va=oa;oa=ra.length;if(0!==oa%2)throw new TypeError("Invalid hex string");va>oa/2&&(va=oa/2);for(oa=0;oa<va;++oa){wa=parseInt(ra.substr(2*oa,2),16);if(isNaN(wa))break;this[ta+oa]=wa}return oa;case "utf8":case "utf-8":return ia(ja(ra,this.length-ta),this,ta,va);case "ascii":return ia(aa(ra),this,ta,va);case "latin1":case "binary":return ia(aa(ra),this,ta,va);case "base64":return ia(ca(ra),this,ta,va);case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":oa=
|
|
25
|
+
ra;wa=this.length-ta;for(var Da=[],Ha=0;Ha<oa.length&&!(0>(wa-=2));++Ha){var La=oa.charCodeAt(Ha);ra=La>>8;La%=256;Da.push(La);Da.push(ra)}return ia(Da,this,ta,va);default:if(wa)throw new TypeError("Unknown encoding: "+oa);oa=(""+oa).toLowerCase();wa=!0}};fa.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.hna||this,0)}};var na=4096;fa.prototype.slice=function(ra,ta){var va=this.length;ra=~~ra;ta=void 0===ta?va:~~ta;0>ra?(ra+=va,0>ra&&(ra=0)):ra>va&&(ra=va);0>
|
|
26
|
+
ta?(ta+=va,0>ta&&(ta=0)):ta>va&&(ta=va);ta<ra&&(ta=ra);if(fa.Se)ta=this.subarray(ra,ta),ta.__proto__=fa.prototype;else{va=ta-ra;ta=new fa(va,void 0);for(var oa=0;oa<va;++oa)ta[oa]=this[oa+ra]}return ta};fa.prototype.rL=function(ra){w(ra,1,this.length);return this[ra]};fa.prototype.Ox=function(ra){w(ra,2,this.length);return this[ra]<<8|this[ra+1]};fa.prototype.jma=function(ra,ta){ra=+ra;ta|=0;da(this,ra,ta,1,255,0);fa.Se||(ra=Math.floor(ra));this[ta]=ra&255;return ta+1};fa.prototype.ima=function(ra,
|
|
27
|
+
ta){ra=+ra;ta|=0;da(this,ra,ta,4,4294967295,0);if(fa.Se)this[ta]=ra>>>24,this[ta+1]=ra>>>16,this[ta+2]=ra>>>8,this[ta+3]=ra&255;else{var va=ta;0>ra&&(ra=4294967295+ra+1);for(var oa=0,wa=Math.min(this.length-va,4);oa<wa;++oa)this[va+oa]=ra>>>8*(3-oa)&255}return ta+4};fa.prototype.copy=function(ra,ta,va,oa){va||(va=0);oa||0===oa||(oa=this.length);ta>=ra.length&&(ta=ra.length);ta||(ta=0);0<oa&&oa<va&&(oa=va);if(oa===va||0===ra.length||0===this.length)return 0;if(0>ta)throw new RangeError("targetStart out of bounds");
|
|
28
|
+
if(0>va||va>=this.length)throw new RangeError("sourceStart out of bounds");if(0>oa)throw new RangeError("sourceEnd out of bounds");oa>this.length&&(oa=this.length);ra.length-ta<oa-va&&(oa=ra.length-ta+va);var wa=oa-va;if(this===ra&&va<ta&&ta<oa)for(oa=wa-1;0<=oa;--oa)ra[oa+ta]=this[oa+va];else if(1E3>wa||!fa.Se)for(oa=0;oa<wa;++oa)ra[oa+ta]=this[oa+va];else Uint8Array.prototype.set.call(ra,this.subarray(va,va+wa),ta);return wa};fa.prototype.fill=function(ra,ta,va,oa){if("string"===typeof ra){"string"===
|
|
29
|
+
typeof ta?(oa=ta,ta=0,va=this.length):"string"===typeof va&&(oa=va,va=this.length);if(1===ra.length){var wa=ra.charCodeAt(0);256>wa&&(ra=wa)}if(void 0!==oa&&"string"!==typeof oa)throw new TypeError("encoding must be a string");if("string"===typeof oa&&!fa.KU(oa))throw new TypeError("Unknown encoding: "+oa);}else"number"===typeof ra&&(ra&=255);if(0>ta||this.length<ta||this.length<va)throw new RangeError("Out of range index");if(va<=ta)return this;ta>>>=0;va=void 0===va?this.length:va>>>0;ra||(ra=0);
|
|
30
|
+
if("number"===typeof ra)for(oa=ta;oa<va;++oa)this[oa]=ra;else for(ra=fa.isBuffer(ra)?ra:ja((new fa(ra,oa)).toString()),wa=ra.length,oa=0;oa<va-ta;++oa)this[oa+ta]=ra[oa%wa];return this};var qa=/[^+\/0-9A-Za-z-_]/g}).call(this,r(178))},464:function(Ba,ua){function r(fa){var ea=fa.length;if(0<ea%4)throw Error("Invalid string. Length must be a multiple of 4");fa=fa.indexOf("=");-1===fa&&(fa=ea);return[fa,fa===ea?0:4-fa%4]}ua.byteLength=function(fa){fa=r(fa);var ea=fa[1];return 3*(fa[0]+ea)/4-ea};ua.pla=
|
|
31
|
+
function(fa){var ea=r(fa);var z=ea[0];ea=ea[1];var x=new ma(3*(z+ea)/4-ea),y=0,f=0<ea?z-4:z,e;for(e=0;e<f;e+=4)z=ka[fa.charCodeAt(e)]<<18|ka[fa.charCodeAt(e+1)]<<12|ka[fa.charCodeAt(e+2)]<<6|ka[fa.charCodeAt(e+3)],x[y++]=z>>16&255,x[y++]=z>>8&255,x[y++]=z&255;2===ea&&(z=ka[fa.charCodeAt(e)]<<2|ka[fa.charCodeAt(e+1)]>>4,x[y++]=z&255);1===ea&&(z=ka[fa.charCodeAt(e)]<<10|ka[fa.charCodeAt(e+1)]<<4|ka[fa.charCodeAt(e+2)]>>2,x[y++]=z>>8&255,x[y++]=z&255);return x};ua.FS=function(fa){for(var ea=fa.length,
|
|
32
|
+
z=ea%3,x=[],y=0,f=ea-z;y<f;y+=16383){for(var e=x,a=e.push,b,h=fa,n=y+16383>f?f:y+16383,ba=[],w=y;w<n;w+=3)b=(h[w]<<16&16711680)+(h[w+1]<<8&65280)+(h[w+2]&255),ba.push(pa[b>>18&63]+pa[b>>12&63]+pa[b>>6&63]+pa[b&63]);b=ba.join("");a.call(e,b)}1===z?(fa=fa[ea-1],x.push(pa[fa>>2]+pa[fa<<4&63]+"==")):2===z&&(fa=(fa[ea-2]<<8)+fa[ea-1],x.push(pa[fa>>10]+pa[fa>>4&63]+pa[fa<<2&63]+"="));return x.join("")};var pa=[],ka=[],ma="undefined"!==typeof Uint8Array?Uint8Array:Array;for(Ba=0;64>Ba;++Ba)pa[Ba]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[Ba],
|
|
33
|
+
ka["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(Ba)]=Ba;ka[45]=62;ka[95]=63},465:function(Ba,ua){ua.read=function(r,pa,ka,ma,fa){var ea=8*fa-ma-1;var z=(1<<ea)-1,x=z>>1,y=-7;fa=ka?fa-1:0;var f=ka?-1:1,e=r[pa+fa];fa+=f;ka=e&(1<<-y)-1;e>>=-y;for(y+=ea;0<y;ka=256*ka+r[pa+fa],fa+=f,y-=8);ea=ka&(1<<-y)-1;ka>>=-y;for(y+=ma;0<y;ea=256*ea+r[pa+fa],fa+=f,y-=8);if(0===ka)ka=1-x;else{if(ka===z)return ea?NaN:Infinity*(e?-1:1);ea+=Math.pow(2,ma);ka-=x}return(e?-1:1)*ea*Math.pow(2,
|
|
34
|
+
ka-ma)};ua.write=function(r,pa,ka,ma,fa,ea){var z,x=8*ea-fa-1,y=(1<<x)-1,f=y>>1,e=23===fa?Math.pow(2,-24)-Math.pow(2,-77):0;ea=ma?0:ea-1;var a=ma?1:-1,b=0>pa||0===pa&&0>1/pa?1:0;pa=Math.abs(pa);isNaN(pa)||Infinity===pa?(pa=isNaN(pa)?1:0,ma=y):(ma=Math.floor(Math.log(pa)/Math.LN2),1>pa*(z=Math.pow(2,-ma))&&(ma--,z*=2),pa=1<=ma+f?pa+e/z:pa+e*Math.pow(2,1-f),2<=pa*z&&(ma++,z/=2),ma+f>=y?(pa=0,ma=y):1<=ma+f?(pa=(pa*z-1)*Math.pow(2,fa),ma+=f):(pa=pa*Math.pow(2,f-1)*Math.pow(2,fa),ma=0));for(;8<=fa;r[ka+
|
|
35
|
+
ea]=pa&255,ea+=a,pa/=256,fa-=8);ma=ma<<fa|pa;for(x+=fa;0<x;r[ka+ea]=ma&255,ea+=a,ma/=256,x-=8);r[ka+ea-a]|=128*b}},466:function(Ba){var ua={}.toString;Ba.exports=Array.isArray||function(r){return"[object Array]"==ua.call(r)}}}]);}).call(this || window)
|