15&&(j(t,m,ee[C]>>>5&127),m+=ee[C]>>>12)}}}else z=w,U=M,V=Y,G=b;for(C=0;C255){te=r[C]>>>18&31;E(t,m,z[te+257]),m+=U[te+257],te>7&&(j(t,m,r[C]>>>23&31),m+=o[te]);var ne=31&r[C];E(t,m,V[ne]),m+=G[ne],ne>3&&(E(t,m,r[C]>>>5&8191),m+=u[ne])}else E(t,m,z[r[C]]),m+=U[r[C]];return E(t,m,z[256]),m+U[256]},B=new s([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),W=new i(0),q=function(e,t,n,r,l,c){var d=e.length,h=new i(r+d+5*(1+Math.floor(d/7e3))+l),m=h.subarray(r,h.length-l),_=0;if(!t||d<8)for(var y=0;y<=d;y+=65535){var g=y+65535;g>>13,M=8191&v,b=(1<7e3||O>24576)&&U>423){_=R(e,m,0,T,x,P,E,O,H,y-H,_),O=j=E=0,H=y;for(var V=0;V<286;++V)x[V]=0;for(V=0;V<30;++V)P[V]=0}var G=2,J=0,$=M,K=q-z&32767;if(U>2&&F==D(y-K)){var X=Math.min(L,U)-1,Z=Math.min(32767,y),Q=Math.min(258,U);while(K<=Z&&--$&&q!=z){if(e[y+G]==e[y+G-K]){for(var ee=0;eeG){if(G=ee,J=K,ee>X)break;var te=Math.min(K,ee-2),ne=0;for(V=0;Vne&&(ne=ae,z=re)}}}q=z,z=w[q],K+=q-z+32768&32767}}if(J){T[O++]=268435456|f[G]<<18|p[J];var se=31&f[G],oe=31&p[J];E+=o[se]+u[oe],++x[257+se],++P[oe],C=y+G,++j}else T[O++]=e[y],++x[e[y]]}}_=R(e,m,c,T,x,P,E,O,H,y-H,_),c||(_=I(m,_,W))}return N(h,0,r+A(_)+l)},z=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,a=n.length,s=0;s!=a;){for(var o=Math.min(s+5552,a);s>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}},U=function(e,t,n,r,i){return q(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},V=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},G=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)},J=function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};function $(e,t){void 0===t&&(t={});var n=z();n.p(e);var r=U(e,t,2,4);return G(r,t),V(r,r.length-4,n.d()),r}function K(e,t){return P((J(e),e.subarray(2,-4)),t)} /** @license * * jsPDF - PDF Document creation from JavaScript * Version 2.5.1 Built on 2022-01-28T15:37:57.791Z * CommitID 00000000 * * Copyright (c) 2010-2021 James Hall , https://github.com/MrRio/jsPDF * 2015-2021 yWorks GmbH, http://www.yworks.com * 2015-2021 Lukas Holländer , https://github.com/HackbrettXXX * 2016-2018 Aras Abbasi * 2010 Aaron Spike, https://github.com/acspike * 2012 Willow Systems Corporation, https://github.com/willowsystems * 2012 Pablo Hess, https://github.com/pablohess * 2012 Florian Jenett, https://github.com/fjenett * 2013 Warren Weckesser, https://github.com/warrenweckesser * 2013 Youssef Beddad, https://github.com/lifof * 2013 Lee Driscoll, https://github.com/lsdriscoll * 2013 Stefan Slonevskiy, https://github.com/stefslon * 2013 Jeremy Morel, https://github.com/jmorel * 2013 Christoph Hartmann, https://github.com/chris-rock * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria * 2014 James Makes, https://github.com/dollaruw * 2014 Diego Casorran, https://github.com/diegocr * 2014 Steven Spungin, https://github.com/Flamenco * 2014 Kenneth Glassey, https://github.com/Gavvers * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * Contributor(s): * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango, * kim3er, mfo, alnorth, Flamenco */ var X=function(){return"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:this}();function Z(){X.console&&"function"==typeof X.console.log&&X.console.log.apply(X.console,arguments)}var Q={log:Z,warn:function(e){X.console&&("function"==typeof X.console.warn?X.console.warn.apply(X.console,arguments):Z.call(null,arguments))},error:function(e){X.console&&("function"==typeof X.console.error?X.console.error.apply(X.console,arguments):Z(e))}};function ee(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){ae(r.response,t,n)},r.onerror=function(){Q.error("could not download file")},r.send()}function te(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function ne(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var re,ie,ae=X.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,r.A)(window))||window!==X?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=X.URL||X.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener","string"==typeof e?(i.href=e,i.origin!==location.origin?te(i.href)?ee(e,t,n):ne(i,i.target="_blank"):ne(i)):(i.href=r.createObjectURL(e),setTimeout((function(){r.revokeObjectURL(i.href)}),4e4),setTimeout((function(){ne(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download","string"==typeof e)if(te(e))ee(e,t,n);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){ne(i)}))}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!==(0,r.A)(t)&&(Q.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return ee(e,t,n);var a="application/octet-stream"===e.type,s=/constructor/i.test(X.HTMLElement)||X.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||a&&s)&&"object"===("undefined"==typeof FileReader?"undefined":(0,r.A)(FileReader))){var u=new FileReader;u.onloadend=function(){var e=u.result;e=o?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var l=X.URL||X.webkitURL,c=l.createObjectURL(e);i?i.location=c:location.href=c,i=null,setTimeout((function(){l.revokeObjectURL(c)}),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 se(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={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"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;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(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r255?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 e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}} /** * @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 oe(e,t){var n=e[0],r=e[1],i=e[2],a=e[3];n=le(n,r,i,a,t[0],7,-680876936),a=le(a,n,r,i,t[1],12,-389564586),i=le(i,a,n,r,t[2],17,606105819),r=le(r,i,a,n,t[3],22,-1044525330),n=le(n,r,i,a,t[4],7,-176418897),a=le(a,n,r,i,t[5],12,1200080426),i=le(i,a,n,r,t[6],17,-1473231341),r=le(r,i,a,n,t[7],22,-45705983),n=le(n,r,i,a,t[8],7,1770035416),a=le(a,n,r,i,t[9],12,-1958414417),i=le(i,a,n,r,t[10],17,-42063),r=le(r,i,a,n,t[11],22,-1990404162),n=le(n,r,i,a,t[12],7,1804603682),a=le(a,n,r,i,t[13],12,-40341101),i=le(i,a,n,r,t[14],17,-1502002290),n=ce(n,r=le(r,i,a,n,t[15],22,1236535329),i,a,t[1],5,-165796510),a=ce(a,n,r,i,t[6],9,-1069501632),i=ce(i,a,n,r,t[11],14,643717713),r=ce(r,i,a,n,t[0],20,-373897302),n=ce(n,r,i,a,t[5],5,-701558691),a=ce(a,n,r,i,t[10],9,38016083),i=ce(i,a,n,r,t[15],14,-660478335),r=ce(r,i,a,n,t[4],20,-405537848),n=ce(n,r,i,a,t[9],5,568446438),a=ce(a,n,r,i,t[14],9,-1019803690),i=ce(i,a,n,r,t[3],14,-187363961),r=ce(r,i,a,n,t[8],20,1163531501),n=ce(n,r,i,a,t[13],5,-1444681467),a=ce(a,n,r,i,t[2],9,-51403784),i=ce(i,a,n,r,t[7],14,1735328473),n=de(n,r=ce(r,i,a,n,t[12],20,-1926607734),i,a,t[5],4,-378558),a=de(a,n,r,i,t[8],11,-2022574463),i=de(i,a,n,r,t[11],16,1839030562),r=de(r,i,a,n,t[14],23,-35309556),n=de(n,r,i,a,t[1],4,-1530992060),a=de(a,n,r,i,t[4],11,1272893353),i=de(i,a,n,r,t[7],16,-155497632),r=de(r,i,a,n,t[10],23,-1094730640),n=de(n,r,i,a,t[13],4,681279174),a=de(a,n,r,i,t[0],11,-358537222),i=de(i,a,n,r,t[3],16,-722521979),r=de(r,i,a,n,t[6],23,76029189),n=de(n,r,i,a,t[9],4,-640364487),a=de(a,n,r,i,t[12],11,-421815835),i=de(i,a,n,r,t[15],16,530742520),n=he(n,r=de(r,i,a,n,t[2],23,-995338651),i,a,t[0],6,-198630844),a=he(a,n,r,i,t[7],10,1126891415),i=he(i,a,n,r,t[14],15,-1416354905),r=he(r,i,a,n,t[5],21,-57434055),n=he(n,r,i,a,t[12],6,1700485571),a=he(a,n,r,i,t[3],10,-1894986606),i=he(i,a,n,r,t[10],15,-1051523),r=he(r,i,a,n,t[1],21,-2054922799),n=he(n,r,i,a,t[8],6,1873313359),a=he(a,n,r,i,t[15],10,-30611744),i=he(i,a,n,r,t[6],15,-1560198380),r=he(r,i,a,n,t[13],21,1309151649),n=he(n,r,i,a,t[4],6,-145523070),a=he(a,n,r,i,t[11],10,-1120210379),i=he(i,a,n,r,t[2],15,718787259),r=he(r,i,a,n,t[9],21,-343485551),e[0]=Le(n,e[0]),e[1]=Le(r,e[1]),e[2]=Le(i,e[2]),e[3]=Le(a,e[3])}function ue(e,t,n,r,i,a){return t=Le(Le(t,e),Le(r,a)),Le(t<>>32-i,n)}function le(e,t,n,r,i,a,s){return ue(t&n|~t&r,e,t,i,a,s)}function ce(e,t,n,r,i,a,s){return ue(t&r|n&~r,e,t,i,a,s)}function de(e,t,n,r,i,a,s){return ue(t^n^r,e,t,i,a,s)}function he(e,t,n,r,i,a,s){return ue(n^(t|~r),e,t,i,a,s)}function fe(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)oe(r,me(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(oe(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,oe(r,i),r}function me(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}re=X.atob.bind(X),ie=X.btoa.bind(X);var _e="0123456789abcdef".split("");function pe(e){for(var t="",n=0;n<4;n++)t+=_e[e>>8*n+4&15]+_e[e>>8*n&15];return t}function ye(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function ge(e){return fe(e).map(ye).join("")}var ve="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&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 Me(e,t){var n,r,i,a;if(e!==n){for(var s=(i=e,a=1+(256/e.length|0),new Array(a+1).join(i)),o=[],u=0;u<256;u++)o[u]=u;var l=0;for(u=0;u<256;u++){var c=o[u];l=(l+c+s.charCodeAt(u))%256,o[u]=o[l],o[l]=c}n=e,r=o}else o=r;var d=t.length,h=0,f=0,m="";for(u=0;u/\f©þdSiz";var a=(t+this.padding).substr(0,32),s=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,s),this.P=-(1+(255^i)),this.encryptionKey=ge(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Me(this.encryptionKey,this.padding)}function ke(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r126?"#"+("0"+i.toString(16)).slice(-2):e[r]}return t}function Ye(e){if("object"!==(0,r.A)(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,n,r){if(r=r||!1,"string"!=typeof e||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var i=Math.random().toString(35);return t[e][i]=[n,!!r],i},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],0===Object.keys(t[n]).length&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var a in t[n]){var s=t[n][a];try{s[0].apply(e,r)}catch(n){X.console&&Q.error("jsPDF PubSub Error",n.message,n)}s[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Se(e){if(!(this instanceof Se))return new Se(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function De(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Te(e,t,n,r,i){if(!(this instanceof Te))return new Te(e,t,n,r,i);this.type="axial"===e?2:3,this.coords=t,this.colors=n,De.call(this,r,i)}function xe(e,t,n,r,i){if(!(this instanceof xe))return new xe(e,t,n,r,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,De.call(this,r,i)}function Ae(e){var t,n="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],a=arguments[2],s=arguments[3],o=[],u=1,l=16,c="S",d=null;"object"===(0,r.A)(e=e||{})&&(n=e.orientation,i=e.unit||i,a=e.format||a,s=e.compress||e.compressPdf||s,null!==(d=e.encryption||null)&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),u="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),o=e.filters||(!0===s?["FlateEncode"]:o),i=i||"mm",n=(""+(n||"P")).toLowerCase();var h=e.putOnlyUsedFonts||!1,f={},m={internal:{},__private__:{}};m.__private__.PubSub=Ye;var _="1.3",p=m.__private__.getPdfVersion=function(){return _};m.__private__.setPdfVersion=function(e){_=e};var y={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]};m.__private__.getPageFormats=function(){return y};var g=m.__private__.getPageFormat=function(e){return y[e]};a=a||"a4";var v={COMPAT:"compat",ADVANCED:"advanced"},L=v.COMPAT;function M(){this.saveGraphicsState(),te(new Ue(ve,0,0,-ve,0,Rn()*ve).toString()+" cm"),this.setFontSize(this.getFontSize()/ve),c="n",L=v.ADVANCED}function b(){this.restoreGraphicsState(),c="S",L=v.COMPAT}var w=m.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};m.advancedAPI=function(e){var t=L===v.COMPAT;return t&&M.call(this),"function"!=typeof e||(e(this),t&&b.call(this)),this},m.compatAPI=function(e){var t=L===v.ADVANCED;return t&&b.call(this),"function"!=typeof e||(e(this),t&&M.call(this)),this},m.isAdvancedAPI=function(){return L===v.ADVANCED};var k,Y=function(e){if(L!==v.ADVANCED)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},S=m.roundToPrecision=m.__private__.roundToPrecision=function(e,n){var r=t||n;if(isNaN(e)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(r).replace(/0+$/,"")};k=m.hpf=m.__private__.hpf="number"==typeof l?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return S(e,l)}:"smart"===l?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return S(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return S(e,16)};var D=m.f2=m.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return S(e,2)},T=m.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return S(e,3)},x=m.scale=m.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return L===v.COMPAT?e*ve:L===v.ADVANCED?e:void 0},A=function(e){return L===v.COMPAT?Rn()-e:L===v.ADVANCED?e:void 0},N=function(e){return x(A(e))};m.__private__.setPrecision=m.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var P,j="00000000000000000000000000000000",E=m.__private__.getFileId=function(){return j},O=m.__private__.setFileId=function(e){return j=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():j.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==d&&(Gt=new we(d.userPermissions,d.userPassword,d.ownerPassword,j)),j};m.setFileId=function(e){return O(e),this},m.getFileId=function(){return E()};var C=m.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?"+":"-",r=Math.floor(Math.abs(t/60)),i=Math.abs(t%60),a=[n,B(r),"'",B(i),"'"].join("");return["D:",e.getFullYear(),B(e.getMonth()+1),B(e.getDate()),B(e.getHours()),B(e.getMinutes()),B(e.getSeconds()),a].join("")},H=m.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,r=parseInt(e.substr(8,2),10),i=parseInt(e.substr(10,2),10),a=parseInt(e.substr(12,2),10),s=parseInt(e.substr(14,2),10);return new Date(t,n,r,i,a,s,0)},F=m.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=C(e);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(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return P=t},I=m.__private__.getCreationDate=function(e){var t=P;return"jsDate"===e&&(t=H(P)),t};m.setCreationDate=function(e){return F(e),this},m.getCreationDate=function(e){return I(e)};var R,B=m.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},W=m.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},q=0,z=[],U=[],V=0,G=[],J=[],$=!1,K=U,Z=function(){q=0,V=0,U=[],z=[],G=[],Qe=Ke(),et=Ke()};m.__private__.setCustomOutputDestination=function(e){$=!0,K=e};var ee=function(e){$||(K=e)};m.__private__.resetCustomOutputDestination=function(){$=!1,K=U};var te=m.__private__.out=function(e){return e=e.toString(),V+=e.length+1,K.push(e),K},ne=m.__private__.write=function(e){return te(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},re=m.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n);t--;)r[t]=e.charCodeAt(t);return n},oe=[["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]];m.__private__.getStandardFonts=function(){return oe};var ue=e.fontSize||16;m.__private__.setFontSize=m.setFontSize=function(e){return ue=L===v.ADVANCED?e/ve:e,this};var le,ce=m.__private__.getFontSize=m.getFontSize=function(){return L===v.COMPAT?ue:ue*ve},de=e.R2L||!1;m.__private__.setR2L=m.setR2L=function(e){return de=e,this},m.__private__.getR2L=m.getR2L=function(){return de};var he,fe=m.__private__.setZoomMode=function(e){var t=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))le=e;else if(isNaN(e)){if(-1===t.indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');le=e}else le=parseInt(e,10)};m.__private__.getZoomMode=function(){return le};var me,_e=m.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');he=e};m.__private__.getPageMode=function(){return he};var pe=m.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');me=e};m.__private__.getLayoutMode=function(){return me},m.__private__.setDisplayMode=m.setDisplayMode=function(e,t,n){return fe(e),pe(t),_e(n),this};var ye={title:"",subject:"",author:"",keywords:"",creator:""};m.__private__.getDocumentProperty=function(e){if(-1===Object.keys(ye).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ye[e]},m.__private__.getDocumentProperties=function(){return ye},m.__private__.setDocumentProperties=m.setProperties=m.setDocumentProperties=function(e){for(var t in ye)ye.hasOwnProperty(t)&&e[t]&&(ye[t]=e[t]);return this},m.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(ye).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ye[e]=t};var ge,ve,Le,Me,be,De={},Ne={},Pe=[],je={},Ee={},Oe={},Ce={},He=null,Fe=0,Ie=[],Re=new Ye(m),Be=e.hotfixes||[],We={},qe={},ze=[],Ue=function e(t,n,r,i,a,s){if(!(this instanceof e))return new e(t,n,r,i,a,s);isNaN(t)&&(t=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(a)&&(a=0),isNaN(s)&&(s=0),this._matrix=[t,n,r,i,a,s]};Object.defineProperty(Ue.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Ue.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Ue.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Ue.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Ue.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Ue.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Ue.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Ue.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Ue.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Ue.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Ue.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Ue.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Ue.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ue.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ue.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ue.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ue.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(k).join(e)},Ue.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,n=e.sx*this.shy+e.shy*this.sy,r=e.shx*this.sx+e.sy*this.shx,i=e.shx*this.shy+e.sy*this.sy,a=e.tx*this.sx+e.ty*this.shx+this.tx,s=e.tx*this.shy+e.ty*this.sy+this.ty;return new Ue(t,n,r,i,a,s)},Ue.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty,s=Math.sqrt(e*e+t*t),o=(e/=s)*n+(t/=s)*r;n-=e*o,r-=t*o;var u=Math.sqrt(n*n+r*r);return o/=u,e*(r/=u)>16&255,i=l>>8&255,a=255&l}if(void 0===i||void 0===s&&n===i&&i===a)if("string"==typeof n)t=n+" "+o[0];else switch(e.precision){case 2:t=D(n/255)+" "+o[0];break;case 3:default:t=T(n/255)+" "+o[0]}else if(void 0===s||"object"===(0,r.A)(s)){if(s&&!isNaN(s.a)&&0===s.a)return["1.","1.","1.",o[1]].join(" ");if("string"==typeof n)t=[n,i,a,o[1]].join(" ");else switch(e.precision){case 2:t=[D(n/255),D(i/255),D(a/255),o[1]].join(" ");break;default:case 3:t=[T(n/255),T(i/255),T(a/255),o[1]].join(" ")}}else if("string"==typeof n)t=[n,i,a,s,o[2]].join(" ");else switch(e.precision){case 2:t=[D(n),D(i),D(a),D(s),o[2]].join(" ");break;case 3:default:t=[T(n),T(i),T(a),T(s),o[2]].join(" ")}return t},rt=m.__private__.getFilters=function(){return o},it=m.__private__.putStream=function(e){var t=(e=e||{}).data||"",n=e.filters||rt(),r=e.alreadyAppliedFilters||[],i=e.addLength1||!1,a=t.length,s=e.objectId,o=function(e){return e};if(null!==d&&void 0===s)throw new Error("ObjectId must be passed to putStream for file encryption");null!==d&&(o=Gt.encryptor(s,0));var u={};!0===n&&(n=["FlateEncode"]);var l=e.additionalKeyValues||[],c=(u=void 0!==Ae.API.processDataByFilters?Ae.API.processDataByFilters(t,n):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==u.data.length&&(l.push({key:"Length",value:u.data.length}),!0===i&&l.push({key:"Length1",value:a})),0!=c.length)if(c.split("/").length-1==1)l.push({key:"Filter",value:c});else{l.push({key:"Filter",value:"["+c+"]"});for(var h=0;h>"),0!==u.data.length&&(te("stream"),te(o(u.data)),te("endstream"))},at=m.__private__.putPage=function(e){var t=e.number,n=e.data,r=e.objId,i=e.contentsObjId;Xe(r,!0),te("<>"),te("endobj");var a=n.join("\n");return L===v.ADVANCED&&(a+="\nQ"),Xe(i,!0),it({data:a,filters:rt(),objectId:i}),te("endobj"),r},st=m.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=Fe;e++)Ie[e].objId=Ke(),Ie[e].contentsObjId=Ke();for(e=1;e<=Fe;e++)n.push(at({number:e,data:J[e],objId:Ie[e].objId,contentsObjId:Ie[e].contentsObjId,mediaBox:Ie[e].mediaBox,cropBox:Ie[e].cropBox,bleedBox:Ie[e].bleedBox,trimBox:Ie[e].trimBox,artBox:Ie[e].artBox,userUnit:Ie[e].userUnit,rootDictionaryObjId:Qe,resourceDictionaryObjId:et}));Xe(Qe,!0),te("<>"),te("endobj"),Re.publish("postPutPages")},ot=function(e){Re.publish("putFont",{font:e,out:te,newObject:$e,putStream:it}),!0!==e.isAlreadyPutted&&(e.objectNumber=$e(),te("<<"),te("/Type /Font"),te("/BaseFont /"+ke(e.postScriptName)),te("/Subtype /Type1"),"string"==typeof e.encoding&&te("/Encoding /"+e.encoding),te("/FirstChar 32"),te("/LastChar 255"),te(">>"),te("endobj"))},ut=function(){for(var e in De)De.hasOwnProperty(e)&&(!1===h||!0===h&&f.hasOwnProperty(e))&&ot(De[e])},lt=function(e){e.objectNumber=$e();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[k(e.x),k(e.y),k(e.x+e.width),k(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var n=e.pages[1].join("\n");it({data:n,additionalKeyValues:t,objectId:e.objectNumber}),te("endobj")},ct=function(){for(var e in We)We.hasOwnProperty(e)&<(We[e])},dt=function(e,t){var n,r=[],i=1/(t-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),0!=e[0].offset){var a={offset:0,color:e[0].color};e.unshift(a)}if(1!=e[e.length-1].offset){var s={offset:1,color:e[e.length-1].color};e.push(s)}for(var o="",u=0,l=0;le[u+1].offset;)u++;var c=e[u].offset,d=(n-c)/(e[u+1].offset-c),h=e[u].color,f=e[u+1].color;o+=W(Math.round((1-d)*h[0]+d*f[0]).toString(16))+W(Math.round((1-d)*h[1]+d*f[1]).toString(16))+W(Math.round((1-d)*h[2]+d*f[2]).toString(16))}return o.trim()},ht=function(e,t){t||(t=21);var n=$e(),r=dt(e.colors,t),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+t+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),it({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),te("endobj"),e.objectNumber=$e(),te("<< /ShadingType "+e.type),te("/ColorSpace /DeviceRGB");var a="/Coords ["+k(parseFloat(e.coords[0]))+" "+k(parseFloat(e.coords[1]))+" ";2===e.type?a+=k(parseFloat(e.coords[2]))+" "+k(parseFloat(e.coords[3])):a+=k(parseFloat(e.coords[2]))+" "+k(parseFloat(e.coords[3]))+" "+k(parseFloat(e.coords[4]))+" "+k(parseFloat(e.coords[5])),te(a+="]"),e.matrix&&te("/Matrix ["+e.matrix.toString()+"]"),te("/Function "+n+" 0 R"),te("/Extend [true true]"),te(">>"),te("endobj")},ft=function(e,t){var n=Ke(),r=$e();t.push({resourcesOid:n,objectOid:r}),e.objectNumber=r;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+e.boundingBox.map(k).join(" ")+"]"}),i.push({key:"XStep",value:k(e.xStep)}),i.push({key:"YStep",value:k(e.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),e.matrix&&i.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),it({data:e.stream,additionalKeyValues:i,objectId:e.objectNumber}),te("endobj")},mt=function(e){var t;for(t in je)je.hasOwnProperty(t)&&(je[t]instanceof Te?ht(je[t]):je[t]instanceof xe&&ft(je[t],e))},_t=function(e){for(var t in e.objectNumber=$e(),te("<<"),e)switch(t){case"opacity":te("/ca "+D(e[t]));break;case"stroke-opacity":te("/CA "+D(e[t]))}te(">>"),te("endobj")},pt=function(){var e;for(e in Oe)Oe.hasOwnProperty(e)&&_t(Oe[e])},yt=function(){for(var e in te("/XObject <<"),We)We.hasOwnProperty(e)&&We[e].objectNumber>=0&&te("/"+e+" "+We[e].objectNumber+" 0 R");Re.publish("putXobjectDict"),te(">>")},gt=function(){Gt.oid=$e(),te("<<"),te("/Filter /Standard"),te("/V "+Gt.v),te("/R "+Gt.r),te("/U <"+Gt.toHexString(Gt.U)+">"),te("/O <"+Gt.toHexString(Gt.O)+">"),te("/P "+Gt.P),te(">>"),te("endobj")},vt=function(){for(var e in te("/Font <<"),De)De.hasOwnProperty(e)&&(!1===h||!0===h&&f.hasOwnProperty(e))&&te("/"+e+" "+De[e].objectNumber+" 0 R");te(">>")},Lt=function(){if(Object.keys(je).length>0){for(var e in te("/Shading <<"),je)je.hasOwnProperty(e)&&je[e]instanceof Te&&je[e].objectNumber>=0&&te("/"+e+" "+je[e].objectNumber+" 0 R");Re.publish("putShadingPatternDict"),te(">>")}},Mt=function(e){if(Object.keys(je).length>0){for(var t in te("/Pattern <<"),je)je.hasOwnProperty(t)&&je[t]instanceof m.TilingPattern&&je[t].objectNumber>=0&&je[t].objectNumber>")}},bt=function(){if(Object.keys(Oe).length>0){var e;for(e in te("/ExtGState <<"),Oe)Oe.hasOwnProperty(e)&&Oe[e].objectNumber>=0&&te("/"+e+" "+Oe[e].objectNumber+" 0 R");Re.publish("putGStateDict"),te(">>")}},wt=function(e){Xe(e.resourcesOid,!0),te("<<"),te("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),vt(),Lt(),Mt(e.objectOid),bt(),yt(),te(">>"),te("endobj")},kt=function(){var e=[];ut(),pt(),ct(),mt(e),Re.publish("putResources"),e.forEach(wt),wt({resourcesOid:et,objectOid:Number.MAX_SAFE_INTEGER}),Re.publish("postPutResources")},Yt=function(){Re.publish("putAdditionalObjects");for(var e=0;e>8&&(u=!0);e=o.join("")}for(n=e.length;void 0===u&&0!==n;)e.charCodeAt(n-1)>>8&&(u=!0),n--;if(!u)return e;for(o=t.noBOM?[]:[254,255],n=0,r=e.length;n>8)>>8)throw new Error("Character at position "+n+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");o.push(c),o.push(l-(c<<8))}return String.fromCharCode.apply(void 0,o)},Nt=m.__private__.pdfEscape=m.pdfEscape=function(e,t){return At(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Pt=m.__private__.beginPage=function(e){J[++Fe]=[],Ie[Fe]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},Ot(Fe),ee(J[R])},jt=function(e,t){var r,i,s;switch(n=t||n,"string"==typeof e&&(r=g(e.toLowerCase()),Array.isArray(r)&&(i=r[0],s=r[1])),Array.isArray(e)&&(i=e[0]*ve,s=e[1]*ve),isNaN(i)&&(i=a[0],s=a[1]),(i>14400||s>14400)&&(Q.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),s=Math.min(14400,s)),a=[i,s],n.substr(0,1)){case"l":s>i&&(a=[s,i]);break;case"p":i>s&&(a=[s,i])}Pt(a),_n(fn),te(wn),0!==xn&&te(xn+" J"),0!==An&&te(An+" j"),Re.publish("addPage",{pageNumber:Fe})},Et=function(e){e>0&&e<=Fe&&(J.splice(e,1),Ie.splice(e,1),Fe--,R>Fe&&(R=Fe),this.setPage(R))},Ot=function(e){e>0&&e<=Fe&&(R=e)},Ct=m.__private__.getNumberOfPages=m.getNumberOfPages=function(){return J.length-1},Ht=function(e,t,n){var r,i=void 0;return n=n||{},e=void 0!==e?e:De[ge].fontName,t=void 0!==t?t:De[ge].fontStyle,r=e.toLowerCase(),void 0!==Ne[r]&&void 0!==Ne[r][t]?i=Ne[r][t]:void 0!==Ne[e]&&void 0!==Ne[e][t]?i=Ne[e][t]:!1===n.disableWarning&&Q.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=Ne.times[t])&&(i=Ne.times.normal),i},Ft=m.__private__.putInfo=function(){var e=$e(),t=function(e){return e};for(var n in null!==d&&(t=Gt.encryptor(e,0)),te("<<"),te("/Producer ("+Nt(t("jsPDF "+Ae.version))+")"),ye)ye.hasOwnProperty(n)&&ye[n]&&te("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+Nt(t(ye[n]))+")");te("/CreationDate ("+Nt(t(P))+")"),te(">>"),te("endobj")},It=m.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Qe;switch($e(),te("<<"),te("/Type /Catalog"),te("/Pages "+t+" 0 R"),le||(le="fullwidth"),le){case"fullwidth":te("/OpenAction [3 0 R /FitH null]");break;case"fullheight":te("/OpenAction [3 0 R /FitV null]");break;case"fullpage":te("/OpenAction [3 0 R /Fit]");break;case"original":te("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+le;"%"===n.substr(n.length-1)&&(le=parseInt(le)/100),"number"==typeof le&&te("/OpenAction [3 0 R /XYZ null null "+D(le)+"]")}switch(me||(me="continuous"),me){case"continuous":te("/PageLayout /OneColumn");break;case"single":te("/PageLayout /SinglePage");break;case"two":case"twoleft":te("/PageLayout /TwoColumnLeft");break;case"tworight":te("/PageLayout /TwoColumnRight")}he&&te("/PageMode /"+he),Re.publish("putCatalog"),te(">>"),te("endobj")},Rt=m.__private__.putTrailer=function(){te("trailer"),te("<<"),te("/Size "+(q+1)),te("/Root "+q+" 0 R"),te("/Info "+(q-1)+" 0 R"),null!==d&&te("/Encrypt "+Gt.oid+" 0 R"),te("/ID [ <"+j+"> <"+j+"> ]"),te(">>")},Bt=m.__private__.putHeader=function(){te("%PDF-"+_),te("%ºß¬à")},Wt=m.__private__.putXRef=function(){var e="0000000000";te("xref"),te("0 "+(q+1)),te("0000000000 65535 f ");for(var t=1;t<=q;t++)"function"==typeof z[t]?te((e+z[t]()).slice(-10)+" 00000 n "):void 0!==z[t]?te((e+z[t]).slice(-10)+" 00000 n "):te("0000000000 00000 n ")},qt=m.__private__.buildDocument=function(){Z(),ee(U),Re.publish("buildDocument"),Bt(),st(),Yt(),kt(),null!==d&>(),Ft(),It();var e=V;return Wt(),Rt(),te("startxref"),te(""+e),te("%%EOF"),ee(J[R]),U.join("\n")},zt=m.__private__.getBlob=function(e){return new Blob([re(e)],{type:"application/pdf"})},Ut=m.output=m.__private__.output=xt((function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return qt();case"save":m.save(t.filename);break;case"arraybuffer":return re(qt());case"blob":return zt(qt());case"bloburi":case"bloburl":if(void 0!==X.URL&&"function"==typeof X.URL.createObjectURL)return X.URL&&X.URL.createObjectURL(zt(qt()))||void 0;Q.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=qt();try{n=ie(r)}catch(e){n=ie(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+t.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(X)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",a=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(i=t.pdfObjectUrl,a="");var s='
G){if(G=ee,J=K,ee>X)break;var te=Math.min(K,ee-2),ne=0;for(V=0;Vne&&(ne=ae,z=re)}}}q=z,z=w[q],K+=q-z+32768&32767}}if(J){T[O++]=268435456|f[G]<<18|p[J];var se=31&f[G],oe=31&p[J];E+=o[se]+u[oe],++x[257+se],++P[oe],C=y+G,++j}else T[O++]=e[y],++x[e[y]]}}_=R(e,m,c,T,x,P,E,O,H,y-H,_),c||(_=I(m,_,W))}return N(h,0,r+A(_)+l)},z=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,a=n.length,s=0;s!=a;){for(var o=Math.min(s+5552,a);s>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}},U=function(e,t,n,r,i){return q(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},V=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},G=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)},J=function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};function $(e,t){void 0===t&&(t={});var n=z();n.p(e);var r=U(e,t,2,4);return G(r,t),V(r,r.length-4,n.d()),r}function K(e,t){return P((J(e),e.subarray(2,-4)),t)} /** @license * * jsPDF - PDF Document creation from JavaScript * Version 2.5.1 Built on 2022-01-28T15:37:57.791Z * CommitID 00000000 * * Copyright (c) 2010-2021 James Hall , https://github.com/MrRio/jsPDF * 2015-2021 yWorks GmbH, http://www.yworks.com * 2015-2021 Lukas Holländer , https://github.com/HackbrettXXX * 2016-2018 Aras Abbasi * 2010 Aaron Spike, https://github.com/acspike * 2012 Willow Systems Corporation, https://github.com/willowsystems * 2012 Pablo Hess, https://github.com/pablohess * 2012 Florian Jenett, https://github.com/fjenett * 2013 Warren Weckesser, https://github.com/warrenweckesser * 2013 Youssef Beddad, https://github.com/lifof * 2013 Lee Driscoll, https://github.com/lsdriscoll * 2013 Stefan Slonevskiy, https://github.com/stefslon * 2013 Jeremy Morel, https://github.com/jmorel * 2013 Christoph Hartmann, https://github.com/chris-rock * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria * 2014 James Makes, https://github.com/dollaruw * 2014 Diego Casorran, https://github.com/diegocr * 2014 Steven Spungin, https://github.com/Flamenco * 2014 Kenneth Glassey, https://github.com/Gavvers * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * Contributor(s): * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango, * kim3er, mfo, alnorth, Flamenco */ var X=function(){return"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:this}();function Z(){X.console&&"function"==typeof X.console.log&&X.console.log.apply(X.console,arguments)}var Q={log:Z,warn:function(e){X.console&&("function"==typeof X.console.warn?X.console.warn.apply(X.console,arguments):Z.call(null,arguments))},error:function(e){X.console&&("function"==typeof X.console.error?X.console.error.apply(X.console,arguments):Z(e))}};function ee(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){ae(r.response,t,n)},r.onerror=function(){Q.error("could not download file")},r.send()}function te(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function ne(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var re,ie,ae=X.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,r.A)(window))||window!==X?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=X.URL||X.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener","string"==typeof e?(i.href=e,i.origin!==location.origin?te(i.href)?ee(e,t,n):ne(i,i.target="_blank"):ne(i)):(i.href=r.createObjectURL(e),setTimeout((function(){r.revokeObjectURL(i.href)}),4e4),setTimeout((function(){ne(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download","string"==typeof e)if(te(e))ee(e,t,n);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){ne(i)}))}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!==(0,r.A)(t)&&(Q.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return ee(e,t,n);var a="application/octet-stream"===e.type,s=/constructor/i.test(X.HTMLElement)||X.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||a&&s)&&"object"===("undefined"==typeof FileReader?"undefined":(0,r.A)(FileReader))){var u=new FileReader;u.onloadend=function(){var e=u.result;e=o?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var l=X.URL||X.webkitURL,c=l.createObjectURL(e);i?i.location=c:location.href=c,i=null,setTimeout((function(){l.revokeObjectURL(c)}),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 se(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={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"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;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(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r255?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 e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}} /** * @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 oe(e,t){var n=e[0],r=e[1],i=e[2],a=e[3];n=le(n,r,i,a,t[0],7,-680876936),a=le(a,n,r,i,t[1],12,-389564586),i=le(i,a,n,r,t[2],17,606105819),r=le(r,i,a,n,t[3],22,-1044525330),n=le(n,r,i,a,t[4],7,-176418897),a=le(a,n,r,i,t[5],12,1200080426),i=le(i,a,n,r,t[6],17,-1473231341),r=le(r,i,a,n,t[7],22,-45705983),n=le(n,r,i,a,t[8],7,1770035416),a=le(a,n,r,i,t[9],12,-1958414417),i=le(i,a,n,r,t[10],17,-42063),r=le(r,i,a,n,t[11],22,-1990404162),n=le(n,r,i,a,t[12],7,1804603682),a=le(a,n,r,i,t[13],12,-40341101),i=le(i,a,n,r,t[14],17,-1502002290),n=ce(n,r=le(r,i,a,n,t[15],22,1236535329),i,a,t[1],5,-165796510),a=ce(a,n,r,i,t[6],9,-1069501632),i=ce(i,a,n,r,t[11],14,643717713),r=ce(r,i,a,n,t[0],20,-373897302),n=ce(n,r,i,a,t[5],5,-701558691),a=ce(a,n,r,i,t[10],9,38016083),i=ce(i,a,n,r,t[15],14,-660478335),r=ce(r,i,a,n,t[4],20,-405537848),n=ce(n,r,i,a,t[9],5,568446438),a=ce(a,n,r,i,t[14],9,-1019803690),i=ce(i,a,n,r,t[3],14,-187363961),r=ce(r,i,a,n,t[8],20,1163531501),n=ce(n,r,i,a,t[13],5,-1444681467),a=ce(a,n,r,i,t[2],9,-51403784),i=ce(i,a,n,r,t[7],14,1735328473),n=de(n,r=ce(r,i,a,n,t[12],20,-1926607734),i,a,t[5],4,-378558),a=de(a,n,r,i,t[8],11,-2022574463),i=de(i,a,n,r,t[11],16,1839030562),r=de(r,i,a,n,t[14],23,-35309556),n=de(n,r,i,a,t[1],4,-1530992060),a=de(a,n,r,i,t[4],11,1272893353),i=de(i,a,n,r,t[7],16,-155497632),r=de(r,i,a,n,t[10],23,-1094730640),n=de(n,r,i,a,t[13],4,681279174),a=de(a,n,r,i,t[0],11,-358537222),i=de(i,a,n,r,t[3],16,-722521979),r=de(r,i,a,n,t[6],23,76029189),n=de(n,r,i,a,t[9],4,-640364487),a=de(a,n,r,i,t[12],11,-421815835),i=de(i,a,n,r,t[15],16,530742520),n=he(n,r=de(r,i,a,n,t[2],23,-995338651),i,a,t[0],6,-198630844),a=he(a,n,r,i,t[7],10,1126891415),i=he(i,a,n,r,t[14],15,-1416354905),r=he(r,i,a,n,t[5],21,-57434055),n=he(n,r,i,a,t[12],6,1700485571),a=he(a,n,r,i,t[3],10,-1894986606),i=he(i,a,n,r,t[10],15,-1051523),r=he(r,i,a,n,t[1],21,-2054922799),n=he(n,r,i,a,t[8],6,1873313359),a=he(a,n,r,i,t[15],10,-30611744),i=he(i,a,n,r,t[6],15,-1560198380),r=he(r,i,a,n,t[13],21,1309151649),n=he(n,r,i,a,t[4],6,-145523070),a=he(a,n,r,i,t[11],10,-1120210379),i=he(i,a,n,r,t[2],15,718787259),r=he(r,i,a,n,t[9],21,-343485551),e[0]=Le(n,e[0]),e[1]=Le(r,e[1]),e[2]=Le(i,e[2]),e[3]=Le(a,e[3])}function ue(e,t,n,r,i,a){return t=Le(Le(t,e),Le(r,a)),Le(t<>>32-i,n)}function le(e,t,n,r,i,a,s){return ue(t&n|~t&r,e,t,i,a,s)}function ce(e,t,n,r,i,a,s){return ue(t&r|n&~r,e,t,i,a,s)}function de(e,t,n,r,i,a,s){return ue(t^n^r,e,t,i,a,s)}function he(e,t,n,r,i,a,s){return ue(n^(t|~r),e,t,i,a,s)}function fe(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)oe(r,me(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(oe(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,oe(r,i),r}function me(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}re=X.atob.bind(X),ie=X.btoa.bind(X);var _e="0123456789abcdef".split("");function pe(e){for(var t="",n=0;n<4;n++)t+=_e[e>>8*n+4&15]+_e[e>>8*n&15];return t}function ye(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function ge(e){return fe(e).map(ye).join("")}var ve="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&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 Me(e,t){var n,r,i,a;if(e!==n){for(var s=(i=e,a=1+(256/e.length|0),new Array(a+1).join(i)),o=[],u=0;u<256;u++)o[u]=u;var l=0;for(u=0;u<256;u++){var c=o[u];l=(l+c+s.charCodeAt(u))%256,o[u]=o[l],o[l]=c}n=e,r=o}else o=r;var d=t.length,h=0,f=0,m="";for(u=0;u/\f©þdSiz";var a=(t+this.padding).substr(0,32),s=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,s),this.P=-(1+(255^i)),this.encryptionKey=ge(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Me(this.encryptionKey,this.padding)}function ke(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r126?"#"+("0"+i.toString(16)).slice(-2):e[r]}return t}function Ye(e){if("object"!==(0,r.A)(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,n,r){if(r=r||!1,"string"!=typeof e||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var i=Math.random().toString(35);return t[e][i]=[n,!!r],i},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],0===Object.keys(t[n]).length&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var a in t[n]){var s=t[n][a];try{s[0].apply(e,r)}catch(n){X.console&&Q.error("jsPDF PubSub Error",n.message,n)}s[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Se(e){if(!(this instanceof Se))return new Se(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function De(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Te(e,t,n,r,i){if(!(this instanceof Te))return new Te(e,t,n,r,i);this.type="axial"===e?2:3,this.coords=t,this.colors=n,De.call(this,r,i)}function xe(e,t,n,r,i){if(!(this instanceof xe))return new xe(e,t,n,r,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,De.call(this,r,i)}function Ae(e){var t,n="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],a=arguments[2],s=arguments[3],o=[],u=1,l=16,c="S",d=null;"object"===(0,r.A)(e=e||{})&&(n=e.orientation,i=e.unit||i,a=e.format||a,s=e.compress||e.compressPdf||s,null!==(d=e.encryption||null)&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),u="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),o=e.filters||(!0===s?["FlateEncode"]:o),i=i||"mm",n=(""+(n||"P")).toLowerCase();var h=e.putOnlyUsedFonts||!1,f={},m={internal:{},__private__:{}};m.__private__.PubSub=Ye;var _="1.3",p=m.__private__.getPdfVersion=function(){return _};m.__private__.setPdfVersion=function(e){_=e};var y={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]};m.__private__.getPageFormats=function(){return y};var g=m.__private__.getPageFormat=function(e){return y[e]};a=a||"a4";var v={COMPAT:"compat",ADVANCED:"advanced"},L=v.COMPAT;function M(){this.saveGraphicsState(),te(new Ue(ve,0,0,-ve,0,Rn()*ve).toString()+" cm"),this.setFontSize(this.getFontSize()/ve),c="n",L=v.ADVANCED}function b(){this.restoreGraphicsState(),c="S",L=v.COMPAT}var w=m.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};m.advancedAPI=function(e){var t=L===v.COMPAT;return t&&M.call(this),"function"!=typeof e||(e(this),t&&b.call(this)),this},m.compatAPI=function(e){var t=L===v.ADVANCED;return t&&b.call(this),"function"!=typeof e||(e(this),t&&M.call(this)),this},m.isAdvancedAPI=function(){return L===v.ADVANCED};var k,Y=function(e){if(L!==v.ADVANCED)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},S=m.roundToPrecision=m.__private__.roundToPrecision=function(e,n){var r=t||n;if(isNaN(e)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(r).replace(/0+$/,"")};k=m.hpf=m.__private__.hpf="number"==typeof l?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return S(e,l)}:"smart"===l?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return S(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return S(e,16)};var D=m.f2=m.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return S(e,2)},T=m.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return S(e,3)},x=m.scale=m.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return L===v.COMPAT?e*ve:L===v.ADVANCED?e:void 0},A=function(e){return L===v.COMPAT?Rn()-e:L===v.ADVANCED?e:void 0},N=function(e){return x(A(e))};m.__private__.setPrecision=m.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var P,j="00000000000000000000000000000000",E=m.__private__.getFileId=function(){return j},O=m.__private__.setFileId=function(e){return j=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():j.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==d&&(Gt=new we(d.userPermissions,d.userPassword,d.ownerPassword,j)),j};m.setFileId=function(e){return O(e),this},m.getFileId=function(){return E()};var C=m.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?"+":"-",r=Math.floor(Math.abs(t/60)),i=Math.abs(t%60),a=[n,B(r),"'",B(i),"'"].join("");return["D:",e.getFullYear(),B(e.getMonth()+1),B(e.getDate()),B(e.getHours()),B(e.getMinutes()),B(e.getSeconds()),a].join("")},H=m.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,r=parseInt(e.substr(8,2),10),i=parseInt(e.substr(10,2),10),a=parseInt(e.substr(12,2),10),s=parseInt(e.substr(14,2),10);return new Date(t,n,r,i,a,s,0)},F=m.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=C(e);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(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return P=t},I=m.__private__.getCreationDate=function(e){var t=P;return"jsDate"===e&&(t=H(P)),t};m.setCreationDate=function(e){return F(e),this},m.getCreationDate=function(e){return I(e)};var R,B=m.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},W=m.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},q=0,z=[],U=[],V=0,G=[],J=[],$=!1,K=U,Z=function(){q=0,V=0,U=[],z=[],G=[],Qe=Ke(),et=Ke()};m.__private__.setCustomOutputDestination=function(e){$=!0,K=e};var ee=function(e){$||(K=e)};m.__private__.resetCustomOutputDestination=function(){$=!1,K=U};var te=m.__private__.out=function(e){return e=e.toString(),V+=e.length+1,K.push(e),K},ne=m.__private__.write=function(e){return te(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},re=m.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n);t--;)r[t]=e.charCodeAt(t);return n},oe=[["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]];m.__private__.getStandardFonts=function(){return oe};var ue=e.fontSize||16;m.__private__.setFontSize=m.setFontSize=function(e){return ue=L===v.ADVANCED?e/ve:e,this};var le,ce=m.__private__.getFontSize=m.getFontSize=function(){return L===v.COMPAT?ue:ue*ve},de=e.R2L||!1;m.__private__.setR2L=m.setR2L=function(e){return de=e,this},m.__private__.getR2L=m.getR2L=function(){return de};var he,fe=m.__private__.setZoomMode=function(e){var t=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))le=e;else if(isNaN(e)){if(-1===t.indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');le=e}else le=parseInt(e,10)};m.__private__.getZoomMode=function(){return le};var me,_e=m.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');he=e};m.__private__.getPageMode=function(){return he};var pe=m.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');me=e};m.__private__.getLayoutMode=function(){return me},m.__private__.setDisplayMode=m.setDisplayMode=function(e,t,n){return fe(e),pe(t),_e(n),this};var ye={title:"",subject:"",author:"",keywords:"",creator:""};m.__private__.getDocumentProperty=function(e){if(-1===Object.keys(ye).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ye[e]},m.__private__.getDocumentProperties=function(){return ye},m.__private__.setDocumentProperties=m.setProperties=m.setDocumentProperties=function(e){for(var t in ye)ye.hasOwnProperty(t)&&e[t]&&(ye[t]=e[t]);return this},m.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(ye).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ye[e]=t};var ge,ve,Le,Me,be,De={},Ne={},Pe=[],je={},Ee={},Oe={},Ce={},He=null,Fe=0,Ie=[],Re=new Ye(m),Be=e.hotfixes||[],We={},qe={},ze=[],Ue=function e(t,n,r,i,a,s){if(!(this instanceof e))return new e(t,n,r,i,a,s);isNaN(t)&&(t=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(a)&&(a=0),isNaN(s)&&(s=0),this._matrix=[t,n,r,i,a,s]};Object.defineProperty(Ue.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Ue.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Ue.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Ue.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Ue.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Ue.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Ue.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Ue.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Ue.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Ue.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Ue.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Ue.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Ue.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ue.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ue.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ue.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ue.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(k).join(e)},Ue.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,n=e.sx*this.shy+e.shy*this.sy,r=e.shx*this.sx+e.sy*this.shx,i=e.shx*this.shy+e.sy*this.sy,a=e.tx*this.sx+e.ty*this.shx+this.tx,s=e.tx*this.shy+e.ty*this.sy+this.ty;return new Ue(t,n,r,i,a,s)},Ue.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty,s=Math.sqrt(e*e+t*t),o=(e/=s)*n+(t/=s)*r;n-=e*o,r-=t*o;var u=Math.sqrt(n*n+r*r);return o/=u,e*(r/=u)>16&255,i=l>>8&255,a=255&l}if(void 0===i||void 0===s&&n===i&&i===a)if("string"==typeof n)t=n+" "+o[0];else switch(e.precision){case 2:t=D(n/255)+" "+o[0];break;case 3:default:t=T(n/255)+" "+o[0]}else if(void 0===s||"object"===(0,r.A)(s)){if(s&&!isNaN(s.a)&&0===s.a)return["1.","1.","1.",o[1]].join(" ");if("string"==typeof n)t=[n,i,a,o[1]].join(" ");else switch(e.precision){case 2:t=[D(n/255),D(i/255),D(a/255),o[1]].join(" ");break;default:case 3:t=[T(n/255),T(i/255),T(a/255),o[1]].join(" ")}}else if("string"==typeof n)t=[n,i,a,s,o[2]].join(" ");else switch(e.precision){case 2:t=[D(n),D(i),D(a),D(s),o[2]].join(" ");break;case 3:default:t=[T(n),T(i),T(a),T(s),o[2]].join(" ")}return t},rt=m.__private__.getFilters=function(){return o},it=m.__private__.putStream=function(e){var t=(e=e||{}).data||"",n=e.filters||rt(),r=e.alreadyAppliedFilters||[],i=e.addLength1||!1,a=t.length,s=e.objectId,o=function(e){return e};if(null!==d&&void 0===s)throw new Error("ObjectId must be passed to putStream for file encryption");null!==d&&(o=Gt.encryptor(s,0));var u={};!0===n&&(n=["FlateEncode"]);var l=e.additionalKeyValues||[],c=(u=void 0!==Ae.API.processDataByFilters?Ae.API.processDataByFilters(t,n):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==u.data.length&&(l.push({key:"Length",value:u.data.length}),!0===i&&l.push({key:"Length1",value:a})),0!=c.length)if(c.split("/").length-1==1)l.push({key:"Filter",value:c});else{l.push({key:"Filter",value:"["+c+"]"});for(var h=0;h>"),0!==u.data.length&&(te("stream"),te(o(u.data)),te("endstream"))},at=m.__private__.putPage=function(e){var t=e.number,n=e.data,r=e.objId,i=e.contentsObjId;Xe(r,!0),te("<>"),te("endobj");var a=n.join("\n");return L===v.ADVANCED&&(a+="\nQ"),Xe(i,!0),it({data:a,filters:rt(),objectId:i}),te("endobj"),r},st=m.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=Fe;e++)Ie[e].objId=Ke(),Ie[e].contentsObjId=Ke();for(e=1;e<=Fe;e++)n.push(at({number:e,data:J[e],objId:Ie[e].objId,contentsObjId:Ie[e].contentsObjId,mediaBox:Ie[e].mediaBox,cropBox:Ie[e].cropBox,bleedBox:Ie[e].bleedBox,trimBox:Ie[e].trimBox,artBox:Ie[e].artBox,userUnit:Ie[e].userUnit,rootDictionaryObjId:Qe,resourceDictionaryObjId:et}));Xe(Qe,!0),te("<>"),te("endobj"),Re.publish("postPutPages")},ot=function(e){Re.publish("putFont",{font:e,out:te,newObject:$e,putStream:it}),!0!==e.isAlreadyPutted&&(e.objectNumber=$e(),te("<<"),te("/Type /Font"),te("/BaseFont /"+ke(e.postScriptName)),te("/Subtype /Type1"),"string"==typeof e.encoding&&te("/Encoding /"+e.encoding),te("/FirstChar 32"),te("/LastChar 255"),te(">>"),te("endobj"))},ut=function(){for(var e in De)De.hasOwnProperty(e)&&(!1===h||!0===h&&f.hasOwnProperty(e))&&ot(De[e])},lt=function(e){e.objectNumber=$e();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[k(e.x),k(e.y),k(e.x+e.width),k(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var n=e.pages[1].join("\n");it({data:n,additionalKeyValues:t,objectId:e.objectNumber}),te("endobj")},ct=function(){for(var e in We)We.hasOwnProperty(e)&<(We[e])},dt=function(e,t){var n,r=[],i=1/(t-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),0!=e[0].offset){var a={offset:0,color:e[0].color};e.unshift(a)}if(1!=e[e.length-1].offset){var s={offset:1,color:e[e.length-1].color};e.push(s)}for(var o="",u=0,l=0;le[u+1].offset;)u++;var c=e[u].offset,d=(n-c)/(e[u+1].offset-c),h=e[u].color,f=e[u+1].color;o+=W(Math.round((1-d)*h[0]+d*f[0]).toString(16))+W(Math.round((1-d)*h[1]+d*f[1]).toString(16))+W(Math.round((1-d)*h[2]+d*f[2]).toString(16))}return o.trim()},ht=function(e,t){t||(t=21);var n=$e(),r=dt(e.colors,t),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+t+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),it({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),te("endobj"),e.objectNumber=$e(),te("<< /ShadingType "+e.type),te("/ColorSpace /DeviceRGB");var a="/Coords ["+k(parseFloat(e.coords[0]))+" "+k(parseFloat(e.coords[1]))+" ";2===e.type?a+=k(parseFloat(e.coords[2]))+" "+k(parseFloat(e.coords[3])):a+=k(parseFloat(e.coords[2]))+" "+k(parseFloat(e.coords[3]))+" "+k(parseFloat(e.coords[4]))+" "+k(parseFloat(e.coords[5])),te(a+="]"),e.matrix&&te("/Matrix ["+e.matrix.toString()+"]"),te("/Function "+n+" 0 R"),te("/Extend [true true]"),te(">>"),te("endobj")},ft=function(e,t){var n=Ke(),r=$e();t.push({resourcesOid:n,objectOid:r}),e.objectNumber=r;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+e.boundingBox.map(k).join(" ")+"]"}),i.push({key:"XStep",value:k(e.xStep)}),i.push({key:"YStep",value:k(e.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),e.matrix&&i.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),it({data:e.stream,additionalKeyValues:i,objectId:e.objectNumber}),te("endobj")},mt=function(e){var t;for(t in je)je.hasOwnProperty(t)&&(je[t]instanceof Te?ht(je[t]):je[t]instanceof xe&&ft(je[t],e))},_t=function(e){for(var t in e.objectNumber=$e(),te("<<"),e)switch(t){case"opacity":te("/ca "+D(e[t]));break;case"stroke-opacity":te("/CA "+D(e[t]))}te(">>"),te("endobj")},pt=function(){var e;for(e in Oe)Oe.hasOwnProperty(e)&&_t(Oe[e])},yt=function(){for(var e in te("/XObject <<"),We)We.hasOwnProperty(e)&&We[e].objectNumber>=0&&te("/"+e+" "+We[e].objectNumber+" 0 R");Re.publish("putXobjectDict"),te(">>")},gt=function(){Gt.oid=$e(),te("<<"),te("/Filter /Standard"),te("/V "+Gt.v),te("/R "+Gt.r),te("/U <"+Gt.toHexString(Gt.U)+">"),te("/O <"+Gt.toHexString(Gt.O)+">"),te("/P "+Gt.P),te(">>"),te("endobj")},vt=function(){for(var e in te("/Font <<"),De)De.hasOwnProperty(e)&&(!1===h||!0===h&&f.hasOwnProperty(e))&&te("/"+e+" "+De[e].objectNumber+" 0 R");te(">>")},Lt=function(){if(Object.keys(je).length>0){for(var e in te("/Shading <<"),je)je.hasOwnProperty(e)&&je[e]instanceof Te&&je[e].objectNumber>=0&&te("/"+e+" "+je[e].objectNumber+" 0 R");Re.publish("putShadingPatternDict"),te(">>")}},Mt=function(e){if(Object.keys(je).length>0){for(var t in te("/Pattern <<"),je)je.hasOwnProperty(t)&&je[t]instanceof m.TilingPattern&&je[t].objectNumber>=0&&je[t].objectNumber>")}},bt=function(){if(Object.keys(Oe).length>0){var e;for(e in te("/ExtGState <<"),Oe)Oe.hasOwnProperty(e)&&Oe[e].objectNumber>=0&&te("/"+e+" "+Oe[e].objectNumber+" 0 R");Re.publish("putGStateDict"),te(">>")}},wt=function(e){Xe(e.resourcesOid,!0),te("<<"),te("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),vt(),Lt(),Mt(e.objectOid),bt(),yt(),te(">>"),te("endobj")},kt=function(){var e=[];ut(),pt(),ct(),mt(e),Re.publish("putResources"),e.forEach(wt),wt({resourcesOid:et,objectOid:Number.MAX_SAFE_INTEGER}),Re.publish("postPutResources")},Yt=function(){Re.publish("putAdditionalObjects");for(var e=0;e>8&&(u=!0);e=o.join("")}for(n=e.length;void 0===u&&0!==n;)e.charCodeAt(n-1)>>8&&(u=!0),n--;if(!u)return e;for(o=t.noBOM?[]:[254,255],n=0,r=e.length;n>8)>>8)throw new Error("Character at position "+n+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");o.push(c),o.push(l-(c<<8))}return String.fromCharCode.apply(void 0,o)},Nt=m.__private__.pdfEscape=m.pdfEscape=function(e,t){return At(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Pt=m.__private__.beginPage=function(e){J[++Fe]=[],Ie[Fe]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},Ot(Fe),ee(J[R])},jt=function(e,t){var r,i,s;switch(n=t||n,"string"==typeof e&&(r=g(e.toLowerCase()),Array.isArray(r)&&(i=r[0],s=r[1])),Array.isArray(e)&&(i=e[0]*ve,s=e[1]*ve),isNaN(i)&&(i=a[0],s=a[1]),(i>14400||s>14400)&&(Q.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),s=Math.min(14400,s)),a=[i,s],n.substr(0,1)){case"l":s>i&&(a=[s,i]);break;case"p":i>s&&(a=[s,i])}Pt(a),_n(fn),te(wn),0!==xn&&te(xn+" J"),0!==An&&te(An+" j"),Re.publish("addPage",{pageNumber:Fe})},Et=function(e){e>0&&e<=Fe&&(J.splice(e,1),Ie.splice(e,1),Fe--,R>Fe&&(R=Fe),this.setPage(R))},Ot=function(e){e>0&&e<=Fe&&(R=e)},Ct=m.__private__.getNumberOfPages=m.getNumberOfPages=function(){return J.length-1},Ht=function(e,t,n){var r,i=void 0;return n=n||{},e=void 0!==e?e:De[ge].fontName,t=void 0!==t?t:De[ge].fontStyle,r=e.toLowerCase(),void 0!==Ne[r]&&void 0!==Ne[r][t]?i=Ne[r][t]:void 0!==Ne[e]&&void 0!==Ne[e][t]?i=Ne[e][t]:!1===n.disableWarning&&Q.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=Ne.times[t])&&(i=Ne.times.normal),i},Ft=m.__private__.putInfo=function(){var e=$e(),t=function(e){return e};for(var n in null!==d&&(t=Gt.encryptor(e,0)),te("<<"),te("/Producer ("+Nt(t("jsPDF "+Ae.version))+")"),ye)ye.hasOwnProperty(n)&&ye[n]&&te("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+Nt(t(ye[n]))+")");te("/CreationDate ("+Nt(t(P))+")"),te(">>"),te("endobj")},It=m.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Qe;switch($e(),te("<<"),te("/Type /Catalog"),te("/Pages "+t+" 0 R"),le||(le="fullwidth"),le){case"fullwidth":te("/OpenAction [3 0 R /FitH null]");break;case"fullheight":te("/OpenAction [3 0 R /FitV null]");break;case"fullpage":te("/OpenAction [3 0 R /Fit]");break;case"original":te("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+le;"%"===n.substr(n.length-1)&&(le=parseInt(le)/100),"number"==typeof le&&te("/OpenAction [3 0 R /XYZ null null "+D(le)+"]")}switch(me||(me="continuous"),me){case"continuous":te("/PageLayout /OneColumn");break;case"single":te("/PageLayout /SinglePage");break;case"two":case"twoleft":te("/PageLayout /TwoColumnLeft");break;case"tworight":te("/PageLayout /TwoColumnRight")}he&&te("/PageMode /"+he),Re.publish("putCatalog"),te(">>"),te("endobj")},Rt=m.__private__.putTrailer=function(){te("trailer"),te("<<"),te("/Size "+(q+1)),te("/Root "+q+" 0 R"),te("/Info "+(q-1)+" 0 R"),null!==d&&te("/Encrypt "+Gt.oid+" 0 R"),te("/ID [ <"+j+"> <"+j+"> ]"),te(">>")},Bt=m.__private__.putHeader=function(){te("%PDF-"+_),te("%ºß¬à")},Wt=m.__private__.putXRef=function(){var e="0000000000";te("xref"),te("0 "+(q+1)),te("0000000000 65535 f ");for(var t=1;t<=q;t++)"function"==typeof z[t]?te((e+z[t]()).slice(-10)+" 00000 n "):void 0!==z[t]?te((e+z[t]).slice(-10)+" 00000 n "):te("0000000000 00000 n ")},qt=m.__private__.buildDocument=function(){Z(),ee(U),Re.publish("buildDocument"),Bt(),st(),Yt(),kt(),null!==d&>(),Ft(),It();var e=V;return Wt(),Rt(),te("startxref"),te(""+e),te("%%EOF"),ee(J[R]),U.join("\n")},zt=m.__private__.getBlob=function(e){return new Blob([re(e)],{type:"application/pdf"})},Ut=m.output=m.__private__.output=xt((function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return qt();case"save":m.save(t.filename);break;case"arraybuffer":return re(qt());case"blob":return zt(qt());case"bloburi":case"bloburl":if(void 0!==X.URL&&"function"==typeof X.URL.createObjectURL)return X.URL&&X.URL.createObjectURL(zt(qt()))||void 0;Q.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=qt();try{n=ie(r)}catch(e){n=ie(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+t.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(X)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",a=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(i=t.pdfObjectUrl,a="");var s='