>15-e[n]);return o},v=new n(288);for(w=0;w<144;++w)v[w]=8;for(w=144;w<256;++w)v[w]=9;for(w=256;w<280;++w)v[w]=7;for(w=280;w<288;++w)v[w]=8;var b=new n(32);for(w=0;w<32;++w)b[w]=5;var C=y(v,9,0),_=y(v,9,1),j=y(b,5,0),x=y(b,5,1),F=function(e){for(var t=e[0],A=1;At&&(t=e[A]);return t},Q=function(e,t,A){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&A},U=function(e,t){var A=t/8|0;return(e[A]|e[A+1]<<8|e[A+2]<<16)>>(7&t)},E=function(e){return(e+7)/8|0},S=function(e,t,A){return(null==t||t<0)&&(t=0),(null==A||A>e.length)&&(A=e.length),new n(e.subarray(t,A))},L={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},I=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],N=function(e,t,A){var r=new Error(t||I[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,N),!A)throw r;return r},k=function(e,t,A,r){var s=e.length,i=r?r.length:0;if(!s||t.f&&!t.l)return A||new n(0);var c=!A,u=c||2!=t.i,d=t.i;c&&(A=new n(3*s));var f=function(e){var t=A.length;if(e>t){var r=new n(Math.max(2*t,e));r.set(A),A=r}},g=t.f||0,m=t.p||0,w=t.b||0,B=t.l,v=t.d,b=t.m,C=t.n,j=8*s;do{if(!B){g=Q(e,m,1);var L=Q(e,m+1,3);if(m+=3,!L){var I=e[(G=E(m)+4)-4]|e[G-3]<<8,k=G+I;if(k>s){d&&N(0);break}u&&f(w+I),A.set(e.subarray(G,k),w),t.b=w+=I,t.p=m=8*k,t.f=g;continue}if(1==L)B=_,v=x,b=9,C=5;else if(2==L){var H=Q(e,m,31)+257,P=Q(e,m+10,15)+4,T=H+Q(e,m+5,31)+1;m+=14;for(var O=new n(T),M=new n(19),D=0;D>4)<16)O[D++]=G;else{var q=0,W=0;for(16==G?(W=3+Q(e,m,3),m+=2,q=O[D-1]):17==G?(W=3+Q(e,m,7),m+=3):18==G&&(W=11+Q(e,m,127),m+=7);W--;)O[D++]=q}}var X=O.subarray(0,H),Y=O.subarray(H);b=F(X),C=F(Y),B=y(X,b,1),v=y(Y,C,1)}else N(1);if(m>j){d&&N(0);break}}u&&f(w+131072);for(var J=(1<>4;if((m+=15&q)>j){d&&N(0);break}if(q||N(2),ee<256)A[w++]=ee;else{if(256==ee){$=m,B=null;break}var te=ee-254;if(ee>264){var Ae=o[D=ee-257];te=Q(e,m,(1<>4;if(re||N(3),m+=15&re,Y=p[ne],ne>3&&(Ae=a[ne],Y+=U(e,m)&(1<j){d&&N(0);break}u&&f(w+131072);var se=w+te;if(w>8},P=function(e,t,A){A<<=7&t;var r=t/8|0;e[r]|=A,e[r+1]|=A>>8,e[r+2]|=A>>16},T=function(e,t){for(var A=[],r=0;rf&&(f=o[r].s);var p=new s(f+1),g=O(A[h-1],p,0);if(g>t){r=0;var m=0,w=g-t,B=1<t))break;m+=B-(1<>=w;m>0;){var v=o[r].s;p[v]=0&&m;--r){var b=o[r].s;p[b]==t&&(--p[b],++m)}g=t}return{t:new n(p),l:g}},O=function(e,t,A){return-1==e.s?Math.max(O(e.l,t,A+1),O(e.r,t,A+1)):t[e.s]=A},M=function(e){for(var t=e.length;t&&!e[--t];);for(var A=new s(++t),r=0,n=e[0],i=1,o=function(e){A[r++]=e},a=1;a<=t;++a)if(e[a]==n&&a!=t)++i;else{if(!n&&i>2){for(;i>138;i-=138)o(32754);i>2&&(o(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(o(n),--i;i>6;i-=6)o(8304);i>2&&(o(i-3<<5|8208),i=0)}for(;i--;)o(n);i=1,n=e[a]}return{c:A.subarray(0,r),n:t}},D=function(e,t){for(var A=0,r=0;r>8,e[n+2]=255^e[n],e[n+3]=255^e[n+1];for(var s=0;s4&&!k[l[K-1]];--K);var V,G,z,q,W=d+5<<3,X=D(n,v)+D(i,b)+c,Y=D(n,g)+D(i,B)+c+14+3*K+D(L,k)+2*L[16]+3*L[17]+7*L[18];if(h>=0&&W<=X&&W<=Y)return R(t,f,e.subarray(h,h+d));if(H(t,f,1+(Y15&&(H(t,f,ee[I]>>5&127),f+=ee[I]>>12)}}}else V=C,G=v,z=j,q=b;for(I=0;I255){P(t,f,V[257+(te=Ae>>18&31)]),f+=G[te+257],te>7&&(H(t,f,Ae>>23&31),f+=o[te]);var re=31&Ae;P(t,f,z[re]),f+=q[re],re>3&&(P(t,f,Ae>>5&8191),f+=a[re])}else P(t,f,V[Ae]),f+=G[Ae]}return P(t,f,V[256]),f+G[256]},V=new i([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),G=new n(0),z=function(e,t,A,r,l,c){var u=c.z||e.length,h=new n(r+u+5*(1+Math.ceil(u/7e3))+l),f=h.subarray(r,h.length-l),p=c.l,m=7&(c.r||0);if(t){m&&(f[0]=c.r>>3);for(var w=V[t-1],B=w>>13,y=8191&w,v=(1<7e3||k>24576)&&(D>423||!p)){m=K(e,f,0,F,Q,U,I,k,P,N-P,m),k=L=I=0,P=N;for(var G=0;G<286;++G)Q[G]=0;for(G=0;G<30;++G)U[G]=0}var z=2,q=0,W=y,X=O-M&32767;if(D>2&&T==x(N-X))for(var Y=Math.min(B,D)-1,J=Math.min(32767,N),Z=Math.min(258,D);X<=J&&--W&&O!=M;){if(e[N+z]==e[N+z-X]){for(var $=0;$z){if(z=$,q=X,$>Y)break;var ee=Math.min(X,$-2),te=0;for(G=0;Gte&&(te=re,M=Ae)}}}X+=(O=M)-(M=b[O])&32767}if(q){F[k++]=268435456|d[z]<<18|g[q];var ne=31&d[z],se=31&g[q];I+=o[ne]+a[se],++Q[257+ne],++U[se],H=N+z,++L}else F[k++]=e[N],++Q[e[N]]}}for(N=Math.max(N,H);N=u&&(f[m/8|0]=p,ie=u),m=R(f,m+1,e.subarray(N,ie))}c.i=u}return S(h,0,r+E(m)+l)},q=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var A=t,r=9;--r;)A=(1&A&&-306674912)^A>>>1;e[t]=A}return e}(),W=function(){var e=-1;return{p:function(t){for(var A=e,r=0;r>>8;e=A},d:function(){return~e}}},X=function(){var e=1,t=0;return{p:function(A){for(var r=e,n=t,s=0|A.length,i=0;i!=s;){for(var o=Math.min(i+2655,s);i>16),n=(65535&n)+15*(n>>16)}e=r,t=n},d:function(){return(255&(e%=65521))<<24|(65280&e)<<8|(255&(t%=65521))<<8|t>>8}}},Y=function(e,t,A,r,s){if(!s&&(s={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),o=new n(i.length+e.length);o.set(i),o.set(e,i.length),e=o,s.w=i.length}return z(e,null==t.level?6:t.level,null==t.mem?s.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,A,r,s)},J=function(e,t){var A={};for(var r in e)A[r]=e[r];for(var r in t)A[r]=t[r];return A},Z=function(e,t,A){for(var r=e(),n=e.toString(),s=n.slice(n.indexOf("[")+1,n.lastIndexOf("]")).replace(/\s+/g,"").split(","),i=0;i>>0},fe=function(e,t){return de(e,t)+4294967296*de(e,t+4)},pe=function(e,t,A){for(;A;++t)e[t]=A,A>>>=8},ge=function(e,t){var A=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&pe(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),A){e[3]=8;for(var r=0;r<=A.length;++r)e[r+10]=A.charCodeAt(r)}},me=function(e){31==e[0]&&139==e[1]&&8==e[2]||N(6,"invalid gzip data");var t=e[3],A=10;4&t&&(A+=2+(e[10]|e[11]<<8));for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[A++]);return A+(2&t)},we=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Be=function(e){return 10+(e.filename?e.filename.length+1:0)},ye=function(e,t){var A=t.level,r=0==A?0:A<6?1:9==A?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var n=X();n.p(t.dictionary),pe(e,2,n.d())}},ve=function(e,t){return(8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31)&&N(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&N(6,"invalid zlib data: "+(32&e[1]?"need":"unexpected")+" dictionary"),2+(e[1]>>3&4)};function be(e,t){return"function"==typeof e&&(t=e,e={}),this.ondata=t,e}var Ce=function(){function e(e,t){if("function"==typeof e&&(t=e,e={}),this.ondata=t,this.o=e||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new n(98304),this.o.dictionary){var A=this.o.dictionary.subarray(-32768);this.b.set(A,32768-A.length),this.s.i=32768-A.length}}return e.prototype.p=function(e,t){this.ondata(Y(e,this.o,0,0,this.s),t)},e.prototype.push=function(e,t){this.ondata||N(5),this.s.l&&N(4);var A=e.length+this.s.z;if(A>this.b.length){if(A>2*this.b.length-32768){var r=new n(-32768&A);r.set(this.b.subarray(0,this.s.z)),this.b=r}var s=this.b.length-this.s.z;this.b.set(e.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(e.subarray(s),32768),this.s.z=e.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(e,this.s.z),this.s.z+=e.length;this.s.l=1&t,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2)},e.prototype.flush=function(){this.ondata||N(5),this.s.l&&N(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},e}(),_e=function(){return function(e,t){ue([Ae,function(){return[ce,Ce]}],this,be.call(this,e,t),function(e){var t=new Ce(e.data);onmessage=ce(t)},6,1)}}();function je(e,t,A){return A||(A=t,t={}),"function"!=typeof A&&N(7),le(e,t,[Ae],function(e){return oe(xe(e.data[0],e.data[1]))},0,A)}function xe(e,t){return Y(e,t||{},0,0)}var Fe=function(){function e(e,t){"function"==typeof e&&(t=e,e={}),this.ondata=t;var A=e&&e.dictionary&&e.dictionary.subarray(-32768);this.s={i:0,b:A?A.length:0},this.o=new n(32768),this.p=new n(0),A&&this.o.set(A)}return e.prototype.e=function(e){if(this.ondata||N(5),this.d&&N(4),this.p.length){if(e.length){var t=new n(this.p.length+e.length);t.set(this.p),t.set(e,this.p.length),this.p=t}}else this.p=e},e.prototype.c=function(e){this.s.i=+(this.d=e||!1);var t=this.s.b,A=k(this.p,this.s,this.o);this.ondata(S(A,t,this.s.b),this.d),this.o=S(A,this.s.b-32768),this.s.b=this.o.length,this.p=S(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}(),Qe=function(){return function(e,t){ue([te,function(){return[ce,Fe]}],this,be.call(this,e,t),function(e){var t=new Fe(e.data);onmessage=ce(t)},7,0)}}();function Ue(e,t,A){return A||(A=t,t={}),"function"!=typeof A&&N(7),le(e,t,[te],function(e){return oe(Ee(e.data[0],ae(e.data[1])))},1,A)}function Ee(e,t){return k(e,{i:2},t&&t.out,t&&t.dictionary)}var Se=function(){function e(e,t){this.c=W(),this.l=0,this.v=1,Ce.call(this,e,t)}return e.prototype.push=function(e,t){this.c.p(e),this.l+=e.length,Ce.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var A=Y(e,this.o,this.v&&Be(this.o),t&&8,this.s);this.v&&(ge(A,this.o),this.v=0),t&&(pe(A,A.length-8,this.c.d()),pe(A,A.length-4,this.l)),this.ondata(A,t)},e.prototype.flush=function(){Ce.prototype.flush.call(this)},e}(),Le=function(){return function(e,t){ue([Ae,re,function(){return[ce,Ce,Se]}],this,be.call(this,e,t),function(e){var t=new Se(e.data);onmessage=ce(t)},8,1)}}();function Ie(e,t,A){return A||(A=t,t={}),"function"!=typeof A&&N(7),le(e,t,[Ae,re,function(){return[Ne]}],function(e){return oe(Ne(e.data[0],e.data[1]))},2,A)}function Ne(e,t){t||(t={});var A=W(),r=e.length;A.p(e);var n=Y(e,t,Be(t),8),s=n.length;return ge(n,t),pe(n,s-8,A.d()),pe(n,s-4,r),n}var ke=function(){function e(e,t){this.v=1,this.r=0,Fe.call(this,e,t)}return e.prototype.push=function(e,t){if(Fe.prototype.e.call(this,e),this.r+=e.length,this.v){var A=this.p.subarray(this.v-1),r=A.length>3?me(A):4;if(r>A.length){if(!t)return}else this.v>1&&this.onmember&&this.onmember(this.r-A.length);this.p=A.subarray(r),this.v=0}Fe.prototype.c.call(this,t),!this.s.f||this.s.l||t||(this.v=E(this.s.p)+9,this.s={i:0},this.o=new n(0),this.push(new n(0),t))},e}(),He=function(){return function(e,t){var A=this;ue([te,ne,function(){return[ce,Fe,ke]}],this,be.call(this,e,t),function(e){var t=new ke(e.data);t.onmember=function(e){return postMessage(e)},onmessage=ce(t)},9,0,function(e){return A.onmember&&A.onmember(e)})}}();function Pe(e,t,A){return A||(A=t,t={}),"function"!=typeof A&&N(7),le(e,t,[te,ne,function(){return[Te]}],function(e){return oe(Te(e.data[0],e.data[1]))},3,A)}function Te(e,t){var A=me(e);return A+8>e.length&&N(6,"invalid gzip data"),k(e.subarray(A,-8),{i:2},t&&t.out||new n(we(e)),t&&t.dictionary)}var Oe=function(){function e(e,t){this.c=X(),this.v=1,Ce.call(this,e,t)}return e.prototype.push=function(e,t){this.c.p(e),Ce.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var A=Y(e,this.o,this.v&&(this.o.dictionary?6:2),t&&4,this.s);this.v&&(ye(A,this.o),this.v=0),t&&pe(A,A.length-4,this.c.d()),this.ondata(A,t)},e.prototype.flush=function(){Ce.prototype.flush.call(this)},e}(),Me=function(){return function(e,t){ue([Ae,se,function(){return[ce,Ce,Oe]}],this,be.call(this,e,t),function(e){var t=new Oe(e.data);onmessage=ce(t)},10,1)}}();function De(e,t,A){return A||(A=t,t={}),"function"!=typeof A&&N(7),le(e,t,[Ae,se,function(){return[Re]}],function(e){return oe(Re(e.data[0],e.data[1]))},4,A)}function Re(e,t){t||(t={});var A=X();A.p(e);var r=Y(e,t,t.dictionary?6:2,4);return ye(r,t),pe(r,r.length-4,A.d()),r}var Ke=function(){function e(e,t){Fe.call(this,e,t),this.v=e&&e.dictionary?2:1}return e.prototype.push=function(e,t){if(Fe.prototype.e.call(this,e),this.v){if(this.p.length<6&&!t)return;this.p=this.p.subarray(ve(this.p,this.v-1)),this.v=0}t&&(this.p.length<4&&N(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),Fe.prototype.c.call(this,t)},e}(),Ve=function(){return function(e,t){ue([te,ie,function(){return[ce,Fe,Ke]}],this,be.call(this,e,t),function(e){var t=new Ke(e.data);onmessage=ce(t)},11,0)}}();function Ge(e,t,A){return A||(A=t,t={}),"function"!=typeof A&&N(7),le(e,t,[te,ie,function(){return[ze]}],function(e){return oe(ze(e.data[0],ae(e.data[1])))},5,A)}function ze(e,t){return k(e.subarray(ve(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var qe=function(){function e(e,t){this.o=be.call(this,e,t)||{},this.G=ke,this.I=Fe,this.Z=Ke}return e.prototype.i=function(){var e=this;this.s.ondata=function(t,A){e.ondata(t,A)}},e.prototype.push=function(e,t){if(this.ondata||N(5),this.s)this.s.push(e,t);else{if(this.p&&this.p.length){var A=new n(this.p.length+e.length);A.set(this.p),A.set(e,this.p.length)}else this.p=e;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,t),this.p=null)}},e}(),We=function(){function e(e,t){qe.call(this,e,t),this.queuedSize=0,this.G=He,this.I=Qe,this.Z=Ve}return e.prototype.i=function(){var e=this;this.s.ondata=function(t,A,r){e.ondata(t,A,r)},this.s.ondrain=function(t){e.queuedSize-=t,e.ondrain&&e.ondrain(t)}},e.prototype.push=function(e,t){this.queuedSize+=e.length,qe.prototype.push.call(this,e,t)},e}();function Xe(e,t,A){return A||(A=t,t={}),"function"!=typeof A&&N(7),31==e[0]&&139==e[1]&&8==e[2]?Pe(e,t,A):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?Ue(e,t,A):Ge(e,t,A)}function Ye(e,t){return 31==e[0]&&139==e[1]&&8==e[2]?Te(e,t):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?Ee(e,t):ze(e,t)}var Je=function(e,t,A,r){for(var s in e){var i=e[s],o=t+s,a=r;Array.isArray(i)&&(a=J(r,i[1]),i=i[0]),i instanceof n?A[o]=[i,a]:(A[o+="/"]=[new n(0),a],Je(i,o,A,r))}},Ze="undefined"!=typeof TextEncoder&&new TextEncoder,$e="undefined"!=typeof TextDecoder&&new TextDecoder,et=0;try{$e.decode(G,{stream:!0}),et=1}catch(e){}var tt=function(e){for(var t="",A=0;;){var r=e[A++],n=(r>127)+(r>223)+(r>239);if(A+n>e.length)return{s:t,r:S(e,A-1)};n?3==n?(r=((15&r)<<18|(63&e[A++])<<12|(63&e[A++])<<6|63&e[A++])-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=1&n?String.fromCharCode((31&r)<<6|63&e[A++]):String.fromCharCode((15&r)<<12|(63&e[A++])<<6|63&e[A++]):t+=String.fromCharCode(r)}},At=function(){function e(e){this.ondata=e,et?this.t=new TextDecoder:this.p=G}return e.prototype.push=function(e,t){if(this.ondata||N(5),t=!!t,this.t)return this.ondata(this.t.decode(e,{stream:!0}),t),void(t&&(this.t.decode().length&&N(8),this.t=null));this.p||N(4);var A=new n(this.p.length+e.length);A.set(this.p),A.set(e,this.p.length);var r=tt(A),s=r.s,i=r.r;t?(i.length&&N(8),this.p=null):this.p=i,this.ondata(s,t)},e}(),rt=function(){function e(e){this.ondata=e}return e.prototype.push=function(e,t){this.ondata||N(5),this.d&&N(4),this.ondata(nt(e),this.d=t||!1)},e}();function nt(e,t){if(t){for(var A=new n(e.length),r=0;r>1)),o=0,a=function(e){i[o++]=e};for(r=0;ri.length){var l=new n(o+8+(s-r<<1));l.set(i),i=l}var c=e.charCodeAt(r);c<128||t?a(c):c<2048?(a(192|c>>6),a(128|63&c)):c>55295&&c<57344?(a(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++r))>>18),a(128|c>>12&63),a(128|c>>6&63),a(128|63&c)):(a(224|c>>12),a(128|c>>6&63),a(128|63&c))}return S(i,0,o)}function st(e,t){if(t){for(var A="",r=0;r65535&&N(9),t+=r+4}return t},ut=function(e,t,A,r,n,s,i,o){var a=r.length,l=A.extra,c=o&&o.length,u=ct(l);pe(e,t,null!=i?33639248:67324752),t+=4,null!=i&&(e[t++]=20,e[t++]=A.os),e[t]=20,t+=2,e[t++]=A.flag<<1|(s<0&&8),e[t++]=n&&8,e[t++]=255&A.compression,e[t++]=A.compression>>8;var h=new Date(null==A.mtime?Date.now():A.mtime),d=h.getFullYear()-1980;if((d<0||d>119)&&N(10),pe(e,t,d<<25|h.getMonth()+1<<21|h.getDate()<<16|h.getHours()<<11|h.getMinutes()<<5|h.getSeconds()>>1),t+=4,-1!=s&&(pe(e,t,A.crc),pe(e,t+4,s<0?-s-2:s),pe(e,t+8,A.size)),pe(e,t+12,a),pe(e,t+14,u),t+=16,null!=i&&(pe(e,t,c),pe(e,t+6,A.attrs),pe(e,t+10,i),t+=14),e.set(r,t),t+=a,u)for(var f in l){var p=l[f],g=p.length;pe(e,t,+f),pe(e,t+2,g),e.set(p,t+4),t+=4+g}return c&&(e.set(o,t),t+=c),t},ht=function(e,t,A,r,n){pe(e,t,101010256),pe(e,t+8,A),pe(e,t+10,A),pe(e,t+12,r),pe(e,t+16,n)},dt=function(){function e(e){this.filename=e,this.c=W(),this.size=0,this.compression=0}return e.prototype.process=function(e,t){this.ondata(null,e,t)},e.prototype.push=function(e,t){this.ondata||N(5),this.c.p(e),this.size+=e.length,t&&(this.crc=this.c.d()),this.process(e,t||!1)},e}(),ft=function(){function e(e,t){var A=this;t||(t={}),dt.call(this,e),this.d=new Ce(t,function(e,t){A.ondata(null,e,t)}),this.compression=8,this.flag=it(t.level)}return e.prototype.process=function(e,t){try{this.d.push(e,t)}catch(e){this.ondata(e,null,t)}},e.prototype.push=function(e,t){dt.prototype.push.call(this,e,t)},e}(),pt=function(){function e(e,t){var A=this;t||(t={}),dt.call(this,e),this.d=new _e(t,function(e,t,r){A.ondata(e,t,r)}),this.compression=8,this.flag=it(t.level),this.terminate=this.d.terminate}return e.prototype.process=function(e,t){this.d.push(e,t)},e.prototype.push=function(e,t){dt.prototype.push.call(this,e,t)},e}(),gt=function(){function e(e){this.ondata=e,this.u=[],this.d=1}return e.prototype.add=function(e){var t=this;if(this.ondata||N(5),2&this.d)this.ondata(N(4+8*(1&this.d),0,1),null,!1);else{var A=nt(e.filename),r=A.length,s=e.comment,i=s&&nt(s),o=r!=e.filename.length||i&&s.length!=i.length,a=r+ct(e.extra)+30;r>65535&&this.ondata(N(11,0,1),null,!1);var l=new n(a);ut(l,0,e,A,o,-1);var c=[l],u=function(){for(var e=0,A=c;e65535&&_(N(11,0,1),null),C)if(g<16e4)try{_(null,xe(n,l))}catch(e){_(e,null)}else u.push(je(n,l,_));else _(null,n)},g=0;g65535&&N(11);var m=u?xe(l,c):l,w=m.length,B=W();B.p(l),r.push(J(c,{size:l.length,crc:B.d(),c:m,f:_,m:f,u:h!=o.length||f&&d.length!=p,o:s,compression:u})),s+=30+h+g+w,i+=76+2*(h+g)+(p||0)+w}for(var y=new n(i+22),v=s,b=i-s,C=0;C0){var r=Math.min(this.c,e.length),s=e.subarray(0,r);if(this.c-=r,this.d?this.d.push(s,!this.c):this.k[0].push(s),(e=e.subarray(r)).length)return this.push(e,t)}else{var i=0,o=0,a=void 0,l=void 0;this.p.length?e.length?((l=new n(this.p.length+e.length)).set(this.p),l.set(e,this.p.length)):l=this.p:l=e;for(var c=l.length,u=this.c,h=u&&this.d,d=function(){var e,t=de(l,o);if(67324752==t){i=1,a=o,f.d=null,f.c=0;var r=he(l,o+6),n=he(l,o+8),s=2048&r,h=8&r,d=he(l,o+26),p=he(l,o+28);if(c>o+30+d+p){var g=[];f.k.unshift(g),i=2;var m,w=de(l,o+18),B=de(l,o+22),y=st(l.subarray(o+30,o+=30+d),!s);4294967295==w?(e=h?[-2]:lt(l,o),w=e[0],B=e[1]):h&&(w=-1),o+=p,f.c=w;var v={name:y,compression:n,start:function(){if(v.ondata||N(5),w){var e=A.o[n];e||v.ondata(N(14,"unknown compression type "+n,1),null,!1),(m=w<0?new e(y):new e(y,w,B)).ondata=function(e,t,A){v.ondata(e,t,A)};for(var t=0,r=g;t=0&&(v.size=w,v.originalSize=B),f.onfile(v)}return"break"}if(u){if(134695760==t)return a=o+=12+(-2==u&&8),i=3,f.c=0,"break";if(33639248==t)return a=o-=4,i=3,f.c=0,"break"}},f=this;o65558)return o(N(13,0,1),null),s;var l=he(e,a+8);if(l){var c=l,u=de(e,a+16),h=4294967295==u||65535==c;if(h){var d=de(e,a-12);(h=101075792==de(e,d))&&(c=l=de(e,d+32),u=de(e,d+48))}for(var f=t&&t.filter,p=function(t){var A=at(e,u,h),a=A[0],c=A[1],d=A[2],p=A[3],g=A[4],m=A[5],w=ot(e,m);u=g;var B=function(e,t){e?(s(),o(e,null)):(t&&(i[p]=t),--l||o(null,i))};if(!f||f({name:p,size:c,originalSize:d,compression:a}))if(a)if(8==a){var y=e.subarray(w,w+c);if(d<524288||c>.8*d)try{B(null,Ee(y,{out:new n(d)}))}catch(e){B(e,null)}else r.push(Ue(y,{size:d},B))}else B(N(14,"unknown compression type "+a,1),null);else B(null,S(e,w,w+c));else B(null,null)},g=0;g65558)&&N(13);var s=he(e,r+8);if(!s)return{};var i=de(e,r+16),o=4294967295==i||65535==s;if(o){var a=de(e,r-12);(o=101075792==de(e,a))&&(s=de(e,a+32),i=de(e,a+48))}for(var l=t&&t.filter,c=0;c0&&n[n.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]=55296&&n<=56319&&A>10),i%1024+56320)),(n+1===A||r.length>16384)&&(s+=String.fromCharCode.apply(String,r),r.length=0)}return s},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),h=0;h<64;h++)u[c.charCodeAt(h)]=h;for(var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="undefined"==typeof Uint8Array?[]:new Uint8Array(256),p=0;p<64;p++)f[d.charCodeAt(p)]=p;for(var g=function(e,t,A){return e.slice?e.slice(t,A):new Uint16Array(Array.prototype.slice.call(e,t,A))},m=function(){function e(e,t,A,r,n,s){this.initialValue=e,this.errorValue=t,this.highStart=A,this.highValueIndex=r,this.index=n,this.data=s}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B="undefined"==typeof Uint8Array?[]:new Uint8Array(256),y=0;y<64;y++)B[w.charCodeAt(y)]=y;var v=10,b=13,C=15,_=17,j=18,x=19,F=20,Q=21,U=22,E=24,S=25,L=26,I=27,N=28,k=30,H=32,P=33,T=34,O=35,M=37,D=38,R=39,K=40,V=42,G=[9001,65288],z="×",q="÷",W=function(e){var t,A,r,n=function(e){var t,A,r,n,s,i=.75*e.length,o=e.length,a=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(i):new Array(i),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t>4,c[a++]=(15&r)<<4|n>>2,c[a++]=(3&n)<<6|63&s;return l}(e),s=Array.isArray(n)?function(e){for(var t=e.length,A=[],r=0;r0;){var i=r[--s];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var o=A;o<=r.length;){var a;if((a=r[++o])===t)return!0;if(a!==v)break}if(i!==v)break}return!1},re=function(e,t){for(var A=e;A>=0;){var r=t[A];if(r!==v)return r;A--}return 0},ne=function(e,t,A,r,n){if(0===A[r])return z;var s=r-1;if(Array.isArray(n)&&!0===n[s])return z;var i=s-1,o=s+1,a=t[s],l=i>=0?t[i]:0,c=t[o];if(2===a&&3===c)return z;if(-1!==Y.indexOf(a))return"!";if(-1!==Y.indexOf(c))return z;if(-1!==J.indexOf(c))return z;if(8===re(s,t))return q;if(11===W.get(e[s]))return z;if((a===H||a===P)&&11===W.get(e[o]))return z;if(7===a||7===c)return z;if(9===a)return z;if(-1===[v,b,C].indexOf(a)&&9===c)return z;if(-1!==[_,j,x,E,N].indexOf(c))return z;if(re(s,t)===U)return z;if(Ae(23,U,s,t))return z;if(Ae([_,j],Q,s,t))return z;if(Ae(12,12,s,t))return z;if(a===v)return q;if(23===a||23===c)return z;if(16===c||16===a)return q;if(-1!==[b,C,Q].indexOf(c)||14===a)return z;if(36===l&&-1!==te.indexOf(a))return z;if(a===N&&36===c)return z;if(c===F)return z;if(-1!==X.indexOf(c)&&a===S||-1!==X.indexOf(a)&&c===S)return z;if(a===I&&-1!==[M,H,P].indexOf(c)||-1!==[M,H,P].indexOf(a)&&c===L)return z;if(-1!==X.indexOf(a)&&-1!==Z.indexOf(c)||-1!==Z.indexOf(a)&&-1!==X.indexOf(c))return z;if(-1!==[I,L].indexOf(a)&&(c===S||-1!==[U,C].indexOf(c)&&t[o+1]===S)||-1!==[U,C].indexOf(a)&&c===S||a===S&&-1!==[S,N,E].indexOf(c))return z;if(-1!==[S,N,E,_,j].indexOf(c))for(var u=s;u>=0;){if((h=t[u])===S)return z;if(-1===[N,E].indexOf(h))break;u--}if(-1!==[I,L].indexOf(c))for(u=-1!==[_,j].indexOf(a)?i:s;u>=0;){var h;if((h=t[u])===S)return z;if(-1===[N,E].indexOf(h))break;u--}if(D===a&&-1!==[D,R,T,O].indexOf(c)||-1!==[R,T].indexOf(a)&&-1!==[R,K].indexOf(c)||-1!==[K,O].indexOf(a)&&c===K)return z;if(-1!==ee.indexOf(a)&&-1!==[F,L].indexOf(c)||-1!==ee.indexOf(c)&&a===I)return z;if(-1!==X.indexOf(a)&&-1!==X.indexOf(c))return z;if(a===E&&-1!==X.indexOf(c))return z;if(-1!==X.concat(S).indexOf(a)&&c===U&&-1===G.indexOf(e[o])||-1!==X.concat(S).indexOf(c)&&a===j)return z;if(41===a&&41===c){for(var d=A[s],f=1;d>0&&41===t[--d];)f++;if(f%2!=0)return z}return a===H&&c===P?z:q},se=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var A=function(e,t){void 0===t&&(t="strict");var A=[],r=[],n=[];return e.forEach(function(e,s){var i=W.get(e);if(i>50?(n.push(!0),i-=50):n.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(s),A.push(16);if(4===i||11===i){if(0===s)return r.push(s),A.push(k);var o=A[s-1];return-1===$.indexOf(o)?(r.push(r[s-1]),A.push(o)):(r.push(s),A.push(k))}return r.push(s),31===i?A.push("strict"===t?Q:M):i===V||29===i?A.push(k):43===i?e>=131072&&e<=196605||e>=196608&&e<=262141?A.push(M):A.push(k):void A.push(i)}),[r,A,n]}(e,t.lineBreak),r=A[0],n=A[1],s=A[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(n=n.map(function(e){return-1!==[S,k,V].indexOf(e)?M:e}));var i="keep-all"===t.wordBreak?s.map(function(t,A){return t&&e[A]>=19968&&e[A]<=40959}):void 0;return[r,n,i]},ie=function(){function e(e,t,A,r){this.codePoints=e,this.required="!"===t,this.start=A,this.end=r}return e.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),oe=45,ae=43,le=-1,ce=function(e){return e>=48&&e<=57},ue=function(e){return ce(e)||e>=65&&e<=70||e>=97&&e<=102},he=function(e){return 10===e||9===e||32===e},de=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},fe=function(e){return de(e)||ce(e)||e===oe},pe=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},ge=function(e,t){return 92===e&&10!==t},me=function(e,t,A){return e===oe?de(t)||ge(t,A):!!de(e)||!(92!==e||!ge(e,t))},we=function(e,t,A){return e===ae||e===oe?!!ce(t)||46===t&&ce(A):ce(46===e?t:e)},Be=function(e){var t=0,A=1;e[t]!==ae&&e[t]!==oe||(e[t]===oe&&(A=-1),t++);for(var r=[];ce(e[t]);)r.push(e[t++]);var n=r.length?parseInt(l.apply(void 0,r),10):0;46===e[t]&&t++;for(var s=[];ce(e[t]);)s.push(e[t++]);var i=s.length,o=i?parseInt(l.apply(void 0,s),10):0;69!==e[t]&&101!==e[t]||t++;var a=1;e[t]!==ae&&e[t]!==oe||(e[t]===oe&&(a=-1),t++);for(var c=[];ce(e[t]);)c.push(e[t++]);var u=c.length?parseInt(l.apply(void 0,c),10):0;return A*(n+o*Math.pow(10,-i))*Math.pow(10,a*u)},ye={type:2},ve={type:3},be={type:4},Ce={type:13},_e={type:8},je={type:21},xe={type:9},Fe={type:10},Qe={type:11},Ue={type:12},Ee={type:14},Se={type:23},Le={type:1},Ie={type:25},Ne={type:24},ke={type:26},He={type:27},Pe={type:28},Te={type:29},Oe={type:31},Me={type:32},De=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(a(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Me;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),A=this.peekCodePoint(1),r=this.peekCodePoint(2);if(fe(t)||ge(A,r)){var n=me(t,A,r)?2:1;return{type:5,value:this.consumeName(),flags:n}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ce;break;case 39:return this.consumeStringToken(39);case 40:return ye;case 41:return ve;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ee;break;case ae:if(we(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return be;case oe:var s=e,i=this.peekCodePoint(0),o=this.peekCodePoint(1);if(we(s,i,o))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(me(s,i,o))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(i===oe&&62===o)return this.consumeCodePoint(),this.consumeCodePoint(),Ne;break;case 46:if(we(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var a=this.consumeCodePoint();if(42===a&&47===(a=this.consumeCodePoint()))return this.consumeToken();if(a===le)return this.consumeToken()}break;case 58:return ke;case 59:return He;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===oe&&this.peekCodePoint(2)===oe)return this.consumeCodePoint(),this.consumeCodePoint(),Ie;break;case 64:var c=this.peekCodePoint(0),u=this.peekCodePoint(1),h=this.peekCodePoint(2);if(me(c,u,h))return{type:7,value:this.consumeName()};break;case 91:return Pe;case 92:if(ge(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return Te;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),_e;break;case 123:return Qe;case 125:return Ue;case 117:case 85:var d=this.peekCodePoint(0),f=this.peekCodePoint(1);return d!==ae||!ue(f)&&63!==f||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),xe;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),je;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Fe;break;case le:return Me}return he(e)?(this.consumeWhiteSpace(),Oe):ce(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):de(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:l(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();ue(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var A=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),A=!0;if(A)return{type:30,start:parseInt(l.apply(void 0,e.map(function(e){return 63===e?48:e})),16),end:parseInt(l.apply(void 0,e.map(function(e){return 63===e?70:e})),16)};var r=parseInt(l.apply(void 0,e),16);if(this.peekCodePoint(0)===oe&&ue(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var n=[];ue(t)&&n.length<6;)n.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(l.apply(void 0,n),16)}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===le)return{type:22,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var A=this.consumeStringToken(this.consumeCodePoint());return 0===A.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===le||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:A.value}):(this.consumeBadUrlRemnants(),Se)}for(;;){var r=this.consumeCodePoint();if(r===le||41===r)return{type:22,value:l.apply(void 0,e)};if(he(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===le||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:l.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Se);if(34===r||39===r||40===r||pe(r))return this.consumeBadUrlRemnants(),Se;if(92===r){if(!ge(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Se;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;he(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||e===le)return;ge(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var A=Math.min(5e4,e);t+=l.apply(void 0,this._value.splice(0,A)),e-=A}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",A=0;;){var r=this._value[A];if(r===le||void 0===r||r===e)return{type:0,value:t+=this.consumeStringSlice(A)};if(10===r)return this._value.splice(0,A),Le;if(92===r){var n=this._value[A+1];n!==le&&void 0!==n&&(10===n?(t+=this.consumeStringSlice(A),A=-1,this._value.shift()):ge(r,n)&&(t+=this.consumeStringSlice(A),t+=l(this.consumeEscapedCodePoint()),A=-1))}A++}},e.prototype.consumeNumber=function(){var e=[],t=4,A=this.peekCodePoint(0);for(A!==ae&&A!==oe||e.push(this.consumeCodePoint());ce(this.peekCodePoint(0));)e.push(this.consumeCodePoint());A=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===A&&ce(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ce(this.peekCodePoint(0));)e.push(this.consumeCodePoint());A=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((69===A||101===A)&&((r===ae||r===oe)&&ce(n)||ce(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ce(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Be(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],A=e[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),s=this.peekCodePoint(2);return me(r,n,s)?{type:15,number:t,flags:A,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:t,flags:A}):{type:17,number:t,flags:A}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ue(e)){for(var t=l(e);ue(this.peekCodePoint(0))&&t.length<6;)t+=l(this.consumeCodePoint());he(this.peekCodePoint(0))&&this.consumeCodePoint();var A=parseInt(t,16);return 0===A||function(e){return e>=55296&&e<=57343}(A)||A>1114111?65533:A}return e===le?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(fe(t))e+=l(t);else{if(!ge(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=l(this.consumeEscapedCodePoint())}}},e}(),Re=function(){function e(e){this._tokens=e}return e.create=function(t){var A=new De;return A.write(t),new e(A.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},A=this.consumeToken();;){if(32===A.type||Je(A,e))return t;this.reconsumeToken(A),t.values.push(this.consumeComponentValue()),A=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var A=this.consumeToken();if(32===A.type||3===A.type)return t;this.reconsumeToken(A),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?Me:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Ke=function(e){return 15===e.type},Ve=function(e){return 17===e.type},Ge=function(e){return 20===e.type},ze=function(e){return 0===e.type},qe=function(e,t){return Ge(e)&&e.value===t},We=function(e){return 31!==e.type},Xe=function(e){return 31!==e.type&&4!==e.type},Ye=function(e){var t=[],A=[];return e.forEach(function(e){if(4===e.type){if(0===A.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(A),void(A=[])}31!==e.type&&A.push(e)}),A.length&&t.push(A),t},Je=function(e,t){return 11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type},Ze=function(e){return 17===e.type||15===e.type},$e=function(e){return 16===e.type||Ze(e)},et=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},tt={type:17,number:0,flags:4},At={type:16,number:50,flags:4},rt={type:16,number:100,flags:4},nt=function(e,t,A){var r=e[0],n=e[1];return[st(r,t),st(void 0!==n?n:r,A)]},st=function(e,t){if(16===e.type)return e.number/100*t;if(Ke(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},it="grad",ot="turn",at=function(e,t){if(15===t.type)switch(t.unit){case"deg":return Math.PI*t.number/180;case it:return Math.PI/200*t.number;case"rad":return t.number;case ot:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},lt=function(e){return 15===e.type&&("deg"===e.unit||e.unit===it||"rad"===e.unit||e.unit===ot)},ct=function(e){switch(e.filter(Ge).map(function(e){return e.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[tt,tt];case"to top":case"bottom":return ut(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[tt,rt];case"to right":case"left":return ut(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[rt,rt];case"to bottom":case"top":return ut(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[rt,tt];case"to left":case"right":return ut(270)}return 0},ut=function(e){return Math.PI*e/180},ht=function(e,t){if(18===t.type){var A=yt[t.name];if(void 0===A)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return A(e,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),n=t.value.substring(1,2),s=t.value.substring(2,3);return pt(parseInt(r+r,16),parseInt(n+n,16),parseInt(s+s,16),1)}if(4===t.value.length){r=t.value.substring(0,1),n=t.value.substring(1,2),s=t.value.substring(2,3);var i=t.value.substring(3,4);return pt(parseInt(r+r,16),parseInt(n+n,16),parseInt(s+s,16),parseInt(i+i,16)/255)}if(6===t.value.length)return r=t.value.substring(0,2),n=t.value.substring(2,4),s=t.value.substring(4,6),pt(parseInt(r,16),parseInt(n,16),parseInt(s,16),1);if(8===t.value.length)return r=t.value.substring(0,2),n=t.value.substring(2,4),s=t.value.substring(4,6),i=t.value.substring(6,8),pt(parseInt(r,16),parseInt(n,16),parseInt(s,16),parseInt(i,16)/255)}if(20===t.type){var o=bt[t.value.toUpperCase()];if(void 0!==o)return o}return bt.TRANSPARENT},dt=function(e){return!(255&e)},ft=function(e){var t=255&e,A=255&e>>8,r=255&e>>16,n=255&e>>24;return t<255?"rgba("+n+","+r+","+A+","+t/255+")":"rgb("+n+","+r+","+A+")"},pt=function(e,t,A,r){return(e<<24|t<<16|A<<8|Math.round(255*r))>>>0},gt=function(e,t){if(17===e.type)return e.number;if(16===e.type){var A=3===t?1:255;return 3===t?e.number/100*A:Math.round(e.number/100*A)}return 0},mt=function(e,t){var A=t.filter(Xe);if(3===A.length){var r=A.map(gt),n=r[0],s=r[1],i=r[2];return pt(n,s,i,1)}if(4===A.length){var o=A.map(gt),a=(n=o[0],s=o[1],i=o[2],o[3]);return pt(n,s,i,a)}return 0};function wt(e,t,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(t-e)*A*6+e:A<.5?t:A<2/3?6*(t-e)*(2/3-A)+e:e}var Bt=function(e,t){var A=t.filter(Xe),r=A[0],n=A[1],s=A[2],i=A[3],o=(17===r.type?ut(r.number):at(e,r))/(2*Math.PI),a=$e(n)?n.number/100:0,l=$e(s)?s.number/100:0,c=void 0!==i&&$e(i)?st(i,1):1;if(0===a)return pt(255*l,255*l,255*l,1);var u=l<=.5?l*(a+1):l+a-l*a,h=2*l-u,d=wt(h,u,o+1/3),f=wt(h,u,o),p=wt(h,u,o-1/3);return pt(255*d,255*f,255*p,c)},yt={hsl:Bt,hsla:Bt,rgb:mt,rgba:mt},vt=function(e,t){return ht(e,Re.create(t).parseComponentValue())},bt={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Ct={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Ge(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},_t={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},jt=function(e,t){var A=ht(e,t[0]),r=t[1];return r&&$e(r)?{color:A,stop:r}:{color:A,stop:null}},xt=function(e,t){var A=e[0],r=e[e.length-1];null===A.stop&&(A.stop=tt),null===r.stop&&(r.stop=rt);for(var n=[],s=0,i=0;is?n.push(a):n.push(s),s=a}else n.push(null)}var l=null;for(i=0;ie.optimumDistance)?{optimumCorner:t,optimumDistance:o}:e},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Et=function(e,t){var A=ut(180),r=[];return Ye(t).forEach(function(t,n){if(0===n){var s=t[0];if(20===s.type&&-1!==["top","left","right","bottom"].indexOf(s.value))return void(A=ct(t));if(lt(s))return void(A=(at(e,s)+ut(270))%ut(360))}var i=jt(e,t);r.push(i)}),{angle:A,stops:r,type:1}},St="closest-side",Lt="farthest-side",It="closest-corner",Nt="farthest-corner",kt="circle",Ht="ellipse",Pt="cover",Tt="contain",Ot=function(e,t){var A=0,r=3,n=[],s=[];return Ye(t).forEach(function(t,i){var o=!0;if(0===i?o=t.reduce(function(e,t){if(Ge(t))switch(t.value){case"center":return s.push(At),!1;case"top":case"left":return s.push(tt),!1;case"right":case"bottom":return s.push(rt),!1}else if($e(t)||Ze(t))return s.push(t),!1;return e},o):1===i&&(o=t.reduce(function(e,t){if(Ge(t))switch(t.value){case kt:return A=0,!1;case Ht:return A=1,!1;case Tt:case St:return r=0,!1;case Lt:return r=1,!1;case It:return r=2,!1;case Pt:case Nt:return r=3,!1}else if(Ze(t)||$e(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},o)),o){var a=jt(e,t);n.push(a)}}),{size:r,shape:A,stops:n,position:s,type:2}},Mt=function(e,t){if(22===t.type){var A={url:t.value,type:0};return e.cache.addImage(t.value),A}if(18===t.type){var r=Rt[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)};var Dt,Rt={"linear-gradient":function(e,t){var A=ut(180),r=[];return Ye(t).forEach(function(t,n){if(0===n){var s=t[0];if(20===s.type&&"to"===s.value)return void(A=ct(t));if(lt(s))return void(A=at(e,s))}var i=jt(e,t);r.push(i)}),{angle:A,stops:r,type:1}},"-moz-linear-gradient":Et,"-ms-linear-gradient":Et,"-o-linear-gradient":Et,"-webkit-linear-gradient":Et,"radial-gradient":function(e,t){var A=0,r=3,n=[],s=[];return Ye(t).forEach(function(t,i){var o=!0;if(0===i){var a=!1;o=t.reduce(function(e,t){if(a)if(Ge(t))switch(t.value){case"center":return s.push(At),e;case"top":case"left":return s.push(tt),e;case"right":case"bottom":return s.push(rt),e}else($e(t)||Ze(t))&&s.push(t);else if(Ge(t))switch(t.value){case kt:return A=0,!1;case Ht:return A=1,!1;case"at":return a=!0,!1;case St:return r=0,!1;case Pt:case Lt:return r=1,!1;case Tt:case It:return r=2,!1;case Nt:return r=3,!1}else if(Ze(t)||$e(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},o)}if(o){var l=jt(e,t);n.push(l)}}),{size:r,shape:A,stops:n,position:s,type:2}},"-moz-radial-gradient":Ot,"-ms-radial-gradient":Ot,"-o-radial-gradient":Ot,"-webkit-radial-gradient":Ot,"-webkit-gradient":function(e,t){var A=ut(180),r=[],n=1;return Ye(t).forEach(function(t,A){var s=t[0];if(0===A){if(Ge(s)&&"linear"===s.value)return void(n=1);if(Ge(s)&&"radial"===s.value)return void(n=2)}if(18===s.type)if("from"===s.name){var i=ht(e,s.values[0]);r.push({stop:tt,color:i})}else if("to"===s.name)i=ht(e,s.values[0]),r.push({stop:rt,color:i});else if("color-stop"===s.name){var o=s.values.filter(Xe);if(2===o.length){i=ht(e,o[1]);var a=o[0];Ve(a)&&r.push({stop:{type:16,number:100*a.number,flags:a.flags},color:i})}}}),1===n?{angle:(A+ut(180))%ut(360),stops:r,type:n}:{size:3,shape:0,stops:r,position:[],type:n}}},Kt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var A=t[0];return 20===A.type&&"none"===A.value?[]:t.filter(function(e){return Xe(e)&&function(e){return!(20===e.type&&"none"===e.value||18===e.type&&!Rt[e.name])}(e)}).map(function(t){return Mt(e,t)})}},Vt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Ge(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Gt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Ye(t).map(function(e){return e.filter($e)}).map(et)}},zt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Ye(t).map(function(e){return e.filter(Ge).map(function(e){return e.value}).join(" ")}).map(qt)}},qt=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(Dt||(Dt={}));var Wt,Xt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Ye(t).map(function(e){return e.filter(Yt)})}},Yt=function(e){return Ge(e)||$e(e)},Jt=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Zt=Jt("top"),$t=Jt("right"),eA=Jt("bottom"),tA=Jt("left"),AA=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return et(t.filter($e))}}},rA=AA("top-left"),nA=AA("top-right"),sA=AA("bottom-right"),iA=AA("bottom-left"),oA=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},aA=oA("top"),lA=oA("right"),cA=oA("bottom"),uA=oA("left"),hA=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Ke(t)?t.number:0}}},dA=hA("top"),fA=hA("right"),pA=hA("bottom"),gA=hA("left"),mA={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wA={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){return"rtl"===t?1:0}},BA={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Ge).reduce(function(e,t){return e|yA(t.value)},0)}},yA=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},vA={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},bA={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Wt||(Wt={}));var CA,_A={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"strict"===t?Wt.STRICT:Wt.NORMAL}},jA={name:"line-height",initialValue:"normal",prefix:!1,type:4},xA=function(e,t){return Ge(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:$e(e)?st(e,t):t},FA={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:Mt(e,t)}},QA={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){return"inside"===t?0:1}},UA={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},EA=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},SA=EA("top"),LA=EA("right"),IA=EA("bottom"),NA=EA("left"),kA={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Ge).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},HA={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"break-word"===t?"break-word":"normal"}},PA=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},TA=PA("top"),OA=PA("right"),MA=PA("bottom"),DA=PA("left"),RA={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},KA={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},VA={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&qe(t[0],"none")?[]:Ye(t).map(function(t){for(var A={color:bt.TRANSPARENT,offsetX:tt,offsetY:tt,blur:tt},r=0,n=0;n1?1:0],this.overflowWrap=Cr(e,HA,t.overflowWrap),this.paddingTop=Cr(e,TA,t.paddingTop),this.paddingRight=Cr(e,OA,t.paddingRight),this.paddingBottom=Cr(e,MA,t.paddingBottom),this.paddingLeft=Cr(e,DA,t.paddingLeft),this.paintOrder=Cr(e,mr,t.paintOrder),this.position=Cr(e,KA,t.position),this.textAlign=Cr(e,RA,t.textAlign),this.textDecorationColor=Cr(e,Ar,null!==(A=t.textDecorationColor)&&void 0!==A?A:t.color),this.textDecorationLine=Cr(e,rr,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=Cr(e,VA,t.textShadow),this.textTransform=Cr(e,GA,t.textTransform),this.transform=Cr(e,zA,t.transform),this.transformOrigin=Cr(e,YA,t.transformOrigin),this.visibility=Cr(e,JA,t.visibility),this.webkitTextStrokeColor=Cr(e,wr,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Cr(e,Br,t.webkitTextStrokeWidth),this.wordBreak=Cr(e,ZA,t.wordBreak),this.zIndex=Cr(e,$A,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return dt(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return lr(this.display,4)||lr(this.display,33554432)||lr(this.display,268435456)||lr(this.display,536870912)||lr(this.display,67108864)||lr(this.display,134217728)},e}(),vr=function(e,t){this.content=Cr(e,cr,t.content),this.quotes=Cr(e,fr,t.quotes)},br=function(e,t){this.counterIncrement=Cr(e,ur,t.counterIncrement),this.counterReset=Cr(e,hr,t.counterReset)},Cr=function(e,t,A){var r=new De,n=null!=A?A.toString():t.initialValue;r.write(n);var s=new Re(r.read());switch(t.type){case 2:var i=s.parseComponentValue();return t.parse(e,Ge(i)?i.value:t.initialValue);case 0:return t.parse(e,s.parseComponentValue());case 1:return t.parse(e,s.parseComponentValues());case 4:return s.parseComponentValue();case 3:switch(t.format){case"angle":return at(e,s.parseComponentValue());case"color":return ht(e,s.parseComponentValue());case"image":return Mt(e,s.parseComponentValue());case"length":var o=s.parseComponentValue();return Ze(o)?o:tt;case"length-percentage":var a=s.parseComponentValue();return $e(a)?a:tt;case"time":return er.parse(e,s.parseComponentValue())}}},_r=function(e,t){var A=function(e){switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(e);return 1===A||t===A},jr=function(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,_r(t,3),this.styles=new yr(e,window.getComputedStyle(t,null)),En(t)&&(this.styles.animationDuration.some(function(e){return e>0})&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=o(this.context,t),_r(t,4)&&(this.flags|=16)},xr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Qr=0;Qr<64;Qr++)Fr[xr.charCodeAt(Qr)]=Qr;for(var Ur=function(e,t,A){return e.slice?e.slice(t,A):new Uint16Array(Array.prototype.slice.call(e,t,A))},Er=function(){function e(e,t,A,r,n,s){this.initialValue=e,this.errorValue=t,this.highStart=A,this.highValueIndex=r,this.index=n,this.data=s}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),Sr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ir=0;Ir<64;Ir++)Lr[Sr.charCodeAt(Ir)]=Ir;var Nr,kr=8,Hr=9,Pr=11,Tr=12,Or=function(){for(var e=[],t=0;t>10),i%1024+56320)),(n+1===A||r.length>16384)&&(s+=String.fromCharCode.apply(String,r),r.length=0)}return s},Mr=function(e){var t,A,r,n=function(e){var t,A,r,n,s,i=.75*e.length,o=e.length,a=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(i):new Array(i),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t>4,c[a++]=(15&r)<<4|n>>2,c[a++]=(3&n)<<6|63&s;return l}(e),s=Array.isArray(n)?function(e){for(var t=e.length,A=[],r=0;r=55296&&n<=56319&&A=A)return{done:!0,value:null};for(var e=Dr;ri.x||n.y>i.y;return i=n,0===t||o});return e.body.removeChild(t),o}(document);return Object.defineProperty(Wr,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,A=e.createElement("canvas"),r=A.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,";try{r.drawImage(t,0,0),A.toDataURL()}catch(e){return!1}return!0}(document);return Object.defineProperty(Wr,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas"),A=100;t.width=A,t.height=A;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,A,A);var n=new Image,s=t.toDataURL();n.src=s;var i=zr(A,A,0,0,n);return r.fillStyle="red",r.fillRect(0,0,A,A),qr(i).then(function(t){r.drawImage(t,0,0);var n=r.getImageData(0,0,A,A).data;r.fillStyle="red",r.fillRect(0,0,A,A);var i=e.createElement("div");return i.style.backgroundImage="url("+s+")",i.style.height=A+"px",Gr(n)?qr(zr(A,A,0,0,i)):Promise.reject(!1)}).then(function(e){return r.drawImage(e,0,0),Gr(r.getImageData(0,0,A,A).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(Wr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(Wr,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Wr,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Wr,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Wr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Xr=function(e,t){this.text=e,this.bounds=t},Yr=function(e,t){var A=t.ownerDocument;if(A){var r=A.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var n=t.parentNode;if(n){n.replaceChild(r,t);var s=o(e,r);return r.firstChild&&n.replaceChild(r.firstChild,r),s}}return i.EMPTY},Jr=function(e,t,A){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(e,t),n.setEnd(e,t+A),n},Zr=function(e){if(Wr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(e){return e.segment})}return function(e){for(var t,A=Vr(e),r=[];!(t=A.next()).done;)t.value&&r.push(t.value.slice());return r}(e)},$r=function(e,t){return 0!==t.letterSpacing?Zr(e):function(e,t){if(Wr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(e)).map(function(e){return e.segment})}return tn(e,t)}(e,t)},en=[32,160,4961,65792,65793,4153,4241],tn=function(e,t){for(var A,r=function(e,t){var A=a(e),r=se(A,t),n=r[0],s=r[1],i=r[2],o=A.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var e=z;c0)if(Wr.SUPPORT_RANGE_BOUNDS){var n=Jr(r,o,t.length).getClientRects();if(n.length>1){var a=Zr(t),l=0;a.forEach(function(t){s.push(new Xr(t,i.fromDOMRectList(e,Jr(r,l+o,t.length).getClientRects()))),l+=t.length})}else s.push(new Xr(t,i.fromDOMRectList(e,n)))}else{var c=r.splitText(t.length);s.push(new Xr(t,Yr(e,r))),r=c}else Wr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));o+=t.length}),s}(e,this.text,A,t)},rn=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(nn,sn);case 2:return e.toUpperCase();default:return e}},nn=/(^|\s|:|-|\(|\))([a-z])/g,sn=function(e,t,A){return e.length>0?t+A.toUpperCase():e},on=function(e){function A(t,A){var r=e.call(this,t,A)||this;return r.src=A.currentSrc||A.src,r.intrinsicWidth=A.naturalWidth,r.intrinsicHeight=A.naturalHeight,r.context.cache.addImage(r.src),r}return t(A,e),A}(jr),an=function(e){function A(t,A){var r=e.call(this,t,A)||this;return r.canvas=A,r.intrinsicWidth=A.width,r.intrinsicHeight=A.height,r}return t(A,e),A}(jr),ln=function(e){function A(t,A){var r=e.call(this,t,A)||this,n=new XMLSerializer,s=o(t,A);return A.setAttribute("width",s.width+"px"),A.setAttribute("height",s.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(A)),r.intrinsicWidth=A.width.baseVal.value,r.intrinsicHeight=A.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(A,e),A}(jr),cn=function(e){function A(t,A){var r=e.call(this,t,A)||this;return r.value=A.value,r}return t(A,e),A}(jr),un=function(e){function A(t,A){var r=e.call(this,t,A)||this;return r.start=A.start,r.reversed="boolean"==typeof A.reversed&&!0===A.reversed,r}return t(A,e),A}(jr),hn=[{type:15,flags:0,unit:"px",number:3}],dn=[{type:16,flags:0,number:50}],fn="checkbox",pn="radio",gn="password",mn=707406591,wn=function(e){function A(t,A){var r,n,s,o=e.call(this,t,A)||this;switch(o.type=A.type.toLowerCase(),o.checked=A.checked,o.value=0===(s=(n=A).type===gn?new Array(n.value.length+1).join("•"):n.value).length?n.placeholder||"":s,o.type!==fn&&o.type!==pn||(o.styles.backgroundColor=3739148031,o.styles.borderTopColor=o.styles.borderRightColor=o.styles.borderBottomColor=o.styles.borderLeftColor=2779096575,o.styles.borderTopWidth=o.styles.borderRightWidth=o.styles.borderBottomWidth=o.styles.borderLeftWidth=1,o.styles.borderTopStyle=o.styles.borderRightStyle=o.styles.borderBottomStyle=o.styles.borderLeftStyle=1,o.styles.backgroundClip=[0],o.styles.backgroundOrigin=[0],o.bounds=(r=o.bounds).width>r.height?new i(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)A.textNodes.push(new An(e,n,A.styles));else if(Un(n))if(Vn(n)&&n.assignedNodes)n.assignedNodes().forEach(function(t){return Cn(e,t,A,r)});else{var i=_n(e,n);i.styles.isVisible()&&(xn(n,i,r)?i.flags|=4:Fn(i.styles)&&(i.flags|=2),-1!==bn.indexOf(n.tagName)&&(i.flags|=8),A.elements.push(i),n.slot,n.shadowRoot?Cn(e,n.shadowRoot,i,r):Rn(n)||kn(n)||Kn(n)||Cn(e,n,i,r))}},_n=function(e,t){return On(t)?new on(e,t):Pn(t)?new an(e,t):kn(t)?new ln(e,t):Ln(t)?new cn(e,t):In(t)?new un(e,t):Nn(t)?new wn(e,t):Kn(t)?new Bn(e,t):Rn(t)?new yn(e,t):Mn(t)?new vn(e,t):new jr(e,t)},jn=function(e,t){var A=_n(e,t);return A.flags|=4,Cn(e,t,A,A),A},xn=function(e,t,A){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Hn(e)&&A.styles.isTransparent()},Fn=function(e){return e.isPositioned()||e.isFloating()},Qn=function(e){return e.nodeType===Node.TEXT_NODE},Un=function(e){return e.nodeType===Node.ELEMENT_NODE},En=function(e){return Un(e)&&void 0!==e.style&&!Sn(e)},Sn=function(e){return"object"==typeof e.className},Ln=function(e){return"LI"===e.tagName},In=function(e){return"OL"===e.tagName},Nn=function(e){return"INPUT"===e.tagName},kn=function(e){return"svg"===e.tagName},Hn=function(e){return"BODY"===e.tagName},Pn=function(e){return"CANVAS"===e.tagName},Tn=function(e){return"VIDEO"===e.tagName},On=function(e){return"IMG"===e.tagName},Mn=function(e){return"IFRAME"===e.tagName},Dn=function(e){return"STYLE"===e.tagName},Rn=function(e){return"TEXTAREA"===e.tagName},Kn=function(e){return"SELECT"===e.tagName},Vn=function(e){return"SLOT"===e.tagName},Gn=function(e){return e.tagName.indexOf("-")>0},zn=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,A=e.counterIncrement,r=e.counterReset,n=!0;null!==A&&A.forEach(function(e){var A=t.counters[e.counter];A&&0!==e.increment&&(n=!1,A.length||A.push(1),A[Math.max(0,A.length-1)]+=e.increment)});var s=[];return n&&r.forEach(function(e){var A=t.counters[e.counter];s.push(e.counter),A||(A=t.counters[e.counter]=[]),A.push(e.reset)}),s},e}(),qn={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Wn={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Xn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Yn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Jn=function(e,t,A,r,n,s){return eA?is(e,n,s.length>0):r.integers.reduce(function(t,A,n){for(;e>=A;)e-=A,t+=r.values[n];return t},"")+s},Zn=function(e,t,A,r){var n="";do{A||e--,n=r(e)+n,e/=t}while(e*t>=t);return n},$n=function(e,t,A,r,n){var s=A-t+1;return(e<0?"-":"")+(Zn(Math.abs(e),s,r,function(e){return l(Math.floor(e%s)+t)})+n)},es=function(e,t,A){void 0===A&&(A=". ");var r=t.length;return Zn(Math.abs(e),r,!1,function(e){return t[Math.floor(e%r)]})+A},ts=function(e,t,A,r,n,s){if(e<-9999||e>9999)return is(e,4,n.length>0);var i=Math.abs(e),o=n;if(0===i)return t[0]+o;for(var a=0;i>0&&a<=4;a++){var l=i%10;0===l&&lr(s,1)&&""!==o?o=t[l]+o:l>1||1===l&&0===a||1===l&&1===a&&lr(s,2)||1===l&&1===a&&lr(s,4)&&e>100||1===l&&a>1&&lr(s,8)?o=t[l]+(a>0?A[a-1]:"")+o:1===l&&a>0&&(o=A[a-1]+o),i=Math.floor(i/10)}return(e<0?r:"")+o},As="十百千萬",rs="拾佰仟萬",ns="マイナス",ss="마이너스",is=function(e,t,A){var r=A?". ":"",n=A?"、":"",s=A?", ":"",i=A?" ":"";switch(t){case 0:return"•"+i;case 1:return"◦"+i;case 2:return"◾"+i;case 5:var o=$n(e,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return es(e,"〇一二三四五六七八九",n);case 6:return Jn(e,1,3999,qn,3,r).toLowerCase();case 7:return Jn(e,1,3999,qn,3,r);case 8:return $n(e,945,969,!1,r);case 9:return $n(e,97,122,!1,r);case 10:return $n(e,65,90,!1,r);case 11:return $n(e,1632,1641,!0,r);case 12:case 49:return Jn(e,1,9999,Wn,3,r);case 35:return Jn(e,1,9999,Wn,3,r).toLowerCase();case 13:return $n(e,2534,2543,!0,r);case 14:case 30:return $n(e,6112,6121,!0,r);case 15:return es(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return es(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return ts(e,"零一二三四五六七八九",As,"負",n,14);case 47:return ts(e,"零壹貳參肆伍陸柒捌玖",rs,"負",n,15);case 42:return ts(e,"零一二三四五六七八九",As,"负",n,14);case 41:return ts(e,"零壹贰叁肆伍陆柒捌玖",rs,"负",n,15);case 26:return ts(e,"〇一二三四五六七八九","十百千万",ns,n,0);case 25:return ts(e,"零壱弐参四伍六七八九","拾百千万",ns,n,7);case 31:return ts(e,"영일이삼사오육칠팔구","십백천만",ss,s,7);case 33:return ts(e,"零一二三四五六七八九","十百千萬",ss,s,0);case 32:return ts(e,"零壹貳參四五六七八九","拾百千",ss,s,7);case 18:return $n(e,2406,2415,!0,r);case 20:return Jn(e,1,19999,Yn,3,r);case 21:return $n(e,2790,2799,!0,r);case 22:return $n(e,2662,2671,!0,r);case 22:return Jn(e,1,10999,Xn,3,r);case 23:return es(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return es(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return $n(e,3302,3311,!0,r);case 28:return es(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return es(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return $n(e,3792,3801,!0,r);case 37:return $n(e,6160,6169,!0,r);case 38:return $n(e,4160,4169,!0,r);case 39:return $n(e,2918,2927,!0,r);case 40:return $n(e,1776,1785,!0,r);case 43:return $n(e,3046,3055,!0,r);case 44:return $n(e,3174,3183,!0,r);case 45:return $n(e,3664,3673,!0,r);case 46:return $n(e,3872,3881,!0,r);default:return $n(e,48,57,!0,r)}},os="data-html2canvas-ignore",as=function(){function e(e,t,A){if(this.context=e,this.options=A,this.scrolledElements=[],this.referenceElement=t,this.counters=new zn,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var A=this,s=cs(e,t);if(!s.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,a=s.contentWindow,l=a.document,c=ds(s).then(function(){return r(A,void 0,void 0,function(){var e,A;return n(this,function(r){switch(r.label){case 0:return this.scrolledElements.forEach(ws),a&&(a.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===t.top&&a.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-t.left,a.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(A=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,hs(l)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(l,A)}).then(function(){return s})]:[2,s]}})})});return l.open(),l.write(gs(document.doctype)+""),ms(this.referenceElement.ownerDocument,i,o),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(e){if(_r(e,2),Pn(e))return this.createCanvasClone(e);if(Tn(e))return this.createVideoClone(e);if(Dn(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return On(t)&&(On(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Gn(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return ps(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var A=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e},""),r=e.cloneNode(!1);return r.textContent=A,r}}catch(e){if(this.context.logger.error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var A=e.ownerDocument.createElement("img");try{return A.src=e.toDataURL(),A}catch(t){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var n=e.getContext("2d"),s=r.getContext("2d");if(s)if(!this.options.allowTaint&&n)s.putImageData(n.getImageData(0,0,e.width,e.height),0,0);else{var i=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(i){var o=i.getContextAttributes();!1===(null==o?void 0:o.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}s.drawImage(e,0,0)}return r}catch(t){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var A=t.getContext("2d");try{return A&&(A.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||A.getImageData(0,0,t.width,t.height)),t}catch(t){this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},e.prototype.appendChildNode=function(e,t,A){Un(t)&&("SCRIPT"===t.tagName||t.hasAttribute(os)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&Un(t)&&Dn(t)||e.appendChild(this.cloneNode(t,A))},e.prototype.cloneChildNodes=function(e,t,A){for(var r=this,n=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;n;n=n.nextSibling)if(Un(n)&&Vn(n)&&"function"==typeof n.assignedNodes){var s=n.assignedNodes();s.length&&s.forEach(function(e){return r.appendChildNode(t,e,A)})}else this.appendChildNode(t,n,A)},e.prototype.cloneNode=function(e,t){if(Qn(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var A=e.ownerDocument.defaultView;if(A&&Un(e)&&(En(e)||Sn(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var n=A.getComputedStyle(e),s=A.getComputedStyle(e,":before"),i=A.getComputedStyle(e,":after");this.referenceElement===e&&En(r)&&(this.clonedReferenceElement=r),Hn(r)&&bs(r);var o=this.counters.parse(new br(this.context,n)),a=this.resolvePseudoContent(e,r,s,Nr.BEFORE);Gn(e)&&(t=!0),Tn(e)||this.cloneChildNodes(e,r,t),a&&r.insertBefore(a,r.firstChild);var l=this.resolvePseudoContent(e,r,i,Nr.AFTER);return l&&r.appendChild(l),this.counters.pop(o),(n&&(this.options.copyStyles||Sn(e))&&!Mn(e)||t)&&ps(n,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Rn(e)||Kn(e))&&(Rn(r)||Kn(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,A,r){var n=this;if(A){var s=A.content,i=t.ownerDocument;if(i&&s&&"none"!==s&&"-moz-alt-content"!==s&&"none"!==A.display){this.counters.parse(new br(this.context,A));var o=new vr(this.context,A),a=i.createElement("html2canvaspseudoelement");ps(A,a),o.content.forEach(function(t){if(0===t.type)a.appendChild(i.createTextNode(t.value));else if(22===t.type){var A=i.createElement("img");A.src=t.value,A.style.opacity="1",a.appendChild(A)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(Ge);r.length&&a.appendChild(i.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var s=t.values.filter(Xe),l=s[0],c=s[1];if(l&&Ge(l)){var u=n.counters.getCounterValue(l.value),h=c&&Ge(c)?UA.parse(n.context,c.value):3;a.appendChild(i.createTextNode(is(u,h,!1)))}}else if("counters"===t.name){var d=t.values.filter(Xe),f=(l=d[0],d[1]);if(c=d[2],l&&Ge(l)){var p=n.counters.getCounterValues(l.value),g=c&&Ge(c)?UA.parse(n.context,c.value):3,m=f&&0===f.type?f.value:"",w=p.map(function(e){return is(e,g,!1)}).join(m);a.appendChild(i.createTextNode(w))}}}else if(20===t.type)switch(t.value){case"open-quote":a.appendChild(i.createTextNode(pr(o.quotes,n.quoteDepth++,!0)));break;case"close-quote":a.appendChild(i.createTextNode(pr(o.quotes,--n.quoteDepth,!1)));break;default:a.appendChild(i.createTextNode(t.value))}}),a.className=Bs+" "+ys;var l=r===Nr.BEFORE?" "+Bs:" "+ys;return Sn(t)?t.className.baseValue+=l:t.className+=l,a}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(Nr||(Nr={}));var ls,cs=function(e,t){var A=e.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=t.width.toString(),A.height=t.height.toString(),A.scrolling="no",A.setAttribute(os,"true"),e.body.appendChild(A),A},us=function(e){return new Promise(function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()})},hs=function(e){return Promise.all([].slice.call(e.images,0).map(us))},ds=function(e){return new Promise(function(t,A){var r=e.contentWindow;if(!r)return A("No window assigned for iframe");var n=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var A=setInterval(function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(A),t(e))},50)}})},fs=["all","d","content"],ps=function(e,t){for(var A=e.length-1;A>=0;A--){var r=e.item(A);-1===fs.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},gs=function(e){var t="";return e&&(t+=""),t},ms=function(e,t,A){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||A!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,A)},ws=function(e){var t=e[0],A=e[1],r=e[2];t.scrollLeft=A,t.scrollTop=r},Bs="___html2canvas___pseudoelement_before",ys="___html2canvas___pseudoelement_after",vs='{\n content: "" !important;\n display: none !important;\n}',bs=function(e){Cs(e,"."+Bs+":before"+vs+"\n ."+ys+":after"+vs)},Cs=function(e,t){var A=e.ownerDocument;if(A){var r=A.createElement("style");r.textContent=t,e.appendChild(r)}},_s=function(){function e(){}return e.getOrigin=function(t){var A=e._link;return A?(A.href=t,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),js=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Ls(e)||Us(e)?((this._cache[e]=this.loadImage(e)).catch(function(){}),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,function(){var t,A,r,s,i=this;return n(this,function(n){switch(n.label){case 0:return t=_s.isSameOrigin(e),A=!Es(e)&&!0===this._options.useCORS&&Wr.SUPPORT_CORS_IMAGES&&!t,r=!Es(e)&&!t&&!Ls(e)&&"string"==typeof this._options.proxy&&Wr.SUPPORT_CORS_XHR&&!A,t||!1!==this._options.allowTaint||Es(e)||Ls(e)||r||A?(s=e,r?[4,this.proxy(s)]:[3,2]):[2];case 1:s=n.sent(),n.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(Ss(s)||A)&&(r.crossOrigin="anonymous"),r.src=s,!0===r.complete&&setTimeout(function(){return e(r)},500),i._options.imageTimeout>0&&setTimeout(function(){return t("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,n.sent()]}})})},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,A=this._options.proxy;if(!A)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(n,s){var i=Wr.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(200===o.status)if("text"===i)n(o.response);else{var e=new FileReader;e.addEventListener("load",function(){return n(e.result)},!1),e.addEventListener("error",function(e){return s(e)},!1),e.readAsDataURL(o.response)}else s("Failed to proxy resource "+r+" with status code "+o.status)},o.onerror=s;var a=A.indexOf("?")>-1?"&":"?";if(o.open("GET",""+A+a+"url="+encodeURIComponent(e)+"&responseType="+i),"text"!==i&&o instanceof XMLHttpRequest&&(o.responseType=i),t._options.imageTimeout){var l=t._options.imageTimeout;o.timeout=l,o.ontimeout=function(){return s("Timed out ("+l+"ms) proxying "+r)}}o.send()})},e}(),xs=/^data:image\/svg\+xml/i,Fs=/^data:image\/.*;base64,/i,Qs=/^data:image\/.*/i,Us=function(e){return Wr.SUPPORT_SVG_DRAWING||!Is(e)},Es=function(e){return Qs.test(e)},Ss=function(e){return Fs.test(e)},Ls=function(e){return"blob"===e.substr(0,4)},Is=function(e){return"svg"===e.substr(-3).toLowerCase()||xs.test(e)},Ns=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,A){return new e(this.x+t,this.y+A)},e}(),ks=function(e,t,A){return new Ns(e.x+(t.x-e.x)*A,e.y+(t.y-e.y)*A)},Hs=function(){function e(e,t,A,r){this.type=1,this.start=e,this.startControl=t,this.endControl=A,this.end=r}return e.prototype.subdivide=function(t,A){var r=ks(this.start,this.startControl,t),n=ks(this.startControl,this.endControl,t),s=ks(this.endControl,this.end,t),i=ks(r,n,t),o=ks(n,s,t),a=ks(i,o,t);return A?new e(this.start,r,i,a):new e(a,o,s,this.end)},e.prototype.add=function(t,A){return new e(this.start.add(t,A),this.startControl.add(t,A),this.endControl.add(t,A),this.end.add(t,A))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Ps=function(e){return 1===e.type},Ts=function(e){var t=e.styles,A=e.bounds,r=nt(t.borderTopLeftRadius,A.width,A.height),n=r[0],s=r[1],i=nt(t.borderTopRightRadius,A.width,A.height),o=i[0],a=i[1],l=nt(t.borderBottomRightRadius,A.width,A.height),c=l[0],u=l[1],h=nt(t.borderBottomLeftRadius,A.width,A.height),d=h[0],f=h[1],p=[];p.push((n+o)/A.width),p.push((d+c)/A.width),p.push((s+f)/A.height),p.push((a+u)/A.height);var g=Math.max.apply(Math,p);g>1&&(n/=g,s/=g,o/=g,a/=g,c/=g,u/=g,d/=g,f/=g);var m=A.width-o,w=A.height-u,B=A.width-c,y=A.height-f,v=t.borderTopWidth,b=t.borderRightWidth,C=t.borderBottomWidth,_=t.borderLeftWidth,j=st(t.paddingTop,e.bounds.width),x=st(t.paddingRight,e.bounds.width),F=st(t.paddingBottom,e.bounds.width),Q=st(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||s>0?Os(A.left+_/3,A.top+v/3,n-_/3,s-v/3,ls.TOP_LEFT):new Ns(A.left+_/3,A.top+v/3),this.topRightBorderDoubleOuterBox=n>0||s>0?Os(A.left+m,A.top+v/3,o-b/3,a-v/3,ls.TOP_RIGHT):new Ns(A.left+A.width-b/3,A.top+v/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?Os(A.left+B,A.top+w,c-b/3,u-C/3,ls.BOTTOM_RIGHT):new Ns(A.left+A.width-b/3,A.top+A.height-C/3),this.bottomLeftBorderDoubleOuterBox=d>0||f>0?Os(A.left+_/3,A.top+y,d-_/3,f-C/3,ls.BOTTOM_LEFT):new Ns(A.left+_/3,A.top+A.height-C/3),this.topLeftBorderDoubleInnerBox=n>0||s>0?Os(A.left+2*_/3,A.top+2*v/3,n-2*_/3,s-2*v/3,ls.TOP_LEFT):new Ns(A.left+2*_/3,A.top+2*v/3),this.topRightBorderDoubleInnerBox=n>0||s>0?Os(A.left+m,A.top+2*v/3,o-2*b/3,a-2*v/3,ls.TOP_RIGHT):new Ns(A.left+A.width-2*b/3,A.top+2*v/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?Os(A.left+B,A.top+w,c-2*b/3,u-2*C/3,ls.BOTTOM_RIGHT):new Ns(A.left+A.width-2*b/3,A.top+A.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=d>0||f>0?Os(A.left+2*_/3,A.top+y,d-2*_/3,f-2*C/3,ls.BOTTOM_LEFT):new Ns(A.left+2*_/3,A.top+A.height-2*C/3),this.topLeftBorderStroke=n>0||s>0?Os(A.left+_/2,A.top+v/2,n-_/2,s-v/2,ls.TOP_LEFT):new Ns(A.left+_/2,A.top+v/2),this.topRightBorderStroke=n>0||s>0?Os(A.left+m,A.top+v/2,o-b/2,a-v/2,ls.TOP_RIGHT):new Ns(A.left+A.width-b/2,A.top+v/2),this.bottomRightBorderStroke=c>0||u>0?Os(A.left+B,A.top+w,c-b/2,u-C/2,ls.BOTTOM_RIGHT):new Ns(A.left+A.width-b/2,A.top+A.height-C/2),this.bottomLeftBorderStroke=d>0||f>0?Os(A.left+_/2,A.top+y,d-_/2,f-C/2,ls.BOTTOM_LEFT):new Ns(A.left+_/2,A.top+A.height-C/2),this.topLeftBorderBox=n>0||s>0?Os(A.left,A.top,n,s,ls.TOP_LEFT):new Ns(A.left,A.top),this.topRightBorderBox=o>0||a>0?Os(A.left+m,A.top,o,a,ls.TOP_RIGHT):new Ns(A.left+A.width,A.top),this.bottomRightBorderBox=c>0||u>0?Os(A.left+B,A.top+w,c,u,ls.BOTTOM_RIGHT):new Ns(A.left+A.width,A.top+A.height),this.bottomLeftBorderBox=d>0||f>0?Os(A.left,A.top+y,d,f,ls.BOTTOM_LEFT):new Ns(A.left,A.top+A.height),this.topLeftPaddingBox=n>0||s>0?Os(A.left+_,A.top+v,Math.max(0,n-_),Math.max(0,s-v),ls.TOP_LEFT):new Ns(A.left+_,A.top+v),this.topRightPaddingBox=o>0||a>0?Os(A.left+Math.min(m,A.width-b),A.top+v,m>A.width+b?0:Math.max(0,o-b),Math.max(0,a-v),ls.TOP_RIGHT):new Ns(A.left+A.width-b,A.top+v),this.bottomRightPaddingBox=c>0||u>0?Os(A.left+Math.min(B,A.width-_),A.top+Math.min(w,A.height-C),Math.max(0,c-b),Math.max(0,u-C),ls.BOTTOM_RIGHT):new Ns(A.left+A.width-b,A.top+A.height-C),this.bottomLeftPaddingBox=d>0||f>0?Os(A.left+_,A.top+Math.min(y,A.height-C),Math.max(0,d-_),Math.max(0,f-C),ls.BOTTOM_LEFT):new Ns(A.left+_,A.top+A.height-C),this.topLeftContentBox=n>0||s>0?Os(A.left+_+Q,A.top+v+j,Math.max(0,n-(_+Q)),Math.max(0,s-(v+j)),ls.TOP_LEFT):new Ns(A.left+_+Q,A.top+v+j),this.topRightContentBox=o>0||a>0?Os(A.left+Math.min(m,A.width+_+Q),A.top+v+j,m>A.width+_+Q?0:o-_+Q,a-(v+j),ls.TOP_RIGHT):new Ns(A.left+A.width-(b+x),A.top+v+j),this.bottomRightContentBox=c>0||u>0?Os(A.left+Math.min(B,A.width-(_+Q)),A.top+Math.min(w,A.height+v+j),Math.max(0,c-(b+x)),u-(C+F),ls.BOTTOM_RIGHT):new Ns(A.left+A.width-(b+x),A.top+A.height-(C+F)),this.bottomLeftContentBox=d>0||f>0?Os(A.left+_+Q,A.top+y,Math.max(0,d-(_+Q)),f-(C+F),ls.BOTTOM_LEFT):new Ns(A.left+_+Q,A.top+A.height-(C+F))};!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(ls||(ls={}));var Os=function(e,t,A,r,n){var s=(Math.sqrt(2)-1)/3*4,i=A*s,o=r*s,a=e+A,l=t+r;switch(n){case ls.TOP_LEFT:return new Hs(new Ns(e,l),new Ns(e,l-o),new Ns(a-i,t),new Ns(a,t));case ls.TOP_RIGHT:return new Hs(new Ns(e,t),new Ns(e+i,t),new Ns(a,l-o),new Ns(a,l));case ls.BOTTOM_RIGHT:return new Hs(new Ns(a,t),new Ns(a,t+o),new Ns(e+i,l),new Ns(e,l));case ls.BOTTOM_LEFT:default:return new Hs(new Ns(a,l),new Ns(a-i,l),new Ns(e,t+o),new Ns(e,t))}},Ms=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Ds=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Rs=function(e,t,A){this.offsetX=e,this.offsetY=t,this.matrix=A,this.type=0,this.target=6},Ks=function(e,t){this.path=e,this.target=t,this.type=1},Vs=function(e){this.opacity=e,this.type=2,this.target=6},Gs=function(e){return 1===e.type},zs=function(e,t){return e.length===t.length&&e.some(function(e,A){return e===t[A]})},qs=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Ws=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Ts(this.container),this.container.styles.opacity<1&&this.effects.push(new Vs(this.container.styles.opacity)),null!==this.container.styles.transform){var A=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new Rs(A,r,n))}if(0!==this.container.styles.overflowX){var s=Ms(this.curves),i=Ds(this.curves);zs(s,i)?this.effects.push(new Ks(s,6)):(this.effects.push(new Ks(s,2)),this.effects.push(new Ks(i,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),A=this.parent,r=this.effects.slice(0);A;){var n=A.effects.filter(function(e){return!Gs(e)});if(t||0!==A.container.styles.position||!A.parent){if(r.unshift.apply(r,n),t=-1===[2,3].indexOf(A.container.styles.position),0!==A.container.styles.overflowX){var s=Ms(A.curves),i=Ds(A.curves);zs(s,i)||r.unshift(new Ks(i,6))}}else r.unshift.apply(r,n);A=A.parent}return r.filter(function(t){return lr(t.target,e)})},e}(),Xs=function(e,t,A,r){e.container.elements.forEach(function(n){var s=lr(n.flags,4),i=lr(n.flags,2),o=new Ws(n,e);lr(n.styles.display,2048)&&r.push(o);var a=lr(n.flags,8)?[]:r;if(s||i){var l=s||n.styles.isPositioned()?A:t,c=new qs(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var u=n.styles.zIndex.order;if(u<0){var h=0;l.negativeZIndex.some(function(e,t){return u>e.element.container.styles.zIndex.order?(h=t,!1):h>0}),l.negativeZIndex.splice(h,0,c)}else if(u>0){var d=0;l.positiveZIndex.some(function(e,t){return u>=e.element.container.styles.zIndex.order?(d=t+1,!1):d>0}),l.positiveZIndex.splice(d,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else n.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);Xs(o,c,s?c:A,a)}else n.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),Xs(o,t,A,a);lr(n.flags,8)&&Ys(n,a)})},Ys=function(e,t){for(var A=e instanceof un?e.start:1,r=e instanceof un&&e.reversed,n=0;n0&&e.intrinsicHeight>0){var r=ti(e),n=Ds(t);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(A,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,function(){var t,r,s,o,a,l,c,u,h,d,f,p,g,m,w,B,y,v;return n(this,function(n){switch(n.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,s=t.styles,o=0,a=t.textNodes,n.label=1;case 1:return o0&&_>0&&(w=r.ctx.createPattern(p,"repeat"),r.renderRepeat(y,w,x,F))):function(e){return 2===e.type}(A)&&(B=Ai(e,t,[null,null,null]),y=B[0],v=B[1],b=B[2],C=B[3],_=B[4],j=0===A.position.length?[At]:A.position,x=st(j[0],C),F=st(j[j.length-1],_),Q=function(e,t,A,r,n){var s=0,i=0;switch(e.size){case 0:0===e.shape?s=i=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(A),Math.abs(A-n)):1===e.shape&&(s=Math.min(Math.abs(t),Math.abs(t-r)),i=Math.min(Math.abs(A),Math.abs(A-n)));break;case 2:if(0===e.shape)s=i=Math.min(Qt(t,A),Qt(t,A-n),Qt(t-r,A),Qt(t-r,A-n));else if(1===e.shape){var o=Math.min(Math.abs(A),Math.abs(A-n))/Math.min(Math.abs(t),Math.abs(t-r)),a=Ut(r,n,t,A,!0),l=a[0],c=a[1];i=o*(s=Qt(l-t,(c-A)/o))}break;case 1:0===e.shape?s=i=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(A),Math.abs(A-n)):1===e.shape&&(s=Math.max(Math.abs(t),Math.abs(t-r)),i=Math.max(Math.abs(A),Math.abs(A-n)));break;case 3:if(0===e.shape)s=i=Math.max(Qt(t,A),Qt(t,A-n),Qt(t-r,A),Qt(t-r,A-n));else if(1===e.shape){o=Math.max(Math.abs(A),Math.abs(A-n))/Math.max(Math.abs(t),Math.abs(t-r));var u=Ut(r,n,t,A,!1);l=u[0],c=u[1],i=o*(s=Qt(l-t,(c-A)/o))}}return Array.isArray(e.size)&&(s=st(e.size[0],r),i=2===e.size.length?st(e.size[1],n):s),[s,i]}(A,x,F,C,_),U=Q[0],E=Q[1],U>0&&E>0&&(S=r.ctx.createRadialGradient(v+x,b+F,0,v+x,b+F,U),xt(A.stops,2*U).forEach(function(e){return S.addColorStop(e.stop,ft(e.color))}),r.path(y),r.ctx.fillStyle=S,U!==E?(L=e.bounds.left+.5*e.bounds.width,I=e.bounds.top+.5*e.bounds.height,k=1/(N=E/U),r.ctx.save(),r.ctx.translate(L,I),r.ctx.transform(1,0,0,N,0,0),r.ctx.translate(-L,-I),r.ctx.fillRect(v,k*(b-I)+I,C,_*k),r.ctx.restore()):r.ctx.fill())),n.label=6;case 6:return t--,[2]}})},r=this,s=0,i=e.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return s0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,i,e.curves,2)]:[3,11]:[3,13];case 4:return n.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,i,e.curves,3)];case 6:return n.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,i,e.curves)];case 8:return n.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,i,e.curves)];case 10:n.sent(),n.label=11;case 11:i++,n.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,t,A,s,i){return r(this,void 0,void 0,function(){var r,o,a,l,c,u,h,d,f,p,g,m,w,B,y,v;return n(this,function(n){return this.ctx.save(),r=function(e,t){switch(t){case 0:return Zs(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Zs(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Zs(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Zs(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(s,A),o=Js(s,A),2===i&&(this.path(o),this.ctx.clip()),Ps(o[0])?(a=o[0].start.x,l=o[0].start.y):(a=o[0].x,l=o[0].y),Ps(o[1])?(c=o[1].end.x,u=o[1].end.y):(c=o[1].x,u=o[1].y),h=0===A||2===A?Math.abs(a-c):Math.abs(l-u),this.ctx.beginPath(),3===i?this.formatPath(r):this.formatPath(o.slice(0,2)),d=t<3?3*t:2*t,f=t<3?2*t:t,3===i&&(d=t,f=t),p=!0,h<=2*d?p=!1:h<=2*d+f?(d*=g=h/(2*d+f),f*=g):(m=Math.floor((h+f)/(d+f)),w=(h-m*d)/(m-1),f=(B=(h-(m+1)*d)/m)<=0||Math.abs(f-w){const e=new Uint8Array(4);return!((new Uint32Array(e.buffer)[0]=1)&e[0])})(),s={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class i{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(e=8192,t={}){let A=!1;"number"==typeof e?e=new ArrayBuffer(e):(A=!0,this.lastWrittenByte=e.byteLength);const r=t.offset?t.offset>>>0:0,n=e.byteLength-r;let s=r;(ArrayBuffer.isView(e)||e instanceof i)&&(e.byteLength!==e.buffer.byteLength&&(s=e.byteOffset+r),e=e.buffer),this.lastWrittenByte=A?n:0,this.buffer=e,this.length=n,this.byteLength=n,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,n),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const e=this._marks.pop();if(void 0===e)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){const t=2*(this.offset+e),A=new Uint8Array(t);A.set(new Uint8Array(this.buffer)),this.buffer=A.buffer,this.length=t,this.byteLength=t,this._data=new DataView(this.buffer)}return this}readBoolean(){return 0!==this.readUint8()}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,"uint8")}readArray(e,t){const A=s[t].BYTES_PER_ELEMENT*e,r=this.byteOffset+this.offset,i=this.buffer.slice(r,r+A);if(this.littleEndian===n&&"uint8"!==t&&"int8"!==t){const e=new Uint8Array(this.buffer.slice(r,r+A));e.reverse();const n=new s[t](e.buffer);return this.offset+=A,n.reverse(),n}const o=new s[t](i);return this.offset+=A,o}readInt16(){const e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){const e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){const e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){const e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){const e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){const e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){const e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){const e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let t="";for(let A=0;Athis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}},"./node_modules/iobuffer/lib-esm/text.js":function(e,t,A){"use strict";function r(e,t="utf8"){return new TextDecoder(t).decode(e)}A.r(t),A.d(t,{decode:function(){return r},encode:function(){return s}});const n=new TextEncoder;function s(e){return n.encode(e)}},"./node_modules/jspdf/dist/jspdf.es.min.js":function(e,t,A){"use strict";A.r(t),A.d(t,{AcroForm:function(){return Ue},AcroFormAppearance:function(){return je},AcroFormButton:function(){return we},AcroFormCheckBox:function(){return be},AcroFormChoiceField:function(){return fe},AcroFormComboBox:function(){return ge},AcroFormEditBox:function(){return me},AcroFormListBox:function(){return pe},AcroFormPasswordField:function(){return _e},AcroFormPushButton:function(){return Be},AcroFormRadioButton:function(){return ye},AcroFormTextField:function(){return Ce},GState:function(){return H},ShadingPattern:function(){return T},TilingPattern:function(){return O},default:function(){return M},jsPDF:function(){return M}});var r=A("./node_modules/@babel/runtime/helpers/esm/typeof.js"),n=A("./node_modules/fflate/esm/browser.js"),s=A("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=A("./node_modules/fast-png/lib-esm/index.js"),o=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function a(){o.console&&"function"==typeof o.console.log&&o.console.log.apply(o.console,arguments)}var l={log:a,warn:function(e){o.console&&("function"==typeof o.console.warn?o.console.warn.apply(o.console,arguments):a.call(null,arguments))},error:function(e){o.console&&("function"==typeof o.console.error?o.console.error.apply(o.console,arguments):a(e))}};function c(e,t,A){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){d(r.response,t,A)},r.onerror=function(){l.error("could not download file")},r.send()}function u(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function h(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(A){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 d=o.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,r.default)(window))||window!==o?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,A){var r=o.URL||o.webkitURL,n=document.createElement("a");t=t||e.name||"download",n.download=t,n.rel="noopener","string"==typeof e?(n.href=e,n.origin!==location.origin?u(n.href)?c(e,t,A):h(n,n.target="_blank"):h(n)):(n.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){h(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,A){if(t=t||e.name||"download","string"==typeof e)if(u(e))c(e,t,A);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){h(n)})}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!==(0,r.default)(t)&&(l.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,A),t)}:function(e,t,A,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof e)return c(e,t,A);var s="application/octet-stream"===e.type,i=/constructor/i.test(o.HTMLElement)||o.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||s&&i)&&"object"===("undefined"==typeof FileReader?"undefined":(0,r.default)(FileReader))){var l=new FileReader;l.onloadend=function(){var e=l.result;e=a?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=e:location=e,n=null},l.readAsDataURL(e)}else{var u=o.URL||o.webkitURL,h=u.createObjectURL(e);n?n.location=h:location.href=h,n=null,setTimeout(function(){u.revokeObjectURL(h)},4e4)}});function f(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 A=[{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),A=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==A.length&&(A="0"+A),"#"+e+t+A}}var p=o.atob.bind(o),g=o.btoa.bind(o);function m(e,t){var A=e[0],r=e[1],n=e[2],s=e[3];A=B(A,r,n,s,t[0],7,-680876936),s=B(s,A,r,n,t[1],12,-389564586),n=B(n,s,A,r,t[2],17,606105819),r=B(r,n,s,A,t[3],22,-1044525330),A=B(A,r,n,s,t[4],7,-176418897),s=B(s,A,r,n,t[5],12,1200080426),n=B(n,s,A,r,t[6],17,-1473231341),r=B(r,n,s,A,t[7],22,-45705983),A=B(A,r,n,s,t[8],7,1770035416),s=B(s,A,r,n,t[9],12,-1958414417),n=B(n,s,A,r,t[10],17,-42063),r=B(r,n,s,A,t[11],22,-1990404162),A=B(A,r,n,s,t[12],7,1804603682),s=B(s,A,r,n,t[13],12,-40341101),n=B(n,s,A,r,t[14],17,-1502002290),A=y(A,r=B(r,n,s,A,t[15],22,1236535329),n,s,t[1],5,-165796510),s=y(s,A,r,n,t[6],9,-1069501632),n=y(n,s,A,r,t[11],14,643717713),r=y(r,n,s,A,t[0],20,-373897302),A=y(A,r,n,s,t[5],5,-701558691),s=y(s,A,r,n,t[10],9,38016083),n=y(n,s,A,r,t[15],14,-660478335),r=y(r,n,s,A,t[4],20,-405537848),A=y(A,r,n,s,t[9],5,568446438),s=y(s,A,r,n,t[14],9,-1019803690),n=y(n,s,A,r,t[3],14,-187363961),r=y(r,n,s,A,t[8],20,1163531501),A=y(A,r,n,s,t[13],5,-1444681467),s=y(s,A,r,n,t[2],9,-51403784),n=y(n,s,A,r,t[7],14,1735328473),A=v(A,r=y(r,n,s,A,t[12],20,-1926607734),n,s,t[5],4,-378558),s=v(s,A,r,n,t[8],11,-2022574463),n=v(n,s,A,r,t[11],16,1839030562),r=v(r,n,s,A,t[14],23,-35309556),A=v(A,r,n,s,t[1],4,-1530992060),s=v(s,A,r,n,t[4],11,1272893353),n=v(n,s,A,r,t[7],16,-155497632),r=v(r,n,s,A,t[10],23,-1094730640),A=v(A,r,n,s,t[13],4,681279174),s=v(s,A,r,n,t[0],11,-358537222),n=v(n,s,A,r,t[3],16,-722521979),r=v(r,n,s,A,t[6],23,76029189),A=v(A,r,n,s,t[9],4,-640364487),s=v(s,A,r,n,t[12],11,-421815835),n=v(n,s,A,r,t[15],16,530742520),A=b(A,r=v(r,n,s,A,t[2],23,-995338651),n,s,t[0],6,-198630844),s=b(s,A,r,n,t[7],10,1126891415),n=b(n,s,A,r,t[14],15,-1416354905),r=b(r,n,s,A,t[5],21,-57434055),A=b(A,r,n,s,t[12],6,1700485571),s=b(s,A,r,n,t[3],10,-1894986606),n=b(n,s,A,r,t[10],15,-1051523),r=b(r,n,s,A,t[1],21,-2054922799),A=b(A,r,n,s,t[8],6,1873313359),s=b(s,A,r,n,t[15],10,-30611744),n=b(n,s,A,r,t[6],15,-1560198380),r=b(r,n,s,A,t[13],21,1309151649),A=b(A,r,n,s,t[4],6,-145523070),s=b(s,A,r,n,t[11],10,-1120210379),n=b(n,s,A,r,t[2],15,718787259),r=b(r,n,s,A,t[9],21,-343485551),e[0]=E(A,e[0]),e[1]=E(r,e[1]),e[2]=E(n,e[2]),e[3]=E(s,e[3])}function w(e,t,A,r,n,s){return t=E(E(t,e),E(r,s)),E(t<>>32-n,A)}function B(e,t,A,r,n,s,i){return w(t&A|~t&r,e,t,n,s,i)}function y(e,t,A,r,n,s,i){return w(t&r|A&~r,e,t,n,s,i)}function v(e,t,A,r,n,s,i){return w(t^A^r,e,t,n,s,i)}function b(e,t,A,r,n,s,i){return w(A^(t|~r),e,t,n,s,i)}function C(e){var t,A=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)m(r,_(e.substring(t-64,t)));e=e.substring(t-64);var n=[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(n[t>>2]|=128<<(t%4<<3),t>55)for(m(r,n),t=0;t<16;t++)n[t]=0;return n[14]=8*A,m(r,n),r}function _(e){var t,A=[];for(t=0;t<64;t+=4)A[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return A}var j="0123456789abcdef".split("");function x(e){for(var t="",A=0;A<4;A++)t+=j[e>>8*A+4&15]+j[e>>8*A&15];return t}function F(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Q(e){return C(e).map(F).join("")}var U="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t>16)+(t>>16)+(A>>16)<<16|65535&A}return e+t&4294967295}function S(e,t){var A,r,n,s;if(e!==A){for(var i=(n=e,s=1+(256/e.length|0),new Array(s+1).join(n)),o=[],a=0;a<256;a++)o[a]=a;var l=0;for(a=0;a<256;a++){var c=o[a];l=(l+c+i.charCodeAt(a))%256,o[a]=o[l],o[l]=c}A=e,r=o}else o=r;var u=t.length,h=0,d=0,f="";for(a=0;a/\f©þdSiz";var s=(t+this.padding).substr(0,32),i=(A+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,i),this.P=-(1+(255^n)),this.encryptionKey=Q(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=S(this.encryptionKey,this.padding)}function N(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",A=e.length,r=0;r126?"#"+("0"+n.toString(16)).slice(-2):e[r]}return t}function k(e){if("object"!==(0,r.default)(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,A,r){if(r=r||!1,"string"!=typeof e||"function"!=typeof A||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var n=Math.random().toString(35);return t[e][n]=[A,!!r],n},this.unsubscribe=function(e){for(var A in t)if(t[A][e])return delete t[A][e],0===Object.keys(t[A]).length&&delete t[A],!0;return!1},this.publish=function(A){if(t.hasOwnProperty(A)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var s in t[A]){var i=t[A][s];try{i[0].apply(e,r)}catch(e){o.console&&l.error("jsPDF PubSub Error",e.message,e)}i[1]&&n.push(s)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function H(e){if(!(this instanceof H))return new H(e);var t="opacity,stroke-opacity".split(",");for(var A in e)e.hasOwnProperty(A)&&t.indexOf(A)>=0&&(this[A]=e[A]);this.id="",this.objectNumber=-1}function P(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function T(e,t,A,r,n){if(!(this instanceof T))return new T(e,t,A,r,n);this.type="axial"===e?2:3,this.coords=t,this.colors=A,P.call(this,r,n)}function O(e,t,A,r,n){if(!(this instanceof O))return new O(e,t,A,r,n);this.boundingBox=e,this.xStep=t,this.yStep=A,this.stream="",this.cloneIndex=0,P.call(this,r,n)}function M(e){var t,A="string"==typeof arguments[0]?arguments[0]:"p",n=arguments[1],s=arguments[2],i=arguments[3],a=[],c=1,u=16,h="S",p=null;"object"===(0,r.default)(e=e||{})&&(A=e.orientation,n=e.unit||n,s=e.format||s,i=e.compress||e.compressPdf||i,null!==(p=e.encryption||null)&&(p.userPassword=p.userPassword||"",p.ownerPassword=p.ownerPassword||"",p.userPermissions=p.userPermissions||[]),c="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(u=e.floatPrecision),h=e.defaultPathOperation||"S"),a=e.filters||(!0===i?["FlateEncode"]:a),n=n||"mm",A=(""+(A||"P")).toLowerCase();var m=e.putOnlyUsedFonts||!1,w={},B={internal:{},__private__:{}};B.__private__.PubSub=k;var y="1.3",v=B.__private__.getPdfVersion=function(){return y};B.__private__.setPdfVersion=function(e){y=e};var b={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]};B.__private__.getPageFormats=function(){return b};var C=B.__private__.getPageFormat=function(e){return b[e]};s=s||"a4";var _="compat",j="advanced",x=_;function F(){this.saveGraphicsState(),ce(new Ve(je,0,0,-je,0,vA()*je).toString()+" cm"),this.setFontSize(this.getFontSize()/je),h="n",x=j}function Q(){this.restoreGraphicsState(),h="S",x=_}var U=B.__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};B.advancedAPI=function(e){var t=x===_;return t&&F.call(this),"function"!=typeof e||(e(this),t&&Q.call(this)),this},B.compatAPI=function(e){var t=x===j;return t&&Q.call(this),"function"!=typeof e||(e(this),t&&F.call(this)),this},B.isAdvancedAPI=function(){return x===j};var E,S=function(e){if(x!==j)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},L=B.roundToPrecision=B.__private__.roundToPrecision=function(e,A){var r=t||A;if(isNaN(e)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(r).replace(/0+$/,"")};E=B.hpf=B.__private__.hpf="number"==typeof u?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return L(e,u)}:"smart"===u?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return L(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return L(e,16)};var P=B.f2=B.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return L(e,2)},D=B.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return L(e,3)},R=B.scale=B.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return x===_?e*je:x===j?e:void 0},K=function(e){return R(function(e){return x===_?vA()-e:x===j?e:void 0}(e))};B.__private__.setPrecision=B.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var V,G="00000000000000000000000000000000",z=B.__private__.getFileId=function(){return G},q=B.__private__.setFileId=function(e){return G=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():G.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==p&&(St=new I(p.userPermissions,p.userPassword,p.ownerPassword,G)),G};B.setFileId=function(e){return q(e),this},B.getFileId=function(){return z()};var W=B.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),A=t<0?"+":"-",r=Math.floor(Math.abs(t/60)),n=Math.abs(t%60),s=[A,$(r),"'",$(n),"'"].join("");return["D:",e.getFullYear(),$(e.getMonth()+1),$(e.getDate()),$(e.getHours()),$(e.getMinutes()),$(e.getSeconds()),s].join("")},X=B.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),A=parseInt(e.substr(6,2),10)-1,r=parseInt(e.substr(8,2),10),n=parseInt(e.substr(10,2),10),s=parseInt(e.substr(12,2),10),i=parseInt(e.substr(14,2),10);return new Date(t,A,r,n,s,i,0)},Y=B.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=W(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 V=t},J=B.__private__.getCreationDate=function(e){var t=V;return"jsDate"===e&&(t=X(V)),t};B.setCreationDate=function(e){return Y(e),this},B.getCreationDate=function(e){return J(e)};var Z,$=B.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},ee=B.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},te=0,Ae=[],re=[],ne=0,se=[],ie=[],oe=!1,ae=re;B.__private__.setCustomOutputDestination=function(e){oe=!0,ae=e};var le=function(e){oe||(ae=e)};B.__private__.resetCustomOutputDestination=function(){oe=!1,ae=re};var ce=B.__private__.out=function(e){return e=e.toString(),ne+=e.length+1,ae.push(e),ae},ue=B.__private__.write=function(e){return ce(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},he=B.__private__.getArrayBuffer=function(e){for(var t=e.length,A=new ArrayBuffer(t),r=new Uint8Array(A);t--;)r[t]=e.charCodeAt(t);return A},de=[["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]];B.__private__.getStandardFonts=function(){return de};var fe=e.fontSize||16;B.__private__.setFontSize=B.setFontSize=function(e){return fe=x===j?e/je:e,this};var pe,ge=B.__private__.getFontSize=B.getFontSize=function(){return x===_?fe:fe*je},me=e.R2L||!1;B.__private__.setR2L=B.setR2L=function(e){return me=e,this},B.__private__.getR2L=B.getR2L=function(){return me};var we,Be=B.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))pe=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].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.');pe=e}else pe=parseInt(e,10)};B.__private__.getZoomMode=function(){return pe};var ye,ve=B.__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.');we=e};B.__private__.getPageMode=function(){return we};var be=B.__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.');ye=e};B.__private__.getLayoutMode=function(){return ye},B.__private__.setDisplayMode=B.setDisplayMode=function(e,t,A){return Be(e),be(t),ve(A),this};var Ce={title:"",subject:"",author:"",keywords:"",creator:""};B.__private__.getDocumentProperty=function(e){if(-1===Object.keys(Ce).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Ce[e]},B.__private__.getDocumentProperties=function(){return Ce},B.__private__.setDocumentProperties=B.setProperties=B.setDocumentProperties=function(e){for(var t in Ce)Ce.hasOwnProperty(t)&&e[t]&&(Ce[t]=e[t]);return this},B.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(Ce).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Ce[e]=t};var _e,je,xe,Fe,Qe,Ue={},Ee={},Se=[],Le={},Ie={},Ne={},ke={},He=null,Pe=0,Te=[],Oe=new k(B),Me=e.hotfixes||[],De={},Re={},Ke=[],Ve=function e(t,A,r,n,s,i){if(!(this instanceof e))return new e(t,A,r,n,s,i);isNaN(t)&&(t=1),isNaN(A)&&(A=0),isNaN(r)&&(r=0),isNaN(n)&&(n=1),isNaN(s)&&(s=0),isNaN(i)&&(i=0),this._matrix=[t,A,r,n,s,i]};Object.defineProperty(Ve.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Ve.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Ve.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Ve.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Ve.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Ve.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Ve.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Ve.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Ve.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Ve.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Ve.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Ve.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Ve.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ve.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ve.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ve.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ve.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(E).join(e)},Ve.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,A=e.sx*this.shy+e.shy*this.sy,r=e.shx*this.sx+e.sy*this.shx,n=e.shx*this.shy+e.sy*this.sy,s=e.tx*this.sx+e.ty*this.shx+this.tx,i=e.tx*this.shy+e.ty*this.sy+this.ty;return new Ve(t,A,r,n,s,i)},Ve.prototype.decompose=function(){var e=this.sx,t=this.shy,A=this.shx,r=this.sy,n=this.tx,s=this.ty,i=Math.sqrt(e*e+t*t),o=(e/=i)*A+(t/=i)*r;A-=e*o,r-=t*o;var a=Math.sqrt(A*A+r*r);return o/=a,e*(r/=a)>16&255,n=l>>8&255,s=255&l}if(void 0===n||void 0===i&&A===n&&n===s)t="string"==typeof A?A+" "+o[0]:2===e.precision?P(A/255)+" "+o[0]:D(A/255)+" "+o[0];else if(void 0===i||"object"===(0,r.default)(i)){if(i&&!isNaN(i.a)&&0===i.a)return["1.","1.","1.",o[1]].join(" ");t="string"==typeof A?[A,n,s,o[1]].join(" "):2===e.precision?[P(A/255),P(n/255),P(s/255),o[1]].join(" "):[D(A/255),D(n/255),D(s/255),o[1]].join(" ")}else t="string"==typeof A?[A,n,s,i,o[2]].join(" "):2===e.precision?[P(A),P(n),P(s),P(i),o[2]].join(" "):[D(A),D(n),D(s),D(i),o[2]].join(" ");return t},rt=B.__private__.getFilters=function(){return a},nt=B.__private__.putStream=function(e){var t=(e=e||{}).data||"",A=e.filters||rt(),r=e.alreadyAppliedFilters||[],n=e.addLength1||!1,s=t.length,i=e.objectId,o=function(e){return e};if(null!==p&&void 0===i)throw new Error("ObjectId must be passed to putStream for file encryption");null!==p&&(o=St.encryptor(i,0));var a={};!0===A&&(A=["FlateEncode"]);var l=e.additionalKeyValues||[],c=(a=void 0!==M.API.processDataByFilters?M.API.processDataByFilters(t,A):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==a.data.length&&(l.push({key:"Length",value:a.data.length}),!0===n&&l.push({key:"Length1",value:s})),0!=c.length)if(c.split("/").length-1==1)l.push({key:"Filter",value:c});else{l.push({key:"Filter",value:"["+c+"]"});for(var u=0;u>"),0!==a.data.length&&(ce("stream"),ce(o(a.data)),ce("endstream"))},st=B.__private__.putPage=function(e){var t=e.number,A=e.data,r=e.objId,n=e.contentsObjId;Je(r,!0),ce("<>"),ce("endobj");var s=A.join("\n");return x===j&&(s+="\nQ"),Je(n,!0),nt({data:s,filters:rt(),objectId:n}),ce("endobj"),r},it=B.__private__.putPages=function(){var e,t,A=[];for(e=1;e<=Pe;e++)Te[e].objId=Ye(),Te[e].contentsObjId=Ye();for(e=1;e<=Pe;e++)A.push(st({number:e,data:ie[e],objId:Te[e].objId,contentsObjId:Te[e].contentsObjId,mediaBox:Te[e].mediaBox,cropBox:Te[e].cropBox,bleedBox:Te[e].bleedBox,trimBox:Te[e].trimBox,artBox:Te[e].artBox,userUnit:Te[e].userUnit,rootDictionaryObjId:$e,resourceDictionaryObjId:et}));Je($e,!0),ce("<>"),ce("endobj"),Oe.publish("postPutPages")},ot=function(e){Oe.publish("putFont",{font:e,out:ce,newObject:Xe,putStream:nt}),!0!==e.isAlreadyPutted&&(e.objectNumber=Xe(),ce("<<"),ce("/Type /Font"),ce("/BaseFont /"+N(e.postScriptName)),ce("/Subtype /Type1"),"string"==typeof e.encoding&&ce("/Encoding /"+e.encoding),ce("/FirstChar 32"),ce("/LastChar 255"),ce(">>"),ce("endobj"))},at=function(e){e.objectNumber=Xe();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[E(e.x),E(e.y),E(e.x+e.width),E(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var A=e.pages[1].join("\n");nt({data:A,additionalKeyValues:t,objectId:e.objectNumber}),ce("endobj")},lt=function(e,t){t||(t=21);var A=Xe(),r=function(e,t){var A,r=[],n=1/(t-1);for(A=0;A<1;A+=n)r.push(A);if(r.push(1),0!=e[0].offset){var s={offset:0,color:e[0].color};e.unshift(s)}if(1!=e[e.length-1].offset){var i={offset:1,color:e[e.length-1].color};e.push(i)}for(var o="",a=0,l=0;le[a+1].offset;)a++;var c=e[a].offset,u=(A-c)/(e[a+1].offset-c),h=e[a].color,d=e[a+1].color;o+=ee(Math.round((1-u)*h[0]+u*d[0]).toString(16))+ee(Math.round((1-u)*h[1]+u*d[1]).toString(16))+ee(Math.round((1-u)*h[2]+u*d[2]).toString(16))}return o.trim()}(e.colors,t),n=[];n.push({key:"FunctionType",value:"0"}),n.push({key:"Domain",value:"[0.0 1.0]"}),n.push({key:"Size",value:"["+t+"]"}),n.push({key:"BitsPerSample",value:"8"}),n.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),n.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),nt({data:r,additionalKeyValues:n,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:A}),ce("endobj"),e.objectNumber=Xe(),ce("<< /ShadingType "+e.type),ce("/ColorSpace /DeviceRGB");var s="/Coords ["+E(parseFloat(e.coords[0]))+" "+E(parseFloat(e.coords[1]))+" ";2===e.type?s+=E(parseFloat(e.coords[2]))+" "+E(parseFloat(e.coords[3])):s+=E(parseFloat(e.coords[2]))+" "+E(parseFloat(e.coords[3]))+" "+E(parseFloat(e.coords[4]))+" "+E(parseFloat(e.coords[5])),ce(s+="]"),e.matrix&&ce("/Matrix ["+e.matrix.toString()+"]"),ce("/Function "+A+" 0 R"),ce("/Extend [true true]"),ce(">>"),ce("endobj")},ct=function(e,t){var A=Ye(),r=Xe();t.push({resourcesOid:A,objectOid:r}),e.objectNumber=r;var n=[];n.push({key:"Type",value:"/Pattern"}),n.push({key:"PatternType",value:"1"}),n.push({key:"PaintType",value:"1"}),n.push({key:"TilingType",value:"1"}),n.push({key:"BBox",value:"["+e.boundingBox.map(E).join(" ")+"]"}),n.push({key:"XStep",value:E(e.xStep)}),n.push({key:"YStep",value:E(e.yStep)}),n.push({key:"Resources",value:A+" 0 R"}),e.matrix&&n.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),nt({data:e.stream,additionalKeyValues:n,objectId:e.objectNumber}),ce("endobj")},ut=function(e){for(var t in e.objectNumber=Xe(),ce("<<"),e)switch(t){case"opacity":ce("/ca "+P(e[t]));break;case"stroke-opacity":ce("/CA "+P(e[t]))}ce(">>"),ce("endobj")},ht=function(e){Je(e.resourcesOid,!0),ce("<<"),ce("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var e in ce("/Font <<"),Ue)Ue.hasOwnProperty(e)&&(!1===m||!0===m&&w.hasOwnProperty(e))&&ce("/"+e+" "+Ue[e].objectNumber+" 0 R");ce(">>")}(),function(){if(Object.keys(Le).length>0){for(var e in ce("/Shading <<"),Le)Le.hasOwnProperty(e)&&Le[e]instanceof T&&Le[e].objectNumber>=0&&ce("/"+e+" "+Le[e].objectNumber+" 0 R");Oe.publish("putShadingPatternDict"),ce(">>")}}(),function(e){if(Object.keys(Le).length>0){for(var t in ce("/Pattern <<"),Le)Le.hasOwnProperty(t)&&Le[t]instanceof B.TilingPattern&&Le[t].objectNumber>=0&&Le[t].objectNumber>")}}(e.objectOid),function(){if(Object.keys(Ne).length>0){var e;for(e in ce("/ExtGState <<"),Ne)Ne.hasOwnProperty(e)&&Ne[e].objectNumber>=0&&ce("/"+e+" "+Ne[e].objectNumber+" 0 R");Oe.publish("putGStateDict"),ce(">>")}}(),function(){for(var e in ce("/XObject <<"),De)De.hasOwnProperty(e)&&De[e].objectNumber>=0&&ce("/"+e+" "+De[e].objectNumber+" 0 R");Oe.publish("putXobjectDict"),ce(">>")}(),ce(">>"),ce("endobj")},dt=function(e){Ee[e.fontName]=Ee[e.fontName]||{},Ee[e.fontName][e.fontStyle]=e.id},ft=function(e,t,A,r,n){var s={id:"F"+(Object.keys(Ue).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:A,encoding:r,isStandardFont:n||!1,metadata:{}};return Oe.publish("addFont",{font:s,instance:this}),Ue[s.id]=s,dt(s),s.id},pt=B.__private__.pdfEscape=B.pdfEscape=function(e,t){return function(e,t){var A,r,n,s,i,o,a,l,c;if(n=(t=t||{}).sourceEncoding||"Unicode",i=t.outputEncoding,(t.autoencode||i)&&Ue[_e].metadata&&Ue[_e].metadata[n]&&Ue[_e].metadata[n].encoding&&(s=Ue[_e].metadata[n].encoding,!i&&Ue[_e].encoding&&(i=Ue[_e].encoding),!i&&s.codePages&&(i=s.codePages[0]),"string"==typeof i&&(i=s[i]),i)){for(a=!1,o=[],A=0,r=e.length;A>8&&(a=!0);e=o.join("")}for(A=e.length;void 0===a&&0!==A;)e.charCodeAt(A-1)>>8&&(a=!0),A--;if(!a)return e;for(o=t.noBOM?[]:[254,255],A=0,r=e.length;A>8)>>8)throw new Error("Character at position "+A+" 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)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},gt=B.__private__.beginPage=function(e){ie[++Pe]=[],Te[Pe]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},Bt(Pe),le(ie[Z])},mt=function(e,t){var r,n,i;switch(A=t||A,"string"==typeof e&&(r=C(e.toLowerCase()),Array.isArray(r)&&(n=r[0],i=r[1])),Array.isArray(e)&&(n=e[0]*je,i=e[1]*je),isNaN(n)&&(n=s[0],i=s[1]),(n>14400||i>14400)&&(l.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),n=Math.min(14400,n),i=Math.min(14400,i)),s=[n,i],A.substr(0,1)){case"l":i>n&&(s=[i,n]);break;case"p":n>i&&(s=[i,n])}gt(s),Jt(Xt),ce(sA),0!==uA&&ce(uA+" J"),0!==hA&&ce(hA+" j"),Oe.publish("addPage",{pageNumber:Pe})},wt=function(e){e>0&&e<=Pe&&(ie.splice(e,1),Te.splice(e,1),Pe--,Z>Pe&&(Z=Pe),this.setPage(Z))},Bt=function(e){e>0&&e<=Pe&&(Z=e)},yt=B.__private__.getNumberOfPages=B.getNumberOfPages=function(){return ie.length-1},vt=function(e,t,A){var r,n=void 0;return A=A||{},e=void 0!==e?e:Ue[_e].fontName,t=void 0!==t?t:Ue[_e].fontStyle,r=e.toLowerCase(),void 0!==Ee[r]&&void 0!==Ee[r][t]?n=Ee[r][t]:void 0!==Ee[e]&&void 0!==Ee[e][t]?n=Ee[e][t]:!1===A.disableWarning&&l.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),n||A.noFallback||null==(n=Ee.times[t])&&(n=Ee.times.normal),n},bt=B.__private__.putInfo=function(){var e=Xe(),t=function(e){return e};for(var A in null!==p&&(t=St.encryptor(e,0)),ce("<<"),ce("/Producer ("+pt(t("jsPDF "+M.version))+")"),Ce)Ce.hasOwnProperty(A)&&Ce[A]&&ce("/"+A.substr(0,1).toUpperCase()+A.substr(1)+" ("+pt(t(Ce[A]))+")");ce("/CreationDate ("+pt(t(V))+")"),ce(">>"),ce("endobj")},Ct=B.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||$e;switch(Xe(),ce("<<"),ce("/Type /Catalog"),ce("/Pages "+t+" 0 R"),pe||(pe="fullwidth"),pe){case"fullwidth":ce("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ce("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ce("/OpenAction [3 0 R /Fit]");break;case"original":ce("/OpenAction [3 0 R /XYZ null null 1]");break;default:var A=""+pe;"%"===A.substr(A.length-1)&&(pe=parseInt(pe)/100),"number"==typeof pe&&ce("/OpenAction [3 0 R /XYZ null null "+P(pe)+"]")}switch(ye||(ye="continuous"),ye){case"continuous":ce("/PageLayout /OneColumn");break;case"single":ce("/PageLayout /SinglePage");break;case"two":case"twoleft":ce("/PageLayout /TwoColumnLeft");break;case"tworight":ce("/PageLayout /TwoColumnRight")}we&&ce("/PageMode /"+we),Oe.publish("putCatalog"),ce(">>"),ce("endobj")},_t=B.__private__.putTrailer=function(){ce("trailer"),ce("<<"),ce("/Size "+(te+1)),ce("/Root "+te+" 0 R"),ce("/Info "+(te-1)+" 0 R"),null!==p&&ce("/Encrypt "+St.oid+" 0 R"),ce("/ID [ <"+G+"> <"+G+"> ]"),ce(">>")},jt=B.__private__.putHeader=function(){ce("%PDF-"+y),ce("%ºß¬à")},xt=B.__private__.putXRef=function(){var e="0000000000";ce("xref"),ce("0 "+(te+1)),ce("0000000000 65535 f ");for(var t=1;t<=te;t++)"function"==typeof Ae[t]?ce((e+Ae[t]()).slice(-10)+" 00000 n "):void 0!==Ae[t]?ce((e+Ae[t]).slice(-10)+" 00000 n "):ce("0000000000 00000 n ")},Ft=B.__private__.buildDocument=function(){var e;te=0,ne=0,re=[],Ae=[],se=[],$e=Ye(),et=Ye(),le(re),Oe.publish("buildDocument"),jt(),it(),function(){Oe.publish("putAdditionalObjects");for(var e=0;e"),ce("/O <"+St.toHexString(St.O)+">"),ce("/P "+St.P),ce(">>"),ce("endobj")),bt(),Ct();var t=ne;return xt(),_t(),ce("startxref"),ce(""+t),ce("%%EOF"),le(ie[Z]),re.join("\n")},Qt=B.__private__.getBlob=function(e){return new Blob([he(e)],{type:"application/pdf"})},Ut=B.output=B.__private__.output=(We=function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return Ft();case"save":B.save(t.filename);break;case"arraybuffer":return he(Ft());case"blob":return Qt(Ft());case"bloburi":case"bloburl":if(void 0!==o.URL&&"function"==typeof o.URL.createObjectURL)return o.URL&&o.URL.createObjectURL(Qt(Ft()))||void 0;l.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var A="",r=Ft();try{A=g(r)}catch(e){A=g(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+t.filename+";base64,"+A;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(o)){var n="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",s=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(n=t.pdfObjectUrl,s="");var i='