import{c as ve}from"./@react-pdf/renderer-e56aa971.js";const Fu="modulepreload",Iu=function(r){return"/"+r},ic={},gs=function(e,n,a){if(!n||n.length===0)return e();const c=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=Iu(o),o in ic)return;ic[o]=!0;const l=o.endsWith(".css"),h=l?'[rel="stylesheet"]':"";if(!!a)for(let b=c.length-1;b>=0;b--){const y=c[b];if(y.href===o&&(!l||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${h}`))return;const g=document.createElement("link");if(g.rel=l?"stylesheet":Fu,l||(g.as="script",g.crossOrigin=""),g.href=o,document.head.appendChild(g),l)return new Promise((b,y)=>{g.addEventListener("load",b),g.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e()).catch(o=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o})};var tn=Uint8Array,vn=Uint16Array,Ps=Int32Array,go=new tn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mo=new tn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ms=new tn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Sc=function(r,e){for(var n=new vn(31),a=0;a<31;++a)n[a]=e+=1<>1|(we&21845)<<1;kr=(kr&52428)>>2|(kr&13107)<<2,kr=(kr&61680)>>4|(kr&3855)<<4,bs[we]=((kr&65280)>>8|(kr&255)<<8)>>1}var tr=function(r,e,n){for(var a=r.length,c=0,o=new vn(e);c>f]=g}else for(h=new vn(a),c=0;c>15-r[c]);return h},Or=new tn(288);for(var we=0;we<144;++we)Or[we]=8;for(var we=144;we<256;++we)Or[we]=9;for(var we=256;we<280;++we)Or[we]=7;for(var we=280;we<288;++we)Or[we]=8;var va=new tn(32);for(var we=0;we<32;++we)va[we]=5;var ju=tr(Or,9,0),Ou=tr(Or,9,1),Bu=tr(va,5,0),Mu=tr(va,5,1),os=function(r){for(var e=r[0],n=1;ne&&(e=r[n]);return e},qn=function(r,e,n){var a=e/8|0;return(r[a]|r[a+1]<<8)>>(e&7)&n},ss=function(r,e){var n=e/8|0;return(r[n]|r[n+1]<<8|r[n+2]<<16)>>(e&7)},ks=function(r){return(r+7)/8|0},Fc=function(r,e,n){return(e==null||e<0)&&(e=0),(n==null||n>r.length)&&(n=r.length),new tn(r.subarray(e,n))},Eu=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Rn=function(r,e,n){var a=new Error(e||Eu[r]);if(a.code=r,Error.captureStackTrace&&Error.captureStackTrace(a,Rn),!n)throw a;return a},qu=function(r,e,n,a){var c=r.length,o=a?a.length:0;if(!c||e.f&&!e.l)return n||new tn(0);var l=!n,h=l||e.i!=2,f=e.i;l&&(n=new tn(c*3));var g=function(Nt){var Ft=n.length;if(Nt>Ft){var _t=new tn(Math.max(Ft*2,Nt));_t.set(n),n=_t}},b=e.f||0,y=e.p||0,S=e.b||0,p=e.l,O=e.d,F=e.m,q=e.n,_=c*8;do{if(!p){b=qn(r,y,1);var B=qn(r,y+1,3);if(y+=3,B)if(B==1)p=Ou,O=Mu,F=9,q=5;else if(B==2){var wt=qn(r,y,31)+257,tt=qn(r,y+10,15)+4,z=wt+qn(r,y+5,31)+1;y+=14;for(var rt=new tn(z),dt=new tn(19),P=0;P>4;if(Y<16)rt[P++]=Y;else{var it=0,lt=0;for(Y==16?(lt=3+qn(r,y,3),y+=2,it=rt[P-1]):Y==17?(lt=3+qn(r,y,7),y+=3):Y==18&&(lt=11+qn(r,y,127),y+=7);lt--;)rt[P++]=it}}var $=rt.subarray(0,wt),ht=rt.subarray(wt);F=os($),q=os(ht),p=tr($,F,1),O=tr(ht,q,1)}else Rn(1);else{var Y=ks(y)+4,ot=r[Y-4]|r[Y-3]<<8,ut=Y+ot;if(ut>c){f&&Rn(0);break}h&&g(S+ot),n.set(r.subarray(Y,ut),S),e.b=S+=ot,e.p=y=ut*8,e.f=b;continue}if(y>_){f&&Rn(0);break}}h&&g(S+131072);for(var pt=(1<>4;if(y+=it&15,y>_){f&&Rn(0);break}if(it||Rn(2),C<256)n[S++]=C;else if(C==256){N=y,p=null;break}else{var M=C-254;if(C>264){var P=C-257,T=go[P];M=qn(r,y,(1<>4;J||Rn(3),y+=J&15;var ht=Cu[Q];if(Q>3){var T=mo[Q];ht+=ss(r,y)&(1<_){f&&Rn(0);break}h&&g(S+131072);var et=S+M;if(S>8},la=function(r,e,n){n<<=e&7;var a=e/8|0;r[a]|=n,r[a+1]|=n>>8,r[a+2]|=n>>16},cs=function(r,e){for(var n=[],a=0;aS&&(S=o[a].s);var p=new vn(S+1),O=ys(n[b-1],p,0);if(O>e){var a=0,F=0,q=O-e,_=1<e)F+=_-(1<>=q;F>0;){var Y=o[a].s;p[Y]=0&&F;--a){var ot=o[a].s;p[ot]==e&&(--p[ot],++F)}O=e}return{t:new tn(p),l:O}},ys=function(r,e,n){return r.s==-1?Math.max(ys(r.l,e,n+1),ys(r.r,e,n+1)):e[r.s]=n},oc=function(r){for(var e=r.length;e&&!r[--e];);for(var n=new vn(++e),a=0,c=r[0],o=1,l=function(f){n[a++]=f},h=1;h<=e;++h)if(r[h]==c&&h!=e)++o;else{if(!c&&o>2){for(;o>138;o-=138)l(32754);o>2&&(l(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(l(c),--o;o>6;o-=6)l(8304);o>2&&(l(o-3<<5|8208),o=0)}for(;o--;)l(c);o=1,c=r[h]}return{c:n.subarray(0,a),n:e}},ha=function(r,e){for(var n=0,a=0;a>8,r[c+2]=r[c]^255,r[c+3]=r[c+1]^255;for(var o=0;o4&&!dt[ms[k-1]];--k);var W=g+5<<3,D=ha(c,Or)+ha(o,va)+l,st=ha(c,S)+ha(o,F)+l+14+3*k+ha(tt,dt)+2*tt[16]+3*tt[17]+7*tt[18];if(f>=0&&W<=D&&W<=st)return Ic(e,b,r.subarray(f,f+g));var it,lt,$,ht;if(dr(e,b,1+(st15&&(dr(e,b,C[z]>>5&127),b+=C[z]>>12)}}else it=ju,lt=Or,$=Bu,ht=va;for(var z=0;z255){var M=T>>18&31;la(e,b,it[M+257]),b+=lt[M+257],M>7&&(dr(e,b,T>>23&31),b+=go[M]);var J=T&31;la(e,b,$[J]),b+=ht[J],J>3&&(la(e,b,T>>5&8191),b+=mo[J])}else la(e,b,it[T]),b+=lt[T]}return la(e,b,it[256]),b+lt[256]},Du=new Ps([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Cc=new tn(0),Ru=function(r,e,n,a,c,o){var l=o.z||r.length,h=new tn(a+l+5*(1+Math.ceil(l/7e3))+c),f=h.subarray(a,h.length-c),g=o.l,b=(o.r||0)&7;if(e){b&&(f[0]=o.r>>3);for(var y=Du[e-1],S=y>>13,p=y&8191,O=(1<7e3||dt>24576)&&(it>423||!g)){b=sc(r,f,0,ot,ut,wt,z,dt,k,rt-k,b),dt=tt=z=0,k=rt;for(var lt=0;lt<286;++lt)ut[lt]=0;for(var lt=0;lt<30;++lt)wt[lt]=0}var $=2,ht=0,pt=p,It=D-st&32767;if(it>2&&W==Y(rt-It))for(var N=Math.min(S,it)-1,C=Math.min(32767,rt),M=Math.min(258,it);It<=C&&--pt&&D!=st;){if(r[rt+$]==r[rt+$-It]){for(var T=0;T$){if($=T,ht=It,T>N)break;for(var J=Math.min(It,T-2),Q=0,lt=0;ltQ&&(Q=At,st=et)}}}D=st,st=F[D],It+=D-st&32767}if(ht){ot[dt++]=268435456|vs[$]<<18|ac[ht];var Nt=vs[$]&31,Ft=ac[ht]&31;z+=go[Nt]+mo[Ft],++ut[257+Nt],++wt[Ft],P=rt+$,++tt}else ot[dt++]=r[rt],++ut[r[rt]]}}for(rt=Math.max(rt,P);rt=l&&(f[b/8|0]=g,_t=l),b=Ic(f,b+1,r.subarray(rt,_t))}o.i=l}return Fc(h,0,a+ks(b)+c)},jc=function(){var r=1,e=0;return{p:function(n){for(var a=r,c=e,o=n.length|0,l=0;l!=o;){for(var h=Math.min(l+2655,o);l>16),c=(c&65535)+15*(c>>16)}r=a,e=c},d:function(){return r%=65521,e%=65521,(r&255)<<24|(r&65280)<<8|(e&255)<<8|e>>8}}},Tu=function(r,e,n,a,c){if(!c&&(c={l:1},e.dictionary)){var o=e.dictionary.subarray(-32768),l=new tn(o.length+r.length);l.set(o),l.set(r,o.length),r=l,c.w=o.length}return Ru(r,e.level==null?6:e.level,e.mem==null?c.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+e.mem,n,a,c)},Oc=function(r,e,n){for(;n;++e)r[e]=n,n>>>=8},zu=function(r,e){var n=e.level,a=n==0?0:n<6?1:n==9?3:2;if(r[0]=120,r[1]=a<<6|(e.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,e.dictionary){var c=jc();c.p(e.dictionary),Oc(r,2,c.d())}},Uu=function(r,e){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&Rn(6,"invalid zlib data"),(r[1]>>5&1)==+!e&&Rn(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function ws(r,e){e||(e={});var n=jc();n.p(r);var a=Tu(r,e,e.dictionary?6:2,4);return zu(a,e),Oc(a,a.length-4,n.d()),a}function Hu(r,e){return qu(r.subarray(Uu(r,e&&e.dictionary),-4),{i:2},e&&e.out,e&&e.dictionary)}var Wu=typeof TextDecoder<"u"&&new TextDecoder,Vu=0;try{Wu.decode(Cc,{stream:!0}),Vu=1}catch{}var Ht=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function us(){Ht.console&&typeof Ht.console.log=="function"&&Ht.console.log.apply(Ht.console,arguments)}var me={log:us,warn:function(r){Ht.console&&(typeof Ht.console.warn=="function"?Ht.console.warn.apply(Ht.console,arguments):us.call(null,arguments))},error:function(r){Ht.console&&(typeof Ht.console.error=="function"?Ht.console.error.apply(Ht.console,arguments):us(r))}};function ls(r,e,n){var a=new XMLHttpRequest;a.open("GET",r),a.responseType="blob",a.onload=function(){Yr(a.response,e,n)},a.onerror=function(){me.error("could not download file")},a.send()}function cc(r){var e=new XMLHttpRequest;e.open("HEAD",r,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function uo(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(e)}}var fa,Ls,Yr=Ht.saveAs||((typeof window>"u"?"undefined":ve(window))!=="object"||window!==Ht?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,e,n){var a=Ht.URL||Ht.webkitURL,c=document.createElement("a");e=e||r.name||"download",c.download=e,c.rel="noopener",typeof r=="string"?(c.href=r,c.origin!==location.origin?cc(c.href)?ls(r,e,n):uo(c,c.target="_blank"):uo(c)):(c.href=a.createObjectURL(r),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){uo(c)},0))}:"msSaveOrOpenBlob"in navigator?function(r,e,n){if(e=e||r.name||"download",typeof r=="string")if(cc(r))ls(r,e,n);else{var a=document.createElement("a");a.href=r,a.target="_blank",setTimeout(function(){uo(a)})}else navigator.msSaveOrOpenBlob(function(c,o){return o===void 0?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(c.type)?new Blob([String.fromCharCode(65279),c],{type:c.type}):c}(r,n),e)}:function(r,e,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof r=="string")return ls(r,e,n);var c=r.type==="application/octet-stream",o=/constructor/i.test(Ht.HTMLElement)||Ht.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||c&&o)&&(typeof FileReader>"u"?"undefined":ve(FileReader))==="object"){var h=new FileReader;h.onloadend=function(){var b=h.result;b=l?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=b:location=b,a=null},h.readAsDataURL(r)}else{var f=Ht.URL||Ht.webkitURL,g=f.createObjectURL(r);a?a.location=g:location.href=g,a=null,setTimeout(function(){f.revokeObjectURL(g)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} * @license Use it if you like it */function Bc(r){var e;r=r||"",this.ok=!1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[r=(r=r.replace(/ /g,"")).toLowerCase()]||r;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(h){return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(h){return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)]}}],a=0;a255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var h=this.r.toString(16),f=this.g.toString(16),g=this.b.toString(16);return h.length==1&&(h="0"+h),f.length==1&&(f="0"+f),g.length==1&&(g="0"+g),"#"+h+f+g}}/** * @license * Joseph Myers does not specify a particular license for his work. * * Author: Joseph Myers * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong */function hs(r,e){var n=r[0],a=r[1],c=r[2],o=r[3];n=Ke(n,a,c,o,e[0],7,-680876936),o=Ke(o,n,a,c,e[1],12,-389564586),c=Ke(c,o,n,a,e[2],17,606105819),a=Ke(a,c,o,n,e[3],22,-1044525330),n=Ke(n,a,c,o,e[4],7,-176418897),o=Ke(o,n,a,c,e[5],12,1200080426),c=Ke(c,o,n,a,e[6],17,-1473231341),a=Ke(a,c,o,n,e[7],22,-45705983),n=Ke(n,a,c,o,e[8],7,1770035416),o=Ke(o,n,a,c,e[9],12,-1958414417),c=Ke(c,o,n,a,e[10],17,-42063),a=Ke(a,c,o,n,e[11],22,-1990404162),n=Ke(n,a,c,o,e[12],7,1804603682),o=Ke(o,n,a,c,e[13],12,-40341101),c=Ke(c,o,n,a,e[14],17,-1502002290),n=Ze(n,a=Ke(a,c,o,n,e[15],22,1236535329),c,o,e[1],5,-165796510),o=Ze(o,n,a,c,e[6],9,-1069501632),c=Ze(c,o,n,a,e[11],14,643717713),a=Ze(a,c,o,n,e[0],20,-373897302),n=Ze(n,a,c,o,e[5],5,-701558691),o=Ze(o,n,a,c,e[10],9,38016083),c=Ze(c,o,n,a,e[15],14,-660478335),a=Ze(a,c,o,n,e[4],20,-405537848),n=Ze(n,a,c,o,e[9],5,568446438),o=Ze(o,n,a,c,e[14],9,-1019803690),c=Ze(c,o,n,a,e[3],14,-187363961),a=Ze(a,c,o,n,e[8],20,1163531501),n=Ze(n,a,c,o,e[13],5,-1444681467),o=Ze(o,n,a,c,e[2],9,-51403784),c=Ze(c,o,n,a,e[7],14,1735328473),n=$e(n,a=Ze(a,c,o,n,e[12],20,-1926607734),c,o,e[5],4,-378558),o=$e(o,n,a,c,e[8],11,-2022574463),c=$e(c,o,n,a,e[11],16,1839030562),a=$e(a,c,o,n,e[14],23,-35309556),n=$e(n,a,c,o,e[1],4,-1530992060),o=$e(o,n,a,c,e[4],11,1272893353),c=$e(c,o,n,a,e[7],16,-155497632),a=$e(a,c,o,n,e[10],23,-1094730640),n=$e(n,a,c,o,e[13],4,681279174),o=$e(o,n,a,c,e[0],11,-358537222),c=$e(c,o,n,a,e[3],16,-722521979),a=$e(a,c,o,n,e[6],23,76029189),n=$e(n,a,c,o,e[9],4,-640364487),o=$e(o,n,a,c,e[12],11,-421815835),c=$e(c,o,n,a,e[15],16,530742520),n=Qe(n,a=$e(a,c,o,n,e[2],23,-995338651),c,o,e[0],6,-198630844),o=Qe(o,n,a,c,e[7],10,1126891415),c=Qe(c,o,n,a,e[14],15,-1416354905),a=Qe(a,c,o,n,e[5],21,-57434055),n=Qe(n,a,c,o,e[12],6,1700485571),o=Qe(o,n,a,c,e[3],10,-1894986606),c=Qe(c,o,n,a,e[10],15,-1051523),a=Qe(a,c,o,n,e[1],21,-2054922799),n=Qe(n,a,c,o,e[8],6,1873313359),o=Qe(o,n,a,c,e[15],10,-30611744),c=Qe(c,o,n,a,e[6],15,-1560198380),a=Qe(a,c,o,n,e[13],21,1309151649),n=Qe(n,a,c,o,e[4],6,-145523070),o=Qe(o,n,a,c,e[11],10,-1120210379),c=Qe(c,o,n,a,e[2],15,718787259),a=Qe(a,c,o,n,e[9],21,-343485551),r[0]=Cr(n,r[0]),r[1]=Cr(a,r[1]),r[2]=Cr(c,r[2]),r[3]=Cr(o,r[3])}function vo(r,e,n,a,c,o){return e=Cr(Cr(e,r),Cr(a,o)),Cr(e<>>32-c,n)}function Ke(r,e,n,a,c,o,l){return vo(e&n|~e&a,r,e,c,o,l)}function Ze(r,e,n,a,c,o,l){return vo(e&a|n&~a,r,e,c,o,l)}function $e(r,e,n,a,c,o,l){return vo(e^n^a,r,e,c,o,l)}function Qe(r,e,n,a,c,o,l){return vo(n^(e|~a),r,e,c,o,l)}function Mc(r){var e,n=r.length,a=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=r.length;e+=64)hs(a,Gu(r.substring(e-64,e)));r=r.substring(e-64);var c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=r.charCodeAt(e)<<(e%4<<3);if(c[e>>2]|=128<<(e%4<<3),e>55)for(hs(a,c),e=0;e<16;e++)c[e]=0;return c[14]=8*n,hs(a,c),a}function Gu(r){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=r.charCodeAt(e)+(r.charCodeAt(e+1)<<8)+(r.charCodeAt(e+2)<<16)+(r.charCodeAt(e+3)<<24);return n}fa=Ht.atob.bind(Ht),Ls=Ht.btoa.bind(Ht);var uc="0123456789abcdef".split("");function Ju(r){for(var e="",n=0;n<4;n++)e+=uc[r>>8*n+4&15]+uc[r>>8*n&15];return e}function Yu(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function Ns(r){return Mc(r).map(Yu).join("")}var Xu=function(r){for(var e=0;e>16)+(e>>16)+(n>>16)<<16|65535&n}return r+e&4294967295}/** * @license * FPDF is released under a permissive license: there is no usage restriction. * You may embed it freely in your application (commercial or not), with or * without modifications. * * Reference: http://www.fpdf.org/en/script/script37.php */function As(r,e){var n,a,c,o;if(r!==n){for(var l=(c=r,o=1+(256/r.length>>0),new Array(o+1).join(c)),h=[],f=0;f<256;f++)h[f]=f;var g=0;for(f=0;f<256;f++){var b=h[f];g=(g+b+l.charCodeAt(f))%256,h[f]=h[g],h[g]=b}n=r,a=h}else h=a;var y=e.length,S=0,p=0,O="";for(f=0;f€/\f©þdSiz";var o=(e+this.padding).substr(0,32),l=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,l),this.P=-(1+(255^c)),this.encryptionKey=Ns(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=As(this.encryptionKey,this.padding)}function Oi(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var e="",n=r.length,a=0;a126?e+="#"+("0"+c.toString(16)).slice(-2):e+=r[a]}return e}function hc(r){if(ve(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(n,a,c){if(c=c||!1,typeof n!="string"||typeof a!="function"||typeof c!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(n)||(e[n]={});var o=Math.random().toString(35);return e[n][o]=[a,!!c],o},this.unsubscribe=function(n){for(var a in e)if(e[a][n])return delete e[a][n],Object.keys(e[a]).length===0&&delete e[a],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var a=Array.prototype.slice.call(arguments,1),c=[];for(var o in e[n]){var l=e[n][o];try{l[0].apply(r,a)}catch(h){Ht.console&&me.error("jsPDF PubSub Error",h.message,h)}l[1]&&c.push(o)}c.length&&c.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function ba(r){if(!(this instanceof ba))return new ba(r);var e="opacity,stroke-opacity".split(",");for(var n in r)r.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=r[n]);this.id="",this.objectNumber=-1}function Ec(r,e){this.gState=r,this.matrix=e,this.id="",this.objectNumber=-1}function Ir(r,e,n,a,c){if(!(this instanceof Ir))return new Ir(r,e,n,a,c);this.type=r==="axial"?2:3,this.coords=e,this.colors=n,Ec.call(this,a,c)}function Xr(r,e,n,a,c){if(!(this instanceof Xr))return new Xr(r,e,n,a,c);this.boundingBox=r,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,Ec.call(this,a,c)}function Tt(r){var e,n=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],c=arguments[2],o=arguments[3],l=[],h=1,f=16,g="S",b=null;ve(r=r||{})==="object"&&(n=r.orientation,a=r.unit||a,c=r.format||c,o=r.compress||r.compressPdf||o,(b=r.encryption||null)!==null&&(b.userPassword=b.userPassword||"",b.ownerPassword=b.ownerPassword||"",b.userPermissions=b.userPermissions||[]),h=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(e=r.precision),r.floatPrecision!==void 0&&(f=r.floatPrecision),g=r.defaultPathOperation||"S"),l=r.filters||(o===!0?["FlateEncode"]:l),a=a||"mm",n=(""+(n||"P")).toLowerCase();var y=r.putOnlyUsedFonts||!1,S={},p={internal:{},__private__:{}};p.__private__.PubSub=hc;var O="1.3",F=p.__private__.getPdfVersion=function(){return O};p.__private__.setPdfVersion=function(s){O=s};var q={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return q};var _=p.__private__.getPageFormat=function(s){return q[s]};c=c||"a4";var B={COMPAT:"compat",ADVANCED:"advanced"},Y=B.COMPAT;function ot(){this.saveGraphicsState(),E(new zt(jt,0,0,-jt,0,mr()*jt).toString()+" cm"),this.setFontSize(this.getFontSize()/jt),g="n",Y=B.ADVANCED}function ut(){this.restoreGraphicsState(),g="S",Y=B.COMPAT}var wt=p.__private__.combineFontStyleAndFontWeight=function(s,v){if(s=="bold"&&v=="normal"||s=="bold"&&v==400||s=="normal"&&v=="italic"||s=="bold"&&v=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return v&&(s=v==400||v==="normal"?s==="italic"?"italic":"normal":v!=700&&v!=="bold"||s!=="normal"?(v==700?"bold":v)+""+s:"bold"),s};p.advancedAPI=function(s){var v=Y===B.COMPAT;return v&&ot.call(this),typeof s!="function"||(s(this),v&&ut.call(this)),this},p.compatAPI=function(s){var v=Y===B.ADVANCED;return v&&ut.call(this),typeof s!="function"||(s(this),v&&ot.call(this)),this},p.isAdvancedAPI=function(){return Y===B.ADVANCED};var tt,z=function(s){if(Y!==B.ADVANCED)throw new Error(s+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},rt=p.roundToPrecision=p.__private__.roundToPrecision=function(s,v){var j=e||v;if(isNaN(s)||isNaN(j))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return s.toFixed(j).replace(/0+$/,"")};tt=p.hpf=p.__private__.hpf=typeof f=="number"?function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.hpf");return rt(s,f)}:f==="smart"?function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.hpf");return rt(s,s>-1&&s<1?16:5)}:function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.hpf");return rt(s,16)};var dt=p.f2=p.__private__.f2=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.f2");return rt(s,2)},P=p.__private__.f3=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.f3");return rt(s,3)},k=p.scale=p.__private__.scale=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.scale");return Y===B.COMPAT?s*jt:Y===B.ADVANCED?s:void 0},W=function(s){return Y===B.COMPAT?mr()-s:Y===B.ADVANCED?s:void 0},D=function(s){return k(W(s))};p.__private__.setPrecision=p.setPrecision=function(s){typeof parseInt(s,10)=="number"&&(e=parseInt(s,10))};var st,it="00000000000000000000000000000000",lt=p.__private__.getFileId=function(){return it},$=p.__private__.setFileId=function(s){return it=s!==void 0&&/^[a-fA-F0-9]{32}$/.test(s)?s.toUpperCase():it.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),b!==null&&(Ye=new ji(b.userPermissions,b.userPassword,b.ownerPassword,it)),it};p.setFileId=function(s){return $(s),this},p.getFileId=function(){return lt()};var ht=p.__private__.convertDateToPDFDate=function(s){var v=s.getTimezoneOffset(),j=v<0?"+":"-",R=Math.floor(Math.abs(v/60)),X=Math.abs(v%60),ct=[j,M(R),"'",M(X),"'"].join("");return["D:",s.getFullYear(),M(s.getMonth()+1),M(s.getDate()),M(s.getHours()),M(s.getMinutes()),M(s.getSeconds()),ct].join("")},pt=p.__private__.convertPDFDateToDate=function(s){var v=parseInt(s.substr(2,4),10),j=parseInt(s.substr(6,2),10)-1,R=parseInt(s.substr(8,2),10),X=parseInt(s.substr(10,2),10),ct=parseInt(s.substr(12,2),10),yt=parseInt(s.substr(14,2),10);return new Date(v,j,R,X,ct,yt,0)},It=p.__private__.setCreationDate=function(s){var v;if(s===void 0&&(s=new Date),s instanceof Date)v=ht(s);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(s))throw new Error("Invalid argument passed to jsPDF.setCreationDate");v=s}return st=v},N=p.__private__.getCreationDate=function(s){var v=st;return s==="jsDate"&&(v=pt(st)),v};p.setCreationDate=function(s){return It(s),this},p.getCreationDate=function(s){return N(s)};var C,M=p.__private__.padd2=function(s){return("0"+parseInt(s)).slice(-2)},T=p.__private__.padd2Hex=function(s){return("00"+(s=s.toString())).substr(s.length)},J=0,Q=[],et=[],nt=0,At=[],Nt=[],Ft=!1,_t=et,Ut=function(){J=0,nt=0,et=[],Q=[],At=[],rr=Be(),Fn=Be()};p.__private__.setCustomOutputDestination=function(s){Ft=!0,_t=s};var ft=function(s){Ft||(_t=s)};p.__private__.resetCustomOutputDestination=function(){Ft=!1,_t=et};var E=p.__private__.out=function(s){return s=s.toString(),nt+=s.length+1,_t.push(s),_t},Kt=p.__private__.write=function(s){return E(arguments.length===1?s.toString():Array.prototype.join.call(arguments," "))},Et=p.__private__.getArrayBuffer=function(s){for(var v=s.length,j=new ArrayBuffer(v),R=new Uint8Array(j);v--;)R[v]=s.charCodeAt(v);return j},Lt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return Lt};var xt=r.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(s){return xt=Y===B.ADVANCED?s/jt:s,this};var Ct,kt=p.__private__.getFontSize=p.getFontSize=function(){return Y===B.COMPAT?xt:xt*jt},qt=r.R2L||!1;p.__private__.setR2L=p.setR2L=function(s){return qt=s,this},p.__private__.getR2L=p.getR2L=function(){return qt};var Gt,Qt=p.__private__.setZoomMode=function(s){var v=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(s))Ct=s;else if(isNaN(s)){if(v.indexOf(s)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+s+'" is not recognized.');Ct=s}else Ct=parseInt(s,10)};p.__private__.getZoomMode=function(){return Ct};var te,ie=p.__private__.setPageMode=function(s){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(s)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+s+'" is not recognized.');Gt=s};p.__private__.getPageMode=function(){return Gt};var fe=p.__private__.setLayoutMode=function(s){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(s)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+s+'" is not recognized.');te=s};p.__private__.getLayoutMode=function(){return te},p.__private__.setDisplayMode=p.setDisplayMode=function(s,v,j){return Qt(s),fe(v),ie(j),this};var Wt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(s){if(Object.keys(Wt).indexOf(s)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Wt[s]},p.__private__.getDocumentProperties=function(){return Wt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(s){for(var v in Wt)Wt.hasOwnProperty(v)&&s[v]&&(Wt[v]=s[v]);return this},p.__private__.setDocumentProperty=function(s,v){if(Object.keys(Wt).indexOf(s)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Wt[s]=v};var ee,jt,Je,oe,_n,pe={},Le={},Un=[],ce={},Mr={},Ae={},Pn={},nr=null,xe=0,Jt=[],ue=new hc(p),Er=r.hotfixes||[],We={},Hn={},Wn=[],zt=function s(v,j,R,X,ct,yt){if(!(this instanceof s))return new s(v,j,R,X,ct,yt);isNaN(v)&&(v=1),isNaN(j)&&(j=0),isNaN(R)&&(R=0),isNaN(X)&&(X=1),isNaN(ct)&&(ct=0),isNaN(yt)&&(yt=0),this._matrix=[v,j,R,X,ct,yt]};Object.defineProperty(zt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(s){this._matrix[0]=s}}),Object.defineProperty(zt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(s){this._matrix[1]=s}}),Object.defineProperty(zt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(s){this._matrix[2]=s}}),Object.defineProperty(zt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(s){this._matrix[3]=s}}),Object.defineProperty(zt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(s){this._matrix[4]=s}}),Object.defineProperty(zt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(s){this._matrix[5]=s}}),Object.defineProperty(zt.prototype,"a",{get:function(){return this._matrix[0]},set:function(s){this._matrix[0]=s}}),Object.defineProperty(zt.prototype,"b",{get:function(){return this._matrix[1]},set:function(s){this._matrix[1]=s}}),Object.defineProperty(zt.prototype,"c",{get:function(){return this._matrix[2]},set:function(s){this._matrix[2]=s}}),Object.defineProperty(zt.prototype,"d",{get:function(){return this._matrix[3]},set:function(s){this._matrix[3]=s}}),Object.defineProperty(zt.prototype,"e",{get:function(){return this._matrix[4]},set:function(s){this._matrix[4]=s}}),Object.defineProperty(zt.prototype,"f",{get:function(){return this._matrix[5]},set:function(s){this._matrix[5]=s}}),Object.defineProperty(zt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(zt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(zt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(zt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),zt.prototype.join=function(s){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(tt).join(s)},zt.prototype.multiply=function(s){var v=s.sx*this.sx+s.shy*this.shx,j=s.sx*this.shy+s.shy*this.sy,R=s.shx*this.sx+s.sy*this.shx,X=s.shx*this.shy+s.sy*this.sy,ct=s.tx*this.sx+s.ty*this.shx+this.tx,yt=s.tx*this.shy+s.ty*this.sy+this.ty;return new zt(v,j,R,X,ct,yt)},zt.prototype.decompose=function(){var s=this.sx,v=this.shy,j=this.shx,R=this.sy,X=this.tx,ct=this.ty,yt=Math.sqrt(s*s+v*v),Ot=(s/=yt)*j+(v/=yt)*R;j-=s*Ot,R-=v*Ot;var Dt=Math.sqrt(j*j+R*R);return Ot/=Dt,s*(R/=Dt)>16&255,R=Dt>>8&255,X=255&Dt}if(R===void 0||ct===void 0&&j===R&&R===X)if(typeof j=="string")v=j+" "+yt[0];else switch(s.precision){case 2:v=dt(j/255)+" "+yt[0];break;case 3:default:v=P(j/255)+" "+yt[0]}else if(ct===void 0||ve(ct)==="object"){if(ct&&!isNaN(ct.a)&&ct.a===0)return v=["1.","1.","1.",yt[1]].join(" ");if(typeof j=="string")v=[j,R,X,yt[1]].join(" ");else switch(s.precision){case 2:v=[dt(j/255),dt(R/255),dt(X/255),yt[1]].join(" ");break;default:case 3:v=[P(j/255),P(R/255),P(X/255),yt[1]].join(" ")}}else if(typeof j=="string")v=[j,R,X,ct,yt[2]].join(" ");else switch(s.precision){case 2:v=[dt(j),dt(R),dt(X),dt(ct),yt[2]].join(" ");break;case 3:default:v=[P(j),P(R),P(X),P(ct),yt[2]].join(" ")}return v},Gn=p.__private__.getFilters=function(){return l},bn=p.__private__.putStream=function(s){var v=(s=s||{}).data||"",j=s.filters||Gn(),R=s.alreadyAppliedFilters||[],X=s.addLength1||!1,ct=v.length,yt=s.objectId,Ot=function(Xe){return Xe};if(b!==null&&yt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");b!==null&&(Ot=Ye.encryptor(yt,0));var Dt={};j===!0&&(j=["FlateEncode"]);var Zt=s.additionalKeyValues||[],Yt=(Dt=Tt.API.processDataByFilters!==void 0?Tt.API.processDataByFilters(v,j):{data:v,reverseChain:[]}).reverseChain+(Array.isArray(R)?R.join(" "):R.toString());if(Dt.data.length!==0&&(Zt.push({key:"Length",value:Dt.data.length}),X===!0&&Zt.push({key:"Length1",value:ct})),Yt.length!=0)if(Yt.split("/").length-1==1)Zt.push({key:"Filter",value:Yt});else{Zt.push({key:"Filter",value:"["+Yt+"]"});for(var re=0;re>"),Dt.data.length!==0&&(E("stream"),E(Ot(Dt.data)),E("endstream"))},Jn=p.__private__.putPage=function(s){var v=s.number,j=s.data,R=s.objId,X=s.contentsObjId;fn(R,!0),E("<>"),E("endobj");var ct=j.join(` `);return Y===B.ADVANCED&&(ct+=` Q`),fn(X,!0),bn({data:ct,filters:Gn(),objectId:X}),E("endobj"),R},qr=p.__private__.putPages=function(){var s,v,j=[];for(s=1;s<=xe;s++)Jt[s].objId=Be(),Jt[s].contentsObjId=Be();for(s=1;s<=xe;s++)j.push(Jn({number:s,data:Nt[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:rr,resourceDictionaryObjId:Fn}));fn(rr,!0),E("<>"),E("endobj"),ue.publish("postPutPages")},ni=function(s){ue.publish("putFont",{font:s,out:E,newObject:De,putStream:bn}),s.isAlreadyPutted!==!0&&(s.objectNumber=De(),E("<<"),E("/Type /Font"),E("/BaseFont /"+Oi(s.postScriptName)),E("/Subtype /Type1"),typeof s.encoding=="string"&&E("/Encoding /"+s.encoding),E("/FirstChar 32"),E("/LastChar 255"),E(">>"),E("endobj"))},ri=function(){for(var s in pe)pe.hasOwnProperty(s)&&(y===!1||y===!0&&S.hasOwnProperty(s))&&ni(pe[s])},ii=function(s){s.objectNumber=De();var v=[];v.push({key:"Type",value:"/XObject"}),v.push({key:"Subtype",value:"/Form"}),v.push({key:"BBox",value:"["+[tt(s.x),tt(s.y),tt(s.x+s.width),tt(s.y+s.height)].join(" ")+"]"}),v.push({key:"Matrix",value:"["+s.matrix.toString()+"]"});var j=s.pages[1].join(` `);bn({data:j,additionalKeyValues:v,objectId:s.objectNumber}),E("endobj")},ai=function(){for(var s in We)We.hasOwnProperty(s)&&ii(We[s])},ya=function(s,v){var j,R=[],X=1/(v-1);for(j=0;j<1;j+=X)R.push(j);if(R.push(1),s[0].offset!=0){var ct={offset:0,color:s[0].color};s.unshift(ct)}if(s[s.length-1].offset!=1){var yt={offset:1,color:s[s.length-1].color};s.push(yt)}for(var Ot="",Dt=0,Zt=0;Zts[Dt+1].offset;)Dt++;var Yt=s[Dt].offset,re=(j-Yt)/(s[Dt+1].offset-Yt),Ne=s[Dt].color,Se=s[Dt+1].color;Ot+=T(Math.round((1-re)*Ne[0]+re*Se[0]).toString(16))+T(Math.round((1-re)*Ne[1]+re*Se[1]).toString(16))+T(Math.round((1-re)*Ne[2]+re*Se[2]).toString(16))}return Ot.trim()},bo=function(s,v){v||(v=21);var j=De(),R=ya(s.colors,v),X=[];X.push({key:"FunctionType",value:"0"}),X.push({key:"Domain",value:"[0.0 1.0]"}),X.push({key:"Size",value:"["+v+"]"}),X.push({key:"BitsPerSample",value:"8"}),X.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),X.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),bn({data:R,additionalKeyValues:X,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:j}),E("endobj"),s.objectNumber=De(),E("<< /ShadingType "+s.type),E("/ColorSpace /DeviceRGB");var ct="/Coords ["+tt(parseFloat(s.coords[0]))+" "+tt(parseFloat(s.coords[1]))+" ";s.type===2?ct+=tt(parseFloat(s.coords[2]))+" "+tt(parseFloat(s.coords[3])):ct+=tt(parseFloat(s.coords[2]))+" "+tt(parseFloat(s.coords[3]))+" "+tt(parseFloat(s.coords[4]))+" "+tt(parseFloat(s.coords[5])),E(ct+="]"),s.matrix&&E("/Matrix ["+s.matrix.toString()+"]"),E("/Function "+j+" 0 R"),E("/Extend [true true]"),E(">>"),E("endobj")},yo=function(s,v){var j=Be(),R=De();v.push({resourcesOid:j,objectOid:R}),s.objectNumber=R;var X=[];X.push({key:"Type",value:"/Pattern"}),X.push({key:"PatternType",value:"1"}),X.push({key:"PaintType",value:"1"}),X.push({key:"TilingType",value:"1"}),X.push({key:"BBox",value:"["+s.boundingBox.map(tt).join(" ")+"]"}),X.push({key:"XStep",value:tt(s.xStep)}),X.push({key:"YStep",value:tt(s.yStep)}),X.push({key:"Resources",value:j+" 0 R"}),s.matrix&&X.push({key:"Matrix",value:"["+s.matrix.toString()+"]"}),bn({data:s.stream,additionalKeyValues:X,objectId:s.objectNumber}),E("endobj")},oi=function(s){var v;for(v in ce)ce.hasOwnProperty(v)&&(ce[v]instanceof Ir?bo(ce[v]):ce[v]instanceof Xr&&yo(ce[v],s))},wa=function(s){for(var v in s.objectNumber=De(),E("<<"),s)switch(v){case"opacity":E("/ca "+dt(s[v]));break;case"stroke-opacity":E("/CA "+dt(s[v]))}E(">>"),E("endobj")},wo=function(){var s;for(s in Ae)Ae.hasOwnProperty(s)&&wa(Ae[s])},Bi=function(){for(var s in E("/XObject <<"),We)We.hasOwnProperty(s)&&We[s].objectNumber>=0&&E("/"+s+" "+We[s].objectNumber+" 0 R");ue.publish("putXobjectDict"),E(">>")},Lo=function(){Ye.oid=De(),E("<<"),E("/Filter /Standard"),E("/V "+Ye.v),E("/R "+Ye.r),E("/U <"+Ye.toHexString(Ye.U)+">"),E("/O <"+Ye.toHexString(Ye.O)+">"),E("/P "+Ye.P),E(">>"),E("endobj")},La=function(){for(var s in E("/Font <<"),pe)pe.hasOwnProperty(s)&&(y===!1||y===!0&&S.hasOwnProperty(s))&&E("/"+s+" "+pe[s].objectNumber+" 0 R");E(">>")},No=function(){if(Object.keys(ce).length>0){for(var s in E("/Shading <<"),ce)ce.hasOwnProperty(s)&&ce[s]instanceof Ir&&ce[s].objectNumber>=0&&E("/"+s+" "+ce[s].objectNumber+" 0 R");ue.publish("putShadingPatternDict"),E(">>")}},si=function(s){if(Object.keys(ce).length>0){for(var v in E("/Pattern <<"),ce)ce.hasOwnProperty(v)&&ce[v]instanceof p.TilingPattern&&ce[v].objectNumber>=0&&ce[v].objectNumber>")}},Ao=function(){if(Object.keys(Ae).length>0){var s;for(s in E("/ExtGState <<"),Ae)Ae.hasOwnProperty(s)&&Ae[s].objectNumber>=0&&E("/"+s+" "+Ae[s].objectNumber+" 0 R");ue.publish("putGStateDict"),E(">>")}},ke=function(s){fn(s.resourcesOid,!0),E("<<"),E("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),La(),No(),si(s.objectOid),Ao(),Bi(),E(">>"),E("endobj")},Na=function(){var s=[];ri(),wo(),ai(),oi(s),ue.publish("putResources"),s.forEach(ke),ke({resourcesOid:Fn,objectOid:Number.MAX_SAFE_INTEGER}),ue.publish("postPutResources")},Aa=function(){ue.publish("putAdditionalObjects");for(var s=0;s>8&&(Dt=!0);s=Ot.join("")}for(j=s.length;Dt===void 0&&j!==0;)s.charCodeAt(j-1)>>8&&(Dt=!0),j--;if(!Dt)return s;for(Ot=v.noBOM?[]:[254,255],j=0,R=s.length;j>8)>>8)throw new Error("Character at position "+j+" of string '"+s+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Ot.push(Yt),Ot.push(Zt-(Yt<<8))}return String.fromCharCode.apply(void 0,Ot)},on=p.__private__.pdfEscape=p.pdfEscape=function(s,v){return ci(s,v).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ei=p.__private__.beginPage=function(s){Nt[++xe]=[],Jt[xe]={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])}},_a(xe),ft(Nt[C])},Sa=function(s,v){var j,R,X;switch(n=v||n,typeof s=="string"&&(j=_(s.toLowerCase()),Array.isArray(j)&&(R=j[0],X=j[1])),Array.isArray(s)&&(R=s[0]*jt,X=s[1]*jt),isNaN(R)&&(R=c[0],X=c[1]),(R>14400||X>14400)&&(me.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),R=Math.min(14400,R),X=Math.min(14400,X)),c=[R,X],n.substr(0,1)){case"l":X>R&&(c=[X,R]);break;case"p":R>X&&(c=[X,R])}Ei(c),ja(Ti),E(On),Ui!==0&&E(Ui+" J"),Hi!==0&&E(Hi+" j"),ue.publish("addPage",{pageNumber:xe})},So=function(s){s>0&&s<=xe&&(Nt.splice(s,1),Jt.splice(s,1),xe--,C>xe&&(C=xe),this.setPage(C))},_a=function(s){s>0&&s<=xe&&(C=s)},_o=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return Nt.length-1},Pa=function(s,v,j){var R,X=void 0;return j=j||{},s=s!==void 0?s:pe[ee].fontName,v=v!==void 0?v:pe[ee].fontStyle,R=s.toLowerCase(),Le[R]!==void 0&&Le[R][v]!==void 0?X=Le[R][v]:Le[s]!==void 0&&Le[s][v]!==void 0?X=Le[s][v]:j.disableWarning===!1&&me.warn("Unable to look up font label for font '"+s+"', '"+v+"'. Refer to getFontList() for available fonts."),X||j.noFallback||(X=Le.times[v])==null&&(X=Le.times.normal),X},Po=p.__private__.putInfo=function(){var s=De(),v=function(R){return R};for(var j in b!==null&&(v=Ye.encryptor(s,0)),E("<<"),E("/Producer ("+on(v("jsPDF "+Tt.version))+")"),Wt)Wt.hasOwnProperty(j)&&Wt[j]&&E("/"+j.substr(0,1).toUpperCase()+j.substr(1)+" ("+on(v(Wt[j]))+")");E("/CreationDate ("+on(v(st))+")"),E(">>"),E("endobj")},qi=p.__private__.putCatalog=function(s){var v=(s=s||{}).rootDictionaryObjId||rr;switch(De(),E("<<"),E("/Type /Catalog"),E("/Pages "+v+" 0 R"),Ct||(Ct="fullwidth"),Ct){case"fullwidth":E("/OpenAction [3 0 R /FitH null]");break;case"fullheight":E("/OpenAction [3 0 R /FitV null]");break;case"fullpage":E("/OpenAction [3 0 R /Fit]");break;case"original":E("/OpenAction [3 0 R /XYZ null null 1]");break;default:var j=""+Ct;j.substr(j.length-1)==="%"&&(Ct=parseInt(Ct)/100),typeof Ct=="number"&&E("/OpenAction [3 0 R /XYZ null null "+dt(Ct)+"]")}switch(te||(te="continuous"),te){case"continuous":E("/PageLayout /OneColumn");break;case"single":E("/PageLayout /SinglePage");break;case"two":case"twoleft":E("/PageLayout /TwoColumnLeft");break;case"tworight":E("/PageLayout /TwoColumnRight")}Gt&&E("/PageMode /"+Gt),ue.publish("putCatalog"),E(">>"),E("endobj")},ko=p.__private__.putTrailer=function(){E("trailer"),E("<<"),E("/Size "+(J+1)),E("/Root "+J+" 0 R"),E("/Info "+(J-1)+" 0 R"),b!==null&&E("/Encrypt "+Ye.oid+" 0 R"),E("/ID [ <"+it+"> <"+it+"> ]"),E(">>")},Fo=p.__private__.putHeader=function(){E("%PDF-"+O),E("%ºß¬à")},Io=p.__private__.putXRef=function(){var s="0000000000";E("xref"),E("0 "+(J+1)),E("0000000000 65535 f ");for(var v=1;v<=J;v++)typeof Q[v]=="function"?E((s+Q[v]()).slice(-10)+" 00000 n "):Q[v]!==void 0?E((s+Q[v]).slice(-10)+" 00000 n "):E("0000000000 00000 n ")},ir=p.__private__.buildDocument=function(){Ut(),ft(et),ue.publish("buildDocument"),Fo(),qr(),Aa(),Na(),b!==null&&Lo(),Po(),qi();var s=nt;return Io(),ko(),E("startxref"),E(""+s),E("%%EOF"),ft(Nt[C]),et.join(` `)},ui=p.__private__.getBlob=function(s){return new Blob([Et(s)],{type:"application/pdf"})},li=p.output=p.__private__.output=jn(function(s,v){switch(typeof(v=v||{})=="string"?v={filename:v}:v.filename=v.filename||"generated.pdf",s){case void 0:return ir();case"save":p.save(v.filename);break;case"arraybuffer":return Et(ir());case"blob":return ui(ir());case"bloburi":case"bloburl":if(Ht.URL!==void 0&&typeof Ht.URL.createObjectURL=="function")return Ht.URL&&Ht.URL.createObjectURL(ui(ir()))||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 j="",R=ir();try{j=Ls(R)}catch{j=Ls(unescape(encodeURIComponent(R)))}return"data:application/pdf;filename="+v.filename+";base64,"+j;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ht)==="[object Window]"){var X="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ct=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';v.pdfObjectUrl&&(X=v.pdfObjectUrl,ct="");var yt='