vendor: 6,751 bytes, line 1
1import{i as t,h as e}from"./bootstrap-collapse-tT-5TXrK.js";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e="utf8"){return new TextDecoder(e).decode(t)}const n=new TextEncoder;const a=(()=>{const t=new Uint8Array(4);return!((new Uint32Array(t.buffer)[0]=1)&t[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 o{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=8192,e={}){let r=!1;"number"==typeof t?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const i=e.offset?e.offset>>>0:0,n=t.byteLength-i;let a=i;(ArrayBuffer.isView(t)||t instanceof o)&&(t.byteLength!==t.buffer.byteLength&&(a=t.byteOffset+i),t=t.buffer),this.lastWrittenByte=r?n:0,this.buffer=t,this.length=n,this.byteLength=n,this.byteOffset=a,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,a,n),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,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 t=this._marks.pop();if(void 0===t)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const e=2*(this.offset+t),r=new Uint8Array(e);r.set(new Uint8Array(this.buffer)),this.buffer=r.buffer,this.length=e,this.byteLength=e,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(t=1){return this.readArray(t,"uint8")}readArray(t,e){const r=s[e].BYTES_PER_ELEMENT*t,i=this.byteOffset+this.offset,n=this.buffer.slice(i,i+r);if(this.littleEndian===a&&"uint8"!==e&&"int8"!==e){const t=new Uint8Array(this.buffer.slice(i,i+r));t.reverse();const n=new s[e](t.buffer);return this.offset+=r,n.reverse(),n}const o=new s[e](n);return this.offset+=r,o}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let e="";for(let r=0;r<t;r++)e+=this.readChar();return e}readUtf8(t=1){return i(this.readBytes(t))}decodeText(t=1,e="utf8"){return i(this.readBytes(t),e)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let e=0;e<t.length;e++)this._data.setUint8(this.offset++,t[e]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let e=0;e<t.length;e++)this.writeUint8(t.charCodeAt(e));return this}writeUtf8(t){return this.writeBytes(function(t){return n.encode(t)}(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function h(t){let e=t.length;for(;--e>=0;)t[e]=0}h(new Array(576));h(new Array(60));h(new Array(512));h(new Array(256));h(new Array(29));h(new Array(30));var u=(t,e,r,i)=>{let n=65535&t,a=t>>>16&65535,s=0;for(;0!==r;){s=r>2e3?2e3:r,r-=s;do{n=n+e[i++]|0,a=a+n|0}while(--s);n%=65521,a%=65521}return n|a<<16};const l=new Uint32Array((()=>{let t,e=[];for(var r=0;r<256;r++){t=r;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e})());var c=(t,e,r,i)=>{const n=l,a=i+r;t^=-1;for(let s=i;s<a;s++)t=t>>>8^n[255&(t^e[s])];return-1^t},f={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},d={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ER
vendor: 4,182 bytes, line 1
1ROR:-5,Z_DEFLATED:8};const g=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var p=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(const e in r)g(r,e)&&(t[e]=r[e])}}return t},y=t=>{let e=0;for(let i=0,n=t.length;i<n;i++)e+=t[i].length;const r=new Uint8Array(e);for(let i=0,n=0,a=t.length;i<a;i++){let e=t[i];r.set(e,n),n+=e.length}return r};let v=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(ff){v=!1}const m=new Uint8Array(256);for(let df=0;df<256;df++)m[df]=df>=252?6:df>=248?5:df>=240?4:df>=224?3:df>=192?2:1;m[254]=m[255]=1;var b=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,r,i,n,a,s=t.length,o=0;for(n=0;n<s;n++)r=t.charCodeAt(n),55296==(64512&r)&&n+1<s&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(r=65536+(r-55296<<10)+(i-56320),n++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Uint8Array(o),a=0,n=0;a<o;n++)r=t.charCodeAt(n),55296==(64512&r)&&n+1<s&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?e[a++]=r:r<2048?(e[a++]=192|r>>>6,e[a++]=128|63&r):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|63&r):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|63&r);return e},x=(t,e)=>{const r=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const a=new Array(2*r);for(n=0,i=0;i<r;){let e=t[i++];if(e<128){a[n++]=e;continue}let s=m[e];if(s>4)a[n++]=65533,i+=s-1;else{for(e&=2===s?31:3===s?15:7;s>1&&i<r;)e=e<<6|63&t[i++],s--;s>1?a[n++]=65533:e<65536?a[n++]=e:(e-=65536,a[n++]=55296|e>>10&1023,a[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&v)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let r="";for(let i=0;i<e;i++)r+=String.fromCharCode(t[i]);return r})(a,n)},w=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let r=e-1;for(;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+m[t[r]]>e?r:e};var S=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const _=16209;var A=function(t,e){let r,i,n,a,s,o,h,u,l,c,f,d,g,p,y,v,m,b,x,w,S,A,T,E;const O=t.state;r=t.next_in,T=t.input,i=r+(t.avail_in-5),n=t.next_out,E=t.output,a=n-(e-t.avail_out),s=n+(t.avail_out-257),o=O.dmax,h=O.wsize,u=O.whave,l=O.wnext,c=O.window,f=O.hold,d=O.bits,g=O.lencode,p=O.distcode,y=(1<<O.lenbits)-1,v=(1<<O.distbits)-1;t:do{d<15&&(f+=T[r++]<<d,d+=8,f+=T[r++]<<d,d+=8),m=g[f&y];e:for(;;){if(b=m>>>24,f>>>=b,d-=b,b=m>>>16&255,0===b)E[n++]=65535&m;else{if(!(16&b)){if(64&b){if(32&b){O.mode=16191;break t}t.msg="invalid literal/length code",O.mode=_;break t}m=g[(65535&m)+(f&(1<<b)-1)];continue e}for(x=65535&m,b&=15,b&&(d<b&&(f+=T[r++]<<d,d+=8),x+=f&(1<<b)-1,f>>>=b,d-=b),d<15&&(f+=T[r++]<<d,d+=8,f+=T[r++]<<d,d+=8),m=p[f&v];;){if(b=m>>>24,f>>>=b,d-=b,b=m>>>16&255,16&b){if(w=65535&m,b&=15,d<b&&(f+=T[r++]<<d,d+=8,d<b&&(f+=T[r++]<<d,d+=8)),w+=f&(1<<b)-1,w>o){t.msg="invalid distance too far back",O.mode=_;break t}if(f>>>=b,d-=b,b=n-a,w>b){if(b=w-b,b>u&&O.sane){t.msg="invalid distance too far back",O.mode=_;break t}if(S=0,A=c,0===l){if(S+=h-b,b<x){x-=b;do{E[n++]=c[S++]}while(--b);S=n-w,A=E}}else if(l<b){if(S+=h+l-b,b-=l,b<x){x-=b;do{E[n++]=c[S++]}while(--b);if(S=0,l<x){b=l,x-=b;do{E[n++]=c[S++]}while(--b);S=n-w,A=E}}}else if(S+=l-b,b<x){x-=b;do{E[n++]=c[S++]}while(--b);S=n-w,A=E}for(;x>2;)E[n++]=A[S++],E[n++]=A[S++],E[n++]=A[S++],x-=3;x&&(E[n++]=A[S++],x>1&&(E[n++]=A[S++]))}else{S=n-w;do{E[n++]=E[S++],E[n++]=E[S++],E[n++]=E[S++],x-=3}while(x>2);x&&(E[n++]=E[S++],x>1&&(E[n++]=E[S++]))}break}if(64&b){t.msg="invalid distance code",O.mode=_;break t}m=p[(65535&m)+(f&(1<<b)-1)]}}break}}while(r<i&&n<s);x=d>>3,r-=x,d-=x<<3,f&=(1<<d)-1,t.next_in=r,t.next_out=n,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=n<s?s-n+257:257-(n-s),O.hold=f,O.bits=d};const T=15,E=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),O=new
vendor: 13,019 bytes, line 1
1Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,199,75]),C=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),k=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var P=(t,e,r,i,n,a,s,o)=>{const h=o.bits;let u,l,c,f,d,g,p=0,y=0,v=0,m=0,b=0,x=0,w=0,S=0,_=0,A=0,P=null;const M=new Uint16Array(16),N=new Uint16Array(16);let R,I,V,L=null;for(p=0;p<=T;p++)M[p]=0;for(y=0;y<i;y++)M[e[r+y]]++;for(b=h,m=T;m>=1&&0===M[m];m--);if(b>m&&(b=m),0===m)return n[a++]=20971520,n[a++]=20971520,o.bits=1,0;for(v=1;v<m&&0===M[v];v++);for(b<v&&(b=v),S=1,p=1;p<=T;p++)if(S<<=1,S-=M[p],S<0)return-1;if(S>0&&(0===t||1!==m))return-1;for(N[1]=0,p=1;p<T;p++)N[p+1]=N[p]+M[p];for(y=0;y<i;y++)0!==e[r+y]&&(s[N[e[r+y]]++]=y);if(0===t?(P=L=s,g=20):1===t?(P=E,L=O,g=257):(P=C,L=k,g=0),A=0,y=0,p=v,d=a,x=b,w=0,c=-1,_=1<<b,f=_-1,1===t&&_>852||2===t&&_>592)return 1;for(;;){R=p-w,s[y]+1<g?(I=0,V=s[y]):s[y]>=g?(I=L[s[y]-g],V=P[s[y]-g]):(I=96,V=0),u=1<<p-w,l=1<<x,v=l;do{l-=u,n[d+(A>>w)+l]=R<<24|I<<16|V}while(0!==l);for(u=1<<p-1;A&u;)u>>=1;if(0!==u?(A&=u-1,A+=u):A=0,y++,0===--M[p]){if(p===m)break;p=e[r+s[y]]}if(p>b&&(A&f)!==c){for(0===w&&(w=b),d+=v,x=p-w,S=1<<x;x+w<m&&(S-=M[x+w],!(S<=0));)x++,S<<=1;if(_+=1<<x,1===t&&_>852||2===t&&_>592)return 1;c=A&f,n[c]=b<<24|x<<16|d-a}}return 0!==A&&(n[d+A]=p-w<<24|64<<16),o.bits=b,0};const{Z_FINISH:M,Z_BLOCK:N,Z_TREES:R,Z_OK:I,Z_STREAM_END:V,Z_NEED_DICT:L,Z_STREAM_ERROR:D,Z_DATA_ERROR:U,Z_MEM_ERROR:B,Z_BUF_ERROR:F,Z_DEFLATED:j}=d,z=16180,H=16190,X=16191,Y=16192,W=16194,$=16199,q=16200,G=16206,Z=16209,Q=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function K(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const J=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<z||e.mode>16211?1:0},tt=t=>{if(J(t))return D;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=z,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,I},et=t=>{if(J(t))return D;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,tt(t)},rt=(t,e)=>{let r;if(J(t))return D;const i=t.state;return e<0?(r=0,e=-e):(r=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?D:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=r,i.wbits=e,et(t))},it=(t,e)=>{if(!t)return D;const r=new K;t.state=r,r.strm=t,r.window=null,r.mode=z;const i=rt(t,e);return i!==I&&(t.state=null),i};let nt,at,st=!0;const ot=t=>{if(st){nt=new Int32Array(512),at=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(P(1,t.lens,0,288,nt,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;P(2,t.lens,0,32,at,0,t.work,{bits:5}),st=!1}t.lencode=nt,t.lenbits=9,t.distcode=at,t.distbits=5},ht=(t,e,r,i)=>{let n;const a=t.state;return null===a.window&&(a.window=new Uint8Array(1<<a.wbits)),0===a.wsize&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0),i>=a.wsize?(a.window.set(e.subarray(r-a.wsize,r),0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>i&&(n=i),a.window.set(e.subarray(r-i,r-i+n),a.wnext),(i-=n)?(a.window.set(e.subarray(r-i,r),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0};var ut={inflateReset:et,inflateReset2:rt,inflateResetKeep:tt,inflateInit:t=>it(t,15),inflateInit2:it,inflate:(t,e)=>{let r,i,n,a,s,o,h,l,f,d,g,p,y,v,m,b,x,w,S,_,T,E,O=0;const C=new Uint8Array(4);let k,K;const tt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(J(t)||!t.output||!t.input&&0!==t.avail_in)return D;r=t.state,r.mode===X&&(r.mode=Y),s=t.next_out,n=t.output,h=t.avail_out,a=t.next_in,i=t.input,o=t.avail_in,l=r.hold,f=r.bits,d=o,g=h,E=I;t:for(;;)switch(r.mode){case z:if(0===r.wrap){r.mode=Y;break}for(;f<16;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}if(2&r.wrap&&35615===l){0===r.wbits&&(r.wbits=15),r.check=0,C[0]=255&l,C[1]=l>>>8&255,r.check=c(r.check,C,2,0),l=0,f=0,r.mode=16181;break}if(r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&l)<<8)+(l>>8))%31){t.msg="incorrect header check",r.mode=Z;break}if((15&l)!==j){t.msg="unknown compression method",r.mode=Z;break}if(l>>>=4,f-=4,T=8+(15&l),0===r.wbits&&(r.wbits=T),T>15||T>r.wbits){t.msg="invalid window size",r.mode=Z;break}r.dmax=1<<r.wbits,r.flags=0,t.adler=r.check=1,r.mode=512&l?16189:X,l=0,f=0;break;case 16181:for(;f<16;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}if(r.flags=l,(255&r.flags)!==j){t.msg="unknown compression method",r.mode=Z;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=Z;break}r.head&&(r.head.text=l>>8&1),512&r.flags&&4&r.wrap&&(C[0]=255&l,C[1]=l>>>8&255,r.check=c(r.check,C,2,0)),l=0,f=0,r.mode=16182;case 16182:for(;f<32;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}r.head&&(r.head.time=l),512&r.flags&&4&r.wrap&&(C[0]=255&l,C[1]=l>>>8&255,C[2]=l>>>16&255,C[3]=l>>>24&255,r.check=c(r.check,C,4,0)),l=0,f=0,r.mode=16183;case 16183:for(;f<16;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}r.head&&(r.head.xflags=255&l,r.head.os=l>>8),512&r.flags&&4&r.wrap&&(C[0]=255&l,C[1]=l>>>8&255,r.check=c(r.check,C,2,0)),l=0,f=0,r.mode=16184;case 16184:if(1024&r.flags){for(;f<16;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}r.length=l,r.head&&(r.head.extra_len=l),512&r.flags&&4&r.wrap&&(C[0]=255&l,C[1]=l>>>8&255,r.check=c(r.check,C,2,0)),l=0,f=0}else r.head&&(r.head.extra=null);r.mode=16185;case 16185:if(1024&r.flags&&(p=r.length,p>o&&(p=o),p&&(r.head&&(T=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(i.subarray(a,a+p),T)),512&r.flags&&4&r.wrap&&(r.check=c(r.check,i,p,a)),o-=p,a+=p,r.length-=p),r.length))break t;r.length=0,r.mode=16186;case 16186:if(2048&r.flags){if(0===o)break t;p=0;do{T=i[a+p++],r.head&&T&&r.length<65536&&(r.head.name+=String.fromCharCode(T))}while(T&&p<o);if(512&r.flags&&4&r.wrap&&(r.check=c(r.check,i,p,a)),o-=p,a+=p,T)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=16187;case 16187:if(4096&r.flags){if(0===o)break t;p=0;do{T=i[a+p++],r.head&&T&&r.length<65536&&(r.head.comment+=String.fromCharCode(T))}while(T&&p<o);if(512&r.flags&&4&r.wrap&&(r.check=c(r.check,i,p,a)),o-=p,a+=p,T)break t}else r.head&&(r.head.comment=null);r.mode=16188;case 16188:if(512&r.flags){for(;f<16;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}if(4&r.wrap&&l!==(65535&r.check)){t.msg="header crc mismatch",r.mode=Z;break}l=0,f=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=X;break;case 16189:for(;f<32;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}t.adler=r.check=Q(l),l=0,f=0,r.mode=H;case H:if(0===r.havedict)return t.next_out=s,t.avail_out=h,t.next_in=a,t.avail_in=o,r.hold=l,r.bits=f,L;t.adler=r.check=1,r.mode=X;case X:if(e===N||e===R)break t;case Y:if(r.last){l>>>=7&f,f-=7&f,r.mode=G;break}for(;f<3;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}switch(r.last=1&l,l>>>=1,f-=1,3&l){case 0:r.mode=16193;break;case 1:if(ot(r),r.mode=$,e===R){l>>>=2,f-=2;break t}break;case 2:r.mode=16196;break;case 3:t.msg="invalid block type",r.mode=Z}l>>>=2,f-=2;break;case 16193:for(l>>>=7&f,f-=7&f;f<32;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}if((65535&l)!=(l>>>16^65535)){t.msg="invalid stored block lengths",r.mode=Z;break}if(r.length=65535&l,l=0,f=0,r.mode=W,e===R)break t;case W:r.mode=16195;case 16195:if(p=r.length,p){if(p>o&&(p=o),p>h&&(p=h),0===p)break t;n.set(i.subarray(a,a+p),s),o-=p,a+=p,h-=p,s+=p,r.length-=p;break}r.mode=X;break;case 16196:for(;f<14;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}if(r.nlen=257+(31&l),l>>>=5,f-=5,r.ndist=1+(31&l),l>>>=5,f-=5,r.ncode=4+(15&l),l>>>=4,f-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=Z;break}r.have=0,r.mode=16197;case 16197:for(;r.have<r.ncode;){for(;f<3;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}r.lens[tt[r.have++]]=7&l,l>>>=3,f-=3}for(;r.have<19;)r.lens[tt[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,k={bits:r.lenbits},E=P(0,r.lens,0,19,r.lencode,0,r.work,k),r.lenbits=k.bits,E){t.msg="invalid code lengths set",r.mode=Z;break}r.have=0,r.mode=16198;case 16198:for(;r.have<r.nlen+r.ndist;){for(;O=r.lencode[l&(1<<r.lenbits)-1],m=O>>>24,b=O>>>16&255,x=65535&O,!(m<=f);){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}if(x<16)l>>>=m,f-=m,r.lens[r.have++]=x;else{if(16===x){for(K=m+2;f<K;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}if(l>>>=m,f-=m,0===r.have){t.msg="invalid bit length repeat",r.mode=Z;break}T=r.lens[r.have-1],p=3+(3&l),l>>>=2,f-=2}else if(17===x){for(K=m+3;f<K;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}l>>>=m,f-=m,T=0,p=3+(7&l),l>>>=3,f-=3}else{for(K=m+7;f<K;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}l>>>=m,f-=m,T=0,p=11+(127&l),l>>>=7,f-=7}if(r.have+p>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=Z;break}for(;p--;)r.lens[r.have++]=T}}if(r.mode===Z)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=Z;break}if(r.lenbits=9,k={bits:r.lenbits},E=P(1,r.lens,0,r.nlen,r.lencode,0,r.work,k),r.lenbits=k.bits,E){t.msg="invalid literal/lengths set",r.mode=Z;break}if(r.distbits=6,r.distcode=r.distdyn,k={bits:r.distbits},E=P(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,k),r.distbits=k.bits,E){t.msg="invalid distances set",r.mode=Z;break}if(r.mode=$,e===R)break t;case $:r.mode=q;case q:if(o>=6&&h>=258){t.next_out=s,t.avail_out=h,t.next_in=a,t.avail_in=o,r.hold=l,r.bits=f,A(t,g),s=t.next_out,n=t.output,h=t.avail_out,a=t.next_in,i=t.input,o=t.avail_in,l=r.hold,f=r.bits,r.mode===X&&(r.back=-1);break}for(r.back=0;O=r.lencode[l&(1<<r.lenbits)-1],m=O>>>24,b=O>>>16&255,x=65535&O,!(m<=f);){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}if(b&&!(240&b)){for(w=m,S=b,_=x;O=r.lencode[_+((l&(1<<w+S)-1)>>w)],m=O>>>24,b=O>>>16&255,x=65535&O,!(w+m<=f);){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}l>>>=w,f-=w,r.back+=w}if(l>>>=m,f-=m,r.back+=m,r.length=x,0===b){r.mode=16205;break}if(32&b){r.back=-1,r.mode=X;break}if(64&b){t.msg="invalid literal/length code",r.mode=Z;break}r.extra=15&b,r.mode=16201;case 16201:if(r.extra){for(K=r.extra;f<K;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=16202;case 16202:for(;O=r.distcode[l&(1<<r.distbits)-1],m=O>>>24,b=O>>>16&255,x=65535&O,!(m<=f);){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}if(!(240&b)){for(w=m,S=b,_=x;O=r.distcode[_+((l&(1<<w+S)-1)>>w)],m=O>>>24,b=O>>>16&255,x=65535&O,!(w+m<=f);){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}l>>>=w,f-=w,r.back+=w}if(l>>>=m,f-=m,r.back+=m,64&b){t.msg="invalid distance code",r.mode=Z;break}r.offset=x,r.extra=15&b,r.mode=16203;case 16203:if(r.extra){for(K=r.extra;f<K;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=Z;break}r.mode=16204;case 16204:if(0===h)break t;if(p=g-h,r.offset>p){if(p=r.offset-p,p>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=Z;break}p>r.wnext?(p-=r.wnext,y=r.wsize-p):y=r.wnext-p,p>r.length&&(p=r.length),v=r.window}else v=n,y=s-r.offset,p=r.length;p>h&&(p=h),h-=p,r.length-=p;do{n[s++]=v[y++]}while(--p);0===r.length&&(r.mode=q);break;case 16205:if(0===h)break t;n[s++]=r.length,h--,r.mode=q;break;case G:if(r.wrap){for(;f<32;){if(0===o)break t;o--,l|=i[a++]<<f,f+=8}if(g-=h,t.total_out+=g,r.total+=g,4&r.wrap&&g&&(t.adler=r.check=r.flags?c(r.check,n,g,s-g):u(r.check,n,g,s-g)),g=h,4&r.wrap&&(r.flags?l:Q(l))!==r.check){t.msg="incorrect data check",r.mode=Z;break}l=0,f=0}r.mode=16207;case 16207:if(r.wrap&&r.flags){for(;f<32;){if(0===o)break t;o--,l+=i[a++]<<f,f+=8}if(4&r.wrap&&l!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=Z;break}l=0,f=0}r.mode=16208;case 16208:E=V;break t;case Z:E=U;break t;case 16210:return B;default:return D}return t.next_out=s,t.avail_out=h,t.next_in=a,t.avail_in=o,r.hold=l,r.bits=f,(r.wsize||g!==t.avail_out&&r.mode<Z&&(r.mode<G||e!==M))&&ht(t,t.output,t.next_out,g-t.avail_out),d-=t.avail_in,g-=t.avail_out,t.total_in+=d,t.total_out+=g,r.total+=g,4&r.wrap&&g&&(t.adler=r.check=r.flags?c(r.check,n,g,t.next_out-g):u(r.check,n,g,t.next_out-g)),t.data_type=r.bits+(r.last?64:0)+(r.mode===X?128:0)+(r.mode===$||r.mode===W?256:0),(0===d&&0===g||e===M)&&E===I&&(E=F),E},inflateEnd:t=>{if(J(t))return D;let e=t.state;return e.window&&(e.window=null),t.state=null,I},inflateGetHeader:(t,e)=>{if(J(t))return D;const r=t.state;return 2&r.wrap?(r.head=e,e.done=!1,I):D},inflateSetDictionary:(t,e)=>{const r=e.length;let i,n,a;
vendor: 9,087 bytes, line 1
1return J(t)?D:(i=t.state,0!==i.wrap&&i.mode!==H?D:i.mode===H&&(n=1,n=u(n,e,r,0),n!==i.check)?U:(a=ht(t,e,r,r),a?(i.mode=16210,B):(i.havedict=1,I)))},inflateInfo:"pako inflate (from Nodeca project)"};var lt=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const ct=Object.prototype.toString,{Z_NO_FLUSH:ft,Z_FINISH:dt,Z_OK:gt,Z_STREAM_END:pt,Z_NEED_DICT:yt,Z_STREAM_ERROR:vt,Z_DATA_ERROR:mt,Z_MEM_ERROR:bt,Z_BUF_ERROR:xt}=d,wt={chunkSize:65536,windowBits:15,to:""};function St(t){this.options=p({},wt,t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;let r=ut.inflateInit2(this.strm,e.windowBits);if(r!==gt)throw new Error(f[r]);if(this.header=new lt,ut.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=b(e.dictionary):"[object ArrayBuffer]"===ct.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=ut.inflateSetDictionary(this.strm,e.dictionary),r!==gt)))throw new Error(f[r])}St.prototype.push=function(t,e){const r=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let a,s,o;if(this.ended)return!1;for(s=e===~~e?e:!0===e?dt:ft,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),a=ut.inflate(r,s),a===yt&&n&&(a=ut.inflateSetDictionary(r,n),a===gt?a=ut.inflate(r,s):a===mt&&(a=yt));r.avail_in>0&&a===pt&&2&r.state.wrap&&0!==r.state.flags&&0!==r.input[r.next_in];)ut.inflateReset(r),a=ut.inflate(r,s);switch(a){case vt:case mt:case yt:case bt:return this.onEnd(a),this.ended=!0,!1}if(o=r.avail_out,r.next_out&&(0===r.avail_out||a===pt||s>0))if("string"===this.options.to){let t=w(r.output,r.next_out),e=r.next_out-t,n=x(r.output,t);r.next_out=e,r.avail_out=i-e,e&&r.output.set(r.output.subarray(t,t+e),0),this.onData(n)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out)),r.avail_out=0,r.next_out=0;if(a!==gt&&a!==xt||0!==o){if(a===pt)return a=ut.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(0===r.avail_in){if(s===dt)return a=ut.inflateEnd(this.strm),this.onEnd(a===gt?xt:a),this.ended=!0,!1;break}}}return!0},St.prototype.onData=function(t){this.chunks.push(t)},St.prototype.onEnd=function(t){t===gt&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=y(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var _t={Inflate:St,inflate:function(t,e){const r=new St(e);if(r.push(t,!0),r.err)throw r.msg||f[r.err];return r.result}};const{Inflate:At,inflate:Tt}=_t;var Et=At,Ot=Tt;const Ct=[];for(let df=0;df<256;df++){let t=df;for(let e=0;e<8;e++)1&t?t=3988292384^t>>>1:t>>>=1;Ct[df]=t}const kt=4294967295;function Pt(t,e){return(function(t,e,r){let i=t;for(let n=0;n<r;n++)i=Ct[255&(i^e[n])]^i>>>8;return i}(kt,t,e)^kt)>>>0}function Mt(t,e,r){const i=t.readUint32(),n=Pt(new Uint8Array(t.buffer,t.byteOffset+t.offset-e-4,e),e);if(n!==i)throw new Error(`CRC mismatch for chunk ${r}. Expected ${i}, found ${n}`)}function Nt(t,e,r){for(let i=0;i<r;i++)e[i]=t[i]}function Rt(t,e,r,i){let n=0;for(;n<i;n++)e[n]=t[n];for(;n<r;n++)e[n]=t[n]+e[n-i]&255}function It(t,e,r,i){let n=0;if(0===r.length)for(;n<i;n++)e[n]=t[n];else for(;n<i;n++)e[n]=t[n]+r[n]&255}function Vt(t,e,r,i,n){let a=0;if(0===r.length){for(;a<n;a++)e[a]=t[a];for(;a<i;a++)e[a]=t[a]+(e[a-n]>>1)&255}else{for(;a<n;a++)e[a]=t[a]+(r[a]>>1)&255;for(;a<i;a++)e[a]=t[a]+(e[a-n]+r[a]>>1)&255}}function Lt(t,e,r,i,n){let a=0;if(0===r.length){for(;a<n;a++)e[a]=t[a];for(;a<i;a++)e[a]=t[a]+e[a-n]&255}else{for(;a<n;a++)e[a]=t[a]+r[a]&255;for(;a<i;a++)e[a]=t[a]+Dt(e[a-n],r[a],r[a-n])&255}}function Dt(t,e,r){const i=t+e-r,n=Math.abs(i-t),a=Math.abs(i-e),s=Math.abs(i-r);return n<=a&&n<=s?t:a<=s?e:r}function Ut(t,e,r,i,n,a){switch(t){case 0:Nt(e,r,n);break;case 1:Rt(e,r,n,a);break;case 2:It(e,r,i,n);break;case 3:Vt(e,r,i,n,a);break;case 4:Lt(e,r,i,n,a);break;default:throw new Error(`Unsupported filter: ${t}`)}}const Bt=new Uint16Array([255]),Ft=255===new Uint8Array(Bt.buffer)[0];function jt(t){return(255&t)<<8|t>>8&255}const zt=new Uint16Array([255]),Ht=255===new Uint8Array(zt.buffer)[0],Xt=new Uint8Array(0);function Yt(t){const{data:e,width:r,height:i,channels:n,depth:a}=t,s=Math.ceil(a/8)*n,o=Math.ceil(a/8*n*r),h=new Uint8Array(i*o);let u,l,c=Xt,f=0;for(let d=0;d<i;d++){switch(u=e.subarray(f+1,f+1+o),l=h.subarray(d*o,(d+1)*o),e[f]){case 0:Nt(u,l,o);break;case 1:Rt(u,l,o,s);break;case 2:It(u,l,c,o);break;case 3:Vt(u,l,c,o,s);break;case 4:Lt(u,l,c,o,s);break;default:throw new Error(`Unsupported filter: ${e[f]}`)}c=l,f+=o+1}if(16===a){const t=new Uint16Array(h.buffer);if(Ht)for(let e=0;e<t.length;e++)t[e]=Wt(t[e]);return t}return h}function Wt(t){return(255&t)<<8|t>>8&255}const $t=Uint8Array.of(137,80,78,71,13,10,26,10);function qt(t){if(!function(t){if(t.length<$t.length)return!1;for(let e=0;e<$t.length;e++)if(t[e]!==$t[e])return!1;return!0}(t.readBytes($t.length)))throw new Error("wrong PNG signature")}const Gt=new TextDecoder("latin1");function Zt(t){if(function(t){if(!Qt.test(t))throw new Error("invalid latin1 text")}(t),0===t.length||t.length>79)throw new Error("keyword length must be between 1 and 79")}const Qt=/^[\u0000-\u00FF]*$/;function Kt(t,e,r){const i=Jt(e);t[i]=function(t,e){return Gt.decode(t.readBytes(e))}(e,r-i.length-1)}function Jt(t){for(t.mark();0!==t.readByte(););const e=t.offset;t.reset();const r=Gt.decode(t.readBytes(e-t.offset-1));return t.skip(1),Zt(r),r}const te=-1,ee=0,re=2,ie=3,ne=4,ae=6,se=-1,oe=0,he=-1,ue=0,le=-1,ce=0,fe=1,de=0,ge=1,pe=2,ye=0,ve=1;class me extends o{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(t,e={}){super(t);const{checkCrc:r=!1}=e;this._checkCrc=r,this._inflator=new Et,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=se,this._filterMethod=he,this._interlaceMethod=le,this._colorType=te,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(qt(this);!this._end;){const t=this.readUint32(),e=this.readChars(4);this.decodeChunk(t,e)}return this.decodeImage(),this._png}decodeApng(){for(qt(this);!this._end;){const t=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(t,e)}return this.decodeApngImage(),this._apng}decodeChunk(t,e){const r=this.offset;switch(e){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case"tEXt":Kt(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t)}if(this.offset-r!==t)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Mt(this,t+4,e):this.skip(4)}decodeApngChunk(t,e){const r=this.offset;switch("fdAT"!==e&&"IDAT"!==e&&this._writingDataChunks&&this.pushDataToFrame(),e){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,e),this.offset=r+t}if(this.offset-r!==t)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Mt(this,t+4,e):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=function(t){if(1!==t&&2!==t&&4!==t&&8!==t&&16!==t)throw new Error(`invalid bit depth: ${t}`);return t}(this.readUint8());const e=this.readUint8();let r;switch(this._colorType=e,e){case ee:r=1;break;case re:r=3;break;case ie:r=1;break;case ne:r=2;break;case ae:r=4;break;default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==oe)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}
vendor: 1,261 bytes, line 1
1decodePLTE(t){if(t%3!=0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const e=t/3;this._hasPalette=!0;const r=[];this._palette=r;for(let i=0;i<e;i++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const e=t,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let e=t,r=this.offset+this.byteOffset;if(r+=4,e-=4,this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case ee:case re:if(t%2!=0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let e=0;e<t/2;e++)this._transparency[e]=this.readUint16();break;case ie:{if(t>this._palette.length)throw new Error(`tRNS chunk contains more alph
1a values than there are palette colors (${t} vs ${this._palette.length})`);let e=0;for(;e<t;e++){const t=this.readByte();this._palette[e].push(t)}for(;e<this._palette.length;e++)this._palette[e].push(255);break}default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const e=Jt(this),r=this.readUint8();if(r!==oe)throw new Error(`Unsupported iCCP compression method: ${r}`);const i=this.readBytes(t-e.length-2);this._png.iccEmbeddedProfile={name:e,profile:Ot(i)}}decodepHYs(){const t=this.readUint32(),e=this.readUint32(),r=this.readByte();this._png.resolution={x:t,y:e,unit:r}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let t=0;t<this._numberOfFrames;t++){const e={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].delayDenominator,data:8===this._apng.depth?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},r=this._frames.at(t);if(r){if(r.data=Yt({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),0===t||0===r.xOffset&&0===r.yOffset&&r.width===this._png.width&&r.height===this._png.height)e.data=r.data;else{const i=this._apng.frames.at(t-1);this.disposeFrame(r,i,e),this.addFrameDataToCanvas(e,r)}this._apng.frames.push(e)}}return this._apng}disposeFrame(t,e,r){switch(t.disposeOp){case de:break;case ge:for(let e=0;e<this._png.height;e++)for(let i=0;i<this._png.width;i++){const n=(e*t.width+i)*this._png.channels;for(let t=0;t<this._png.channels;t++)r.data[n+t]=0}break;case pe:r.data.set(e.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(t,e){const r=1<<this._png.depth,i=(t,r)=>({index:((t+e.yOffset)*this._png.width+e.xOffset+r)*this._png.channels,frameIndex:(t*e.width+r)*this._png.channels});switch(e.blendOp){case ye:for(let r=0;r<e.height;r++)for(let n=0;n<e.width;n++){const{index:a,frameIndex:s}=i(r,n);for(let r=0;r<this._png.channels;r++)t.data[a+r]=e.data[s+r]}break;case ve:for(let n=0;n<e.height;n++)for(let a=0;a<e.width;a++){const{index:s,frameIndex:o}=i(n,a);for(let i=0;i<this._png.channels;i++){const n=e.data[o+this._png.channels-1]/r,a=i%(this._png.channels-1)==0?1:e.data[o+i],h=Math.floor(n*a+(1-n)*t.data[s+i]);t.data[s+i]+=h}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const t=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==ue)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===ce)this._png.data=Yt({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else{if(this._interlaceMethod!==fe)throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._png.data=function(t){const{data:e,width:r,height:i,channels:n,depth:a}=t,s=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],o=Math.ceil(a/8)*n,h=new Uint8Array(i*r*o);let u=0;for(let l=0;l<7;l++){const t=s[l],n=Math.ceil((r-t.x)/t.xStep),a=Math.ceil((i-t.y)/t.yStep);if(n<=0||a<=0)continue;const c=n*o,f=new Uint8Array(c);for(let s=0;s<a;s++){const a=e[u++],l=e.subarray(u,u+c);u+=c;const d=new Uint8Array(c);Ut(a,l,d,f,c,o),f.set(d);for(let e=0;e<n;e++){const n=t.x+e*t.xStep,a=t.y+s*t.yStep;if(!(n>=r||a>=i))for(let t=0;t<o;t++)h[(a*r+n)*o+t]=d[e*o+t]}}}if(16===a){const t=new Uint16Array(h.buffer);if(Ft)for(let e=0;e<t.length;e++)t[e]=jt(t[e]);return t}return h}({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth})}this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const t=this._inflator.result,e=this._frames.at(-1);e?e.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:de,blendOp:ye,data:t}),this._inflator=new Et,this._writingDataChunks=!1}}var be,xe;function we(t,e){return new me(t,e).decode()}(xe=be||(be={}))[xe.UNKNOWN=0]="UNKNOWN",xe[xe.METRE=1]="METRE";var Se,_e,Ae={};function Te(){if(_e)return Se;_e=1;var e=function(t){return t&&t.Math===Math&&t};return Se=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||e("object"==typeof Se&&Se)||function(){return this}()||Function("return this")()}var Ee,Oe,Ce,ke,Pe,Me,Ne,Re,Ie={};function Ve(){return Oe?Ee:(Oe=1,Ee=function(t){try{return!!t()}catch(e){return!0}})}function Le(){if(ke)return Ce;ke=1;var t=Ve();return Ce=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}}
vendor: 5,025 bytes, line 1
1)[1]})}function De(){if(Me)return Pe;Me=1;var t=Ve();return Pe=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function Ue(){if(Re)return Ne;Re=1;var t=De(),e=Function.prototype.call;return Ne=t?e.bind(e):function(){return e.apply(e,arguments)},Ne}var Be,Fe,je,ze,He,Xe,Ye,We,$e,qe,Ge,Ze,Qe,Ke,Je,tr,er,rr,ir,nr,ar,sr,or,hr,ur,lr,cr,fr,dr,gr,pr,yr,vr,mr,br,xr,wr,Sr,_r,Ar,Tr,Er={};function Or(){return je?Fe:(je=1,Fe=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function Cr(){if(He)return ze;He=1;var t=De(),e=Function.prototype,r=e.call,i=t&&e.bind.bind(r,r);return ze=t?i:function(t){return function(){return r.apply(t,arguments)}},ze}function kr(){if(Ye)return Xe;Ye=1;var t=Cr(),e=t({}.toString),r=t("".slice);return Xe=function(t){return r(e(t),8,-1)}}function Pr(){if($e)return We;$e=1;var t=Cr(),e=Ve(),r=kr(),i=Object,n=t("".split);return We=e(function(){return!i("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?n(t,""):i(t)}:i}function Mr(){return Ge?qe:(Ge=1,qe=function(t){return null==t})}function Nr(){if(Qe)return Ze;Qe=1;var t=Mr(),e=TypeError;return Ze=function(r){if(t(r))throw new e("Can't call method on "+r);return r}}function Rr(){if(Je)return Ke;Je=1;var t=Pr(),e=Nr();return Ke=function(r){return t(e(r))}}function Ir(){if(er)return tr;er=1;var t="object"==typeof document&&document.all;return tr=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function Vr(){if(ir)return rr;ir=1;var t=Ir();return rr=function(e){return"object"==typeof e?null!==e:t(e)}}function Lr(){if(ar)return nr;ar=1;var t=Te(),e=Ir();return nr=function(r,i){return arguments.length<2?(n=t[r],e(n)?n:void 0):t[r]&&t[r][i];var n},nr}function Dr(){if(or)return sr;or=1;var t=Cr();return sr=t({}.isPrototypeOf)}function Ur(){if(ur)return hr;ur=1;var t=Te().navigator,e=t&&t.userAgent;return hr=e?String(e):""}function Br(){if(cr)return lr;cr=1;var t,e,r=Te(),i=Ur(),n=r.process,a=r.Deno,s=n&&n.versions||a&&a.version,o=s&&s.v8;return o&&(e=(t=o.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&i&&(!(t=i.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=i.match(/Chrome\/(\d+)/))&&(e=+t[1]),lr=e}function Fr(){if(dr)return fr;dr=1;var t=Br(),e=Ve(),r=Te().String;return fr=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function jr(){if(pr)return gr;pr=1;var t=Fr();return gr=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function zr(){if(vr)return yr;vr=1;var t=Lr(),e=Ir(),r=Dr(),i=jr(),n=Object;return yr=i?function(t){return"symbol"==typeof t}:function(i){var a=t("Symbol");return e(a)&&r(a.prototype,n(i))}}function Hr(){if(br)return mr;br=1;var t=String;return mr=function(e){try{return t(e)}catch(r){return"Object"}}}function Xr(){if(wr)return xr;wr=1;var t=Ir(),e=Hr(),r=TypeError;return xr=function(i){if(t(i))return i;throw new r(e(i)+" is not a function")}}function Yr(){if(_r)return Sr;_r=1;var t=Xr(),e=Mr();return Sr=function(r,i){var n=r[i];return e(n)?void 0:t(n)}}var Wr,$r,qr,Gr,Zr,Qr,Kr,Jr,ti,ei,ri,ii,ni,ai,si,oi,hi,ui,li,ci,fi,di,gi,pi,yi={exports:{}};function vi(){return $r?Wr:($r=1,Wr=!1)}function mi(){if(Gr)return qr;Gr=1;var t=Te(),e=Object.defineProperty;return qr=function(r,i){try{e(t,r,{value:i,configurable:!0,writable:!0})}catch(n){t[r]=i}return i}}function bi(){if(Zr)return yi.exports;Zr=1;var t=vi(),e=Te(),r=mi(),i="__core-js_shared__",n=yi.exports=e[i]||r(i,{});return(n.versions||(n.versions=[])).push({version:"3.50.0",mode:t?"pure":"global",copyright:"© 2013â2025 Denis Pushkarev (zloirock.ru), 2025â2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"}),yi.exports}function xi(){if(Kr)return Qr;Kr=1;var t=bi(),e=Object.create||Object;return Qr=function(r,i){return t[r]||(t[r]=i||e(null))}}function wi(){if(ti)return Jr;ti=1;var t=Nr(),e=Object;return Jr=function(r){return e(t(r))}}function Si(){if(ri)return ei;ri=1;var t=Cr(),e=wi(),r=t({}.hasOwnProperty);return ei=Object.hasOwn||function(t,i){return r(e(t),i)}}function _i(){if(ni)return ii;ni=1;var t=Cr(),e=0,r=Math.random(),i=t(1.1.toString);return ii=function(t){return"Symbol("+(void 0===t?"":t)+")_"+i(++e+r,36)}}function Ai(){if(si)return ai;si=1;var t=Te(),e=xi(),r=Si(),i=_i(),n=Fr(),a=jr(),s=t.Symbol,o=e("wks"),h=a?s.for||s:s&&s.withoutSetter||i;return ai=function(t){return r(o,t)||(o[t]=n&&r(s,t)?s[t]:h("Symbol."+t)),o[t]}}function Ti(){if(hi)return oi;hi=1;var t=Ue(),e=Vr(),r=zr(),i=Yr(),n=function(){if(Tr)return Ar;Tr=1;var t=Ue(),e=Ir(),r=Vr(),i=TypeError;return Ar=function(n,a){var s,o;if("string"===a&&e(s=n.toString)&&!r(o=t(s,n)))return o;if(e(s=n.valueOf)&&!r(o=t(s,n)))return o;if("string"!==a&&e(s=n.toString)&&!r(o=t(s,n)))return o;throw new i("Can't convert object to primitive value")}}(),a=Ai(),s=TypeError,o=a("toPrimitive");
vendor: 4,877 bytes, line 1
1return oi=function(a,h){if(!e(a)||r(a))return a;var u,l=i(a,o);if(l){if(void 0===h&&(h="default"),u=t(l,a,h),!e(u)||r(u))return u;throw new s("Can't convert object to primitive value")}return void 0===h&&(h="number"),n(a,h)}}function Ei(){if(li)return ui;li=1;var t=Ti(),e=zr();return ui=function(r){var i=t(r,"string");return e(i)?i:i+""}}function Oi(){if(fi)return ci;fi=1;var t=Te(),e=Vr(),r=t.document,i=e(r)&&e(r.createElement);return ci=function(t){return i?r.createElement(t):{}}}function Ci(){if(gi)return di;gi=1;var t=Le(),e=Ve(),r=Oi();return di=!t&&!e(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function ki(){if(pi)return Ie;pi=1;var t=Le(),e=Ue(),r=function(){if(Be)return Er;Be=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return Er.f=r?function(t){var r=e(this,t);return!!r&&r.enumerable}:t,Er}(),i=Or(),n=Rr(),a=Ei(),s=Si(),o=Ci(),h=Object.getOwnPropertyDescriptor;return Ie.f=t?h:function(t,u){if(t=n(t),u=a(u),o)try{return h(t,u)}catch(l){}if(s(t,u))return i(!e(r.f,t,u),t[u])},Ie}var Pi,Mi,Ni,Ri,Ii,Vi,Li,Di={};function Ui(){if(Mi)return Pi;Mi=1;var t=Le(),e=Ve();return Pi=t&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Bi(){if(Ri)return Ni;Ri=1;var t=Vr(),e=String,r=TypeError;return Ni=function(i){if(t(i))return i;throw new r(e(i)+" is not an object")}}function Fi(){if(Ii)return Di;Ii=1;var t=Le(),e=Ci(),r=Ui(),i=Bi(),n=Ei(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,h="enumerable",u="configurable",l="writable";return Di.f=t?r?function(t,e,r){if(i(t),e=n(e),i(r),"function"==typeof t&&"prototype"===e&&"value"in r&&l in r&&!r[l]){var a=o(t,e);a&&a[l]&&(t[e]=r.value,r={configurable:u in r?r[u]:a[u],enumerable:h in r?r[h]:a[h],writable:!1})}return s(t,e,r)}:s:function(t,r,o){if(i(t),r=n(r),i(o),e)try{return s(t,r,o)}catch(h){}if("get"in o||"set"in o)throw new a("Accessors not supported");return"value"in o&&(t[r]=o.value),t},Di}function ji(){if(Li)return Vi;Li=1;var t=Le(),e=Fi(),r=Or();return Vi=t?function(t,i,n){return e.f(t,i,r(1,n))}:function(t,e,r){return t[e]=r,t}}var zi,Hi,Xi,Yi,Wi,$i,qi,Gi,Zi,Qi,Ki,Ji,tn,en,rn,nn={exports:{}};function an(){if(Hi)return zi;Hi=1;var t=Le(),e=Si(),r=Function.prototype,i=t&&Object.getOwnPropertyDescriptor,n=e(r,"name"),a=n&&"something"===function(){}.name,s=n&&(!t||t&&i(r,"name").configurable);return zi={EXISTS:n,PROPER:a,CONFIGURABLE:s}}function sn(){if(Yi)return Xi;Yi=1;var t=Cr(),e=Ir(),r=bi(),i=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(t){return i(t)}),Xi=r.inspectSource}function on(){if(Gi)return qi;Gi=1;var t=xi(),e=_i(),r=t("keys");return qi=function(t){return r[t]||(r[t]=e(t))}}function hn(){return Qi?Zi:(Qi=1,Zi={})}function un(){if(Ji)return Ki;Ji=1;var t,e,r,i=function(){if($i)return Wi;$i=1;var t=Te(),e=Ir(),r=t.WeakMap;return Wi=e(r)&&/native code/.test(String(r))}(),n=Te(),a=Vr(),s=ji(),o=Si(),h=bi(),u=on(),l=hn(),c="Object already initialized",f=n.TypeError,d=n.WeakMap;if(i||h.state){var g=h.state||(h.state=new d);g.get=g.get,g.has=g.has,g.set=g.set,t=function(t,e){if(g.has(t))throw new f(c);return e.facade=t,g.set(t,e),e},e=function(t){return g.get(t)||{}},r=function(t){return g.has(t)}}else{var p=u("state");l[p]=!0,t=function(t,e){if(o(t,p))throw new f(c);return e.facade=t,s(t,p,e),e},e=function(t){return o(t,p)?t[p]:{}},r=function(t){return o(t,p)}}return Ki={set:t,get:e,has:r,enforce:function(i){return r(i)?e(i):t(i,{})},getterFor:function(t){return function(r){var i;if(!a(r)||(i=e(r)).type!==t)throw new f("Incompatible receiver, "+t+" required");return i}}}}function ln(){if(tn)return nn.exports;tn=1;var t=Cr(),e=Ve(),r=Ir(),i=Si(),n=Le(),a=an().CONFIGURABLE,s=sn(),o=un(),h=o.enforce,u=o.get,l=String,c=Object.defineProperty,f=t("".slice),d=t("".replace),g=t([].join),p=n&&!e(function(){return 8!==c(function(){},"length",{value:8}).length}),y=String(String).split("String"),v=nn.exports=function(t,e,r){"Symbol("===f(l(e),0,7)&&(e="["+d(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!i(t,"name")||a&&t.name!==e)&&(n?c(t,"name",{value:e,configurable:!0}):t.name=e),p&&r&&i(r,"arity")&&t.length!==r.arity&&c(t,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?n&&c(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var s=h(t);return i(s,"source")||(s.source=g(y,"string"==typeof e?e:"")),t};return Function.prototype.toString=v(function(){return r(this)&&u(this).source||s(this)},"toString"),nn.exports}function cn(){if(rn)return en;rn=1;var t=Ir(),e=Fi(),r=ln(),i=mi();return en=function(n,a,s,o){o||(o={});var h=o.enumerable,u=void 0!==o.name?o.name:a;if(t(s)&&r(s,u,o),o.global)h?n[a]=s:i(a,s);else{try{o.unsafe?n[a]&&(h=!0):delete n[a]}catch(l){}
vendor: 23,697 bytes, line 1
1h?n[a]=s:e.f(n,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return n}}var fn,dn,gn,pn,yn,vn,mn,bn,xn,wn,Sn,_n,An,Tn,En,On,Cn,kn={};function Pn(){if(pn)return gn;pn=1;var t=function(){if(dn)return fn;dn=1;var t=Math.ceil,e=Math.floor;return fn=Math.trunc||function(r){var i=+r;return(i>0?e:t)(i)}}();return gn=function(e){var r=+e;return r!=r||0===r?0:t(r)}}function Mn(){if(bn)return mn;bn=1;var t=Pn(),e=Math.min;return mn=function(r){var i=t(r);return i>0?e(i,9007199254740991):0}}function Nn(){if(wn)return xn;wn=1;var t=Mn();return xn=function(e){return t(e.length)}}function Rn(){if(_n)return Sn;_n=1;var t=Rr(),e=function(){if(vn)return yn;vn=1;var t=Pn(),e=Math.max,r=Math.min;return yn=function(i,n){var a=t(i);return a<0?e(a+n,0):r(a,n)}}(),r=Nn(),i=function(i){return function(n,a,s){var o=t(n),h=r(o);if(0===h)return!i&&-1;var u,l=e(s,h);if(i&&a!=a){for(;h>l;)if((u=o[l++])!=u)return!0}else for(;h>l;l++)if((i||l in o)&&o[l]===a)return i||l||0;return!i&&-1}};return Sn={includes:i(!0),indexOf:i(!1)}}function In(){if(Tn)return An;Tn=1;var t=Cr(),e=Si(),r=Rr(),i=Rn().indexOf,n=hn(),a=t([].push);return An=function(t,s){var o,h=r(t),u=0,l=[];for(o in h)!e(n,o)&&e(h,o)&&a(l,o);for(;s.length>u;)e(h,o=s[u++])&&(~i(l,o)||a(l,o));return l}}function Vn(){return On?En:(On=1,En=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Ln,Dn,Un,Bn,Fn,jn,zn,Hn,Xn,Yn,Wn,$n,qn,Gn,Zn,Qn,Kn,Jn,ta,ea,ra,ia,na,aa,sa,oa,ha,ua,la,ca,fa,da,ga,pa,ya,va,ma,ba,xa,wa,Sa,_a,Aa,Ta,Ea,Oa,Ca,ka,Pa,Ma,Na,Ra,Ia,Va,La,Da,Ua,Ba,Fa,ja,za,Ha,Xa,Ya,Wa,$a,qa,Ga,Za,Qa,Ka,Ja,ts,es,rs,is={};function ns(){if(Un)return Dn;Un=1;var t=Lr(),e=Cr(),r=function(){if(Cn)return kn;Cn=1;var t=In(),e=Vn().concat("length","prototype");return kn.f=Object.getOwnPropertyNames||function(r){return t(r,e)},kn}(),i=(Ln||(Ln=1,is.f=Object.getOwnPropertySymbols),is),n=Bi(),a=e([].concat);return Dn=t("Reflect","ownKeys")||function(t){var e=r.f(n(t)),s=i.f;return s?a(e,s(t)):e}}function as(){if(zn)return jn;zn=1;var t=Ve(),e=Ir(),r=/#|\.prototype\./,i=function(r,i){var h=a[n(r)];return h===o||h!==s&&(e(i)?t(i):!!i)},n=i.normalize=function(t){return String(t).replace(r,".").toLowerCase()},a=i.data={},s=i.NATIVE="N",o=i.POLYFILL="P";return jn=i}function ss(){if(Xn)return Hn;Xn=1;var t=Te(),e=ki().f,r=ji(),i=cn(),n=mi(),a=function(){if(Fn)return Bn;Fn=1;var t=Si(),e=ns(),r=ki(),i=Fi();return Bn=function(n,a,s){for(var o=e(a),h=i.f,u=r.f,l=0;l<o.length;l++){var c=o[l];t(n,c)||s&&t(s,c)||h(n,c,u(a,c))}}}(),s=as();return Hn=function(o,h){var u,l,c,f,d,g=o.target,p=o.global,y=o.stat;if(u=p?t:y?t[g]||n(g,{}):t[g]&&t[g].prototype)for(l in h){if(f=h[l],c=o.dontCallGetSet?(d=e(u,l))&&d.value:u[l],!s(p?l:g+(y?".":"#")+l,o.forced)&&void 0!==c){if(typeof f==typeof c)continue;a(f,c)}(o.sham||c&&c.sham)&&r(f,"sham",!0),i(u,l,f,o)}}}function os(){if(Wn)return Yn;Wn=1;var t=Te(),e=Ur(),r=kr(),i=function(t){return e.slice(0,t.length)===t};return Yn=i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function hs(){if(qn)return $n;qn=1;var t=os();return $n="NODE"===t}function us(){if(ra)return ea;ra=1;var t=function(){if(ta)return Jn;ta=1;var t=Vr();return Jn=function(e){return t(e)||null===e}}(),e=String,r=TypeError;return ea=function(i){if(t(i))return i;throw new r("Can't set "+e(i)+" as a prototype")}}function ls(){if(na)return ia;na=1;var t=function(){if(Kn)return Qn;Kn=1;var t=Cr(),e=Xr();return Qn=function(r,i,n){try{return t(e(Object.getOwnPropertyDescriptor(r,i)[n]))}catch(a){}}}(),e=Vr(),r=Nr(),i=us();return ia=Object.setPrototypeOf||("__proto__"in{}?function(){var n,a=!1,s={};try{(n=t(Object.prototype,"__proto__","set"))(s,[]),a=s instanceof Array}catch(o){}return function(t,s){return r(t),i(s),e(t)?(a?n(t,s):t.__proto__=s,t):t}}():void 0)}function cs(){if(sa)return aa;sa=1;var t=Fi().f,e=Si(),r=Ai()("toStringTag");return aa=function(i,n,a){i&&!a&&(i=i.prototype),i&&!e(i,r)&&t(i,r,{configurable:!0,value:n})}}function fs(){if(la)return ua;la=1;var t=Lr(),e=function(){if(ha)return oa;ha=1;var t=ln(),e=Fi();return oa=function(r,i,n){return n.get&&t(n.get,i,{getter:!0}),n.set&&t(n.set,i,{setter:!0}),e.f(r,i,n)}}(),r=Ai(),i=Le(),n=r("species");return ua=function(r){var a=t(r);i&&a&&!a[n]&&e(a,n,{configurable:!0,get:function(){return this}})}}function ds(){if(ya)return pa;ya=1;var t=function(){if(ga)return da;ga=1;var t={};return t[Ai()("toStringTag")]="z",da="[object z]"===String(t)}(),e=Ir(),r=kr(),i=Ai()("toStringTag"),n=Object,a="Arguments"===r(function(){return arguments}());return pa=t?r:function(t){var s,o,h;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=function(t,e){try{return t[e]}catch(r){}}(s=n(t),i))?o:a?r(s):"Object"===(h=r(s))&&e(s.callee)?"Arguments":h}}function gs(){if(xa)return ba;xa=1;var t=function(){if(ma)return va;ma=1;var t=Cr(),e=Ve(),r=Ir(),i=ds(),n=Lr(),a=sn(),s=function(){},o=n("Reflect","construct"),h=/^\s*(?:class|function)\b/,u=t(h.exec),l=!h.test(s),c=function(t){if(!r(t))return!1;try{return o(s,[],t),!0}catch(e){return!1}},f=function(t){if(!r(t))return!1;switch(i(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!u(h,a(t))}catch(e){return!0}};return f.sham=!0,va=!o||e(function(){var t;return c(c.call)||!c(Object)||!c(function(){t=!0})||t})?f:c}(),e=Hr(),r=TypeError;return ba=function(i){if(t(i))return i;throw new r(e(i)+" is not a constructor")}}function ps(){if(Sa)return wa;Sa=1;var t=Bi(),e=gs(),r=Mr(),i=Ai()("species");return wa=function(n,a){var s,o=t(n).constructor;return void 0===o||r(s=t(o)[i])?a:e(s)}}function ys(){if(Aa)return _a;Aa=1;var t=De(),e=Function.prototype,r=e.apply,i=e.call;return _a="object"==typeof Reflect&&Reflect.apply||(t?i.bind(r):function(){return i.apply(r,arguments)}),_a}function vs(){if(Ea)return Ta;Ea=1;var t=kr(),e=Cr();return Ta=function(r){if("Function"===t(r))return e(r)}}function ms(){if(Ca)return Oa;Ca=1;var t=vs(),e=Xr(),r=De(),i=t(t.bind);return Oa=function(t,n){return e(t),void 0===n?t:r?i(t,n):function(){return t.apply(n,arguments)}},Oa}function bs(){if(Pa)return ka;Pa=1;var t=Lr();return ka=t("document","documentElement")}function xs(){if(La)return Va;La=1;var t=Ur();return Va=/ipad|iphone|ipod/i.test(t)&&/applewebkit/i.test(t)}function ws(){if(Ua)return Da;Ua=1;var t,e,r,i,n=Te(),a=ys(),s=ms(),o=Ir(),h=Si(),u=Ve(),l=bs(),c=function(){if(Na)return Ma;Na=1;var t=Cr();return Ma=t([].slice)}(),f=Oi(),d=function(){if(Ia)return Ra;Ia=1;var t=TypeError;return Ra=function(e,r){if(e<r)throw new t("Not enough arguments");return e}}(),g=xs(),p=hs(),y=n.setImmediate,v=n.clearImmediate,m=n.process,b=n.Dispatch,x=n.Function,w=n.MessageChannel,S=n.String,_=0,A={},T="onreadystatechange";u(function(){t=n.location});var E=function(t){if(h(A,t)){var e=A[t];delete A[t],e()}},O=function(t){return function(){E(t)}},C=function(t){E(t.data)},k=function(e){n.postMessage(S(e),t.protocol+"//"+t.host)};return y&&v||(y=function(t){d(arguments.length,1);var r=o(t)?t:x(t),i=c(arguments,1);return A[++_]=function(){a(r,void 0,i)},e(_),_},v=function(t){delete A[t]},p?e=function(t){m.nextTick(O(t))}:b&&b.now?e=function(t){b.now(O(t))}:w&&!g?(i=(r=new w).port2,r.port1.onmessage=C,e=s(i.postMessage,i)):n.addEventListener&&o(n.postMessage)&&!n.importScripts&&t&&"file:"!==t.protocol&&!u(k)?(e=k,n.addEventListener("message",C,!1)):e=T in f("script")?function(t){l.appendChild(f("script"))[T]=function(){l.removeChild(this),E(t)}}:function(t){setTimeout(O(t),0)}),Da={set:y,clear:v}}function Ss(){if(za)return ja;za=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},ja=t}function _s(){if(qa)return $a;qa=1;var t,e,r,i,n,a=Te(),s=function(){if(Fa)return Ba;Fa=1;var t=Te(),e=Le(),r=Object.getOwnPropertyDescriptor;return Ba=function(i){if(!e)return t[i];var n=r(t,i);return n&&n.value}}(),o=ms(),h=ws().set,u=Ss(),l=xs(),c=function(){if(Xa)return Ha;Xa=1;var t=Ur();return Ha=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),f=function(){if(Wa)return Ya;Wa=1;var t=Ur();return Ya=/web0s(?!.*chrome)/i.test(t)}(),d=hs(),g=a.MutationObserver||a.WebKitMutationObserver,p=a.document,y=a.process,v=a.Promise,m=s("queueMicrotask");if(!m){var b=new u,x=function(){var e,r;for(d&&(e=y.domain)&&e.exit();r=b.get();)try{r()}catch(i){throw b.head&&t(),i}e&&e.enter()};l||d||f||!g||!p?!c&&v&&v.resolve?((i=v.resolve(void 0)).constructor=v,n=o(i.then,i),t=function(){n(x)}):d?t=function(){y.nextTick(x)}:(h=o(h,a),t=function(){h(x)}):(e=!0,r=p.createTextNode(""),new g(x).observe(r,{characterData:!0}),t=function(){r.data=e=!e}),m=function(e){b.head||t(),b.add(e)}}return $a=m}function As(){return Ka?Qa:(Ka=1,Qa=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}})}function Ts(){if(ts)return Ja;ts=1;var t=Te();return Ja=t.Promise}function Es(){if(rs)return es;rs=1;var t=Te(),e=Ts(),r=Ir(),i=as(),n=sn(),a=Ai(),s=os(),o=vi(),h=Br(),u=e&&e.prototype,l=a("species"),c=!1,f=r(t.PromiseRejectionEvent),d=i("Promise",function(){var t=n(e),r=t!==String(e);if(!r&&66===h)return!0;if(o&&(!u.catch||!u.finally))return!0;if(!h||h<51||!/native code/.test(t)){var i=new e(function(t){t(1)}),a=function(t){t(function(){},function(){})};if((i.constructor={})[l]=a,!(c=i.then(function(){})instanceof a))return!0}return!(r||"BROWSER"!==s&&"DENO"!==s||f)});return es={CONSTRUCTOR:d,REJECTION_EVENT:f,SUBCLASSING:c}}var Os,Cs,ks={};function Ps(){if(Os)return ks;Os=1;var t=Xr(),e=TypeError,r=function(r){var i,n;this.promise=new r(function(t,r){if(void 0!==i||void 0!==n)throw new e("Bad Promise constructor");i=t,n=r}),this.resolve=t(i),this.reject=t(n)};return ks.f=function(t){return new r(t)},ks}function Ms(){if(Cs)return Ae;Cs=1;var t,e,r,i,n=ss(),a=vi(),s=hs(),o=Te(),h=function(){if(Zn)return Gn;Zn=1;var t=Te();return Gn=t}(),u=Ue(),l=cn(),c=ls(),f=cs(),d=fs(),g=Xr(),p=Ir(),y=Vr(),v=function(){if(fa)return ca;fa=1;var t=Dr(),e=TypeError;return ca=function(r,i){if(t(i,r))return r;throw new e("Incorrect invocation")}}(),m=ps(),b=ws().set,x=_s(),w=Za?Ga:(Za=1,Ga=function(t,e){}),S=As(),_=Ss(),A=un(),T=Ts(),E=Es(),O=Ps(),C="Promise",k=E.CONSTRUCTOR,P=E.REJECTION_EVENT,M=E.SUBCLASSING,N=A.getterFor(C),R=A.set,I=T&&T.prototype,V=T,L=I,D=o.TypeError,U=o.document,B=o.process,F=O.f,j=F,z=!!(U&&U.createEvent&&o.dispatchEvent),H="unhandledrejection",X=function(t){var e;return!(!y(t)||!p(e=t.then))&&e},Y=function(t,e){var r,i,n,a=e.value,s=1===e.state,o=s?t.ok:t.fail,h=t.resolve,l=t.reject,c=t.domain;try{o?(s||(2===e.rejection&&Z(e),e.rejection=1),!0===o?r=a:(c&&c.enter(),r=o(a),c&&(c.exit(),n=!0)),r===t.promise?l(new D("Promise-chain cycle")):(i=X(r))?u(i,r,h,l):h(r)):l(a)}catch(f){c&&!n&&c.exit(),l(f)}},W=function(t,e){t.notified||(t.notified=!0,x(function(){for(var r,i=t.reactions;r=i.get();)Y(r,t);t.notified=!1,e&&!t.rejection&&q(t)}))},$=function(t,e,r){var i,n;z?((i=U.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),o.dispatchEvent(i)):i={promise:e,reason:r},!P&&(n=o["on"+t])?n(i):t===H&&w("Unhandled promise rejection",r)},q=function(t){u(b,o,function(){var e,r=t.facade,i=t.value;if(G(t)&&(e=S(function(){s?B.emit("unhandledRejection",i,r):$(H,r,i)}),t.rejection=s||G(t)?2:1,e.error))throw e.value})},G=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){u(b,o,function(){var e=t.facade;s?B.emit("rejectionHandled",e):$("rejectionhandled",e,t.value)})},Q=function(t,e,r){return function(i){t(e,i,r)}},K=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,W(t,!0))},J=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new D("Promise can't be resolved itself");var i=X(e);i?x(function(){var r={done:!1};try{u(i,e,Q(J,r,t),Q(K,r,t))}catch(n){K(r,n,t)}}):(t.value=e,t.state=1,W(t,!1))}catch(n){K({done:!1},n,t)}}};if(k&&(L=(V=function(e){v(this,L),g(e),u(t,this);var r=N(this);try{e(Q(J,r),Q(K,r))}catch(i){K(r,i)}}).prototype,(t=function(t){R(this,{type:C,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:null})}).prototype=l(L,"then",function(t,e){var r=N(this),i=F(m(this,V));return r.parent=!0,i.ok=!p(t)||t,i.fail=p(e)&&e,i.domain=s?B.domain:void 0,0===r.state?r.reactions.add(i):x(function(){Y(i,r)}),i.promise}),e=function(){var e=new t,r=N(e);this.promise=e,this.resolve=Q(J,r),this.reject=Q(K,r)},O.f=F=function(t){return t===V||t===r?new e(t):j(t)},!a&&p(T)&&I!==Object.prototype)){i=I.then,M||l(I,"then",function(t,e){var r=this;return new V(function(t,e){u(i,r,t,e)}).then(t,e)},{unsafe:!0});try{delete I.constructor}catch(tt){}c&&c(I,L)}return n({global:!0,constructor:!0,wrap:!0,forced:k},{Promise:V}),r=h.Promise,f(V,C,!1,!0),d(C),Ae}var Ns,Rs,Is,Vs,Ls,Ds,Us,Bs,Fs,js,zs,Hs,Xs,Ys,Ws,$s,qs,Gs={};function Zs(){return Rs?Ns:(Rs=1,Ns=Object.create?Object.create(null):{})}function Qs(){if(Ds)return Ls;Ds=1;var t=kr(),e=Mr(),r=Yr(),i=Ai()("iterator"),n=Array.prototype;return Ls=function(a){if(!e(a))return r(a,i)||r(a,"@@iterator")||("Arguments"===t(a)?n[i]:void 0)}}function Ks(){if(Hs)return zs;Hs=1;var t=ms(),e=Ue(),r=Bi(),i=Hr(),n=function(){if(Vs)return Is;Vs=1;var t=Ai(),e=Zs(),r=t("iterator"),i=Array.prototype;return Is=function(t){return void 0!==t&&(e.Array===t||i[r]===t)}}(),a=Nn(),s=Dr(),o=function(){if(Bs)return Us;Bs=1;var t=Ue(),e=Ir(),r=Bi(),i=Hr(),n=Qs(),a=TypeError;return Us=function(s,o){var h=arguments.length<2?n(s):o;if(e(h))return r(t(h,s));throw new a(i(s)+" is not iterable")},Us}(),h=Qs(),u=function(){if(js)return Fs;js=1;var t=Ue(),e=Bi(),r=Yr();return Fs=function(i,n,a){var s,o;e(i);try{if(!(s=r(i,"return"))){if("throw"===n)throw a;return a}s=t(s,i)}catch(h){o=!0,s=h}if("throw"===n)throw a;if(o)throw s;return e(s),a}}(),l=TypeError,c=function(t,e){this.stopped=t,this.result=e},f=c.prototype;return zs=function(d,g,p){var y,v,m,b,x,w,S,_=p&&p.that,A=!(!p||!p.AS_ENTRIES),T=!(!p||!p.IS_RECORD),E=!(!p||!p.IS_ITERATOR),O=!(!p||!p.INTERRUPTED),C=t(g,_),k=function(t){var e=y;return y=void 0,e&&u(e,"normal"),new c(!0,t)},P=function(t){return A?(r(t),O?C(t[0],t[1],k):C(t[0],t[1])):O?C(t,k):C(t)};if(T)y=d.iterator;else if(E)y=d;else{if(!(v=h(d)))throw new l(i(d)+" is not iterable");if(n(v)){for(m=0,b=a(d);b>m;m++)if((x=P(d[m]))&&s(f,x))return x;return new c(!1)}y=o(d,v)}for(w=T?d.next:y.next;!(S=e(w,y)).done;){var M=S.value;try{x=P(M)}catch(N){if(!y)throw N;u(y,"throw",N)}if("object"==typeof x&&x&&s(f,x))return x}return new c(!1)}}function Js(){if($s)return Ws;$s=1;var t=Ts(),e=function(){if(Ys)return Xs;Ys=1;var t=Ai()("iterator"),e=!1;try{var r=0,i={next:function(){return{done:!!r++}},return:function(){e=!0}};i[t]=function(){return this},Array.from(i,function(){throw 2})}catch(n){}return Xs=function(r,i){try{if(!i&&!e)return!1}catch(n){return!1}var a=!1;try{var s={};s[t]=function(){return{next:function(){return{done:a=!0}}}},r(s)}catch(n){}return a}}(),r=Es().CONSTRUCTOR;return Ws=r||!e(function(e){t.all(e).then(void 0,function(){})})}var to,eo={};var ro,io={};var no,ao={};var so,oo,ho,uo,lo={};function co(){if(ho)return lo;ho=1;var t=ss(),e=Lr(),r=vi(),i=Ts(),n=Es().CONSTRUCTOR,a=function(){if(oo)return so;oo=1;var t=Bi(),e=Vr(),r=Ps();return so=function(i,n){if(t(i),e(n)&&n.constructor===i)return n;var a=r.f(i);return(0,a.resolve)(n),a.promise}}(),s=e("Promise"),o=r&&!n;return t({target:"Promise",stat:!0,forced:r||n},{resolve:function(t){return a(o&&this===s?i:this,t)}}),lo}function fo(t,e,r,i,n,a,s){try{var o=t[a](s),h=o.value}catch(u){return void r(u)}o.done?e(h):Promise.resolve(h).then(i,n)}function go(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var a=t.apply(e,r);function s(t){fo(a,i,n,s,o,"next",t)}function o(t){fo(a,i,n,s,o,"throw",t)}s(void 0)})}}uo||(uo=1,Ms(),function(){if(qs)return Gs;qs=1;var t=ss(),e=Ue(),r=Xr(),i=Ps(),n=As(),a=Ks();t({target:"Promise",stat:!0,forced:Js()},{all:function(t){var s=this,o=i.f(s),h=o.resolve,u=o.reject,l=n(function(){var i=r(s.resolve),n=[],o=0,l=1;a(t,function(t){var r=o++,a=!1;l++,e(i,s,t).then(function(t){a||(a=!0,n[r]=t,--l||h(n))},u)}),--l||h(n)});return l.error&&u(l.value),o.promise}})}(),function(){if(to)return eo;to=1;var t=ss(),e=vi(),r=Es().CONSTRUCTOR,i=Ts(),n=Lr(),a=Ir(),s=cn(),o=i&&i.prototype;if(t({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(t){return this.then(void 0,t)}}),!e&&a(i)){var h=n("Promise").prototype.catch;o.catch!==h&&s(o,"catch",h,{unsafe:!0})}}(),function(){if(ro)return io;ro=1;var t=ss(),e=Ue(),r=Xr(),i=Ps(),n=As(),a=Ks();t({target:"Promise",stat:!0,forced:Js()},{race:function(t){var s=this,o=i.f(s),h=o.reject,u=n(function(){var i=r(s.resolve);a(t,function(t){e(i,s,t).then(o.resolve,h)})});return u.error&&h(u.value),o.promise}})}(),function(){if(no)return ao;no=1;var t=ss(),e=Ps();t({target:"Promise",stat:!0,forced:Es().CONSTRUCTOR},{reject:function(t){var r=e.f(this);return(0,r.reject)(t),r.promise}})}(),co());var po,yo,vo,mo,bo,xo,wo={},So={};function _o(){if(yo)return po;yo=1;var t=ds(),e=String;return po=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}function Ao(){if(mo)return vo;mo=1;var t=Bi();return vo=function(){var e=t(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}}function To(){if(xo)return bo;xo=1;var t=Ve(),e=Te().RegExp,r=t(function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),i=r||t(function(){return!e("a","y").sticky}),n=r||t(function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return bo={BROKEN_CARET:n,MISSED_STICKY:i,UNSUPPORTED_Y:r}}var Eo,Oo,Co,ko,Po,Mo,No,Ro,Io,Vo,Lo,Do,Uo,Bo,Fo,jo,zo,Ho,Xo,Yo,Wo,$o,qo,Go,Zo,Qo={};function Ko(){if(Co)return Qo;Co=1;var t=Le(),e=Ui(),r=Fi(),i=Bi(),n=Rr(),a=function(){if(Oo)return Eo;Oo=1;var t=In(),e=Vn();return Eo=Object.keys||function(r){return t(r,e)}}();return Qo.f=t&&!e?Object.defineProperties:function(t,e){i(t);for(var s,o=n(e),h=a(e),u=h.length,l=0;u>l;)r.f(t,s=h[l++],o[s]);return t},Qo}function Jo(){if(Po)return ko;Po=1;var t,e=Bi(),r=Ko(),i=Vn(),n=hn(),a=bs(),s=Oi(),o=on(),h="prototype",u="script",l=o("IE_PROTO"),c=function(){},f=function(t){return"<"+u+">"+t+"</"+u+">"},d=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{t=new ActiveXObject("htmlfile")}catch(l){}var e,r,n;g="undefined"!=typeof document?document.domain&&t?d(t):(r=s("iframe"),n="java"+u+":",r.style.display="none",a.appendChild(r),r.src=String(n),(e=r.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):d(t);for(var o=i.length;o--;)delete g[h][i[o]];return g()};return n[l]=!0,ko=Object.create||function(t,i){var n;return null!==t?(c[h]=e(t),n=new c,c[h]=null,n[l]=t):n=g(),void 0===i?n:r.f(n,i)}}function th(){if(Lo)return Vo;Lo=1;var t,e,r=Ue(),i=Cr(),n=_o(),a=Ao(),s=To(),o=xi(),h=Jo(),u=un().get,l=function(){if(No)return Mo;No=1;var t=Ve(),e=Te().RegExp;return Mo=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),c=function(){if(Io)return Ro;Io=1;var t=Ve(),e=Te().RegExp;return Ro=t(function(){var t=e("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),f=o("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,g=d,p=i("".charAt),y=i("".indexOf),v=i("".replace),m=i("".slice),b=(e=/b*/g,r(d,t=/a/,"a"),r(d,e,"a"),0!==t.lastIndex||0!==e.lastIndex),x=s.BROKEN_CARET,w=void 0!==/()??/.exec("")[1],S=function(t,e){for(var r=t.groups=h(null),i=0;i<e.length;i++){var n=e[i];r[n[0]]=t[n[1]]}};return(b||w||x||l||c)&&(g=function(t){var e,i,s,o=this,h=u(o),l=n(t),c=h.raw;if(c)return c.lastIndex=o.lastIndex,e=r(g,c,l),o.lastIndex=c.lastIndex,e&&h.groups&&S(e,h.groups),e;var _=h.groups,A=x&&o.sticky,T=r(a,o),E=o.source,O=0,C=l;if(A){T=v(T,"y",""),-1===y(T,"g")&&(T+="g"),C=m(l,o.lastIndex);var k=o.lastIndex>0&&p(l,o.lastIndex-1);o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==k&&"\r"!==k&&"\u2028"!==k&&"\u2029"!==k)&&(E="(?: (?:"+E+"))",C=" "+C,O++),i=new RegExp("^(?:"+E+")",T)}w&&(i=new RegExp("^"+E+"$(?!\\s)",T)),b&&(s=o.lastIndex);var P=r(d,A?i:o,C);return A?P?(P.input=l,P[0]=m(P[0],O),P.index=o.lastIndex,o.lastIndex+=P[0].length):o.lastIndex=0:b&&P&&(o.lastIndex=o.global?P.index+P[0].length:s),w&&P&&P.length>1&&r(f,P[0],i,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(P[t]=void 0)}),P&&_&&S(P,_),P}),Vo=g}function eh(){if(Bo)return Uo;Bo=1,function(){if(Do)return So;Do=1;var t=ss(),e=th();t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})}();var t=Ue(),e=cn(),r=th(),i=Ve(),n=Ai(),a=ji(),s=n("species"),o=RegExp.prototype;return Uo=function(h,u,l,c){var f=n(h),d=!i(function(){var t={};return t[f]=function(){return 7},7!==""[h](t)}),g=d&&!i(function(){var t=!1,e=/a/;if("split"===h){var r={};r[s]=function(){return e},(e={constructor:r,flags:""})[f]=/./[f]}return e.exec=function(){return t=!0,null},e[f](""),!t});if(!d||!g||l){var p=/./[f],y=u(f,""[h],function(e,i,n,a,s){var h=i.exec;return h===r||h===o.exec?d&&!s?{done:!0,value:t(p,i,n,a)}:{done:!0,value:t(e,n,i,a)}:{done:!1}});e(String.prototype,h,y[0]),e(o,f,y[1])}c&&a(o[f],"sham",!0)}}function rh(){if(Ho)return zo;Ho=1;var t=function(){if(jo)return Fo;jo=1;var t=Cr(),e=Pn(),r=_o(),i=Nr(),n=t("".charAt),a=t("".charCodeAt),s=t("".slice),o=function(t){return function(o,h){var u,l,c=r(i(o)),f=e(h),d=c.length;return f<0||f>=d?t?"":void 0:(u=a(c,f))<55296||u>56319||f+1===d||(l=a(c,f+1))<56320||l>57343?t?n(c,f):u:t?s(c,f,f+2):l-56320+(u-55296<<10)+65536}};return Fo={codeAt:o(!1),charAt:o(!0)}}().charAt;return zo=function(e,r,i){return r+(i&&t(e,r).length||1)}}function ih(){if($o)return Wo;$o=1;var t=Ue(),e=Si(),r=Dr(),i=function(){if(Yo)return Xo;Yo=1;var t=Te(),e=Ve(),r=t.RegExp,i=!e(function(){var t=!0;try{r(".","d")}catch(h){t=!1}var e={},i="",n=t?"dgimsy":"gimsy",a=function(t,r){Object.defineProperty(e,t,{get:function(){return i+=r,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(s.hasIndices="d"),s)a(o,s[o]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(e)!==n||i!==n});return Xo={correct:i}}(),n=Ao(),a=RegExp.prototype;return Wo=i.correct?function(t){return t.flags}:function(s){return i.correct||!r(a,s)||e(s,"flags")?s.flags:t(n,s)}}function nh(){if(Go)return qo;Go=1;var t=Ue(),e=Bi(),r=Ir(),i=kr(),n=th(),a=TypeError;return qo=function(s,o){var h=s.exec;if(r(h)){var u=t(h,s,o);return null!==u&&e(u),u}if("RegExp"===i(s))return t(n,s,o);throw new a("RegExp#exec called on incompatible receiver")}}!function(){if(Zo)return wo;Zo=1;var t=Ue(),e=Cr(),r=eh(),i=Bi(),n=Vr(),a=Mn(),s=_o(),o=Nr(),h=Yr(),u=rh(),l=ih(),c=nh(),f=e("".indexOf);r("match",function(e,r,d){return[function(r){var i=o(this),a=n(r)?h(r,e):void 0;if(a)return t(a,r,i);var u=s(i);return new RegExp(r)[e](u)},function(t){var e=i(this),n=s(t),o=d(r,e,n);if(o.done)return o.value;var h=s(l(e));if(!~f(h,"g"))return c(e,n);var g=!!~f(h,"u")||!!~f(h,"v");e.lastIndex=0;for(var p,y=[],v=0;null!==(p=c(e,n));){var m=s(p[0]);y[v]=m,""===m&&(e.lastIndex=u(n,a(e.lastIndex),g)),v++}return 0===v?null:y}]})}();var ah,sh,oh,hh={};!function(){if(oh)return hh;oh=1;var t=ys(),e=Ue(),r=Cr(),i=eh(),n=Ve(),a=Bi(),s=Ir(),o=Vr(),h=Pn(),u=Mn(),l=_o(),c=Nr(),f=rh(),d=Yr(),g=function(){if(sh)return ah;sh=1;
vendor: 4,082 bytes, line 1
1var t=Cr(),e=wi(),r=Math.floor,i=t("".charAt),n=t("".replace),a=t("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;return ah=function(t,h,u,l,c,f){var d=u+t.length,g=l.length,p=o;return void 0!==c&&(c=e(c),p=s),n(f,p,function(e,n){var s;switch(i(n,0)){case"$":return"$";case"&":return t;case"`":return a(h,0,u);case"'":return a(h,d);case"<":s=c[a(n,1,-1)];break;default:var o=+n;if(0===o)return e;if(o>g){var f=r(o/10);return 0===f?e:f<=g?void 0===l[f-1]?i(n,1):l[f-1]+i(n,1):e}s=l[o-1]}return void 0===s?"":s})}}(),p=ih(),y=nh(),v=Ai()("replace"),m=Math.max,b=Math.min,x=r([].concat),w=r([].push),S=r("".indexOf),_=r("".slice),A=function(t){return void 0===t?t:String(t)},T="$0"==="a".replace(/./,"$0"),E=!!/./[v]&&""===/./[v]("a","$0");i("replace",function(r,i,n){var T=E?"$":"$0";return[function(t,r){var n=c(this),a=o(t)?d(t,v):void 0;return a?e(a,t,n,r):e(i,l(n),t,r)},function(e,r){var o=a(this),c=l(e),d=s(r);d||(r=l(r));var v=l(p(o));if("string"==typeof r&&!~S(r,T)&&!~S(r,"$<")&&!~S(v,"y")){var E=n(i,o,c,r);if(E.done)return E.value}var O,C=!!~S(v,"g");C&&(O=!!~S(v,"u")||!!~S(v,"v"),o.lastIndex=0);for(var k,P=[];null!==(k=y(o,c))&&(w(P,k),C);){""===l(k[0])&&(o.lastIndex=f(c,u(o.lastIndex),O))}for(var M="",N=0,R=0;R<P.length;R++){for(var I,V=l((k=P[R])[0]),L=m(b(h(k.index),c.length),0),D=[],U=1;U<k.length;U++)w(D,A(k[U]));var B=k.groups;if(d){var F=x([V],D,L,c);void 0!==B&&w(F,B),I=l(t(r,void 0,F))}else I=g(V,c,L,D,B,r);L>=N&&(M+=_(c,N,L)+I,N=L+V.length)}return M+_(c,N)}]},!!n(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!T||E)}();var uh,lh,ch,fh,dh,gh,ph,yh,vh,mh,bh,xh,wh,Sh,_h,Ah,Th,Eh,Oh,Ch,kh,Ph,Mh,Nh={};function Rh(){if(fh)return ch;fh=1;var t=function(){if(lh)return uh;lh=1;var t=Vr(),e=kr(),r=Ai()("match");return uh=function(i){var n;return t(i)&&(void 0!==(n=i[r])?!!n:"RegExp"===e(i))}}(),e=TypeError;return ch=function(r){if(t(r))throw new e("The method doesn't accept regular expressions");return r}}function Ih(){if(gh)return dh;gh=1;var t=Ai()("match");return dh=function(e){var r=/./;try{"/./"[e](r)}catch(i){try{return r[t]=!1,"/./"[e](r)}catch(n){}}return!1}}function Vh(){if(wh)return xh;wh=1;var t=Si(),e=Ir(),r=wi(),i=on(),n=function(){if(bh)return mh;bh=1;var t=Ve();return mh=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),a=i("IE_PROTO"),s=Object,o=s.prototype;return xh=n?s.getPrototypeOf:function(i){var n=r(i);if(t(n,a))return n[a];var h=n.constructor;return e(h)&&n instanceof h?h.prototype:n instanceof s?o:null}}function Lh(){if(_h)return Sh;_h=1;var t,e,r,i=Ve(),n=Ir(),a=Vr(),s=Jo(),o=Vh(),h=cn(),u=Ai(),l=vi(),c=u("iterator"),f=!1;return[].keys&&("next"in(r=[].keys())?(e=o(o(r)))!==Object.prototype&&(t=e):f=!0),!a(t)||i(function(){var e={};return t[c].call(e)!==e})?t={}:l&&(t=s(t)),n(t[c])||h(t,c,function(){return this}),Sh={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:f}}function Dh(){if(Oh)return Eh;Oh=1;var t=ss(),e=Ue(),r=vi(),i=an(),n=Ir(),a=function(){if(Th)return Ah;Th=1;var t=Lh().IteratorPrototype,e=Jo(),r=Or(),i=cs(),n=Zs(),a=function(){return this};return Ah=function(s,o,h,u){var l=o+" Iterator";return s.prototype=e(t,{next:r(+!u,h)}),i(s,l,!1,!0),n[l]=a,s}}(),s=Vh(),o=ls(),h=cs(),u=ji(),l=cn(),c=Ai(),f=Zs(),d=Lh(),g=i.PROPER,p=i.CONFIGURABLE,y=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,m=c("iterator"),b="keys",x="values",w="entries",S=function(){return this};return Eh=function(i,c,d,_,A,T,E){a(d,c,_);var O,C,k,P=function(t){if(t===A&&V)return V;if(!v&&t&&t in R)return R[t];switch(t){case b:case x:case w:return function(){return new d(this,t)}}return function(){return new d(this)}},M=c+" Iterator",N=!1,R=i.prototype,I=R[m]||R["@@iterator"]||A&&R[A],V=!v&&I||P(A),L="Array"===c&&R.entries||I;if(L&&(O=s(L.call(new i)))!==Object.prototype&&O.next&&(r||s(O)===y||(o?o(O,y):n(O[m])||l(O,m,S)),h(O,M,!0,!0),r&&(f[M]=S)),g&&A===x&&I&&I.name!==x&&(!r&&p?u(R,"name",x):(N=!0,V=function(){return e(I,this)})),A)if(C={values:P(x),keys:T?V:P(b),entries:P(w)}
1,E)for(k in C)(v||N||!(k in R))&&l(R,k,C[k]);else t({target:c,proto:!0,forced:v||N},C);return r&&!E||R[m]===V||l(R,m,V,{name:A}),f[c]=V,C}}function Uh(){if(Mh)return Ph;Mh=1;var t=Rr(),e=function(){if(vh)return yh;vh=1;var t=Ai(),e=Jo(),r=Fi().f,i=t("unscopables"),n=Array.prototype;return void 0===n[i]&&r(n,i,{configurable:!0,value:e(null)}),yh=function(t){n[i][t]=!0}}(),r=Zs(),i=un(),n=Fi().f,a=Dh(),s=kh?Ch:(kh=1,Ch=function(t,e){return{value:t,done:e}}),o=vi(),h=Le(),u="Array Iterator",l=i.set,c=i.getterFor(u);Ph=a(Array,"Array",function(e,r){l(this,{type:u,target:t(e),index:0,kind:r})},function(){var t=c(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,s(void 0,!0);switch(t.kind){case"keys":return s(r,!1);case"values":return s(e[r],!1)}return s([r,e[r]],!1)},"values");var f=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!o&&h&&"values"!==f.name)try{n(f,"name",{value:"values"})}catch(d){}return Ph}!function(){if(ph)return Nh;ph=1;var t,e=ss(),r=vs(),i=ki().f,n=Mn(),a=_o(),s=Rh(),o=Nr(),h=Ih(),u=vi(),l=r("".slice),c=Math.min,f=h("startsWith");e({target:"String",proto:!0,forced:!!(u||f||(t=i(String.prototype,"startsWith"),!t||t.writable))&&!f},{startsWith:function(t){var e=a(o(this));s(t);var r=a(t),i=n(c(arguments.length>1?arguments[1]:void 0,e.length));return l(e,i,i+r.length)===r}})}(),Uh();var Bh,Fh,jh,zh,Hh,Xh={};function Yh(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e);if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function Wh(t,e,r){return(e=Yh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(){if(Hh)return Xh;Hh=1;var t=Te(),e=Fh?Bh:(Fh=1,Bh={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),r=function(){if(zh)return jh;zh=1;var t=Oi()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return jh=e===Object.prototype?void 0:e}(),i=Uh(),n=ji(),a=cs(),s=Ai()("iterator"),o=i.values,h=function(t,r){if(t){if(t[s]!==o)try{n(t,s,o)}catch(u){t[s]=o}if(a(t,r,!0),e[r])for(var h in i)if(t[h]!==i[h])try{n(t,h,i[h])}catch(u){t[h]=i[h]}}};for(var u in e)h(t[u]&&t[u].prototype,u);h(r,"DOMTokenList")}();var $h,qh,Gh,Zh,Qh,Kh={};function Jh(){if(Zh)return Gh;Zh=1;var t=Ve();return Gh=function(e,r){var i=[][e];return!!i&&t(function(){i.call(null,r||function(){return 1},1)})}}!function(){if(Qh)return Kh;Qh=1;var t=ss(),e=function(){if(qh)return $h;qh=1;var t=Xr(),e=wi(),r=Pr(),i=Nn(),n=TypeError,a="Reduce of empty array with no initial value",s=function(s){return function(o,h,u,l){var c=e(o),f=r(c),d=i(c);if(t(h),0===d&&u<2)throw new n(a);var g=s?d-1:0,p=s?-1:1;if(u<2)for(;;){if(g in f){l=f[g],g+=p;break}if(g+=p,s?g<0:d<=g)throw new n(a)}for(;s?g>=0:d>g;g+=p)g in f&&(l=h(l,f[g],g,c));return l}};return $h={left:s(!1),right:s(!0)}}().left,r=Jh(),i=Br();t({target:"Array",proto:!0,forced:!hs()&&i>79&&i<83||!r("reduce")},{reduce:function(t){var r=arguments.length;return e(this,t,r,r>1?arguments[1]:void 0)}})}();var tu,eu={};!function(){if(tu)return eu;tu=1;var t,e=ss(),r=vs(),i=ki().f,n=Mn(),a=_o(),s=Rh(),o=Nr(),h=Ih(),u=vi(),l=r("".slice),c=Math.min,f=h("endsWith");e({target:"String",proto:!0,forced:!!(u||f||(t=i(String.prototype,"endsWith"),!t||t.writable))&&!f},{endsWith:function(t){var e=a(o(this));s(t);var r=a(t),i=arguments.length>1?arguments[1]:void 0,h=e.length,u=void 0===i?h:c(n(i),h);return l(e,u-r.length,u)===r}})}();var ru,iu={};!function(){if(ru)return iu;ru=1;
vendor: 1,400 bytes, line 1
1var t=Ue(),e=Cr(),r=eh(),i=Bi(),n=Vr(),a=Nr(),s=ps(),o=rh(),h=Mn(),u=_o(),l=Yr(),c=ih(),f=nh(),d=To(),g=Ve(),p=d.UNSUPPORTED_Y,y=Math.min,v=e([].push),m=e("".slice),b=e("".indexOf),x=!g(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}),w="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;r("split",function(e,r,d){var g="0".split(void 0,0).length?function(e,i){return void 0===e&&0===i?[]:t(r,this,e,i)}:r;return[function(r,i){var s=a(this),o=n(r)?l(r,e):void 0;return o?t(o,r,s,i):t(g,u(s),r,i)},function(t,e){var n=i(this),a=u(t);if(!w){var l=d(g,n,a,e,g!==r);if(l.done)return l.value}var x=s(n,RegExp),S=u(c(n)),_=!!~b(S,"u")||!!~b(S,"v");p?~b(S,"g")||(S+="g"):~b(S,"y")||(S+="y");var A=new x(p?"^(?:"+n.source+")":n,S),T=void 0===e?4294967295:e>>>0;if(0===T)return[];if(0===a.length)return null===f(A,a)?[a]:[];for(var E=0,O=0,C=[];O<a.length;){A.lastIndex=p?0:O;var k,P=f(A,p?m(a,O):a);if(null===P||(k=y(h(A.lastIndex+(p?O:0)),a.length))===E)O=o(a,O,_);else{if(v(C,m(a,E,O)),C.length===T)return C;for(var M=1;M<=P.length-1;M++)if(v(C,P[M]),C.length===T)return C;O=E=k}}return v(C,m(a,E)),C}]},w||!x,p)}();var nu,au,su={exports:{}},ou={exports:{}},hu=ou.exports;
vendor: 1,226 bytes, line 1
1const uu=e(function(){if(au)return su.exports;au=1;for(var e=(nu||(nu=1,function(){var t,e,r,i,n,a;"undefined"!=typeof performance&&null!==performance&&performance.now?ou.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(ou.exports=function(){return(t()-n)/1e6},e=process.hrtime,i=(t=function(){var t;return 1e9*(t=e())[0]+t[1]})(),a=1e9*process.uptime(),n=i-a):Date.now?(ou.exports=function(){return Date.now()-r},r=Date.now()):(ou.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}.call(hu)),ou.exports),r="undefined"==typeof window?t:window,i=["moz","webkit"],n="AnimationFrame",a=r["request"+n],s=r["cancel"+n]||r["cancelRequest"+n],o=0;!a&&o<i.length;o++)a=r[i[o]+"Request"+n],s=r[i[o]+"Cancel"+n]||r[i[o]+"CancelRequest"+n];if(!a||!s){var h=0,u=0,l=[],c=1e3/60;a=function(t){if(0===l.length){var r=e(),i=Math.max(0,c-(r-h));h=i+r,setTimeout(function(){var t=l.slice(0);l.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(h)}catch(r){setTimeout(function(){throw r},0)}},Math.round(i))}return l.push({handle:++u,callback:t,cancelled:!1}),u},s=function(t){for(var e=0;e<l.length;e++)l[e].handle===t&&(l[e].cancelled=!0)}}
1return su.exports=function(t){return a.call(r,t)},su.exports.cancel=function(){s.apply(r,arguments)},su.exports.polyfill=function(t){t||(t=r),t.requestAnimationFrame=a,t.cancelAnimationFrame=s},su.exports}());var lu,cu,fu,du,gu,pu,yu,vu,mu,bu={};function xu(){return cu?lu:(cu=1,lu="\t\n\v\f\r  áââââââ
ââââââ¯âã\u2028\u2029\ufeff")}!function(){if(yu)return bu;yu=1;var t=ss(),e=function(){if(du)return fu;du=1;var t=Cr(),e=Nr(),r=_o(),i=xu(),n=t("".replace),a=RegExp("^["+i+"]+"),s=RegExp("(^|[^"+i+"])["+i+"]+$"),o=function(t){return function(i){var o=r(e(i));return 1&t&&(o=n(o,a,"")),2&t&&(o=n(o,s,"$1")),o}};return fu={start:o(1),end:o(2),trim:o(3)}}().trim;t({target:"String",proto:!0,forced:function(){if(pu)return gu;pu=1;var t=an().PROPER,e=Ve(),r=xu();return gu=function(i){return e(function(){return!!r[i]()||"âÂ
á "!=="âÂ
á "[i]()||t&&r[i].name!==i})}}()("trim")},{trim:function(){return e(this)}})}();const wu=e(mu?vu:(mu=1,vu=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var 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:"90ee9
10",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",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i=0;i<r.length;i++){var n=r[i].re,a=r[i].process,s=n.exec(t);if(s){var o=a(s);this.r=o[0],this.g=o[1],this.b=o[2],o.length>3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?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.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,i=0;i<r.length;i++)for(var n=r[i].example,a=0;a<n.length;a++)t[t.length]=n[a];for(var s in e)t[t.length]=s;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),i=0;i<t.length;i++)try{var h=document.createElement("li"),u=new RGBColor(t[i]),l=document.createElement("div");l.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),l.appendChild(document.createTextNode("test"));var c=document.createTextNode(" "+t[i]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(l),h.appendChild(c),o.appendChild(h)}catch(f){}return o}}));var Su,_u={};!function(){if(Su)return _u;Su=1;var t=ss(),e=vs(),r=Rn().indexOf,i=Jh(),n=e([].indexOf),a=!!n&&1/n([1],1,-0)<0;t({target:"Array",proto:!0,forced:a||!i("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return a?n(this,t,e)||0:r(this,t,e)}})}();var Au,Tu={};!function(){if(Au)return Tu;Au=1;var t=ss(),e=Cr(),r=Rh(),i=Nr(),n=_o(),a=Ih(),s=e("".indexOf);t({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~s(n(i(this)),n(r(t)),arguments.length>1?arguments[1]:void 0)}})}();var Eu,Ou,Cu,ku={};!function(){if(Cu)return ku;Cu=1;var t=ss(),e=Cr(),r=function(){if(Ou)return Eu;Ou=1;var t=kr();return Eu=Array.isArray||function(e){return"Array"===t(e)}}(),i=e([].reverse),n=[1,2];t({target:"Array",proto:!0,forced:String(n)===String(n.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),i(this)}})}();var Pu=function(t,e){return(Pu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function Mu(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Pu(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Nu(t,e){var r=t[0],i=t[1];return[r*Math.cos(e)-i*Math.sin(e),r*Math.sin(e)+i*Math.cos(e)]}function Ru(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var Iu=Math.PI;function Vu(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var i=t.rX,n=t.rY,a=t.x,s=t.y;i=Math.abs(t.rX),n=Math.abs(t.rY);var o=Nu([(e-a)/2,(r-s)/2],-t.xRot/180*Iu),h=o[0],u=o[1],l=Math.pow(h,2)/Math.pow(i,2)+Math.pow(u,2)/Math.pow(n,2);1<l&&(i*=Math.sqrt(l),n*=Math.sqrt(l)),t.rX=i,t.rY=n;var c=Math.pow(i,2)*Math.pow(u,2)+Math.pow(n,2)*Math.pow(h,2),f=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(i,2)*Math.pow(n,2)-c)/c)),d=i*u/n*f,g=-n*h/i*f,p=Nu([d,g],t.xRot/180*Iu);t.cX=p[0]+(e+a)/2,t.cY=p[1]+(r+s)/2,t.phi1=Math.atan2((u-g)/n,(h-d)/i),t.phi2=Math.atan2((-u-g)/n,(-h-d)/i),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*Iu),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*Iu),t.phi1*=180/Iu,t.phi2*=180/Iu}function Lu(t,e,r){Ru(t,e,r);var i=t*t+e*e-r*r;if(0>i)return[];if(0===i)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var n=Math.sqrt(i);return[[(t*r+e*n)/(t*t+e*e),(e*r-t*n)/(t*t+e*e)],[(t*r-e*n)/(t*t+e*e),(e*r+t*n)/(t*t+e*e)]]}var Du,Uu=Math.PI/180;function Bu(t,e,r){return(1-r)*t+r*e}function Fu(t,e,r,i){return t+Math.cos(i/180*Iu)*e+Math.sin(i/180*Iu)*r}function ju(t,e,r,i){var n=1e-6,a=e-t,s=r-e,o=3*a+3*(i-r)-6*s,h=6*(s-a),u=3*a;return Math.abs(o)<n?[-u/h]:function(t,e,r){var i=t*t/4-e;if(i<-r)return[];if(i<=r)return[-t/2];var n=Math.sqrt(i);return[-t/2-n,-t/2+n]}(h/o,u/o,n)}function zu(t,e,r,i,n){var a=1-n;return t*(a*a*a)+e*(3*a*a*n)+r*(3*a*n*n)+i*(n*n*n)}!function(t){function e(){return n(function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t})}function r(){var t=NaN,e=NaN,r=NaN,i=NaN;return n(function(n,a,s){return n.type&Gu.SMOOTH_CURVE_TO&&(n.type=Gu.CURVE_TO,t=isNaN(t)?a:t,e=isNaN(e)?s:e,n.x1=n.relative?a-t:2*a-t,n.y1=n.relative?s-e:2*s-e),n.type&Gu.CURVE_TO?(t=n.relative?a+n.x2:n.x2,e=n.relative?s+n.y2:n.y2):(t=NaN,e=NaN),n.type&Gu.SMOOTH_QUAD_TO&&(n.type=Gu.QUAD_TO,r=isNaN(r)?a:r,i=isNaN(i)?s:i,n.x1=n.relative?a-r:2*a-r,n.y1=n.relative?s-i:2*s-i),n.type&Gu.QUAD_TO?(r=n.relative?a+n.x1:n.x1,i=n.relative?s+n.y1:n.y1):(r=NaN,i=NaN),n})}function i(){var t=NaN,e=NaN;return n(function(r,i,n){if(r.type&Gu.SMOOTH_QUAD_TO&&(r.type=Gu.QUAD_TO,t=isNaN(t)?i:t,e=isNaN(e)?n:e,r.x1=r.relative?i-t:2*i-t,r.y1=r.relative?n-e:2*n-e),r.type&Gu.QUAD_TO){t=r.relative?i+r.x1:r.x1,e=r.relative?n+r.y1:r.y1;var a=r.x1,s=r.y1;r.type=Gu.CURVE_TO,r.x1=((r.relative?0:i)+2*a)/3,r.y1=((r.relative?0:n)+2*s)/3,r.x2=(r.x+2*a)/3,r.y2=(r.y+2*s)/3}else t=NaN,e=NaN;return r})}function n(t){var e=0,r=0,i=NaN,n=NaN;
vendor: 54,170 bytes, line 1
1return function(a){if(isNaN(i)&&!(a.type&Gu.MOVE_TO))throw new Error("path must start with moveto");var s=t(a,e,r,i,n);return a.type&Gu.CLOSE_PATH&&(e=i,r=n),void 0!==a.x&&(e=a.relative?e+a.x:a.x),void 0!==a.y&&(r=a.relative?r+a.y:a.y),a.type&Gu.MOVE_TO&&(i=e,n=r),s}}function a(t,e,r,i,a,s){return Ru(t,e,r,i,a,s),n(function(n,o,h,u){var l=n.x1,c=n.x2,f=n.relative&&!isNaN(u),d=void 0!==n.x?n.x:f?0:o,g=void 0!==n.y?n.y:f?0:h;function p(t){return t*t}n.type&Gu.HORIZ_LINE_TO&&0!==e&&(n.type=Gu.LINE_TO,n.y=n.relative?0:h),n.type&Gu.VERT_LINE_TO&&0!==r&&(n.type=Gu.LINE_TO,n.x=n.relative?0:o),void 0!==n.x&&(n.x=n.x*t+g*r+(f?0:a)),void 0!==n.y&&(n.y=d*e+n.y*i+(f?0:s)),void 0!==n.x1&&(n.x1=n.x1*t+n.y1*r+(f?0:a)),void 0!==n.y1&&(n.y1=l*e+n.y1*i+(f?0:s)),void 0!==n.x2&&(n.x2=n.x2*t+n.y2*r+(f?0:a)),void 0!==n.y2&&(n.y2=c*e+n.y2*i+(f?0:s));var y=t*i-e*r;if(void 0!==n.xRot&&(1!==t||0!==e||0!==r||1!==i))if(0===y)delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag,n.type=Gu.LINE_TO;else{var v=n.xRot*Math.PI/180,m=Math.sin(v),b=Math.cos(v),x=1/p(n.rX),w=1/p(n.rY),S=p(b)*x+p(m)*w,_=2*m*b*(x-w),A=p(m)*x+p(b)*w,T=S*i*i-_*e*i+A*e*e,E=_*(t*i+e*r)-2*(S*r*i+A*t*e),O=S*r*r-_*t*r+A*t*t,C=(Math.atan2(E,T-O)+Math.PI)%Math.PI/2,k=Math.sin(C),P=Math.cos(C);n.rX=Math.abs(y)/Math.sqrt(T*p(P)+E*k*P+O*p(k)),n.rY=Math.abs(y)/Math.sqrt(T*p(k)-E*k*P+O*p(P)),n.xRot=180*C/Math.PI}return void 0!==n.sweepFlag&&0>y&&(n.sweepFlag=+!n.sweepFlag),n})}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),Ru(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return n(function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t})},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),n(function(i,n,a,s,o){if(isNaN(s)&&!(i.type&Gu.MOVE_TO))throw new Error("path must start with moveto");return e&&i.type&Gu.HORIZ_LINE_TO&&(i.type=Gu.LINE_TO,i.y=i.relative?0:a),r&&i.type&Gu.VERT_LINE_TO&&(i.type=Gu.LINE_TO,i.x=i.relative?0:n),t&&i.type&Gu.CLOSE_PATH&&(i.type=Gu.LINE_TO,i.x=i.relative?s-n:s,i.y=i.relative?o-a:o),i.type&Gu.ARC&&(0===i.rX||0===i.rY)&&(i.type=Gu.LINE_TO,delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag),i})},t.NORMALIZE_ST=r,t.QT_TO_C=i,t.INFO=n,t.SANITIZE=function(t){void 0===t&&(t=0),Ru(t);var e=NaN,r=NaN,i=NaN,a=NaN;return n(function(n,s,o,h,u){var l=Math.abs,c=!1,f=0,d=0;if(n.type&Gu.SMOOTH_CURVE_TO&&(f=isNaN(e)?0:s-e,d=isNaN(r)?0:o-r),n.type&(Gu.CURVE_TO|Gu.SMOOTH_CURVE_TO)?(e=n.relative?s+n.x2:n.x2,r=n.relative?o+n.y2:n.y2):(e=NaN,r=NaN),n.type&Gu.SMOOTH_QUAD_TO?(i=isNaN(i)?s:2*s-i,a=isNaN(a)?o:2*o-a):n.type&Gu.QUAD_TO?(i=n.relative?s+n.x1:n.x1,a=n.relative?o+n.y1:n.y2):(i=NaN,a=NaN),n.type&Gu.LINE_COMMANDS||n.type&Gu.ARC&&(0===n.rX||0===n.rY||!n.lArcFlag)||n.type&Gu.CURVE_TO||n.type&Gu.SMOOTH_CURVE_TO||n.type&Gu.QUAD_TO||n.type&Gu.SMOOTH_QUAD_TO){var g=void 0===n.x?0:n.relative?n.x:n.x-s,p=void 0===n.y?0:n.relative?n.y:n.y-o;f=isNaN(i)?void 0===n.x1?f:n.relative?n.x:n.x1-s:i-s,d=isNaN(a)?void 0===n.y1?d:n.relative?n.y:n.y1-o:a-o;var y=void 0===n.x2?0:n.relative?n.x:n.x2-s,v=void 0===n.y2?0:n.relative?n.y:n.y2-o;l(g)<=t&&l(p)<=t&&l(f)<=t&&l(d)<=t&&l(y)<=t&&l(v)<=t&&(c=!0)}return n.type&Gu.CLOSE_PATH&&l(s-h)<=t&&l(o-u)<=t&&(c=!0),c?[]:n})},t.MATRIX=a,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),Ru(t,e,r);var i=Math.sin(t),n=Math.cos(t);return a(n,i,-i,n,e-e*n+r*i,r-e*i-r*n)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),Ru(t,e),a(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),Ru(t,e),a(t,0,0,e,0,0)},t.SKEW_X=function(t){return Ru(t),a(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return Ru(t),a(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),Ru(t),a(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),Ru(t),a(1,0,0,-1,0,t)},t.A_TO_C=function(){return n(function(t,e,r){return Gu.ARC===t.type?function(t,e,r){var i,n,a,s;t.cX||Vu(t,e,r);for(var o=Math.min(t.phi1,t.phi2),h=Math.max(t.phi1,t.phi2)-o,u=Math.ceil(h/90),l=new Array(u),c=e,f=r,d=0;d<u;d++){var g=Bu(t.phi1,t.phi2,d/u),p=Bu(t.phi1,t.phi2,(d+1)/u),y=p-g,v=4/3*Math.tan(y*Uu/4),m=[Math.cos(g*Uu)-v*Math.sin(g*Uu),Math.sin(g*Uu)+v*Math.cos(g*Uu)],b=m[0],x=m[1],w=[Math.cos(p*Uu),Math.sin(p*Uu)],S=w[0],_=w[1],A=[S+v*Math.sin(p*Uu),_-v*Math.cos(p*Uu)],T=A[0],E=A[1];l[d]={relative:t.relative,type:Gu.CURVE_TO};var O=function(e,r){var i=Nu([e*t.rX,r*t.rY],t.xRot),n=i[0],a=i[1];return[t.cX+n,t.cY+a]};i=O(b,x),l[d].x1=i[0],l[d].y1=i[1],n=O(T,E),l[d].x2=n[0],l[d].y2=n[1],a=O(S,_),l[d].x=a[0],l[d].y=a[1],t.relative&&(l[d].x1-=c,l[d].y1-=f,l[d].x2-=c,l[d].y2-=f,l[d].x-=c,l[d].y-=f),c=(s=[l[d].x,l[d].y])[0],f=s[1]}return l}(t,t.relative?0:e,t.relative?0:r):t})},t.ANNOTATE_ARCS=function(){return n(function(t,e,r){return t.relative&&(e=0,r=0),Gu.ARC===t.type&&Vu(t,e,r),t})},t.CLONE=function(){return function(t){var e={};for(var r in t)e[r]=t[r];return e}},t.CALCULATE_BOUNDS=function(){var t=e(),a=i(),s=r(),o=n(function(e,r,i){var n=s(a(t(function(t){var e={};for(var r in t)e[r]=t[r];return e}(e))));function h(t){t>o.maxX&&(o.maxX=t),t<o.minX&&(o.minX=t)}function u(t){t>o.maxY&&(o.maxY=t),t<o.minY&&(o.minY=t)}if(n.type&Gu.DRAWING_COMMANDS&&(h(r),u(i)),n.type&Gu.HORIZ_LINE_TO&&h(n.x),n.type&Gu.VERT_LINE_TO&&u(n.y),n.type&Gu.LINE_TO&&(h(n.x),u(n.y)),n.type&Gu.CURVE_TO){h(n.x),u(n.y);for(var l=0,c=ju(r,n.x1,n.x2,n.x);l<c.length;l++)0<(O=c[l])&&1>O&&h(zu(r,n.x1,n.x2,n.x,O));for(var f=0,d=ju(i,n.y1,n.y2,n.y);f<d.length;f++)0<(O=d[f])&&1>O&&u(zu(i,n.y1,n.y2,n.y,O))}if(n.type&Gu.ARC){h(n.x),u(n.y),Vu(n,r,i);for(var g=n.xRot/180*Math.PI,p=Math.cos(g)*n.rX,y=Math.sin(g)*n.rX,v=-Math.sin(g)*n.rY,m=Math.cos(g)*n.rY,b=n.phi1<n.phi2?[n.phi1,n.phi2]:-180>n.phi2?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],x=b[0],w=b[1],S=function(t){var e=t[0],r=t[1],i=180*Math.atan2(r,e)/Math.PI;return i<x?i+360:i},_=0,A=Lu(v,-p,0).map(S);_<A.length;_++)(O=A[_])>x&&O<w&&h(Fu(n.cX,p,v,O));for(var T=0,E=Lu(m,-y,0).map(S);T<E.length;T++){var O;(O=E[T])>x&&O<w&&u(Fu(n.cY,y,m,O))}}return e});return o.minX=1/0,o.maxX=-1/0,o.minY=1/0,o.maxY=-1/0,o}}(Du||(Du={}));var Hu,Xu,Yu=function(){function t(){}return t.prototype.round=function(t){return this.transform(Du.ROUND(t))},t.prototype.toAbs=function(){return this.transform(Du.TO_ABS())},t.prototype.toRel=function(){return this.transform(Du.TO_REL())},t.prototype.normalizeHVZ=function(t,e,r){return this.transform(Du.NORMALIZE_HVZ(t,e,r))},t.prototype.normalizeST=function(){return this.transform(Du.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(Du.QT_TO_C())},t.prototype.aToC=function(){return this.transform(Du.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(Du.SANITIZE(t))},t.prototype.translate=function(t,e){return this.transform(Du.TRANSLATE(t,e))},t.prototype.scale=function(t,e){return this.transform(Du.SCALE(t,e))},t.prototype.rotate=function(t,e,r){return this.transform(Du.ROTATE(t,e,r))},t.prototype.matrix=function(t,e,r,i,n,a){return this.transform(Du.MATRIX(t,e,r,i,n,a))},t.prototype.skewX=function(t){return this.transform(Du.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(Du.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(Du.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(Du.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(Du.ANNOTATE_ARCS())},t}(),Wu=function(t){return" "===t||"\t"===t||"\r"===t||"\n"===t},$u=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},qu=function(t){function e(){var e=t.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return Mu(e,t),e.prototype.finish=function(t){if(void 0===t&&(t=[]),this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,e){var r=this;void 0===e&&(e=[]);for(var i=function(t){e.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},n=0;n<t.length;n++){var a=t[n],s=!(this.curCommandType!==Gu.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),o=$u(a)&&("0"===this.curNumber&&"0"===a||s);if(!$u(a)||o)if("e"!==a&&"E"!==a)if("-"!==a&&"+"!==a||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==a||this.curNumberHasExp||this.curNumberHasDecimal||s){if(this.curNumber&&-1!==this.curCommandType){var h=Number(this.curNumber);if(isNaN(h))throw new SyntaxError("Invalid number ending at "+n);if(this.curCommandType===Gu.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>h)throw new SyntaxError('Expected positive number, got "'+h+'" at index "'+n+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+n+'"');this.curArgs.push(h),this.curArgs.length===Zu[this.curCommandType]&&(Gu.HORIZ_LINE_TO===this.curCommandType?i({type:Gu.HORIZ_LINE_TO,relative:this.curCommandRelative,x:h}):Gu.VERT_LINE_TO===this.curCommandType?i({type:Gu.VERT_LINE_TO,relative:this.curCommandRelative,y:h}):this.curCommandType===Gu.MOVE_TO||this.curCommandType===Gu.LINE_TO||this.curCommandType===Gu.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Gu.MOVE_TO===this.curCommandType&&(this.curCommandType=Gu.LINE_TO)):this.curCommandType===Gu.CURVE_TO?i({type:Gu.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===Gu.SMOOTH_CURVE_TO?i({type:Gu.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Gu.QUAD_TO?i({type:Gu.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Gu.ARC&&i({type:Gu.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Wu(a))if(","===a&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==a&&"-"!==a&&"."!==a)if(o)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+n+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+n+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==a&&"Z"!==a)if("h"===a||"H"===a)this.curCommandType=Gu.HORIZ_LINE_TO,this.curCommandRelative="h"===a;else if("v"===a||"V"===a)this.curCommandType=Gu.VERT_LINE_TO,this.curCommandRelative="v"===a;else if("m"===a||"M"===a)this.curCommandType=Gu.MOVE_TO,this.curCommandRelative="m"===a;else if("l"===a||"L"===a)this.curCommandType=Gu.LINE_TO,this.curCommandRelative="l"===a;else if("c"===a||"C"===a)this.curCommandType=Gu.CURVE_TO,this.curCommandRelative="c"===a;else if("s"===a||"S"===a)this.curCommandType=Gu.SMOOTH_CURVE_TO,this.curCommandRelative="s"===a;else if("q"===a||"Q"===a)this.curCommandType=Gu.QUAD_TO,this.curCommandRelative="q"===a;else if("t"===a||"T"===a)this.curCommandType=Gu.SMOOTH_QUAD_TO,this.curCommandRelative="t"===a;else{if("a"!==a&&"A"!==a)throw new SyntaxError('Unexpected character "'+a+'" at index '+n+".");this.curCommandType=Gu.ARC,this.curCommandRelative="a"===a}else e.push({type:Gu.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal="."===a}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,r){void 0===r&&(r=[]);for(var i=0,n=Object.getPrototypeOf(this).parse.call(this,e);i<n.length;i++){var a=n[i],s=t(a);Array.isArray(s)?r.push.apply(r,s):r.push(s)}return r}}})},e}(Yu),Gu=function(t){function e(r){var i=t.call(this)||this;return i.commands="string"==typeof r?e.parse(r):r,i}return Mu(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=Du.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var e=[],r=0,i=this.commands;r<i.length;r++){var n=t(i[r]);Array.isArray(n)?e.push.apply(e,n):e.push(n)}return this.commands=e,this},e.encode=function(t){return function(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var i=t[r];if(i.type===Gu.CLOSE_PATH)e+="z";else if(i.type===Gu.HORIZ_LINE_TO)e+=(i.relative?"h":"H")+i.x;else if(i.type===Gu.VERT_LINE_TO)e+=(i.relative?"v":"V")+i.y;else if(i.type===Gu.MOVE_TO)e+=(i.relative?"m":"M")+i.x+" "+i.y;else if(i.type===Gu.LINE_TO)e+=(i.relative?"l":"L")+i.x+" "+i.y;else if(i.type===Gu.CURVE_TO)e+=(i.relative?"c":"C")+i.x1+" "+i.y1+" "+i.x2+" "+i.y2+" "+i.x+" "+i.y;else if(i.type===Gu.SMOOTH_CURVE_TO)e+=(i.relative?"s":"S")+i.x2+" "+i.y2+" "+i.x+" "+i.y;else if(i.type===Gu.QUAD_TO)e+=(i.relative?"q":"Q")+i.x1+" "+i.y1+" "+i.x+" "+i.y;else if(i.type===Gu.SMOOTH_QUAD_TO)e+=(i.relative?"t":"T")+i.x+" "+i.y;else{if(i.type!==Gu.ARC)throw new Error('Unexpected command type "'+i.type+'" at index '+r+".");e+=(i.relative?"a":"A")+i.rX+" "+i.rY+" "+i.xRot+" "+ +i.lArcFlag+" "+ +i.sweepFlag+" "+i.x+" "+i.y}}return e}(t)},e.parse=function(t){var e=new qu,r=[];return e.parse(t,r),e.finish(r),r},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(Yu),Zu=((Hu={})[Gu.MOVE_TO]=2,Hu[Gu.LINE_TO]=2,Hu[Gu.HORIZ_LINE_TO]=1,Hu[Gu.VERT_LINE_TO]=1,Hu[Gu.CLOSE_PATH]=0,Hu[Gu.QUAD_TO]=4,Hu[Gu.SMOOTH_QUAD_TO]=2,Hu[Gu.CURVE_TO]=6,Hu[Gu.SMOOTH_CURVE_TO]=4,Hu[Gu.ARC]=7,Hu),Qu={};function Ku(t){return(Ku="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){if(Xu)return Qu;Xu=1;var t=an().PROPER,e=cn(),r=Bi(),i=_o(),n=Ve(),a=ih(),s="toString",o=RegExp.prototype,h=o[s],u=n(function(){return"/a/b"!==h.call({source:"a",flags:"b"})}),l=t&&h.name!==s;(u||l)&&e(o,s,function(){var t=r(this);return"/"+i(t.source)+"/"+i(a(t))},{unsafe:!0})}();var Ju=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],tl=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function el(t,e,r,i,n,a){if(!(isNaN(a)||a<1)){a|=0;var s=function(t,e,r,i,n){if("string"==typeof t&&(t=document.getElementById(t)),!t||"object"!==Ku(t)||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var a=t.getContext("2d");try{return a.getImageData(e,r,i,n)}catch(s){throw new Error("unable to access image data: "+s)}}(t,e,r,i,n);s=function(t,e,r,i,n,a){for(var s,o=t.data,h=2*a+1,u=i-1,l=n-1,c=a+1,f=c*(c+1)/2,d=new rl,g=d,p=1;p<h;p++)g=g.next=new rl,p===c&&(s=g);g.next=d;for(var y=null,v=null,m=0,b=0,x=Ju[a],w=tl[a],S=0;S<n;S++){g=d;for(var _=o[b],A=o[b+1],T=o[b+2],E=o[b+3],O=0;O<c;O++)g.r=_,g.g=A,g.b=T,g.a=E,g=g.next;for(var C=0,k=0,P=0,M=0,N=c*_,R=c*A,I=c*T,V=c*E,L=f*_,D=f*A,U=f*T,B=f*E,F=1;F<c;F++){var j=b+((u<F?u:F)<<2),z=o[j],H=o[j+1],X=o[j+2],Y=o[j+3],W=c-F;L+=(g.r=z)*W,D+=(g.g=H)*W,U+=(g.b=X)*W,B+=(g.a=Y)*W,C+=z,k+=H,P+=X,M+=Y,g=g.next}y=d,v=s;for(var $=0;$<i;$++){var q=B*x>>>w;if(o[b+3]=q,0!==q){var G=255/q;o[b]=(L*x>>>w)*G,o[b+1]=(D*x>>>w)*G,o[b+2]=(U*x>>>w)*G}else o[b]=o[b+1]=o[b+2]=0;L-=N,D-=R,U-=I,B-=V,N-=y.r,R-=y.g,I-=y.b,V-=y.a;var Z=$+a+1;Z=m+(Z<u?Z:u)<<2,L+=C+=y.r=o[Z],D+=k+=y.g=o[Z+1],U+=P+=y.b=o[Z+2],B+=M+=y.a=o[Z+3],y=y.next;var Q=v,K=Q.r,J=Q.g,tt=Q.b,et=Q.a;N+=K,R+=J,I+=tt,V+=et,C-=K,k-=J,P-=tt,M-=et,v=v.next,b+=4}m+=i}for(var rt=0;rt<i;rt++){var it=o[b=rt<<2],nt=o[b+1],at=o[b+2],st=o[b+3],ot=c*it,ht=c*nt,ut=c*at,lt=c*st,ct=f*it,ft=f*nt,dt=f*at,gt=f*st;g=d;for(var pt=0;pt<c;pt++)g.r=it,g.g=nt,g.b=at,g.a=st,g=g.next;for(var yt=i,vt=0,mt=0,bt=0,xt=0,wt=1;wt<=a;wt++){b=yt+rt<<2;var St=c-wt;ct+=(g.r=it=o[b])*St,ft+=(g.g=nt=o[b+1])*St,dt+=(g.b=at=o[b+2])*St,gt+=(g.a=st=o[b+3])*St,xt+=it,vt+=nt,mt+=at,bt+=st,g=g.next,wt<l&&(yt+=i)}b=rt,y=d,v=s;for(var _t=0;_t<n;_t++){var At=b<<2;o[At+3]=st=gt*x>>>w,st>0?(st=255/st,o[At]=(ct*x>>>w)*st,o[At+1]=(ft*x>>>w)*st,o[At+2]=(dt*x>>>w)*st):o[At]=o[At+1]=o[At+2]=0,ct-=ot,ft-=ht,dt-=ut,gt-=lt,ot-=y.r,ht-=y.g,ut-=y.b,lt-=y.a,At=rt+((At=_t+c)<l?At:l)*i<<2,ct+=xt+=y.r=o[At],ft+=vt+=y.g=o[At+1],dt+=mt+=y.b=o[At+2],gt+=bt+=y.a=o[At+3],y=y.next,ot+=it=v.r,ht+=nt=v.g,ut+=at=v.b,lt+=st=v.a,xt-=it,vt-=nt,mt-=at,bt-=st,v=v.next,b+=i}}return t}(s,0,0,i,n,a),t.getContext("2d").putImageData(s,e,r)}}var rl=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};var il=Object.freeze({__proto__:null,offscreen:function(){var{DOMParser:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas:(t,e)=>new OffscreenCanvas(t,e),createImage:t=>go(function*(){var e=yield fetch(t),r=yield e.blob();return yield createImageBitmap(r)})()};return"undefined"==typeof DOMParser&&void 0!==t||Reflect.deleteProperty(e,"DOMParser"),e},node:function(t){var{DOMParser:e,canvas:r,fetch:i}=t;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:i,createCanvas:r.createCanvas,createImage:r.loadImage}}});function nl(t){return t.replace(/(?!\u3000)\s+/gm," ")}function al(t){return t.replace(/^[\n \t]+/,"")}function sl(t){return t.replace(/[\n \t]+$/,"")}function ol(t){return((t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var hl=/^[A-Z-]+$/;function ul(t){return hl.test(t)?t.toLowerCase():t}function ll(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}function cl(t){if(!t.startsWith("rgb"))return t;var e=3;return t.replace(/\d+(\.\d+)?/g,(t,r)=>e--&&r?String(Math.round(parseFloat(t))):t)}var fl=/(\[[^\]]+\])/g,dl=/(#[^\s+>~.[:]+)/g,gl=/(\.[^\s+>~.[:]+)/g,pl=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,yl=/(:[\w-]+\([^)]*\))/gi,vl=/(:[^\s+>~.[:]+)/g,ml=/([^\s+>~.[:]+)/g;function bl(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}function xl(t){var e=[0,0,0],r=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),i=0;return[r,i]=bl(r,fl),e[1]+=i,[r,i]=bl(r,dl),e[0]+=i,[r,i]=bl(r,gl),e[1]+=i,[r,i]=bl(r,pl),e[2]+=i,[r,i]=bl(r,yl),e[1]+=i,[r,i]=bl(r,vl),e[1]+=i,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[r,i]=bl(r,ml),e[2]+=i,e.join("")}var wl=1e-8;function Sl(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function _l(t,e){return(t[0]*e[0]+t[1]*e[1])/(Sl(t)*Sl(e))}function Al(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(_l(t,e))}function Tl(t){return t*t*t}function El(t){return 3*t*t*(1-t)}function Ol(t){return 3*t*(1-t)*(1-t)}function Cl(t){return(1-t)*(1-t)*(1-t)}function kl(t){return t*t}function Pl(t){return 2*t*(1-t)}function Ml(t){return(1-t)*(1-t)}class Nl{constructor(t,e,r){this.document=t,this.name=e,this.value=r,this.isNormalizedColor=!1}static empty(t){return new Nl(t,"EMPTY","")}split(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:e,name:r}=this;return nl(this.getString()).trim().split(t).map(t=>new Nl(e,r,t))}hasValue(t){var{value:e}=this;return null!==e&&""!==e&&(t||0!==e)&&void 0!==e}isString(t){var{value:e}=this,r="string"==typeof e;return r&&t?t.test(e):r}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}setValue(t){return this.value=t,this}getValue(t){return void 0===t||this.hasValue()?this.value:t}getNumber(t){if(!this.hasValue())return void 0===t?0:parseFloat(t);var{value:e}=this,r=parseFloat(e);return this.isString(/%$/)&&(r/=100),r}getString(t){return void 0===t||this.hasValue()?void 0===this.value?"":String(this.value):String(t)}getColor(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=cl(e),this.value=e),e}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[r,i]="boolean"==typeof t?[void 0,t]:[t],{viewPort:n}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&i:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(r);default:var a=this.getNumber();return e&&a<1?a*n.computeSize(r):a}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var t=this.getString(),e=/#([^)'"]+)/.exec(t);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}getFillStyleDefinition(t,e){var r=this.getDefinition();if(!r)return null;if("function"==typeof r.createGradient)return r.createGradient(this.document.ctx,t,e);if("function"==typeof r.createPattern){if(r.getHrefAttribute().hasValue()){var i=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&r.getAttribute("patternTransform",!0).setValue(i.value)}return r.createPattern(this.document.ctx,t,e)}return null}getTextBaseline(){return this.hasValue()?Nl.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var e=this.getColor(),r=e.length,i=0,n=0;n<r&&(","===e[n]&&i++,3!==i);n++);if(t.hasValue()&&this.isString()&&3!==i){var a=new wu(e);a.ok&&(a.alpha=t.getNumber(),e=a.toRGBA())}return new Nl(this.document,this.name,e)}}Nl.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class Rl{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(t,e){this.viewPorts.push({width:t,height:e})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:t}=this;return t[t.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(t){return"number"==typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class Il{constructor(t,e){this.x=t,this.y=e}static parse(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[r=e,i=e]=ol(t);return new Il(r,i)}static parseScale(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[r=e,i=r]=ol(t);return new Il(r,i)}static parsePath(t){for(var e=ol(t),r=e.length,i=[],n=0;n<r;n+=2)i.push(new Il(e[n],e[n+1]));return i}angleTo(t){return Math.atan2(t.y-this.y,t.x-this.x)}applyTransform(t){var{x:e,y:r}=this,i=e*t[0]+r*t[2]+t[4],n=e*t[1]+r*t[3]+t[5];this.x=i,this.y=n}}class Vl{constructor(t){this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:t,onClick:e,onMouseMove:r}=this,i=t.ctx.canvas;i.onclick=e,i.onmousemove=r,this.working=!0}}stop(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:t,events:e,eventElements:r}=this,{style:i}=t.ctx.canvas;i&&(i.cursor=""),e.forEach((t,e)=>{for(var{run:i}=t,n=r[e];n;)i(n),n=n.parent}),this.events=[],this.eventElements=[]}}checkPath(t,e){if(this.working&&e){var{events:r,eventElements:i}=this;r.forEach((r,n)=>{var{x:a,y:s}=r;!i[n]&&e.isPointInPath&&e.isPointInPath(a,s)&&(i[n]=t)})}}checkBoundingBox(t,e){if(this.working&&e){var{events:r,eventElements:i}=this;r.forEach((r,n)=>{var{x:a,y:s}=r;!i[n]&&e.isPointInBox(a,s)&&(i[n]=t)})}}mapXY(t,e){for(var{window:r,ctx:i}=this.screen,n=new Il(t,e),a=i.canvas;a;)n.x-=a.offsetLeft,n.y-=a.offsetTop,a=a.offsetParent;return r.scrollX&&(n.x+=r.scrollX),r.scrollY&&(n.y+=r.scrollY),n}onClick(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:e,y:r,run(t){t.onClick&&t.onClick()}})}onMouseMove(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:e,y:r,run(t){t.onMouseMove&&t.onMouseMove()}})}}var Ll="undefined"!=typeof window?window:null,Dl="undefined"!=typeof fetch?fetch.bind(void 0):null;class Ul{constructor(t){var{fetch:e=Dl,window:r=Ll}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Rl,this.mouse=new Vl(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=e}wait(t){this.waits.push(t)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var t=this.waits.every(t=>t());return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}setDefaults(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}setViewBox(t){var{document:e,ctx:r,aspectRatio:i,width:n,desiredWidth:a,height:s,desiredHeight:o,minX:h=0,minY:u=0,refX:l,refY:c,clip:f=!1,clipX:d=0,clipY:g=0}=t,p=nl(i).replace(/^defer\s/,""),[y,v]=p.split(" "),m=y||"xMidYMid",b=v||"meet",x=n/a,w=s/o,S=Math.min(x,w),_=Math.max(x,w),A=a,T=o;"meet"===b&&(A*=S,T*=S),"slice"===b&&(A*=_,T*=_);var E=new Nl(e,"refX",l),O=new Nl(e,"refY",c),C=E.hasValue()&&O.hasValue();if(C&&r.translate(-S*E.getPixels("x"),-S*O.getPixels("y")),f){var k=S*d,P=S*g;r.beginPath(),r.moveTo(k,P),r.lineTo(n,P),r.lineTo(n,s),r.lineTo(k,s),r.closePath(),r.clip()}if(!C){var M="meet"===b&&S===w,N="slice"===b&&_===w,R="meet"===b&&S===x,I="slice"===b&&_===x;m.startsWith("xMid")&&(M||N)&&r.translate(n/2-A/2,0),m.endsWith("YMid")&&(R||I)&&r.translate(0,s/2-T/2),m.startsWith("xMax")&&(M||N)&&r.translate(n-A,0),m.endsWith("YMax")&&(R||I)&&r.translate(0,s-T)}switch(!0){case"none"===m:r.scale(x,w);break;case"meet"===b:r.scale(S,S);break;case"slice"===b:r.scale(_,_)}r.translate(-h,-u)}start(t){var{enableRedraw:e=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:n=!1,ignoreClear:a=!1,forceRedraw:s,scaleWidth:o,scaleHeight:h,offsetX:u,offsetY:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:c,mouse:f}=this,d=1e3/c;if(this.frameDuration=d,this.readyPromise=new Promise(t=>{this.resolveReady=t}),this.isReady()&&this.render(t,n,a,o,h,u,l),e){var g=Date.now(),p=g,y=0,v=()=>{g=Date.now(),(y=g-p)>=d&&(p=g-y%d,this.shouldUpdate(i,s)&&(this.render(t,n,a,o,h,u,l),f.runEvents())),this.intervalId=uu(v)};r||f.start(),this.intervalId=uu(v)}}stop(){this.intervalId&&(uu.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(t,e){if(!t){var{frameDuration:r}=this;if(this.animations.reduce((t,e)=>e.update(r)||t,!1))return!0}return!("function"!=typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}render(t,e,r,i,n,a,s){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:h,viewPort:u,ctx:l,isFirstRender:c}=this,f=l.canvas;u.clear(),f.width&&f.height?u.setCurrent(f.width,f.height):u.setCurrent(o,h);var d=t.getStyle("width"),g=t.getStyle("height");!e&&(c||"number"!=typeof i&&"number"!=typeof n)&&(d.hasValue()&&(f.width=d.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),g.hasValue()&&(f.height=g.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var p=f.clientWidth||f.width,y=f.clientHeight||f.height;if(e&&d.hasValue()&&g.hasValue()&&(p=d.getPixels("x"),y=g.getPixels("y")),u.setCurrent(p,y),"number"==typeof a&&t.getAttribute("x",!0).setValue(a),"number"==typeof s&&t.getAttribute("y",!0).setValue(s),"number"==typeof i||"number"==typeof n){var v=ol(t.getAttribute("viewBox").getString()),m=0,b=0;if("number"==typeof i){var x=t.getStyle("width");x.hasValue()?m=x.getPixels("x")/i:isNaN(v[2])||(m=v[2]/i)}if("number"==typeof n){var w=t.getStyle("height");w.hasValue()?b=w.getPixels("y")/n:isNaN(v[3])||(b=v[3]/n)}m||(m=b),b||(b=m),t.getAttribute("width",!0).setValue(i),t.getAttribute("height",!0).setValue(n);var S=t.getStyle("transform",!0,!0);S.setValue("".concat(S.getString()," scale(").concat(1/m,", ").concat(1/b,")"))}r||l.clearRect(0,0,p,y),t.render(l),c&&(this.isFirstRender=!1)}}Ul.defaultWindow=Ll,Ul.defaultFetch=Dl;var{defaultFetch:Bl}=Ul,Fl="undefined"!=typeof DOMParser?DOMParser:null;class jl{constructor(){var{fetch:t=Bl,DOMParser:e=Fl}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return go(function*(){return t.startsWith("<")?e.parseFromString(t):e.load(t)})()}parseFromString(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,"image/svg+xml"))}catch(r){return this.checkDocument(e.parseFromString(t,"text/xml"))}}checkDocument(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}load(t){var e=this;return go(function*(){var r=yield e.fetch(t),i=yield r.text();return e.parseFromString(i)})()}}class zl{constructor(t,e){this.type="translate",this.point=null,this.point=Il.parse(e)}apply(t){var{x:e,y:r}=this.point;t.translate(e||0,r||0)}unapply(t){var{x:e,y:r}=this.point;t.translate(-1*e||0,-1*r||0)}applyToPoint(t){var{x:e,y:r}=this.point;t.applyTransform([1,0,0,1,e||0,r||0])}}class Hl{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=ol(e);this.angle=new Nl(t,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(t){var{cx:e,cy:r,originX:i,originY:n,angle:a}=this,s=e+i.getPixels("x"),o=r+n.getPixels("y");t.translate(s,o),t.rotate(a.getRadians()),t.translate(-s,-o)}unapply(t){var{cx:e,cy:r,originX:i,originY:n,angle:a}=this,s=e+i.getPixels("x"),o=r+n.getPixels("y");t.translate(s,o),t.rotate(-1*a.getRadians()),t.translate(-s,-o)}applyToPoint(t){var{cx:e,cy:r,angle:i}=this,n=i.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}class Xl{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=Il.parseScale(e);0!==i.x&&0!==i.y||(i.x=wl,i.y=wl),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:e,y:r},originX:i,originY:n}=this,a=i.getPixels("x"),s=n.getPixels("y");t.translate(a,s),t.scale(e,r||e),t.translate(-a,-s)}unapply(t){var{scale:{x:e,y:r},originX:i,originY:n}=this,a=i.getPixels("x"),s=n.getPixels("y");t.translate(a,s),t.scale(1/e,1/r||e),t.translate(-a,-s)}applyToPoint(t){var{x:e,y:r}=this.scale;t.applyTransform([e||0,0,0,r||0,0,0])}}class Yl{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=ol(e),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:e,originY:r,matrix:i}=this,n=e.getPixels("x"),a=r.getPixels("y");t.translate(n,a),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),t.translate(-n,-a)}unapply(t){var{originX:e,originY:r,matrix:i}=this,n=i[0],a=i[2],s=i[4],o=i[1],h=i[3],u=i[5],l=1/(n*(1*h-0*u)-a*(1*o-0*u)+s*(0*o-0*h)),c=e.getPixels("x"),f=r.getPixels("y");t.translate(c,f),t.transform(l*(1*h-0*u),l*(0*u-1*o),l*(0*s-1*a),l*(1*n-0*s),l*(a*u-s*h),l*(s*o-n*u)),t.translate(-c,-f)}applyToPoint(t){t.applyTransform(this.matrix)}}class Wl extends Yl{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new Nl(t,"angle",e)}}class $l extends Wl{constructor(t,e,r){super(t,e,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class ql extends Wl{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}class Gl{constructor(t,e,r){this.document=t,this.transforms=[];var i=function(t){return nl(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(e);i.forEach(t=>{if("none"!==t){var[e,i]=function(t){var[e,r]=t.split("(");return[e.trim(),r.trim().replace(")","")]}(t),n=Gl.transformTypes[e];void 0!==n&&this.transforms.push(new n(this.document,i,r))}})}static fromElement(t,e){var r=e.getStyle("transform",!1,!0),[i,n=i]=e.getStyle("transform-origin",!1,!0).split(),a=[i,n];return r.hasValue()?new Gl(t,r.getString(),a):null}apply(t){for(var{transforms:e}=this,r=e.length,i=0;i<r;i++)e[i].apply(t)}unapply(t){for(var{transforms:e}=this,r=e.length-1;r>=0;r--)e[r].unapply(t)}applyToPoint(t){for(var{transforms:e}=this,r=e.length,i=0;i<r;i++)e[i].applyToPoint(t)}}Gl.transformTypes={translate:zl,rotate:Hl,scale:Xl,matrix:Yl,skewX:$l,skewY:ql};class Zl{constructor(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=t,this.node=e,this.captureTextNodes=r,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],e&&1===e.nodeType){if(Array.from(e.attributes).forEach(e=>{var r=ul(e.nodeName);this.attributes[r]=new Nl(t,r,e.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue())this.getAttribute("style").getString().split(";").map(t=>t.trim()).forEach(e=>{if(e){var[r,i]=e.split(":").map(t=>t.trim());this.styles[r]=new Nl(t,r,i)}});var{definitions:i}=t,n=this.getAttribute("id");n.hasValue()&&(i[n.getString()]||(i[n.getString()]=this)),Array.from(e.childNodes).forEach(e=>{if(1===e.nodeType)this.addChild(e);else if(r&&(3===e.nodeType||4===e.nodeType)){var i=t.createTextNode(e);i.getText().length>0&&this.addChild(i)}})}}getAttribute(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.attributes[t];if(!r&&e){var i=new Nl(this.document,t,"");return this.attributes[t]=i,i}return r||Nl.empty(this.document)}getHrefAttribute(){for(var t in this.attributes)if("href"===t||t.endsWith(":href"))return this.attributes[t];return Nl.empty(this.document)}getStyle(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.styles[t];if(i)return i;var n=this.getAttribute(t);if(null!=n&&n.hasValue())return this.styles[t]=n,n;if(!r){var{parent:a}=this;if(a){var s=a.getStyle(t);if(null!=s&&s.hasValue())return s}}if(e){var o=new Nl(this.document,t,"");return this.styles[t]=o,o}return i||Nl.empty(this.document)}render(t){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(t.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&(this.applyEffects(t),e.apply(t,this))}else if("none"!==this.getStyle("filter").getValue("none")){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}setContext(t){}applyEffects(t){var e=Gl.fromElement(this.document,this);e&&e.apply(t);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(t)}}clearContext(t){}renderChildren(t){this.children.forEach(e=>{e.render(t)})}addChild(t){var e=t instanceof Zl?t:this.document.createElement(t);e.parent=this,Zl.ignoreChildTypes.includes(e.type)||this.children.push(e)}matchesSelector(t){var e,{node:r}=this;if("function"==typeof r.matches)return r.matches(t);var i=null===(e=r.getAttribute)||void 0===e?void 0:e.call(r,"class");return!(!i||""===i)&&i.split(" ").some(e=>".".concat(e)===t)}addStylesFromStyleDefinition(){var{styles:t,stylesSpecificity:e}=this.document;for(var r in t)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=t[r],n=e[r];if(i)for(var a in i){var s=this.stylesSpecificity[a];void 0===s&&(s="000"),n>=s&&(this.styles[a]=i[a],this.stylesSpecificity[a]=n)}}}removeStyles(t,e){return e.reduce((e,r)=>{var i=t.getStyle(r);if(!i.hasValue())return e;var n=i.getString();return i.setValue(""),[...e,[r,n]]},[])}restoreStyles(t,e){e.forEach(e=>{var[r,i]=e;t.getStyle(r,!0).setValue(i)})}isFirstChild(){var t;return 0===(null===(t=this.parent)||void 0===t?void 0:t.children.indexOf(this))}}Zl.ignoreChildTypes=["title"];class Ql extends Zl{constructor(t,e,r){super(t,e,r)}}function Kl(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function Jl(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function tc(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class ec{constructor(t,e,r,i,n,a){var s=a?"string"==typeof a?ec.parse(a):a:{};this.fontFamily=n||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=t||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=e||s.fontVariant}static parse(){var t=arguments.length>1?arguments[1]:void 0,e="",r="",i="",n="",a="",s=nl(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),o={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return s.forEach(t=>{switch(!0){case!o.fontStyle&&ec.styles.includes(t):"inherit"!==t&&(e=t),o.fontStyle=!0;break;case!o.fontVariant&&ec.variants.includes(t):"inherit"!==t&&(r=t),o.fontStyle=!0,o.fontVariant=!0;break;case!o.fontWeight&&ec.weights.includes(t):"inherit"!==t&&(i=t),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0;break;case!o.fontSize:"inherit"!==t&&([n]=t.split("/")),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0,o.fontSize=!0;break;default:"inherit"!==t&&(a+=t)}}),new ec(e,r,i,n,a,t)}toString(){return[Jl(this.fontStyle),this.fontVariant,tc(this.fontWeight),this.fontSize,(t=this.fontFamily,"undefined"==typeof process?t:t.trim().split(",").map(Kl).join(","))].join(" ").trim();var t}}ec.styles="normal|italic|oblique|inherit",ec.variants="normal|small-caps|inherit",ec.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class rc{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=r,this.y2=i,this.addPoint(t,e),this.addPoint(r,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,e){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),void 0!==e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){if(t){var{x1:e,y1:r,x2:i,y2:n}=t;this.addPoint(e,r),this.addPoint(i,n)}}sumCubic(t,e,r,i,n){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*i+Math.pow(t,3)*n}bezierCurveAdd(t,e,r,i,n){var a=6*e-12*r+6*i,s=-3*e+9*r-9*i+3*n,o=3*r-3*e;if(0!==s){var h=Math.pow(a,2)-4*o*s;if(!(h<0)){var u=(-a+Math.sqrt(h))/(2*s);0<u&&u<1&&(t?this.addX(this.sumCubic(u,e,r,i,n)):this.addY(this.sumCubic(u,e,r,i,n)));var l=(-a-Math.sqrt(h))/(2*s);0<l&&l<1&&(t?this.addX(this.sumCubic(l,e,r,i,n)):this.addY(this.sumCubic(l,e,r,i,n)))}}else{if(0===a)return;var c=-o/a;0<c&&c<1&&(t?this.addX(this.sumCubic(c,e,r,i,n)):this.addY(this.sumCubic(c,e,r,i,n)))}}addBezierCurve(t,e,r,i,n,a,s,o){this.addPoint(t,e),this.addPoint(s,o),this.bezierCurveAdd(!0,t,r,n,s),this.bezierCurveAdd(!1,e,i,a,o)}addQuadraticCurve(t,e,r,i,n,a){var s=t+2/3*(r-t),o=e+2/3*(i-e),h=s+1/3*(n-t),u=o+1/3*(a-e);this.addBezierCurve(t,e,s,h,o,u,n,a)}isPointInBox(t,e){var{x1:r,y1:i,x2:n,y2:a}=this;return r<=t&&t<=n&&i<=e&&e<=a}}class ic extends Gu{constructor(t){super(t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Il(0,0),this.control=new Il(0,0),this.current=new Il(0,0),this.points=[],this.angles=[]}isEnd(){var{i:t,commands:e}=this;return t>=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",r=new Il(this.command[t],this.command[e]);return this.makeAbsolute(r)}getAsControlPoint(t,e){var r=this.getPoint(t,e);return this.control=r,r}getAsCurrentPoint(t,e){var r=this.getPoint(t,e);return this.current=r,r}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==Gu.CURVE_TO&&t!==Gu.SMOOTH_CURVE_TO&&t!==Gu.QUAD_TO&&t!==Gu.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:i,y:n}}=this;return new Il(2*e-i,2*r-n)}makeAbsolute(t){if(this.command.relative){var{x:e,y:r}=this.current;t.x+=e,t.y+=r}return t}addMarker(t,e,r){var{points:i,angles:n}=this;r&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}addMarkerAngle(t,e){this.points.push(t),this.angles.push(e)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:t}=this,e=t.length,r=0;r<e;r++)if(!t[r])for(var i=r+1;i<e;i++)if(t[i]){t[r]=t[i];break}return t}}class nc extends Zl{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),e=e.parent}return t}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,i);s&&(t.fillStyle=s)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var o=r.getColor();"inherit"!==o&&(t.fillStyle="none"===o?"rgba(0,0,0,0)":o)}if(i.hasValue()){var h=new Nl(this.document,"fill",t.fillStyle).addOpacity(i).getColor();t.fillStyle=h}if(n.isUrlDefinition()){var u=n.getFillStyleDefinition(this,a);u&&(t.strokeStyle=u)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var l=n.getString();"inherit"!==l&&(t.strokeStyle="none"===l?"rgba(0,0,0,0)":l)}if(a.hasValue()){var c=new Nl(this.document,"stroke",t.strokeStyle).addOpacity(a).getString();t.strokeStyle=c}var f=this.getStyle("stroke-width");if(f.hasValue()){var d=f.getPixels();t.lineWidth=d||wl}var g=this.getStyle("stroke-linecap"),p=this.getStyle("stroke-linejoin"),y=this.getStyle("stroke-miterlimit"),v=this.getStyle("stroke-dasharray"),m=this.getStyle("stroke-dashoffset");if(g.hasValue()&&(t.lineCap=g.getString()),p.hasValue()&&(t.lineJoin=p.getString()),y.hasValue()&&(t.miterLimit=y.getNumber()),v.hasValue()&&"none"!==v.getString()){var b=ol(v.getString());void 0!==t.setLineDash?t.setLineDash(b):void 0!==t.webkitLineDash?t.webkitLineDash=b:void 0===t.mozDash||1===b.length&&0===b[0]||(t.mozDash=b);var x=m.getPixels();void 0!==t.lineDashOffset?t.lineDashOffset=x:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=x:void 0!==t.mozDashOffset&&(t.mozDashOffset=x)}}if(this.modifiedEmSizeStack=!1,void 0!==t.font){var w=this.getStyle("font"),S=this.getStyle("font-style"),_=this.getStyle("font-variant"),A=this.getStyle("font-weight"),T=this.getStyle("font-size"),E=this.getStyle("font-family"),O=new ec(S.getString(),_.getString(),A.getString(),T.hasValue()?"".concat(T.getPixels(!0),"px"):"",E.getString(),ec.parse(w.getString(),t.font));S.setValue(O.fontStyle),_.setValue(O.fontVariant),A.setValue(O.fontWeight),T.setValue(O.fontSize),E.setValue(O.fontFamily),t.font=O.toString(),T.isPixels()&&(this.document.emSize=T.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class ac extends nc{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new ic(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new rc;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case ic.MOVE_TO:this.pathM(t,r);break;case ic.LINE_TO:this.pathL(t,r);break;case ic.HORIZ_LINE_TO:this.pathH(t,r);break;case ic.VERT_LINE_TO:this.pathV(t,r);break;case ic.CURVE_TO:this.pathC(t,r);break;case ic.SMOOTH_CURVE_TO:this.pathS(t,r);break;case ic.QUAD_TO:this.pathQ(t,r);break;case ic.SMOOTH_QUAD_TO:this.pathT(t,r);break;case ic.ARC:this.pathA(t,r);break;case ic.CLOSE_PATH:this.pathZ(t,r)}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),r=t.getMarkerAngles();return e.map((t,e)=>[t,r[e]])}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var i=r.length-1,n=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(n.isUrlDefinition()){var o=n.getDefinition(),[h,u]=r[0];o.render(t,h,u)}if(a.isUrlDefinition())for(var l=a.getDefinition(),c=1;c<i;c++){var[f,d]=r[c];l.render(t,f,d)}if(s.isUrlDefinition()){var g=s.getDefinition(),[p,y]=r[i];g.render(t,p,y)}}}static pathM(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}pathM(t,e){var{pathParser:r}=this,{point:i}=ac.pathM(r),{x:n,y:a}=i;r.addMarker(i),e.addPoint(n,a),t&&t.moveTo(n,a)}static pathL(t){var{current:e}=t;return{current:e,point:t.getAsCurrentPoint()}}pathL(t,e){var{pathParser:r}=this,{current:i,point:n}=ac.pathL(r),{x:a,y:s}=n;r.addMarker(n,i),e.addPoint(a,s),t&&t.lineTo(a,s)}static pathH(t){var{current:e,command:r}=t,i=new Il((r.relative?e.x:0)+r.x,e.y);return t.current=i,{current:e,point:i}}pathH(t,e){var{pathParser:r}=this,{current:i,point:n}=ac.pathH(r),{x:a,y:s}=n;r.addMarker(n,i),e.addPoint(a,s),t&&t.lineTo(a,s)}static pathV(t){var{current:e,command:r}=t,i=new Il(e.x,(r.relative?e.y:0)+r.y);return t.current=i,{current:e,point:i}}pathV(t,e){var{pathParser:r}=this,{current:i,point:n}=ac.pathV(r),{x:a,y:s}=n;r.addMarker(n,i),e.addPoint(a,s),t&&t.lineTo(a,s)}static pathC(t){var{current:e}=t;return{current:e,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathC(t,e){var{pathParser:r}=this,{current:i,point:n,controlPoint:a,currentPoint:s}=ac.pathC(r);r.addMarker(s,a,n),e.addBezierCurve(i.x,i.y,n.x,n.y,a.x,a.y,s.x,s.y),t&&t.bezierCurveTo(n.x,n.y,a.x,a.y,s.x,s.y)}static pathS(t){var{current:e}=t;return{current:e,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathS(t,e){var{pathParser:r}=this,{current:i,point:n,controlPoint:a,currentPoint:s}=ac.pathS(r);r.addMarker(s,a,n),e.addBezierCurve(i.x,i.y,n.x,n.y,a.x,a.y,s.x,s.y),t&&t.bezierCurveTo(n.x,n.y,a.x,a.y,s.x,s.y)}static pathQ(t){var{current:e}=t;return{current:e,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}pathQ(t,e){var{pathParser:r}=this,{current:i,controlPoint:n,currentPoint:a}=ac.pathQ(r);r.addMarker(a,n,n),e.addQuadraticCurve(i.x,i.y,n.x,n.y,a.x,a.y),t&&t.quadraticCurveTo(n.x,n.y,a.x,a.y)}static pathT(t){var{current:e}=t,r=t.getReflectedControlPoint();return t.control=r,{current:e,controlPoint:r,currentPoint:t.getAsCurrentPoint()}}pathT(t,e){var{pathParser:r}=this,{current:i,controlPoint:n,currentPoint:a}=ac.pathT(r);r.addMarker(a,n,n),e.addQuadraticCurve(i.x,i.y,n.x,n.y,a.x,a.y),t&&t.quadraticCurveTo(n.x,n.y,a.x,a.y)}static pathA(t){var{current:e,command:r}=t,{rX:i,rY:n,xRot:a,lArcFlag:s,sweepFlag:o}=r,h=a*(Math.PI/180),u=t.getAsCurrentPoint(),l=new Il(Math.cos(h)*(e.x-u.x)/2+Math.sin(h)*(e.y-u.y)/2,-Math.sin(h)*(e.x-u.x)/2+Math.cos(h)*(e.y-u.y)/2),c=Math.pow(l.x,2)/Math.pow(i,2)+Math.pow(l.y,2)/Math.pow(n,2);c>1&&(i*=Math.sqrt(c),n*=Math.sqrt(c));var f=(s===o?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(n,2)-Math.pow(i,2)*Math.pow(l.y,2)-Math.pow(n,2)*Math.pow(l.x,2))/(Math.pow(i,2)*Math.pow(l.y,2)+Math.pow(n,2)*Math.pow(l.x,2)));isNaN(f)&&(f=0);var d=new Il(f*i*l.y/n,f*-n*l.x/i),g=new Il((e.x+u.x)/2+Math.cos(h)*d.x-Math.sin(h)*d.y,(e.y+u.y)/2+Math.sin(h)*d.x+Math.cos(h)*d.y),p=Al([1,0],[(l.x-d.x)/i,(l.y-d.y)/n]),y=[(l.x-d.x)/i,(l.y-d.y)/n],v=[(-l.x-d.x)/i,(-l.y-d.y)/n],m=Al(y,v);return _l(y,v)<=-1&&(m=Math.PI),_l(y,v)>=1&&(m=0),{currentPoint:u,rX:i,rY:n,sweepFlag:o,xAxisRotation:h,centp:g,a1:p,ad:m}}pathA(t,e){var{pathParser:r}=this,{currentPoint:i,rX:n,rY:a,sweepFlag:s,xAxisRotation:o,centp:h,a1:u,ad:l}=ac.pathA(r),c=1-s?1:-1,f=u+c*(l/2),d=new Il(h.x+n*Math.cos(f),h.y+a*Math.sin(f));if(r.addMarkerAngle(d,f-c*Math.PI/2),r.addMarkerAngle(i,f-c*Math.PI),e.addPoint(i.x,i.y),t&&!isNaN(u)&&!isNaN(l)){var g=n>a?n:a,p=n>a?1:n/a,y=n>a?a/n:1;t.translate(h.x,h.y),t.rotate(o),t.scale(p,y),t.arc(0,0,g,u,u+l,Boolean(1-s)),t.scale(1/p,1/y),t.rotate(-o),t.translate(-h.x,-h.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){ac.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class sc extends ac{constructor(t,e,r){super(t,e,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class oc extends nc{constructor(t,e,r){super(t,e,new.target===oc||r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(t,e);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.get
vendor: 4,148 bytes, line 1
1Style("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(t){if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var e=null;return this.children.forEach((r,i)=>{var n=this.getChildBoundingBox(t,this,this,i);e?e.addBoundingBox(n):e=n}),e}getFontSize(){var{document:t,parent:e}=this,r=ec.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(r)}getTElementBoundingBox(t){var e=this.getFontSize();return new rc(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,r){var i=e[r],n=null;if(t.isArabic){var a=e.length,s=e[r-1],o=e[r+1],h="isolated";if((0===r||" "===s)&&r<a-1&&" "!==o&&(h="terminal"),r>0&&" "!==s&&r<a-1&&" "!==o&&(h="medial"),r>0&&" "!==s&&(r===a-1||" "===o)&&(h="initial"),void 0!==t.glyphs[i]){var u=t.glyphs[i];n=u instanceof sc?u:u[h]}}else n=t.glyphs[i];return n||(n=t.missingGlyph),n}getText(){return""}getTextFromNode(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),i=r.indexOf(e),n=r.length-1,a=nl(e.textContent||"");return 0===i&&(a=al(a)),i===n&&(a=sl(a)),a}renderChildren(t){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach((e,r)=>{this.renderChild(t,this,this,r)});var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}renderTElementChildren(t){var{document:e,parent:r}=this,i=this.getText(),n=r.getStyle("font-family").getDefinition();if(n)for(var{unitsPerEm:a}=n.fontFace,s=ec.parse(e.ctx.font),o=r.getStyle("font-size").getNumber(s.fontSize),h=r.getStyle("font-style").getString(s.fontStyle),u=o/a,l=n.isRTL?i.split("").reverse().join(""):i,c=ol(r.getAttribute("dx").getString()),f=l.length,d=0;d<f;d++){var g=this.getGlyph(n,l,d);t.translate(this.x,this.y),t.scale(u,-u);var p=t.lineWidth;t.lineWidth=t.lineWidth*a/o,"italic"===h&&t.transform(1,0,.4,1,0,0),g.render(t),"italic"===h&&t.transform(1,0,-.4,1,0,0),t.lineWidth=p,t.scale(1/u,-1/u),t.translate(-this.x,-this.y),this.x+=o*(g.horizAdvX||n.horizAdvX)/a,void 0===c[d]||isNaN(c[d])||(this.x+=c[d])}else{var{x:y,y:v}=this;t.fillStyle&&t.fillText(i,y,v),t.strokeStyle&&t.strokeText(i,y,v)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start"),r=0;r="start"===e?t.x-this.minX:"end"===e?t.x-this.maxX:t.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=r;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(t){this.children.forEach((e,r)=>{this.adjustChildCoordinatesRecursiveCore(t,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(t,e,r,i){var n=r.children[i];n.children.length>0?n.children.forEach((r,i)=>{e.adjustChildCoordinatesRecursiveCore(t,e,n,i)}):this.adjustChildCoordinates(t,e,r,i)}adjustChildCoordinates(t,e,r,i){var n=r.children[i];if("function"!=typeof n.measureText)return n;t.save(),n.setContext(t,!0);var a=n.getAttribute("x"),s=n.getAttribute("y"),o=n.getAttribute("dx"),h=n.getAttribute("dy"),u=n.getStyle("font-family").getDefinition(),l=Boolean(u)&&u.isRTL;0===i&&(a.hasValue()||a.setValue(n.getInheritedAttribute("x")),s.hasValue()||s.setValue(n.getInheritedAttribute("y")),o.hasValue()||o.setValue(n.getInheritedAttribute("dx")),h.hasValue()||h.setValue(n.getInheritedAttribute("dy")));var c=n.measureText(t);return l&&(e.x-=c),a.hasValue()?(e.applyAnchoring(),n.x=a.getPixels("x"),o.hasValue()&&(n.x+=o.getPixels("x"))):(o.hasValue()&&(e.x+=o.getPixels("x")),n.x=e.x),e.x=n.x,l||(e.x+=c),s.hasValue()?(n.y=s.getPixels("y"),h.hasValue()&&(n.y+=h.getPixels("y"))):(h.hasValue()&&(e.y+=h.getPixels("y")),n.y=e.y),e.y=n.y,e.leafTexts.push(n),e.minX=Math.min(e.minX,n.x,n.x+c),e.maxX=Math.max(e.maxX,n.x,n.x+c),n.clearContext(t),t.restore(
vendor: 39,261 bytes, line 1
1),n}getChildBoundingBox(t,e,r,i){var n=r.children[i];if("function"!=typeof n.getBoundingBox)return null;var a=n.getBoundingBox(t);return a?(n.children.forEach((r,i)=>{var s=e.getChildBoundingBox(t,e,n,i);a.addBoundingBox(s)}),a):null}renderChild(t,e,r,i){var n=r.children[i];n.render(t),n.children.forEach((r,i)=>{e.renderChild(t,e,n,i)})}measureText(t){var{measureCache:e}=this;if(~e)return e;var r=this.getText(),i=this.measureTargetText(t,r);return this.measureCache=i,i}measureTargetText(t,e){if(!e.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var n=this.getFontSize(),a=i.isRTL?e.split("").reverse().join(""):e,s=ol(r.getAttribute("dx").getString()),o=a.length,h=0,u=0;u<o;u++){h+=(this.getGlyph(i,a,u).horizAdvX||i.horizAdvX)*n/i.fontFace.unitsPerEm,void 0===s[u]||isNaN(s[u])||(h+=s[u])}return h}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);var{width:l}=t.measureText(e);return this.clearContext(t),t.restore(),l}getInheritedAttribute(t){for(var e=this;e instanceof oc&&e.isFirstChild();){var r=e.parent.getAttribute(t);if(r.hasValue(!0))return r.getValue("0");e=e.parent}return null}}class hc extends oc{constructor(t,e,r){super(t,e,new.target===hc||r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class uc extends hc{constructor(){super(...arguments),this.type="textNode"}}class lc extends nc{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,{document:r}=this,{screen:i,window:n}=r,a=t.canvas;if(i.setDefaults(t),a.style&&void 0!==t.font&&n&&void 0!==n.getComputedStyle){t.font=n.getComputedStyle(a).getPropertyValue("font");var s=new Nl(r,"fontSize",ec.parse(t.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:h}=i.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var u=this.getAttribute("refX"),l=this.getAttribute("refY"),c=this.getAttribute("viewBox"),f=c.hasValue()?ol(c.getString()):null,d=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),g=0,p=0,y=0,v=0;f&&(g=f[0],p=f[1]),this.root||(o=this.getStyle("width").getPixels("x"),h=this.getStyle("height").getPixels("y"),"marker"===this.type&&(y=g,v=p,g=0,p=0)),i.viewPort.setCurrent(o,h),!this.node||this.parent&&"foreignObject"!==(null===(e=this.node.parentNode)||void 0===e?void 0:e.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),f&&(o=f[2],h=f[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:o,height:i.viewPort.height,desiredHeight:h,minX:g,minY:p,refX:u.getValue(),refY:l.getValue(),clip:d,clipX:y,clipY:v}),f&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(o,h))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.getAttribute("width",!0),n=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),s=this.getAttribute("style"),o=i.getNumber(0),h=n.getNumber(0);if(r)if("string"==typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var u=this.getAttribute("preserveAspectRatio");u.hasValue()&&u.setValue(u.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(t),n.setValue(e),a.hasValue()||a.setValue("0 0 ".concat(o||t," ").concat(h||e)),s.hasValue()){var l=this.getStyle("width"),c=this.getStyle("height");l.hasValue()&&l.setValue("".concat(t,"px")),c.hasValue()&&c.setValue("".concat(e,"px"))}}}class cc extends ac{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),a=this.getAttribute("rx"),s=this.getAttribute("ry"),o=a.getPixels("x"),h=s.getPixels("y");if(a.hasValue()&&!s.hasValue()&&(h=o),s.hasValue()&&!a.hasValue()&&(o=h),o=Math.min(o,i/2),h=Math.min(h,n/2),t){var u=(Math.sqrt(2)-1)/3*4;t.beginPath(),n>0&&i>0&&(t.moveTo(e+o,r),t.lineTo(e+i-o,r),t.bezierCurveTo(e+i-o+u*o,r,e+i,r+h-u*h,e+i,r+h),t.lineTo(e+i,r+n-h),t.bezierCurveTo(e+i,r+n-h+u*h,e+i-o+u*o,r+n,e+i-o,r+n),t.lineTo(e+o,r+n),t.bezierCurveTo(e+o-u*o,r+n,e,r+n-h+u*h,e,r+n-h),t.lineTo(e,r+h),t.bezierCurveTo(e,r+h-u*h,e+o-u*o,r,e+o,r),t.closePath())}return new rc(e,r,e+i,r+n)}getMarkers(){return null}}class fc extends ac{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return t&&i>0&&(t.beginPath(),t.arc(e,r,i,0,2*Math.PI,!1),t.closePath()),new rc(e-i,r-i,e+i,r+i)}getMarkers(){return null}}class dc extends ac{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return t&&r>0&&i>0&&(t.beginPath(),t.moveTo(n+r,a),t.bezierCurveTo(n+r,a+e*i,n+e*r,a+i,n,a+i),t.bezierCurveTo(n-e*r,a+i,n-r,a+e*i,n-r,a),t.bezierCurveTo(n-r,a-e*i,n-e*r,a-i,n,a-i),t.bezierCurveTo(n+e*r,a-i,n+r,a-e*i,n+r,a),t.closePath()),new rc(n-r,a-i,n+r,a+i)}getMarkers(){return null}}class gc extends ac{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Il(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Il(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:r},{x:i,y:n}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,r),t.lineTo(i,n)),new rc(e,r,i,n)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class pc extends ac{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=Il.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:i}]=e,n=new rc(r,i);return t&&(t.beginPath(),t.moveTo(r,i)),e.forEach(e=>{var{x:r,y:i}=e;n.addPoint(r,i),t&&t.lineTo(r,i)}),n}getMarkers(){var{points:t}=this,e=t.length-1,r=[];return t.forEach((i,n)=>{n!==e&&r.push([i,i.angleTo(t[n+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}class yc extends pc{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:r,y:i}]=this.points;return t&&(t.lineTo(r,i),t.closePath()),e}}class vc extends Zl{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,r){var i=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),a=new lc(this.document,null);a.attributes.viewBox=new Nl(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new Nl(this.document,"width","".concat(i,"px")),a.attributes.height=new Nl(this.document,"height","".concat(n,"px")),a.attributes.transform=new Nl(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var s=this.document.createCanvas(i,n),o=s.getContext("2d"),h=this.getAttribute("x"),u=this.getAttribute("y");h.hasValue()&&u.hasValue()&&o.translate(h.getPixels("x",!0),u.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var l=-1;l<=1;l++)for(var c=-1;c<=1;c++)o.save(),a.attributes.x=new Nl(this.document,"x",l*s.width),a.attributes.y=new Nl(this.document,"y",c*s.height),a.render(o),o.restore();return t.createPattern(s,"repeat")}}class mc extends Zl{constructor(){super(...arguments),this.type="marker"}render(t,e,r){if(e){var{x:i,y:n}=e,a=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(i,n),"auto"===a&&t.rotate(r),"strokeWidth"===s&&t.scale(t.lineWidth,t.lineWidth),t.save();var o=new lc(this.document,null);o.type=this.type,o.attributes.viewBox=new Nl(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new Nl(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new Nl(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new Nl(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new Nl(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new Nl(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new Nl(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new Nl(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(t),t.restore(),"strokeWidth"===s&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===a&&t.rotate(-r),t.translate(-i,-n)}}}class bc extends Zl{constructor(){super(...arguments),this.type="defs"}render(){}}class xc extends nc{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new rc;return this.children.forEach(r=>{e.addBoundingBox(r.getBoundingBox(t))}),e}}class wc extends Zl{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:n}=this;n.forEach(t=>{"stop"===t.type&&i.push(t)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:n}=i,a=this.getGradient(t,e);if(!a)return this.addParentOpacity(r,n[n.length-1].color);if(n.forEach(t=>{a.addColorStop(t.offset,this.addParentOpacity(r,t.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:h}=s.screen,[u]=h.viewPorts,l=new cc(s,null);l.attributes.x=new Nl(s,"x",-o/3),l.attributes.y=new Nl(s,"y",-o/3),l.attributes.width=new Nl(s,"width",o),l.attributes.height=new Nl(s,"height",o);var c=new xc(s,null);c.attributes.transform=new Nl(s,"transform",this.getAttribute("gradientTransform").getValue()),c.children=[l];var f=new lc(s,null);f.attributes.x=new Nl(s,"x",0),f.attributes.y=new Nl(s,"y",0),f.attributes.width=new Nl(s,"width",u.width),f.attributes.height=new Nl(s,"height",u.height),f.children=[c];var d=s.createCanvas(u.width,u.height),g=d.getContext("2d");return g.fillStyle=a,f.render(g),g.createPattern(d,"no-repeat")}return a}inheritStopContainer(t){this.attributesToInherit.forEach(e=>{!this.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&this.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())})}addParentOpacity(t,e){return t.hasValue()?new Nl(this.document,"color",e).addOpacity(t).getColor():e}}class Sc extends wc{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),i=r?e.getBoundingBox(t):null;if(r&&!i)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=r?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===s&&a===o?null:t.createLinearGradient(n,a,s,o)}}class _c extends wc{constructor(t,e,r){super(t,e,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),i=e.getBoundingBox(t);if(r&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=n,o=a;this.getAttribute("fx").hasValue()&&(s=r?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=r?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var h=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return t.createRadialGradient(s,o,u,n,a,h)}}class Ac extends Zl{constructor(t,e,r){super(t,e,r),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),a=this.getStyle("stop-color",!0);""===a.getString()&&a.setValue("#000"),n.hasValue()&&(a=a.addOpacity(n)),this.offset=i,this.color=a.getColor()}}class Tc extends Zl{constructor(t,e,r){super(t,e,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new Nl(t,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:r,to:i}=this.getProgress(),n=r.getNumber()+(i.getNumber()-r.getNumber())*e;return"%"===t&&(n*=100),"".concat(n).concat(t)}update(t){var{parent:e}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==i||this.frozen){if("remove"===i&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;var n=!1;if(this.begin<this.duration){var a=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var o=s.getString();a="".concat(o,"(").concat(a,")")}r.setValue(a),n=!0}return n}getProgress(){var{document:t,values:e}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var i=r.progress*(e.getValue().length-1),n=Math.floor(i),a=Math.ceil(i);r.from=new Nl(t,"from",parseFloat(e.getValue()[n])),r.to=new Nl(t,"to",parseFloat(e.getValue()[a])),r.progress=(i-n)/(a-n)}else r.from=this.from,r.to=this.to;return r}}class Ec extends Tc{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),i=new wu(e.getColor()),n=new wu(r.getColor());if(i.ok&&n.ok){var a=i.r+(n.r-i.r)*t,s=i.g+(n.g-i.g)*t,o=i.b+(n.b-i.b)*t;return"rgb(".concat(Math.floor(a),", ").concat(Math.floor(s),", ").concat(Math.floor(o),")")}return this.getAttribute("from").getColor()}}class Oc extends Tc{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),i=ol(e.getString()),n=ol(r.getString());return i.map((e,r)=>e+(n[r]-e)*t).join(" ")}}class Cc extends Zl{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=t,{children:n}=this;for(var a of n)switch(a.type){case"font-face":this.fontFace=a;var s=a.getStyle("font-family");s.hasValue()&&(i[s.getString()]=this);break;case"missing-glyph":this.missingGlyph=a;break;case"glyph":var o=a;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[o.unicode]&&(this.glyphs[o.unicode]=Object.create(null)),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o}}render(){}}class kc extends Zl{constructor(t,e,r){super(t,e,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class Pc extends ac{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class Mc extends oc{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}class Nc extends oc{constructor(t,e,r){super(t,e,r),this.type="a";var{childNodes:i}=e,n=i[0],a=i.length>0&&Array.from(i).every(t=>3===t.nodeType);this.hasText=a,this.text=a?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:r,y:i}=this,{mouse:n}=e.screen,a=new Nl(e,"fontSize",ec.parse(e.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new rc(r,i-a.getPixels("y"),r+this.measureText(t),i))}else if(this.children.length>0){var s=new xc(this.document,null);s.children=this.children,s.parent=this,s.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}function Rc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function Ic(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rc(Object(r),!0).forEach(function(e){Wh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rc(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}class Vc extends oc{constructor(t,e,r){super(t,e,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var i=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(i)}getText(){return this.text}path(t){var{dataArray:e}=this;t&&t.beginPath(),e.forEach(e=>{var{type:r,points:i}=e;switch(r){case ic.LINE_TO:t&&t.lineTo(i[0],i[1]);break;case ic.MOVE_TO:t&&t.moveTo(i[0],i[1]);break;case ic.CURVE_TO:t&&t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case ic.QUAD_TO:t&&t.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case ic.ARC:var[n,a,s,o,h,u,l,c]=i,f=s>o?s:o,d=s>o?1:s/o,g=s>o?o/s:1;t&&(t.translate(n,a),t.rotate(l),t.scale(d,g),t.arc(0,0,f,h,h+u,Boolean(1-c)),t.scale(1/d,1/g),t.rotate(-l),t.translate(-n,-a));break;case ic.CLOSE_PATH:t&&t.closePath()}})}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,n=t.fillStyle;"underline"===e&&t.beginPath(),i.forEach((i,n)=>{var{p0:a,p1:s,rotation:o,text:h}=i;t.save(),t.translate(a.x,a.y),t.rotate(o),t.fillStyle&&t.fillText(h,0,0),t.strokeStyle&&t.strokeText(h,0,0),t.restore(),"underline"===e&&(0===n&&t.moveTo(a.x,a.y+r/8),t.lineTo(s.x,s.y+r/5))}),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=n,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[t]||0}findSegmentToFitChar(t,e,r,i,n,a,s,o,h){var u=a,l=this.measureText(t,o);" "===o&&"justify"===e&&r<i&&(l+=(i-r)/n),h>-1&&(u+=this.getLetterSpacingAt(h));var c=this.textHeight/20,f=this.getEquidistantPointOnPath(u,c,0),d=this.getEquidistantPointOnPath(u+l,c,0),g={p0:f,p1:d},p=f&&d?Math.atan2(d.y-f.y,d.x-f.x):0;if(s){var y=Math.cos(Math.PI/2+p)*s,v=Math.cos(-p)*s;g.p0=Ic(Ic({},f),{},{x:f.x+y,y:f.y+v}),g.p1=Ic(Ic({},d),{},{x:d.x+y,y:d.y+v})}return{offset:u+=l,segment:g,rotation:p}}measureText(t,e){var{measuresCache:r}=this,i=e||this.getText();if(r.has(i))return r.get(i);var n=this.measureTargetText(t,i);return r.set(i,n),n}setTextData(t){if(!this.glyphInfo){var e=this.getText(),r=e.split(""),i=e.split(" ").length-1,n=this.parent.getAttribute("dx").split().map(t=>t.getPixels("x")),a=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),h=this.parent.getStyle("letter-spacing"),u=0;o.hasValue()&&"inherit"!==o.getValue()?o.hasValue()&&"initial"!==o.getValue()&&"unset"!==o.getValue()&&(u=o.getPixels()):u=h.getPixels();var l=[],c=e.length;this.letterSpacingCache=l;for(var f=0;f<c;f++)l.push(void 0!==n[f]?n[f]:u);var d=l.reduce((t,e,r)=>0===r?0:t+e||0,0),g=this.measureText(t),p=Math.max(g+d,0);this.textWidth=g,this.textHeight=this.getFontSize(),this.glyphInfo=[];var y=this.getPathLength(),v=this.getStyle("startOffset").getNumber(0)*y,m=0;"middle"!==s&&"center"!==s||(m=-p/2),"end"!==s&&"right"!==s||(m=-p),m+=v,r.forEach((e,n)=>{var{offset:o,segment:h,rotation:u}=this.findSegmentToFitChar(t,s,p,y,i,m,a,e,n);m=o,h.p0&&h.p1&&this.glyphInfo.push({text:r[n],p0:h.p0,p1:h.p1,rotation:u})})}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:r}=t;for(r.reset();!r.isEnd();){var{current:i}=r,n=i?i.x:0,a=i?i.y:0,s=r.next(),o=s.type,h=[];switch(s.type){case ic.MOVE_TO:this.pathM(r,h);break;case ic.LINE_TO:o=this.pathL(r,h);break;case ic.HORIZ_LINE_TO:o=this.pathH(r,h);break;case ic.VERT_LINE_TO:o=this.pathV(r,h);break;case ic.CURVE_TO:this.pathC(r,h);break;case ic.SMOOTH_CURVE_TO:o=this.pathS(r,h);break;case ic.QUAD_TO:this.pathQ(r,h);break;case ic.SMOOTH_QUAD_TO:o=this.pathT(r,h);break;case ic.ARC:h=this.pathA(r);break;case ic.CLOSE_PATH:ac.pathZ(r)}s.type!==ic.CLOSE_PATH?e.push({type:o,points:h,start:{x:n,y:a},pathLength:this.calcLength(n,a,o,h)}):e.push({type:ic.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:i}=ac.pathM(t).point;e.push(r,i)}pathL(t,e){var{x:r,y:i}=ac.pathL(t).point;return e.push(r,i),ic.LINE_TO}pathH(t,e){var{x:r,y:i}=ac.pathH(t).point;return e.push(r,i),ic.LINE_TO}pathV(t,e){var{x:r,y:i}=ac.pathV(t).point;return e.push(r,i),ic.LINE_TO}pathC(t,e){var{point:r,controlPoint:i,currentPoint:n}=ac.pathC(t);e.push(r.x,r.y,i.x,i.y,n.x,n.y)}pathS(t,e){var{point:r,controlPoint:i,currentPoint:n}=ac.pathS(t);return e.push(r.x,r.y,i.x,i.y,n.x,n.y),ic.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:i}=ac.pathQ(t);e.push(r.x,r.y,i.x,i.y)}pathT(t,e){var{controlPoint:r,currentPoint:i}=ac.pathT(t);return e.push(r.x,r.y,i.x,i.y),ic.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:i,xAxisRotation:n,centp:a,a1:s,ad:o}=ac.pathA(t);return 0===i&&o>0&&(o-=2*Math.PI),1===i&&o<0&&(o+=2*Math.PI),[a.x,a.y,e,r,s,o,n,i]}calcLength(t,e,r,i){var n=0,a=null,s=null,o=0;switch(r){case ic.LINE_TO:return this.getLineLength(t,e,i[0],i[1]);case ic.CURVE_TO:for(n=0,a=this.getPointOnCubicBezier(0,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),o=.01;o<=1;o+=.01)s=this.getPointOnCubicBezier(o,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),n+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return n;case ic.QUAD_TO:for(n=0,a=this.getPointOnQuadraticBezier(0,t,e,i[0],i[1],i[2],i[3]),o=.01;o<=1;o+=.01)s=this.getPointOnQuadraticBezier(o,t,e,i[0],i[1],i[2],i[3]),n+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return n;case ic.ARC:n=0;var h=i[4],u=i[5],l=i[4]+u,c=Math.PI/180;if(Math.abs(h-l)<c&&(c=Math.abs(h-l)),a=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],h,0),u<0)for(o=h-c;o>l;o-=c)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],o,0),n+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(o=h+c;o<l;o+=c)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],o,0),n+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),n+=this.getLineLength(a.x,a.y,s.x,s.y)}return 0}getPointOnLine(t,e,r,i,n){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,o=(n-r)/(i-e+wl),h=Math.sqrt(t*t/(1+o*o));i<e&&(h*=-1);var u=o*h,l=null;if(i===e)l={x:a,y:s+u};else if((s-r)/(a-e+wl)===o)l={x:a+h,y:s+u};else{var c,f,d=this.getLineLength(e,r,i,n);if(d<wl)return null;var g=(a-e)*(i-e)+(s-r)*(n-r);c=e+(g/=d*d)*(i-e),f=r+g*(n-r);var p=this.getLineLength(a,s,c,f),y=Math.sqrt(t*t-p*p);h=Math.sqrt(y*y/(1+o*o)),i<e&&(h*=-1),l={x:c+h,y:f+(u=o*h)}}return l}getPointOnPath(t){var e=this.getPathLength(),r=0,i=null;if(t<-5e-5||t-5e-5>e)return null;var{dataArray:n}=this;for(var a of n){if(!a||!(a.pathLength<5e-5||r+a.pathLength+5e-5<t)){var s=t-r,o=0;switch(a.type){case ic.LINE_TO:i=this.getPointOnLine(s,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case ic.ARC:var h=a.points[4],u=a.points[5],l=a.points[4]+u;if(o=h+s/a.pathLength*u,u<0&&o<l||u>=0&&o>l)break;i=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],o,a.points[6]);break;case ic.CURVE_TO:(o=s/a.pathLength)>1&&(o=1),i=this.getPointOnCubicBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case ic.QUAD_TO:(o=s/a.pathLength)>1&&(o=1),i=this.getPointOnQuadraticBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3])}if(i)return i;break}r+=a.pathLength}return null}getLineLength(t,e,r,i){return Math.sqrt((r-t)*(r-t)+(i-e)*(i-e))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((t,e)=>e.pathLength>0?t+e.pathLength:t,0)),this.pathLength}getPointOnCubicBezier(t,e,r,i,n,a,s,o,h){return{x:o*Tl(t)+a*El(t)+i*Ol(t)+e*Cl(t),y:h*Tl(t)+s*El(t)+n*Ol(t)+r*Cl(t)}}getPointOnQuadraticBezier(t,e,r,i,n,a,s){return{x:a*kl(t)+i*Pl(t)+e*Ml(t),y:s*kl(t)+n*Pl(t)+r*Ml(t)}}getPointOnEllipticalArc(t,e,r,i,n,a){var s=Math.cos(a),o=Math.sin(a),h=r*Math.cos(n),u=i*Math.sin(n);return{x:t+(h*s-u*o),y:e+(h*o+u*s)}}buildEquidistantCache(t,e){var r=this.getPathLength(),i=e||.25,n=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==i){this.equidistantCache={step:n,precision:i,points:[]};for(var a=0,s=0;s<=r;s+=i){var o=this.getPointOnPath(s),h=this.getPointOnPath(s+i);o&&h&&((a+=this.getLineLength(o.x,o.y,h.x,h.y))>=n&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:s}),a-=n))}}}getEquidistantPointOnPath(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var i=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}var Lc=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class Dc extends nc{constructor(t,e,r){super(t,e,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var n=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);t.images.push(this),n?this.loadSvg(i):this.loadImage(i),this.isSvg=n}}loadImage(t){var e=this;return go(function*(){try{var r=yield e.document.createImage(t);e.image=r}catch(i){}e.loaded=!0})()}loadSvg(t){var e=this;return go(function*(){var r=Lc.exec(t);if(r){var i=r[5];"base64"===r[4]?e.image=atob(i):e.image=decodeURIComponent(i)}else try{var n=yield e.document.fetch(t),a=yield n.text();e.image=a}catch(s){}e.loaded=!0})()}renderChildren(t){var{document:e,image:r,loaded:i}=this,n=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(i&&r&&s&&o){if(t.save(),t.translate(n,a),this.isSvg){var h=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:o});h.document.documentElement.parent=this,h.render()}else{var u=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:u.width,height:o,desiredHeight:u.height}),this.loaded&&(void 0===u.complete||u.complete)&&t.drawImage(u,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new rc(t,e,t+r,e+i)}}class Uc extends nc{constructor(){super(...arguments),this.type="symbol"}render(t){}}class Bc{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var r=this;return go(function*(){try{var{document:i}=r,n=(yield i.canvg.parser.load(e)).getElementsByTagName("font");Array.from(n).forEach(e=>{var r=i.createElement(e);i.definitions[t]=r})}catch(a){}r.loaded=!0})()}}class Fc extends Zl{constructor(t,e,r){super(t,e,r),this.type="style",nl(Array.from(e.childNodes).map(t=>t.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(e=>{var r=e.trim();if(r){var i=r.split("{"),n=i[0].split(","),a=i[1].split(";");n.forEach(e=>{var r=e.trim();if(r){var i=t.styles[r]||{};if(a.forEach(e=>{var r=e.indexOf(":"),n=e.substr(0,r).trim(),a=e.substr(r+1,e.length-r).trim();n&&a&&(i[n]=new Nl(t,n,a))}),t.styles[r]=i,t.stylesSpecificity[r]=xl(r),"@font-face"===r){var n=i["font-family"].getString().replace(/"|'/g,"");i.src.getString().split(",").forEach(e=>{if(e.indexOf('format("svg")')>0){var r=ll(e);r&&new Bc(t).load(n,r)}})}}})}})}}Fc.parseExternalUrl=ll;class jc extends nc{constructor(){super(...arguments),this.type="use"}setContext(t){super.setContext(t);var e=this.getAttribute("x"),r=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}path(t){var{element:e}=this;e&&e.path(t)}renderChildren(t){var{document:e,element:r}=this;if(r){var i=r;if("symbol"===r.type&&((i=new lc(e,null)).attributes.viewBox=new Nl(e,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new Nl(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new Nl(e,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new Nl(e,"opacity",this.calculateOpacity())),"svg"===i.type){var n=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);n.hasValue()&&(i.attributes.width=new Nl(e,"width",n.getString())),a.hasValue()&&(i.attributes.height=new Nl(e,"height",a.getString()))}var s=i.parent;i.parent=this,i.render(t),i.parent=s}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return Gl.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function zc(t,e,r,i,n,a){return t[r*i*4+4*e+a]}function Hc(t,e,r,i,n,a,s){t[r*i*4+4*e+a]=s}function Xc(t,e,r){return t[e]*r}function Yc(t,e,r,i){return e+Math.cos(t)*r+Math.sin(t)*i}class Wc extends Zl{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var i=ol(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var n=i[0];i=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var a=i[0]*Math.PI/180;i=[Yc(a,.213,.787,-.213),Yc(a,.715,-.715,-.715),Yc(a,.072,-.072,.928),0,0,Yc(a,.213,-.213,.143),Yc(a,.715,.285,.14),Yc(a,.072,-.072,-.283),0,0,Yc(a,.213,-.213,-.787),Yc(a,.715,-.715,.715),Yc(a,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,r,i,n){for(var{includeOpacity:a,matrix:s}=this,o=t.getImageData(0,0,i,n),h=0;h<n;h++)for(var u=0;u<i;u++){var l=zc(o.data,u,h,i,0,0),c=zc(o.data,u,h,i,0,1),f=zc(o.data,u,h,i,0,2),d=zc(o.data,u,h,i,0,3),g=Xc(s,0,l)+Xc(s,1,c)+Xc(s,2,f)+Xc(s,3,d)+Xc(s,4,1),p=Xc(s,5,l)+Xc(s,6,c)+Xc(s,7,f)+Xc(s,8,d)+Xc(s,9,1),y=Xc(s,10,l)+Xc(s,11,c)+Xc(s,12,f)+Xc(s,13,d)+Xc(s,14,1),v=Xc(s,15,l)+Xc(s,16,c)+Xc(s,17,f)+Xc(s,18,d)+Xc(s,19,1);a&&(g=0,p=0,y=0,v*=d/255),Hc(o.data,u,h,i,0,0,g),Hc(o.data,u,h,i,0,1,p),Hc(o.data,u,h,i,0,2,y),Hc(o.data,u,h,i,0,3,v)}t.clearRect(0,0,i,n),t.putImageData(o,0,0)}}class $c extends Zl{constructor(){super(...arguments),this.type="mask"}apply(t,e){var{document:r}=this,i=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!a&&!s){var o=new rc;this.children.forEach(e=>{o.addBoundingBox(e.getBoundingBox(t))}),i=Math.floor(o.x1),n=Math.floor(o.y1),a=Math.floor(o.width),s=Math.floor(o.height)}var h=this.removeStyles(e,$c.ignoreStyles),u=r.createCanvas(i+a,n+s),l=u.getContext("2d");r.screen.setDefaults(l),this.renderChildren(l),new Wc(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(l,0,0,i+a,n+s);var c=r.createCanvas(i+a,n+s),f=c.getContext("2d");r.screen.setDefaults(f),e.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=l.createPattern(u,"no-repeat"),f.fillRect(0,0,i+a,n+s),t.fillStyle=f.createPattern(c,"no-repeat"),t.fillRect(0,0,i+a,n+s),this.restoreStyles(e,h)}render(t){}}$c.ignoreStyles=["mask","transform","clip-path"];var qc=()=>{};class Gc extends Zl{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,r=Reflect.getPrototypeOf(t),{beginPath:i,closePath:n}=t;r&&(r.beginPath=qc,r.closePath=qc),Reflect.apply(i,t,[]),this.children.forEach(i=>{if(void 0!==i.path){var a=void 0!==i.elementTransform?i.elementTransform():null;a||(a=Gl.fromElement(e,i)),a&&a.apply(t),i.path(t),r&&(r.closePath=n),a&&a.unapply(t)}}),Reflect.apply(n,t,[]),t.clip(),r&&(r.beginPath=i,r.closePath=n)}render(t){}}class Zc extends Zl{constructor(){super(...arguments),this.type="filter"}apply(t,e){var{document:r,children:i}=this,n=e.getBoundingBox(t);if(n){var a=0,s=0;i.forEach(t=>{var e=t.extraFilterDistance||0;a=Math.max(a,e),s=Math.max(s,e)});var o=Math.floor(n.width),h=Math.floor(n.height),u=o+2*a,l=h+2*s;if(!(u<1||l<1)){var c=Math.floor(n.x),f=Math.floor(n.y),d=this.removeStyles(e,Zc.ignoreStyles),g=r.createCanvas(u,l),p=g.getContext("2d");r.screen.setDefaults(p),p.translate(-c+a,-f+s),e.render(p),i.forEach(t=>{"function"==typeof t.apply&&t.apply(p,0,0,u,l)}),t.drawImage(g,0,0,u,l,c-a,f-s,u,l),this.restoreStyles(e,d)}}}render(t){}}Zc.ignoreStyles=["filter","transform","clip-path"];class Qc extends Zl{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,i,n){}}class Kc extends Zl{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,i,n){}}class Jc extends Zl{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,i,n){}}class tf extends Zl{constructor(t,e,r){super(t,e,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,e,r,i,n){var{document:a,blurRadius:s}=this,o=a.window?a.window.document.body:null,h=t.canvas;h.id=a.getUniqueId(),o&&(h.style.display="none",o.appendChild(h)),el(h,e,r,i,n,s),o&&o.removeChild(h)}}class ef extends Zl{constructor(){super(...arguments),this.type="title"}}class rf extends Zl{constructor(){super(...arguments),this.type="desc"}}var nf={svg:lc,rect:cc,circle:fc,ellipse:dc,line:gc,polyline:pc,polygon:yc,path:ac,pattern:vc,marker:mc,defs:bc,linearGradient:Sc,radialGradient:_c,stop:Ac,animate:Tc,animateColor:Ec,animateTransform:Oc,font:Cc,"font-face":kc,"missing-glyph":Pc,glyph:sc,text:oc,tspan:hc,tref:Mc,a:Nc,textPath:Vc,image:Dc,g:xc,symbol:Uc,style:Fc,use:jc,mask:$c,clipPath:Gc,filter:Zc,feDropShadow:Qc,feMorphology:Kc,feComposite:Jc,feColorMatrix:Wc,feGaussianBlur:tf,title:ef,desc:rf};function af(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function sf(){return sf=go(function*(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.createElement("img");return e&&(r.crossOrigin="Anonymous"),new Promise((e,i)=>{r.onload=()=>{e(r)},r.onerror=(t,e,r,n,a)=>{i(a)},r.src=t})}),sf.apply(this,arguments)}class of{constructor(t){var{rootEmSize:e=12,emSize:r=12,createCanvas:i=of.createCanvas,createImage:n=of.createImage,anonymousCrossOrigin:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=t,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=e,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(n,a),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(t,e){return"boolean"==typeof e?(r,i)=>t(r,"boolean"==typeof i?i:e):t}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:t}=this;return t[t.length-1]}set emSize(t){var{emSizeStack:e}=this;e.push(t)}popEmSize(){var{emSizeStack:t}=this;t.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(t=>t.loaded)}isFontsLoaded(){return this.fonts.every(t=>t.loaded)}createDocumentElement(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}createElement(t){var e=t.nodeName.replace(/^[^:]+:/,""),r=of.elementTypes[e];return void 0!==r?new r(this,t):new Ql(this,t)}createTextNode(t){return new uc(this,t)}setViewBox(t){this.screen.setViewBox(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?af(Object(r),!0).forEach(function(e){Wh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):af(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({document:this},t))}}function hf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function uf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?hf(Object(r),!0).forEach(function(e){Wh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hf(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}of.createCanvas=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r},of.createImage=function(t){return sf.apply(this,arguments)},of.elementTypes=nf;class lf{constructor(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new jl(r),this.screen=new Ul(t,r),this.options=r;var i=new of(this,r),n=i.createDocumentElement(e);this.document=i,this.documentElement=n}static from(t,e){var r=arguments;return go(function*(){var i=r.length>2&&void 0!==r[2]?r[2]:{},n=new jl(i),a=yield n.parse(e);return new lf(t,a,i)})()}static fromString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new jl(r).parseFromString(e);return new lf(t,i,r)}fork(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return lf.from(t,e,uf(uf({},this.options),r))}forkString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return lf.fromString(t,e,uf(uf({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return go(function*(){var r=t.length>0&&void 0!==t[0]?t[0]:{};e.start(uf({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield e.ready(),e.stop()})()}start(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:e,screen:r,options:i}=this;r.start(e,uf(uf({enableRedraw:!0},i),t))}stop(){this.screen.stop()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(t,e,r)}}const cf=Object.freeze(Object.defineProperty({__proto__:null,AElement:Nc,AnimateColorElement:Ec,AnimateElement:Tc,AnimateTransformElement:Oc,BoundingBox:rc,CB1:Tl,CB2:El,CB3:Ol,CB4:Cl,Canvg:lf,CircleElement:fc,ClipPathElement:Gc,DefsElement:bc,DescElement:rf,Document:of,Element:Zl,EllipseElement:dc,FeColorMatrixElement:Wc,FeCompositeElement:Jc,FeDropShadowElement:Qc,FeGaussianBlurElement:tf,FeMorphologyElement:Kc,FilterElement:Zc,Font:ec,FontElement:Cc,FontFaceElement:kc,GElement:xc,GlyphElement:sc,GradientElement:wc,ImageElement:Dc,LineElement:gc,LinearGradientElement:Sc,MarkerElement:mc,MaskElement:$c,Matrix:Yl,MissingGlyphElement:Pc,Mouse:Vl,PSEUDO_ZERO:wl,Parser:jl,PathElement:ac,PathParser:ic,PatternElement:vc,Point:Il,PolygonElement:yc,PolylineElement:pc,Property:Nl,QB1:kl,QB2:Pl,QB3:Ml,RadialGradientElement:_c,RectElement:cc,RenderedElement:nc,Rotate:Hl,SVGElement:lc,SVGFontLoader:Bc,Scale:Xl,Screen:Ul,Skew:Wl,SkewX:$l,SkewY:ql,StopElement:Ac,StyleElement:Fc,SymbolElement:Uc,TRefElement:Mc,TSpanElement:hc,TextElement:oc,TextPathElement:Vc,TitleElement:ef,Transform:Gl,Translate:zl,UnknownElement:Ql,UseElement:jc,ViewPort:Rl,compressSpaces:nl,default:lf,getSelectorSpecificity:xl,normalizeAttributeName:ul,normalizeColor:cl,parseExternalUrl:ll,presets:il,toNumbers:ol,trimLeft:al,trimRight:sl,vectorMagnitude:Sl,vectorsAngle:Al,vectorsRatio:_l},Symbol.toStringTag,{value:"Module"}));export{r as _,we as d,cf as i};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.