pdfh5
Version:
JS plugin of preview PDF for mobile. 基于pdf.js和jQuery,移动端PDF预览插件,可手势缩放,支持懒加载(即分段加载)
2 lines • 753 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("./pdf.worker.js",[],t):"object"==typeof exports?exports["./pdf.worker.js"]=t():e["./pdf.worker.js"]=e.pdfjsWorker=t()}(this,function(){return function(e){function t(a){if(r[a])return r[a].exports;var i=r[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,a){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(a,i,function(t){return e[t]}.bind(null,i));return a},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,r){"use strict";var a=r(1);t.WorkerMessageHandler=a.WorkerMessageHandler},function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return"function"==typeof e.postMessage&&"onmessage"in e}Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerMessageHandler=t.WorkerTask=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){var r=[],a=!0,i=!1,n=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(e){i=!0,n=e}finally{try{!a&&s.return&&s.return()}finally{if(i)throw n}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=r(2),c=r(130),l=r(5),u=a(l),h=r(172),f=r(138),d=function(){function e(e){this.name=e,this.terminated=!1,this._capability=(0,s.createPromiseCapability)()}return e.prototype={get finished(){return this._capability.promise},finish:function(){this._capability.resolve()},terminate:function(){this.terminated=!0},ensureNotTerminated:function(){if(this.terminated)throw new Error("Worker task was terminated")}},e}(),g=function(){function e(e){this._msgHandler=e,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}function t(e){var t=this;this._msgHandler=e,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;var r=this._msgHandler.sendWithStream("GetReader");this._reader=r.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then(function(e){t._isStreamingSupported=e.isStreamingSupported,t._isRangeSupported=e.isRangeSupported,t._contentLength=e.contentLength})}function r(e,t,r){this._msgHandler=r,this.onProgress=null;var a=this._msgHandler.sendWithStream("GetRangeReader",{begin:e,end:t});this._reader=a.getReader()}return e.prototype={getFullReader:function(){return(0,s.assert)(!this._fullRequestReader),this._fullRequestReader=new t(this._msgHandler),this._fullRequestReader},getRangeReader:function(e,t){var a=new r(e,t,this._msgHandler);return this._rangeRequestReaders.push(a),a},cancelAllRequests:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach(function(t){t.cancel(e)})}},t.prototype={get headersReady(){return this._headersReady},get contentLength(){return this._contentLength},get isStreamingSupported(){return this._isStreamingSupported},get isRangeSupported(){return this._isRangeSupported},read:function(){return this._reader.read().then(function(e){var t=e.value,r=e.done;return r?{value:void 0,done:!0}:{value:t.buffer,done:!1}})},cancel:function(e){this._reader.cancel(e)}},r.prototype={get isStreamingSupported(){return!1},read:function(){return this._reader.read().then(function(e){var t=e.value,r=e.done;return r?{value:void 0,done:!0}:{value:t.buffer,done:!1}})},cancel:function(e){this._reader.cancel(e)}},e}(),m={setup:function(e,t){var r=!1;e.on("test",function(t){if(!r){if(r=!0,!(t instanceof Uint8Array))return void e.send("test",!1);var a=255===t[0];e.postMessageTransfers=a;var i=new XMLHttpRequest,n="response"in i;try{i.responseType}catch(e){n=!1}return n?void e.send("test",{supportTypedArray:!0,supportTransfers:a}):void e.send("test",!1)}}),e.on("configure",function(e){(0,s.setVerbosityLevel)(e.verbosity)}),e.on("GetDocRequest",function(e){return m.createDocumentHandler(e,t)})},createDocumentHandler:function(e,t){function r(){if(v)throw new Error("Worker was terminated")}function a(e){y.push(e)}function i(e){e.finish();var t=y.indexOf(e);y.splice(t,1)}function l(e){var t=(0,s.createPromiseCapability)(),r=function(){Promise.all([p.ensureDoc("numPages"),p.ensureDoc("fingerprint")]).then(function(e){var r=o(e,2),a=r[0],i=r[1];t.resolve({numPages:a,fingerprint:i})},a)},a=function(e){t.reject(e)};return p.ensureDoc("checkHeader",[]).then(function(){p.ensureDoc("parseStartXRef",[]).then(function(){p.ensureDoc("parse",[e]).then(r,a)},a)},a),t.promise}function u(e,t){var a,i=(0,s.createPromiseCapability)(),n=e.source;if(n.data){try{a=new c.LocalPdfManager(S,n.data,n.password,t,C),i.resolve(a)}catch(e){i.reject(e)}return i.promise}var o,l=[];try{o=new g(_)}catch(e){return i.reject(e),i.promise}var u=o.getFullReader();u.headersReady.then(function(){if(u.isRangeSupported){var e=n.disableAutoFetch||u.isStreamingSupported;a=new c.NetworkPdfManager(S,o,{msgHandler:_,url:n.url,password:n.password,length:u.contentLength,disableAutoFetch:e,rangeChunkSize:n.rangeChunkSize},t,C);for(var r=0;r<l.length;r++)a.sendProgressiveData(l[r]);l=[],i.resolve(a),b=null}}).catch(function(e){i.reject(e),b=null});var h=0,f=function(){var e=(0,s.arraysToBytes)(l);n.length&&e.length!==n.length&&(0,s.warn)("reported HTTP length is different from actual");try{a=new c.LocalPdfManager(S,e,n.password,t,C),i.resolve(a)}catch(e){i.reject(e)}l=[]},d=new Promise(function(e,t){var i=function e(i){try{if(r(),i.done)return a||f(),void(b=null);var n=i.value;h+=(0,s.arrayByteLength)(n),u.isStreamingSupported||_.send("DocProgress",{loaded:h,total:Math.max(h,u.contentLength||0)}),a?a.sendProgressiveData(n):l.push(n),u.read().then(e,t)}catch(e){t(e)}};u.read().then(i,t)});return d.catch(function(e){i.reject(e),b=null}),b=function(){o.cancelAllRequests("abort")},i.promise}function m(e){function t(e){r(),_.send("GetDoc",{pdfInfo:e})}function n(e){if(r(),e instanceof s.PasswordException){var t=new d("PasswordException: response "+e.code);a(t),_.sendWithPromise("PasswordRequest",e).then(function(e){i(t),p.updatePassword(e.password),o()}).catch(function(e){i(t),_.send("PasswordException",e)}.bind(null,e))}else e instanceof s.InvalidPDFException?_.send("InvalidPDF",e):e instanceof s.MissingPDFException?_.send("MissingPDF",e):e instanceof s.UnexpectedResponseException?_.send("UnexpectedResponse",e):_.send("UnknownError",new s.UnknownErrorException(e.message,e.toString()))}function o(){r(),l(!1).then(t,function(e){return r(),e instanceof s.XRefParseException?(p.requestLoadedStream(),void p.onLoadedStream().then(function(){r(),l(!0).then(t,n)})):void n(e)},n)}r();var c={forceDataSchema:e.disableCreateObjectURL,maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,nativeImageDecoderSupport:e.nativeImageDecoderSupport,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported};u(e,c).then(function(e){if(v)throw e.terminate(),new Error("Worker was terminated");p=e,p.onLoadedStream().then(function(e){_.send("DataLoaded",{length:e.bytes.byteLength})})}).then(o,n)}var p,v=!1,b=null,y=[],w=e.apiVersion,k="2.0.943";if(w!==k)throw new Error('The API version "'+w+'" does not match '+('the Worker version "'+k+'".'));var S=e.docId,C=e.docBaseUrl,x=e.docId+"_worker",_=new h.MessageHandler(x,S,t);return _.postMessageTransfers=e.postMessageTransfers,_.on("GetPage",function(e){return p.getPage(e.pageIndex).then(function(e){return Promise.all([p.ensure(e,"rotate"),p.ensure(e,"ref"),p.ensure(e,"userUnit"),p.ensure(e,"view")]).then(function(e){var t=o(e,4),r=t[0],a=t[1],i=t[2],n=t[3];return{rotate:r,ref:a,userUnit:i,view:n}})})}),_.on("GetPageIndex",function(e){var t=new f.Ref(e.ref.num,e.ref.gen),r=p.pdfDocument.catalog;return r.getPageIndex(t)}),_.on("GetDestinations",function(e){return p.ensureCatalog("destinations")}),_.on("GetDestination",function(e){return p.ensureCatalog("getDestination",[e.id])}),_.on("GetPageLabels",function(e){return p.ensureCatalog("pageLabels")}),_.on("GetPageMode",function(e){return p.ensureCatalog("pageMode")}),_.on("GetAttachments",function(e){return p.ensureCatalog("attachments")}),_.on("GetJavaScript",function(e){return p.ensureCatalog("javaScript")}),_.on("GetOutline",function(e){return p.ensureCatalog("documentOutline")}),_.on("GetPermissions",function(e){return p.ensureCatalog("permissions")}),_.on("GetMetadata",function(e){return Promise.all([p.ensureDoc("documentInfo"),p.ensureCatalog("metadata")])}),_.on("GetData",function(e){return p.requestLoadedStream(),p.onLoadedStream().then(function(e){return e.bytes})}),_.on("GetStats",function(e){return p.pdfDocument.xref.stats}),_.on("GetAnnotations",function(e){var t=e.pageIndex,r=e.intent;return p.getPage(t).then(function(e){return e.getAnnotationsData(r)})}),_.on("RenderPageRequest",function(e){var t=e.pageIndex;p.getPage(t).then(function(r){var o=new d("RenderPageRequest: page "+t);a(o);var c=t+1,l=Date.now();r.getOperatorList({handler:_,task:o,intent:e.intent,renderInteractiveForms:e.renderInteractiveForms}).then(function(e){i(o),(0,s.info)("page="+c+" - getOperatorList: time="+(Date.now()-l)+"ms, len="+e.totalLength)},function(t){if(i(o),!o.terminated){_.send("UnsupportedFeature",{featureId:s.UNSUPPORTED_FEATURES.unknown});var r,a="worker.js: while trying to getPage() and getOperatorList()";r="string"==typeof t?{message:t,stack:a}:"object"===("undefined"==typeof t?"undefined":n(t))?{message:t.message||t.toString(),stack:t.stack||a}:{message:"Unknown exception type: "+("undefined"==typeof t?"undefined":n(t)),stack:a},_.send("PageError",{pageNum:c,error:r,intent:e.intent})}})})},this),_.on("GetTextContent",function(e,t){var r=e.pageIndex;t.onPull=function(e){},t.onCancel=function(e){},p.getPage(r).then(function(n){var o=new d("GetTextContent: page "+r);a(o);var c=r+1,l=Date.now();n.extractTextContent({handler:_,task:o,sink:t,normalizeWhitespace:e.normalizeWhitespace,combineTextItems:e.combineTextItems}).then(function(){i(o),(0,s.info)("text indexing: page="+c+" - time="+(Date.now()-l)+"ms"),t.close()},function(e){if(i(o),!o.terminated)throw t.error(e),e})})}),_.on("Cleanup",function(e){return p.cleanup()}),_.on("Terminate",function(e){v=!0,p&&(p.terminate(),p=null),b&&b();var t=[];return y.forEach(function(e){t.push(e.finished),e.terminate()}),Promise.all(t).then(function(){_.destroy(),_=null})}),_.on("Ready",function(t){m(e),e=null}),x},initializeFromPort:function(e){var t=new h.MessageHandler("worker","main",e);m.setup(t,e),t.send("ready",null)}};"undefined"==typeof window&&!(0,u.default)()&&"undefined"!=typeof self&&i(self)&&m.initializeFromPort(self),t.WorkerTask=d,t.WorkerMessageHandler=m},function(e,t,r){"use strict";function a(e){Number.isInteger(e)&&(ne=e)}function i(){return ne}function n(e){ne>=ee.INFOS&&console.log("Info: "+e)}function o(e){ne>=ee.WARNINGS}function s(e){console.log("Deprecated API usage: "+e)}function c(e){throw new Error(e)}function l(e,t){e||c(t)}function u(e,t){try{var r=new q.URL(e);if(!r.origin||"null"===r.origin)return!1}catch(e){return!1}var a=new q.URL(t,r);return r.origin===a.origin}function h(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function f(e,t){if(!e)return null;try{var r=t?new q.URL(e,t):new q.URL(e);if(h(r))return r}catch(e){}return null}function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}function g(e){var t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}}function m(e){return"string"!=typeof e?(o("The argument for removeNullCharacters must be a string."),e):e.replace(me,"")}function p(e){l(null!==e&&"object"===("undefined"==typeof e?"undefined":j(e))&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length,r=8192;if(t<r)return String.fromCharCode.apply(null,e);for(var a=[],i=0;i<t;i+=r){var n=Math.min(i+r,t),o=e.subarray(i,n);a.push(String.fromCharCode.apply(null,o))}return a.join("")}function v(e){l("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,r=new Uint8Array(t),a=0;a<t;++a)r[a]=255&e.charCodeAt(a);return r}function b(e){return void 0!==e.length?e.length:(l(void 0!==e.byteLength),e.byteLength)}function y(e){if(1===e.length&&e[0]instanceof Uint8Array)return e[0];var t,r,a,i=0,n=e.length;for(t=0;t<n;t++)r=e[t],a=b(r),i+=a;var o=0,s=new Uint8Array(i);for(t=0;t<n;t++)r=e[t],r instanceof Uint8Array||(r="string"==typeof r?v(r):new Uint8Array(r)),a=r.byteLength,s.set(r,o),o+=a;return s}function w(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function k(e){return e<=0?0:Math.ceil(Math.log2(e))}function S(e,t){return e[t]<<24>>24}function C(e,t){return e[t]<<8|e[t+1]}function x(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function _(){var e=new Uint8Array(4);e[0]=1;var t=new Uint32Array(e.buffer,0,1);return 1===t[0]}function A(){try{return new Function(""),!0}catch(e){return!1}}function P(e){for(var t=e.dict,r=e.key,a=e.getArray,i=void 0!==a&&a,n=e.stopWhenFound,s=void 0===n||n,c=100,l=0,u=void 0;t;){var h=i?t.getArray(r):t.get(r);if(void 0!==h){if(s)return h;u||(u=[]),u.push(h)}if(++l>c){o('getInheritableProperty: maximum loop count exceeded for "'+r+'"');break}t=t.get("Parent")}return u}function O(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];l(Number.isInteger(e)&&e>0,"The number should be a positive integer.");for(var r=void 0,a=[];e>=1e3;)e-=1e3,a.push("M");r=e/100|0,e%=100,a.push(ve[r]),r=e/10|0,e%=10,a.push(ve[10+r]),a.push(ve[20+e]);var i=a.join("");return t?i.toLowerCase():i}function I(e){var t,r=e.length,a=[];if("þ"===e[0]&&"ÿ"===e[1])for(t=2;t<r;t+=2)a.push(String.fromCharCode(e.charCodeAt(t)<<8|e.charCodeAt(t+1)));else for(t=0;t<r;++t){var i=be[e.charCodeAt(t)];a.push(i?String.fromCharCode(i):e.charAt(t))}return a.join("")}function T(e){return decodeURIComponent(escape(e))}function E(e){return unescape(encodeURIComponent(e))}function F(e){for(var t in e)return!1;return!0}function R(e){return"boolean"==typeof e}function B(e){return"number"==typeof e}function D(e){return"string"==typeof e}function M(e){return"object"===("undefined"==typeof e?"undefined":j(e))&&null!==e&&void 0!==e.byteLength}function L(e){return 32===e||9===e||13===e||10===e}function N(){var e={};return e.promise=new Promise(function(t,r){e.resolve=t,e.reject=r}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.unreachable=t.warn=t.utf8StringToString=t.stringToUTF8String=t.stringToPDFString=t.stringToBytes=t.string32=t.shadow=t.setVerbosityLevel=t.URL=t.ReadableStream=t.removeNullCharacters=t.readUint32=t.readUint16=t.readInt8=t.log2=t.isEvalSupported=t.isLittleEndian=t.createValidAbsoluteUrl=t.isSameOrigin=t.isSpace=t.isString=t.isNum=t.isEmptyObj=t.isBool=t.isArrayBuffer=t.info=t.getVerbosityLevel=t.getLookupTableFactory=t.getInheritableProperty=t.deprecated=t.createObjectURL=t.createPromiseCapability=t.bytesToString=t.assert=t.arraysToBytes=t.arrayByteLength=t.FormatError=t.XRefParseException=t.toRomanNumerals=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.NativeImageDecoding=t.MissingPDFException=t.MissingDataException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=void 0;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r(3);var U=r(126),q=r(128),z=[1,0,0,1,0,0],H=[.001,0,0,.001,0,0],G={NONE:"none",DECODE:"decode",DISPLAY:"display"},W={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},X={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},V={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},K={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},Y={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},J={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},Z={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},Q={UNKNOWN:0,FLATE:1,LZW:2,DCT:3,JPX:4,JBIG:5,A85:6,AHX:7,CCF:8,RL:9},$={UNKNOWN:0,TYPE1:1,TYPE1C:2,CIDFONTTYPE0:3,CIDFONTTYPE0C:4,TRUETYPE:5,CIDFONTTYPE2:6,TYPE3:7,OPENTYPE:8,TYPE0:9,MMTYPE1:10},ee={ERRORS:0,WARNINGS:1,INFOS:5},te={NONE:0,BINARY:1,STREAM:2},re={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},ae={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"},ie={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},ne=ee.WARNINGS,oe=function(){function e(e,t){this.name="PasswordException",this.message=e,this.code=t}return e.prototype=new Error,e.constructor=e,e}(),se=function(){function e(e,t){this.name="UnknownErrorException",this.message=e,this.details=t}return e.prototype=new Error,e.constructor=e,e}(),ce=function(){function e(e){this.name="InvalidPDFException",this.message=e}return e.prototype=new Error,e.constructor=e,e}(),le=function(){function e(e){this.name="MissingPDFException",this.message=e}return e.prototype=new Error,e.constructor=e,e}(),ue=function(){function e(e,t){this.name="UnexpectedResponseException",this.message=e,this.status=t}return e.prototype=new Error,e.constructor=e,e}(),he=function(){function e(e,t){this.begin=e,this.end=t,this.message="Missing data ["+e+", "+t+")"}return e.prototype=new Error,e.prototype.name="MissingDataException",e.constructor=e,e}(),fe=function(){function e(e){this.message=e}return e.prototype=new Error,e.prototype.name="XRefParseException",e.constructor=e,e}(),de=function(){function e(e){this.message=e}return e.prototype=new Error,e.prototype.name="FormatError",e.constructor=e,e}(),ge=function(){function e(e){this.name="AbortException",this.message=e}return e.prototype=new Error,e.constructor=e,e}(),me=/\x00/g,pe=function(){function e(){}var t=["rgb(",0,",",0,",",0,")"];return e.makeCssRgb=function(e,r,a){return t[1]=e,t[3]=r,t[5]=a,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 r=e[0]*t[0]+e[1]*t[2]+t[4],a=e[0]*t[1]+e[1]*t[3]+t[5];return[r,a]},e.applyInverseTransform=function(e,t){var r=t[0]*t[3]-t[1]*t[2],a=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,i=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r;return[a,i]},e.getAxialAlignedBoundingBox=function(t,r){var a=e.applyTransform(t,r),i=e.applyTransform(t.slice(2,4),r),n=e.applyTransform([t[0],t[3]],r),o=e.applyTransform([t[2],t[1]],r);return[Math.min(a[0],i[0],n[0],o[0]),Math.min(a[1],i[1],n[1],o[1]),Math.max(a[0],i[0],n[0],o[0]),Math.max(a[1],i[1],n[1],o[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]],r=e[0]*t[0]+e[1]*t[2],a=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],o=(r+n)/2,s=Math.sqrt((r+n)*(r+n)-4*(r*n-i*a))/2,c=o+s||1,l=o-s||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,r){function a(e,t){return e-t}var i=[t[0],t[2],r[0],r[2]].sort(a),n=[t[1],t[3],r[1],r[3]].sort(a),o=[];return t=e.normalizeRect(t),r=e.normalizeRect(r),(i[0]===t[0]&&i[1]===r[0]||i[0]===r[0]&&i[1]===t[0])&&(o[0]=i[1],o[2]=i[2],(n[0]===t[1]&&n[1]===r[1]||n[0]===r[1]&&n[1]===t[1])&&(o[1]=n[1],o[3]=n[2],o))},e}(),ve=["","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"],be=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],ye=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!a&&q.URL.createObjectURL){var i=new Blob([t],{type:r});return q.URL.createObjectURL(i)}for(var n="data:"+r+";base64,",o=0,s=t.length;o<s;o+=3){var c=255&t[o],l=255&t[o+1],u=255&t[o+2],h=c>>2,f=(3&c)<<4|l>>4,d=o+1<s?(15&l)<<2|u>>6:64,g=o+2<s?63&u:64;n+=e[h]+e[f]+e[d]+e[g]}return n}}();t.FONT_IDENTITY_MATRIX=H,t.IDENTITY_MATRIX=z,t.OPS=re,t.VerbosityLevel=ee,t.UNSUPPORTED_FEATURES=ae,t.AnnotationBorderStyleType=Z,t.AnnotationFieldFlag=J,t.AnnotationFlag=Y,t.AnnotationType=K,t.FontType=$,t.ImageKind=V,t.CMapCompressionType=te,t.AbortException=ge,t.InvalidPDFException=ce,t.MissingDataException=he,t.MissingPDFException=le,t.NativeImageDecoding=G,t.PasswordException=oe,t.PasswordResponses=ie,t.PermissionFlag=W,t.StreamType=Q,t.TextRenderingMode=X,t.UnexpectedResponseException=ue,t.UnknownErrorException=se,t.Util=pe,t.toRomanNumerals=O,t.XRefParseException=fe,t.FormatError=de,t.arrayByteLength=b,t.arraysToBytes=y,t.assert=l,t.bytesToString=p,t.createPromiseCapability=N,t.createObjectURL=ye,t.deprecated=s,t.getInheritableProperty=P,t.getLookupTableFactory=g,t.getVerbosityLevel=i,t.info=n,t.isArrayBuffer=M,t.isBool=R,t.isEmptyObj=F,t.isNum=B,t.isString=D,t.isSpace=L,t.isSameOrigin=u,t.createValidAbsoluteUrl=f,t.isLittleEndian=_,t.isEvalSupported=A,t.log2=k,t.readInt8=S,t.readUint16=C,t.readUint32=x,t.removeNullCharacters=m,t.ReadableStream=U.ReadableStream,t.URL=q.URL,t.setVerbosityLevel=a,t.shadow=d,t.string32=w,t.stringToBytes=v,t.stringToPDFString=I,t.stringToUTF8String=T,t.utf8StringToString=E,t.warn=o,t.unreachable=c},function(e,t,r){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=r(4);if(!i._pdfjsCompatibilityChecked){i._pdfjsCompatibilityChecked=!0;var n=r(5),o="object"===("undefined"==typeof window?"undefined":a(window))&&"object"===("undefined"==typeof document?"undefined":a(document));!function(){!i.btoa&&n()&&(i.btoa=function(e){return Buffer.from(e,"binary").toString("base64")})}(),function(){!i.atob&&n()&&(i.atob=function(e){return Buffer.from(e,"base64").toString("binary")})}(),function(){o&&("currentScript"in document||Object.defineProperty(document,"currentScript",{get:function(){var e=document.getElementsByTagName("script");return e[e.length-1]},enumerable:!0,configurable:!0}))}(),function(){o&&"undefined"==typeof Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})}(),function(){if(o&&!n()){var e=document.createElement("div");if(e.classList.toggle("test",0)!==!1){var t=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e){if(arguments.length>1){var r=!!arguments[1];return this[r?"add":"remove"](e),r}return t(e)}}}}(),function(){String.prototype.includes||r(6)}(),function(){Array.prototype.includes||r(34)}(),function(){Object.assign||r(43)}(),function(){Math.log2||(Math.log2=r(53))}(),function(){Number.isNaN||(Number.isNaN=r(55))}(),function(){Number.isInteger||(Number.isInteger=r(57))}(),function(){i.Promise||(i.Promise=r(60))}(),function(){i.WeakMap||(i.WeakMap=r(95))}(),function(){String.codePointAt||(String.codePointAt=r(112))}(),function(){String.fromCodePoint||(String.fromCodePoint=r(114))}(),function(){i.Symbol||r(116)}(),function(){Object.values||(Object.values=r(123))}()}},function(e,t,r){"use strict";e.exports="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:{}},function(e,t,r){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(){return"object"===("undefined"==typeof process?"undefined":a(process))&&process+""=="[object process]"}},function(e,t,r){"use strict";r(7),e.exports=r(10).String.includes},function(e,t,r){"use strict";var a=r(8),i=r(26),n="includes";a(a.P+a.F*r(33)(n),"String",{includes:function(e){return!!~i(this,e,n).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var a=r(9),i=r(10),n=r(11),o=r(21),s=r(24),c="prototype",l=function e(t,r,l){var u,h,f,d,g=t&e.F,m=t&e.G,p=t&e.S,v=t&e.P,b=t&e.B,y=m?a:p?a[r]||(a[r]={}):(a[r]||{})[c],w=m?i:i[r]||(i[r]={}),k=w[c]||(w[c]={});m&&(l=r);for(u in l)h=!g&&y&&void 0!==y[u],f=(h?y:l)[u],d=b&&h?s(f,a):v&&"function"==typeof f?s(Function.call,f):f,y&&o(y,u,f,t&e.U),w[u]!=f&&n(w,u,d),v&&k[u]!=f&&(k[u]=f)};a.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,r){"use strict";var a=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},function(e,t,r){"use strict";var a=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=a)},function(e,t,r){"use strict";var a=r(12),i=r(20);e.exports=r(16)?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){"use strict";var a=r(13),i=r(15),n=r(19),o=Object.defineProperty;t.f=r(16)?Object.defineProperty:function(e,t,r){if(a(e),t=n(t,!0),a(r),i)try{return o(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){"use strict";var a=r(14);e.exports=function(e){if(!a(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){return"object"===("undefined"==typeof e?"undefined":a(e))?null!==e:"function"==typeof e}},function(e,t,r){"use strict";e.exports=!r(16)&&!r(17)(function(){return 7!=Object.defineProperty(r(18)("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){"use strict";e.exports=!r(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,r){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";var a=r(14),i=r(9).document,n=a(i)&&a(i.createElement);e.exports=function(e){return n?i.createElement(e):{}}},function(e,t,r){"use strict";var a=r(14);e.exports=function(e,t){if(!a(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!a(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!a(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!a(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){"use strict";var a=r(9),i=r(11),n=r(22),o=r(23)("src"),s="toString",c=Function[s],l=(""+c).split(s);r(10).inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,r,s){var c="function"==typeof r;c&&(n(r,"name")||i(r,"name",t)),e[t]!==r&&(c&&(n(r,o)||i(r,o,e[t]?""+e[t]:l.join(String(t)))),e===a?e[t]=r:s?e[t]?e[t]=r:i(e,t,r):(delete e[t],i(e,t,r)))})(Function.prototype,s,function(){return"function"==typeof this&&this[o]||c.call(this)})},function(e,t,r){"use strict";var a={}.hasOwnProperty;e.exports=function(e,t){return a.call(e,t)}},function(e,t,r){"use strict";var a=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++a+i).toString(36))}},function(e,t,r){"use strict";var a=r(25);e.exports=function(e,t,r){if(a(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,a){return e.call(t,r,a)};case 3:return function(r,a,i){return e.call(t,r,a,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){"use strict";e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){"use strict";var a=r(27),i=r(32);e.exports=function(e,t,r){if(a(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(e))}},function(e,t,r){"use strict";var a=r(14),i=r(28),n=r(29)("match");e.exports=function(e){var t;return a(e)&&(void 0!==(t=e[n])?!!t:"RegExp"==i(e))}},function(e,t,r){
"use strict";var a={}.toString;e.exports=function(e){return a.call(e).slice(8,-1)}},function(e,t,r){"use strict";var a=r(30)("wks"),i=r(23),n=r(9).Symbol,o="function"==typeof n,s=e.exports=function(e){return a[e]||(a[e]=o&&n[e]||(o?n:i)("Symbol."+e))};s.store=a},function(e,t,r){"use strict";var a=r(10),i=r(9),n="__core-js_shared__",o=i[n]||(i[n]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:a.version,mode:r(31)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){"use strict";e.exports=!1},function(e,t,r){"use strict";e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){"use strict";var a=r(29)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[a]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,r){"use strict";r(35),e.exports=r(10).Array.includes},function(e,t,r){"use strict";var a=r(8),i=r(36)(!0);a(a.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(42)("includes")},function(e,t,r){"use strict";var a=r(37),i=r(39),n=r(41);e.exports=function(e){return function(t,r,o){var s,c=a(t),l=i(c.length),u=n(o,l);if(e&&r!=r){for(;l>u;)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}}},function(e,t,r){"use strict";var a=r(38),i=r(32);e.exports=function(e){return a(i(e))}},function(e,t,r){"use strict";var a=r(28);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},function(e,t,r){"use strict";var a=r(40),i=Math.min;e.exports=function(e){return e>0?i(a(e),9007199254740991):0}},function(e,t,r){"use strict";var a=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:a)(e)}},function(e,t,r){"use strict";var a=r(40),i=Math.max,n=Math.min;e.exports=function(e,t){return e=a(e),e<0?i(e+t,0):n(e,t)}},function(e,t,r){"use strict";var a=r(29)("unscopables"),i=Array.prototype;void 0==i[a]&&r(11)(i,a,{}),e.exports=function(e){i[a][e]=!0}},function(e,t,r){"use strict";r(44),e.exports=r(10).Object.assign},function(e,t,r){"use strict";var a=r(8);a(a.S+a.F,"Object",{assign:r(45)})},function(e,t,r){"use strict";var a=r(46),i=r(50),n=r(51),o=r(52),s=r(38),c=Object.assign;e.exports=!c||r(17)(function(){var e={},t={},r=Symbol(),a="abcdefghijklmnopqrst";return e[r]=7,a.split("").forEach(function(e){t[e]=e}),7!=c({},e)[r]||Object.keys(c({},t)).join("")!=a})?function(e,t){for(var r=o(e),c=arguments.length,l=1,u=i.f,h=n.f;c>l;)for(var f,d=s(arguments[l++]),g=u?a(d).concat(u(d)):a(d),m=g.length,p=0;m>p;)h.call(d,f=g[p++])&&(r[f]=d[f]);return r}:c},function(e,t,r){"use strict";var a=r(47),i=r(49);e.exports=Object.keys||function(e){return a(e,i)}},function(e,t,r){"use strict";var a=r(22),i=r(37),n=r(36)(!1),o=r(48)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),c=0,l=[];for(r in s)r!=o&&a(s,r)&&l.push(r);for(;t.length>c;)a(s,r=t[c++])&&(~n(l,r)||l.push(r));return l}},function(e,t,r){"use strict";var a=r(30)("keys"),i=r(23);e.exports=function(e){return a[e]||(a[e]=i(e))}},function(e,t,r){"use strict";e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,r){"use strict";t.f={}.propertyIsEnumerable},function(e,t,r){"use strict";var a=r(32);e.exports=function(e){return Object(a(e))}},function(e,t,r){"use strict";r(54),e.exports=r(10).Math.log2},function(e,t,r){"use strict";var a=r(8);a(a.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,r){"use strict";r(56),e.exports=r(10).Number.isNaN},function(e,t,r){"use strict";var a=r(8);a(a.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,r){"use strict";r(58),e.exports=r(10).Number.isInteger},function(e,t,r){"use strict";var a=r(8);a(a.S,"Number",{isInteger:r(59)})},function(e,t,r){"use strict";var a=r(14),i=Math.floor;e.exports=function(e){return!a(e)&&isFinite(e)&&i(e)===e}},function(e,t,r){"use strict";r(61),r(63),r(73),r(76),r(93),r(94),e.exports=r(10).Promise},function(e,t,r){"use strict";var a=r(62),i={};i[r(29)("toStringTag")]="z",i+""!="[object z]"&&r(21)(Object.prototype,"toString",function(){return"[object "+a(this)+"]"},!0)},function(e,t,r){"use strict";var a=r(28),i=r(29)("toStringTag"),n="Arguments"==a(function(){return arguments}()),o=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=o(t=Object(e),i))?r:n?a(t):"Object"==(s=a(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,r){"use strict";var a=r(64)(!0);r(65)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=a(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){"use strict";var a=r(40),i=r(32);e.exports=function(e){return function(t,r){var n,o,s=String(i(t)),c=a(r),l=s.length;return c<0||c>=l?e?"":void 0:(n=s.charCodeAt(c),n<55296||n>56319||c+1===l||(o=s.charCodeAt(c+1))<56320||o>57343?e?s.charAt(c):n:e?s.slice(c,c+2):(n-55296<<10)+(o-56320)+65536)}}},function(e,t,r){"use strict";var a=r(31),i=r(8),n=r(21),o=r(11),s=r(66),c=r(67),l=r(71),u=r(72),h=r(29)("iterator"),f=!([].keys&&"next"in[].keys()),d="@@iterator",g="keys",m="values",p=function(){return this};e.exports=function(e,t,r,v,b,y,w){c(r,t,v);var k,S,C,x=function(e){if(!f&&e in O)return O[e];switch(e){case g:return function(){return new r(this,e)};case m:return function(){return new r(this,e)}}return function(){return new r(this,e)}},_=t+" Iterator",A=b==m,P=!1,O=e.prototype,I=O[h]||O[d]||b&&O[b],T=I||x(b),E=b?A?x("entries"):T:void 0,F="Array"==t?O.entries||I:I;if(F&&(C=u(F.call(new e)),C!==Object.prototype&&C.next&&(l(C,_,!0),a||"function"==typeof C[h]||o(C,h,p))),A&&I&&I.name!==m&&(P=!0,T=function(){return I.call(this)}),a&&!w||!f&&!P&&O[h]||o(O,h,T),s[t]=T,s[_]=p,b)if(k={values:A?T:x(m),keys:y?T:x(g),entries:E},w)for(S in k)S in O||n(O,S,k[S]);else i(i.P+i.F*(f||P),t,k);return k}},function(e,t,r){"use strict";e.exports={}},function(e,t,r){"use strict";var a=r(68),i=r(20),n=r(71),o={};r(11)(o,r(29)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=a(o,{next:i(1,r)}),n(e,t+" Iterator")}},function(e,t,r){"use strict";var a=r(13),i=r(69),n=r(49),o=r(48)("IE_PROTO"),s=function(){},c="prototype",l=function(){var e,t=r(18)("iframe"),a=n.length,i="<",o=">";for(t.style.display="none",r(70).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+o+"document.F=Object"+i+"/script"+o),e.close(),l=e.F;a--;)delete l[c][n[a]];return l()};e.exports=Object.create||function(e,t){var r;return null!==e?(s[c]=a(e),r=new s,s[c]=null,r[o]=e):r=l(),void 0===t?r:i(r,t)}},function(e,t,r){"use strict";var a=r(12),i=r(13),n=r(46);e.exports=r(16)?Object.defineProperties:function(e,t){i(e);for(var r,o=n(t),s=o.length,c=0;s>c;)a.f(e,r=o[c++],t[r]);return e}},function(e,t,r){"use strict";var a=r(9).document;e.exports=a&&a.documentElement},function(e,t,r){"use strict";var a=r(12).f,i=r(22),n=r(29)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,n)&&a(e,n,{configurable:!0,value:t})}},function(e,t,r){"use strict";var a=r(22),i=r(52),n=r(48)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),a(e,n)?e[n]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,r){"use strict";for(var a=r(74),i=r(46),n=r(21),o=r(9),s=r(11),c=r(66),l=r(29),u=l("iterator"),h=l("toStringTag"),f=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},g=i(d),m=0;m<g.length;m++){var p,v=g[m],b=d[v],y=o[v],w=y&&y.prototype;if(w&&(w[u]||s(w,u,f),w[h]||s(w,h,v),c[v]=f,b))for(p in a)w[p]||n(w,p,a[p],!0)}},function(e,t,r){"use strict";var a=r(42),i=r(75),n=r(66),o=r(37);e.exports=r(65)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,r):"values"==t?i(0,e[r]):i(0,[r,e[r]])},"values"),n.Arguments=n.Array,a("keys"),a("values"),a("entries")},function(e,t,r){"use strict";e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){"use strict";var a,i,n,o,s=r(31),c=r(9),l=r(24),u=r(62),h=r(8),f=r(14),d=r(25),g=r(77),m=r(78),p=r(82),v=r(83).set,b=r(85)(),y=r(86),w=r(87),k=r(88),S=r(89),C="Promise",x=c.TypeError,_=c.process,A=_&&_.versions,P=A&&A.v8||"",O=c[C],I="process"==u(_),T=function(){},E=i=y.f,F=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[r(29)("species")]=function(e){e(T,T)};return(I||"function"==typeof PromiseRejectionEvent)&&e.then(T)instanceof t&&0!==P.indexOf("6.6")&&k.indexOf("Chrome/66")===-1}catch(e){}}(),R=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},B=function(e,t){if(!e._n){e._n=!0;var r=e._c;b(function(){for(var a=e._v,i=1==e._s,n=0,o=function(t){var r,n,o,s=i?t.ok:t.fail,c=t.resolve,l=t.reject,u=t.domain;try{s?(i||(2==e._h&&L(e),e._h=1),s===!0?r=a:(u&&u.enter(),r=s(a),u&&(u.exit(),o=!0)),r===t.promise?l(x("Promise-chain cycle")):(n=R(r))?n.call(r,c,l):c(r)):l(a)}catch(e){u&&!o&&u.exit(),l(e)}};r.length>n;)o(r[n++]);e._c=[],e._n=!1,t&&!e._h&&D(e)})}},D=function(e){v.call(c,function(){var t,r,a,i=e._v,n=M(e);if(n&&(t=w(function(){I?_.emit("unhandledRejection",i,e):(r=c.onunhandledrejection)?r({promise:e,reason:i}):(a=c.console)&&a.error&&a.error("Unhandled promise rejection",i)}),e._h=I||M(e)?2:1),e._a=void 0,n&&t.e)throw t.v})},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){v.call(c,function(){var t;I?_.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})})},N=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),B(t,!0))},j=function e(t){var r,a=this;if(!a._d){a._d=!0,a=a._w||a;try{if(a===t)throw x("Promise can't be resolved itself");(r=R(t))?b(function(){var i={_w:a,_d:!1};try{r.call(t,l(e,i,1),l(N,i,1))}catch(e){N.call(i,e)}}):(a._v=t,a._s=1,B(a,!1))}catch(e){N.call({_w:a,_d:!1},e)}}};F||(O=function(e){g(this,O,C,"_h"),d(e),a.call(this);try{e(l(j,this,1),l(N,this,1))}catch(e){N.call(this,e)}},a=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},a.prototype=r(90)(O.prototype,{then:function(e,t){var r=E(p(this,O));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=I?_.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&B(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),n=function(){var e=new a;this.promise=e,this.resolve=l(j,e,1),this.reject=l(N,e,1)},y.f=E=function(e){return e===O||e===o?new n(e):i(e)}),h(h.G+h.W+h.F*!F,{Promise:O}),r(71)(O,C),r(91)(C),o=r(10)[C],h(h.S+h.F*!F,C,{reject:function(e){var t=E(this),r=t.reject;return r(e),t.promise}}),h(h.S+h.F*(s||!F),C,{resolve:function(e){return S(s&&this===o?O:this,e)}}),h(h.S+h.F*!(F&&r(92)(function(e){O.all(e).catch(T)})),C,{all:function(e){var t=this,r=E(t),a=r.resolve,i=r.reject,n=w(function(){var r=[],n=0,o=1;m(e,!1,function(e){var s=n++,c=!1;r.push(void 0),o++,t.resolve(e).then(function(e){c||(c=!0,r[s]=e,--o||a(r))},i)}),--o||a(r)});return n.e&&i(n.v),r.promise},race:function(e){var t=this,r=E(t),a=r.reject,i=w(function(){m(e,!1,function(e){t.resolve(e).then(r.resolve,a)})});return i.e&&a(i.v),r.promise}})},function(e,t,r){"use strict";e.exports=function(e,t,r,a){if(!(e instanceof t)||void 0!==a&&a in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){"use strict";var a=r(24),i=r(79),n=r(80),o=r(13),s=r(39),c=r(81),l={},u={},h=e.exports=function(e,t,r,h,f){var d,g,m,p,v=f?function(){return e}:c(e),b=a(r,h,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(n(v)){for(d=s(e.length);d>y;y++)if(p=t?b(o(g=e[y])[0],g[1]):b(e[y]),p===l||p===u)return p}else for(m=v.call(e);!(g=m.next()).done;)if(p=i(m,b,g.value,t),p===l||p===u)return p};h.BREAK=l,h.RETURN=u},function(e,t,r){"use strict";var a=r(13);e.exports=function(e,t,r,i){try{return i?t(a(r)[0],r[1]):t(r)}catch(t){var n=e.return;throw void 0!==n&&a(n.call(e)),t}}},function(e,t,r){"use strict";var a=r(66),i=r(29)("iterator"),n=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||n[i]===e)}},function(e,t,r){"use strict";var a=r(62),i=r(29)("iterator"),n=r(66);e.exports=r(10).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||n[a(e)]}},function(e,t,r){"use strict";var a=r(13),i=r(25),n=r(29)("species");e.exports=function(e,t){var r,o=a(e).constructor;return void 0===o||void 0==(r=a(o)[n])?t:i(r)}},function(e,t,r){"use strict";var a,i,n,o=r(24),s=r(84),c=r(70),l=r(18),u=r(9),h=u.process,f=u.setImmediate,d=u.clearImmediate,g=u.MessageChannel,m=u.Dispatch,p=0,v={},b="onreadystatechange",y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},w=function(e){y.call(e.data)};f&&d||(f=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return v[++p]=function(){s("function"==typeof e?e:Function(e),t)},a(p),p},d=function(e){delete v[e]},"process"==r(28)(h)?a=function(e){h.nextTick(o(y,e,1))}:m&&m.now?a=function(e){m.now(o(y,e,1))}:g?(i=new g,n=i.port2,i.port1.onmessage=w,a=o(n.postMessage,n,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(a=function(e){u.postMessage(e+"","*")},u.addEventListener("message",w,!1)):a=b in l("script")?function(e){c.appendChild(l("script"))[b]=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(o(y,e,1),0)}),e.exports={set:f,clear:d}},function(e,t,r){"use strict";e.exports=function(e,t,r){var a=void 0===r;switch(t.length){case 0:return a?e():e.call(r);case 1:return a?e(t[0]):e.call(r,t[0]);case 2:return a?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return a?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return a?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,r){"use strict";var a=r(9),i=r(83).set,n=a.MutationObserver||a.WebKitMutationObserver,o=a.process,s=a.Promise,c="process"==r(28)(o);e.exports=function(){var e,t,r,l=function(){var a,i;for(c&&(a=o.domain)&&a.exit();e;){i=e.fn,e=e.next;try{i()}catch(a){throw e?r():t=void 0,a}}t=void 0,a&&a.enter()};if(c)r=function(){o.nextTick(l)};else if(!n||a.navigator&&a.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);r=function(){u.then(l)}}else r=function(){i.call(a,l)};else{var h=!0,f=document.createTextNode("");new n(l).observe(f,{characterData:!0}),r=function(){f.data=h=!h}}return function(a){var i={fn:a,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},function(e,t,r){"use strict";function a(e){var t,r;this.promise=new e(function(e,a){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=a}),this.resolve=i(t),this.reject=i(r)}var i=r(25);e.exports.f=function(e){return new a(e)}},function(e,t,r){"use strict";e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){"use strict";var a=r(9),i=a.navigator;e.exports=i&&i.userAgent||""},function(e,t,r){"use strict";var a=r(13),i=r(14),n=r(86);e.exports=function(e,t){if(a(e),i(t)&&t.constructor===e)return t;var r=n.f(e),o=r.resolve;return o(t),r.promise}},function(e,t,r){"use strict";var a=r(21);e.exports=function(e,t,r){for(var i in t)a(e,i,t[i],r);return e}},function(e,t,r){"use strict";var a=r(9),i=r(12),n=r(16),o=r(29)("species");e.exports=function(e){var t=a[e];n&&t&&!t[o]&&i.f(t,o,{configurable:!0,get:function(){return this}})}},function(e,t,r){"use strict";var a=r(29)("iterator"),i=!1;try{var n=[7][a]();n.return=function(){i=!0},Array.from(n,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var n=[7],o=n[a]();o.next=function(){return{done:r=!0}},n[a]=function(){return o},e(n)}catch(e){}return r}},function(e,t,r){"use strict";var a=r(8),i=r(10),n=r(9),o=r(82),s=r(89);a(a.P+a.R,"Promise",{finally:function(e){var t=o(this,i.Promise||n.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then(function(){return r})}:e,r?function(r){return s(t,e()).then(function(){throw r})}:e)}})},function(e,t,r){"use strict";var a=r(8),i=r(86),n=r(87);a(a.S,"Promise",{try:function(e){var t=i.f(this),r=n(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){"use strict";r(61),r(73),r(96),r(108),r(110),e.exports=r(10).WeakMap},function(e,t,r){"use strict";var a,i=r(97)(0),n=r(21),o=r(101),s=r(45),c=r(102),l=r(14),u=r(17),h=r(103),f="WeakMap",d=o.getWeak,g=Object.isExtensible,m=c.ufstore,p={},v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(e){if(l(e)){var t=d(e);return t===!0?m(h(this,f)).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(h(this,f),e,t)}},y=e.exports=r(104)(f,v,b,c,!0,!0);u(function(){return 7!=(new y).set((Object.freeze||Object)(p),7).get(p)})&&(a=c.getConstructor(v,f),s(a.prototype,b),o.NEED=!0,i(["delete","has","get","set"],function(e){var t=y.prototype,r=t[e];n(t,e,function(t,i){if(l(t)&&!g(t)){this._f||(this._f=new a);var n=this._f[e](t,i);return"set"==e?this:n}return r.call(this,t,i)})}))},function(e,t,r){"use strict";var a=r(24),i=r(38),n=r(52),o=r(39),s=r(98);e.exports=function(e,t){var r=1==e,c=2==e,l=3==e,u=4==e,h=6==e,f=5==e||h,d=t||s;return function(t,s,g){for(var m,p,v=n(t),b=i(v),y=a(s,g,3),w=o(b.length),k=0,S=r?d(t,w):c?d(t,0):void 0;w>k;k++)if((f||k in b)&&(