hrynko / vue-pdf-embed

PDF embed component for Vue 2 and Vue 3
https://npmjs.com/package/vue-pdf-embed
MIT License
635 stars 102 forks source link

Problems build in Vue3 #124

Closed parkjunghwan-reco closed 6 months ago

parkjunghwan-reco commented 1 year ago

Do you have any idea why I might be getting this error from yarn build in my Vue3 app?

✓ 1726 modules transformed. [commonjs--resolver] Unexpected token (1:41169) in /Users/parkjh/Documents/dev/Upbox-2.0-Front-Application/node_modules/vue-pdf-embed/dist/vue3-pdf-embed.js file: /Users/parkjh/Documents/dev/Upbox-2.0-Front-Application/node_modules/vue-pdf-embed/dist/vue3-pdf-embed.js:1:41169 1: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):"object"==typeof exports?exports["vue-pdf-embed"]=t(require("vue")):e["vue-pdf-embed"]=t(e.vue)}(self,function(WEBPACK_EXTERNAL_MODULE103){return(()=>{var webpack_modules={658:function(module,unused_webpack_exports,webpack_require){var f;f=function(){return g=[function(e,t,r){"use strict";Object.defineProperty(t,"esModule",{value:!0}),Object.defineProperty(t,"addLinkAttributes",{enumerable:!0,get:function(){return o.addLinkAttributes}}),Object.defineProperty(t,"getFilenameFromUrl",{enumerable:!0,get:function(){return o.getFilenameFromUrl}}),Object.defineProperty(t,"LinkTarget",{enumerable:!0,get:function(){return o.LinkTarget}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"PDFDateString",{enumerable:!0,get:function(){return o.PDFDateString}}),Object.defineProperty(t,"RenderingCancelledException",{enumerable:!0,get:function(){return o.RenderingCancelledException}}),Object.defineProperty(t,"build",{enumerable:!0,get:function(){return s.build}}),Object.defineProperty(t,"getDocument",{enumerable:!0,get:function(){return s.getDocument}}),Object.defineProperty(t,"LoopbackPort",{enumerable:!0,get:function(){return s.LoopbackPort}}),Object.defineProperty(t,"PDFDataRangeTransport",{enumerable:!0,get:function(){return s.PDFDataRangeTransport}}),Object.defineProperty(t,"PDFWorker",{enumerable:!0,get:function(){return s.PDFWorker}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return s.version}}),Object.defineProperty(t,"CMapCompressionType",{enumerable:!0,get:function(){return c.CMapCompressionType}}),Object.defineProperty(t,"createObjectURL",{enumerable:!0,get:function(){return c.createObjectURL}}),Object.defineProperty(t,"createPromiseCapability",{enumerable:!0,get:function(){return c.createPromiseCapability}}),Object.defineProperty(t,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return c.createValidAbsoluteUrl}}),Object.defineProperty(t,"InvalidPDFException",{enumerable:!0,get:function(){return c.InvalidPDFException}}),Object.defineProperty(t,"MissingPDFException",{enumerable:!0,get:function(){return c.MissingPDFException}}),Object.defineProperty(t,"OPS",{enumerable:!0,get:function(){return c.OPS}}),Object.defineProperty(t,"PasswordResponses",{enumerable:!0,get:function(){return c.PasswordResponses}}),Object.defineProperty(t,"PermissionFlag",{enumerable:!0,get:function(){return c.PermissionFlag}}),Object.defineProperty(t,"removeNullCharacters",{enumerable:!0,get:function(){return c.removeNullCharacters}}),Object.defineProperty(t,"shadow",{enumerable:!0,get:function(){return c.shadow}}),Object.defineProperty(t,"UnexpectedResponseException",{enumerable:!0,get:function(){return c.UnexpectedResponseException}}),Object.defineProperty(t,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return c.UNSUPPORTED_FEATURES}}),Object.defineProperty(t,"Util",{enumerable:!0,get:function(){return c.Util}}),Object.defineProperty(t,"VerbosityLevel",{enumerable:!0,get:function(){return c.VerbosityLevel}}),Object.defineProperty(t,"AnnotationLayer",{enumerable:!0,get:function(){return u.AnnotationLayer}}),Object.defineProperty(t,"apiCompatibilityParams",{enumerable:!0,get:function(){return l.apiCompatibilityParams}}),Object.defineProperty(t,"GlobalWorkerOptions",{enumerable:!0,get:function(){return f.GlobalWorkerOptions}}),Object.defineProperty(t,"renderTextLayer",{enumerable:!0,get:function(){return h.renderTextLayer}}),Object.defineProperty(t,"SVGGraphics",{enumerable:!0,get:function(){return d.SVGGraphics}});var n,a,i,o=r(1),s=r(202),c=r(5),u=r(216),l=r(206),f=r(209),h=r(217),d=r(218);r(7).isNodeJS?(n=r(219).PDFNodeStream,(0,s.setPDFNetworkStreamFactory)(function(e){return new n(e)})):(a=r(222).PDFNetworkStream,(0,o.isFetchSupported)()&&(i=r(223).PDFFetchStream),(0,s.setPDFNetworkStreamFactory)(function(e){return new(i&&(0,o.isValidFetchUrl)(e.url)?i:a)(e)}))},function(e,t,r){"use strict";Object.defineProperty(t,"_esModule",{value:!0}),t.addLinkAttributes=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=t.url,n=t.target,a=t.rel,t=t.enabled,t=void 0===t||t;(0,u.assert)(r&&"string"==typeof r,'addLinkAttributes: A valid "url" parameter must provided.');r=(0,u.removeNullCharacters)(r);t?e.href=e.title=r:(e.href="",e.title="Disabled: ".concat(r),e.onclick=function(){return!1});var i="";switch(n){case .NONE:break;case _.SELF:i="self";break;case .BLANK:i="blank";break;case .PARENT:i="parent";break;case .TOP:i="_top"}e.target=i,e.rel="string"==typeof a?a:y},t.getFilenameFromUrl=function(e){var t=e.indexOf("#"),r=e.indexOf("?"),r=Math.min(0<t?t:e.length,0<r?r:e.length);return e.substring(e.lastIndexOf("/",r)+1,r)},t.isFetchSupported=A,t.isValidFetchUrl=x,t.loadScript=function(n){return new Promise(function(e,t){var r=document.createElement("script");r.src=n,r.onload=e,r.onerror=function(){t(new Error("Cannot load script at: ".concat(r.src)))},(document.head||document.documentElement).appendChild(r)})},t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.BaseCMapReaderFactory=t.DOMCanvasFactory=t.BaseCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var n,o=(n=r(2))&&n.esModule?n:{default:n},u=r(5);function l(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,t=function(){};return{s:t,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r,n,a,i,o){try{var s=ei,c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function f(s){return function(){var e=this,o=arguments;return new Promise(function(t,r){var n=s.apply(e,o);function a(e){c(n,t,r,a,i,"next",e)}function i(e){c(n,t,r,a,i,"throw",e)}a(void 0)})}}function a(e){return(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)}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function d(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=p(r);return e=n?(e=p(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),t=this,!(e=e)||"object"!==a(e)&&"function"!=typeof e?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}var y="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=y;var b="http://www.w3.org/2000/svg",w=function(){function e(){m(this,e),this.constructor===e&&(0,u.unreachable)("Cannot initialize BaseCanvasFactory.")}return v(e,[{key:"create",value:function(e,t){(0,u.unreachable)("Abstract method create called.")}},{key:"reset",value:function(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=r}},{key:"destroy",value:function(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}}]),e}();t.BaseCanvasFactory=w,t.DOMCanvasFactory=function(){i(n,w);var r=d(n);function n(){var e=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).ownerDocument,t=void 0===e?globalThis.document:e;return m(this,n),(e=r.call(this))._document=t,e}return v(n,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var r=this._document.createElement("canvas"),n=r.getContext("2d");return r.width=e,r.height=t,{canvas:r,context:n}}}]),n}();var k=function(){function r(e){var t=e.baseUrl,t=void 0===t?null:t,e=e.isCompressed,e=void 0!==e&&e;m(this,r),this.constructor===r&&(0,u.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=t,this.isCompressed=e}var t;return v(r,[{key:"fetch",value:(t=f(o.default.mark(function e(t){var r,n,a,i=this;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,this.baseUrl){e.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(r){e.next=5;break}throw new Error("CMap name must be specified.");case 5:return n=this.baseUrl+r+(this.isCompressed?".bcmap":""),a=this.isCompressed?u.CMapCompressionType.BINARY:u.CMapCompressionType.NONE,e.abrupt("return",this._fetchData(n,a).catch(function(e){throw new Error("Unable to load ".concat(i.isCompressed?"binary ":"","CMap at: ").concat(n))}));case 8:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"_fetchData",value:function(e,t){(0,u.unreachable)("Abstract method _fetchData called.")}}]),r}();t.BaseCMapReaderFactory=k,t.DOMCMapReaderFactory=function(){i(t,k);var e=d(t);function t(){return m(this,t),e.apply(this,arguments)}return v(t,[{key:"fetchData",value:function(e,a){var i=this;return A()&&x(e,document.baseURI)?fetch(e).then(function(){var t=f(o.default.mark(function e(t){var r;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ok){e.next=2;break}throw new Error(t.statusText);case 2:if(i.isCompressed)return e.t0=Uint8Array,e.next=6,t.arrayBuffer();e.next=10;break;case 6:e.t1=e.sent,r=new e.t0(e.t1),e.next=15;break;case 10:return e.t2=u.stringToBytes,e.next=13,t.text();case 13:e.t3=e.sent,r=(0,e.t2)(e.t3);case 15:return e.abrupt("return",{cMapData:r,compressionType:a});case 16:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}()):new Promise(function(t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),i.isCompressed&&(n.responseType="arraybuffer"),n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE){var e;if(200===n.status||0===n.status)if(i.isCompressed&&n.response?e=new Uint8Array(n.response):!i.isCompressed&&n.responseText&&(e=(0,u.stringToBytes)(n.responseText)),e)return void t({cMapData:e,compressionType:a});r(new Error(n.statusText))}},n.send(null)})}}]),t}(),t.DOMSVGFactory=function(){function e(){m(this,e)}return v(e,[{key:"create",value:function(e,t){(0,u.assert)(0<e&&0<t,"Invalid SVG dimensions");var r=document.createElementNS(b,"svg:svg");return r.setAttribute("version","1.1"),r.setAttribute("width",e+"px"),r.setAttribute("height",t+"px"),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 "+e+" "+t),r}},{key:"createElement",value:function(e){return(0,u.assert)("string"==typeof e,"Invalid SVG element type"),document.createElementNS(b,e)}}]),e}(),t.PageViewport=function(){function g(e){var t=e.viewBox,r=e.scale,n=e.rotation,a=e.offsetX,i=void 0===a?0:a,o=e.offsetY,s=void 0===o?0:o,a=e.dontFlip,o=void 0!==a&&a;m(this,g),this.viewBox=t,this.scale=r,this.rotation=n,this.offsetX=i,this.offsetY=s;var c,u,l,f,h,d,p,e=(t[2]+t[0])/2,a=(t[3]+t[1])/2;switch(n=(n%=360)<0?n+360:n){case 180:c=-1,l=u=0,f=1;break;case 90:l=u=1,f=c=0;break;case 270:l=u=-1,f=c=0;break;case 0:l=u=0,f=-(c=1);break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}o&&(l=-l,f=-f),t=0===c?(h=Math.abs(a-t[1])r+i,d=Math.abs(e-t[0])r+s,p=Math.abs(t[3]-t[1])r,Math.abs(t[2]-t[0])r):(h=Math.abs(e-t[0])r+i,d=Math.abs(a-t[1])r+s,p=Math.abs(t[2]-t[0])r,Math.abs(t[3]-t[1])r),this.transform=[cr,ur,lr,fr,h-cre-lra,d-ure-fra],this.width=p,this.height=t}return v(g,[{key:"clone",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,r=void 0===t?this.scale:t,n=e.rotation,a=void 0===n?this.rotation:n,t=e.offsetX,n=void 0===t?this.offsetX:t,t=e.offsetY,t=void 0===t?this.offsetY:t,e=e.dontFlip,e=void 0!==e&&e;return new g({viewBox:this.viewBox.slice(),scale:r,rotation:a,offsetX:n,offsetY:t,dontFlip:e})}},{key:"convertToViewportPoint",value:function(e,t){return u.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=u.Util.applyTransform([e[0],e[1]],this.transform),e=u.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],e[0],e[1]]}},{key:"convertToPdfPoint",value:function(e,t){return u.Util.applyInverseTransform([e,t],this.transform)}}]),g}(),t.RenderingCancelledException=function(){i(n,u.BaseException);var r=d(n);function n(e,t){return m(this,n),(e=r.call(this,e)).type=t,e}return n}();var S,={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function A(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function x(e,t){try{var r=(t?new URL(e,t):new URL(e)).protocol;return"http:"===r||"https:"===r}catch(e){return!1}}t.LinkTarget=_,t.StatTimer=function(){function e(){m(this,e),this.started=Object.create(null),this.times=[]}return v(e,[{key:"time",value:function(e){e in this.started&&(0,u.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,u.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}},{key:"toString",value:function(){var e,t=[],r=0,n=l(this.times);try{for(n.s();!(e=n.n()).done;){var a=e.value.name;a.length>r&&(r=a.length)}}catch(e){n.e(e)}finally{n.f()}var i,o=l(this.times);try{for(o.s();!(i=o.n()).done;){var s=i.value,c=s.end-s.start;t.push("".concat(s.name.padEnd(r)," ").concat(c,"ms\n"))}}catch(e){o.e(e)}finally{o.f()}return t.join("")}}]),e}(),t.PDFDateString=function(){function e(){m(this,e)}return v(e,null,[{key:"toDateObject",value:function(e){if(!e||!(0,u.isString)(e))return null;var t=(S=S||new RegExp("^D:(\d{4})(\d{2})?(\d{2})?(\d{2})?(\d{2})?(\d{2})?([Z|+|-])?(\d{2})?'?(\d{2})?'?")).exec(e);if(!t)return null;var r=parseInt(t[1],10),n=1<=(n=parseInt(t[2],10))&&n<=12?n-1:0,a=1<=(a=parseInt(t[3],10))&&a<=31?a:1,i=0<=(i=parseInt(t[4],10))&&i<=23?i:0,o=0<=(o=parseInt(t[5],10))&&o<=59?o:0,s=0<=(s=parseInt(t[6],10))&&s<=59?s:0,c=t[7]||"Z",e=0<=(e=parseInt(t[8],10))&&e<=23?e:0,t=0<=(t=parseInt(t[9],10)||0)&&t<=59?t:0;return"-"===c?(i+=e,o+=t):"+"===c&&(i-=e,o-=t),new Date(Date.UTC(r,n,a,i,o,s))}}]),e}()},function(e,t,r){"use strict";e.exports=r(3)},function(e,t,r){"use strict";!function(t){function P(e){return(P="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)}t=function(o){var c,e=Object.prototype,u=e.hasOwnProperty,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",a=t.toStringTag||"@@toStringTag";function i(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(e){i=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var a,i,o,s,t=t&&t.prototype instanceof m?t:m,t=Object.create(t.prototype),n=new x(n||[]);return t._invoke=(a=e,i=r,o=n,s=f,function(e,t){if(s===d)throw new Error("Generator is already running");if(s===p){if("throw"===e)throw t;return T()}for(o.method=e,o.arg=t;;){var r=o.delegate;if(r){var n=function e(t,r){var n=t.iterator[r.method];if(n===c){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=c,e(t,r),"throw"===r.method))return g;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}n=l(n,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,g;var n=n.arg;if(!n)return r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g;{if(!n.done)return n;r[t.resultName]=n.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=c)}r.delegate=null;return g}(r,o);if(n){if(n===g)continue;return n}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(s===f)throw s=p,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);s=d;n=l(a,i,o);if("normal"===n.type){if(s=o.done?p:h,n.arg!==g)return{value:n.arg,done:o.done}}else"throw"===n.type&&(s=p,o.method="throw",o.arg=n.arg)}}),t}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}o.wrap=s;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",g={};function m(){}function v(){}function y(){}var b={};b[n]=function(){return this};t=Object.getPrototypeOf,t=t&&t(t(C([])));t&&t!==e&&u.call(t,n)&&(b=t);var w=y.prototype=m.prototype=Object.create(b);function k(e){["next","throw","return"].forEach(function(t){i(e,t,function(e){return this._invoke(t,e)})})}function S(o,s){var t;this.invoke=function(r,n){function e(){return new s(function(e,t){!function t(e,r,n,a){e=l(o[e],o,r);if("throw"!==e.type){var i=e.arg,r=i.value;return r&&"object"===P(r)&&u.call(r,"await")?s.resolve(r.await).then(function(e){t("next",e,n,a)},function(e){t("throw",e,n,a)}):s.resolve(r).then(function(e){i.value=e,n(i)},function(e){return t("throw",e,n,a)})}a(e.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}}function (e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function C(t){if(t){var e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,e=function e(){for(;++r<t.length;)if(u.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=c,e.done=!0,e};return e.next=e}}return{next:T}}function T(){return{value:c,done:!0}}return((v.prototype=w.constructor=y).constructor=v).displayName=i(y,a,"GeneratorFunction"),o.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.proto=y,i(e,a,"GeneratorFunction")),e.prototype=Object.create(w),e},o.awrap=function(e){return{__await:e}},k(S.prototype),S.prototype[r]=function(){return this},o.AsyncIterator=S,o.async=function(e,t,r,n,a){void 0===a&&(a=Promise);var i=new S(s(e,t,r,n),a);return o.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},k(w),i(w,a,"Generator"),w[n]=function(){return this},w.toString=function(){return"[object Generator]"},o.keys=function(r){var e,n=[];for(e in r)n.push(e);return n.reverse(),function e(){for(;n.length;){var t=n.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},o.values=C,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&u.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=c)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function e(e,t){return i.type="throw",i.arg=r,n.next=e,t&&(n.method="next",n.arg=c),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var a=this.tryEntries[t],i=a.completion;if("root"===a.tryLoc)return e("end");if(a.tryLoc<=this.prev){var o=u.call(a,"catchLoc"),s=u.call(a,"finallyLoc");if(o&&s){if(this.prev<a.catchLoc)return e(a.catchLoc,!0);if(this.prev<a.finallyLoc)return e(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return e(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return e(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&u.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}var i=(a=a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc?null:a)?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n,a=r.completion;return"throw"===a.type&&(n=a.arg,A(r)),n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=c),g}},o}("object"===P(t)?t.exports:{});try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}.call(this,r(4)(e))},function(e,t,r){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e){return(i="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)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function c(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=u(r);return e=n?(e=u(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),t=this,!(e=e)||"object"!==i(e)&&"function"!=typeof e?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=w,t.arraysToBytes=function(e){var t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];for(var r=0,n=0;n<t;n++)r+=w(e[n]);for(var a=0,i=new Uint8Array(r),o=0;o<t;o++){var s=e[o],c=(s=!(s instanceof Uint8Array)?"string"==typeof s?b(s):new Uint8Array(s):s).byteLength;i.set(s,a),a+=c}return i},t.assert=p,t.bytesToString=function(e){p(null!==e&&"object"===i(e)&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length;if(t<8192)return String.fromCharCode.apply(null,e);for(var r=[],n=0;n<t;n+=8192){var a=Math.min(n+8192,t),a=e.subarray(n,a);r.push(String.fromCharCode.apply(null,a))}return r.join("")},t.createPromiseCapability=function(){var e=Object.create(null),n=!1;return Object.defineProperty(e,"settled",{get:function(){return n}}),e.promise=new Promise(function(t,r){e.resolve=function(e){n=!0,t(e)},e.reject=function(e){n=!0,r(e)}}),e},t.escapeString=function(e){return e.replace(/([()\])/g,"\$1")},t.getModificationDate=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:new Date(Date.now());return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),(e.getUTCDate()+1).toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getVerbosityLevel=function(){return f},t.info=function(e){f>=l.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===i(e)&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,r){return e.length===r.length&&e.every(function(e,t){return e===r[t]})},t.isBool=function(e){return"boolean"==typeof e},t.isNum=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSameOrigin=function(e,t){var r;try{if(!(r=new URL(e)).origin||"null"===r.origin)return!1}catch(e){return!1}t=new URL(t,r);return r.origin===t.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{var r=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch(e){}return null},t.removeNullCharacters=function(e){return"string"==typeof e?e.replace(y,""):(h("The argument for removeNullCharacters must be a string."),e)},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(f=e)},t.shadow=g,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=b,t.stringToPDFString=function(e){var t=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(var n=2;n<t;n+=2)r.push(String.fromCharCode(e.charCodeAt(n)<<8|e.charCodeAt(n+1)));else if("ÿ"===e[0]&&"þ"===e[1])for(var a=2;a<t;a+=2)r.push(String.fromCharCode(e.charCodeAt(a+1)<<8|e.charCodeAt(a)));else for(var i=0;i<t;++i){var o=S[e.charCodeAt(i)];r.push(o?String.fromCharCode(o):e.charAt(i))}return r.join("")},t.stringToUTF8String=function(e){return decodeURIComponent(escape(e))},t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=h,t.unreachable=d,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,r(6);t.IDENTITY_MATRIX=[1,0,0,1,0,0];t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.TextRenderingMode={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};t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.AnnotationType={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};t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"};t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReplyType={GROUP:"Group",REPLY:"R"};t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFieldFlag={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};t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var l={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=l;t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2};t.OPS={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};t.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent"};t.PasswordResponses={NEED_PASSWORD:1,INCORRECTPASSWORD:2};var f=l.WARNINGS;function h(e){f>=l.WARNINGS&&console.log("Warning: ".concat(e))}function d(e){throw new Error(e)}function p(e,t){e||d(t)}function g(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}var m=(v.prototype=new Error,v.constructor=v);function v(e){this.constructor===v&&d("Cannot initialize BaseException."),this.message=e,this.name=this.constructor.name}t.BaseException=m,t.PasswordException=function(){o(n,m);var r=c(n);function n(e,t){return a(this,n),(e=r.call(this,e)).code=t,e}return n}(),t.UnknownErrorException=function(){o(n,m);var r=c(n);function n(e,t){return a(this,n),(e=r.call(this,e)).details=t,e}return n}(),t.InvalidPDFException=function(){o(t,m);var e=c(t);function t(){return a(this,t),e.apply(this,arguments)}return t}(),t.MissingPDFException=function(){o(t,m);var e=c(t);function t(){return a(this,t),e.apply(this,arguments)}return t}(),t.UnexpectedResponseException=function(){o(n,m);var r=c(n);function n(e,t){return a(this,n),(e=r.call(this,e)).status=t,e}return n}(),t.FormatError=function(){o(t,m);var e=c(t);function t(){return a(this,t),e.apply(this,arguments)}return t}(),t.AbortException=function(){o(t,m);var e=c(t);function t(){return a(this,t),e.apply(this,arguments)}return t}();var y=/\x00/g;function b(e){p("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,r=new Uint8Array(t),n=0;n<t;++n)r[n]=255&e.charCodeAt(n);return r}function w(e){return void 0!==e.length?e.length:(p(void 0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}t.IsLittleEndianCached={get value(){return g(this,"value",((e=new Uint8Array(4))[0]=1)===new Uint32Array(e.buffer,0,1)[0]);var e}},t.IsEvalSupportedCached={get value(){return g(this,"value",function(){try{return new Function(""),!0}catch(e){return!1}}())}};var k=["rgb(",0,",",0,",",0,")"];t.Util=function(){function o(){a(this,o)}var e,t,r;return e=o,r=[{key:"makeCssRgb",value:function(e,t,r){return k[1]=e,k[3]=t,k[5]=r,k.join("")}},{key:"transform",value: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]]}},{key:"applyTransform",value:function(e,t){return[e[0]t[0]+e[1]t[2]+t[4],e[0]t[1]+e[1]t[3]+t[5]]}},{key:"applyInverseTransform",value:function(e,t){var r=t[0]t[3]-t[1]t[2];return[(e[0]t[3]-e[1]t[2]+t[2]t[5]-t[4]t[3])/r,(-e[0]t[1]+e[1]t[0]+t[4]t[1]-t[5]t[0])/r]}},{key:"getAxialAlignedBoundingBox",value:function(e,t){var r=o.applyTransform(e,t),n=o.applyTransform(e.slice(2,4),t),a=o.applyTransform([e[0],e[3]],t),t=o.applyTransform([e[2],e[1]],t);return[Math.min(r[0],n[0],a[0],t[0]),Math.min(r[1],n[1],a[1],t[1]),Math.max(r[0],n[0],a[0],t[0]),Math.max(r[1],n[1],a[1],t[1])]}},{key:"inverseTransform",value: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]}},{key:"apply3dTransform",value: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]]}},{key:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]t[0]+e[1]t[2],n=e[0]t[1]+e[1]t[3],a=e[2]t[0]+e[3]t[2],e=e[2]t[1]+e[3]t[3],t=(r+e)/2,a=Math.sqrt((r+e)(r+e)-4(re-a*n))/2,n=t-a||1;return[Math.sqrt(t+a||1),Math.sqrt(n)]}},{key:"normalizeRect",value: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}},{key:"intersect",value:function(e,t){function r(e,t){return e-t}var n=[e[0],e[2],t[0],t[2]].sort(r),a=[e[1],e[3],t[1],t[3]].sort(r),i=[];return e=o.normalizeRect(e),t=o.normalizeRect(t),n[0]===e[0]&&n[1]===t[0]||n[0]===t[0]&&n[1]===e[0]?(i[0]=n[1],i[2]=n[2],a[0]===e[1]&&a[1]===t[1]||a[0]===t[1]&&a[1]===e[1]?(i[1]=a[1],i[3]=a[2],i):null):null}}],(t=null)&&n(e.prototype,t),r&&n(e,r),o}();var S=[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];var ,r=(="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",function(e,t){if(!(2<arguments.length&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var r=new Blob([e],{type:t});return URL.createObjectURL(r)}for(var n="data:".concat(t,";base64,"),a=0,i=e.length;a<i;a+=3){var o=255&e[a],s=255&e[a+1],c=255&e[a+2];n+=[o>>2]+[(3&o)<<4|s>>4]+[a+1<i?(15&s)<<2|c>>6:64]+_[a+2<i?63&c:64]}return n});t.createObjectURL=r},function(e,t,r){"use strict";var n,a,i,o,s,c,u,l=r(7);function f(e){return(f="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)}"undefined"!=typeof globalThis&&globalThis._pdfjsCompatibilityChecked||("undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=r(8)),globalThis._pdfjsCompatibilityChecked=!0,n="object"===("undefined"==typeof window?"undefined":f(window))&&"object"===("undefined"==typeof document?"undefined":f(document)),s="undefined"!=typeof navigator&&navigator.userAgent||"",a=/Trident/.test(s),!globalThis.btoa&&l.isNodeJS&&(globalThis.btoa=function(e){return Buffer.from(e,"binary").toString("base64")}),!globalThis.atob&&l.isNodeJS&&(globalThis.atob=function(e){return Buffer.from(e,"base64").toString("binary")}),n&&void 0===Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),n&&!l.isNodeJS&&((s=document.createElement("div")).classList.add("testOne","testTwo"),!0===s.classList.contains("testOne")&&!0===s.classList.contains("testTwo")||(c=DOMTokenList.prototype.add,u=DOMTokenList.prototype.remove,DOMTokenList.prototype.add=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=0,a=t;n<a.length;n++){var i=a[n];c.call(this,i)}},DOMTokenList.prototype.remove=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=0,a=t;n<a.length;n++){var i=a[n];u.call(this,i)}})),n&&!l.isNodeJS&&!1!==document.createElement("div").classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(e){var t=1<arguments.length?!!arguments[1]:!this.contains(e);return thist?"add":"remove",t}),n&&a&&(i=window.history.pushState,o=window.history.replaceState,window.history.pushState=function(e,t,r){i.apply(this,void 0===r?[e,t]:[e,t,r])},window.history.replaceState=function(e,t,r){o.apply(this,void 0===r?[e,t]:[e,t,r])}),String.prototype.startsWith||r(53),String.prototype.endsWith||r(64),String.prototype.includes||r(66),Array.prototype.includes||r(68),Array.from||r(76),Object.assign||r(98),Object.fromEntries||r(101),Math.log2||(Math.log2=r(105)),Number.isNaN||(Number.isNaN=r(107)),Number.isInteger||(Number.isInteger=r(109)),Uint8Array.prototype.slice||r(112),globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=r(117)),globalThis.URL=r(138),function(){var e=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function(e){e.close()}}),e=!0}catch(e){}e||(globalThis.ReadableStream=r(145).ReadableStream)}(),globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=r(146)),globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=r(153)),globalThis.WeakMap||(globalThis.WeakMap=r(155)),globalThis.WeakSet||(globalThis.WeakSet=r(161)),String.prototype.codePointAt||r(163),String.fromCodePoint||(String.fromCodePoint=r(165)),globalThis.Symbol||r(167),String.prototype.padStart||r(190),String.prototype.padEnd||r(195),Object.values||(Object.values=r(197)),Object.entries||(Object.entries=r(200)))},function(e,t,r){"use strict";function n(e){return(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})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var a=!("object"!==("undefined"==typeof process?"undefined":n(process))||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=a},function(e,t,r){r(9),e.exports=r(11)},function(e,t,r){r(10)({global:!0}... ^ error during build: SyntaxError: Unexpected token (1:41169) in /Users/parkjh/Documents/dev/Upbox-2.0-Front-Application/node_modules/vue-pdf-embed/dist/vue3-pdf-embed.js at Object.pp$4.raise (file:///Users/parkjh/Documents/dev/Upbox-2.0-Front-Application/node_modules/rollup/dist/es/shared/node-entry.js:20830:13) at Object.pp$9.unexpected (file:///Users/parkjh/Documents/dev/Upbox-2.0-Front-Application/node_modules/rollup/dist/es/shared/node-entry.js:18131:8) at Object.pp$5.parseIdent (file:///Users/parkjh/Documents/dev/Upbox-2.0-Front-Application/node_modules/rollup/dist/es/shared/node-entry.js:20761:10) at Object.pp$5.parsePropertyName (file:///Users/parkjh/Documents/dev/Upbox-2.0-Front-Application/node_modules/rollup/dist/es/shared/node-entry.js:20565:109) at Object.pp$5.parseProperty (file:///Users/parkjh/Documents/dev/Upbox-2.0-Front-Application/node_modules/rollup/dist/es/shared/node-entry.js:20492:8) at Object.pp$5.parseObj (file:///Users/parkjh/Documents/dev/Upbox-2.0-Front-Application/node_modules/rollup/dist/es/shared/node-entry.js:20455:21) at Object.pp$5.parseExprAtom (file:///Users/parkjh/Documents/dev/Upbox-2.0-Front-Application/node_modules/rollup/dist/es/shared/node-entry.js:20190:17) at Object.pp$5.parseExprSubscripts (file:///Users/parkjh/Documents/dev/Upbox-2.0-Front-Application/node_modules/rollup/dist/es/shared/node-entry.js:20006:19) at Object.pp$5.parseMaybeUnary (file:///Users/parkjh/Documents/dev/Upbox-2.0-Front-Application/node_modules/rollup/dist/es/shared/node-entry.js:19972:17) at Object.pp$5.parseExprOps (file:///Users/parkjh/Documents/dev/Upbox-2.0-Front-Application/node_modules/rollup/dist/es/shared/node-entry.js:19899:19) error Command failed with exit code 1.

hrynko commented 1 year ago

Hi @parkjunghwan-reco,

May I ask you to create a sample project to reproduce the issue (if it isn't resolved yet)?

giuliowaitforitdavide commented 7 months ago

@hrynko I'm getting the same error, in my case I'm trying to locally test it using Vite

hrynko commented 7 months ago

It's going to be addressed in the next major release (v2). Which will hopefully be published soon.

giuliowaitforitdavide commented 7 months ago

@hrynko may I ask you if you can publish it in prerelease on npm? So I can test it and use it until the major release :D

hrynko commented 7 months ago

Hopefully it will be published soon, but in the meantime you can install the lib via GitHub:

npm i hrynko/vue-pdf-embed#v2
hrynko commented 6 months ago

v2.0.0 has been released