(self.webpackChunk=self.webpackChunk||[]).push([["pdfobject"],{"./node_modules/pdfobject/pdfobject.js":function(O,R){var y,T,v;(function(A,s){T=[],y=s,v=typeof y=="function"?y.apply(R,T):y,v!==void 0&&(O.exports=v)})(this,function(){"use strict";if(typeof window=="undefined"||window.navigator===void 0||window.navigator.userAgent===void 0||window.navigator.mimeTypes===void 0)return!1;let A="2.2.12",s=window.navigator,p=window.navigator.userAgent,L="ActiveXObject"in window,S=window.Promise!==void 0,x=s.mimeTypes["application/pdf"]!==void 0,w=s.platform!==void 0&&s.platform==="MacIntel"&&s.maxTouchPoints!==void 0&&s.maxTouchPoints>1||/Mobi|Tablet|Android|iPad|iPhone/.test(p),U=!w&&s.vendor!==void 0&&/Apple/.test(s.vendor)&&/Safari/.test(p),B=!w&&/irefox/.test(p)&&p.split("rv:").length>1?parseInt(p.split("rv:")[1].split(".")[0],10)>18:!1,I=function(e){var t;try{t=new ActiveXObject(e)}catch(o){t=null}return t},M=!w&&(S||B||x||L&&function(){return!!(I("AcroPDF.PDF")||I("PDF.PdfCtrl"))}()),J=function(e){let t="",o;if(e){for(o in e)e.hasOwnProperty(o)&&(t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o])+"&");t&&(t="#"+t,t=t.slice(0,t.length-1))}return t},_=function(e,t){return t||console.log("[PDFObject] "+e),!1},N=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},X=function(e){let t=document.body;return typeof e=="string"?t=document.querySelector(e):window.jQuery!==void 0&&e instanceof jQuery&&e.length?t=e.get(0):e.nodeType!==void 0&&e.nodeType===1&&(t=e),t},F=function(e,t,o,h,n,u,c,P,m,l,d){N(t);let r=o;if(e==="pdfjs"){let f=d.indexOf("?")!==-1?"&":"?";r=d+f+"file="+encodeURIComponent(o)+h}else r+=h;let a=e==="pdfjs"||e==="iframe"?"iframe":"embed",i=document.createElement(a);if(i.className="pdfobject",i.type="application/pdf",i.title=P,i.src=r,c&&(i.id=c),a==="iframe"&&(i.allow="fullscreen",i.frameborder="0"),!m){let f=a==="embed"?"overflow: auto;":"border: none;";t!==document.body?f+="width: "+n+"; height: "+u+";":f+="position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;",i.style.cssText=f}let k=["className","type","title","src","style","id","allow","frameborder"];return l&&l.key&&k.indexOf(l.key)===-1&&i.setAttribute(l.key,typeof l.value!="undefined"?l.value:""),t.classList.add("pdfobject-container"),t.appendChild(i),t.getElementsByTagName(a)[0]},W=function(e,t,o){let h=t||!1,n=o||{},u=typeof n.id=="string"?n.id:"",c=n.page||!1,P=n.pdfOpenParams||{},m=typeof n.fallbackLink=="string"||typeof n.fallbackLink=="boolean"?n.fallbackLink:!0,l=n.width||"100%",d=n.height||"100%",r=n.title||"Embedded PDF",a=typeof n.assumptionMode=="boolean"?n.assumptionMode:!0,i=typeof n.forcePDFJS=="boolean"?n.forcePDFJS:!1,k=typeof n.supportRedirect=="boolean"?n.supportRedirect:!1,f=typeof n.omitInlineStyles=="boolean"?n.omitInlineStyles:!1,j=typeof n.suppressConsole=="boolean"?n.suppressConsole:!1,H=typeof n.forceIframe=="boolean"?n.forceIframe:!1,D=n.PDFJS_URL||!1,b=X(h),E="",g="",C=n.customAttribute||{},K="<p>This browser does not support inline PDFs. Please download the PDF to view it: <a href='[url]'>Download PDF</a></p>";return typeof e!="string"?_("URL is not valid",j):b?(c&&(P.page=c),g=J(P),i&&D?F("pdfjs",b,e,g,l,d,u,r,f,C,D):M||a&&!w?F(H||k||U?"iframe":"embed",b,e,g,l,d,u,r,f,C):D?F("pdfjs",b,e,g,l,d,u,r,f,C,D):(m&&(E=typeof m=="string"?m:K,b.innerHTML=E.replace(/\[url\]/g,e)),_("This browser does not support embedded PDFs",j))):_("Target element cannot be determined",j)};return{embed:function(e,t,o){return W(e,t,o)},pdfobjectversion:function(){return A}(),supportsPDFs:function(){return M}()}})}}]);
