(self.webpackChunk=self.webpackChunk||[]).push([["pdfobject"],{"./node_modules/pdfobject/pdfobject.js":function(M,P){var g,_,v;(function(C,a){_=[],g=a,v=typeof g=="function"?g.apply(P,_):g,v!==void 0&&(M.exports=v)})(this,function(){"use strict";if(typeof window>"u"||window.navigator===void 0||window.navigator.userAgent===void 0)return!1;let C="2.3.0",a=window,f=a.navigator,F=f.userAgent,E=!1,R=function(){let e=a.chrome!==void 0,n=a.safari!==void 0||f.vendor!==void 0&&/Apple/.test(f.vendor)&&/Safari/.test(F),i=a.Mozilla!==void 0||/irefox/.test(F);return e||n||i},L=function(e){var n=null;try{n=new ActiveXObject(e)}catch{n=null}return!!n},O=function(){return"ActiveXObject"in a&&(L("AcroPDF.PDF")||L("PDF.PdfCtrl"))},j=function(){if(f.platform!==void 0&&f.platform==="MacIntel"&&f.maxTouchPoints!==void 0&&f.maxTouchPoints>1||/Mobi|Tablet|Android|iPad|iPhone/.test(F))return!1;let i=typeof f.pdfViewerEnabled=="boolean";return i&&!f.pdfViewerEnabled?!1:i&&f.pdfViewerEnabled||R()||O()}(),I=function(e){let n="",i,l=[],t="";if((e.comment||e.viewrect||e.highlight)&&(e.page||(e.page=1,y("The comment, viewrect, and highlight parameters require a page parameter, but none was specified. Defaulting to page 1."))),e.page&&(l.push("page="+encodeURIComponent(e.page)),delete e.page),e.fdf&&(t=e.fdf,delete e.fdf),e){for(i in e)e.hasOwnProperty(i)&&l.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));t&&l.push("fdf="+encodeURIComponent(t)),n=l.join("&"),n&&(n="#"+n)}return n},y=function(e){return E||console.log("[PDFObject]",e),!1},U=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},S=function(e){let n=document.body;return typeof e=="string"?n=document.querySelector(e):a.jQuery!==void 0&&e instanceof jQuery&&e.length?n=e.get(0):e.nodeType!==void 0&&e.nodeType===1&&(n=e),n},B=function(e,n,i,l){if(window.Blob&&window.URL&&window.URL.createObjectURL){var t=new XMLHttpRequest;t.open("GET",e,!0),t.responseType="blob",t.onload=function(){if(t.status===200){var p=t.response,r=document.createElement("a");r.innerText="Download PDF",r.href=URL.createObjectURL(p),r.setAttribute("download",n),i.innerHTML=l.replace(/\[pdflink\]/g,r.outerHTML)}},t.send()}},k=function(e,n,i,l,t,p,r,m,h,s,b){U(n);let u=i;if(e==="pdfjs"){let d=b.indexOf("?")!==-1?"&":"?";u=b+d+"file="+encodeURIComponent(i)+l}else u+=l;let o=document.createElement("iframe");if(o.className="pdfobject",o.type="application/pdf",o.title=m,o.src=u,o.allow="fullscreen",o.frameborder="0",r&&(o.id=r),!h){let d="border: none;";n!==document.body?d+="width: "+t+"; height: "+p+";":d+="position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;",o.style.cssText=d}let w=["className","type","title","src","style","id","allow","frameborder"];return s&&s.key&&w.indexOf(s.key)===-1&&o.setAttribute(s.key,typeof s.value<"u"?s.value:""),n.classList.add("pdfobject-container"),n.appendChild(o),n.getElementsByTagName("iframe")[0]},x=function(e,n,i){let l=n||!1,t=i||{};E=typeof t.suppressConsole=="boolean"?t.suppressConsole:!1;let p=typeof t.id=="string"?t.id:"",r=t.page||!1,m=t.pdfOpenParams||{},h=typeof t.fallbackLink=="string"||typeof t.fallbackLink=="boolean"?t.fallbackLink:!0,s=t.width||"100%",b=t.height||"100%",u=t.title||"Embedded PDF",o=typeof t.forcePDFJS=="boolean"?t.forcePDFJS:!1,w=typeof t.omitInlineStyles=="boolean"?t.omitInlineStyles:!1,d=t.PDFJS_URL||!1,c=S(l),D="",T=t.customAttribute||{},A="<p>This browser does not support inline PDFs. Please download the PDF to view it: [pdflink]</p>";if(typeof e!="string")return y("URL is not valid");if(!c)return y("Target element cannot be determined");if(r&&(m.page=r),D=I(m),o&&d)return k("pdfjs",c,e,D,s,b,p,u,w,T,d);if(j)return k("iframe",c,e,D,s,b,p,u,w,T);if(d)return k("pdfjs",c,e,D,s,b,p,u,w,T,d);if(h)if(typeof h=="string")c.innerHTML=h.replace(/\[url\]/g,e);else if(e.indexOf("data:application/pdf;base64")!==-1)B(e,"file.pdf",c,A);else{let H="<a href='"+e+"'>Download PDF</a>";c.innerHTML=A.replace(/\[pdflink\]/g,H)}return y("This browser does not support embedded PDFs")};return{embed:function(e,n,i){return x(e,n,i)},pdfobjectversion:function(){return C}(),supportsPDFs:function(){return j}()}})}}]);
