import{_asve,gasYc}from"./@babel.80d29b7b.js";import{zas$o,uasXc}from"./fflate.0418c72f.js";constKc="modulepreload",Zc=function(i){return"/admin/"+i},Ms={},Qo=function(e,n,a){if(!n||n.length===0)returne();constu=document.getElementsByTagName("link");returnPromise.all(n.map(o=>{if(o=Zc(o),oinMs)return;Ms[o]=!0;constl=o.endsWith(".css"),h=l?'[rel="stylesheet"]':"";if(!!a)for(letA=u.length-1;A>=0;A--){constN=u[A];if(N.href===o&&(!l||N.rel==="stylesheet"))return}elseif(document.querySelector(`link[href="${o}"]${h}`))return;constg=document.createElement("link");if(g.rel=l?"stylesheet":Kc,l||(g.as="script",g.crossOrigin=""),g.href=o,document.head.appendChild(g),l)returnnewPromise((A,N)=>{g.addEventListener("load",A),g.addEventListener("error",()=>N(newError(`Unable to preload CSS for ${o}`)))})})).then(()=>e())};varUt=function(){returntypeofwindow<"u"?window:typeofglobal<"u"?global:typeofself<"u"?self:this}();functionGo(){Ut.console&&typeofUt.console.log=="function"&&Ut.console.log.apply(Ut.console,arguments)}varme={log:Go,warn:function(i){Ut.console&&(typeofUt.console.warn=="function"?Ut.console.warn.apply(Ut.console,arguments):Go.call(null,arguments))},error:function(i){Ut.console&&(typeofUt.console.error=="function"?Ut.console.error.apply(Ut.console,arguments):Go(i))}};functionJo(i,e,n){vara=newXMLHttpRequest;a.open("GET",i),a.responseType="blob",a.onload=function(){Rr(a.response,e,n)},a.onerror=function(){me.error("could not download file")},a.send()}functionEs(i){vare=newXMLHttpRequest;e.open("HEAD",i,!1);try{e.send()}catch{}returne.status>=200&&e.status<=299}functionZa(i){try{i.dispatchEvent(newMouseEvent("click"))}catch{vare=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),i.dispatchEvent(e)}}varea,ts,Rr=Ut.saveAs||((typeofwindow>"u"?"undefined":ve(window))!=="object"||window!==Ut?function(){}:typeofHTMLAnchorElement<"u"&&"download"inHTMLAnchorElement.prototype?function(i,e,n){vara=Ut.URL||Ut.webkitURL,u=document.createElement("a");e=e||i.name||"download",u.download=e,u.rel="noopener",typeofi=="string"?(u.href=i,u.origin!==location.origin?Es(u.href)?Jo(i,e,n):Za(u,u.target="_blank"):Za(u)):(u.href=a.createObjectURL(i),setTimeout(function(){a.revokeObjectURL(u.href)},4e4),setTimeout(function(){Za(u)},0))}:"msSaveOrOpenBlob"innavigator?function(i,e,n){if(e=e||i.name||"download",typeofi=="string")if(Es(i))Jo(i,e,n);else{vara=document.createElement("a");a.href=i,a.target="_blank",setTimeout(function(){Za(a)})}elsenavigator.msSaveOrOpenBlob(function(u,o){returno===void0?o={autoBom:!1}:ve(o)!=="object"&&(me.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?newBlob([String.fromCharCode(65279),u],{type:u.type}):u}(i,n),e)}:function(i,e,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeofi=="string")returnJo(i,e,n);varu=i.type==="application/octet-stream",o=/constructor/i.test(Ut.HTMLElement)||Ut.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||u&&o)&&(typeofFileReader>"u"?"undefined":ve(FileReader))==="object"){varh=newFileReader;h.onloadend=function(){varA=h.result;A=l?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=A:location=A,a=null},h.readAsDataURL(i)}else{varf=Ut.URL||Ut.webkitURL,g=f.createObjectURL(i);a?a.location=g:location.href=g,a=null,setTimeout(function(){f.revokeObjectURL(g)},4e4)}});/**
Q`),ln(Y,!0),gn({data:it,filters:zn(),objectId:Y}),O("endobj"),D},kr=p.__private__.putPages=function(){var s,v,C=[];for(s=1;s<=Ae;s++)Jt[s].objId=Oe(),Jt[s].contentsObjId=Oe();for(s=1;s<=Ae;s++)C.push(Un({number:s,data:Lt[s],objId:Jt[s].objId,contentsObjId:Jt[s].contentsObjId,mediaBox:Jt[s].mediaBox,cropBox:Jt[s].cropBox,bleedBox:Jt[s].bleedBox,trimBox:Jt[s].trimBox,artBox:Jt[s].artBox,userUnit:Jt[s].userUnit,rootDictionaryObjId:Zn,resourceDictionaryObjId:_n}));ln(Zn,!0),O("<</Type /Pages");var D="/Kids [";for(v=0;v<Ae;v++)D+=C[v]+" 0 R ";O(D+"]"),O("/Count "+Ae),O(">>"),O("endobj"),ue.publish("postPutPages")},Jr=function(s){ue.publish("putFont",{font:s,out:O,newObject:qe,putStream:gn}),s.isAlreadyPutted!==!0&&(s.objectNumber=qe(),O("<<"),O("/Type /Font"),O("/BaseFont /"+xi(s.postScriptName)),O("/Subtype /Type1"),typeof s.encoding=="string"&&O("/Encoding /"+s.encoding),O("/FirstChar 32"),O("/LastChar 255"),O(">>"),O("endobj"))},Yr=function(){for(var s in pe)pe.hasOwnProperty(s)&&(N===!1||N===!0&&_.hasOwnProperty(s))&&Jr(pe[s])},Xr=function(s){s.objectNumber=qe();var v=[];v.push({key:"Type",value:"/XObject"}),v.push({key:"Subtype",value:"/Form"}),v.push({key:"BBox",value:"["+[rt(s.x),rt(s.y),rt(s.x+s.width),rt(s.y+s.height)].join(" ")+"]"}),v.push({key:"Matrix",value:"["+s.matrix.toString()+"]"});var C=s.pages[1].join(`
`);gn({data:C,additionalKeyValues:v,objectId:s.objectNumber}),O("endobj")},Kr=function(){for(var s in He)He.hasOwnProperty(s)&&Xr(He[s])},sa=function(s,v){var C,D=[],Y=1/(v-1);for(C=0;C<1;C+=Y)D.push(C);if(D.push(1),s[0].offset!=0){var it={offset:0,color:s[0].color};s.unshift(it)}if(s[s.length-1].offset!=1){var yt={offset:1,color:s[s.length-1].color};s.push(yt)}for(var It="",Dt=0,Zt=0;Zt<D.length;Zt++){for(C=D[Zt];C>s[Dt+1].offset;)Dt++;var Yt=s[Dt].offset,re=(C-Yt)/(s[Dt+1].offset-Yt),Le=s[Dt].color,xe=s[Dt+1].color;It+=W(Math.round((1-re)*Le[0]+re*xe[0]).toString(16))+W(Math.round((1-re)*Le[1]+re*xe[1]).toString(16))+W(Math.round((1-re)*Le[2]+re*xe[2]).toString(16))}return It.trim()},ro=function(s,v){v||(v=21);var C=qe(),D=sa(s.colors,v),Y=[];Y.push({key:"FunctionType",value:"0"}),Y.push({key:"Domain",value:"[0.0 1.0]"}),Y.push({key:"Size",value:"["+v+"]"}),Y.push({key:"BitsPerSample",value:"8"}),Y.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Y.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),gn({data:D,additionalKeyValues:Y,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:C}),O("endobj"),s.objectNumber=qe(),O("<< /ShadingType "+s.type),O("/ColorSpace /DeviceRGB");var it="/Coords ["+rt(parseFloat(s.coords[0]))+" "+rt(parseFloat(s.coords[1]))+" ";s.type===2?it+=rt(parseFloat(s.coords[2]))+" "+rt(parseFloat(s.coords[3])):it+=rt(parseFloat(s.coords[2]))+" "+rt(parseFloat(s.coords[3]))+" "+rt(parseFloat(s.coords[4]))+" "+rt(parseFloat(s.coords[5])),O(it+="]"),s.matrix&&O("/Matrix ["+s.matrix.toString()+"]"),O("/Function "+C+" 0 R"),O("/Extend [true true]"),O(">>"),O("endobj")},io=function(s,v){var C=Oe(),D=qe();v.push({resourcesOid:C,objectOid:D}),s.objectNumber=D;var Y=[];Y.push({key:"Type",value:"/Pattern"}),Y.push({key:"PatternType",value:"1"}),Y.push({key:"PaintType",value:"1"}),Y.push({key:"TilingType",value:"1"}),Y.push({key:"BBox",value:"["+s.boundingBox.map(rt).join(" ")+"]"}),Y.push({key:"XStep",value:rt(s.xStep)}),Y.push({key:"YStep",value:rt(s.yStep)}),Y.push({key:"Resources",value:C+" 0 R"}),s.matrix&&Y.push({key:"Matrix",value:"["+s.matrix.toString()+"]"}),gn({data:s.stream,additionalKeyValues:Y,objectId:s.objectNumber}),O("endobj")},Zr=function(s){var v;for(v in ce)ce.hasOwnProperty(v)&&(ce[v]instanceof Nr?ro(ce[v]):ce[v]instanceof Tr&&io(ce[v],s))},ca=function(s){for(var v in s.objectNumber=qe(),O("<<"),s)switch(v){case"opacity":O("/ca "+bt(s[v]));break;case"stroke-opacity":O("/CA "+bt(s[v]))}O(">>"),O("endobj")},ao=function(){var s;for(s in Ne)Ne.hasOwnProperty(s)&&ca(Ne[s])},Si=function(){for(var s in O("/XObject <<"),He)He.hasOwnProperty(s)&&He[s].objectNumber>=0&&O("/"+s+" "+He[s].objectNumber+" 0 R");ue.publish("putXobjectDict"),O(">>")},oo=function(){Je.oid=qe(),O("<<"),O("/Filter /Standard"),O("/V "+Je.v),O("/R "+Je.r),O("/U <"+Je.toHexString(Je.U)+">"),O("/O <"+Je.toHexString(Je.O)+">"),O("/P "+Je.P),O(">>"),O("endobj")},ua=function(){for(var s in O("/Font <<"),pe)pe.hasOwnProperty(s)&&(N===!1||N===!0&&_.hasOwnProperty(s))&&O("/"+s+" "+pe[s].objectNumber+" 0 R");O(">>")},so=function(){if(Object.keys(ce).length>0){for(var s in O("/Shading <<"),ce)ce.hasOwnProperty(s)&&ce[s]instanceof Nr&&ce[s].objectNumber>=0&&O("/"+s+" "+ce[s].objectNumber+" 0 R");ue.publish("putShadingPatternDict"),O(">>")}},$r=function(s){if(Object.keys(ce).length>0){for(var v in O("/Pattern <<"),ce)ce.hasOwnProperty(v)&&ce[v]instanceof p.TilingPattern&&ce[v].objectNumber>=0&&ce[v].objectNumber<s&&O("/"+v+" "+ce[v].objectNumber+" 0 R");ue.publish("putTilingPatternDict"),O(">>")}},co=function(){if(Object.keys(Ne).length>0){var s;for(s in O("/ExtGState <<"),Ne)Ne.hasOwnProperty(s)&&Ne[s].objectNumber>=0&&O("/"+s+" "+Ne[s].objectNumber+" 0 R");ue.publish("putGStateDict"),O(">>")}},Pe=function(s){ln(s.resourcesOid,!0),O("<<"),O("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ua(),so(),$r(s.objectOid),co(),Si(),O(">>"),O("endobj")},la=function(){var s=[];Yr(),ao(),Kr(),Zr(s),ue.publish("putResources"),s.forEach(Pe),Pe({resourcesOid:_n,objectOid:Number.MAX_SAFE_INTEGER}),ue.publish("postPutResources")},ha=function(){ue
`)[0].split("<")[0]+": "+D.message;if(!Ut.console)throw new Error(C);Ut.console.error(C,D),Ut.alert&&alert(C)}},s.foo.bar=s,s.foo},Qr=function(s,v){var C,D,Y,it,yt,It,Dt,Zt,Yt;if(Y=(v=v||{}).sourceEncoding||"Unicode",yt=v.outputEncoding,(v.autoencode||yt)&&pe[ee].metadata&&pe[ee].metadata[Y]&&pe[ee].metadata[Y].encoding&&(it=pe[ee].metadata[Y].encoding,!yt&&pe[ee].encoding&&(yt=pe[ee].encoding),!yt&&it.codePages&&(yt=it.codePages[0]),typeof yt=="string"&&(yt=it[yt]),yt)){for(Dt=!1,It=[],C=0,D=s.length;C<D;C++)(Zt=yt[s.charCodeAt(C)])?It.push(String.fromCharCode(Zt)):It.push(s[C]),It[C].charCodeAt(0)>>8&&(Dt=!0);s=It.join("")}for(C=s.length;Dt===void 0&&C!==0;)s.charCodeAt(C-1)>>8&&(Dt=!0),C--;if(!Dt)return s;for(It=v.noBOM?[]:[254,255],C=0,D=s.length;C<D;C++){if((Yt=(Zt=s.charCodeAt(C))>>8)>>8)throw new Error("Character at position "+C+" of string '"+s+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");It.push(Yt),It.push(Zt-(Yt<<8))}return String.fromCharCode.apply(void 0,It)},rn=p.__private__.pdfEscape=p.pdfEscape=function(s,v){return Qr(s,v).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Pi=p.__private__.beginPage=function(s){Lt[++Ae]=[],Jt[Ae]={objId:0,contentsObjId:0,userUnit:Number(h),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(s[0]),topRightY:Number(s[1])}},pa(Ae),at(Lt[j])},da=function(s,v){var C,D,Y;switch(n=v||n,typeof s=="string"&&(C=S(s.toLowerCase()),Array.isArray(C)&&(D=C[0],Y=C[1])),Array.isArray(s)&&(D=s[0]*Ft,Y=s[1]*Ft),isNaN(D)&&(D=u[0],Y=u[1]),(D>14400||Y>14400)&&(me.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),D=Math.min(14400,D),Y=Math.min(14400,Y)),u=[D,Y],n.substr(0,1)){case"l":Y>D&&(u=[Y,D]);break;case"p":D>Y&&(u=[Y,D])}Pi(u),wa(Ci),O(In),Oi!==0&&O(Oi+" J"),Bi!==0&&O(Bi+" j"),ue.publish("addPage",{pageNumber:Ae})},lo=function(s){s>0&&s<=Ae&&(Lt.splice(s,1),Jt.splice(s,1),Ae--,j>Ae&&(j=Ae),this.setPage(j))},pa=function(s){s>0&&s<=Ae&&(j=s)},ho=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return Lt.length-1},ga=function(s,v,C){var D,Y=void 0;return C=C||{},s=s!==void 0?s:pe[ee].fontName,v=v!==void 0?v:pe[ee].fontStyle,D=s.toLowerCase(),we[D]!==void 0&&we[D][v]!==void 0?Y=we[D][v]:we[s]!==void 0&&we[s][v]!==void 0?Y=we[s][v]:C.disableWarning===!1&&me.warn("Unable to look up font label for font '"+s+"', '"+v+"'. Refer to getFontList() for available fonts."),Y||C.noFallback||(Y=we.times[v])==null&&(Y=we.times.normal),Y},fo=p.__private__.putInfo=function(){var s=qe(),v=function(D){return D};for(var C in A!==null&&(v=Je.encryptor(s,0)),O("<<"),O("/Producer ("+rn(v("jsPDF "+Tt.version))+")"),Ht)Ht.hasOwnProperty(C)&&Ht[C]&&O("/"+C.substr(0,1).toUpperCase()+C.substr(1)+" ("+rn(v(Ht[C]))+")");O("/CreationDate ("+rn(v(ct))+")"),O(">>"),O("endobj")},ki=p.__private__.putCatalog=function(s){var v=(s=s||{}).rootDictionaryObjId||Zn;switch(qe(),O("<<"),O("/Type /Catalog"),O("/Pages "+v+" 0 R"),kt||(kt="fullwidth"),kt){case"fullwidth":O("/OpenAction [3 0 R /FitH null]");break;case"fullheight":O("/OpenAction [3 0 R /FitV null]");break;case"fullpage":O("/OpenAction [3 0 R /Fit]");break;case"original":O("/OpenAction [3 0 R /XYZ null null 1]");break;default:var C=""+kt;C.substr(C.length-1)==="%"&&(kt=parseInt(kt)/100),typeof kt=="number"&&O("/OpenAction [3 0 R /XYZ null null "+bt(kt)+"]")}switch(te||(te="continuous"),te){case"continuous":O("/PageLayout /OneColumn");break;case"single":O("/PageLayout /SinglePage");break;case"two":case"twoleft":O("/PageLayout /TwoColumnLeft");break;case"tworight":O("/PageLayout /TwoColumnRight")}Gt&&O("/PageMode /"+Gt),ue.publish("putCatalog"),O(">>"),O("endobj")},po=p.__private__.putTrailer=function(){O("trailer"),O("<<"),O("/Size "+(J+1)),O("/Root "+J+" 0 R"),O("/Info "+(J-1)+" 0 R"),A!==null&&O("/Encrypt "+Je.oid+" 0 R"),O("/ID [ <"+ot+"> <"+ot+"> ]"),O(">>")},go=p.__private__.putHeader=function(){O("%PDF-"+B),O("%\xBA\xDF\xAC\xE0")},mo=p.__private__.putXRef=function(){var s="0000000000";O("xref"),O("0 "+(J+1)),O("00000000
`)},ti=p.__private__.getBlob=function(s){return new Blob([Mt(s)],{type:"application/pdf"})},ei=p.output=p.__private__.output=Fn(function(s,v){switch(typeof(v=v||{})=="string"?v={filename:v}:v.filename=v.filename||"generated.pdf",s){case void 0:return $n();case"save":p.save(v.filename);break;case"arraybuffer":return Mt($n());case"blob":return ti($n());case"bloburi":case"bloburl":if(Ut.URL!==void 0&&typeof Ut.URL.createObjectURL=="function")return Ut.URL&&Ut.URL.createObjectURL(ti($n()))||void 0;me.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var C="",D=$n();try{C=ts(D)}catch{C=ts(unescape(encodeURIComponent(D)))}return"data:application/pdf;filename="+v.filename+";base64,"+C;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ut)==="[object Window]"){var Y="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",it=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';v.pdfObjectUrl&&(Y=v.pdfObjectUrl,it="");var yt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Y+'"'+it+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(v)+");<\/script></body></html>",It=Ut.open();return It!==null&&It.document.write(yt),It}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Ut)==="[object Window]"){var Dt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(v.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+v.filename+'" width="500px" height="400px" /></body></html>',Zt=Ut.open();if(Zt!==null){Zt.document.write(Dt);var Yt=this;Zt.document.documentElement.querySelector("#pdfViewer").onload=function(){Zt.document.title=v.filename,Zt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Yt.output("bloburl"))}}return Zt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Ut)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var re='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",v)+'"></iframe></body></html>',Le=Ut.open();if(Le!==null&&(Le.document.write(re),Le.document.title=v.filename),Le||typeof safari>"u")return Le;break;case"datauri":case"dataurl":return Ut.document.location.href=this.output("datauristring",v);default:return null}}),ma=function(s){return Array.isArray(Pr)===!0&&Pr.indexOf(s)>-1};switch(a){case"pt":Ft=1;break;case"mm":Ft=72/25.4;break;case"cm":Ft=72/2.54;break;case"in":Ft=72;break;case"px":Ft=ma("px_scaling")==1?.75:96/72;break;case"pc":case"em":Ft=12;break;case"ex":Ft=6;break;default:if(typeof a!="number")throw new Error("Invalid unit: "+a);Ft=a}var Je=null;Et(),tt();var vo=function(s){return A!==null?Je.encryptor(s,0):function(v){return v}},va=p.__private__.getPageInfo=p.getPageInfo=function(s){if(isNaN(s)||s%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Jt[s].objId,pageNumber:s,pageContext:Jt[s]}},Vt=p.__private__.getPageInfoByObjId=function(s){if(isNaN(s)||s%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var v in Jt)if(Jt[v].objId===s)break;return va(v)},bo=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Jt[j].objId,pageNumber:j,pageContext:Jt[j]}};p.addPage=function(){return da.apply(this,arguments),this},p.setPage=function(){return pa.apply(this,arguments),at.call(this,Lt[j]),this},p.insertPage=function(s){return this.addPage(),this.movePage(j,s),this},p.movePage=function(s,v){var C,D;if(s>v){C=Lt[s],D=Jt[
`,p=-(o+2),A=0,B=st?I:I+1,M++,S=""}break}return a.text=e,a.fontSize=o,a},$a=function(i,e,n){var a=e.scope.internal.getFont(e.fontName,e.fontStyle),u=e.scope.getStringUnitWidth(i,{font:a,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:a,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:u}},su={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},cu=function(i,e){var n={type:"reference",object:i};e.internal.getPageInfo(i.page).pageContext.annotations.find(function(a){return a.type===n.type&&a.object===n.object})===void 0&&e.internal.getPageInfo(i.page).pageContext.annotations.push(n)},uu=function(i,e){for(var n in i)if(i.hasOwnProperty(n)){var a=n,u=i[n];e.internal.newObjectDeferredBegin(u.objId,!0),ve(u)==="object"&&typeof u.putStream=="function"&&u.putStream(),delete i[a]}},lu=function(i,e){if(e.scope=i,i.internal!==void 0&&(i.internal.acroformPlugin===void 0||i.internal.acroformPlugin.isInitialized===!1)){if(Mn.FieldNum=0,i.internal.acroformPlugin=JSON.parse(JSON.stringify(su)),i.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");os=i.internal.scaleFactor,i.internal.acroformPlugin.acroFormDictionaryRoot=new ic,i.internal.acroformPlugin.acroFormDictionaryRoot.scope=i,i.internal.acroformPlugin.acroFormDictionaryRoot._eventID=i.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(i)}),i.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var a=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var u in a)if(a.hasOwnProperty(u)){var o=a[u];o.objId=void 0,o.hasAnnotation&&cu(o,n)}})(i)}),i.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(i)}),i.internal.events.subscribe("postPutPages",function(n){(function(a,u){var o=!a;for(var l in a||(u.internal.newObjectDeferredBegin(u.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),u.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),a=a||u.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(a.hasOwnProperty(l)){var h=a[l],f=[],g=h.Rect;if(h.Rect&&(h.Rect=au(h.Rect,u)),u.internal.newObjectDeferredBegin(h.objId,!0),h.DA=Bt.createDefaultAppearanceStream(h),ve(h)==="object"&&typeof h.getKeyValueListForStream=="function"&&(f=h.getKeyValueListForStream()),h.Rect=g,h.hasAppearanceStream&&!h.appearanceStreamContent){var A=ou(h);f.push({key:"AP",value:"<</N "+A+">>"}),u.internal.acroformPlugin.xForms.push(A)}if(h.appearanceStreamContent){var N="";for(var _ in h.appearanceStreamContent)if(h.appearanceStreamContent.hasOwnProperty(_)){var p=h.appearanceStreamContent[_];if(N+="/"+_+" ",N+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var l in p)if(p.hasOwnProperty(l)){var B=p[l];typeof B=="function"&&(B=B.call(u,h)),N+="/"+l+" "+B+" ",u.internal.acroformPlugin.xForms.indexOf(B)>=0||u.internal.acroformPlugin.xForms.push(B)}}else typeof(B=p)=="function"&&(B=B.call(u,h)),N+="/"+l+" "+B,u.internal.acroformPlugin.xForms.indexOf(B)>=0||u.internal.acroformPlugin.xForms.push(B);N+=">>"}f.push({key:"AP",value:`<<
`+N+">>"})}u.internal.putStream({additionalKeyValues:f,objectId:h.objId}),u.internal.out("endobj")}o&&uu(u.internal.acroformPlugin.xForms,u)})(n,i)}),i.internal.acroformPlugin.isInitialized=!0}},nc=_e.__acroform__.arrayToPdfArray=function(i,e,n){var a=function(l){return l};if(Array.isArray(i)){for(var u="[",o=0;o<i.length;o++)switch(o!==0&&(u+=" "),ve(i[o])){case"boolean":case"number":case"object":u+=i[o].toString();break;case"string":i[o].substr(0,1)!=="/"?(e!==void 0&&n&&(a=n.internal.getEncryptor(e)),u+="("+Vr(a(i[o].toString()))+")"):u+=i[o].toString()}return u+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Xo=function(i,e,n){var a=function(u){return u};return e!==void 0&&n&&(a=n.internal.getEncryptor(e)),(i=i||"").toString(),i="("+Vr(a(i))+")"},Yn=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(i){this._objId=i}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Yn.prototype.toString=function(){return this.objId+" 0 R"},Yn.prototype.putStream=function(){var i=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:i,objectId:this.objId}),this.scope.internal.out("endobj")},Yn.prototype.getKeyValueListForStream=function(){var i=[],e=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var n in e)if(Object.getOwnPropertyDescriptor(this,e[n]).configurable===!1){var a=e[n],u=this[a];u&&(Array.isArray(u)?i.push({key:a,value:nc(u,this.objId,this.scope)}):u instanceof Yn?(u.scope=this.scope,i.push({key:a,value:u.objId+" 0 R"})):typeof u!="function"&&i.push({key:a,value:u}))}return i};var rc=function(){Yn.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var i,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){i=n.trim()},get:function(){return i||null}})};un(rc,Yn);var ic=function(){Yn.call(this);var i,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(i){var n=function(a){return a};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+Vr(n(i))+")"}},set:function(n){i=n}})};un(ic,Yn);var Mn=function i(){Yn.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(S){if(isNaN(S))throw new Error('Invalid value "'+S+'" for attribute F supplied.');e=S}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(e,3))},set:function(S){Boolean(S)===!0?this.F=Ce(e,3):this.F=je(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(S){if(isNaN(S))throw new Error('Invalid value "'+S+'" for attribute Ff supplied.');n=S}});var a=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(a.length!==0)return a},set:function(S){a=S!==void 0?S:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[0])?0:a[0]},set:function(S){a[0]=S}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[1])?0:a[1]},set:function(S){a[1]=S}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:functi
`&&(a=a.substr(1),Z=1),_+p+(B=(u=to.apply(this,[a,n])).reduce(function(st,dt){return st+dt},0))>e||Z){if(B>e){for(h=Ys.apply(this,[a,u,e-(_+p),e]),A.push(h.shift()),A=[h.pop()];h.length;)N.push([h.shift()]);B=u.slice(a.length-(A[0]?A[0].length:0)).reduce(function(st,dt){return st+dt},0)}else A=[a];N.push(A),_=B+f,p=q}else A.push(a),_+=p+B,p=q}return g=f?function(st,dt){return(dt?S:"")+st.join(" ")}:function(st){return st.join(" ")},N.map(g)},Ni.splitTextToSize=function(i,e,n){var a,u=(n=n||{}).fontSize||this.internal.getFontSize(),o=function(A){if(A.widths&&A.kerning)return{widths:A.widths,kerning:A.kerning};var N=this.internal.getFont(A.fontName,A.fontStyle);return N.metadata.Unicode?{widths:N.metadata.Unicode.widths||{0:1},kerning:N.metadata.Unicode.kerning||{}}:{font:N.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);a=Array.isArray(i)?i:String(i).split(/\r?\n/);var l=1*this.internal.scaleFactor*e/u;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/u:0,o.lineIndent=n.lineIndent;var h,f,g=[];for(h=0,f=a.length;h<f;h++)g=g.concat(Xs.apply(this,[a[h],l,o]));return g},function(i){i.__fontmetrics__=i.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",n={},a={},u=0;u<e.length;u++)n[e[u]]="0123456789abcdef"[u],a["0123456789abcdef"[u]]=e[u];var o=function(N){return"0x"+parseInt(N,10).toString(16)},l=i.__fontmetrics__.compress=function(N){var _,p,B,I,q=["{"];for(var S in N){if(_=N[S],isNaN(parseInt(S,10))?p="'"+S+"'":(S=parseInt(S,10),p=(p=o(S).slice(2)).slice(0,-1)+a[p.slice(-1)]),typeof _=="number")_<0?(B=o(_).slice(3),I="-"):(B=o(_).slice(2),I=""),B=I+B.slice(0,-1)+a[B.slice(-1)];else{if(ve(_)!=="object")throw new Error("Don't know what to do with value type "+ve(_)+".");B=l(_)}q.push(p+B)}return q.push("}"),q.join("")},h=i.__fontmetrics__.uncompress=function(N){if(typeof N!="string")throw new Error("Invalid argument passed to uncompress.");for(var _,p,B,I,q={},S=1,M=q,Z=[],st="",dt="",Nt=N.length-1,rt=1;rt<Nt;rt+=1)(I=N[rt])=="'"?_?(B=_.join(""),_=void 0):_=[]:_?_.push(I):I=="{"?(Z.push([M,B]),M={},B=void 0):I=="}"?((p=Z.pop())[0][p[1]]=M,B=void 0,M=p[0]):I=="-"?S=-1:B===void 0?n.hasOwnProperty(I)?(st+=n[I],B=parseInt(st,16)*S,S=1,st=""):st+=I:n.hasOwnProperty(I)?(dt+=n[I],M[B]=parseInt(dt,16)*S,S=1,B=void 0,dt=""):dt+=I;return q},f={codePages:["WinAnsiEncoding"],WinAnsiEncoding:h("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},g={Unicode:{Courier:f,"Courier-Bold":f,"Courier-BoldOblique":f,"Courier-Oblique":f,Helvetica:f,"Helvetica-Bold":f,"Helvetica-BoldOblique":f,"Helvetica-Oblique":f,"Times-Roman":f,"Times-Bold":f,"Times-BoldItalic":f,"Times-Italic":f}},A={Unicode:{"Courier-Oblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":h("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts
`)}return""+n},e}();const Mu=Object.freeze(Object.defineProperty({__proto__:null,default:Tt,AcroForm:fu,AcroFormAppearance:Bt,AcroFormButton:Re,AcroFormCheckBox:ia,AcroFormChoiceField:zr,AcroFormComboBox:Hr,AcroFormEditBox:na,AcroFormListBox:Ur,AcroFormPasswordField:aa,AcroFormPushButton:ra,AcroFormRadioButton:Wr,AcroFormTextField:xr,GState:oa,ShadingPattern:Nr,TilingPattern:Tr,jsPDF:Tt},Symbol.toStringTag,{value:"Module"})),Du=Yc(Mu);export{Qo as _,Du as r};