/*! For license information please see 206.js.LICENSE.txt */ (self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[206],{50917:(t,e,n)=>{var r;r=function(t,e,r){var i=[];function o(t){i.push(t)}function a(t){this.selector=t;for(var e=0;e{"use strict";n.d(e,{Z:()=>Rn});n(43666),n(29157);var r=n(93379),i=n.n(r),o=n(34051),a={insert:"head",singleton:!1};i()(o.Z,a);o.Z.locals;let s=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];function c(t){for(var e="",n=0;n>>1|(21845&N)<<1;L=(61680&(L=(52428&L)>>>2|(13107&L)<<2))>>>4|(3855&L)<<4,k[N]=((65280&L)>>>8|(255&L)<<8)>>>1}var C=function(t,e,n){for(var r=t.length,i=0,o=new d(e);i>>c]=u}else for(a=new d(r),i=0;i>>15-t[i];return a},P=new f(288);for(N=0;N<144;++N)P[N]=8;for(N=144;N<256;++N)P[N]=9;for(N=256;N<280;++N)P[N]=7;for(N=280;N<288;++N)P[N]=8;var E=new f(32);for(N=0;N<32;++N)E[N]=5;var I=C(P,9,0),M=C(P,9,1),T=C(E,5,0),O=C(E,5,1),R=function(t){for(var e=t[0],n=1;ne&&(e=t[n]);return e},D=function(t,e,n){var r=e/8>>0;return(t[r]|t[r+1]<<8)>>>(7&e)&n},B=function(t,e){var n=e/8>>0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>>(7&e)},F=function(t){return(t/8>>0)+(7&t&&1)},j=function(t,e,n){(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length);var r=new(t instanceof d?d:t instanceof p?p:f)(n-e);return r.set(t.subarray(e,n)),r},q=function(t,e,n){var r=t.length,i=!e||n,o=!n||n.i;n||(n={}),e||(e=new f(3*r));var a=function(t){var n=e.length;if(t>n){var r=new f(Math.max(2*n,t));r.set(e),e=r}},s=n.f||0,c=n.p||0,u=n.b||0,l=n.l,h=n.d,d=n.m,p=n.n,b=8*r;do{if(!l){n.f=s=D(t,c,1);var y=D(t,c+1,3);if(c+=3,!y){var x=t[(z=F(c)+4)-4]|t[z-3]<<8,A=z+x;if(A>r){if(o)throw"unexpected EOF";break}i&&a(u+x),e.set(t.subarray(z,A),u),n.b=u+=x,n.p=c=8*A;continue}if(1==y)l=M,h=O,d=9,p=5;else{if(2!=y)throw"invalid block type";var S=D(t,c,31)+257,k=D(t,c+10,15)+4,N=S+D(t,c+5,31)+1;c+=14;for(var L=new f(N),P=new f(19),E=0;Eb)break;var q=C(P,I,1);for(E=0;E>>4)<16)L[E++]=z;else{var U=0,H=0;for(16==z?(H=3+D(t,c,3),c+=2,U=L[E-1]):17==z?(H=3+D(t,c,7),c+=3):18==z&&(H=11+D(t,c,127),c+=7);H--;)L[E++]=U}}var G=L.subarray(0,S),W=L.subarray(S);d=R(G),p=R(W),l=C(G,d,1),h=C(W,p,1)}if(c>b)throw"unexpected EOF"}i&&a(u+131072);for(var Y=(1<>>4;if((c+=15&U)>b)throw"unexpected EOF";if(!U)throw"invalid length/literal";if(Z<256)e[u++]=Z;else{if(256==Z){l=null;break}var K=Z-254;if(Z>264){var Q=g[E=Z-257];K=D(t,c,(1<>>4;if(!$)throw"invalid distance";c+=15&$;W=_[tt];if(tt>3){Q=m[tt];W+=B(t,c)&(1<b)throw"unexpected EOF";i&&a(u+131072);for(var et=u+K;u>0;t[r]|=n,t[r+1]|=n>>>8},V=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8,t[r+2]|=n>>>16},U=function(t,e){for(var n=[],r=0;rp&&(p=o[r].s);var g=new d(p+1),m=H(n[l-1],g,0);if(m>e){r=0;var v=0,b=m-e,y=1<e))break;v+=y-(1<>>=b;v>0;){var x=o[r].s;g[x]=0&&v;--r){var A=o[r].s;g[A]==e&&(--g[A],++v)}m=e}return[new f(g),m]},H=function(t,e,n){return-1==t.s?Math.max(H(t.l,e,n+1),H(t.r,e,n+1)):e[t.s]=n},G=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new d(++e),r=0,i=t[0],o=1,a=function(t){n[r++]=t},s=1;s<=e;++s)if(t[s]==i&&s!=e)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=t[s]}return[n.subarray(0,r),e]},W=function(t,e){for(var n=0,r=0;r>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o4&&!R[v[B-1]];--B);var F,j,q,H,X=u+5<<3,J=W(i,P)+W(o,E)+a,Z=W(i,f)+W(o,y)+a+14+3*B+W(L,R)+(2*L[16]+3*L[17]+7*L[18]);if(X<=J&&X<=Z)return Y(e,l,t.subarray(c,c+u));if(z(e,l,1+(Z15&&(z(e,l,tt[M]>>>5&127),l+=tt[M]>>>12)}}}else F=I,j=P,q=T,H=E;for(M=0;M255){et=r[M]>>>18&31;V(e,l,F[et+257]),l+=j[et+257],et>7&&(z(e,l,r[M]>>>23&31),l+=g[et]);var nt=31&r[M];V(e,l,q[nt]),l+=H[nt],nt>3&&(V(e,l,r[M]>>>5&8191),l+=m[nt])}else V(e,l,F[r[M]]),l+=j[r[M]];return V(e,l,F[256]),l+j[256]},J=new p([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Z=new f(0),K=function(t,e,n,r,i,o){var a=t.length,s=new f(r+a+5*(1+Math.floor(a/7e3))+i),c=s.subarray(r,s.length-i),u=0;if(!e||a<8)for(var l=0;l<=a;l+=65535){var h=l+65535;h>>13,y=8191&v,w=(1<7e3||T>24576)&&z>423){u=X(t,c,0,C,P,E,M,T,R,l-R,u),T=I=M=0,R=l;for(var V=0;V<286;++V)P[V]=0;for(V=0;V<30;++V)E[V]=0}var U=2,H=0,G=y,W=B-q&32767;if(z>2&&D==L(l-W))for(var K=Math.min(b,z)-1,Q=Math.min(32767,l),$=Math.min(258,z);W<=Q&&--G&&B!=q;){if(t[l+U]==t[l+U-W]){for(var tt=0;tt<$&&t[l+tt]==t[l+tt-W];++tt);if(tt>U){if(U=tt,H=W,tt>K)break;var et=Math.min(W,tt-2),nt=0;for(V=0;Vnt&&(nt=it,q=rt)}}}W+=(B=q)-(q=A[B])+32768&32767}if(H){C[T++]=268435456|x[U]<<18|S[H];var ot=31&x[U],at=31&S[H];M+=g[ot]+m[at],++P[257+ot],++E[at],O=l+U,++I}else C[T++]=t[l],++P[t[l]]}}u=X(t,c,o,C,P,E,M,T,R,l-R,u),o||(u=Y(c,u,Z))}return j(s,0,r+F(u)+i)},Q=function(){var t=1,e=0;return{p:function(n){for(var r=t,i=e,o=n.length,a=0;a!=o;){for(var s=Math.min(a+5552,o);a>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}},$=function(t,e,n,r,i){return K(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,r,!i)},tt=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},et=function(t,e){var n=e.level,r=0==n?0:n<6?1:9==n?3:2;t[0]=120,t[1]=r<<6|(r?32-2*r:1)},nt=function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"};function rt(t,e){void 0===e&&(e={});var n=Q();n.p(t);var r=$(t,e,2,4);return et(r,e),tt(r,r.length-4,n.d()),r}function it(t,e){return q((nt(t),t.subarray(2,-4)),e)}var ot=function(){return"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this}();function at(){ot.console&&"function"==typeof ot.console.log&&ot.console.log.apply(ot.console,arguments)}var st={log:at,warn:function(t){ot.console&&("function"==typeof ot.console.warn?ot.console.warn.apply(ot.console,arguments):at.call(null,arguments))},error:function(t){ot.console&&("function"==typeof ot.console.error?ot.console.error.apply(ot.console,arguments):at(t))}};function ct(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){dt(r.response,e,n)},r.onerror=function(){st.error("could not download file")},r.send()}function ut(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function lt(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var ht,ft,dt=ot.saveAs||("object"!==("undefined"==typeof window?"undefined":h(window))||window!==ot?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var r=ot.URL||ot.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?ut(i.href)?ct(t,e,n):lt(i,i.target="_blank"):lt(i)):(i.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(i.href)}),4e4),setTimeout((function(){lt(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(ut(t))ct(t,e,n);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout((function(){lt(r)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==h(e)&&(st.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return ct(t,e,n);var i="application/octet-stream"===t.type,o=/constructor/i.test(ot.HTMLElement)||ot.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||i&&o)&&"object"===("undefined"==typeof FileReader?"undefined":h(FileReader))){var s=new FileReader;s.onloadend=function(){var t=s.result;t=a?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},s.readAsDataURL(t)}else{var c=ot.URL||ot.webkitURL,u=c.createObjectURL(t);r?r.location=u:location.href=u,r=null,setTimeout((function(){c.revokeObjectURL(u)}),4e4)}});function pt(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={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"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;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(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[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 t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}}function gt(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];n=vt(n,r,i,o,e[0],7,-680876936),o=vt(o,n,r,i,e[1],12,-389564586),i=vt(i,o,n,r,e[2],17,606105819),r=vt(r,i,o,n,e[3],22,-1044525330),n=vt(n,r,i,o,e[4],7,-176418897),o=vt(o,n,r,i,e[5],12,1200080426),i=vt(i,o,n,r,e[6],17,-1473231341),r=vt(r,i,o,n,e[7],22,-45705983),n=vt(n,r,i,o,e[8],7,1770035416),o=vt(o,n,r,i,e[9],12,-1958414417),i=vt(i,o,n,r,e[10],17,-42063),r=vt(r,i,o,n,e[11],22,-1990404162),n=vt(n,r,i,o,e[12],7,1804603682),o=vt(o,n,r,i,e[13],12,-40341101),i=vt(i,o,n,r,e[14],17,-1502002290),n=bt(n,r=vt(r,i,o,n,e[15],22,1236535329),i,o,e[1],5,-165796510),o=bt(o,n,r,i,e[6],9,-1069501632),i=bt(i,o,n,r,e[11],14,643717713),r=bt(r,i,o,n,e[0],20,-373897302),n=bt(n,r,i,o,e[5],5,-701558691),o=bt(o,n,r,i,e[10],9,38016083),i=bt(i,o,n,r,e[15],14,-660478335),r=bt(r,i,o,n,e[4],20,-405537848),n=bt(n,r,i,o,e[9],5,568446438),o=bt(o,n,r,i,e[14],9,-1019803690),i=bt(i,o,n,r,e[3],14,-187363961),r=bt(r,i,o,n,e[8],20,1163531501),n=bt(n,r,i,o,e[13],5,-1444681467),o=bt(o,n,r,i,e[2],9,-51403784),i=bt(i,o,n,r,e[7],14,1735328473),n=yt(n,r=bt(r,i,o,n,e[12],20,-1926607734),i,o,e[5],4,-378558),o=yt(o,n,r,i,e[8],11,-2022574463),i=yt(i,o,n,r,e[11],16,1839030562),r=yt(r,i,o,n,e[14],23,-35309556),n=yt(n,r,i,o,e[1],4,-1530992060),o=yt(o,n,r,i,e[4],11,1272893353),i=yt(i,o,n,r,e[7],16,-155497632),r=yt(r,i,o,n,e[10],23,-1094730640),n=yt(n,r,i,o,e[13],4,681279174),o=yt(o,n,r,i,e[0],11,-358537222),i=yt(i,o,n,r,e[3],16,-722521979),r=yt(r,i,o,n,e[6],23,76029189),n=yt(n,r,i,o,e[9],4,-640364487),o=yt(o,n,r,i,e[12],11,-421815835),i=yt(i,o,n,r,e[15],16,530742520),n=wt(n,r=yt(r,i,o,n,e[2],23,-995338651),i,o,e[0],6,-198630844),o=wt(o,n,r,i,e[7],10,1126891415),i=wt(i,o,n,r,e[14],15,-1416354905),r=wt(r,i,o,n,e[5],21,-57434055),n=wt(n,r,i,o,e[12],6,1700485571),o=wt(o,n,r,i,e[3],10,-1894986606),i=wt(i,o,n,r,e[10],15,-1051523),r=wt(r,i,o,n,e[1],21,-2054922799),n=wt(n,r,i,o,e[8],6,1873313359),o=wt(o,n,r,i,e[15],10,-30611744),i=wt(i,o,n,r,e[6],15,-1560198380),r=wt(r,i,o,n,e[13],21,1309151649),n=wt(n,r,i,o,e[4],6,-145523070),o=wt(o,n,r,i,e[11],10,-1120210379),i=wt(i,o,n,r,e[2],15,718787259),r=wt(r,i,o,n,e[9],21,-343485551),t[0]=Ct(n,t[0]),t[1]=Ct(r,t[1]),t[2]=Ct(i,t[2]),t[3]=Ct(o,t[3])}function mt(t,e,n,r,i,o){return e=Ct(Ct(e,t),Ct(r,o)),Ct(e<>>32-i,n)}function vt(t,e,n,r,i,o,a){return mt(e&n|~e&r,t,e,i,o,a)}function bt(t,e,n,r,i,o,a){return mt(e&r|n&~r,t,e,i,o,a)}function yt(t,e,n,r,i,o,a){return mt(e^n^r,t,e,i,o,a)}function wt(t,e,n,r,i,o,a){return mt(n^(e|~r),t,e,i,o,a)}function xt(t){var e,n=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)gt(r,At(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(gt(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*n,gt(r,i),r}function At(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}ht=ot.atob.bind(ot),ft=ot.btoa.bind(ot);var _t="0123456789abcdef".split("");function St(t){for(var e="",n=0;n<4;n++)e+=_t[t>>8*n+4&15]+_t[t>>8*n&15];return e}function kt(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function Nt(t){return xt(t).map(kt).join("")}var Lt="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}function Pt(t,e){var n,r,i,o;if(t!==n){for(var a=(i=t,o=1+(256/t.length>>0),new Array(o+1).join(i)),s=[],c=0;c<256;c++)s[c]=c;var u=0;for(c=0;c<256;c++){var l=s[c];u=(u+l+a.charCodeAt(c))%256,s[c]=s[u],s[u]=l}n=t,r=s}else s=r;var h=e.length,f=0,d=0,p="";for(c=0;c€/\f©þdSiz";var o=(e+this.padding).substr(0,32),a=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,a),this.P=-(1+(255^i)),this.encryptionKey=Nt(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Pt(this.encryptionKey,this.padding)}function Mt(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,r=0;r126?"#"+("0"+i.toString(16)).slice(-2):t[r]}return e}function Tt(t){if("object"!==h(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!r],i},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var o in e[n]){var a=e[n][o];try{a[0].apply(t,r)}catch(n){ot.console&&st.error("jsPDF PubSub Error",n.message,n)}a[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Ot(t){if(!(this instanceof Ot))return new Ot(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function Rt(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function Dt(t,e,n,r,i){if(!(this instanceof Dt))return new Dt(t,e,n,r,i);this.type="axial"===t?2:3,this.coords=e,this.colors=n,Rt.call(this,r,i)}function Bt(t,e,n,r,i){if(!(this instanceof Bt))return new Bt(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,Rt.call(this,r,i)}function Ft(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],i=arguments[2],o=arguments[3],a=[],s=1,c=16,u="S",l=null;"object"===h(t=t||{})&&(n=t.orientation,r=t.unit||r,i=t.format||i,o=t.compress||t.compressPdf||o,null!==(l=t.encryption||null)&&(l.userPassword=l.userPassword||"",l.ownerPassword=l.ownerPassword||"",l.userPermissions=l.userPermissions||[]),s="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(c=t.floatPrecision),u=t.defaultPathOperation||"S"),a=t.filters||(!0===o?["FlateEncode"]:a),r=r||"mm",n=(""+(n||"P")).toLowerCase();var f=t.putOnlyUsedFonts||!1,d={},p={internal:{},__private__:{}};p.__private__.PubSub=Tt;var g="1.3",m=p.__private__.getPdfVersion=function(){return g};p.__private__.setPdfVersion=function(t){g=t};var v={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 v};var b=p.__private__.getPageFormat=function(t){return v[t]};i=i||"a4";var y={COMPAT:"compat",ADVANCED:"advanced"},w=y.COMPAT;function x(){this.saveGraphicsState(),$(new Gt(yt,0,0,-yt,0,qn()*yt).toString()+" cm"),this.setFontSize(this.getFontSize()/yt),u="n",w=y.ADVANCED}function A(){this.restoreGraphicsState(),u="S",w=y.COMPAT}var _=p.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};p.advancedAPI=function(t){var e=w===y.COMPAT;return e&&x.call(this),"function"!=typeof t||(t(this),e&&A.call(this)),this},p.compatAPI=function(t){var e=w===y.ADVANCED;return e&&A.call(this),"function"!=typeof t||(t(this),e&&x.call(this)),this},p.isAdvancedAPI=function(){return w===y.ADVANCED};var S,k=function(t){if(w!==y.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},N=p.roundToPrecision=p.__private__.roundToPrecision=function(t,n){var r=e||n;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};S=p.hpf=p.__private__.hpf="number"==typeof c?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return N(t,c)}:"smart"===c?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return N(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return N(t,16)};var L=p.f2=p.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return N(t,2)},C=p.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return N(t,3)},P=p.scale=p.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return w===y.COMPAT?t*yt:w===y.ADVANCED?t:void 0},E=function(t){return w===y.COMPAT?qn()-t:w===y.ADVANCED?t:void 0},I=function(t){return P(E(t))};p.__private__.setPrecision=p.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var M,T="00000000000000000000000000000000",O=p.__private__.getFileId=function(){return T},R=p.__private__.setFileId=function(t){return T=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():T.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==l&&(Ye=new It(l.userPermissions,l.userPassword,l.ownerPassword,T)),T};p.setFileId=function(t){return R(t),this},p.getFileId=function(){return O()};var D=p.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),o=[n,z(r),"'",z(i),"'"].join("");return["D:",t.getFullYear(),z(t.getMonth()+1),z(t.getDate()),z(t.getHours()),z(t.getMinutes()),z(t.getSeconds()),o].join("")},B=p.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),o=parseInt(t.substr(12,2),10),a=parseInt(t.substr(14,2),10);return new Date(e,n,r,i,o,a,0)},F=p.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=D(t);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(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return M=e},j=p.__private__.getCreationDate=function(t){var e=M;return"jsDate"===t&&(e=B(M)),e};p.setCreationDate=function(t){return F(t),this},p.getCreationDate=function(t){return j(t)};var q,z=p.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},V=p.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},U=0,H=[],G=[],W=0,Y=[],X=[],J=!1,Z=G,K=function(){U=0,W=0,G=[],H=[],Y=[],$t=Zt(),te=Zt()};p.__private__.setCustomOutputDestination=function(t){J=!0,Z=t};var Q=function(t){J||(Z=t)};p.__private__.resetCustomOutputDestination=function(){J=!1,Z=G};var $=p.__private__.out=function(t){return t=t.toString(),W+=t.length+1,Z.push(t),Z},tt=p.__private__.write=function(t){return $(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},et=p.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},nt=[["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 nt};var rt=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(t){return rt=w===y.ADVANCED?t/yt:t,this};var it,at=p.__private__.getFontSize=p.getFontSize=function(){return w===y.COMPAT?rt:rt*yt},ct=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(t){return ct=t,this},p.__private__.getR2L=p.getR2L=function(){return ct};var ut,lt=p.__private__.setZoomMode=function(t){if(/^\d*\.?\d*%$/.test(t))it=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');it=t}else it=parseInt(t,10)};p.__private__.getZoomMode=function(){return it};var ht,gt=p.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');ut=t};p.__private__.getPageMode=function(){return ut};var mt=p.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');ht=t};p.__private__.getLayoutMode=function(){return ht},p.__private__.setDisplayMode=p.setDisplayMode=function(t,e,n){return lt(t),mt(e),gt(n),this};var vt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(t){if(-1===Object.keys(vt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return vt[t]},p.__private__.getDocumentProperties=function(){return vt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(t){for(var e in vt)vt.hasOwnProperty(e)&&t[e]&&(vt[e]=t[e]);return this},p.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(vt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return vt[t]=e};var bt,yt,wt,xt,At,_t={},St={},kt=[],Nt={},Lt={},Ct={},Pt={},Et=null,Rt=0,jt=[],qt=new Tt(p),zt=t.hotfixes||[],Vt={},Ut={},Ht=[],Gt=function t(e,n,r,i,o,a){if(!(this instanceof t))return new t(e,n,r,i,o,a);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(o)&&(o=0),isNaN(a)&&(a=0),this._matrix=[e,n,r,i,o,a]};Object.defineProperty(Gt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Gt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Gt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Gt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Gt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Gt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Gt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Gt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Gt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Gt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Gt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Gt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Gt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Gt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Gt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Gt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Gt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(S).join(t)},Gt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,o=t.tx*this.sx+t.ty*this.shx+this.tx,a=t.tx*this.shy+t.ty*this.sy+this.ty;return new Gt(e,n,r,i,o,a)},Gt.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=Math.sqrt(t*t+e*e),s=(t/=a)*n+(e/=a)*r;n-=t*s,r-=e*s;var c=Math.sqrt(n*n+r*r);return s/=c,t*(r/=c)>16&255,r=c>>8&255,i=255&c}if(void 0===r||void 0===o&&n===r&&r===i)if("string"==typeof n)e=n+" "+a[0];else if(2===t.precision)e=L(n/255)+" "+a[0];else e=C(n/255)+" "+a[0];else if(void 0===o||"object"===h(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",a[1]].join(" ");if("string"==typeof n)e=[n,r,i,a[1]].join(" ");else if(2===t.precision)e=[L(n/255),L(r/255),L(i/255),a[1]].join(" ");else e=[C(n/255),C(r/255),C(i/255),a[1]].join(" ")}else if("string"==typeof n)e=[n,r,i,o,a[2]].join(" ");else if(2===t.precision)e=[L(n),L(r),L(i),L(o),a[2]].join(" ");else e=[C(n),C(r),C(i),C(o),a[2]].join(" ");return e},re=p.__private__.getFilters=function(){return a},ie=p.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||re(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,o=e.length,a=t.objectId,s=function(t){return t};if(null!==l&&void 0===a)throw new Error("ObjectId must be passed to putStream for file encryption");null!==l&&(s=Ye.encryptor(a,0));var c={};!0===n&&(n=["FlateEncode"]);var u=t.additionalKeyValues||[],h=(c=void 0!==Ft.API.processDataByFilters?Ft.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==c.data.length&&(u.push({key:"Length",value:c.data.length}),!0===i&&u.push({key:"Length1",value:o})),0!=h.length)if(h.split("/").length-1==1)u.push({key:"Filter",value:h});else{u.push({key:"Filter",value:"["+h+"]"});for(var f=0;f>"),0!==c.data.length&&($("stream"),$(s(c.data)),$("endstream"))},oe=p.__private__.putPage=function(t){var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;Kt(r,!0),$("<>"),$("endobj");var o=n.join("\n");return w===y.ADVANCED&&(o+="\nQ"),Kt(i,!0),ie({data:o,filters:re(),objectId:i}),$("endobj"),r},ae=p.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=Rt;t++)jt[t].objId=Zt(),jt[t].contentsObjId=Zt();for(t=1;t<=Rt;t++)n.push(oe({number:t,data:X[t],objId:jt[t].objId,contentsObjId:jt[t].contentsObjId,mediaBox:jt[t].mediaBox,cropBox:jt[t].cropBox,bleedBox:jt[t].bleedBox,trimBox:jt[t].trimBox,artBox:jt[t].artBox,userUnit:jt[t].userUnit,rootDictionaryObjId:$t,resourceDictionaryObjId:te}));Kt($t,!0),$("<>"),$("endobj"),qt.publish("postPutPages")},se=function(t){qt.publish("putFont",{font:t,out:$,newObject:Jt,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Jt(),$("<<"),$("/Type /Font"),$("/BaseFont /"+Mt(t.postScriptName)),$("/Subtype /Type1"),"string"==typeof t.encoding&&$("/Encoding /"+t.encoding),$("/FirstChar 32"),$("/LastChar 255"),$(">>"),$("endobj"))},ce=function(){for(var t in _t)_t.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&se(_t[t])},ue=function(t){t.objectNumber=Jt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[S(t.x),S(t.y),S(t.x+t.width),S(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var n=t.pages[1].join("\n");ie({data:n,additionalKeyValues:e,objectId:t.objectNumber}),$("endobj")},le=function(){for(var t in Vt)Vt.hasOwnProperty(t)&&ue(Vt[t])},he=function(t,e){var n,r=[],i=1/(e-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),0!=t[0].offset){var o={offset:0,color:t[0].color};t.unshift(o)}if(1!=t[t.length-1].offset){var a={offset:1,color:t[t.length-1].color};t.push(a)}for(var s="",c=0,u=0;ut[c+1].offset;)c++;var l=t[c].offset,h=(n-l)/(t[c+1].offset-l),f=t[c].color,d=t[c+1].color;s+=V(Math.round((1-h)*f[0]+h*d[0]).toString(16))+V(Math.round((1-h)*f[1]+h*d[1]).toString(16))+V(Math.round((1-h)*f[2]+h*d[2]).toString(16))}return s.trim()},fe=function(t,e){e||(e=21);var n=Jt(),r=he(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),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]"}),ie({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),$("endobj"),t.objectNumber=Jt(),$("<< /ShadingType "+t.type),$("/ColorSpace /DeviceRGB");var o="/Coords ["+S(parseFloat(t.coords[0]))+" "+S(parseFloat(t.coords[1]))+" ";2===t.type?o+=S(parseFloat(t.coords[2]))+" "+S(parseFloat(t.coords[3])):o+=S(parseFloat(t.coords[2]))+" "+S(parseFloat(t.coords[3]))+" "+S(parseFloat(t.coords[4]))+" "+S(parseFloat(t.coords[5])),$(o+="]"),t.matrix&&$("/Matrix ["+t.matrix.toString()+"]"),$("/Function "+n+" 0 R"),$("/Extend [true true]"),$(">>"),$("endobj")},de=function(t,e){var n=Zt(),r=Jt();e.push({resourcesOid:n,objectOid:r}),t.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:"["+t.boundingBox.map(S).join(" ")+"]"}),i.push({key:"XStep",value:S(t.xStep)}),i.push({key:"YStep",value:S(t.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ie({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),$("endobj")},pe=function(t){var e;for(e in Nt)Nt.hasOwnProperty(e)&&(Nt[e]instanceof Dt?fe(Nt[e]):Nt[e]instanceof Bt&&de(Nt[e],t))},ge=function(t){for(var e in t.objectNumber=Jt(),$("<<"),t)switch(e){case"opacity":$("/ca "+L(t[e]));break;case"stroke-opacity":$("/CA "+L(t[e]))}$(">>"),$("endobj")},me=function(){var t;for(t in Ct)Ct.hasOwnProperty(t)&&ge(Ct[t])},ve=function(){for(var t in $("/XObject <<"),Vt)Vt.hasOwnProperty(t)&&Vt[t].objectNumber>=0&&$("/"+t+" "+Vt[t].objectNumber+" 0 R");qt.publish("putXobjectDict"),$(">>")},be=function(){Ye.oid=Jt(),$("<<"),$("/Filter /Standard"),$("/V "+Ye.v),$("/R "+Ye.r),$("/U <"+Ye.toHexString(Ye.U)+">"),$("/O <"+Ye.toHexString(Ye.O)+">"),$("/P "+Ye.P),$(">>"),$("endobj")},ye=function(){for(var t in $("/Font <<"),_t)_t.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&$("/"+t+" "+_t[t].objectNumber+" 0 R");$(">>")},we=function(){if(Object.keys(Nt).length>0){for(var t in $("/Shading <<"),Nt)Nt.hasOwnProperty(t)&&Nt[t]instanceof Dt&&Nt[t].objectNumber>=0&&$("/"+t+" "+Nt[t].objectNumber+" 0 R");qt.publish("putShadingPatternDict"),$(">>")}},xe=function(t){if(Object.keys(Nt).length>0){for(var e in $("/Pattern <<"),Nt)Nt.hasOwnProperty(e)&&Nt[e]instanceof p.TilingPattern&&Nt[e].objectNumber>=0&&Nt[e].objectNumber>")}},Ae=function(){if(Object.keys(Ct).length>0){var t;for(t in $("/ExtGState <<"),Ct)Ct.hasOwnProperty(t)&&Ct[t].objectNumber>=0&&$("/"+t+" "+Ct[t].objectNumber+" 0 R");qt.publish("putGStateDict"),$(">>")}},_e=function(t){Kt(t.resourcesOid,!0),$("<<"),$("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ye(),we(),xe(t.objectOid),Ae(),ve(),$(">>"),$("endobj")},Se=function(){var t=[];ce(),me(),le(),pe(t),qt.publish("putResources"),t.forEach(_e),_e({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),qt.publish("postPutResources")},ke=function(){qt.publish("putAdditionalObjects");for(var t=0;t>8&&(c=!0);t=s.join("")}for(n=t.length;void 0===c&&0!==n;)t.charCodeAt(n-1)>>8&&(c=!0),n--;if(!c)return t;for(s=e.noBOM?[]:[254,255],n=0,r=t.length;n>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(l),s.push(u-(l<<8))}return String.fromCharCode.apply(void 0,s)},Ie=p.__private__.pdfEscape=p.pdfEscape=function(t,e){return Ee(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Me=p.__private__.beginPage=function(t){X[++Rt]=[],jt[Rt]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},Re(Rt),Q(X[q])},Te=function(t,e){var r,o,a;switch(n=e||n,"string"==typeof t&&(r=b(t.toLowerCase()),Array.isArray(r)&&(o=r[0],a=r[1])),Array.isArray(t)&&(o=t[0]*yt,a=t[1]*yt),isNaN(o)&&(o=i[0],a=i[1]),(o>14400||a>14400)&&(st.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),o=Math.min(14400,o),a=Math.min(14400,a)),i=[o,a],n.substr(0,1)){case"l":a>o&&(i=[a,o]);break;case"p":o>a&&(i=[a,o])}Me(i),gn(dn),$(_n),0!==Pn&&$(Pn+" J"),0!==En&&$(En+" j"),qt.publish("addPage",{pageNumber:Rt})},Oe=function(t){t>0&&t<=Rt&&(X.splice(t,1),jt.splice(t,1),Rt--,q>Rt&&(q=Rt),this.setPage(q))},Re=function(t){t>0&&t<=Rt&&(q=t)},De=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return X.length-1},Be=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:_t[bt].fontName,e=void 0!==e?e:_t[bt].fontStyle,r=t.toLowerCase(),void 0!==St[r]&&void 0!==St[r][e]?i=St[r][e]:void 0!==St[t]&&void 0!==St[t][e]?i=St[t][e]:!1===n.disableWarning&&st.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=St.times[e])&&(i=St.times.normal),i},Fe=p.__private__.putInfo=function(){var t=Jt(),e=function(t){return t};for(var n in null!==l&&(e=Ye.encryptor(t,0)),$("<<"),$("/Producer ("+Ie(e("jsPDF "+Ft.version))+")"),vt)vt.hasOwnProperty(n)&&vt[n]&&$("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+Ie(e(vt[n]))+")");$("/CreationDate ("+Ie(e(M))+")"),$(">>"),$("endobj")},je=p.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||$t;switch(Jt(),$("<<"),$("/Type /Catalog"),$("/Pages "+e+" 0 R"),it||(it="fullwidth"),it){case"fullwidth":$("/OpenAction [3 0 R /FitH null]");break;case"fullheight":$("/OpenAction [3 0 R /FitV null]");break;case"fullpage":$("/OpenAction [3 0 R /Fit]");break;case"original":$("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+it;"%"===n.substr(n.length-1)&&(it=parseInt(it)/100),"number"==typeof it&&$("/OpenAction [3 0 R /XYZ null null "+L(it)+"]")}switch(ht||(ht="continuous"),ht){case"continuous":$("/PageLayout /OneColumn");break;case"single":$("/PageLayout /SinglePage");break;case"two":case"twoleft":$("/PageLayout /TwoColumnLeft");break;case"tworight":$("/PageLayout /TwoColumnRight")}ut&&$("/PageMode /"+ut),qt.publish("putCatalog"),$(">>"),$("endobj")},qe=p.__private__.putTrailer=function(){$("trailer"),$("<<"),$("/Size "+(U+1)),$("/Root "+U+" 0 R"),$("/Info "+(U-1)+" 0 R"),null!==l&&$("/Encrypt "+Ye.oid+" 0 R"),$("/ID [ <"+T+"> <"+T+"> ]"),$(">>")},ze=p.__private__.putHeader=function(){$("%PDF-"+g),$("%ºß¬à")},Ve=p.__private__.putXRef=function(){var t="0000000000";$("xref"),$("0 "+(U+1)),$("0000000000 65535 f ");for(var e=1;e<=U;e++)"function"==typeof H[e]?$((t+H[e]()).slice(-10)+" 00000 n "):void 0!==H[e]?$((t+H[e]).slice(-10)+" 00000 n "):$("0000000000 00000 n ")},Ue=p.__private__.buildDocument=function(){K(),Q(G),qt.publish("buildDocument"),ze(),ae(),ke(),Se(),null!==l&&be(),Fe(),je();var t=W;return Ve(),qe(),$("startxref"),$(""+t),$("%%EOF"),Q(X[q]),G.join("\n")},He=p.__private__.getBlob=function(t){return new Blob([et(t)],{type:"application/pdf"})},Ge=p.output=p.__private__.output=Pe((function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return Ue();case"save":p.save(e.filename);break;case"arraybuffer":return et(Ue());case"blob":return He(Ue());case"bloburi":case"bloburl":if(void 0!==ot.URL&&"function"==typeof ot.URL.createObjectURL)return ot.URL&&ot.URL.createObjectURL(He(Ue()))||void 0;st.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=Ue();try{n=ft(r)}catch(t){n=ft(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(ot)){var i='