ileaf-text-editor
Version:
A React-based rich text editor library with Quill.js, featuring PDF/DOCX export, print support, and extensive customization options
401 lines • 1.32 MB
JavaScript
(function(Er,mr){typeof exports=="object"&&typeof module<"u"?mr(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],mr):(Er=typeof globalThis<"u"?globalThis:Er||self,mr(Er.ILeafTextEditor={},Er.React))})(this,function(Er,mr){"use strict";var Zn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Uc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Nc={exports:{}},Vl={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var A2;function KI(){if(A2)return Vl;A2=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(r,i,A){var s=null;if(A!==void 0&&(s=""+A),i.key!==void 0&&(s=""+i.key),"key"in i){A={};for(var a in i)a!=="key"&&(A[a]=i[a])}else A=i;return i=A.ref,{$$typeof:n,type:r,key:s,ref:i!==void 0?i:null,props:A}}return Vl.Fragment=e,Vl.jsx=t,Vl.jsxs=t,Vl}var Gl={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var s2;function VI(){return s2||(s2=1,process.env.NODE_ENV!=="production"&&function(){function n($){if($==null)return null;if(typeof $=="function")return $.$$typeof===ae?null:$.displayName||$.name||null;if(typeof $=="string")return $;switch($){case g:return"Fragment";case p:return"Profiler";case w:return"StrictMode";case T:return"Suspense";case M:return"SuspenseList";case R:return"Activity"}if(typeof $=="object")switch(typeof $.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case m:return"Portal";case b:return($.displayName||"Context")+".Provider";case v:return($._context.displayName||"Context")+".Consumer";case B:var te=$.render;return $=$.displayName,$||($=te.displayName||te.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case D:return te=$.displayName||null,te!==null?te:n($.type)||"Memo";case j:te=$._payload,$=$._init;try{return n($(te))}catch{}}return null}function e($){return""+$}function t($){try{e($);var te=!1}catch{te=!0}if(te){te=console;var F=te.error,H=typeof Symbol=="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object";return F.call(te,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",H),e($)}}function r($){if($===g)return"<>";if(typeof $=="object"&&$!==null&&$.$$typeof===j)return"<...>";try{var te=n($);return te?"<"+te+">":"<...>"}catch{return"<...>"}}function i(){var $=L.A;return $===null?null:$.getOwner()}function A(){return Error("react-stack-top-frame")}function s($){if(x.call($,"key")){var te=Object.getOwnPropertyDescriptor($,"key").get;if(te&&te.isReactWarning)return!1}return $.key!==void 0}function a($,te){function F(){z||(z=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",te))}F.isReactWarning=!0,Object.defineProperty($,"key",{get:F,configurable:!0})}function o(){var $=n(this.type);return Y[$]||(Y[$]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),$=this.props.ref,$!==void 0?$:null}function l($,te,F,H,G,X,J,O){return F=X.ref,$={$$typeof:c,type:$,key:te,props:X,_owner:G},(F!==void 0?F:null)!==null?Object.defineProperty($,"ref",{enumerable:!1,get:o}):Object.defineProperty($,"ref",{enumerable:!1,value:null}),$._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty($,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty($,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:J}),Object.defineProperty($,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:O}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$}function u($,te,F,H,G,X,J,O){var U=te.children;if(U!==void 0)if(H)if(Q(U)){for(H=0;H<U.length;H++)f(U[H]);Object.freeze&&Object.freeze(U)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(U);if(x.call(te,"key")){U=n($);var ee=Object.keys(te).filter(function(W){return W!=="key"});H=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",Ae[U+H]||(ee=0<ee.length?"{"+ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,H,U,ee,U),Ae[U+H]=!0)}if(U=null,F!==void 0&&(t(F),U=""+F),s(te)&&(t(te.key),U=""+te.key),"key"in te){F={};for(var re in te)re!=="key"&&(F[re]=te[re])}else F=te;return U&&a(F,typeof $=="function"?$.displayName||$.name||"Unknown":$),l($,U,X,G,i(),F,J,O)}function f($){typeof $=="object"&&$!==null&&$.$$typeof===c&&$._store&&($._store.validated=1)}var h=mr,c=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),ae=Symbol.for("react.client.reference"),L=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,x=Object.prototype.hasOwnProperty,Q=Array.isArray,C=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function($){return $()}};var z,Y={},V=h["react-stack-bottom-frame"].bind(h,A)(),ie=C(r(A)),Ae={};Gl.Fragment=g,Gl.jsx=function($,te,F,H,G){var X=1e4>L.recentlyCreatedOwnerStacks++;return u($,te,F,!1,H,G,X?Error("react-stack-top-frame"):V,X?C(r($)):ie)},Gl.jsxs=function($,te,F,H,G){var X=1e4>L.recentlyCreatedOwnerStacks++;return u($,te,F,!0,H,G,X?Error("react-stack-top-frame"):V,X?C(r($)):ie)}}()),Gl}var a2;function GI(){return a2||(a2=1,process.env.NODE_ENV==="production"?Nc.exports=KI():Nc.exports=VI()),Nc.exports}var wt=GI();function Yt(n){"@babel/helpers - typeof";return Yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yt(n)}var kn=Uint8Array,Si=Uint16Array,Ld=Int32Array,Lc=new kn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Oc=new kn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Od=new kn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o2=function(n,e){for(var t=new Si(31),r=0;r<31;++r)t[r]=e+=1<<n[r-1];for(var i=new Ld(t[30]),r=1;r<30;++r)for(var A=t[r];A<t[r+1];++A)i[A]=A-t[r]<<5|r;return{b:t,r:i}},l2=o2(Lc,2),u2=l2.b,Qd=l2.r;u2[28]=258,Qd[258]=28;for(var c2=o2(Oc,0),zI=c2.b,f2=c2.r,Rd=new Si(32768),xr=0;xr<32768;++xr){var Vs=(xr&43690)>>1|(xr&21845)<<1;Vs=(Vs&52428)>>2|(Vs&13107)<<2,Vs=(Vs&61680)>>4|(Vs&3855)<<4,Rd[xr]=((Vs&65280)>>8|(Vs&255)<<8)>>1}for(var OA=function(n,e,t){for(var r=n.length,i=0,A=new Si(e);i<r;++i)n[i]&&++A[n[i]-1];var s=new Si(e);for(i=1;i<e;++i)s[i]=s[i-1]+A[i-1]<<1;var a;if(t){a=new Si(1<<e);var o=15-e;for(i=0;i<r;++i)if(n[i])for(var l=i<<4|n[i],u=e-n[i],f=s[n[i]-1]++<<u,h=f|(1<<u)-1;f<=h;++f)a[Rd[f]>>o]=l}else for(a=new Si(r),i=0;i<r;++i)n[i]&&(a[i]=Rd[s[n[i]-1]++]>>15-n[i]);return a},Gs=new kn(288),xr=0;xr<144;++xr)Gs[xr]=8;for(var xr=144;xr<256;++xr)Gs[xr]=9;for(var xr=256;xr<280;++xr)Gs[xr]=7;for(var xr=280;xr<288;++xr)Gs[xr]=8;for(var zl=new kn(32),xr=0;xr<32;++xr)zl[xr]=5;var WI=OA(Gs,9,0),XI=OA(Gs,9,1),YI=OA(zl,5,0),$I=OA(zl,5,1),Pd=function(n){for(var e=n[0],t=1;t<n.length;++t)n[t]>e&&(e=n[t]);return e},AA=function(n,e,t){var r=e/8|0;return(n[r]|n[r+1]<<8)>>(e&7)&t},kd=function(n,e){var t=e/8|0;return(n[t]|n[t+1]<<8|n[t+2]<<16)>>(e&7)},Dd=function(n){return(n+7)/8|0},h2=function(n,e,t){return(t==null||t>n.length)&&(t=n.length),new kn(n.subarray(e,t))},JI=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],sA=function(n,e,t){var r=new Error(e||JI[n]);if(r.code=n,Error.captureStackTrace&&Error.captureStackTrace(r,sA),!t)throw r;return r},ZI=function(n,e,t,r){var i=n.length,A=0;if(!i||e.f&&!e.l)return t||new kn(0);var s=!t,a=s||e.i!=2,o=e.i;s&&(t=new kn(i*3));var l=function(W){var Z=t.length;if(W>Z){var me=new kn(Math.max(Z*2,W));me.set(t),t=me}},u=e.f||0,f=e.p||0,h=e.b||0,c=e.l,m=e.d,g=e.m,w=e.n,p=i*8;do{if(!c){u=AA(n,f,1);var v=AA(n,f+1,3);if(f+=3,v)if(v==1)c=XI,m=$I,g=9,w=5;else if(v==2){var M=AA(n,f,31)+257,D=AA(n,f+10,15)+4,j=M+AA(n,f+5,31)+1;f+=14;for(var R=new kn(j),ae=new kn(19),L=0;L<D;++L)ae[Od[L]]=AA(n,f+L*3,7);f+=D*3;for(var x=Pd(ae),Q=(1<<x)-1,C=OA(ae,x,1),L=0;L<j;){var z=C[AA(n,f,Q)];f+=z&15;var b=z>>4;if(b<16)R[L++]=b;else{var Y=0,V=0;for(b==16?(V=3+AA(n,f,3),f+=2,Y=R[L-1]):b==17?(V=3+AA(n,f,7),f+=3):b==18&&(V=11+AA(n,f,127),f+=7);V--;)R[L++]=Y}}var ie=R.subarray(0,M),Ae=R.subarray(M);g=Pd(ie),w=Pd(Ae),c=OA(ie,g,1),m=OA(Ae,w,1)}else sA(1);else{var b=Dd(f)+4,B=n[b-4]|n[b-3]<<8,T=b+B;if(T>i){o&&sA(0);break}a&&l(h+B),t.set(n.subarray(b,T),h),e.b=h+=B,e.p=f=T*8,e.f=u;continue}if(f>p){o&&sA(0);break}}a&&l(h+131072);for(var $=(1<<g)-1,te=(1<<w)-1,F=f;;F=f){var Y=c[kd(n,f)&$],H=Y>>4;if(f+=Y&15,f>p){o&&sA(0);break}if(Y||sA(2),H<256)t[h++]=H;else if(H==256){F=f,c=null;break}else{var G=H-254;if(H>264){var L=H-257,X=Lc[L];G=AA(n,f,(1<<X)-1)+u2[L],f+=X}var J=m[kd(n,f)&te],O=J>>4;J||sA(3),f+=J&15;var Ae=zI[O];if(O>3){var X=Oc[O];Ae+=kd(n,f)&(1<<X)-1,f+=X}if(f>p){o&&sA(0);break}a&&l(h+131072);var U=h+G;if(h<Ae){var ee=A-Ae,re=Math.min(Ae,U);for(ee+h<0&&sA(3);h<re;++h)t[h]=r[ee+h]}for(;h<U;++h)t[h]=t[h-Ae]}}e.l=c,e.p=F,e.b=h,e.f=u,c&&(u=1,e.m=g,e.d=m,e.n=w)}while(!u);return h!=t.length&&s?h2(t,0,h):t.subarray(0,h)},us=function(n,e,t){t<<=e&7;var r=e/8|0;n[r]|=t,n[r+1]|=t>>8},Wl=function(n,e,t){t<<=e&7;var r=e/8|0;n[r]|=t,n[r+1]|=t>>8,n[r+2]|=t>>16},Md=function(n,e){for(var t=[],r=0;r<n.length;++r)n[r]&&t.push({s:r,f:n[r]});var i=t.length,A=t.slice();if(!i)return{t:m2,l:0};if(i==1){var s=new kn(t[0].s+1);return s[t[0].s]=1,{t:s,l:1}}t.sort(function(T,M){return T.f-M.f}),t.push({s:-1,f:25001});var a=t[0],o=t[1],l=0,u=1,f=2;for(t[0]={s:-1,f:a.f+o.f,l:a,r:o};u!=i-1;)a=t[t[l].f<t[f].f?l++:f++],o=t[l!=u&&t[l].f<t[f].f?l++:f++],t[u++]={s:-1,f:a.f+o.f,l:a,r:o};for(var h=A[0].s,r=1;r<i;++r)A[r].s>h&&(h=A[r].s);var c=new Si(h+1),m=Hd(t[u-1],c,0);if(m>e){var r=0,g=0,w=m-e,p=1<<w;for(A.sort(function(M,D){return c[D.s]-c[M.s]||M.f-D.f});r<i;++r){var v=A[r].s;if(c[v]>e)g+=p-(1<<m-c[v]),c[v]=e;else break}for(g>>=w;g>0;){var b=A[r].s;c[b]<e?g-=1<<e-c[b]++-1:++r}for(;r>=0&&g;--r){var B=A[r].s;c[B]==e&&(--c[B],++g)}m=e}return{t:new kn(c),l:m}},Hd=function(n,e,t){return n.s==-1?Math.max(Hd(n.l,e,t+1),Hd(n.r,e,t+1)):e[n.s]=t},d2=function(n){for(var e=n.length;e&&!n[--e];);for(var t=new Si(++e),r=0,i=n[0],A=1,s=function(o){t[r++]=o},a=1;a<=e;++a)if(n[a]==i&&a!=e)++A;else{if(!i&&A>2){for(;A>138;A-=138)s(32754);A>2&&(s(A>10?A-11<<5|28690:A-3<<5|12305),A=0)}else if(A>3){for(s(i),--A;A>6;A-=6)s(8304);A>2&&(s(A-3<<5|8208),A=0)}for(;A--;)s(i);A=1,i=n[a]}return{c:t.subarray(0,r),n:e}},Xl=function(n,e){for(var t=0,r=0;r<e.length;++r)t+=n[r]*e[r];return t},p2=function(n,e,t){var r=t.length,i=Dd(e+2);n[i]=r&255,n[i+1]=r>>8,n[i+2]=n[i]^255,n[i+3]=n[i+1]^255;for(var A=0;A<r;++A)n[i+A+4]=t[A];return(i+4+r)*8},g2=function(n,e,t,r,i,A,s,a,o,l,u){us(e,u++,t),++i[256];for(var f=Md(i,15),h=f.t,c=f.l,m=Md(A,15),g=m.t,w=m.l,p=d2(h),v=p.c,b=p.n,B=d2(g),T=B.c,M=B.n,D=new Si(19),j=0;j<v.length;++j)++D[v[j]&31];for(var j=0;j<T.length;++j)++D[T[j]&31];for(var R=Md(D,7),ae=R.t,L=R.l,x=19;x>4&&!ae[Od[x-1]];--x);var Q=l+5<<3,C=Xl(i,Gs)+Xl(A,zl)+s,z=Xl(i,h)+Xl(A,g)+s+14+3*x+Xl(D,ae)+2*D[16]+3*D[17]+7*D[18];if(o>=0&&Q<=C&&Q<=z)return p2(e,u,n.subarray(o,o+l));var Y,V,ie,Ae;if(us(e,u,1+(z<C)),u+=2,z<C){Y=OA(h,c,0),V=h,ie=OA(g,w,0),Ae=g;var $=OA(ae,L,0);us(e,u,b-257),us(e,u+5,M-1),us(e,u+10,x-4),u+=14;for(var j=0;j<x;++j)us(e,u+3*j,ae[Od[j]]);u+=3*x;for(var te=[v,T],F=0;F<2;++F)for(var H=te[F],j=0;j<H.length;++j){var G=H[j]&31;us(e,u,$[G]),u+=ae[G],G>15&&(us(e,u,H[j]>>5&127),u+=H[j]>>12)}}else Y=WI,V=Gs,ie=YI,Ae=zl;for(var j=0;j<a;++j){var X=r[j];if(X>255){var G=X>>18&31;Wl(e,u,Y[G+257]),u+=V[G+257],G>7&&(us(e,u,X>>23&31),u+=Lc[G]);var J=X&31;Wl(e,u,ie[J]),u+=Ae[J],J>3&&(Wl(e,u,X>>5&8191),u+=Oc[J])}else Wl(e,u,Y[X]),u+=V[X]}return Wl(e,u,Y[256]),u+V[256]},eU=new Ld([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),m2=new kn(0),tU=function(n,e,t,r,i,A){var s=A.z||n.length,a=new kn(r+s+5*(1+Math.ceil(s/7e3))+i),o=a.subarray(r,a.length-i),l=A.l,u=(A.r||0)&7;if(e){u&&(o[0]=A.r>>3);for(var f=eU[e-1],h=f>>13,c=f&8191,m=(1<<t)-1,g=A.p||new Si(32768),w=A.h||new Si(m+1),p=Math.ceil(t/3),v=2*p,b=function(k){return(n[k]^n[k+1]<<p^n[k+2]<<v)&m},B=new Ld(25e3),T=new Si(288),M=new Si(32),D=0,j=0,R=A.i||0,ae=0,L=A.w||0,x=0;R+2<s;++R){var Q=b(R),C=R&32767,z=w[Q];if(g[C]=z,w[Q]=C,L<=R){var Y=s-R;if((D>7e3||ae>24576)&&(Y>423||!l)){u=g2(n,o,0,B,T,M,j,ae,x,R-x,u),ae=D=j=0,x=R;for(var V=0;V<286;++V)T[V]=0;for(var V=0;V<30;++V)M[V]=0}var ie=2,Ae=0,$=c,te=C-z&32767;if(Y>2&&Q==b(R-te))for(var F=Math.min(h,Y)-1,H=Math.min(32767,R),G=Math.min(258,Y);te<=H&&--$&&C!=z;){if(n[R+ie]==n[R+ie-te]){for(var X=0;X<G&&n[R+X]==n[R+X-te];++X);if(X>ie){if(ie=X,Ae=te,X>F)break;for(var J=Math.min(te,X-2),O=0,V=0;V<J;++V){var U=R-te+V&32767,ee=g[U],re=U-ee&32767;re>O&&(O=re,z=U)}}}C=z,z=g[C],te+=C-z&32767}if(Ae){B[ae++]=268435456|Qd[ie]<<18|f2[Ae];var W=Qd[ie]&31,Z=f2[Ae]&31;j+=Lc[W]+Oc[Z],++T[257+W],++M[Z],L=R+ie,++D}else B[ae++]=n[R],++T[n[R]]}}for(R=Math.max(R,L);R<s;++R)B[ae++]=n[R],++T[n[R]];u=g2(n,o,l,B,T,M,j,ae,x,R-x,u),l||(A.r=u&7|o[u/8|0]<<3,u-=7,A.h=w,A.p=g,A.i=R,A.w=L)}else{for(var R=A.w||0;R<s+l;R+=65535){var me=R+65535;me>=s&&(o[u/8|0]=l,me=s),u=p2(o,u+1,n.subarray(R,me))}A.i=s}return h2(a,0,r+Dd(u)+i)},v2=function(){var n=1,e=0;return{p:function(t){for(var r=n,i=e,A=t.length|0,s=0;s!=A;){for(var a=Math.min(s+2655,A);s<a;++s)i+=r+=t[s];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}n=r,e=i},d:function(){return n%=65521,e%=65521,(n&255)<<24|(n&65280)<<8|(e&255)<<8|e>>8}}},rU=function(n,e,t,r,i){if(!i&&(i={l:1},e.dictionary)){var A=e.dictionary.subarray(-32768),s=new kn(A.length+n.length);s.set(A),s.set(n,A.length),n=s,i.w=A.length}return tU(n,e.level==null?6:e.level,e.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+e.mem,t,r,i)},w2=function(n,e,t){for(;t;++e)n[e]=t,t>>>=8},nU=function(n,e){var t=e.level,r=t==0?0:t<6?1:t==9?3:2;if(n[0]=120,n[1]=r<<6|(e.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,e.dictionary){var i=v2();i.p(e.dictionary),w2(n,2,i.d())}},iU=function(n,e){return((n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31)&&sA(6,"invalid zlib data"),(n[1]>>5&1)==1&&sA(6,"invalid zlib data: "+(n[1]&32?"need":"unexpected")+" dictionary"),(n[1]>>3&4)+2};function qd(n,e){e||(e={});var t=v2();t.p(n);var r=rU(n,e,e.dictionary?6:2,4);return nU(r,e),w2(r,r.length-4,t.d()),r}function AU(n,e){return ZI(n.subarray(iU(n),-4),{i:2},e,e)}var sU=typeof TextDecoder<"u"&&new TextDecoder,aU=0;try{sU.decode(m2,{stream:!0}),aU=1}catch{}/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 3.0.1 Built on 2025-03-17T14:19:36.873Z
* CommitID 00000000
*
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
* 2015-2021 yWorks GmbH, http://www.yworks.com
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
* 2010 Aaron Spike, https://github.com/acspike
* 2012 Willow Systems Corporation, https://github.com/willowsystems
* 2012 Pablo Hess, https://github.com/pablohess
* 2012 Florian Jenett, https://github.com/fjenett
* 2013 Warren Weckesser, https://github.com/warrenweckesser
* 2013 Youssef Beddad, https://github.com/lifof
* 2013 Lee Driscoll, https://github.com/lsdriscoll
* 2013 Stefan Slonevskiy, https://github.com/stefslon
* 2013 Jeremy Morel, https://github.com/jmorel
* 2013 Christoph Hartmann, https://github.com/chris-rock
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
* 2014 James Makes, https://github.com/dollaruw
* 2014 Diego Casorran, https://github.com/diegocr
* 2014 Steven Spungin, https://github.com/Flamenco
* 2014 Kenneth Glassey, https://github.com/Gavvers
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Contributor(s):
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
* kim3er, mfo, alnorth, Flamenco
*/var Et=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function jd(){Et.console&&typeof Et.console.log=="function"&&Et.console.log.apply(Et.console,arguments)}var dr={log:jd,warn:function(n){Et.console&&(typeof Et.console.warn=="function"?Et.console.warn.apply(Et.console,arguments):jd.call(null,arguments))},error:function(n){Et.console&&(typeof Et.console.error=="function"?Et.console.error.apply(Et.console,arguments):jd(n))}};function Kd(n,e,t){var r=new XMLHttpRequest;r.open("GET",n),r.responseType="blob",r.onload=function(){Ma(r.response,e,t)},r.onerror=function(){dr.error("could not download file")},r.send()}function y2(n){var e=new XMLHttpRequest;e.open("HEAD",n,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Qc(n){try{n.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(e)}}var Yl,Vd,Ma=Et.saveAs||((typeof window>"u"?"undefined":Yt(window))!=="object"||window!==Et?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,e,t){var r=Et.URL||Et.webkitURL,i=document.createElement("a");e=e||n.name||"download",i.download=e,i.rel="noopener",typeof n=="string"?(i.href=n,i.origin!==location.origin?y2(i.href)?Kd(n,e,t):Qc(i,i.target="_blank"):Qc(i)):(i.href=r.createObjectURL(n),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){Qc(i)},0))}:"msSaveOrOpenBlob"in navigator?function(n,e,t){if(e=e||n.name||"download",typeof n=="string")if(y2(n))Kd(n,e,t);else{var r=document.createElement("a");r.href=n,r.target="_blank",setTimeout(function(){Qc(r)})}else navigator.msSaveOrOpenBlob(function(i,A){return A===void 0?A={autoBom:!1}:Yt(A)!=="object"&&(dr.warn("Deprecated: Expected third argument to be a object"),A={autoBom:!A}),A.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(n,t),e)}:function(n,e,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof n=="string")return Kd(n,e,t);var i=n.type==="application/octet-stream",A=/constructor/i.test(Et.HTMLElement)||Et.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&A)&&(typeof FileReader>"u"?"undefined":Yt(FileReader))==="object"){var a=new FileReader;a.onloadend=function(){var u=a.result;u=s?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=u:location=u,r=null},a.readAsDataURL(n)}else{var o=Et.URL||Et.webkitURL,l=o.createObjectURL(n);r?r.location=l:location.href=l,r=null,setTimeout(function(){o.revokeObjectURL(l)},4e4)}});/**
* A class to parse color values
* @author Stoyan Stefanov <sstoo@gmail.com>
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
* @license Use it if you like it
*/function b2(n){var e;n=n||"",this.ok=!1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[n=(n=n.replace(/ /g,"")).toLowerCase()]||n;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(a){return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}}],r=0;r<t.length;r++){var i=t[r].re,A=t[r].process,s=i.exec(n);s&&(e=A(s),this.r=e[0],this.g=e[1],this.b=e[2],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.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var a=this.r.toString(16),o=this.g.toString(16),l=this.b.toString(16);return a.length==1&&(a="0"+a),o.length==1&&(o="0"+o),l.length==1&&(l="0"+l),"#"+a+o+l}}/**
* @license
* Joseph Myers does not specify a particular license for his work.
*
* Author: Joseph Myers
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
*
* Modified by: Owen Leong
*/function Gd(n,e){var t=n[0],r=n[1],i=n[2],A=n[3];t=Dn(t,r,i,A,e[0],7,-680876936),A=Dn(A,t,r,i,e[1],12,-389564586),i=Dn(i,A,t,r,e[2],17,606105819),r=Dn(r,i,A,t,e[3],22,-1044525330),t=Dn(t,r,i,A,e[4],7,-176418897),A=Dn(A,t,r,i,e[5],12,1200080426),i=Dn(i,A,t,r,e[6],17,-1473231341),r=Dn(r,i,A,t,e[7],22,-45705983),t=Dn(t,r,i,A,e[8],7,1770035416),A=Dn(A,t,r,i,e[9],12,-1958414417),i=Dn(i,A,t,r,e[10],17,-42063),r=Dn(r,i,A,t,e[11],22,-1990404162),t=Dn(t,r,i,A,e[12],7,1804603682),A=Dn(A,t,r,i,e[13],12,-40341101),i=Dn(i,A,t,r,e[14],17,-1502002290),t=Mn(t,r=Dn(r,i,A,t,e[15],22,1236535329),i,A,e[1],5,-165796510),A=Mn(A,t,r,i,e[6],9,-1069501632),i=Mn(i,A,t,r,e[11],14,643717713),r=Mn(r,i,A,t,e[0],20,-373897302),t=Mn(t,r,i,A,e[5],5,-701558691),A=Mn(A,t,r,i,e[10],9,38016083),i=Mn(i,A,t,r,e[15],14,-660478335),r=Mn(r,i,A,t,e[4],20,-405537848),t=Mn(t,r,i,A,e[9],5,568446438),A=Mn(A,t,r,i,e[14],9,-1019803690),i=Mn(i,A,t,r,e[3],14,-187363961),r=Mn(r,i,A,t,e[8],20,1163531501),t=Mn(t,r,i,A,e[13],5,-1444681467),A=Mn(A,t,r,i,e[2],9,-51403784),i=Mn(i,A,t,r,e[7],14,1735328473),t=Hn(t,r=Mn(r,i,A,t,e[12],20,-1926607734),i,A,e[5],4,-378558),A=Hn(A,t,r,i,e[8],11,-2022574463),i=Hn(i,A,t,r,e[11],16,1839030562),r=Hn(r,i,A,t,e[14],23,-35309556),t=Hn(t,r,i,A,e[1],4,-1530992060),A=Hn(A,t,r,i,e[4],11,1272893353),i=Hn(i,A,t,r,e[7],16,-155497632),r=Hn(r,i,A,t,e[10],23,-1094730640),t=Hn(t,r,i,A,e[13],4,681279174),A=Hn(A,t,r,i,e[0],11,-358537222),i=Hn(i,A,t,r,e[3],16,-722521979),r=Hn(r,i,A,t,e[6],23,76029189),t=Hn(t,r,i,A,e[9],4,-640364487),A=Hn(A,t,r,i,e[12],11,-421815835),i=Hn(i,A,t,r,e[15],16,530742520),t=qn(t,r=Hn(r,i,A,t,e[2],23,-995338651),i,A,e[0],6,-198630844),A=qn(A,t,r,i,e[7],10,1126891415),i=qn(i,A,t,r,e[14],15,-1416354905),r=qn(r,i,A,t,e[5],21,-57434055),t=qn(t,r,i,A,e[12],6,1700485571),A=qn(A,t,r,i,e[3],10,-1894986606),i=qn(i,A,t,r,e[10],15,-1051523),r=qn(r,i,A,t,e[1],21,-2054922799),t=qn(t,r,i,A,e[8],6,1873313359),A=qn(A,t,r,i,e[15],10,-30611744),i=qn(i,A,t,r,e[6],15,-1560198380),r=qn(r,i,A,t,e[13],21,1309151649),t=qn(t,r,i,A,e[4],6,-145523070),A=qn(A,t,r,i,e[11],10,-1120210379),i=qn(i,A,t,r,e[2],15,718787259),r=qn(r,i,A,t,e[9],21,-343485551),n[0]=zs(t,n[0]),n[1]=zs(r,n[1]),n[2]=zs(i,n[2]),n[3]=zs(A,n[3])}function Rc(n,e,t,r,i,A){return e=zs(zs(e,n),zs(r,A)),zs(e<<i|e>>>32-i,t)}function Dn(n,e,t,r,i,A,s){return Rc(e&t|~e&r,n,e,i,A,s)}function Mn(n,e,t,r,i,A,s){return Rc(e&r|t&~r,n,e,i,A,s)}function Hn(n,e,t,r,i,A,s){return Rc(e^t^r,n,e,i,A,s)}function qn(n,e,t,r,i,A,s){return Rc(t^(e|~r),n,e,i,A,s)}function B2(n){var e,t=n.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=n.length;e+=64)Gd(r,oU(n.substring(e-64,e)));n=n.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<n.length;e++)i[e>>2]|=n.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(Gd(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*t,Gd(r,i),r}function oU(n){var e,t=[];for(e=0;e<64;e+=4)t[e>>2]=n.charCodeAt(e)+(n.charCodeAt(e+1)<<8)+(n.charCodeAt(e+2)<<16)+(n.charCodeAt(e+3)<<24);return t}Yl=Et.atob.bind(Et),Vd=Et.btoa.bind(Et);var C2="0123456789abcdef".split("");function lU(n){for(var e="",t=0;t<4;t++)e+=C2[n>>8*t+4&15]+C2[n>>8*t&15];return e}function uU(n){return String.fromCharCode((255&n)>>0,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function zd(n){return B2(n).map(uU).join("")}var cU=function(n){for(var e=0;e<n.length;e++)n[e]=lU(n[e]);return n.join("")}(B2("hello"))!="5d41402abc4b2a76b9719d911017c592";function zs(n,e){if(cU){var t=(65535&n)+(65535&e);return(n>>16)+(e>>16)+(t>>16)<<16|65535&t}return n+e&4294967295}/**
* @license
* FPDF is released under a permissive license: there is no usage restriction.
* You may embed it freely in your application (commercial or not), with or
* without modifications.
*
* Reference: http://www.fpdf.org/en/script/script37.php
*/function Wd(n,e){var t,r,i,A;if(n!==t){for(var s=(i=n,A=1+(256/n.length>>0),new Array(A+1).join(i)),a=[],o=0;o<256;o++)a[o]=o;var l=0;for(o=0;o<256;o++){var u=a[o];l=(l+u+s.charCodeAt(o))%256,a[o]=a[l],a[l]=u}t=n,r=a}else a=r;var f=e.length,h=0,c=0,m="";for(o=0;o<f;o++)c=(c+(u=a[h=(h+1)%256]))%256,a[h]=a[c],a[c]=u,s=a[(a[h]+a[c])%256],m+=String.fromCharCode(e.charCodeAt(o)^s);return m}/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
* Author: Owen Leong (@owenl131)
* Date: 15 Oct 2020
* References:
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
* http://www.fpdf.org/en/script/script37.php
*/var E2={print:4,modify:8,copy:16,"annot-forms":32};function Lo(n,e,t,r){this.v=1,this.r=2;var i=192;n.forEach(function(a){if(E2.perm!==void 0)throw new Error("Invalid permission: "+a);i+=E2[a]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var A=(e+this.padding).substr(0,32),s=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(A,s),this.P=-(1+(255^i)),this.encryptionKey=zd(A+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Wd(this.encryptionKey,this.padding)}function Oo(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var e="",t=n.length,r=0;r<t;r++){var i=n.charCodeAt(r);i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?e+="#"+("0"+i.toString(16)).slice(-2):e+=n[r]}return e}function x2(n){if(Yt(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,r,i){if(i=i||!1,typeof t!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var A=Math.random().toString(35);return e[t][A]=[r,!!i],A},this.unsubscribe=function(t){for(var r in e)if(e[r][t])return delete e[r][t],Object.keys(e[r]).length===0&&delete e[r],!0;return!1},this.publish=function(t){if(e.hasOwnProperty(t)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var A in e[t]){var s=e[t][A];try{s[0].apply(n,r)}catch(a){Et.console&&dr.error("jsPDF PubSub Error",a.message,a)}s[1]&&i.push(A)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Pc(n){if(!(this instanceof Pc))return new Pc(n);var e="opacity,stroke-opacity".split(",");for(var t in n)n.hasOwnProperty(t)&&e.indexOf(t)>=0&&(this[t]=n[t]);this.id="",this.objectNumber=-1}function S2(n,e){this.gState=n,this.matrix=e,this.id="",this.objectNumber=-1}function Ha(n,e,t,r,i){if(!(this instanceof Ha))return new Ha(n,e,t,r,i);this.type=n==="axial"?2:3,this.coords=e,this.colors=t,S2.call(this,r,i)}function Qo(n,e,t,r,i){if(!(this instanceof Qo))return new Qo(n,e,t,r,i);this.boundingBox=n,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,S2.call(this,r,i)}function bt(n){var e,t=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],A=arguments[3],s=[],a=1,o=16,l="S",u=null;Yt(n=n||{})==="object"&&(t=n.orientation,r=n.unit||r,i=n.format||i,A=n.compress||n.compressPdf||A,(u=n.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),a=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(e=n.precision),n.floatPrecision!==void 0&&(o=n.floatPrecision),l=n.defaultPathOperation||"S"),s=n.filters||(A===!0?["FlateEncode"]:s),r=r||"mm",t=(""+(t||"P")).toLowerCase();var f=n.putOnlyUsedFonts||!1,h={},c={internal:{},__private__:{}};c.__private__.PubSub=x2;var m="1.3",g=c.__private__.getPdfVersion=function(){return m};c.__private__.setPdfVersion=function(_){m=_};var w={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};c.__private__.getPageFormats=function(){return w};var p=c.__private__.getPageFormat=function(_){return w[_]};i=i||"a4";var v={COMPAT:"compat",ADVANCED:"advanced"},b=v.COMPAT;function B(){this.saveGraphicsState(),I(new ut(Ve,0,0,-Ve,0,Fa()*Ve).toString()+" cm"),this.setFontSize(this.getFontSize()/Ve),l="n",b=v.ADVANCED}function T(){this.restoreGraphicsState(),l="S",b=v.COMPAT}var M=c.__private__.combineFontStyleAndFontWeight=function(_,se){if(_=="bold"&&se=="normal"||_=="bold"&&se==400||_=="normal"&&se=="italic"||_=="bold"&&se=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return se&&(_=se==400||se==="normal"?_==="italic"?"italic":"normal":se!=700&&se!=="bold"||_!=="normal"?(se==700?"bold":se)+""+_:"bold"),_};c.advancedAPI=function(_){var se=b===v.COMPAT;return se&&B.call(this),typeof _!="function"||(_(this),se&&T.call(this)),this},c.compatAPI=function(_){var se=b===v.ADVANCED;return se&&T.call(this),typeof _!="function"||(_(this),se&&B.call(this)),this},c.isAdvancedAPI=function(){return b===v.ADVANCED};var D,j=function(_){if(b!==v.ADVANCED)throw new Error(_+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},R=c.roundToPrecision=c.__private__.roundToPrecision=function(_,se){var we=e||se;if(isNaN(_)||isNaN(we))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return _.toFixed(we).replace(/0+$/,"")};D=c.hpf=c.__private__.hpf=typeof o=="number"?function(_){if(isNaN(_))throw new Error("Invalid argument passed to jsPDF.hpf");return R(_,o)}:o==="smart"?function(_){if(isNaN(_))throw new Error("Invalid argument passed to jsPDF.hpf");return R(_,_>-1&&_<1?16:5)}:function(_){if(isNaN(_))throw new Error("Invalid argument passed to jsPDF.hpf");return R(_,16)};var ae=c.f2=c.__private__.f2=function(_){if(isNaN(_))throw new Error("Invalid argument passed to jsPDF.f2");return R(_,2)},L=c.__private__.f3=function(_){if(isNaN(_))throw new Error("Invalid argument passed to jsPDF.f3");return R(_,3)},x=c.scale=c.__private__.scale=function(_){if(isNaN(_))throw new Error("Invalid argument passed to jsPDF.scale");return b===v.COMPAT?_*Ve:b===v.ADVANCED?_:void 0},Q=function(_){return b===v.COMPAT?Fa()-_:b===v.ADVANCED?_:void 0},C=function(_){return x(Q(_))};c.__private__.setPrecision=c.setPrecision=function(_){typeof parseInt(_,10)=="number"&&(e=parseInt(_,10))};var z,Y="00000000000000000000000000000000",V=c.__private__.getFileId=function(){return Y},ie=c.__private__.setFileId=function(_){return Y=_!==void 0&&/^[a-fA-F0-9]{32}$/.test(_)?_.toUpperCase():Y.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(tn=new Lo(u.userPermissions,u.userPassword,u.ownerPassword,Y)),Y};c.setFileId=function(_){return ie(_),this},c.getFileId=function(){return V()};var Ae=c.__private__.convertDateToPDFDate=function(_){var se=_.getTimezoneOffset(),we=se<0?"+":"-",Ce=Math.floor(Math.abs(se/60)),Ie=Math.abs(se%60),Pe=[we,G(Ce),"'",G(Ie),"'"].join("");return["D:",_.getFullYear(),G(_.getMonth()+1),G(_.getDate()),G(_.getHours()),G(_.getMinutes()),G(_.getSeconds()),Pe].join("")},$=c.__private__.convertPDFDateToDate=function(_){var se=parseInt(_.substr(2,4),10),we=parseInt(_.substr(6,2),10)-1,Ce=parseInt(_.substr(8,2),10),Ie=parseInt(_.substr(10,2),10),Pe=parseInt(_.substr(12,2),10),Xe=parseInt(_.substr(14,2),10);return new Date(se,we,Ce,Ie,Pe,Xe,0)},te=c.__private__.setCreationDate=function(_){var se;if(_===void 0&&(_=new Date),_ instanceof Date)se=Ae(_);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(_))throw new Error("Invalid argument passed to jsPDF.setCreationDate");se=_}return z=se},F=c.__private__.getCreationDate=function(_){var se=z;return _==="jsDate"&&(se=$(z)),se};c.setCreationDate=function(_){return te(_),this},c.getCreationDate=function(_){return F(_)};var H,G=c.__private__.padd2=function(_){return("0"+parseInt(_)).slice(-2)},X=c.__private__.padd2Hex=function(_){return("00"+(_=_.toString())).substr(_.length)},J=0,O=[],U=[],ee=0,re=[],W=[],Z=!1,me=U,k=function(){J=0,ee=0,U=[],O=[],re=[],Wn=ir(),_r=ir()};c.__private__.setCustomOutputDestination=function(_){Z=!0,me=_};var pe=function(_){Z||(me=_)};c.__private__.resetCustomOutputDestination=function(){Z=!1,me=U};var I=c.__private__.out=function(_){return _=_.toString(),ee+=_.length+1,me.push(_),me},E=c.__private__.write=function(_){return I(arguments.length===1?_.toString():Array.prototype.join.call(arguments," "))},S=c.__private__.getArrayBuffer=function(_){for(var se=_.length,we=new ArrayBuffer(se),Ce=new Uint8Array(we);se--;)Ce[se]=_.charCodeAt(se);return we},P=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];c.__private__.getStandardFonts=function(){return P};var oe=n.fontSize||16;c.__private__.setFontSize=c.setFontSize=function(_){return oe=b===v.ADVANCED?_/Ve:_,this};var ge,ce=c.__private__.getFontSize=c.getFontSize=function(){return b===v.COMPAT?oe:oe*Ve},Ee=n.R2L||!1;c.__private__.setR2L=c.setR2L=function(_){return Ee=_,this},c.__private__.getR2L=c.getR2L=function(){return Ee};var ye,Be=c.__private__.setZoomMode=function(_){var se=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(_))ge=_;else if(isNaN(_)){if(se.indexOf(_)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+_+'" is not recognized.');ge=_}else ge=parseInt(_,10)};c.__private__.getZoomMode=function(){return ge};var Ue,Oe=c.__private__.setPageMode=function(_){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(_)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+_+'" is not recognized.');ye=_};c.__private__.getPageMode=function(){return ye};var Me=c.__private__.setLayoutMode=function(_){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(_)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+_+'" is not recognized.');Ue=_};c.__private__.getLayoutMode=function(){return Ue},c.__private__.setDisplayMode=c.setDisplayMode=function(_,se,we){return Be(_),Me(se),Oe(we),this};var $e={title:"",subject:"",author:"",keywords:"",creator:""};c.__private__.getDocumentProperty=function(_){if(Object.keys($e).indexOf(_)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return $e[_]},c.__private__.getDocumentProperties=function(){return $e},c.__private__.setDocumentProperties=c.setProperties=c.setDocumentProperties=function(_){for(var se in $e)$e.hasOwnProperty(se)&&_[se]&&($e[se]=_[se]);return this},c.__private__.setDocumentProperty=function(_,se){if(Object.keys($e).indexOf(_)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return $e[_]=se};var tt,Ve,Tt,st,kt,yt={},St={},ur=[],Ft={},$t={},Qt={},yr={},It=null,Kt=0,mt=[],pt=new x2(c),on=n.hotfixes||[],Fr={},jr={},dn=[],ut=function _(se,we,Ce,Ie,Pe,Xe){if(!(this instanceof _))return new _(se,we,Ce,Ie,Pe,Xe);isNaN(se)&&(se=1),isNaN(we)&&(we=0),isNaN(Ce)&&(Ce=0),isNaN(Ie)&&(Ie=1),isNaN(Pe)&&(Pe=0),isNaN(Xe)&&(Xe=0),this._matrix=[se,we,Ce,Ie,Pe,Xe]};Object.defineProperty(ut.prototype,"sx",{get:function(){return this._matrix[0]},set:function(_){this._matrix[0]=_}}),Object.defineProperty(ut.prototype,"shy",{get:function(){return this._matrix[1]},set:function(_){this._matrix[1]=_}}),Object.defineProperty(ut.prototype,"shx",{get:function(){return this._matrix[2]},set:function(_){this._matrix[2]=_}}),Object.defineProperty(ut.prototype,"sy",{get:function(){return this._matrix[3]},set:function(_){this._matrix[3]=_}}),Object.defineProperty(ut.prototype,"tx",{get:function(){return this._matrix[4]},set:function(_){this._matrix[4]=_}}),Object.defineProperty(ut.prototype,"ty",{get:function(){return this._matrix[5]},set:function(_){this._matrix[5]=_}}),Object.defineProperty(ut.prototype,"a",{get:function(){return this._matrix[0]},set:function(_){this._matrix[0]=_}}),Object.defineProperty(ut.prototype,"b",{get:function(){return this._matrix[1]},set:function(_){this._matrix[1]=_}}),Object.defineProperty(ut.prototype,"c",{get:function(){return this._matrix[2]},set:function(_){this._matrix[2]=_}}),Object.defineProperty(ut.prototype,"d",{get:function(){return this._matrix[3]},set:function(_){this._matrix[3]=_}}),Object.defineProperty(ut.prototype,"e",{get:function(){return this._matrix[4]},set:function(_){this._matrix[4]=_}}),Object.defineProperty(ut.prototype,"f",{get:function(){return this._matrix[5]},set:function(_){this._matrix[5]=_}}),Object.defineProperty(ut.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ut.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ut.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ut.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ut.prototype.join=function(_){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(D).join(_)},ut.prototype.multiply=function(_){var se=_.sx*this.sx+_.shy*this.shx,we=_.sx*this.shy+_.shy*this.sy,Ce=_.shx*this.sx+_.sy*this.shx,Ie=_.shx*this.shy+_.sy*this.sy,Pe=_.tx*this.sx+_.ty*this.shx+this.tx,Xe=_.tx*this.shy+_.ty*this.sy+this.ty;return new ut(se,we,Ce,Ie,Pe,Xe)},ut.prototype.decompose=function(){var _=this.sx,se=this.shy,we=this.shx,Ce=this.sy,Ie=this.tx,Pe=this.ty,Xe=Math.sqrt(_*_+se*se),nt=(_/=Xe)*we+(se/=Xe)*Ce;we-=_*nt,Ce-=se*nt;var gt=Math.sqrt(we*we+Ce*Ce);return nt/=gt,_*(Ce/=gt)<se*(we/=gt)&&(_=-_,se=-se,nt=-nt,Xe=-Xe),{scale:new ut(Xe,0,0,gt,0,0),translate:new ut(1,0,0,1,Ie,Pe),rotate:new ut(_,se,-se,_,0,0),skew:new ut(1,0,nt,1,0,0)}},ut.prototype.toString=function(_){return this.join(" ")},ut.prototype.inversed=function(){var _=this.sx,se=this.shy,we=this.shx,Ce=this.sy,Ie=this.tx,Pe=this.ty,Xe=1/(_*Ce-se*we),nt=Ce*Xe,gt=-se*Xe,Lt=-we*Xe,Ut=_*Xe;return new ut(nt,gt,Lt,Ut,-nt*Ie-Lt*Pe,-gt*Ie-Ut*Pe)},ut.prototype.applyToPoint=function(_){var se=_.x*this.sx+_.y*this.shx+this.tx,we=_.x*this.shy+_.y*this.sy+this.ty;return new Fl(se,we)},ut.prototype.applyToRectangle=function(_){var se=this.applyToPoint(_),we=this.applyToPoint(new Fl(_.x+_.w,_.y+_.h));return new cc(se.x,se.y,we.x-se.x,we.y-se.y)},ut.prototype.clone=function(){var _=this.sx,se=this.shy,we=this.shx,Ce=this.sy,Ie=this.tx,Pe=this.ty;return new ut(_,se,we,Ce,Ie,Pe)},c.Matrix=ut;var bn=c.matrixMult=function(_,se){return se.multiply(_)},zn=new ut(1,0,0,1,0,0);c.unitMatrix=c.identityMatrix=zn;var nr=function(_,se){if(!$t[_]){var we=(se instanceof Ha?"Sh":"P")+(Object.keys(Ft).length+1).toString(10);se.id=we,$t[_]=we,Ft[we]=se,pt.publish("addPattern",se)}};c.ShadingPattern=Ha,c.TilingPattern=Qo,c.addShadingPattern=function(_,se){return j("addShadingPattern()"),nr(_,se),this},c.beginTilingPattern=function(_){j("beginTilingPattern()"),ad(_.boundingBox[0],_.boundingBox[1],_.boundingBox[2]-_.boundingBox[0],_.boundingBox[3]-_.boundingBox[1],_.matrix)},c.endTilingPattern=function(_,se){j("endTilingPattern()"),se.stream=W[H].join(`
`),nr(_,se),pt.publish("endTilingPattern",se),dn.pop().restore()};var Jt=c.__private__.newObject=function(){var _=ir();return zt(_,!0),_},ir=c.__private__.newObjectDeferred=function(){return J++,O[J]=function(){return ee},J},zt=function(_,se){return se=typeof se=="boolean"&&se,O[_]=ee,se&&I(_+" 0 obj"),_},vi=c.__private__.newAdditionalObject=function(){var _={objId:ir(),content:""};return re.push(_),_},Wn=ir(),_r=ir(),Bn=c.__private__.decodeColorString=function(_){var se=_.split(" ");if(se.length!==2||se[1]!=="g"&&se[1]!=="G")se.length===5&&(se[4]==="k"||se[4]==="K")&&(se=[(1-se[0])*(1-se[3]),(1-se[1])*(1-se[3]),(1-se[2])*(1-se[3]),"r"]);else{var we=parseFloat(se[0]);se=[we,we,we,"r"]}for(var Ce="#",Ie=0;Ie<3;Ie++)Ce+=("0"+Math.floor(255*parseFloat(se[Ie])).toString(16)).slice(-2);return Ce},Cn=c.__private__.encodeColorString=function(_){var se;typeof _=="string"&&(_={ch1:_});var we=_.ch1,Ce=_.ch2,Ie=_.ch3,Pe=_.ch4,Xe=_.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof we=="string"&&we.charAt(0)!=="#"){var nt=new b2(we);if(nt.ok)we=nt.toHex();else if(!/^\d*\.?\d*$/.test(we))throw new Error('Invalid color "'+we+'" passed to jsPDF.encodeColorString.')}if(typeof we=="string"&&/^#[0-9A-Fa-f]{3}$/.test(we)&&(we="#"+we[1]+we[1]+we[2]+we[2]+we[3]+we[3]),typeof we=="string"&&/^#[0-9A-Fa-f]{6}$/.test(we)){var gt=parseInt(we.substr(1),16);we=gt>>16&255,Ce=gt>>8&255,Ie=255>}if(Ce===void 0||Pe===void 0&&we===Ce&&Ce===Ie)if(typeof we=="string")se=we+" "+Xe[0];else switch(_.precision){case 2:se=ae(we/255)+" "+Xe[0];break;case 3:default:se=L(we/255)+" "+Xe[0]}else if(Pe===void 0||Yt(Pe)==="object"){if(Pe&&!isNaN(Pe.a)&&Pe.a===0)return se=["1.","1.","1.",Xe[1]].join(" ");if(typeof we=="string")se=[we,Ce,Ie,Xe[1]].join(" ");else switch(_.precision){case 2:se=[ae(we/255),ae(Ce/255),ae(Ie/255),Xe[1]].join(" ");break;default:case 3:se=[L(we/255),L(Ce/255),L(Ie/255),Xe[1]].join(" ")}}else if(typeof we=="string")se=[we,Ce,Ie,Pe,Xe[2]].join(" ");else switch(_.precision){case 2:se=[ae(we),ae(Ce),ae(Ie),ae(Pe),Xe[2]].join(" ");break;case 3:default:se=[L(we),L(Ce),L(Ie),L(Pe),Xe[2]].join(" ")}return se},rr=c.__private__.getFilters=function(){return s},pn=c.__private__.putStream=function(_){var se=(_=_||{}).data||"",we=_.filters||rr(),Ce=_.alreadyAppliedFilters||[],Ie=_.addLength1||!1,Pe=se.length,Xe=_.objectId,nt=function(Jn){return Jn};if(u!==null&&Xe===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(nt=tn.encryptor(Xe,0));var gt={};we===!0&&(we=["FlateEncode"]);var Lt=_.additionalKeyValues||[],Ut=(gt=bt.API.processDataByFilters!==void 0?bt.API.processDataByFilters(se,we):{data:se,reverseChain:[]}).reverseChain+(Array.isArray(Ce)?Ce.join(" "):Ce.toString());if(gt.data.length!==0&&(Lt.push({key:"Length",value:gt.data.length}),Ie===!0&&Lt.push({key:"Length1",value:Pe})),Ut.length!=0)if(Ut.split("/").length-1==1)Lt.push({key:"Filter",value:Ut});else{Lt.push({key:"Filter",value:"["+Ut+"]"});for(var Wt=0;Wt<Lt.length;Wt+=1)if(Lt[Wt].key==="DecodeParms"){for(var Rr=[],Vr=0;Vr<gt.reverseChain.split("/").length-1;Vr+=1)Rr.push("null");Rr.push(Lt[Wt].value),Lt[Wt].value="["+Rr.join(" ")+"]"}}I("<<");for(var un=0;un<Lt.length;un++)I("/"+Lt[un].key+" "+Lt[un].value);I(">>"),gt.data.length!==0&&(I("stream"),I(nt(gt.data)),I("endstream"))},Xn=c.__private__.putPage=function(_){var se=_.number,we=_.data,Ce=_.objId,Ie=_.contentsObjId;zt(Ce,!0),I("<</Type /Page"),I("/Parent "+_.rootDictionaryObjId+" 0 R"),I("/Resources "+_.resourceDictionaryObjId+" 0 R"),I("/MediaBox ["+parseFloat(D(_.mediaBox.bottomLeftX))+" "+parseFloat(D(_.mediaBox.bottomLeftY))+" "+D(_.mediaBox.topRightX)+" "+D(_.mediaBox.topRightY)+"]"),_.cropBox!==null&&I("/CropBox ["+D(_.cropBox.bottomLeftX)+" "+D(_.cropBox.bottomLeftY)+" "+D(_.cropBox.topRightX)+" "+D(_.cropBox.topRightY)+"]"),_.bleedBox!==null&&I("/BleedBox ["+D(_.bleedBox.bottomLeftX)+" "+D(_.bleedBox.bottomLeftY)+" "+D(_.bleedBox.topRightX)+" "+D(_.bleedBox.topRightY)+"]"),_.trimBox!==null&&I("/TrimBox ["+D(_.trimBox.bottomLeftX)+" "+D(_.trimBox.bottomLeftY)+" "+D(_.trimBox.topRightX)+" "+D(_.trimBox.topRightY)+"]"),_.artBox!==null&&I("/ArtBox ["+D(_.artBox.bottomLeftX)+" "+D(_.artBox.bottomLeftY)+" "+D(_.artBox.topRightX)+" "+D(_.artBox.topRightY)+"]"),typeof _.userUnit=="number"&&_.userUnit!==1&&I("/UserUnit "+_.userUnit),pt.publish("putPage",{objId:Ce,pageContext:mt[se],pageNumber:se,page:we}),I("/Contents "+Ie+" 0 R"),I(">>"),I("endobj");var Pe=we.join(`
`);return b===v.ADVANCED&&(Pe+=`
Q`),zt(Ie,!0),pn({data:Pe,filters:rr(),objectId:Ie}),I("endobj"),Ce},at=c.__private__.putPages=function(){var _,se,we=[];for(_=1;_<=Kt;_++)mt[_].objId=ir(),mt[_].contentsObjId=ir();for(_=1;_<=Kt;_++)we.push(Xn({number:_,data:W[_],objId:mt[_].objId,contentsObjId:mt[_].contentsObjId,mediaBox:mt[_].mediaBox,cropBox:mt[_].cropBox,bleedBox:mt[_].bleedBox,trimBox:mt[_].trimBox,artBox:mt[_].artBox,userUnit:mt[_].userUnit,rootDictionaryObjId:Wn,resourceDictionaryObjId:_r}));zt(Wn,!0),I("<</Type /Pages");var Ce="/Kids [";for(se=0;se<Kt;se++)Ce+=we[se]+" 0 R ";I(Ce+"]"),I("/Count "+Kt),I(">>"),I("endobj"),pt.publish("postPutPages")},xe=function(_){pt.publish("putFont",{font:_,out:I,newObject:Jt,putStream:pn}),_.isAlreadyPutted!==!0&&(_.objectNumber=Jt(),I("<<"),I("/Type /Font"),I("/BaseFont /"+Oo(_.postScriptName)),I("/Subtype /Type1"),typeof _.encoding=="string"&&I("/Encoding /"+_.encoding),I("/FirstChar 32"),I("/LastChar 255"),I(">>"),I("endobj"))},Ye=function(){for(var _ in yt)yt.hasOwnProperty(_)&&(f===!1||f===!0&&h.hasOwnProperty(_))&&xe(yt[_])},Je=function(_){_.objectNumber=Jt();var se=[];se.push({key:"Type",value:"/XObject"}),se.push({key:"Subtype",value:"/Form"}),se.push({key:"BBox",value:"["+[D(_.x),D(_.y),D(_.x+_.width),D(_.y+_.height)].join(" ")+"]"}),se.push({key:"Matrix",value:"["+_.matrix.toString()+"]"});var we=_.pages[1].join(`
`);pn({data:we,additionalKeyValues:se,objectId:_.objectNumber}),I("endobj")},Vt=function(){for(var _ in Fr)Fr.hasOwnProperty(_)&&Je(Fr[_])},Tr=function(_,se){var we,Ce=[],Ie=1/(se-1);for(we=0;we<1;we+=Ie)Ce.push(we);if(Ce.push(1),_[0].offset!=0){var Pe={offset:0,color:_[0].color};_.unshift(Pe)}if(_[_.length-1].offset!=1){var Xe={offset:1,color:_[_.length-1].color};_.push(Xe)}for(var nt="",gt=0,Lt=0;Lt<Ce.length;Lt++){for(we=Ce[Lt];we>_[gt+1].offset;)gt++;var Ut=_[gt].offset,Wt=(we-Ut)/(_[gt+1].offset-Ut),Rr=_[gt].color,Vr=_[gt+1].color;nt+=X(Math.round((1-Wt)*Rr[0]+Wt*Vr[0]).toString(16))+X(Math.round((1-Wt)*Rr[1]+Wt*Vr[1]).toString(16))+X(Math.round((1-Wt)*Rr[2]+Wt*Vr[2]).toString(16))}return nt.trim()},pr=function(_,se){se||(se=21);var we=Jt(),Ce=Tr(_.colors,se),Ie=[];Ie.push({key:"FunctionType",value:"0"}),Ie.push({key:"Domain",value:"[0.0 1.0]"}),Ie.push({key:"Size",value:"["+se+"]"}),Ie.push({key:"BitsPerSample",value:"8"}),Ie.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ie.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),pn({data:Ce,additionalKeyValues:Ie,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:we}),I("endobj"),_.objectNumber=Jt(),I("<< /ShadingType "+_.type),I("/ColorSpace /DeviceRGB");var Pe="/Coords ["+D(parseFloat(_.coords[0]))+" "+D(parseFloat(_.coords[1]))+" ";_.type===2?Pe+=D(parseFloat(_.coords[2]))+" "+D(parseFloat(_.coords[3])):Pe+=D(parseFloat(_.coords[2]))+" "+D(parseFloat(_.coords[3]))+" "+D(parseFloat(_.coords[4]))+" "+D(parseFloat(_.coords[5])),I(Pe+="]"),_.matrix&&I("/Matrix ["+_.matrix.toString()+"]"),I("/Function "+we+" 0 R"),I("/Extend [true true]"),I(">>"),I("endobj")},Kr=function(_,se){var we=ir(),Ce=Jt();se.push({resourcesOid:we,objectOid:Ce}),_.objectNumber=Ce;var Ie=[];Ie.push({key:"Type",value:"/Pattern"}),Ie.push({key:"PatternType",value:"1"}),Ie.push({key:"PaintType",value:"1"}),Ie.push({key:"TilingType",value:"1"}),Ie.push({key:"BBox",value:"["+_.boundingBox.map(D).join(" ")+"]"}),Ie.push({key:"XStep",value:D(_.xStep)}),Ie.push({key:"YStep",value:D(_.yStep)}),Ie.push({key:"Resources",value:we+" 0 R"}),_.matrix&&Ie.push({key:"Matrix",value:"["+_.matrix.toString()+"]"}),pn({data:_.stream,additionalKeyValues:Ie,objectId:_.objectNumber}),I("endobj")},ln=function(_){var se;for(se in Ft)Ft.hasOwnProperty(se)&&(Ft[se]instanceof Ha?pr(Ft[se]):Ft[se]instanceof Qo&&Kr(Ft[se],_))},Ln=function(_){for(var se in _.objectNumber=Jt(),I("<<"),_)switch(se){case"opacity":I("/ca "+ae(_[se]));break;case"stroke-opacity":I("/CA "+ae(_[se]))}I(">>"),I("endobj")},Xi=function(){var _;for(_ in Qt)Qt.hasOwnProperty(_)&&Ln(Qt[_])},Ar=function(){for(var _ in I("/XObject <<"),Fr)Fr.hasOwnProperty(_)&&Fr[_].objectNumber>=0&&I("/"+_+" "+Fr[_].objectNumber+" 0 R");pt.publish("putXobjectDict"),I(">>")},On=function(){tn.oid=Jt(),I("<<"),I("/Filter /Standard"),I("/V "+tn.v),I("/R "+tn.r),I("/U <"+tn.toHexString(tn.U)+">"),I("/O <"+tn.toHexString(tn.O)+">"),I("/P "+tn.P),I(">>"),I("endobj")},Ti=function(){for(var _ in I("/Font <<"),yt)yt.hasOwnProperty(_)&&(f===!1||f===!0&&h.hasOwnProperty(_))&&I("/"+_+" "+yt[_].objectNumber+" 0 R");I(">>")},Bo=function(){if(Object.keys(Ft).length>0){for(var _ in I("/Shading <<"),Ft)Ft.hasOwnProperty(_)&&Ft[_]instanceof Ha&&Ft[_].objectNumber>=0&&I("/"+_+" "+Ft[_].objectNumber+" 0 R");pt.publish("putShadingPatternDict"),I(">>")}},ZA=function(_){if(Object.keys(Ft).length>0){for(var se in I("/Pattern <<"),Ft)Ft.hasOwnProperty(se)&&Ft[se]instanceof c.TilingPattern&&Ft[se].objectNumber>=0&&Ft[se].objectNumber<_&&I("/"+se+" "+Ft[se].objectNumber+" 0 R");pt.publish("putTilingPatternDict"),I(">>")}},Co=function(){if(Object.keys(Qt).length>0){var _;for(_ in I("/ExtGState <<"),Qt)Qt.hasOwnProperty(_)&&Qt[_].objectNumber>=0&&I("/"+_+" "+Qt[_].objectNumber+" 0 R");pt.publish("putGStateDict"),I(">>")}},Ir=function(_){zt(_.resourcesOid,!0),I("<<"),I("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ti(),Bo(),ZA(_.objectOid),Co(),Ar(),I(">>"),I("endobj")},ya=function(){var _=[];Ye(),Xi(),Vt(),ln(_),pt.publish("putResources"),_.forEach(Ir),Ir({resourcesOid:_r,objectOid:Number.MAX_SAFE_INTEGER}),pt.publish("postPutResources")},TA=function(){pt.publish("putAdditionalObjects");for(var _=0;_<re.length;_++){var se=re[_];zt(se.objId,!0),I(se.content),I("endobj")}pt.publish("postPutAdditionalObjects")},es=function(_){St[_.fontName]=St[_.fontName]||{},St[_.fontName][_.fontStyle]=_.id},Ii=function(_,se,we,Ce,Ie){var Pe={id:"F"+(Object.keys(yt).length+1).toString(10),postScriptName:_,fontName:se,fontStyle:we,encoding:Ce,isStandardFont:Ie||!1,metadata:{}};return pt.publish("addFont",{font:Pe,instance:this}),yt[Pe.id]=Pe,es(Pe),Pe.id},ba=function(_){for(var se=0,we=P.length;se<we;se++){var Ce=Ii.call(this,_[se][0],_[se][1],_[se][2],P[se][3],!0);f===!1&&(h[Ce]=!0);var Ie=_[se][0].split("-");es({id:Ce,fontName:Ie[0],fontStyle:Ie[1]||""})}pt.publish("addFonts",{fonts:yt,dictionary:St})},Yn=function(_){return _.foo=function(){try{return _.apply(this,arguments)}catch(Ce){var se=Ce.stack||"";~se.indexOf(" at ")&&(se=se.split(" at ")[1]);var we="Error in function "+se.split(`
`)[0].split("<")[0]+": "+Ce.message;if(!Et.console)throw new Error(we);Et.console.error(we,Ce),Et.alert&&alert(we)}},_.foo.bar=_,_.foo},ts=function(_,se){var we,Ce,Ie,Pe,Xe,nt,gt,Lt,Ut;if(Ie=(se=se||{}).sourceEncoding||"Unicode",Xe=se.outputEncoding,(se.autoencode||Xe)&&yt[tt].metadata&&yt[tt].metadata[Ie]&&yt[tt].metadata[Ie].encoding&&(Pe=yt[tt].metadata[Ie].encoding,!Xe&&yt[tt].encoding&&(Xe=yt[tt].encoding),!Xe&&Pe.codePages&&(Xe=Pe.codePages[0]),typeof Xe=="string"&&(Xe=Pe[Xe]),Xe)){for(gt=!1,nt=[],we=0,Ce=_.length;we<Ce;we++)(Lt=Xe[_.charCodeAt(we)])?nt.push(String.fromCharCode(Lt)):nt.push(_[we]),nt[we].charCodeAt(0)>>8&&(gt=!0);_=nt.join("")}for(we=_.length;gt===void 0&&we!==0;)_.charCodeAt(we-1)>>8&&(gt=!0),we--;if(!gt)return _;for(nt=se.noBOM?[]:[254,255],we=0,Ce=_.length;we<Ce;we++){if((Ut=(Lt=_.charCodeAt(we))>>8)>>8)throw new Error("Character at position "+we+" of string '"+_+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");nt.push(Ut),nt.push(Lt-(Ut<<8))}return String.fromCharCode.apply(void 0,nt)},En=c.__private__.pdfEscape=c.pdfEscape=function(_,se){return ts(_,se).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Us=c.__private__.beginPage=function(_){W[++Kt]=[],mt[Kt]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(_[0]),topRightY:Number(_[1])}},Ca(Kt),pe(W[H])},Ba=function(_,se){var we,Ce,Ie;switch(t=se||t,typeof _=="string"&&(we=p(_.toLowerCase()),Array.isArray(we)&&(Ce=we[0],Ie=we[1])),Array.isArray(_)&&(Ce=_[0]*Ve,Ie=_[1]*Ve),isNaN(Ce)&&(Ce=i[0],Ie=i[1]),(Ce>14400||Ie>14400)&&(dr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Ce=Math.min(14400,Ce),Ie=Math.min(14400,Ie)),i=[Ce,Ie],t.substr(0,1)){case"l":Ie>Ce&&(i=[Ie,Ce]);break;case"p":Ce>Ie&&(i=[Ie,Ce])}Us(i),ft(Re),I(fr),ss!==0&&I(ss+" J"),as!==0&&I(as+" j"),pt.publish("addPage",{pageNumber:Kt})},Ns=function(_){_>0&&_<=Kt&&(W.splice(_,1),mt.splice(_,1),Kt--,H>Kt&&(H=Kt),this.setPage(H))},Ca=function(_){_>0&&_<=Kt&&(H=_)},Eo=c.__private__.getNumberOfPages=c.getNumberOfPages=function(){return W.length-1},Yi=function(_,se,we){var Ce,Ie=void 0;return we=we||{},_=_!==void 0?_:yt[tt].fontName,se=se!==void 0?se:yt[tt].fontStyle,Ce=_.toLowerCase(),St[Ce]!==void 0&&St[Ce][se]!==void 0?Ie=St[Ce][se]:St[_]!==void 0&&St[_][se]!==void 0?Ie=St[_][se]:we.disableWarning===!1&&dr.warn("Unable to look up font label for font '"+_+"', '"+se+"'. Refer to getFontList() for available fonts."),Ie||we.noFallback||(Ie=St.times[se])==null&&(Ie=St.times.normal),Ie},oi=c.__private__.putInfo=function(){var _=Jt(),se=function(Ce){return Ce};for(var we in u!==null&&(se=tn.encryptor(_,0)),I("<<"),I("/Producer ("+En(se("jsPDF "+bt.version))+")"),$e)$e.hasOwnProperty(we)&&$e[we]&&I("/"+we.substr(0,1).toUpperCase()+we.substr(1)+" ("+En(se($e[we]))+")");I("/CreationDate ("+En(se(z))+")"),I(">>"),I("endobj")},li=c.__private__.putCatalog=function(_){var se=(_=_||{}).rootDictionaryObjId||Wn;switch(Jt(),I("<<"),I("/Type /Catalog"),I("/Pages "+se+" 0 R"),ge||(ge="fullwidth"),ge){case"fullwidth":I("/OpenAction [3 0 R /FitH null]");break;case"fullheight":I("/OpenAction [3 0 R /FitV null]");break;case"fullpage":I("/OpenAction [3 0 R /Fit]");break;case"original":I("/OpenAction [3 0 R /XYZ null null 1]");break;default:var we=""+ge;we.substr(we.length-1)==="%"&&(ge=parseInt(ge)/100),typeof ge=="number"&&I("/OpenAction [3 0 R /XYZ null null "+ae(ge)+"]")}switch(Ue||(Ue="continuous"),Ue){case"continuous":I("/PageLayout /OneColumn");break;case"single":I("/PageLayout /SinglePage");break;case"two":case"twoleft":I("/PageLayout /TwoColumnLeft");break;case"tworight":I("/PageLayout /TwoColumnRight")}ye&&I("/PageMode /"+ye),pt.publish("putCatalog"),I(">>"),I("endobj")},Ui=c.__private__.putTrailer=function(){I("trailer"),I("<<"),I("/Size "+(J+1)),I("/Root "+J+" 0 R"),I("/Info "+(J-1)+" 0 R"),u!==null&&I("/Encrypt "+tn.oid+" 0 R"),I("/ID [ <"+Y+"> <"+Y+"> ]"),I(">>")},xo=c.__private__.putHeader=function(){I("%PDF-"+m),I("%ºß¬à")},wi=c.__private__.putXRef=function(){var _="0000000000";I("xref"),I("0 "+(J+1)),I("0000000000 65535 f ");for(var se=1;se<=J;se++)typeof O[se]=="function"?I((_+O[se]()).slice(-10)+" 00000 n "):O[se]!==void 0?I((_+O[se]).slice(-10)+" 00000 n "):I("0000000000 00000 n ")},Ni=c.__private__.buildDocument=function(){k(),pe(U),pt.publish("buildDocument"),xo(),at(),TA(),ya(),u!==null&&On(),oi(),li();var _=ee;return wi(),Ui(),I("startxref"),I(""+_),I("%%EOF"),pe(W[H]),U.join(`
`)},rs=c.__private__.getBlob=function(_){return new Blob([S(_)],{type:"application/pdf"})},ns=c.output=c.__private__.output=Yn(function(_,se){switch(typeof(se=se||{})=="string"?se={filename:se}:se.filename=se.filename||"generated.pdf",_){case void 0:return Ni();case"save":c.save(se.filename);break;case"arraybuffer":return S(Ni());case"blob":return rs(Ni());case"bloburi":case"bloburl":if(Et.URL!==void 0&&typeof Et.URL.createObjectURL=="function")return Et.URL&&Et.URL.createObjectURL(rs(Ni()))||void 0;dr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var we="",Ce=Ni();try{we=Vd(Ce)}catch{we=Vd(unescape(encodeURIComponent(Ce)))}return"data:application/pdf;filename="+se.filename+";base64,"+we;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Et)==="[object Window]"){var Ie="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Pe=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';se.pdfObjectUrl&&(Ie=se.pdfObjectUrl,Pe="");var Xe='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Ie+'"'+Pe+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(se)+");<\/script></body></html>",nt=Et.open();return nt!==null&&nt.document.write(Xe),nt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Et)==="[object Window]"){var gt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(se.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+se.filename+'" width="500px" height="400px" /></body></html>',Lt=Et.open();if(Lt!==null){Lt.document.write(gt);var Ut=this;Lt.document.documentElement.querySelector("#pdfViewer").onload=function(){Lt.document.title=se.filename,Lt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Ut.output("bloburl"))}}return Lt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Et)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Wt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",se)+'"></iframe></body></html>',Rr=Et.open();if(Rr!==null&&(Rr.document.write(Wt),Rr.document.title=se.filename),Rr||typeof safari>"u")return Rr;break;case"datauri":case"dataurl":return Et.document.location.href=this.output("datauristring",se);default:return null}}),Ea=function(_){return Array.isArray(on)===!0&&on.indexOf(_)>-1};switch(r){case"pt":Ve=1;break;case"mm":Ve=72/25.4;break;case"cm":Ve=72/2.54;break;case"in":Ve=72;break;case"px":Ve=Ea("px_scaling")==1?.75:96/72;break;case"pc":case"em":Ve=12;break;case"ex":Ve=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);Ve=r}var tn=null;te(),ie();var gn=function(_){return u!==null?tn.encryptor(_,0):function(se){return se}},Ls=c.__private__.getPageInfo=c.getPageInfo=function(_){if(isNaN(_)||_%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:mt[_].objId,pageNumber:_,pageContext:mt[_]}},Bt=c.__private__.getPageInfoByObjId=function(_){if(isNaN(_)||_%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var se in mt)if(mt[se].objId===_)break;return Ls(se)},is=c.__private__.getCurrentPageInfo=c.getCurrentPageInfo=function(){return{objId:mt[H].objId,pageNumber:H,pageContext:mt[H]}};c.addPage=function(){return Ba.apply(this,arguments),this},c.setPage=function(){return Ca.apply(this,arguments),pe.call(this,W[H]),this},c.insertPage=function(_){return this.addPage(),this.movePage(H,_),this},c.movePage=function(_,se){var we,Ce;if(_>se){we=W[_],Ce=mt[_];for(var Ie=_;Ie>se;Ie--)W[Ie]=W[Ie-1],mt[Ie]=mt[Ie-1];W[se]=we,mt[se]=Ce,this.setPage(se)}else if(_<se){we=W[_],Ce=mt[_];for(var Pe=_;Pe<se;Pe++)W[Pe]=W[Pe+1],mt[Pe]=mt[Pe+1];W[se]=we,mt[se]=Ce,this.setPage(se)}return this},c.deletePage=function(){return Ns.apply(this,arguments),this},c.__private__.text=c.text=function(_,se,we,Ce,Ie){var Pe,Xe,nt,gt,Lt,Ut,Wt,Rr,Vr,un=(Ce=Ce||{}).scope||this;if(typeof _=="number"&&typeof se=="number"&&(typeof we=="string"||Array.isArray(we))){var Jn=we;we=se,se=_,_=Jn}if(arguments[3]instanceof ut?(j("The transform parameter of text() with a Matrix value"),Vr=Ie):(nt=arguments[4],gt=arguments[5],Yt(Wt=arguments[3])==="object"&&Wt!==null||(typeof nt=="string"&&(gt=nt,nt=null),typeof Wt=="string"&&(gt=Wt,Wt=null),typeof Wt=="number"&&(nt=Wt,Wt=null),Ce={flags:Wt,angle:nt,align:gt})),isNaN(se)||isNaN(we)||_==null)throw new Error("Invalid arguments passed to jsPDF.text");if(_.length===0)return un;var Sn="",UA=!1,Oi=typeof Ce.lineHeightFactor=="number"?Ce.lineHeightFactor:be,os=un.internal.scaleFactor;function od(Br){return Br=Br.split(" ").join(Array(Ce.TabLen||9).join(" ")),En(Br,Wt)}function pc(Br){for(var Cr,nn=Br.concat(),mn=[],Hs=nn.length;Hs--;)typeof(Cr=nn.shift())=="string"?mn.push(Cr):Array.isArray(Br)&&(Cr.length===1||Cr[1]===void 0&&Cr[2]===void 0)?mn.push(Cr[0]):mn.push([Cr[0],Cr[1],Cr[2]]);return mn}function gc(Br,Cr){var nn;if(typeof Br=="string")nn=Cr(Br)[0];else if(Array.isArray(Br)){for(var mn,Hs,Ec=Br.concat(),kl=[],hd=Ec.length;hd--;)typeof(mn=Ec.shift())=="string"?kl.push(Cr(mn)[0]):Array.isArray(mn)&&typeof mn[0]=="string"&&(Hs=Cr(mn[0],mn[1],mn[2]),kl.push([Hs[0],Hs[1],Hs[2]]));nn=kl}return nn}var Tl=!1,mc=!0;if(typeof _=="string")Tl=!0;else if(Array.isArray(_)){var vc=_.concat();Xe=[];for(var Il,Rn=vc.length;Rn--;)(typeof(Il=vc.shift())!="string"||Array.isArray(Il)&&typeof Il[0]!="string")&&(mc=!1);Tl=mc}if(Tl===!1)throw new Error('Type of text must be string or Array. "'+_+'" is not recognized.');typeof _=="string"&&(_=_.match(/[\r?\n]/)?_.split(/\r\n|\r|\n/g):[_]);var Ul=oe/un.internal.scaleFactor,Nl=Ul*(Oi-1);switch(Ce.baseline){case"bottom":we-=Nl;break;case"top":we+=Ul-Nl;break;case"hanging":we+=Ul-2*Nl;break;case"middle":we+=Ul/2-Nl}if((Ut=Ce.maxWidth||0)>0&&(typeof _=="string"?_=un.splitTextToSize(_,Ut):Object.prototype.toString.call(_)==="[object Array]"&&(_=_.reduce(function(Br,Cr){return Br.concat(un.splitTextToSize(Cr,Ut))},[]))),Pe={text:_,x:se,y:we,options:Ce,mutex:{pdfEscape:En,activeFontKey:tt,fonts:yt,activeFontSize:oe}},pt.publish("preProcessText",Pe),_=Pe.text,nt=(Ce=Pe.options).angle,!(Vr instanceof ut)&&nt&&typeof nt=="number"){nt*=Math.PI/180,Ce.rotationDirection===0&&(nt=-nt),b===v.ADVANCED&&(nt=-nt);var Ll=Math.cos(nt),wc=Math.sin(nt);Vr=new ut(Ll,wc,-wc,Ll,0,0)}else nt&&nt instanceof ut&&(Vr=nt);b!==v.ADVANCED||Vr||(Vr=zn),(Lt=Ce.charSpace||bi)!==void 0&&(Sn+=D(x(Lt))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Rr=Ce.horizontalScale)!==void 0&&(Sn+=D(100*Rr)+` Tz
`),Ce.lang;var Bi=-1,ky=Ce.renderingMode!==void 0?Ce.renderingMode:Ce.stroke,yc=un.internal.getCurrentPageInfo().pageContext;switch(ky){case 0:case!1:case"fill":Bi=0;break;case 1:case!0:case"stroke":Bi=1;break;case 2:case"fillThenStroke":Bi=2;break;case 3:case"invisible":Bi=3;break;case 4:case"fillAndAddForClipping":Bi=4;break;case 5:case"strokeAndAddPathForClipping":Bi=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Bi=6;break;case 7:case"addToPathForClipping":Bi=7}var ld=yc.usedRenderingMode!==void 0?yc.usedRenderingMode:-1;Bi!==-1?Sn+=Bi+` Tr
`:ld!==-1&&(Sn+=`0 Tr
`),Bi!==-1&&(yc.usedRenderingMode=Bi),gt=Ce.align||"left";var Ji,Ol=oe*Oi,ud=un.internal.pageSize.getWidth(),cd=yt[tt];Lt=Ce.charSpace||bi,Ut=Ce.maxWidth||0,Wt=Object.assign({autoencode:!0,noBOM:!0},Ce.flags);var _a=[],Fo=function(Br){return un.getStringUnitWidth(Br,{font:cd,charSpace:Lt,fontSize:oe,doKerning:!1})*oe/os};if(Object.prototype.toString.call(_)==="[object Array]"){var Ci;Xe=pc(_),gt!=="left"&&(Ji=Xe.map(Fo));var ui,Ta=0;if(gt==="right"){se-=Ji[0],_=[],Rn=Xe.length;for(var ks=0;ks<Rn;ks++)ks===0?(ui=Rt(se),Ci=br(we)):(ui=x(Ta-Ji[ks]),Ci=-Ol),_.push([Xe[ks],ui,Ci]),Ta=Ji[ks]}else if(gt==="center"){se-=Ji[0]/2,_=[],Rn=Xe.length;for(var Ds=0;Ds<Rn;Ds++)Ds===0?(ui=Rt(se),Ci=br(we)):(ui=x((Ta-Ji[Ds])/2),Ci=-Ol),_.push([Xe[Ds],ui,Ci]),Ta=Ji[Ds]}else if(gt==="left"){_=[],Rn=Xe.length;for(var Ql=0;Ql<Rn;Ql++)_.push(Xe[Ql])}else if(gt==="justify"&&cd.encoding==="Identity-H"){_=[],Rn=Xe.length,Ut=Ut!==0?Ut:ud;for(var Ms=0,rn=0;rn<Rn;rn++)if(Ci=rn===0?br(we):-Ol,ui=rn===0?Rt(se):Ms,rn<Rn-1){var bc=x((Ut-Ji[rn])/(Xe[rn].split(" ").length-1)),ci=Xe[rn].split(" ");_.push([ci[0]+" ",ui,Ci]),Ms=0;for(var Zi=1;Zi<ci.length;Zi++){var Rl=(Fo(ci[Zi-1]+" "+ci[Zi])-Fo(ci[Zi]))*os+bc;Zi==ci.length-1?_.push([ci[Zi],Rl,0]):_.push([ci[Zi]+" ",Rl,0]),Ms-=Rl}}else _.push([Xe[rn],ui,Ci]);_.push(["",Ms,0])}else{if(gt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(_=[],Rn=Xe.length,Ut=Ut!==0?Ut:ud,rn=0;rn<Rn;rn++)Ci=rn===0?br(we):-Ol,ui=rn===0?Rt(se):0,rn<Rn-1?_a.push(D(x((Ut-Ji[rn])/(Xe[rn].split(" ").length-1)))):_a.push(0),_.push([Xe[rn],ui,Ci])}}var fd=typeof Ce.R2L=="boolean"?Ce.R2L:Ee;fd===!0&&(_=gc(_,function(Br,Cr,nn){return[Br.split("").reverse().join(""),Cr,nn]})),Pe={text:_,x:se,y:we,options:Ce,mutex:{pdfEscape:En,activeFontKey:tt,fonts:yt,activeFontSize:oe}},pt.publish("postProcessText",Pe),_=Pe.text,UA=Pe.mutex.isHex||!1;var Bc=yt[tt].encoding;Bc!=="WinAnsiEncoding"&&Bc!=="StandardEncoding"||(_=gc(_,function(Br,Cr,nn){return[od(Br),Cr,nn]})),Xe=pc(_),_=[];for(var _o,To,Ia,Io=0,Pl=1,Uo=Array.isArray(Xe[0])?Pl:Io,Ua="",Cc=function(Br,Cr,nn){var mn="";return nn instanceof ut?(nn=typeof Ce.angle=="number"?bn(nn,new ut(1,0,0,1,Br,Cr)):bn(new ut(1,0,0,1,Br,Cr),nn),b===v.ADVANCED&&(nn=bn(new ut(1,0,0,-1,0,0),nn)),mn=nn.join(" ")+` Tm
`):mn=D(Br)+" "+D(Cr)+` Td
`,mn},eA=0;eA<Xe.length;eA++){switch(Ua="",Uo){case Pl:Ia=(UA?"<":"(")+Xe[eA][0]+(UA?">":")"),_o=parseFloat(Xe[eA][1]),To=parseFloat(Xe[eA][2]);break;case Io:Ia=(UA?"<":"(")+Xe[eA]+(UA?">":")"),_o=Rt(se),To=br(we)}_a!==void 0&&_a[eA]!==void 0&&(Ua=_a[eA]+` Tw
`),eA===0?_.push(Ua+Cc(_o,To,Vr)+Ia):Uo===Io?_.push(Ua+Ia):Uo===Pl&&_.push(Ua+Cc(_o,To,Vr)+Ia)}_=Uo===Io?_.join(` Tj
T* `):_.join(` Tj
`),_+=` Tj
`;var tA=`BT
/`;return tA+=tt+" "+oe+` Tf
`,tA+=D(oe*Oi)+` TL
`,tA+=$n+`
`,tA+=Sn,tA+=_,I(tA+="ET"),h[tt]=!0,un};var Os=c.__private__.clip=c.clip=function(_){return I(_==="evenodd"?"W*":"W"),this};c.clipEvenOdd=function(){return Os("evenodd")},c.__private__.discardPath=c.discardPath=function(){return I("n"),this};var Qn=c.__private__.isValidStyle=function(_){var se=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(_)!==-1&&(se=!0),se};c.__private__.setDefaultPathOperation=c.setDefaultPathOperation=function(_){return Qn(_)&&(l=_),this};var xa=c.__private__.getStyle=c.getStyle=function(_){var se=l;switch(_){case"D":case"S":se="S";break;case"F":se="f";break;case"FD":case"DF":se="B";break;case"f":case"f*":case"B":case"B*":se=_}return se},Qs=c.close=function(){return I("h"),this};c.stroke=function(){return I("S"),this},c.fill=function(_){return $i("f",_),this},c.fillEvenOdd=function(_){return $i("f*",_),this},c.fillStroke=function(_){return $i("B",_),this},c.fillStrokeEvenOdd=function(_){return $i("B*",_),this};var $i=function(_,se){Yt(se)==="object"?Sa(se,_):I(_)},As=function(_){_===null||b===v.ADVANCED&&_===void 0||(_=xa(_),I(_))};function yi(_,se,we,Ce,Ie){var Pe=new Qo(se||this.boundingBox,we||this.xStep,Ce||this.yStep,this.gState,Ie||this.matrix);Pe.stream=this.stream;var Xe=_+"$$"+this.cloneIndex+++"$$";return nr(Xe,Pe),Pe}var Sa=function(_,se){var we=$t[_.key],Ce=Ft[we];if(Ce instanceof Ha)I("q"),I(Rs(se)),Ce.gState&&c.setGState(Ce.gState),I(_.matrix.toString()+" cm"),I("/"+we+" sh"),I("Q");else if(Ce instanceof Qo){var Ie=new ut(1,0,0,-1,0,Fa());_.matrix&&(Ie=Ie.multiply(_.matrix||zn),we=yi.call(Ce,_.key,_.boundingBox,_.xStep,_.yStep,Ie).id),I("q"),I("/Pattern cs"),I("/"+we+" scn"),Ce.gState&&c.setGState(Ce.gState),I(se),I("Q")}},Rs=function(_){switch(_){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Ps=c.moveTo=function(_,se){return I(D(x(_))+" "+D(C(se))+" m"),this},IA=c.lineTo=function(_,se){return I(D(x(_))+" "+D(C(se))+" l"),this},q=c.curveTo=function(_,se,we,Ce,Ie,Pe){return I([D(x(_)),D(C(se)),D(x(we)),D(C(Ce)),D(x(Ie)),D(C(Pe)),"c"].join(" ")),this};c.__private__.line=c.line=function(_,se,we,Ce,Ie){if(isNaN(_)||isNaN(se)||isNaN(we)||isNaN(Ce)||!Qn(Ie))throw new Error("Invalid arguments passed to jsPDF.line");return b===v.COMPAT?this.lines([[we-_,Ce-se]],_,se,[1,1],Ie||"S"):this.lines([[we-_,Ce-se]],_,se,[1,1]).stroke()},c.__private__.lines=c.lines=function(_,se,we,Ce,Ie,Pe){var Xe,nt,gt,Lt,Ut,Wt,Rr,Vr,un,Jn,Sn,UA;if(typeof _=="number"&&(UA=we,we=se,se=_,_=UA),Ce=Ce||[1,1],Pe=Pe||!1,isNaN(se)||isNaN(we)||!Array.isArray(_)||!Array.isArray(Ce)||!Qn(Ie)||typeof Pe!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Ps(se,we),Xe=Ce[0],nt=Ce[1],Lt=_.length,Jn=se,Sn=we,gt=0;gt<Lt;gt++)(Ut=_[gt]).length===2?(Jn=Ut[0]*Xe+Jn,Sn=Ut[1]*nt+Sn,IA(Jn,Sn)):(Wt=Ut[0]*Xe+Jn,Rr=Ut[1]*nt+Sn,Vr=Ut[2]*Xe+Jn,un=Ut[3]*nt+Sn,Jn=Ut[4]*Xe+Jn,Sn=Ut[5]*nt+Sn,q(Wt,Rr,Vr,un,Jn,Sn));return Pe&&Qs(),As(Ie),this},c.path=function(_){for(var se=0;se<_.length;se++){var we=_[se],Ce=we.c;switch(we.op){case"m":Ps(Ce[0],Ce[1]);break;case"l":IA(Ce[0],Ce[1]);break;case"c":q.apply(this,Ce);break;case"h":Qs()}}return this},c.__private__.rect=c.rect=function(_,se,we,Ce,Ie){if(isNaN(_)||isNaN(se)||isNaN(we)||isNaN(Ce)||!Qn(Ie))throw new Error("Invalid arguments passed to jsPDF.rect");return b===v.COMPAT&&(Ce=-Ce),I([D(x(_)),D(C(se)),D(x(we)),D(x(Ce)),"re"].join(" ")),As(Ie),this},c.__private__.triangle=c.triangle=function(_,se,we,Ce,Ie,Pe,Xe){if(isNaN(_)||isNaN(se)||isNaN(we)||isNaN(Ce)||isNaN(Ie)||isNaN(Pe)||!Qn(Xe))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[we-_,Ce-se],[Ie-we,Pe-Ce],[_-Ie,se-Pe]],_,se,[1,1],Xe,!0),this},c.__private__.roundedRect=c.roundedRect=function(_,se,we,Ce,Ie,Pe,Xe){if(isNaN(_)||isNaN(se)||isNaN(we)||isNaN(Ce)||isNaN(Ie)||isNaN(Pe)||!Qn(Xe))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var nt=4/3*(Math.SQRT2-1);return Ie=Math.min(Ie,.5*we),Pe=Math.min(Pe,.5*Ce),this.lines([[we-2*Ie,0],[Ie*nt,0,Ie,Pe-Pe*nt,Ie,Pe],[0,Ce-2*Pe],[0,Pe*nt,-Ie*nt,Pe,-Ie,Pe],[2*Ie-we,0],[-Ie*nt,0,-Ie,-Pe*nt,-Ie,-Pe],[0,2*Pe-Ce],[0,-Pe*nt,Ie*nt,-Pe,Ie,-Pe]],_+Ie,se,[1,1],Xe,!0),this},c.__private__.ellipse=c.ellipse=function(_,se,we,Ce,Ie){if(isNaN(_)||isNaN(se)||isNaN(we)||isNaN(Ce)||!Qn(Ie))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Pe=4/3*(Math.SQRT2-1)*we,Xe=4/3*(Math.SQRT2-1)*Ce;return Ps(_+we,se),q(_+we,se-Xe,_+Pe,se-Ce,_,se-Ce),q(_-Pe,se-Ce,_-we,se-Xe,_-we,se),q(_-we,se+Xe,_-Pe,se+Ce,_,se+Ce),q(_+Pe,se+Ce,_+we,se+Xe,_+we,se),As(Ie),this},c.__private__.circle=c.circle=function(_,se,we,Ce){if(isNaN(_)||isNaN(se)||isNaN(we)||!Qn(Ce))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(_,se,we,we,Ce)},c.setFont=function(_,se,we){return we&&(se=M(se,we)),tt=Yi(_,se,{disableWarning:!1}),this};var he=c.__private__.getFont=c.getFont=function(){return yt[Yi.apply(c,arguments)]};c.__private__.getFontList=c.getFontList=function(){var _,se,we={};for(_ in St)if(St.hasOwnProperty(_))for(se in we[_]=[],St[_])St[_].hasOwnProperty(se)&&we[_].push(se);return we},c.addFont=function(_,se,we,Ce,Ie){var Pe=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Pe.indexOf(arguments[3])!==-1?Ie=arguments[3]:arguments[3]&&Pe.indexOf(arguments[3])==-1&&(we=M(we,Ce)),Ie=Ie||"Identity-H",Ii.call(this,_,se,we,Ie)};var be,Re=n.lineWidth||.200025,Ct=c.__private__.getLineWidth=c.getLineWidth=function(){return Re},ft=c.__private__.setLineWidth=c.setLineWidth=function(_){return Re=_,I(D(x(_))+" w"),this};c.__private__.setLineDash=bt.API.setLineDash=bt.API.setLineDashPattern=function(_,se){if(_=_||[],se=se||0,isNaN(se)||!Array.isArray(_))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return _=_.map(function(we){return D(x(we))}).join(" "),se=D(x(se)),I("["+_+"] "+se+" d"),this};var Ht=c.__private__.getLineHeight=c.getLineHeight=function(){return oe*be};c.__private__.getLineHeight=c.getLineHeight=function(){return oe*be};var Dt=c.__private__.setLineHeightFactor=c.setLineHeightFactor=function(_){return typeof(_=_||1.15)=="number"&&(be=_),this},Ur=c.__private__.getLineHeightFactor=c.getLineHeightFactor=function(){return be};Dt(n.lineHeight);var Rt=c.__private__.getHorizontalCoordinate=function(_){return x(_)},br=c.__private__.getVerticalCoordinate=function(_){return b===v.ADVANCED?_:mt[H].mediaBox.topRightY-mt[H].mediaBox.bottomLeftY-x(_)},xn=c.__private__.getHorizontalCoordinateString=c.getHorizontalCoordinateString=function(_){return D(Rt(_))},cr=c.__private__.getVerticalCoordinateString=c.getVerticalCoordinateString=function(_){return D(br(_))},fr=n.strokeColor||"0 G";c.__private__.getStrokeColor=c.getDrawColor=function(){return Bn(fr)},c.__private__.setStrokeColor=c.setDrawColor=function(_,se,we,Ce){return fr=Cn({ch1:_,ch2:se,ch3:we,ch4:Ce,pdfColorType:"draw",precision:2}),I(fr),this};var Qr=n.fillColor||"0 g";c.__private__.getFillColor=c.getFillColor=function(){return Bn(Qr)},c.__private__.setFillColor=c.setFillColor=function(_,se,we,Ce){return Qr=Cn({ch1:_,ch2:se,ch3:we,ch4:Ce,pdfColorType:"fill",precision:2}),I(Qr),this};var $n=n.textColor||"0 g",Li=c.__private__.getTextColor=c.getTextColor=function(){return Bn($n)};c.__private__.setTextColor=c.setTextColor=function(_,se,we,Ce){return $n=Cn({ch1:_,ch2:se,ch3:we,ch4:Ce,pdfColorType:"text",precision:3}),this};var bi=n.charSpace,Sl=c.__private__.getCharSpace=c.getCharSpace=function(){return parseFloat(bi||0)};c.__private__.setCharSpace=c.setCharSpace=function(_){if(isNaN(_))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return bi=_,this};var ss=0;c.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},c.__private__.setLineCap=c.setLineCap=function(_){var se=c.CapJoinStyles[_];if(se===void 0)throw new Error("Line cap style of '"+_+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ss=se,I(se+" J"),this};var as=0;c.__private__.setLineJoin=c.setLineJoin=function(_){var se=c.CapJoinStyles[_];if(se===void 0)throw new Error("Line join style of '"+_+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return as=se,I(se+" j"),this},c.__private__.setLineMiterLimit=c.__private__.setMiterLimit=c.setLineMiterLimit=c.setMiterLimit=function(_){if(_=_||0,isNaN(_))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return I(D(x(_))+" M"),this},c.GState=Pc,c.setGState=function(_){(_=typeof _=="string"?Qt[yr[_]]:sd(null,_)).equals(It)||(I("/"+_.id+" gs"),It=_)};var sd=function(_,se){if(!_||!yr[_]){var we=!1;for(var Ce in Qt)if(Qt.hasOwnProperty(Ce)&&Qt[Ce].equals(se)){we=!0;break}if(we)se=Qt[Ce];else{var Ie="GS"+(Object.keys(Qt).length+1).toString(10);Qt[Ie]=se,se.id=Ie}return _&&(yr[_]=se.id),pt.publish("addGState",se),se}};c.addGState=function(_,se){return sd(_,se),this},c.saveGraphicsState=function(){return I("q"),ur.push({key:tt,size:oe,color:$n}),this},c.restoreGraphicsState=function(){I("Q");var _=ur.pop();return tt=_.key,oe=_.size,$n=_.color,It=null,this},c.setCurrentTransformationMatrix=function(_){return I(_.toString()+" cm"),this},c.comment=function(_){return I("#"+_),this};var Fl=function(_,se){var we=_||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return we},set:function(Pe){isNaN(Pe)||(we=parseFloat(Pe))}});var Ce=se||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Ce},set:function(Pe){isNaN(Pe)||(Ce=parseFloat(Pe))}});var Ie="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Ie},set:function(Pe){Ie=Pe.toString()}}),this},cc=function(_,se,we,Ce){Fl.call(this,_,se),this.type="rect";var Ie=we||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Ie},set:function(Xe){isNaN(Xe)||(Ie=parseFloat(Xe))}});var Pe=Ce||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Pe},set:function(Xe){isNaN(Xe)||(Pe=parseFloat(Xe))}}),this},fc=function(){this.page=Kt,this.currentPage=H,this.pages=W.slice(0),this.pagesContext=mt.slice(0),this.x=Tt,this.y=st,this.matrix=kt,this.width=So(H),this.height=Fa(H),this.outputDestination=me,this.id="",this.objectNumber=-1};fc.prototype.restore=function(){Kt=this.page,H=this.currentPage,mt=this.pagesContext,W=this.pages,Tt=this.x,st=this.y,kt=this.matrix,hc(H,this.width),dc(H,this.height),me=this.outputDestination};var ad=function(_,se,we,Ce,Ie){dn.push(new fc),Kt=H=0,W=[],Tt=_,st=se,kt=Ie,Us([we,Ce])},Py=function(_){if(jr[_])dn.pop().restore();else{var se=new fc,we="Xo"+(Object.keys(Fr).length+1).toString(10);se.id=we,jr[_]=we,Fr[we]=se,pt.publish("addFormObject",se),dn.pop().restore()}};for(var _l in c.beginFormObject=function(_,se,we,Ce,Ie){return ad(_,se,we,Ce,Ie),this},c.endFormObject=function(_){return Py(_),this},c.doFormObject=function(_,se){var we=Fr[jr[_]];return I("q"),I(se.toString()+" cm"),I("/"+we.id+" Do"),I("Q"),this},c.getFormObject=function(_){var se=Fr[jr[_]];return{x:se.x,y:se.y,width:se.width,height:se.height,matrix:se.matrix}},c.save=function(_,se){return _=_||"generated.pdf",(se=se||{}).returnPromise=se.returnPromise||!1,se.returnPromise===!1?(Ma(rs(Ni()),_),typeof Ma.unload=="function"&&Et.setTimeout&&setTimeout(Ma.unload,911),this):new Promise(function(we,Ce){try{var Ie=Ma(rs(Ni()),_);typeof Ma.unload=="function"&&Et.setTimeout&&setTimeout(Ma.unload,911),we(Ie)}catch(Pe){Ce(Pe.message)}})},bt.API)bt.API.hasOwnProperty(_l)&&(_l==="events"&&bt.API.events.length?function(_,se){var we,Ce,Ie;for(Ie=se.length-1;Ie!==-1;Ie--)we=se[Ie][0],Ce=se[Ie][1],_.subscribe.apply(_,[we].concat(typeof Ce=="function"?[Ce]:Ce))}(pt,bt.API.events):c[_l]=bt.API[_l]);var So=c.getPageWidth=function(_){return(mt[_=_||H].mediaBox.topRightX-mt[_].mediaBox.bottomLeftX)/Ve},hc=c.setPageWidth=function(_,se){mt[_].mediaBox.topRightX=se*Ve+mt[_].mediaBox.bottomLeftX},Fa=c.getPageHeight=function(_){return(mt[_=_||H].mediaBox.topRightY-mt[_].mediaBox.bottomLeftY)/Ve},dc=c.setPageHeight=function(_,se){mt[_].mediaBox.topRightY=se*Ve+mt[_].mediaBox.bottomLeftY};return c.internal={pdfEscape:En,getStyle:xa,getFont:he,getFontSize:ce,getCharSpace:Sl,getTextColor:Li,getLineHeight:Ht,getLineHeightFactor:Ur,getLineWidth:Ct,write:E,getHorizontalCoordinate:Rt,getVerticalCoordinate:br,getCoordinateString:xn,getVerticalCoordinateString:cr,collections:{},newObject:Jt,newAdditionalObject:vi,newObjectDeferred:ir,newObjectDeferredBegin:zt,getFilters:rr,putStream:pn,events:pt,scaleFactor:Ve,pageSize:{getWidth:function(){return So(H)},setWidth:function(_){hc(H,_)},getHeight:function(){return Fa(H)},setHeight:function(_){dc(H,_)}},encryptionOptions:u,encryption:tn,getEncryptor:gn,output:ns,getNumberOfPages:Eo,pages:W,out:I,f2:ae,f3:L,getPageInfo:Ls,getPageInfoByObjId:Bt,getCurrentPageInfo:is,getPDFVersion:g,Point:Fl,Rectangle:cc,Matrix:ut,hasHotfix:Ea},Object.defineProperty(c.internal.pageSize,"width",{get:function(){return So(H)},set:function(_){hc(H,_)},enumerable:!0,configurable:!0}),Object.defineProperty(c.internal.pageSize,"height",{get:function(){return Fa(H)},set:function(_){dc(H,_)},enumerable:!0,configurable:!0}),ba.call(c,P),tt="F1",Ba(i,t),pt.publish("initialized"),c}Lo.prototype.lsbFirstWord=function(n){return String.fromCharCode(n>>0&255,n>>8&255,n>>16&255,n>>24&255)},Lo.prototype.toHexString=function(n){return n.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Lo.prototype.hexToBytes=function(n){for(var e=[],t=0;t<n.length;t+=2)e.push(String.fromCharCode(parseInt(n.substr(t,2),16)));return e.join("")},Lo.prototype.processOwnerPassword=function(n,e){return Wd(zd(e).substr(0,5),n)},Lo.prototype.encryptor=function(n,e){var t=zd(this.encryptionKey+String.fromCharCode(255&n,n>>8&255,n>>16&255,255&e,e>>8&255)).substr(0,10);return function(r){return Wd(t,r)}},Pc.prototype.equals=function(n){var e,t="id,objectNumber,equals";if(!n||Yt(n)!==Yt(this))return!1;var r=0;for(e in this)if(!(t.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!n.hasOwnProperty(e)||this[e]!==n[e])return!1;r++}for(e in n)n.hasOwnProperty(e)&&t.indexOf(e)<0&&r--;return r===0},bt.API={events:[]},bt.version="3.0.1";var Pr=bt.API,Xd=1,qa=function(n){return n.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ro=function(n){return n.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},_t=function(n){return n.toFixed(2)},Ws=function(n){return n.toFixed(5)};Pr.__acroform__={};var hi=function(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n},F2=function(n){return n*Xd},QA=function(n){var e=new T2,t=ot.internal.getHeight(n)||0,r=ot.internal.getWidth(n)||0;return e.BBox=[0,0,Number(_t(r)),Number(_t(t))],e},fU=Pr.__acroform__.setBit=function(n,e){if(n=n||0,e=e||0,isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return n|=1<<e},hU=Pr.__acroform__.clearBit=function(n,e){if(n=n||0,e=e||0,isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return n&=~(1<<e)},dU=Pr.__acroform__.getBit=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(n&1<<e)==0?0:1},zr=Pr.__acroform__.getBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return dU(n,e-1)},Wr=Pr.__acroform__.setBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return fU(n,e-1)},Xr=Pr.__acroform__.clearBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return hU(n,e-1)},pU=Pr.__acroform__.calculateCoordinates=function(n,e){var t=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,i=n[0],A=n[1],s=n[2],a=n[3],o={};return o.lowerLeft_X=t(i)||0,o.lowerLeft_Y=r(A+a)||0,o.upperRight_X=t(i+s)||0,o.upperRight_Y=r(A)||0,[Number(_t(o.lowerLeft_X)),Number(_t(o.lowerLeft_Y)),Number(_t(o.upperRight_X)),Number(_t(o.upperRight_Y))]},gU=function(n){if(n.appearanceStreamContent)return n.appearanceStreamContent;if(n.V||n.DV){var e=[],t=n._V||n.DV,r=Yd(n,t),i=n.scope.internal.getFont(n.fontName,n.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(n.scope.__private__.encodeColorString(n.color)),e.push("/"+i+" "+_t(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var A=QA(n);return A.scope=n.scope,A.stream=e.join(`
`),A}},Yd=function(n,e){var t=n.fontSize===0?n.maxFontSize:n.fontSize,r={text:"",fontSize:""},i=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");i=n.multiline?i.map(function(L){return L.split(`
`)}):i.map(function(L){return[L]});var A=t,s=ot.internal.getHeight(n)||0;s=s<0?-s:s;var a=ot.internal.getWidth(n)||0;a=a<0?-a:a;var o=function(L,x,Q){if(L+1<i.length){var C=x+" "+i[L+1][0];return kc(C,n,Q).width<=a-4}return!1};A++;e:for(;A>0;){e="",A--;var l,u,f=kc("3",n,A).height,h=n.multiline?s-A:(s-f)/2,c=h+=2,m=0,g=0,w=0;if(A<=0){e=`(...) Tj
`,e+="% Width of Text: "+kc(e,n,A=12).width+", FieldWidth:"+a+`
`;break}for(var p="",v=0,b=0;b<i.length;b++)if(i.hasOwnProperty(b)){var B=!1;if(i[b].length!==1&&w!==i[b].length-1){if((f+2)*(v+2)+2>s)continue e;p+=i[b][w],B=!0,g=b,b--}else{p=(p+=i[b][w]+" ").substr(p.length-1)==" "?p.substr(0,p.length-1):p;var T=parseInt(b),M=o(T,p,A),D=b>=i.length-1;if(M&&!D){p+=" ",w=0;continue}if(M||D){if(D)g=T;else if(n.multiline&&(f+2)*(v+2)+2>s)continue e}else{if(!n.multiline||(f+2)*(v+2)+2>s)continue e;g=T}}for(var j="",R=m;R<=g;R++){var ae=i[R];if(n.multiline){if(R===g){j+=ae[w]+" ",w=(w+1)%ae.length;continue}if(R===m){j+=ae[ae.length-1]+" ";continue}}j+=ae[0]+" "}switch(j=j.substr(j.length-1)==" "?j.substr(0,j.length-1):j,u=kc(j,n,A).width,n.textAlign){case"right":l=a-u-2;break;case"center":l=(a-u)/2;break;case"left":default:l=2}e+=_t(l)+" "+_t(c)+` Td
`,e+="("+qa(j)+`) Tj
`,e+=-_t(l)+` 0 Td
`,c=-(A+2),u=0,m=B?g:g+1,v++,p=""}break}return r.text=e,r.fontSize=A,r},kc=function(n,e,t){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(n,{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:i}},mU={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},vU=function(n,e){var t={type:"reference",object:n};e.internal.getPageInfo(n.page).pageContext.annotations.find(function(r){return r.type===t.type&&r.object===t.object})===void 0&&e.internal.getPageInfo(n.page).pageContext.annotations.push(t)},wU=function(n,e){for(var t in n)if(n.hasOwnProperty(t)){var r=t,i=n[t];e.internal.newObjectDeferredBegin(i.objId,!0),Yt(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete n[r]}},yU=function(n,e){if(e.scope=n,n.internal!==void 0&&(n.internal.acroformPlugin===void 0||n.internal.acroformPlugin.isInitialized===!1)){if(aA.FieldNum=0,n.internal.acroformPlugin=JSON.parse(JSON.stringify(mU)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Xd=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new I2,n.internal.acroformPlugin.acroFormDictionaryRoot.scope=n,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(n)}),n.internal.events.subscribe("buildDocument",function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in r)if(r.hasOwnProperty(i)){var A=r[i];A.objId=void 0,A.hasAnnotation&&vU(A,t)}})(n)}),n.internal.events.subscribe("putCatalog",function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(n)}),n.internal.events.subscribe("postPutPages",function(t){(function(r,i){var A=!r;for(var s in r||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(s)){var a=r[s],o=[],l=a.Rect;if(a.Rect&&(a.Rect=pU(a.Rect,i)),i.internal.newObjectDeferredBegin(a.objId,!0),a.DA=ot.createDefaultAppearanceStream(a),Yt(a)==="object"&&typeof a.getKeyValueListForStream=="function"&&(o=a.getKeyValueListForStream()),a.Rect=l,a.hasAppearanceStream&&!a.appearanceStreamContent){var u=gU(a);o.push({key:"AP",value:"<</N "+u+">>"}),i.internal.acroformPlugin.xForms.push(u)}if(a.appearanceStreamContent){var f="";for(var h in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(h)){var c=a.appearanceStreamContent[h];if(f+="/"+h+" ",f+="<<",Object.keys(c).length>=1||Array.isArray(c)){for(var s in c)if(c.hasOwnProperty(s)){var m=c[s];typeof m=="function"&&(m=m.call(i,a)),f+="/"+s+" "+m+" ",i.internal.acroformPlugin.xForms.indexOf(m)>=0||i.internal.acroformPlugin.xForms.push(m)}}else typeof(m=c)=="function"&&(m=m.call(i,a)),f+="/"+s+" "+m,i.internal.acroformPlugin.xForms.indexOf(m)>=0||i.internal.acroformPlugin.xForms.push(m);f+=">>"}o.push({key:"AP",value:`<<
`+f+">>"})}i.internal.putStream({additionalKeyValues:o,objectId:a.objId}),i.internal.out("endobj")}A&&wU(i.internal.acroformPlugin.xForms,i)})(t,n)}),n.internal.acroformPlugin.isInitialized=!0}},_2=Pr.__acroform__.arrayToPdfArray=function(n,e,t){var r=function(s){return s};if(Array.isArray(n)){for(var i="[",A=0;A<n.length;A++)switch(A!==0&&(i+=" "),Yt(n[A])){case"boolean":case"number":case"object":i+=n[A].toString();break;case"string":n[A].substr(0,1)!=="/"?(e!==void 0&&t&&(r=t.internal.getEncryptor(e)),i+="("+qa(r(n[A].toString()))+")"):i+=n[A].toString()}return i+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},$d=function(n,e,t){var r=function(i){return i};return e!==void 0&&t&&(r=t.internal.getEncryptor(e)),(n=n||"").toString(),n="("+qa(r(n))+")"},RA=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(n){this._objId=n}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};RA.prototype.toString=function(){return this.objId+" 0 R"},RA.prototype.putStream=function(){var n=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:n,objectId:this.objId}),this.scope.internal.out("endobj")},RA.prototype.getKeyValueListForStream=function(){var n=[],e=Object.getOwnPropertyNames(this).filter(function(A){return A!="content"&&A!="appearanceStreamContent"&&A!="scope"&&A!="objId"&&A.substring(0,1)!="_"});for(var t in e)if(Object.getOwnPropertyDescriptor(this,e[t]).configurable===!1){var r=e[t],i=this[r];i&&(Array.isArray(i)?n.push({key:r,value:_2(i,this.objId,this.scope)}):i instanceof RA?(i.scope=this.scope,n.push({key:r,value:i.objId+" 0 R"})):typeof i!="function"&&n.push({key:r,value:i}))}return n};var T2=function(){RA.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var n,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){n=t.trim()},get:function(){return n||null}})};hi(T2,RA);var I2=function(){RA.call(this);var n,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(n){var t=function(r){return r};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+qa(t(n))+")"}},set:function(t){n=t}})};hi(I2,RA);var aA=function n(){RA.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(p){if(isNaN(p))throw new Error('Invalid value "'+p+'" for attribute F supplied.');e=p}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!zr(e,3)},set:function(p){p?this.F=Wr(e,3):this.F=Xr(e,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(p){if(isNaN(p))throw new Error('Invalid value "'+p+'" for attribute Ff supplied.');t=p}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(p){r=p!==void 0?p:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(p){r[0]=p}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(p){r[1]=p}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(p){r[2]=p}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(p){r[3]=p}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(p){switch(p){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=p;break;default:throw new Error('Invalid value "'+p+'" for attribute FT supplied.')}}});var A=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!A||A.length<1){if(this instanceof Hc)return;A="FieldObject"+n.FieldNum++}var p=function(v){return v};return this.scope&&(p=this.scope.internal.getEncryptor(this.objId)),"("+qa(p(A))+")"},set:function(p){A=p.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return A},set:function(p){A=p}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(p){s=p}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(p){a=p}});var o=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return o},set:function(p){o=p}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return l===void 0?50/Xd:l},set:function(p){l=p}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(p){u=p}});var f="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!f||this instanceof Hc||this instanceof ja))return $d(f,this.objId,this.scope)},set:function(p){p=p.toString(),f=p}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof vn?h:$d(h,this.objId,this.scope)},set:function(p){p=p.toString(),h=this instanceof vn?p:p.substr(0,1)==="("?Ro(p.substr(1,p.length-2)):Ro(p)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof vn?Ro(h.substr(1,h.length-1)):h},set:function(p){p=p.toString(),h=this instanceof vn?"/"+p:p}});var c=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(c)return c},set:function(p){this.V=p}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(c)return this instanceof vn?c:$d(c,this.objId,this.scope)},set:function(p){p=p.toString(),c=this instanceof vn?p:p.substr(0,1)==="("?Ro(p.substr(1,p.length-2)):Ro(p)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof vn?Ro(c.substr(1,c.length-1)):c},set:function(p){p=p.toString(),c=this instanceof vn?"/"+p:p}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var m,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return g},set:function(p){p=!!p,g=p}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(m)return m},set:function(p){m=p}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,1)},set:function(p){p?this.Ff=Wr(this.Ff,1):this.Ff=Xr(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,2)},set:function(p){p?this.Ff=Wr(this.Ff,2):this.Ff=Xr(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,3)},set:function(p){p?this.Ff=Wr(this.Ff,3):this.Ff=Xr(this.Ff,3)}});var w=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(w!==null)return w},set:function(p){if([0,1,2].indexOf(p)===-1)throw new Error('Invalid value "'+p+'" for attribute Q supplied.');w=p}}),Object.defineProperty(this,"textAlign",{get:function(){var p;switch(w){case 0:default:p="left";break;case 1:p="center";break;case 2:p="right"}return p},configurable:!0,enumerable:!0,set:function(p){switch(p){case"right":case 2:w=2;break;case"center":case 1:w=1;break;case"left":case 0:default:w=0}}})};hi(aA,RA);var Po=function(){aA.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var n=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return n},set:function(t){n=t}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return _2(e,this.objId,this.scope)},set:function(t){var r,i;i=[],typeof(r=t)=="string"&&(i=function(A,s,a){a||(a=1);for(var o,l=[];o=s.exec(A);)l.push(o[a]);return l}(r,/\((.*?)\)/g)),e=i}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();e.indexOf(t)!==-1&&(e.splice(e.indexOf(t),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,18)},set:function(t){t?this.Ff=Wr(this.Ff,18):this.Ff=Xr(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,19)},set:function(t){this.combo===!0&&(t?this.Ff=Wr(this.Ff,19):this.Ff=Xr(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,20)},set:function(t){t?(this.Ff=Wr(this.Ff,20),e.sort()):this.Ff=Xr(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,22)},set:function(t){t?this.Ff=Wr(this.Ff,22):this.Ff=Xr(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,23)},set:function(t){t?this.Ff=Wr(this.Ff,23):this.Ff=Xr(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,27)},set:function(t){t?this.Ff=Wr(this.Ff,27):this.Ff=Xr(this.Ff,27)}}),this.hasAppearanceStream=!1};hi(Po,aA);var ko=function(){Po.call(this),this.fontName="helvetica",this.combo=!1};hi(ko,Po);var Do=function(){ko.call(this),this.combo=!0};hi(Do,ko);var Dc=function(){Do.call(this),this.edit=!0};hi(Dc,Do);var vn=function(){aA.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,15)},set:function(t){t?this.Ff=Wr(this.Ff,15):this.Ff=Xr(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,16)},set:function(t){t?this.Ff=Wr(this.Ff,16):this.Ff=Xr(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,17)},set:function(t){t?this.Ff=Wr(this.Ff,17):this.Ff=Xr(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,26)},set:function(t){t?this.Ff=Wr(this.Ff,26):this.Ff=Xr(this.Ff,26)}});var n,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(A){return A};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var r,i=[];for(r in i.push("<<"),e)i.push("/"+r+" ("+qa(t(e[r]))+")");return i.push(">>"),i.join(`
`)}},set:function(t){Yt(t)==="object"&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){typeof t=="string"&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+t}})};hi(vn,aA);var Mc=function(){vn.call(this),this.pushButton=!0};hi(Mc,vn);var Mo=function(){vn.call(this),this.radio=!0,this.pushButton=!1;var n=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){n=e!==void 0?e:[]}})};hi(Mo,vn);var Hc=function(){var n,e;aA.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return n},set:function(i){n=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(i){e=i}});var t,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(a){return a};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var A,s=[];for(A in s.push("<<"),r)s.push("/"+A+" ("+qa(i(r[A]))+")");return s.push(">>"),s.join(`
`)},set:function(i){Yt(i)==="object"&&(r=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(i){typeof i=="string"&&(r.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(i){t=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(i){t="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ot.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};hi(Hc,aA),Mo.prototype.setAppearance=function(n){if(!("createAppearanceStream"in n)||!("getCA"in n))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var t=this.Kids[e];t.appearanceStreamContent=n.createAppearanceStream(t.optionName),t.caption=n.getCA()}},Mo.prototype.createOption=function(n){var e=new Hc;return e.Parent=this,e.optionName=n,this.Kids.push(e),bU.call(this.scope,e),e};var qc=function(){vn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ot.CheckBox.createAppearanceStream()};hi(qc,vn);var ja=function(){aA.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,13)},set:function(e){e?this.Ff=Wr(this.Ff,13):this.Ff=Xr(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,21)},set:function(e){e?this.Ff=Wr(this.Ff,21):this.Ff=Xr(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,23)},set:function(e){e?this.Ff=Wr(this.Ff,23):this.Ff=Xr(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,24)},set:function(e){e?this.Ff=Wr(this.Ff,24):this.Ff=Xr(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,25)},set:function(e){e?this.Ff=Wr(this.Ff,25):this.Ff=Xr(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,26)},set:function(e){e?this.Ff=Wr(this.Ff,26):this.Ff=Xr(this.Ff,26)}});var n=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return n},set:function(e){Number.isInteger(e)&&(n=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};hi(ja,aA);var jc=function(){ja.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,14)},set:function(n){n?this.Ff=Wr(this.Ff,14):this.Ff=Xr(this.Ff,14)}}),this.password=!0};hi(jc,ja);var ot={CheckBox:{createAppearanceStream:function(){return{N:{On:ot.CheckBox.YesNormal},D:{On:ot.CheckBox.YesPushDown,Off:ot.CheckBox.OffPushDown}}},YesPushDown:function(n){var e=QA(n);e.scope=n.scope;var t=[],r=n.scope.internal.getFont(n.fontName,n.fontStyle).id,i=n.scope.__private__.encodeColorString(n.color),A=Yd(n,n.caption);return t.push("0.749023 g"),t.push("0 0 "+_t(ot.internal.getWidth(n))+" "+_t(ot.internal.getHeight(n))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+r+" "+_t(A.fontSize)+" Tf "+i),t.push("BT"),t.push(A.text),t.push("ET"),t.push("Q"),t.push("EMC"),e.stream=t.join(`
`),e},YesNormal:function(n){var e=QA(n);e.scope=n.scope;var t=n.scope.internal.getFont(n.fontName,n.fontStyle).id,r=n.scope.__private__.encodeColorString(n.color),i=[],A=ot.internal.getHeight(n),s=ot.internal.getWidth(n),a=Yd(n,n.caption);return i.push("1 g"),i.push("0 0 "+_t(s)+" "+_t(A)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+_t(s-1)+" "+_t(A-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+t+" "+_t(a.fontSize)+" Tf "+r),i.push(a.text),i.push("ET"),i.push("Q"),e.stream=i.join(`
`),e},OffPushDown:function(n){var e=QA(n);e.scope=n.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+_t(ot.internal.getWidth(n))+" "+_t(ot.internal.getHeight(n))+" re"),t.push("f"),e.stream=t.join(`
`),e}},RadioButton:{Circle:{createAppearanceStream:function(n){var e={D:{Off:ot.RadioButton.Circle.OffPushDown},N:{}};return e.N[n]=ot.RadioButton.Circle.YesNormal,e.D[n]=ot.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(n){var e=QA(n);e.scope=n.scope;var t=[],r=ot.internal.getWidth(n)<=ot.internal.getHeight(n)?ot.internal.getWidth(n)/4:ot.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var i=ot.internal.Bezier_C,A=Number((r*i).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+Ws(ot.internal.getWidth(n)/2)+" "+Ws(ot.internal.getHeight(n)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+A+" "+A+" "+r+" 0 "+r+" c"),t.push("-"+A+" "+r+" -"+r+" "+A+" -"+r+" 0 c"),t.push("-"+r+" -"+A+" -"+A+" -"+r+" 0 -"+r+" c"),t.push(A+" -"+r+" "+r+" -"+A+" "+r+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
`),e},YesPushDown:function(n){var e=QA(n);e.scope=n.scope;var t=[],r=ot.internal.getWidth(n)<=ot.internal.getHeight(n)?ot.internal.getWidth(n)/4:ot.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),A=Number((i*ot.internal.Bezier_C).toFixed(5)),s=Number((r*ot.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+Ws(ot.internal.getWidth(n)/2)+" "+Ws(ot.internal.getHeight(n)/2)+" cm"),t.push(i+" 0 m"),t.push(i+" "+A+" "+A+" "+i+" 0 "+i+" c"),t.push("-"+A+" "+i+" -"+i+" "+A+" -"+i+" 0 c"),t.push("-"+i+" -"+A+" -"+A+" -"+i+" 0 -"+i+" c"),t.push(A+" -"+i+" "+i+" -"+A+" "+i+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+Ws(ot.internal.getWidth(n)/2)+" "+Ws(ot.internal.getHeight(n)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),t.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),t.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),t.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
`),e},OffPushDown:function(n){var e=QA(n);e.scope=n.scope;var t=[],r=ot.internal.getWidth(n)<=ot.internal.getHeight(n)?ot.internal.getWidth(n)/4:ot.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),A=Number((i*ot.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+Ws(ot.internal.getWidth(n)/2)+" "+Ws(ot.internal.getHeight(n)/2)+" cm"),t.push(i+" 0 m"),t.push(i+" "+A+" "+A+" "+i+" 0 "+i+" c"),t.push("-"+A+" "+i+" -"+i+" "+A+" -"+i+" 0 c"),t.push("-"+i+" -"+A+" -"+A+" -"+i+" 0 -"+i+" c"),t.push(A+" -"+i+" "+i+" -"+A+" "+i+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
`),e}},Cross:{createAppearanceStream:function(n){var e={D:{Off:ot.RadioButton.Cross.OffPushDown},N:{}};return e.N[n]=ot.RadioButton.Cross.YesNormal,e.D[n]=ot.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(n){var e=QA(n);e.scope=n.scope;var t=[],r=ot.internal.calculateCross(n);return t.push("q"),t.push("1 1 "+_t(ot.internal.getWidth(n)-2)+" "+_t(ot.internal.getHeight(n)-2)+" re"),t.push("W"),t.push("n"),t.push(_t(r.x1.x)+" "+_t(r.x1.y)+" m"),t.push(_t(r.x2.x)+" "+_t(r.x2.y)+" l"),t.push(_t(r.x4.x)+" "+_t(r.x4.y)+" m"),t.push(_t(r.x3.x)+" "+_t(r.x3.y)+" l"),t.push("s"),t.push("Q"),e.stream=t.join(`
`),e},YesPushDown:function(n){var e=QA(n);e.scope=n.scope;var t=ot.internal.calculateCross(n),r=[];return r.push("0.749023 g"),r.push("0 0 "+_t(ot.internal.getWidth(n))+" "+_t(ot.internal.getHeight(n))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+_t(ot.internal.getWidth(n)-2)+" "+_t(ot.internal.getHeight(n)-2)+" re"),r.push("W"),r.push("n"),r.push(_t(t.x1.x)+" "+_t(t.x1.y)+" m"),r.push(_t(t.x2.x)+" "+_t(t.x2.y)+" l"),r.push(_t(t.x4.x)+" "+_t(t.x4.y)+" m"),r.push(_t(t.x3.x)+" "+_t(t.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join(`
`),e},OffPushDown:function(n){var e=QA(n);e.scope=n.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+_t(ot.internal.getWidth(n))+" "+_t(ot.internal.getHeight(n))+" re"),t.push("f"),e.stream=t.join(`
`),e}}},createDefaultAppearanceStream:function(n){var e=n.scope.internal.getFont(n.fontName,n.fontStyle).id,t=n.scope.__private__.encodeColorString(n.color);return"/"+e+" "+n.fontSize+" Tf "+t}};ot.internal={Bezier_C:.551915024494,calculateCross:function(n){var e=ot.internal.getWidth(n),t=ot.internal.getHeight(n),r=Math.min(e,t);return{x1:{x:(e-r)/2,y:(t-r)/2+r},x2:{x:(e-r)/2+r,y:(t-r)/2},x3:{x:(e-r)/2,y:(t-r)/2},x4:{x:(e-r)/2+r,y:(t-r)/2+r}}}},ot.internal.getWidth=function(n){var e=0;return Yt(n)==="object"&&(e=F2(n.Rect[2])),e},ot.internal.getHeight=function(n){var e=0;return Yt(n)==="object"&&(e=F2(n.Rect[3])),e};var bU=Pr.addField=function(n){if(yU(this,n),!(n instanceof aA))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=n).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),n.page=n.scope.internal.getCurrentPageInfo().pageNumber,this};Pr.AcroFormChoiceField=Po,Pr.AcroFormListBox=ko,Pr.AcroFormComboBox=Do,Pr.AcroFormEditBox=Dc,Pr.AcroFormButton=vn,Pr.AcroFormPushButton=Mc,Pr.AcroFormRadioButton=Mo,Pr.AcroFormCheckBox=qc,Pr.AcroFormTextField=ja,Pr.AcroFormPasswordField=jc,Pr.AcroFormAppearance=ot,Pr.AcroForm={ChoiceField:Po,ListBox:ko,ComboBox:Do,EditBox:Dc,Button:vn,PushButton:Mc,RadioButton:Mo,CheckBox:qc,TextField:ja,PasswordField:jc,Appearance:ot},bt.AcroForm={ChoiceField:Po,ListBox:ko,ComboBox:Do,EditBox:Dc,Button:vn,PushButton:Mc,RadioButton:Mo,CheckBox:qc,TextField:ja,PasswordField:jc,Appearance:ot},bt.AcroForm;function U2(n){return n.reduce(function(e,t,r){return e[t]=r,e},{})}(function(n){n.__addimage__={};var e="UNKNOWN",t={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=n.__addimage__.getImageFileTypeByImageData=function(L,x){var Q,C,z,Y,V,ie=e;if((x=x||e)==="RGBA"||L.data!==void 0&&L.data instanceof Uint8ClampedArray&&"height"in L&&"width"in L)return"RGBA";if(M(L))for(V in t)for(z=t[V],Q=0;Q<z.length;Q+=1){for(Y=!0,C=0;C<z[Q].length;C+=1)if(z[Q][C]!==void 0&&z[Q][C]!==L[C]){Y=!1;break}if(Y===!0){ie=V;break}}else for(V in t)for(z=t[V],Q=0;Q<z.length;Q+=1){for(Y=!0,C=0;C<z[Q].length;C+=1)if(z[Q][C]!==void 0&&z[Q][C]!==L.charCodeAt(C)){Y=!1;break}if(Y===!0){ie=V;break}}return ie===e&&x!==e&&(ie=x),ie},i=function L(x){for(var Q=this.internal.write,C=this.internal.putStream,z=(0,this.internal.getFilters)();z.indexOf("FlateEncode")!==-1;)z.splice(z.indexOf("FlateEncode"),1);x.objectId=this.internal.newObject();var Y=[];if(Y.push({key:"Type",value:"/XObject"}),Y.push({key:"Subtype",value:"/Image"}),Y.push({key:"Width",value:x.width}),Y.push({key:"Height",value:x.height}),x.colorSpace===w.INDEXED?Y.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(x.palette.length/3-1)+" "+("sMask"in x&&x.sMask!==void 0?x.objectId+2:x.objectId+1)+" 0 R]"}):(Y.push({key:"ColorSpace",value:"/"+x.colorSpace}),x.colorSpace===w.DEVICE_CMYK&&Y.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Y.push({key:"BitsPerComponent",value:x.bitsPerComponent}),"decodeParameters"in x&&x.decodeParameters!==void 0&&Y.push({key:"DecodeParms",value:"<<"+x.decodeParameters+">>"}),"transparency"in x&&Array.isArray(x.transparency)){for(var V="",ie=0,Ae=x.transparency.length;ie<Ae;ie++)V+=x.transparency[ie]+" "+x.transparency[ie]+" ";Y.push({key:"Mask",value:"["+V+"]"})}x.sMask!==void 0&&Y.push({key:"SMask",value:x.objectId+1+" 0 R"});var $=x.filter!==void 0?["/"+x.filter]:void 0;if(C({data:x.data,additionalKeyValues:Y,alreadyAppliedFilters:$,objectId:x.objectId}),Q("endobj"),"sMask"in x&&x.sMask!==void 0){var te="/Predictor "+x.predictor+" /Colors 1 /BitsPerComponent "+x.bitsPerComponent+" /Columns "+x.width,F={width:x.width,height:x.height,colorSpace:"DeviceGray",bitsPerComponent:x.bitsPerComponent,decodeParameters:te,data:x.sMask};"filter"in x&&(F.filter=x.filter),L.call(this,F)}if(x.colorSpace===w.INDEXED){var H=this.internal.newObject();C({data:j(new Uint8Array(x.palette)),objectId:H}),Q("endobj")}},A=function(){var L=this.internal.collections.addImage_images;for(var x in L)i.call(this,L[x])},s=function(){var L,x=this.internal.collections.addImage_images,Q=this.internal.write;for(var C in x)Q("/I"+(L=x[C]).index,L.objectId,"0","R")},a=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",A),this.internal.events.subscribe("putXobjectDict",s))},o=function(){var L=this.internal.collections.addImage_images;return a.call(this),L},l=function(){return Object.keys(this.internal.collections.addImage_images).length},u=function(L){return typeof n["process"+L.toUpperCase()]=="function"},f=function(L){return Yt(L)==="object"&&L.nodeType===1},h=function(L,x){if(L.nodeName==="IMG"&&L.hasAttribute("src")){var Q=""+L.getAttribute("src");if(Q.indexOf("data:image/")===0)return Yl(unescape(Q).split("base64,").pop());var C=n.loadFile(Q,!0);if(C!==void 0)return C}if(L.nodeName==="CANVAS"){if(L.width===0||L.height===0)throw new Error("Given canvas must have data. Canvas width: "+L.width+", height: "+L.height);var z;switch(x){case"PNG":z="image/png";break;case"WEBP":z="image/webp";break;case"JPEG":case"JPG":default:z="image/jpeg"}return Yl(L.toDataURL(z,1).split("base64,").pop())}},c=function(L){var x=this.internal.collections.addImage_images;if(x){for(var Q in x)if(L===x[Q].alias)return x[Q]}},m=function(L,x,Q){return L||x||(L=-96,x=-96),L<0&&(L=-1*Q.width*72/L/this.internal.scaleFactor),x<0&&(x=-1*Q.height*72/x/this.internal.scaleFactor),L===0&&(L=x*Q.width/Q.height),x===0&&(x=L*Q.height/Q.width),[L,x]},g=function(L,x,Q,C,z,Y){var V=m.call(this,Q,C,z),ie=this.internal.getCoordinateString,Ae=this.internal.getVerticalCoordinateString,$=o.call(this);if(Q=V[0],C=V[1],$[z.index]=z,Y){Y*=Math.PI/180;var te=Math.cos(Y),F=Math.sin(Y),H=function(X){return X.toFixed(4)},G=[H(te),H(F),H(-1*F),H(te),0,0,"cm"]}this.internal.write("q"),Y?(this.internal.write([1,"0","0",1,ie(L),Ae(x+C),"cm"].join(" ")),this.internal.write(G.join(" ")),this.internal.write([ie(Q),"0","0",ie(C),"0","0","cm"].join(" "))):this.internal.write([ie(Q),"0","0",ie(C),ie(L),Ae(x+C),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+z.index+" Do"),this.internal.write("Q")},w=n.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};n.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var p=n.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},v=n.__addimage__.sHashCode=function(L){var x,Q,C=0;if(typeof L=="string")for(Q=L.length,x=0;x<Q;x++)C=(C<<5)-C+L.charCodeAt(x),C|=0;else if(M(L))for(Q=L.byteLength/2,x=0;x<Q;x++)C=(C<<5)-C+L[x],C|=0;return C},b=n.__addimage__.validateStringAsBase64=function(L){(L=L||"").toString().trim();var x=!0;return L.length===0&&(x=!1),L.length%4!=0&&(x=!1),/^[A-Za-z0-9+/]+$/.test(L.substr(0,L.length-2))===!1&&(x=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(L.substr(-2))===!1&&(x=!1),x},B=n.__addimage__.extractImageFromDataUrl=function(L){if(L==null||!(L=L.trim()).startsWith("data:"))return null;var x=L.indexOf(",");return x<0?null:L.substring(0,x).trim().endsWith("base64")?L.substring(x+1):null},T=n.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};n.__addimage__.isArrayBuffer=function(L){return T()&&L instanceof ArrayBuffer};var M=n.__addimage__.isArrayBufferView=function(L){return T()&&typeof Uint32Array<"u"&&(L instanceof Int8Array||L instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&L instanceof Uint8ClampedArray||L instanceof Int16Array||L instanceof Uint16Array||L instanceof Int32Array||L instanceof Uint32Array||L instanceof Float32Array||L instanceof Float64Array)},D=n.__addimage__.binaryStringToUint8Array=function(L){for(var x=L.length,Q=new Uint8Array(x),C=0;C<x;C++)Q[C]=L.charCodeAt(C);return Q},j=n.__addimage__.arrayBufferToBinaryString=function(L){for(var x="",Q=M(L)?L:new Uint8Array(L),C=0;C<Q.length;C+=8192)x+=String.fromCharCode.apply(null,Q.subarray(C,C+8192));return x};n.addImage=function(){var L,x,Q,C,z,Y,V,ie,Ae;if(typeof arguments[1]=="number"?(x=e,Q=arguments[1],C=arguments[2],z=arguments[3],Y=arguments[4],V=arguments[5],ie=arguments[6],Ae=arguments[7]):(x=arguments[1],Q=arguments[2],C=arguments[3],z=arguments[4],Y=arguments[5],V=arguments[6],ie=arguments[7],Ae=arguments[8]),Yt(L=arguments[0])==="object"&&!f(L)&&"imageData"in L){var $=L;L=$.imageData,x=$.format||x||e,Q=$.x||Q||0,C=$.y||C||0,z=$.w||$.width||z,Y=$.h||$.height||Y,V=$.alias||V,ie=$.compression||ie,Ae=$.rotation||$.angle||Ae}var te=this.internal.getFilters();if(ie===void 0&&te.indexOf("FlateEncode")!==-1&&(ie="SLOW"),isNaN(Q)||isNaN(C))throw new Error("Invalid coordinates passed to jsPDF.addImage");a.call(this);var F=R.call(this,L,x,V,ie);return g.call(this,Q,C,z,Y,F,Ae),this};var R=function(L,x,Q,C){var z,Y,V;if(typeof L=="string"&&r(L)===e){L=unescape(L);var ie=ae(L,!1);(ie!==""||(ie=n.loadFile(L,!0))!==void 0)&&(L=ie)}if(f(L)&&(L=h(L,x)),x=r(L,x),!u(x))throw new Error("addImage does not support files of type '"+x+"', please ensure that a plugin for '"+x+"' support is added.");if(((V=Q)==null||V.length===0)&&(Q=function(Ae){return typeof Ae=="string"||M(Ae)?v(Ae):M(Ae.data)?v(Ae.data):null}(L)),(z=c.call(this,Q))||(T()&&(L instanceof Uint8Array||x==="RGBA"||(Y=L,L=D(L))),z=this["process"+x.toUpperCase()](L,l.call(this),Q,function(Ae){return Ae&&typeof Ae=="string"&&(Ae=Ae.toUpperCase()),Ae in n.image_compression?Ae:p.NONE}(C),Y)),!z)throw new Error("An unknown error occurred whilst processing the image.");return z},ae=n.__addimage__.convertBase64ToBinaryString=function(L,x){x=typeof x!="boolean"||x;var Q,C="";if(typeof L=="string"){var z;Q=(z=B(L))!==null&&z!==void 0?z:L;try{C=Yl(Q)}catch(Y){if(x)throw b(Q)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Y.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return C};n.getImageProperties=function(L){var x,Q,C="";if(f(L)&&(L=h(L)),typeof L=="string"&&r(L)===e&&((C=ae(L,!1))===""&&(C=n.loadFile(L)||""),L=C),Q=r(L),!u(Q))throw new Error("addImage does not support files of type '"+Q+"', please ensure that a plugin for '"+Q+"' support is added.");if(!T()||L instanceof Uint8Array||(L=D(L)),!(x=this["process"+Q.toUpperCase()](L)))throw new Error("An unknown error occurred whilst processing the image");return x.fileType=Q,x}})(bt.API),function(n){var e=function(t){if(t!==void 0&&t!="")return!0};bt.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),n.events.push(["putPage",function(t){for(var r,i,A,s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(t.objId),l=t.pageContext.annotations,u=!1,f=0;f<l.length&&!u;f++)switch((r=l[f]).type){case"link":(e(r.options.url)||e(r.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var h=0;h<l.length;h++){r=l[h];var c=this.internal.pdfEscape,m=this.internal.getEncryptor(t.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var g=this.internal.newAdditionalObject(),w=this.internal.newAdditionalObject(),p=this.internal.getEncryptor(g.objId),v=r.title||"Note";A="<</Type /Annot /Subtype /Text "+(i="/Rect ["+s(r.bounds.x)+" "+a(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y)+"] ")+"/Contents ("+c(p(r.contents))+")",A+=" /Popup "+w.objId+" 0 R",A+=" /P "+o.objId+" 0 R",A+=" /T ("+c(p(v))+") >>",g.content=A;var b=g.objId+" 0 R";A="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+s(r.bounds.x+30)+" "+a(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w+30)+" "+a(r.bounds.y)+"] ")+" /Parent "+b,r.open&&(A+=" /Open true"),A+=" >>",w.content=A,this.internal.write(g.objId,"0 R",w.objId,"0 R");break;case"freetext":i="/Rect ["+s(r.bounds.x)+" "+a(r.bounds.y)+" "+s(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y+r.bounds.h)+"] ";var B=r.color||"#000000";A="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+c(m(r.contents))+")",A+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+B+")",A+=" /Border [0 0 0]",A+=" >>",this.internal.write(A);break;case"link":if(r.options.name){var T=this.annotations._nameMap[r.options.name];r.options.pageNumber=T.page,r.options.top=T.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",A="",r.options.url)A="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+c(m(r.options.url))+") >>";else if(r.options.pageNumber)switch(A="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":A+=" /Fit]";break;case"FitH":A+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,A+=" /FitV "+r.options.left+"]";break;case"XYZ":default:var M=a(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),A+=" /XYZ "+r.options.left+" "+M+" "+r.options.zoom+"]"}A!=""&&(A+=" >>",this.internal.write(A))}}this.internal.write("]")}}]),n.createAnnotation=function(t){var r=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":r.pageContext.annotations.push(t)}},n.link=function(t,r,i,A,s){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(t),y:l(r),w:o(t+i),h:l(r+A)},options:s,type:"link"})},n.textWithLink=function(t,r,i,A){var s,a,o=this.getTextWidth(t),l=this.internal.getLineHeight()/this.internal.scaleFactor;if(A.maxWidth!==void 0){a=A.maxWidth;var u=this.splitTextToSize(t,a).length;s=Math.ceil(l*u)}else a=o,s=l;return this.text(t,r,i,A),i+=.2*l,A.align==="center"&&(r-=o/2),A.align==="right"&&(r-=o),this.link(r,i-l,a,s,A),o},n.getTextWidth=function(t){var r=this.internal.getFontSize();return this.getStringUnitWidth(t)*r/this.internal.scaleFactor}}(bt.API),function(n){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},t={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];n.__arabicParser__={};var A=n.__arabicParser__.isInArabicSubstitutionA=function(g){return e[g.charCodeAt(0)]!==void 0},s=n.__arabicParser__.isArabicLetter=function(g){return typeof g=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(g)},a=n.__arabicParser__.isArabicEndLetter=function(g){return s(g)&&A(g)&&e[g.charCodeAt(0)].length<=2},o=n.__arabicParser__.isArabicAlfLetter=function(g){return s(g)&&i.indexOf(g.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(g){return s(g)&&A(g)&&e[g.charCodeAt(0)].length>=1};var l=n.__arabicParser__.arabicLetterHasFinalForm=function(g){return s(g)&&A(g)&&e[g.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(g){return s(g)&&A(g)&&e[g.charCodeAt(0)].length>=3};var u=n.__arabicParser__.arabicLetterHasMedialForm=function(g){return s(g)&&A(g)&&e[g.charCodeAt(0)].length==4},f=n.__arabicParser__.resolveLigatures=function(g){var w=0,p=t,v="",b=0;for(w=0;w<g.length;w+=1)p[g.charCodeAt(w)]!==void 0?(b++,typeof(p=p[g.charCodeAt(w)])=="number"&&(v+=String.fromCharCode(p),p=t,b=0),w===g.length-1&&(p=t,v+=g.charAt(w-(b-1)),w-=b-1,b=0)):(p=t,v+=g.charAt(w-b),w-=b,b=0);return v};n.__arabicParser__.isArabicDiacritic=function(g){return g!==void 0&&r[g.charCodeAt(0)]!==void 0};var h=n.__arabicParser__.getCorrectForm=function(g,w,p){return s(g)?A(g)===!1?-1:!l(g)||!s(w)&&!s(p)||!s(p)&&a(w)||a(g)&&!s(w)||a(g)&&o(w)||a(g)&&a(w)?0:u(g)&&s(w)&&!a(w)&&s(p)&&l(p)?3:a(g)||!s(p)?1:2:-1},c=function(g){var w=0,p=0,v=0,b="",B="",T="",M=(g=g||"").split("\\s+"),D=[];for(w=0;w<M.length;w+=1){for(D.push(""),p=0;p<M[w].length;p+=1)b=M[w][p],B=M[w][p-1],T=M[w][p+1],s(b)?(v=h(b,B,T),D[w]+=v!==-1?String.fromCharCode(e[b.charCodeAt(0)][v]):b):D[w]+=b;D[w]=f(D[w])}return D.join(" ")},m=n.__arabicParser__.processArabic=n.processArabic=function(){var g,w=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,p=[];if(Array.isArray(w)){var v=0;for(p=[],v=0;v<w.length;v+=1)Array.isArray(w[v])?p.push([c(w[v][0]),w[v][1],w[v][2]]):p.push([c(w[v])]);g=p}else g=c(w);return typeof arguments[0]=="string"?g:(arguments[0].text=g,arguments[0])};n.events.push(["preProcessText",m])}(bt.API),bt.API.autoPrint=function(n){var e;switch((n=n||{}).variant=n.variant||"non-conform",n.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},function(n){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(a){t=a}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(a){r=isNaN(a)||Number.isInteger(a)===!1||a<0?150:a,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(a){i=isNaN(a)||Number.isInteger(a)===!1||a<0?300:a,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var A=[];Object.defineProperty(this,"childNodes",{get:function(){return A},set:function(a){A=a}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(a){s=a}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,r){var i;if((t=t||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(bt.API),function(n){var e={left:0,top:0,bottom:0,right:0},t=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new A,this.internal.__cell__.pages=1},A=function(){var o=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return o},set:function(g){o=g}});var l=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return l},set:function(g){l=g}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(g){u=g}});var f=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return f},set:function(g){f=g}});var h=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return h},set:function(g){h=g}});var c=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return c},set:function(g){c=g}});var m=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return m},set:function(g){m=g}}),this};A.prototype.clone=function(){return new A(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},A.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function(o){return r.call(this),this.internal.__cell__.headerFunction=typeof o=="function"?o:void 0,this},n.getTextDimensions=function(o,l){r.call(this);var u=(l=l||{}).fontSize||this.getFontSize(),f=l.font||this.getFont(),h=l.scaleFactor||this.internal.scaleFactor,c=0,m=0,g=0,w=this;if(!Array.isArray(o)&&typeof o!="string"){if(typeof o!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");o=String(o)}var p=l.maxWidth;p>0?typeof o=="string"?o=this.splitTextToSize(o,p):Object.prototype.toString.call(o)==="[object Array]"&&(o=o.reduce(function(b,B){return b.concat(w.splitTextToSize(B,p))},[])):o=Array.isArray(o)?o:[o];for(var v=0;v<o.length;v++)c<(g=this.getStringUnitWidth(o[v],{font:f})*u)&&(c=g);return c!==0&&(m=o.length),{w:c/=h,h:Math.max((m*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/h,0)}},n.cellAddPage=function(){r.call(this),this.addPage();var o=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new A(o.left,o.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=n.cell=function(){var o;o=arguments[0]instanceof A?arguments[0]:new A(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var l=this.internal.__cell__.lastCell,u=this.internal.__cell__.padding,f=this.internal.__cell__.margins||e,h=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return l.lineNumber!==void 0&&(l.lineNumber===o.lineNumber?(o.x=(l.x||0)+(l.width||0),o.y=l.y||0):l.y+l.height+o.height+f.bottom>this.getPageHeight()?(this.cellAddPage(),o.y=f.top,c&&h&&(this.printHeaderRow(o.lineNumber,!0),o.y+=h[0].height)):o.y=l.y+l.height||o.y),o.text[0]!==void 0&&(this.rect(o.x,o.y,o.width,o.height,t===!0?"FD":void 0),o.align==="right"?this.text(o.text,o.x+o.width-u,o.y+u,{align:"right",baseline:"top"}):o.align==="center"?this.text(o.text,o.x+o.width/2,o.y+u,{align:"center",baseline:"top",maxWidth:o.width-u-u}):this.text(o.text,o.x+u,o.y+u,{align:"left",baseline:"top",maxWidth:o.width-u-u})),this.internal.__cell__.lastCell=o,this};n.table=function(o,l,u,f,h){if(r.call(this),!u)throw new Error("No data for PDF table.");var c,m,g,w,p=[],v=[],b=[],B={},T={},M=[],D=[],j=(h=h||{}).autoSize||!1,R=h.printHeaders!==!1,ae=h.css&&h.css["font-size"]!==void 0?16*h.css["font-size"]:h.fontSize||12,L=h.margins||Object.assign({width:this.getPageWidth()},e),x=typeof h.padding=="number"?h.padding:3,Q=h.headerBackgroundColor||"#c8c8c8",C=h.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=R,this.internal.__cell__.margins=L,this.internal.__cell__.table_font_size=ae,this.internal.__cell__.padding=x,this.internal.__cell__.headerBackgroundColor=Q,this.internal.__cell__.headerTextColor=C,this.setFontSize(ae),f==null)v=p=Object.keys(u[0]),b=p.map(function(){return"left"});else if(Array.isArray(f)&&Yt(f[0])==="object")for(p=f.map(function($){return $.name}),v=f.map(function($){return $.prompt||$.name||""}),b=f.map(function($){return $.align||"left"}),c=0;c<f.length;c+=1)T[f[c].name]=f[c].width*(19.049976/25.4);else Array.isArray(f)&&typeof f[0]=="string"&&(v=p=f,b=p.map(function(){return"left"}));if(j||Array.isArray(f)&&typeof f[0]=="string")for(c=0;c<p.length;c+=1){for(B[w=p[c]]=u.map(function($){return $[w]}),this.setFont(void 0,"bold"),M.push(this.getTextDimensions(v[c],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),m=B[w],this.setFont(void 0,"normal"),g=0;g<m.length;g+=1)M.push(this.getTextDimensions(m[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);T[w]=Math.max.apply(null,M)+x+x,M=[]}if(R){var z={};for(c=0;c<p.length;c+=1)z[p[c]]={},z[p[c]].text=v[c],z[p[c]].align=b[c];var Y=a.call(this,z,T);D=p.map(function($){return new A(o,l,T[$],Y,z[$].text,void 0,z[$].align)}),this.setTableHeaderRow(D),this.printHeaderRow(1,!1)}var V=f.reduce(function($,te){return $[te.name]=te.align,$},{});for(c=0;c<u.length;c+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:c,data:u[c]},this);var ie=a.call(this,u[c],T);for(g=0;g<p.length;g+=1){var Ae=u[c][p[g]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:c,col:g,data:Ae},this),s.call(this,new A(o,l,T[p[g]],ie,Ae,c+2,V[p[g]]))}}return this.internal.__cell__.table_x=o,this.internal.__cell__.table_y=l,this};var a=function(o,l){var u=this.internal.__cell__.padding,f=this.internal.__cell__.table_font_size,h=this.internal.scaleFactor;return Object.keys(o).map(function(c){var m=o[c];return this.splitTextToSize(m.hasOwnProperty("text")?m.text:m,l[c]-u-u)},this).map(function(c){return this.getLineHeightFactor()*c.length*f/h+u+u},this).reduce(function(c,m){return Math.max(c,m)},0)};n.setTableHeaderRow=function(o){r.call(this),this.internal.__cell__.tableHeaderRow=o},n.printHeaderRow=function(o,l){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;if(t=!0,typeof this.internal.__cell__.headerFunction=="function"){var f=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new A(f[0],f[1],f[2],f[3],void 0,-1)}this.setFont(void 0,"bold");for(var h=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){u=this.internal.__cell__.tableHeaderRow[c].clone(),l&&(u.y=this.internal.__cell__.margins.top||0,h.push(u)),u.lineNumber=o;var m=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,u),this.setTextColor(m)}h.length>0&&this.setTableHeaderRow(h),this.setFont(void 0,"normal"),t=!1}}(bt.API);var N2={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},L2=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Jd=U2(L2),O2=[100,200,300,400,500,600,700,800,900],BU=U2(O2);function Zd(n){var e=n.family.replace(/"|'/g,"").toLowerCase(),t=function(A){return N2[A=A||"normal"]?A:"normal"}(n.style),r=function(A){if(!A)return 400;if(typeof A=="number")return A>=100&&A<=900&&A%100==0?A:400;if(/^\d00$/.test(A))return parseInt(A);switch(A){case"bold":return 700;case"normal":default:return 400}}(n.weight),i=function(A){return typeof Jd[A=A||"normal"]=="number"?A:"normal"}(n.stretch);return{family:e,style:t,weight:r,stretch:i,src:n.src||[],ref:n.ref||{name:e,style:[i,t,r].join(" ")}}}function Q2(n,e,t,r){var i;for(i=t;i>=0&&i<e.length;i+=r)if(n[e[i]])return n[e[i]];for(i=t;i>=0&&i<e.length;i-=r)if(n[e[i]])return n[e[i]]}var CU={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},R2={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function P2(n){return[n.stretch,n.style,n.weight,n.family].join(" ")}function EU(n,e,t){for(var r=(t=t||{}).defaultFontFamily||"times",i=Object.assign({},CU,t.genericFontFamilies||{}),A=null,s=null,a=0;a<e.length;++a)if(i[(A=Zd(e[a])).family]&&(A.family=i[A.family]),n.hasOwnProperty(A.family)){s=n[A.family];break}if(!(s=s||n[r]))throw new Error("Could not find a font-family for the rule '"+P2(A)+"' and default family '"+r+"'.");if(s=function(o,l){if(l[o])return l[o];var u=Jd[o],f=u<=Jd.normal?-1:1,h=Q2(l,L2,u,f);if(!h)throw new Error("Could not find a matching font-stretch value for "+o);return h}(A.stretch,s),s=function(o,l){if(l[o])return l[o];for(var u=N2[o],f=0;f<u.length;++f)if(l[u[f]])return l[u[f]];throw new Error("Could not find a matching font-style for "+o)}(A.style,s),!(s=function(o,l){if(l[o])return l[o];if(o===400&&l[500])return l[500];if(o===500&&l[400])return l[400];var u=BU[o],f=Q2(l,O2,u,o<400?-1:1);if(!f)throw new Error("Could not find a matching font-weight for value "+o);return f}(A.weight,s)))throw new Error("Failed to resolve a font for the rule '"+P2(A)+"'.");return s}function k2(n){return n.trimLeft()}function xU(n,e){for(var t=0;t<n.length;){if(n.charAt(t)===e)return[n.substring(0,t),n.substring(t+1)];t+=1}return null}function SU(n){var e=n.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],n.substring(e[0].length)]}var Kc,D2,M2,ep=["times"];(function(n){var e,t,r,i,A,s,a,o,l,u=function(F){return F=F||{},this.isStrokeTransparent=F.isStrokeTransparent||!1,this.strokeOpacity=F.strokeOpacity||1,this.strokeStyle=F.strokeStyle||"#000000",this.fillStyle=F.fillStyle||"#000000",this.isFillTransparent=F.isFillTransparent||!1,this.fillOpacity=F.fillOpacity||1,this.font=F.font||"10px sans-serif",this.textBaseline=F.textBaseline||"alphabetic",this.textAlign=F.textAlign||"left",this.lineWidth=F.lineWidth||1,this.lineJoin=F.lineJoin||"miter",this.lineCap=F.lineCap||"butt",this.path=F.path||[],this.transform=F.transform!==void 0?F.transform.clone():new o,this.globalCompositeOperation=F.globalCompositeOperation||"normal",this.globalAlpha=F.globalAlpha||1,this.clip_path=F.clip_path||[],this.currentPoint=F.currentPoint||new s,this.miterLimit=F.miterLimit||10,this.lastPoint=F.lastPoint||new s,this.lineDashOffset=F.lineDashOffset||0,this.lineDash=F.lineDash||[],this.margin=F.margin||[0,0,0,0],this.prevPageLastElemOffset=F.prevPageLastElemOffset||0,this.ignoreClearRect=typeof F.ignoreClearRect!="boolean"||F.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new f(this),e=this.internal.f2,t=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,A=this.internal.getVerticalCoordinate,s=this.internal.Point,a=this.internal.Rectangle,o=this.internal.Matrix,l=new u}]);var f=function(F){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var H=F;Object.defineProperty(this,"pdf",{get:function(){return H}});var G=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return G},set:function(pe){G=!!pe}});var X=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return X},set:function(pe){X=!!pe}});var J=0;Object.defineProperty(this,"posX",{get:function(){return J},set:function(pe){isNaN(pe)||(J=pe)}});var O=0;Object.defineProperty(this,"posY",{get:function(){return O},set:function(pe){isNaN(pe)||(O=pe)}}),Object.defineProperty(this,"margin",{get:function(){return l.margin},set:function(pe){var I;typeof pe=="number"?I=[pe,pe,pe,pe]:((I=new Array(4))[0]=pe[0],I[1]=pe.length>=2?pe[1]:I[0],I[2]=pe.length>=3?pe[2]:I[0],I[3]=pe.length>=4?pe[3]:I[1]),l.margin=I}});var U=!1;Object.defineProperty(this,"autoPaging",{get:function(){return U},set:function(pe){U=pe}});var ee=0;Object.defineProperty(this,"lastBreak",{get:function(){return ee},set:function(pe){ee=pe}});var re=[];Object.defineProperty(this,"pageBreaks",{get:function(){return re},set:function(pe){re=pe}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(pe){pe instanceof u&&(l=pe)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(pe){l.path=pe}});var W=[];Object.defineProperty(this,"ctxStack",{get:function(){return W},set:function(pe){W=pe}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(pe){var I;I=h(pe),this.ctx.fillStyle=I.style,this.ctx.isFillTransparent=I.a===0,this.ctx.fillOpacity=I.a,this.pdf.setFillColor(I.r,I.g,I.b,{a:I.a}),this.pdf.setTextColor(I.r,I.g,I.b,{a:I.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(pe){var I=h(pe);this.ctx.strokeStyle=I.style,this.ctx.isStrokeTransparent=I.a===0,this.ctx.strokeOpacity=I.a,I.a===0?this.pdf.setDrawColor(255,255,255):(I.a,this.pdf.setDrawColor(I.r,I.g,I.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(pe){["butt","round","square"].indexOf(pe)!==-1&&(this.ctx.lineCap=pe,this.pdf.setLineCap(pe))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(pe){isNaN(pe)||(this.ctx.lineWidth=pe,this.pdf.setLineWidth(pe))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(pe){["bevel","round","miter"].indexOf(pe)!==-1&&(this.ctx.lineJoin=pe,this.pdf.setLineJoin(pe))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(pe){isNaN(pe)||(this.ctx.miterLimit=pe,this.pdf.setMiterLimit(pe))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(pe){this.ctx.textBaseline=pe}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(pe){["right","end","center","left","start"].indexOf(pe)!==-1&&(this.ctx.textAlign=pe)}});var Z=null;function me(pe,I){if(Z===null){var E=function(S){var P=[];return Object.keys(S).forEach(function(oe){S[oe].forEach(function(ge){var ce=null;switch(ge){case"bold":ce={family:oe,weight:"bold"};break;case"italic":ce={family:oe,style:"italic"};break;case"bolditalic":ce={family:oe,weight:"bold",style:"italic"};break;case"":case"normal":ce={family:oe}}ce!==null&&(ce.ref={name:oe,style:ge},P.push(ce))})}),P}(pe.getFontList());Z=function(S){for(var P={},oe=0;oe<S.length;++oe){var ge=Zd(S[oe]),ce=ge.family,Ee=ge.stretch,ye=ge.style,Be=ge.weight;P[ce]=P[ce]||{},P[ce][Ee]=P[ce][Ee]||{},P[ce][Ee][ye]=P[ce][Ee][ye]||{},P[ce][Ee][ye][Be]=ge}return P}(E.concat(I))}return Z}var k=null;Object.defineProperty(this,"fontFaces",{get:function(){return k},set:function(pe){Z=null,k=pe}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(pe){var I;if(this.ctx.font=pe,(I=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(pe))!==null){var E=I[1];I[2];var S=I[3],P=I[4];I[5];var oe=I[6],ge=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(P)[2];P=Math.floor(ge==="px"?parseFloat(P)*this.pdf.internal.scaleFactor:ge==="em"?parseFloat(P)*this.pdf.getFontSize():parseFloat(P)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(P);var ce=function($e){var tt,Ve,Tt=[],st=$e.trim();if(st==="")return ep;if(st in R2)return[R2[st]];for(;st!=="";){switch(Ve=null,tt=(st=k2(st)).charAt(0)){case'"':case"'":Ve=xU(st.substring(1),tt);break;default:Ve=SU(st)}if(Ve===null||(Tt.push(Ve[0]),(st=k2(Ve[1]))!==""&&st.charAt(0)!==","))return ep;st=st.replace(/^,/,"")}return Tt}(oe);if(this.fontFaces){var Ee=EU(me(this.pdf,this.fontFaces),ce.map(function($e){return{family:$e,stretch:"normal",weight:S,style:E}}));this.pdf.setFont(Ee.ref.name,Ee.ref.style)}else{var ye="";(S==="bold"||parseInt(S,10)>=700||E==="bold")&&(ye="bold"),E==="italic"&&(ye+="italic"),ye.length===0&&(ye="normal");for(var Be="",Ue={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Oe=0;Oe<ce.length;Oe++){if(this.pdf.internal.getFont(ce[Oe],ye,{noFallback:!0,disableWarning:!0})!==void 0){Be=ce[Oe];break}if(ye==="bolditalic"&&this.pdf.internal.getFont(ce[Oe],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Be=ce[Oe],ye="bold";else if(this.pdf.internal.getFont(ce[Oe],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Be=ce[Oe],ye="normal";break}}if(Be===""){for(var Me=0;Me<ce.length;Me++)if(Ue[ce[Me]]){Be=Ue[ce[Me]];break}}Be=Be===""?"Times":Be,this.pdf.setFont(Be,ye)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(pe){this.ctx.globalCompositeOperation=pe}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(pe){this.ctx.globalAlpha=pe}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(pe){this.ctx.lineDashOffset=pe,te.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(pe){this.ctx.lineDash=pe,te.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(pe){this.ctx.ignoreClearRect=!!pe}})};f.prototype.setLineDash=function(F){this.lineDash=F},f.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},f.prototype.fill=function(){B.call(this,"fill",!1)},f.prototype.stroke=function(){B.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(F,H){if(isNaN(F)||isNaN(H))throw dr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var G=this.ctx.transform.applyToPoint(new s(F,H));this.path.push({type:"mt",x:G.x,y:G.y}),this.ctx.lastPoint=new s(F,H)},f.prototype.closePath=function(){var F=new s(0,0),H=0;for(H=this.path.length-1;H!==-1;H--)if(this.path[H].type==="begin"&&Yt(this.path[H+1])==="object"&&typeof this.path[H+1].x=="number"){F=new s(this.path[H+1].x,this.path[H+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(F.x,F.y)},f.prototype.lineTo=function(F,H){if(isNaN(F)||isNaN(H))throw dr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var G=this.ctx.transform.applyToPoint(new s(F,H));this.path.push({type:"lt",x:G.x,y:G.y}),this.ctx.lastPoint=new s(G.x,G.y)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),B.call(this,null,!0)},f.prototype.quadraticCurveTo=function(F,H,G,X){if(isNaN(G)||isNaN(X)||isNaN(F)||isNaN(H))throw dr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var J=this.ctx.transform.applyToPoint(new s(G,X)),O=this.ctx.transform.applyToPoint(new s(F,H));this.path.push({type:"qct",x1:O.x,y1:O.y,x:J.x,y:J.y}),this.ctx.lastPoint=new s(J.x,J.y)},f.prototype.bezierCurveTo=function(F,H,G,X,J,O){if(isNaN(J)||isNaN(O)||isNaN(F)||isNaN(H)||isNaN(G)||isNaN(X))throw dr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var U=this.ctx.transform.applyToPoint(new s(J,O)),ee=this.ctx.transform.applyToPoint(new s(F,H)),re=this.ctx.transform.applyToPoint(new s(G,X));this.path.push({type:"bct",x1:ee.x,y1:ee.y,x2:re.x,y2:re.y,x:U.x,y:U.y}),this.ctx.lastPoint=new s(U.x,U.y)},f.prototype.arc=function(F,H,G,X,J,O){if(isNaN(F)||isNaN(H)||isNaN(G)||isNaN(X)||isNaN(J))throw dr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(O=!!O,!this.ctx.transform.isIdentity){var U=this.ctx.transform.applyToPoint(new s(F,H));F=U.x,H=U.y;var ee=this.ctx.transform.applyToPoint(new s(0,G)),re=this.ctx.transform.applyToPoint(new s(0,0));G=Math.sqrt(Math.pow(ee.x-re.x,2)+Math.pow(ee.y-re.y,2))}Math.abs(J-X)>=2*Math.PI&&(X=0,J=2*Math.PI),this.path.push({type:"arc",x:F,y:H,radius:G,startAngle:X,endAngle:J,counterclockwise:O})},f.prototype.arcTo=function(F,H,G,X,J){throw new Error("arcTo not implemented.")},f.prototype.rect=function(F,H,G,X){if(isNaN(F)||isNaN(H)||isNaN(G)||isNaN(X))throw dr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(F,H),this.lineTo(F+G,H),this.lineTo(F+G,H+X),this.lineTo(F,H+X),this.lineTo(F,H),this.lineTo(F+G,H),this.lineTo(F,H)},f.prototype.fillRect=function(F,H,G,X){if(isNaN(F)||isNaN(H)||isNaN(G)||isNaN(X))throw dr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!c.call(this)){var J={};this.lineCap!=="butt"&&(J.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(J.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(F,H,G,X),this.fill(),J.hasOwnProperty("lineCap")&&(this.lineCap=J.lineCap),J.hasOwnProperty("lineJoin")&&(this.lineJoin=J.lineJoin)}},f.prototype.strokeRect=function(F,H,G,X){if(isNaN(F)||isNaN(H)||isNaN(G)||isNaN(X))throw dr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(F,H,G,X),this.stroke())},f.prototype.clearRect=function(F,H,G,X){if(isNaN(F)||isNaN(H)||isNaN(G)||isNaN(X))throw dr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(F,H,G,X))},f.prototype.save=function(F){F=typeof F!="boolean"||F;for(var H=this.pdf.internal.getCurrentPageInfo().pageNumber,G=0;G<this.pdf.internal.getNumberOfPages();G++)this.pdf.setPage(G+1),this.pdf.internal.out("q");if(this.pdf.setPage(H),F){this.ctx.fontSize=this.pdf.internal.getFontSize();var X=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=X}},f.prototype.restore=function(F){F=typeof F!="boolean"||F;for(var H=this.pdf.internal.getCurrentPageInfo().pageNumber,G=0;G<this.pdf.internal.getNumberOfPages();G++)this.pdf.setPage(G+1),this.pdf.internal.out("Q");this.pdf.setPage(H),F&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},f.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var h=function(F){var H,G,X,J;if(F.isCanvasGradient===!0&&(F=F.getColor()),!F)return{r:0,g:0,b:0,a:0,style:F};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(F))H=0,G=0,X=0,J=0;else{var O=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(F);if(O!==null)H=parseInt(O[1]),G=parseInt(O[2]),X=parseInt(O[3]),J=1;else if((O=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(F))!==null)H=parseInt(O[1]),G=parseInt(O[2]),X=parseInt(O[3]),J=parseFloat(O[4]);else{if(J=1,typeof F=="string"&&F.charAt(0)!=="#"){var U=new b2(F);F=U.ok?U.toHex():"#000000"}F.length===4?(H=F.substring(1,2),H+=H,G=F.substring(2,3),G+=G,X=F.substring(3,4),X+=X):(H=F.substring(1,3),G=F.substring(3,5),X=F.substring(5,7)),H=parseInt(H,16),G=parseInt(G,16),X=parseInt(X,16)}}return{r:H,g:G,b:X,a:J,style:F}},c=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},m=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};f.prototype.fillText=function(F,H,G,X){if(isNaN(H)||isNaN(G)||typeof F!="string")throw dr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(X=isNaN(X)?void 0:X,!c.call(this)){var J=ie(this.ctx.transform.rotation),O=this.ctx.transform.scaleX;x.call(this,{text:F,x:H,y:G,scale:O,angle:J,align:this.textAlign,maxWidth:X})}},f.prototype.strokeText=function(F,H,G,X){if(isNaN(H)||isNaN(G)||typeof F!="string")throw dr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){X=isNaN(X)?void 0:X;var J=ie(this.ctx.transform.rotation),O=this.ctx.transform.scaleX;x.call(this,{text:F,x:H,y:G,scale:O,renderingMode:"stroke",angle:J,align:this.textAlign,maxWidth:X})}},f.prototype.measureText=function(F){if(typeof F!="string")throw dr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var H=this.pdf,G=this.pdf.internal.scaleFactor,X=H.internal.getFontSize(),J=H.getStringUnitWidth(F)*X/H.internal.scaleFactor,O=function(U){var ee=(U=U||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ee}}),this};return new O({width:J*=Math.round(96*G/72*1e4)/1e4})},f.prototype.scale=function(F,H){if(isNaN(F)||isNaN(H))throw dr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var G=new o(F,0,0,H,0,0);this.ctx.transform=this.ctx.transform.multiply(G)},f.prototype.rotate=function(F){if(isNaN(F))throw dr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var H=new o(Math.cos(F),Math.sin(F),-Math.sin(F),Math.cos(F),0,0);this.ctx.transform=this.ctx.transform.multiply(H)},f.prototype.translate=function(F,H){if(isNaN(F)||isNaN(H))throw dr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var G=new o(1,0,0,1,F,H);this.ctx.transform=this.ctx.transform.multiply(G)},f.prototype.transform=function(F,H,G,X,J,O){if(isNaN(F)||isNaN(H)||isNaN(G)||isNaN(X)||isNaN(J)||isNaN(O))throw dr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var U=new o(F,H,G,X,J,O);this.ctx.transform=this.ctx.transform.multiply(U)},f.prototype.setTransform=function(F,H,G,X,J,O){F=isNaN(F)?1:F,H=isNaN(H)?0:H,G=isNaN(G)?0:G,X=isNaN(X)?1:X,J=isNaN(J)?0:J,O=isNaN(O)?0:O,this.ctx.transform=new o(F,H,G,X,J,O)};var g=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};f.prototype.drawImage=function(F,H,G,X,J,O,U,ee,re){var W=this.pdf.getImageProperties(F),Z=1,me=1,k=1,pe=1;X!==void 0&&ee!==void 0&&(k=ee/X,pe=re/J,Z=W.width/X*ee/X,me=W.height/J*re/J),O===void 0&&(O=H,U=G,H=0,G=0),X!==void 0&&ee===void 0&&(ee=X,re=J),X===void 0&&ee===void 0&&(ee=W.width,re=W.height);for(var I,E=this.ctx.transform.decompose(),S=ie(E.rotate.shx),P=new o,oe=(P=(P=(P=P.multiply(E.translate)).multiply(E.skew)).multiply(E.scale)).applyToRectangle(new a(O-H*k,U-G*pe,X*Z,J*me)),ge=w.call(this,oe),ce=[],Ee=0;Ee<ge.length;Ee+=1)ce.indexOf(ge[Ee])===-1&&ce.push(ge[Ee]);if(b(ce),this.autoPaging)for(var ye=ce[0],Be=ce[ce.length-1],Ue=ye;Ue<Be+1;Ue++){this.pdf.setPage(Ue);var Oe=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Me=Ue===1?this.posY+this.margin[0]:this.margin[0],$e=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],tt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ve=Ue===1?0:$e+(Ue-2)*tt;if(this.ctx.clip_path.length!==0){var Tt=this.path;I=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(I,this.posX+this.margin[3],-Ve+Me+this.ctx.prevPageLastElemOffset),T.call(this,"fill",!0),this.path=Tt}var st=JSON.parse(JSON.stringify(oe));st=v([st],this.posX+this.margin[3],-Ve+Me+this.ctx.prevPageLastElemOffset)[0];var kt=(Ue>ye||Ue<Be)&&g.call(this);kt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Oe,tt,null).clip().discardPath()),this.pdf.addImage(F,"JPEG",st.x,st.y,st.w,st.h,null,null,S),kt&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(F,"JPEG",oe.x,oe.y,oe.w,oe.h,null,null,S)};var w=function(F,H,G){var X=[];H=H||this.pdf.internal.pageSize.width,G=G||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var J=this.posY+this.ctx.prevPageLastElemOffset;switch(F.type){default:case"mt":case"lt":X.push(Math.floor((F.y+J)/G)+1);break;case"arc":X.push(Math.floor((F.y+J-F.radius)/G)+1),X.push(Math.floor((F.y+J+F.radius)/G)+1);break;case"qct":var O=Ae(this.ctx.lastPoint.x,this.ctx.lastPoint.y,F.x1,F.y1,F.x,F.y);X.push(Math.floor((O.y+J)/G)+1),X.push(Math.floor((O.y+O.h+J)/G)+1);break;case"bct":var U=$(this.ctx.lastPoint.x,this.ctx.lastPoint.y,F.x1,F.y1,F.x2,F.y2,F.x,F.y);X.push(Math.floor((U.y+J)/G)+1),X.push(Math.floor((U.y+U.h+J)/G)+1);break;case"rect":X.push(Math.floor((F.y+J)/G)+1),X.push(Math.floor((F.y+F.h+J)/G)+1)}for(var ee=0;ee<X.length;ee+=1)for(;this.pdf.internal.getNumberOfPages()<X[ee];)p.call(this);return X},p=function(){var F=this.fillStyle,H=this.strokeStyle,G=this.font,X=this.lineCap,J=this.lineWidth,O=this.lineJoin;this.pdf.addPage(),this.fillStyle=F,this.strokeStyle=H,this.font=G,this.lineCap=X,this.lineWidth=J,this.lineJoin=O},v=function(F,H,G){for(var X=0;X<F.length;X++)switch(F[X].type){case"bct":F[X].x2+=H,F[X].y2+=G;case"qct":F[X].x1+=H,F[X].y1+=G;case"mt":case"lt":case"arc":default:F[X].x+=H,F[X].y+=G}return F},b=function(F){return F.sort(function(H,G){return H-G})},B=function(F,H){for(var G,X,J=this.fillStyle,O=this.strokeStyle,U=this.lineCap,ee=this.lineWidth,re=Math.abs(ee*this.ctx.transform.scaleX),W=this.lineJoin,Z=JSON.parse(JSON.stringify(this.path)),me=JSON.parse(JSON.stringify(this.path)),k=[],pe=0;pe<me.length;pe++)if(me[pe].x!==void 0)for(var I=w.call(this,me[pe]),E=0;E<I.length;E+=1)k.indexOf(I[E])===-1&&k.push(I[E]);for(var S=0;S<k.length;S++)for(;this.pdf.internal.getNumberOfPages()<k[S];)p.call(this);if(b(k),this.autoPaging)for(var P=k[0],oe=k[k.length-1],ge=P;ge<oe+1;ge++){this.pdf.setPage(ge),this.fillStyle=J,this.strokeStyle=O,this.lineCap=U,this.lineWidth=re,this.lineJoin=W;var ce=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ee=ge===1?this.posY+this.margin[0]:this.margin[0],ye=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Be=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ue=ge===1?0:ye+(ge-2)*Be;if(this.ctx.clip_path.length!==0){var Oe=this.path;G=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(G,this.posX+this.margin[3],-Ue+Ee+this.ctx.prevPageLastElemOffset),T.call(this,F,!0),this.path=Oe}if(X=JSON.parse(JSON.stringify(Z)),this.path=v(X,this.posX+this.margin[3],-Ue+Ee+this.ctx.prevPageLastElemOffset),H===!1||ge===0){var Me=(ge>P||ge<oe)&&g.call(this);Me&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ce,Be,null).clip().discardPath()),T.call(this,F,H),Me&&this.pdf.restoreGraphicsState()}this.lineWidth=ee}else this.lineWidth=re,T.call(this,F,H),this.lineWidth=ee;this.path=Z},T=function(F,H){if((F!=="stroke"||H||!m.call(this))&&(F==="stroke"||H||!c.call(this))){for(var G,X,J=[],O=this.path,U=0;U<O.length;U++){var ee=O[U];switch(ee.type){case"begin":J.push({begin:!0});break;case"close":J.push({close:!0});break;case"mt":J.push({start:ee,deltas:[],abs:[]});break;case"lt":var re=J.length;if(O[U-1]&&!isNaN(O[U-1].x)&&(G=[ee.x-O[U-1].x,ee.y-O[U-1].y],re>0)){for(;re>=0;re--)if(J[re-1].close!==!0&&J[re-1].begin!==!0){J[re-1].deltas.push(G),J[re-1].abs.push(ee);break}}break;case"bct":G=[ee.x1-O[U-1].x,ee.y1-O[U-1].y,ee.x2-O[U-1].x,ee.y2-O[U-1].y,ee.x-O[U-1].x,ee.y-O[U-1].y],J[J.length-1].deltas.push(G);break;case"qct":var W=O[U-1].x+2/3*(ee.x1-O[U-1].x),Z=O[U-1].y+2/3*(ee.y1-O[U-1].y),me=ee.x+2/3*(ee.x1-ee.x),k=ee.y+2/3*(ee.y1-ee.y),pe=ee.x,I=ee.y;G=[W-O[U-1].x,Z-O[U-1].y,me-O[U-1].x,k-O[U-1].y,pe-O[U-1].x,I-O[U-1].y],J[J.length-1].deltas.push(G);break;case"arc":J.push({deltas:[],abs:[],arc:!0}),Array.isArray(J[J.length-1].abs)&&J[J.length-1].abs.push(ee)}}X=H?null:F==="stroke"?"stroke":"fill";for(var E=!1,S=0;S<J.length;S++)if(J[S].arc)for(var P=J[S].abs,oe=0;oe<P.length;oe++){var ge=P[oe];ge.type==="arc"?j.call(this,ge.x,ge.y,ge.radius,ge.startAngle,ge.endAngle,ge.counterclockwise,void 0,H,!E):Q.call(this,ge.x,ge.y),E=!0}else if(J[S].close===!0)this.pdf.internal.out("h"),E=!1;else if(J[S].begin!==!0){var ce=J[S].start.x,Ee=J[S].start.y;C.call(this,J[S].deltas,ce,Ee),E=!0}X&&R.call(this,X),H&&ae.call(this)}},M=function(F){var H=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,G=H*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return F-G;case"top":return F+H-G;case"hanging":return F+H-2*G;case"middle":return F+H/2-G;case"ideographic":return F;case"alphabetic":default:return F}},D=function(F){return F+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.prototype.createLinearGradient=function(){var F=function(){};return F.colorStops=[],F.addColorStop=function(H,G){this.colorStops.push([H,G])},F.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},F.isCanvasGradient=!0,F},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var j=function(F,H,G,X,J,O,U,ee,re){for(var W=Y.call(this,G,X,J,O),Z=0;Z<W.length;Z++){var me=W[Z];Z===0&&(re?L.call(this,me.x1+F,me.y1+H):Q.call(this,me.x1+F,me.y1+H)),z.call(this,F,H,me.x2,me.y2,me.x3,me.y3,me.x4,me.y4)}ee?ae.call(this):R.call(this,U)},R=function(F){switch(F){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},ae=function(){this.pdf.clip(),this.pdf.discardPath()},L=function(F,H){this.pdf.internal.out(t(F)+" "+r(H)+" m")},x=function(F){var H;switch(F.align){case"right":case"end":H="right";break;case"center":H="center";break;case"left":case"start":default:H="left"}var G=this.pdf.getTextDimensions(F.text),X=M.call(this,F.y),J=D.call(this,X)-G.h,O=this.ctx.transform.applyToPoint(new s(F.x,X)),U=this.ctx.transform.decompose(),ee=new o;ee=(ee=(ee=ee.multiply(U.translate)).multiply(U.skew)).multiply(U.scale);for(var re,W,Z,me=this.ctx.transform.applyToRectangle(new a(F.x,X,G.w,G.h)),k=ee.applyToRectangle(new a(F.x,J,G.w,G.h)),pe=w.call(this,k),I=[],E=0;E<pe.length;E+=1)I.indexOf(pe[E])===-1&&I.push(pe[E]);if(b(I),this.autoPaging)for(var S=I[0],P=I[I.length-1],oe=S;oe<P+1;oe++){this.pdf.setPage(oe);var ge=oe===1?this.posY+this.margin[0]:this.margin[0],ce=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ee=this.pdf.internal.pageSize.height-this.margin[2],ye=Ee-this.margin[0],Be=this.pdf.internal.pageSize.width-this.margin[1],Ue=Be-this.margin[3],Oe=oe===1?0:ce+(oe-2)*ye;if(this.ctx.clip_path.length!==0){var Me=this.path;re=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(re,this.posX+this.margin[3],-1*Oe+ge),T.call(this,"fill",!0),this.path=Me}var $e=v([JSON.parse(JSON.stringify(k))],this.posX+this.margin[3],-Oe+ge+this.ctx.prevPageLastElemOffset)[0];F.scale>=.01&&(W=this.pdf.internal.getFontSize(),this.pdf.setFontSize(W*F.scale),Z=this.lineWidth,this.lineWidth=Z*F.scale);var tt=this.autoPaging!=="text";if(tt||$e.y+$e.h<=Ee){if(tt||$e.y>=ge&&$e.x<=Be){var Ve=tt?F.text:this.pdf.splitTextToSize(F.text,F.maxWidth||Be-$e.x)[0],Tt=v([JSON.parse(JSON.stringify(me))],this.posX+this.margin[3],-Oe+ge+this.ctx.prevPageLastElemOffset)[0],st=tt&&(oe>S||oe<P)&&g.call(this);st&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ue,ye,null).clip().discardPath()),this.pdf.text(Ve,Tt.x,Tt.y,{angle:F.angle,align:H,renderingMode:F.renderingMode}),st&&this.pdf.restoreGraphicsState()}}else $e.y<Ee&&(this.ctx.prevPageLastElemOffset+=Ee-$e.y);F.scale>=.01&&(this.pdf.setFontSize(W),this.lineWidth=Z)}else F.scale>=.01&&(W=this.pdf.internal.getFontSize(),this.pdf.setFontSize(W*F.scale),Z=this.lineWidth,this.lineWidth=Z*F.scale),this.pdf.text(F.text,O.x+this.posX,O.y+this.posY,{angle:F.angle,align:H,renderingMode:F.renderingMode,maxWidth:F.maxWidth}),F.scale>=.01&&(this.pdf.setFontSize(W),this.lineWidth=Z)},Q=function(F,H,G,X){G=G||0,X=X||0,this.pdf.internal.out(t(F+G)+" "+r(H+X)+" l")},C=function(F,H,G){return this.pdf.lines(F,H,G,null,null)},z=function(F,H,G,X,J,O,U,ee){this.pdf.internal.out([e(i(G+F)),e(A(X+H)),e(i(J+F)),e(A(O+H)),e(i(U+F)),e(A(ee+H)),"c"].join(" "))},Y=function(F,H,G,X){for(var J=2*Math.PI,O=Math.PI/2;H>G;)H-=J;var U=Math.abs(G-H);U<J&&X&&(U=J-U);for(var ee=[],re=X?-1:1,W=H;U>1e-5;){var Z=W+re*Math.min(U,O);ee.push(V.call(this,F,W,Z)),U-=Math.abs(Z-W),W=Z}return ee},V=function(F,H,G){var X=(G-H)/2,J=F*Math.cos(X),O=F*Math.sin(X),U=J,ee=-O,re=U*U+ee*ee,W=re+U*J+ee*O,Z=4/3*(Math.sqrt(2*re*W)-W)/(U*O-ee*J),me=U-Z*ee,k=ee+Z*U,pe=me,I=-k,E=X+H,S=Math.cos(E),P=Math.sin(E);return{x1:F*Math.cos(H),y1:F*Math.sin(H),x2:me*S-k*P,y2:me*P+k*S,x3:pe*S-I*P,y3:pe*P+I*S,x4:F*Math.cos(G),y4:F*Math.sin(G)}},ie=function(F){return 180*F/Math.PI},Ae=function(F,H,G,X,J,O){var U=F+.5*(G-F),ee=H+.5*(X-H),re=J+.5*(G-J),W=O+.5*(X-O),Z=Math.min(F,J,U,re),me=Math.max(F,J,U,re),k=Math.min(H,O,ee,W),pe=Math.max(H,O,ee,W);return new a(Z,k,me-Z,pe-k)},$=function(F,H,G,X,J,O,U,ee){var re,W,Z,me,k,pe,I,E,S,P,oe,ge,ce,Ee,ye=G-F,Be=X-H,Ue=J-G,Oe=O-X,Me=U-J,$e=ee-O;for(W=0;W<41;W++)S=(I=(Z=F+(re=W/40)*ye)+re*((k=G+re*Ue)-Z))+re*(k+re*(J+re*Me-k)-I),P=(E=(me=H+re*Be)+re*((pe=X+re*Oe)-me))+re*(pe+re*(O+re*$e-pe)-E),W==0?(oe=S,ge=P,ce=S,Ee=P):(oe=Math.min(oe,S),ge=Math.min(ge,P),ce=Math.max(ce,S),Ee=Math.max(Ee,P));return new a(Math.round(oe),Math.round(ge),Math.round(ce-oe),Math.round(Ee-ge))},te=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var F,H,G=(F=this.ctx.lineDash,H=this.ctx.lineDashOffset,JSON.stringify({lineDash:F,lineDashOffset:H}));this.prevLineDash!==G&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=G)}}})(bt.API),function(n){var e=function(A){var s,a,o,l,u,f,h,c,m,g;for(a=[],o=0,l=(A+=s="\0\0\0\0".slice(A.length%4||4)).length;l>o;o+=4)(u=(A.charCodeAt(o)<<24)+(A.charCodeAt(o+1)<<16)+(A.charCodeAt(o+2)<<8)+A.charCodeAt(o+3))!==0?(f=(u=((u=((u=((u=(u-(g=u%85))/85)-(m=u%85))/85)-(c=u%85))/85)-(h=u%85))/85)%85,a.push(f+33,h+33,c+33,m+33,g+33)):a.push(122);return function(w,p){for(var v=p;v>0;v--)w.pop()}(a,s.length),String.fromCharCode.apply(String,a)+"~>"},t=function(A){var s,a,o,l,u,f=String,h="length",c=255,m="charCodeAt",g="slice",w="replace";for(A[g](-2),A=A[g](0,-2)[w](/\s/g,"")[w]("z","!!!!!"),o=[],l=0,u=(A+=s="uuuuu"[g](A[h]%5||5))[h];u>l;l+=5)a=52200625*(A[m](l)-33)+614125*(A[m](l+1)-33)+7225*(A[m](l+2)-33)+85*(A[m](l+3)-33)+(A[m](l+4)-33),o.push(c&a>>24,c&a>>16,c&a>>8,c&a);return function(p,v){for(var b=v;b>0;b--)p.pop()}(o,s[h]),f.fromCharCode.apply(f,o)},r=function(A){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((A=A.replace(/\s/g,"")).indexOf(">")!==-1&&(A=A.substr(0,A.indexOf(">"))),A.length%2&&(A+="0"),s.test(A)===!1)return"";for(var a="",o=0;o<A.length;o+=2)a+=String.fromCharCode("0x"+(A[o]+A[o+1]));return a},i=function(A){for(var s=new Uint8Array(A.length),a=A.length;a--;)s[a]=A.charCodeAt(a);return A=(s=qd(s)).reduce(function(o,l){return o+String.fromCharCode(l)},"")};n.processDataByFilters=function(A,s){var a=0,o=A||"",l=[];for(typeof(s=s||[])=="string"&&(s=[s]),a=0;a<s.length;a+=1)switch(s[a]){case"ASCII85Decode":case"/ASCII85Decode":o=t(o),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":o=e(o),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":o=r(o),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":o=o.split("").map(function(u){return("0"+u.charCodeAt().toString(16)).slice(-2)}).join("")+">",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":o=i(o),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[a]+'" is not implemented')}return{data:o,reverseChain:l.reverse().join(" ")}}}(bt.API),function(n){n.loadFile=function(e,t,r){return function(i,A,s){A=A!==!1,s=typeof s=="function"?s:function(){};var a=void 0;try{a=function(o,l,u){var f=new XMLHttpRequest,h=0,c=function(m){var g=m.length,w=[],p=String.fromCharCode;for(h=0;h<g;h+=1)w.push(p(255&m.charCodeAt(h)));return w.join("")};if(f.open("GET",o,!l),f.overrideMimeType("text/plain; charset=x-user-defined"),l===!1&&(f.onload=function(){f.status===200?u(c(this.responseText)):u(void 0)}),f.send(null),l&&f.status===200)return c(f.responseText)}(i,A,s)}catch{}return a}(e,t,r)},n.loadImageFile=n.loadFile}(bt.API),function(n){function e(){return(Et.html2canvas?Promise.resolve(Et.html2canvas):Promise.resolve().then(()=>dQ)).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function t(){return(Et.DOMPurify?Promise.resolve(Et.DOMPurify):Promise.resolve().then(()=>WK)).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var r=function(s){var a=Yt(s);return a==="undefined"?"undefined":a==="string"||s instanceof String?"string":a==="number"||s instanceof Number?"number":a==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":a==="object"?"object":"unknown"},i=function(s,a){var o=document.createElement(s);for(var l in a.className&&(o.className=a.className),a.innerHTML&&a.dompurify&&(o.innerHTML=a.dompurify.sanitize(a.innerHTML)),a.style)o.style[l]=a.style[l];return o},A=function s(a){var o=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),l=s.convert(Promise.resolve(),o);return l=(l=l.setProgress(1,s,1,[s])).set(a)};(A.prototype=Object.create(Promise.prototype)).constructor=A,A.convert=function(s,a){return s.__proto__=a||A.prototype,s},A.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},A.prototype.from=function(s,a){return this.then(function(){switch(a=a||function(o){switch(r(o)){case"string":return"string";case"element":return o.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s)){case"string":return this.then(t).then(function(o){return this.set({src:i("div",{innerHTML:s,dompurify:o})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},A.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},A.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},a=function o(l,u){for(var f=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),h=l.firstChild;h;h=h.nextSibling)u!==!0&&h.nodeType===1&&h.nodeName==="SCRIPT"||f.appendChild(o(h,u));return l.nodeType===1&&(l.nodeName==="CANVAS"?(f.width=l.width,f.height=l.height,f.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(f.value=l.value),f.addEventListener("load",function(){f.scrollTop=l.scrollTop,f.scrollLeft=l.scrollLeft},!0)),f}(this.prop.src,this.opt.html2canvas.javascriptEnabled);a.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(a),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},A.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(e).then(function(a){var o=Object.assign({},this.opt.html2canvas);return delete o.onrendered,a(this.prop.container,o)}).then(function(a){(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},A.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(e).then(function(a){var o=this.opt.jsPDF,l=this.opt.fontFaces,u=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,f=Object.assign({async:!0,allowTaint:!0,scale:u,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete f.onrendered,o.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,o.context2d.posX=this.opt.x,o.context2d.posY=this.opt.y,o.context2d.margin=this.opt.margin,o.context2d.fontFaces=l,l)for(var h=0;h<l.length;++h){var c=l[h],m=c.src.find(function(g){return g.format==="truetype"});m&&o.addFont(m.url,c.ref.name,c.ref.style)}return f.windowHeight=f.windowHeight||0,f.windowHeight=f.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):f.windowHeight,o.context2d.save(!0),a(this.prop.container,f)}).then(function(a){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},A.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},A.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},A.prototype.output=function(s,a,o){return(o=o||"pdf").toLowerCase()==="img"||o.toLowerCase()==="image"?this.outputImg(s,a):this.outputPdf(s,a)},A.prototype.outputPdf=function(s,a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,a)})},A.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+s+'" is not supported.'}})},A.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},A.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},A.prototype.set=function(s){if(r(s)!=="object")return this;var a=Object.keys(s||{}).map(function(o){if(o in A.template.prop)return function(){this.prop[o]=s[o]};switch(o){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[o]=s[o]}}},this);return this.then(function(){return this.thenList(a)})},A.prototype.get=function(s,a){return this.then(function(){var o=s in A.template.prop?this.prop[s]:this.opt[s];return a?a(o):o})},A.prototype.setMargin=function(s){return this.then(function(){switch(r(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},A.prototype.setPageSize=function(s){function a(o,l){return Math.floor(o*l/72*96)}return this.then(function(){(s=s||bt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:a(s.inner.width,s.k),height:a(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},A.prototype.setProgress=function(s,a,o,l){return s!=null&&(this.progress.val=s),a!=null&&(this.progress.state=a),o!=null&&(this.progress.n=o),l!=null&&(this.progress.stack=l),this.progress.ratio=this.progress.val/this.progress.state,this},A.prototype.updateProgress=function(s,a,o,l){return this.setProgress(s?this.progress.val+s:null,a||null,o?this.progress.n+o:null,l?this.progress.stack.concat(l):null)},A.prototype.then=function(s,a){var o=this;return this.thenCore(s,a,function(l,u){return o.updateProgress(null,null,1,[l]),Promise.prototype.then.call(this,function(f){return o.updateProgress(null,l),f}).then(l,u).then(function(f){return o.updateProgress(1),f})})},A.prototype.thenCore=function(s,a,o){o=o||Promise.prototype.then,s&&(s=s.bind(this)),a&&(a=a.bind(this));var l=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:A.convert(Object.assign({},this),Promise.prototype),u=o.call(l,s,a);return A.convert(u,this.__proto__)},A.prototype.thenExternal=function(s,a){return Promise.prototype.then.call(this,s,a)},A.prototype.thenList=function(s){var a=this;return s.forEach(function(o){a=a.thenCore(o)}),a},A.prototype.catch=function(s){s&&(s=s.bind(this));var a=Promise.prototype.catch.call(this,s);return A.convert(a,this)},A.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},A.prototype.error=function(s){return this.then(function(){throw new Error(s)})},A.prototype.using=A.prototype.set,A.prototype.saveAs=A.prototype.save,A.prototype.export=A.prototype.output,A.prototype.run=A.prototype.then,bt.getPageSize=function(s,a,o){if(Yt(s)==="object"){var l=s;s=l.orientation,a=l.unit||a,o=l.format||o}a=a||"mm",o=o||"a4",s=(""+(s||"P")).toLowerCase();var u,f=(""+o).toLowerCase(),h={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(a){case"pt":u=1;break;case"mm":u=72/25.4;break;case"cm":u=72/2.54;break;case"in":u=72;break;case"px":u=.75;break;case"pc":case"em":u=12;break;case"ex":u=6;break;default:throw"Invalid unit: "+a}var c,m=0,g=0;if(h.hasOwnProperty(f))m=h[f][1]/u,g=h[f][0]/u;else try{m=o[1],g=o[0]}catch{throw new Error("Invalid format: "+o)}if(s==="p"||s==="portrait")s="p",g>m&&(c=g,g=m,m=c);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",m>g&&(c=g,g=m,m=c)}return{width:g,height:m,unit:a,k:u,orientation:s}},n.html=function(s,a){(a=a||{}).callback=a.callback||function(){},a.html2canvas=a.html2canvas||{},a.html2canvas.canvas=a.html2canvas.canvas||this.canvas,a.jsPDF=a.jsPDF||this,a.fontFaces=a.fontFaces?a.fontFaces.map(Zd):null;var o=new A(a);return a.worker?o:o.from(s).doCallback()}}(bt.API),bt.API.addJS=function(n){return M2=n,this.internal.events.subscribe("postPutResources",function(){Kc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Kc+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),D2=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+M2+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Kc!==void 0&&D2!==void 0&&this.internal.out("/Names <</JavaScript "+Kc+" 0 R>>")}),this},function(n){var e;n.events.push(["postPutResources",function(){var t=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=t.outline.render().split(/\r\n/),A=0;A<i.length;A++){var s=i[A],a=r.exec(s);if(a!=null){var o=a[1];t.internal.newObjectDeferredBegin(o,!1)}t.internal.write(s)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,u=[];for(A=0;A<l;A++){var f=t.internal.newObject();u.push(f);var h=t.internal.getPageInfo(A+1);t.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var c=t.internal.newObject();for(t.internal.write("<< /Names [ "),A=0;A<u.length;A++)t.internal.write("(page_"+(A+1)+")"+u[A]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+c+" 0 R"),t.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),n.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(r,i,A){var s={title:i,options:A,children:[]};return r==null&&(r=this.root),r.children.push(s),s},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(r){r.id=t.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},t.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},t.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,A=0;A<r.children.length;A++){var s=r.children[A];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(r)),A>0&&this.line("/Prev "+this.makeRef(r.children[A-1])),A<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[A+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var a=this.count=this.count_r({count:0},s);if(a>0&&this.line("/Count "+a),s.options&&s.options.pageNumber){var o=t.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var l=0;l<r.children.length;l++)this.renderItems(r.children[l])},t.outline.line=function(r){this.ctx.val+=r+`\r
`},t.outline.makeRef=function(r){return r.id+" 0 R"},t.outline.makeString=function(r){return"("+t.internal.pdfEscape(r)+")"},t.outline.objStart=function(r){this.ctx.val+=`\r
`+r.id+` 0 obj\r
<<\r
`},t.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},t.outline.count_r=function(r,i){for(var A=0;A<i.children.length;A++)r.count++,this.count_r(r,i.children[A]);return r.count}}])}(bt.API),function(n){var e=[192,193,194,195,196,197,198,199];n.processJPEG=function(t,r,i,A,s,a){var o,l=this.decode.DCT_DECODE,u=null;if(typeof t=="string"||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=s||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(o=function(f){for(var h,c=256*f.charCodeAt(4)+f.charCodeAt(5),m=f.length,g={width:0,height:0,numcomponents:1},w=4;w<m;w+=2){if(w+=c,e.indexOf(f.charCodeAt(w+1))!==-1){h=256*f.charCodeAt(w+5)+f.charCodeAt(w+6),g={width:256*f.charCodeAt(w+7)+f.charCodeAt(w+8),height:h,numcomponents:f.charCodeAt(w+9)};break}c=256*f.charCodeAt(w+2)+f.charCodeAt(w+3)}return g}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}u={data:t,width:o.width,height:o.height,colorSpace:a,bitsPerComponent:8,filter:l,index:r,alias:i}}return u}}(bt.API);var Ho,Vc,H2,q2,j2,FU=function(){var n,e,t;function r(A){var s,a,o,l,u,f,h,c,m,g,w,p,v,b;for(this.data=A,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},f=null;;){switch(s=this.readUInt32(),m=(function(){var B,T;for(T=[],B=0;B<4;++B)T.push(String.fromCharCode(this.data[this.pos++]));return T}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(s);break;case"fcTL":f&&this.animation.frames.push(f),this.pos+=4,f={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},u=this.readUInt16(),l=this.readUInt16()||100,f.delay=1e3*u/l,f.disposeOp=this.data[this.pos++],f.blendOp=this.data[this.pos++],f.data=[];break;case"IDAT":case"fdAT":for(m==="fdAT"&&(this.pos+=4,s-=4),A=f?.data||this.imgData,p=0;0<=s?p<s:p>s;0<=s?++p:--p)A.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(o=this.palette.length/3,this.transparency.indexed=this.read(s),this.transparency.indexed.length>o)throw new Error("More transparent colors than palette size");if((g=o-this.transparency.indexed.length)>0)for(v=0;0<=g?v<g:v>g;0<=g?++v:--v)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(s)[0];break;case 2:this.transparency.rgb=this.read(s)}break;case"tEXt":h=(w=this.read(s)).indexOf(0),c=String.fromCharCode.apply(String,w.slice(0,h)),this.text[c]=String.fromCharCode.apply(String,w.slice(h+1));break;case"IEND":return f&&this.animation.frames.push(f),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(b=this.colorType)===4||b===6,a=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*a,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=s}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(A){var s,a;for(a=[],s=0;0<=A?s<A:s>A;0<=A?++s:--s)a.push(this.data[this.pos++]);return a},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(A){var s=this.pixelBitlength/8,a=new Uint8Array(this.width*this.height*s),o=0,l=this;if(A==null&&(A=this.imgData),A.length===0)return new Uint8Array(0);function u(f,h,c,m){var g,w,p,v,b,B,T,M,D,j,R,ae,L,x,Q,C,z,Y,V,ie,Ae,$=Math.ceil((l.width-f)/c),te=Math.ceil((l.height-h)/m),F=l.width==$&&l.height==te;for(x=s*$,ae=F?a:new Uint8Array(x*te),B=A.length,L=0,w=0;L<te&&o<B;){switch(A[o++]){case 0:for(v=z=0;z<x;v=z+=1)ae[w++]=A[o++];break;case 1:for(v=Y=0;Y<x;v=Y+=1)g=A[o++],b=v<s?0:ae[w-s],ae[w++]=(g+b)%256;break;case 2:for(v=V=0;V<x;v=V+=1)g=A[o++],p=(v-v%s)/s,Q=L&&ae[(L-1)*x+p*s+v%s],ae[w++]=(Q+g)%256;break;case 3:for(v=ie=0;ie<x;v=ie+=1)g=A[o++],p=(v-v%s)/s,b=v<s?0:ae[w-s],Q=L&&ae[(L-1)*x+p*s+v%s],ae[w++]=(g+Math.floor((b+Q)/2))%256;break;case 4:for(v=Ae=0;Ae<x;v=Ae+=1)g=A[o++],p=(v-v%s)/s,b=v<s?0:ae[w-s],L===0?Q=C=0:(Q=ae[(L-1)*x+p*s+v%s],C=p&&ae[(L-1)*x+(p-1)*s+v%s]),T=b+Q-C,M=Math.abs(T-b),j=Math.abs(T-Q),R=Math.abs(T-C),D=M<=j&&M<=R?b:j<=R?Q:C,ae[w++]=(g+D)%256;break;default:throw new Error("Invalid filter algorithm: "+A[o-1])}if(!F){var H=((h+L*m)*l.width+f)*s,G=L*x;for(v=0;v<$;v+=1){for(var X=0;X<s;X+=1)a[H++]=ae[G++];H+=(c-1)*s}}L++}}return A=AU(A),l.interlaceMethod==1?(u(0,0,8,8),u(4,0,8,8),u(0,4,4,8),u(2,0,4,4),u(0,2,2,4),u(1,0,2,2),u(0,1,1,2)):u(0,0,1,1),a},r.prototype.decodePalette=function(){var A,s,a,o,l,u,f,h,c;for(a=this.palette,u=this.transparency.indexed||[],l=new Uint8Array((u.length||0)+a.length),o=0,A=0,s=f=0,h=a.length;f<h;s=f+=3)l[o++]=a[s],l[o++]=a[s+1],l[o++]=a[s+2],l[o++]=(c=u[A++])!=null?c:255;return l},r.prototype.copyToImageData=function(A,s){var a,o,l,u,f,h,c,m,g,w,p;if(o=this.colors,g=null,a=this.hasAlphaChannel,this.palette.length&&(g=(p=this._decodedPalette)!=null?p:this._decodedPalette=this.decodePalette(),o=4,a=!0),m=(l=A.data||A).length,f=g||s,u=h=0,o===1)for(;u<m;)c=g?4*s[u/4]:h,w=f[c++],l[u++]=w,l[u++]=w,l[u++]=w,l[u++]=a?f[c++]:255,h=c;else for(;u<m;)c=g?4*s[u/4]:h,l[u++]=f[c++],l[u++]=f[c++],l[u++]=f[c++],l[u++]=a?f[c++]:255,h=c},r.prototype.decode=function(){var A;return A=new Uint8Array(this.width*this.height*4),this.copyToImageData(A,this.decodePixels()),A};var i=function(){if(Object.prototype.toString.call(Et)==="[object Window]"){try{e=Et.document.createElement("canvas"),t=e.getContext("2d")}catch{return!1}return!0}return!1};return i(),n=function(A){var s;if(i()===!0)return t.width=A.width,t.height=A.height,t.clearRect(0,0,A.width,A.height),t.putImageData(A,0,0),(s=new Image).src=e.toDataURL(),s;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(A){var s,a,o,l,u,f,h,c;if(this.animation){for(c=[],a=u=0,f=(h=this.animation.frames).length;u<f;a=++u)s=h[a],o=A.createImageData(s.width,s.height),l=this.decodePixels(new Uint8Array(s.data)),this.copyToImageData(o,l),s.imageData=o,c.push(s.image=n(o));return c}},r.prototype.renderFrame=function(A,s){var a,o,l;return a=(o=this.animation.frames)[s],l=o[s-1],s===0&&A.clearRect(0,0,this.width,this.height),l?.disposeOp===1?A.clearRect(l.xOffset,l.yOffset,l.width,l.height):l?.disposeOp===2&&A.putImageData(l.imageData,l.xOffset,l.yOffset),a.blendOp===0&&A.clearRect(a.xOffset,a.yOffset,a.width,a.height),A.drawImage(a.image,a.xOffset,a.yOffset)},r.prototype.animate=function(A){var s,a,o,l,u,f,h=this;return a=0,f=this.animation,l=f.numFrames,o=f.frames,u=f.numPlays,(s=function(){var c,m;if(c=a++%l,m=o[c],h.renderFrame(A,c),l>1&&a/l<u)return h.animation._timeout=setTimeout(s,m.delay)})()},r.prototype.stopAnimation=function(){var A;return clearTimeout((A=this.animation)!=null?A._timeout:void 0)},r.prototype.render=function(A){var s,a;return A._png&&A._png.stopAnimation(),A._png=this,A.width=this.width,A.height=this.height,s=A.getContext("2d"),this.animation?(this.decodeFrames(s),this.animate(s)):(a=s.createImageData(this.width,this.height),this.copyToImageData(a,this.decodePixels()),s.putImageData(a,0,0))},r}();/**
* @license
*
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*//**
* @license
* (c) Dean McNamee <dean@gmail.com>, 2013.
*
* https://github.com/deanm/omggif
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
* including animation and compression. It does not rely on any specific
* underlying system, so should run in the browser, Node, or Plask.
*/function _U(n){var e=0;if(n[e++]!==71||n[e++]!==73||n[e++]!==70||n[e++]!==56||(n[e++]+1&253)!=56||n[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=n[e++]|n[e++]<<8,r=n[e++]|n[e++]<<8,i=n[e++],A=i>>7,s=1<<(7&i)+1;n[e++],n[e++];var a=null,o=null;A&&(a=e,o=s,e+=3*s);var l=!0,u=[],f=0,h=null,c=0,m=null;for(this.width=t,this.height=r;l&&e<n.length;)switch(n[e++]){case 33:switch(n[e++]){case 255:if(n[e]!==11||n[e+1]==78&&n[e+2]==69&&n[e+3]==84&&n[e+4]==83&&n[e+5]==67&&n[e+6]==65&&n[e+7]==80&&n[e+8]==69&&n[e+9]==50&&n[e+10]==46&&n[e+11]==48&&n[e+12]==3&&n[e+13]==1&&n[e+16]==0)e+=14,m=n[e++]|n[e++]<<8,e++;else for(e+=12;;){if(!((L=n[e++])>=0))throw Error("Invalid block size");if(L===0)break;e+=L}break;case 249:if(n[e++]!==4||n[e+4]!==0)throw new Error("Invalid graphics extension block.");var g=n[e++];f=n[e++]|n[e++]<<8,h=n[e++],(1&g)==0&&(h=null),c=g>>2&7,e++;break;case 254:for(;;){if(!((L=n[e++])>=0))throw Error("Invalid block size");if(L===0)break;e+=L}break;default:throw new Error("Unknown graphic control label: 0x"+n[e-1].toString(16))}break;case 44:var w=n[e++]|n[e++]<<8,p=n[e++]|n[e++]<<8,v=n[e++]|n[e++]<<8,b=n[e++]|n[e++]<<8,B=n[e++],T=B>>6&1,M=1<<(7&B)+1,D=a,j=o,R=!1;B>>7&&(R=!0,D=e,j=M,e+=3*M);var ae=e;for(e++;;){var L;if(!((L=n[e++])>=0))throw Error("Invalid block size");if(L===0)break;e+=L}u.push({x:w,y:p,width:v,height:b,has_local_palette:R,palette_offset:D,palette_size:j,data_offset:ae,data_length:e-ae,transparent_index:h,interlaced:!!T,delay:f,disposal:c});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+n[e-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return m},this.frameInfo=function(x){if(x<0||x>=u.length)throw new Error("Frame index out of range.");return u[x]},this.decodeAndBlitFrameBGRA=function(x,Q){var C=this.frameInfo(x),z=C.width*C.height,Y=new Uint8Array(z);K2(n,C.data_offset,Y,z);var V=C.palette_offset,ie=C.transparent_index;ie===null&&(ie=256);var Ae=C.width,$=t-Ae,te=Ae,F=4*(C.y*t+C.x),H=4*((C.y+C.height)*t+C.x),G=F,X=4*$;C.interlaced===!0&&(X+=4*t*7);for(var J=8,O=0,U=Y.length;O<U;++O){var ee=Y[O];if(te===0&&(te=Ae,(G+=X)>=H&&(X=4*$+4*t*(J-1),G=F+(Ae+$)*(J<<1),J>>=1)),ee===ie)G+=4;else{var re=n[V+3*ee],W=n[V+3*ee+1],Z=n[V+3*ee+2];Q[G++]=Z,Q[G++]=W,Q[G++]=re,Q[G++]=255}--te}},this.decodeAndBlitFrameRGBA=function(x,Q){var C=this.frameInfo(x),z=C.width*C.height,Y=new Uint8Array(z);K2(n,C.data_offset,Y,z);var V=C.palette_offset,ie=C.transparent_index;ie===null&&(ie=256);var Ae=C.width,$=t-Ae,te=Ae,F=4*(C.y*t+C.x),H=4*((C.y+C.height)*t+C.x),G=F,X=4*$;C.interlaced===!0&&(X+=4*t*7);for(var J=8,O=0,U=Y.length;O<U;++O){var ee=Y[O];if(te===0&&(te=Ae,(G+=X)>=H&&(X=4*$+4*t*(J-1),G=F+(Ae+$)*(J<<1),J>>=1)),ee===ie)G+=4;else{var re=n[V+3*ee],W=n[V+3*ee+1],Z=n[V+3*ee+2];Q[G++]=re,Q[G++]=W,Q[G++]=Z,Q[G++]=255}--te}}}function K2(n,e,t,r){for(var i=n[e++],A=1<<i,s=A+1,a=s+1,o=i+1,l=(1<<o)-1,u=0,f=0,h=0,c=n[e++],m=new Int32Array(4096),g=null;;){for(;u<16&&c!==0;)f|=n[e++]<<u,u+=8,c===1?c=n[e++]:--c;if(u<o)break;var w=f&l;if(f>>=o,u-=o,w!==A){if(w===s)break;for(var p=w<a?w:g,v=0,b=p;b>A;)b=m[b]>>8,++v;var B=b;if(h+v+(p!==w?1:0)>r)return void dr.log("Warning, gif stream longer than expected.");t[h++]=B;var T=h+=v;for(p!==w&&(t[h++]=B),b=p;v--;)b=m[b],t[--T]=255&b,b>>=8;g!==null&&a<4096&&(m[a++]=g<<8|B,a>=l+1&&o<12&&(++o,l=l<<1|1)),g=w}else a=s+1,l=(1<<(o=i+1))-1,g=null}return h!==r&&dr.log("Warning, gif stream shorter than expected."),t}/**
* @license
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function tp(n){var e,t,r,i,A,s=Math.floor,a=new Array(64),o=new Array(64),l=new Array(64),u=new Array(64),f=new Array(65535),h=new Array(65535),c=new Array(64),m=new Array(64),g=[],w=0,p=7,v=new Array(64),b=new Array(64),B=new Array(64),T=new Array(256),M=new Array(2048),D=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],j=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],ae=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],L=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],x=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Q=[0,1,2,3,4,5,6,7,8,9,10,11],C=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],z=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Y(F,H){for(var G=0,X=0,J=new Array,O=1;O<=16;O++){for(var U=1;U<=F[O];U++)J[H[X]]=[],J[H[X]][0]=G,J[H[X]][1]=O,X++,G++;G*=2}return J}function V(F){for(var H=F[0],G=F[1]-1;G>=0;)H&1<<G&&(w|=1<<p),G--,--p<0&&(w==255?(ie(255),ie(0)):ie(w),p=7,w=0)}function ie(F){g.push(F)}function Ae(F){ie(F>>8&255),ie(255&F)}function $(F,H,G,X,J){for(var O,U=J[0],ee=J[240],re=function(P,oe){var ge,ce,Ee,ye,Be,Ue,Oe,Me,$e,tt,Ve=0;for($e=0;$e<8;++$e){ge=P[Ve],ce=P[Ve+1],Ee=P[Ve+2],ye=P[Ve+3],Be=P[Ve+4],Ue=P[Ve+5],Oe=P[Ve+6];var Tt=ge+(Me=P[Ve+7]),st=ge-Me,kt=ce+Oe,yt=ce-Oe,St=Ee+Ue,ur=Ee-Ue,Ft=ye+Be,$t=ye-Be,Qt=Tt+Ft,yr=Tt-Ft,It=kt+St,Kt=kt-St;P[Ve]=Qt+It,P[Ve+4]=Qt-It;var mt=.707106781*(Kt+yr);P[Ve+2]=yr+mt,P[Ve+6]=yr-mt;var pt=.382683433*((Qt=$t+ur)-(Kt=yt+st)),on=.5411961*Qt+pt,Fr=1.306562965*Kt+pt,jr=.707106781*(It=ur+yt),dn=st+jr,ut=st-jr;P[Ve+5]=ut+on,P[Ve+3]=ut-on,P[Ve+1]=dn+Fr,P[Ve+7]=dn-Fr,Ve+=8}for(Ve=0,$e=0;$e<8;++$e){ge=P[Ve],ce=P[Ve+8],Ee=P[Ve+16],ye=P[Ve+24],Be=P[Ve+32],Ue=P[Ve+40],Oe=P[Ve+48];var bn=ge+(Me=P[Ve+56]),zn=ge-Me,nr=ce+Oe,Jt=ce-Oe,ir=Ee+Ue,zt=Ee-Ue,vi=ye+Be,Wn=ye-Be,_r=bn+vi,Bn=bn-vi,Cn=nr+ir,rr=nr-ir;P[Ve]=_r+Cn,P[Ve+32]=_r-Cn;var pn=.707106781*(rr+Bn);P[Ve+16]=Bn+pn,P[Ve+48]=Bn-pn;var Xn=.382683433*((_r=Wn+zt)-(rr=Jt+zn)),at=.5411961*_r+Xn,xe=1.306562965*rr+Xn,Ye=.707106781*(Cn=zt+Jt),Je=zn+Ye,Vt=zn-Ye;P[Ve+40]=Vt+at,P[Ve+24]=Vt-at,P[Ve+8]=Je+xe,P[Ve+56]=Je-xe,Ve++}for($e=0;$e<64;++$e)tt=P[$e]*oe[$e],c[$e]=tt>0?tt+.5|0:tt-.5|0;return c}(F,H),W=0;W<64;++W)m[D[W]]=re[W];var Z=m[0]-G;G=m[0],Z==0?V(X[0]):(V(X[h[O=32767+Z]]),V(f[O]));for(var me=63;me>0&&m[me]==0;)me--;if(me==0)return V(U),G;for(var k,pe=1;pe<=me;){for(var I=pe;m[pe]==0&&pe<=me;)++pe;var E=pe-I;if(E>=16){k=E>>4;for(var S=1;S<=k;++S)V(ee);E&=15}O=32767+m[pe],V(J[(E<<4)+h[O]]),V(f[O]),pe++}return me!=63&&V(U),G}function te(F){F=Math.min(Math.max(F,1),100),A!=F&&(function(H){for(var G=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],X=0;X<64;X++){var J=s((G[X]*H+50)/100);J=Math.min(Math.max(J,1),255),a[D[X]]=J}for(var O=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],U=0;U<64;U++){var ee=s((O[U]*H+50)/100);ee=Math.min(Math.max(ee,1),255),o[D[U]]=ee}for(var re=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],W=0,Z=0;Z<8;Z++)for(var me=0;me<8;me++)l[W]=1/(a[D[W]]*re[Z]*re[me]*8),u[W]=1/(o[D[W]]*re[Z]*re[me]*8),W++}(F<50?Math.floor(5e3/F):Math.floor(200-2*F)),A=F)}this.encode=function(F,H){H&&te(H),g=new Array,w=0,p=7,Ae(65496),Ae(65504),Ae(16),ie(74),ie(70),ie(73),ie(70),ie(0),ie(1),ie(1),ie(0),Ae(1),Ae(1),ie(0),ie(0),function(){Ae(65499),Ae(132),ie(0);for(var ce=0;ce<64;ce++)ie(a[ce]);ie(1);for(var Ee=0;Ee<64;Ee++)ie(o[Ee])}(),function(ce,Ee){Ae(65472),Ae(17),ie(8),Ae(Ee),Ae(ce),ie(3),ie(1),ie(17),ie(0),ie(2),ie(17),ie(1),ie(3),ie(17),ie(1)}(F.width,F.height),function(){Ae(65476),Ae(418),ie(0);for(var ce=0;ce<16;ce++)ie(j[ce+1]);for(var Ee=0;Ee<=11;Ee++)ie(R[Ee]);ie(16);for(var ye=0;ye<16;ye++)ie(ae[ye+1]);for(var Be=0;Be<=161;Be++)ie(L[Be]);ie(1);for(var Ue=0;Ue<16;Ue++)ie(x[Ue+1]);for(var Oe=0;Oe<=11;Oe++)ie(Q[Oe]);ie(17);for(var Me=0;Me<16;Me++)ie(C[Me+1]);for(var $e=0;$e<=161;$e++)ie(z[$e])}(),Ae(65498),Ae(12),ie(3),ie(1),ie(0),ie(2),ie(17),ie(3),ie(17),ie(0),ie(63),ie(0);var G=0,X=0,J=0;w=0,p=7,this.encode.displayName="_encode_";for(var O,U,ee,re,W,Z,me,k,pe,I=F.data,E=F.width,S=F.height,P=4*E,oe=0;oe<S;){for(O=0;O<P;){for(W=P*oe+O,me=-1,k=0,pe=0;pe<64;pe++)Z=W+(k=pe>>3)*P+(me=4*(7&pe)),oe+k>=S&&(Z-=P*(oe+1+k-S)),O+me>=P&&(Z-=O+me-P+4),U=I[Z++],ee=I[Z++],re=I[Z++],v[pe]=(M[U]+M[ee+256>>0]+M[re+512>>0]>>16)-128,b[pe]=(M[U+768>>0]+M[ee+1024>>0]+M[re+1280>>0]>>16)-128,B[pe]=(M[U+1280>>0]+M[ee+1536>>0]+M[re+1792>>0]>>16)-128;G=$(v,l,G,e,r),X=$(b,u,X,t,i),J=$(B,u,J,t,i),O+=32}oe+=8}if(p>=0){var ge=[];ge[1]=p+1,ge[0]=(1<<p+1)-1,V(ge)}return Ae(65497),new Uint8Array(g)},n=n||50,function(){for(var F=String.fromCharCode,H=0;H<256;H++)T[H]=F(H)}(),e=Y(j,R),t=Y(x,Q),r=Y(ae,L),i=Y(C,z),function(){for(var F=1,H=2,G=1;G<=15;G++){for(var X=F;X<H;X++)h[32767+X]=G,f[32767+X]=[],f[32767+X][1]=G,f[32767+X][0]=X;for(var J=-(H-1);J<=-F;J++)h[32767+J]=G,f[32767+J]=[],f[32767+J][1]=G,f[32767+J][0]=H-1+J;F<<=1,H<<=1}}(),function(){for(var F=0;F<256;F++)M[F]=19595*F,M[F+256>>0]=38470*F,M[F+512>>0]=7471*F+32768,M[F+768>>0]=-11059*F,M[F+1024>>0]=-21709*F,M[F+1280>>0]=32768*F+8421375,M[F+1536>>0]=-27439*F,M[F+1792>>0]=-5329*F}(),te(n)}/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function oA(n,e){if(this.pos=0,this.buffer=n,this.datav=new DataView(n.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function V2(n){function e(j){if(!j)throw Error("assert :P")}function t(j,R,ae){for(var L=0;4>L;L++)if(j[R+L]!=ae.charCodeAt(L))return!0;return!1}function r(j,R,ae,L,x){for(var Q=0;Q<x;Q++)j[R+Q]=ae[L+Q]}function i(j,R,ae,L){for(var x=0;x<L;x++)j[R+x]=ae}function A(j){return new Int32Array(j)}function s(j,R){for(var ae=[],L=0;L<j;L++)ae.push(new R);return ae}function a(j,R){var ae=[];return function L(x,Q,C){for(var z=C[Q],Y=0;Y<z&&(x.push(C.length>Q+1?[]:new R),!(C.length<Q+1));Y++)L(x[Y],Q+1,C)}(ae,0,j),ae}var o=function(){var j=this;function R(d,y){for(var N=1<<y-1>>>0;d&N;)N>>>=1;return N?(d&N-1)+N:d}function ae(d,y,N,K,ne){e(!(K%N));do d[y+(K-=N)]=ne;while(0<K)}function L(d,y,N,K,ne){if(e(2328>=ne),512>=ne)var le=A(512);else if((le=A(ne))==null)return 0;return function(ue,fe,de,ve,Se,Ne){var Le,Te,je=fe,Qe=1<<de,Fe=A(16),_e=A(16);for(e(Se!=0),e(ve!=null),e(ue!=null),e(0<de),Te=0;Te<Se;++Te){if(15<ve[Te])return 0;++Fe[ve[Te]]}if(Fe[0]==Se)return 0;for(_e[1]=0,Le=1;15>Le;++Le){if(Fe[Le]>1<<Le)return 0;_e[Le+1]=_e[Le]+Fe[Le]}for(Te=0;Te<Se;++Te)Le=ve[Te],0<ve[Te]&&(Ne[_e[Le]++]=Te);if(_e[15]==1)return(ve=new x).g=0,ve.value=Ne[0],ae(ue,je,1,Qe,ve),Qe;var De,Ke=-1,qe=Qe-1,it=0,Ze=1,vt=1,et=1<<de;for(Te=0,Le=1,Se=2;Le<=de;++Le,Se<<=1){if(Ze+=vt<<=1,0>(vt-=Fe[Le]))return 0;for(;0<Fe[Le];--Fe[Le])(ve=new x).g=Le,ve.value=Ne[Te++],ae(ue,je+it,Se,et,ve),it=R(it,Le)}for(Le=de+1,Se=2;15>=Le;++Le,Se<<=1){if(Ze+=vt<<=1,0>(vt-=Fe[Le]))return 0;for(;0<Fe[Le];--Fe[Le]){if(ve=new x,(it&qe)!=Ke){for(je+=et,De=1<<(Ke=Le)-de;15>Ke&&!(0>=(De-=Fe[Ke]));)++Ke,De<<=1;Qe+=et=1<<(De=Ke-de),ue[fe+(Ke=it&qe)].g=De+de,ue[fe+Ke].value=je-fe-Ke}ve.g=Le-de,ve.value=Ne[Te++],ae(ue,je+(it>>de),Se,et,ve),it=R(it,Le)}}return Ze!=2*_e[15]-1?0:Qe}(d,y,N,K,ne,le)}function x(){this.value=this.g=0}function Q(){this.value=this.g=0}function C(){this.G=s(5,x),this.H=A(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(Rn,Q)}function z(d,y,N,K){e(d!=null),e(y!=null),e(2147483648>K),d.Ca=254,d.I=0,d.b=-8,d.Ka=0,d.oa=y,d.pa=N,d.Jd=y,d.Yc=N+K,d.Zc=4<=K?N+K-4+1:N,O(d)}function Y(d,y){for(var N=0;0<y--;)N|=ee(d,128)<<y;return N}function V(d,y){var N=Y(d,y);return U(d)?-N:N}function ie(d,y,N,K){var ne,le=0;for(e(d!=null),e(y!=null),e(4294967288>K),d.Sb=K,d.Ra=0,d.u=0,d.h=0,4<K&&(K=4),ne=0;ne<K;++ne)le+=y[N+ne]<<8*ne;d.Ra=le,d.bb=K,d.oa=y,d.pa=N}function Ae(d){for(;8<=d.u&&d.bb<d.Sb;)d.Ra>>>=8,d.Ra+=d.oa[d.pa+d.bb]<<Ll-8>>>0,++d.bb,d.u-=8;G(d)&&(d.h=1,d.u=0)}function $(d,y){if(e(0<=y),!d.h&&y<=Nl){var N=H(d)&Ul[y];return d.u+=y,Ae(d),N}return d.h=1,d.u=0}function te(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function F(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function H(d){return d.Ra>>>(d.u&Ll-1)>>>0}function G(d){return e(d.bb<=d.Sb),d.h||d.bb==d.Sb&&d.u>Ll}function X(d,y){d.u=y,d.h=G(d)}function J(d){d.u>=wc&&(e(d.u>=wc),Ae(d))}function O(d){e(d!=null&&d.oa!=null),d.pa<d.Zc?(d.I=(d.oa[d.pa++]|d.I<<8)>>>0,d.b+=8):(e(d!=null&&d.oa!=null),d.pa<d.Yc?(d.b+=8,d.I=d.oa[d.pa++]|d.I<<8):d.Ka?d.b=0:(d.I<<=8,d.b+=8,d.Ka=1))}function U(d){return Y(d,1)}function ee(d,y){var N=d.Ca;0>d.b&&O(d);var K=d.b,ne=N*y>>>8,le=(d.I>>>K>ne)+0;for(le?(N-=ne,d.I-=ne+1<<K>>>0):N=ne+1,K=N,ne=0;256<=K;)ne+=8,K>>=8;return K=7^ne+Bi[K],d.b-=K,d.Ca=(N<<K)-1,le}function re(d,y,N){d[y+0]=N>>24&255,d[y+1]=N>>16&255,d[y+2]=N>>8&255,d[y+3]=N>>0&255}function W(d,y){return d[y+0]<<0|d[y+1]<<8}function Z(d,y){return W(d,y)|d[y+2]<<16}function me(d,y){return W(d,y)|W(d,y+2)<<16}function k(d,y){var N=1<<y;return e(d!=null),e(0<y),d.X=A(N),d.X==null?0:(d.Mb=32-y,d.Xa=y,1)}function pe(d,y){e(d!=null),e(y!=null),e(d.Xa==y.Xa),r(y.X,0,d.X,0,1<<y.Xa)}function I(){this.X=[],this.Xa=this.Mb=0}function E(d,y,N,K){e(N!=null),e(K!=null);var ne=N[0],le=K[0];return ne==0&&(ne=(d*le+y/2)/y),le==0&&(le=(y*ne+d/2)/d),0>=ne||0>=le?0:(N[0]=ne,K[0]=le,1)}function S(d,y){return d+(1<<y)-1>>>y}function P(d,y){return((4278255360&d)+(4278255360&y)>>>0&4278255360)+((16711935&d)+(16711935&y)>>>0&16711935)>>>0}function oe(d,y){j[y]=function(N,K,ne,le,ue,fe,de){var ve;for(ve=0;ve<ue;++ve){var Se=j[d](fe[de+ve-1],ne,le+ve);fe[de+ve]=P(N[K+ve],Se)}}}function ge(){this.ud=this.hd=this.jd=0}function ce(d,y){return((4278124286&(d^y))>>>1)+(d&y)>>>0}function Ee(d){return 0<=d&&256>d?d:0>d?0:255<d?255:void 0}function ye(d,y){return Ee(d+(d-y+.5>>1))}function Be(d,y,N){return Math.abs(y-N)-Math.abs(d-N)}function Ue(d,y,N,K,ne,le,ue){for(K=le[ue-1],N=0;N<ne;++N)le[ue+N]=K=P(d[y+N],K)}function Oe(d,y,N,K,ne){var le;for(le=0;le<N;++le){var ue=d[y+le],fe=ue>>8&255,de=16711935&(de=(de=16711935&ue)+((fe<<16)+fe));K[ne+le]=(4278255360&ue)+de>>>0}}function Me(d,y){y.jd=d>>0&255,y.hd=d>>8&255,y.ud=d>>16&255}function $e(d,y,N,K,ne,le){var ue;for(ue=0;ue<K;++ue){var fe=y[N+ue],de=fe>>>8,ve=fe,Se=255&(Se=(Se=fe>>>16)+((d.jd<<24>>24)*(de<<24>>24)>>>5));ve=255&(ve=(ve=ve+((d.hd<<24>>24)*(de<<24>>24)>>>5))+((d.ud<<24>>24)*(Se<<24>>24)>>>5)),ne[le+ue]=(4278255360&fe)+(Se<<16)+ve}}function tt(d,y,N,K,ne){j[y]=function(le,ue,fe,de,ve,Se,Ne,Le,Te){for(de=Ne;de<Le;++de)for(Ne=0;Ne<Te;++Ne)ve[Se++]=ne(fe[K(le[ue++])])},j[d]=function(le,ue,fe,de,ve,Se,Ne){var Le=8>>le.b,Te=le.Ea,je=le.K[0],Qe=le.w;if(8>Le)for(le=(1<<le.b)-1,Qe=(1<<Le)-1;ue<fe;++ue){var Fe,_e=0;for(Fe=0;Fe<Te;++Fe)Fe&le||(_e=K(de[ve++])),Se[Ne++]=ne(je[_e&Qe]),_e>>=Le}else j["VP8LMapColor"+N](de,ve,je,Qe,Se,Ne,ue,fe,Te)}}function Ve(d,y,N,K,ne){for(N=y+N;y<N;){var le=d[y++];K[ne++]=le>>16&255,K[ne++]=le>>8&255,K[ne++]=le>>0&255}}function Tt(d,y,N,K,ne){for(N=y+N;y<N;){var le=d[y++];K[ne++]=le>>16&255,K[ne++]=le>>8&255,K[ne++]=le>>0&255,K[ne++]=le>>24&255}}function st(d,y,N,K,ne){for(N=y+N;y<N;){var le=(ue=d[y++])>>16&240|ue>>12&15,ue=ue>>0&240|ue>>28&15;K[ne++]=le,K[ne++]=ue}}function kt(d,y,N,K,ne){for(N=y+N;y<N;){var le=(ue=d[y++])>>16&248|ue>>13&7,ue=ue>>5&224|ue>>3&31;K[ne++]=le,K[ne++]=ue}}function yt(d,y,N,K,ne){for(N=y+N;y<N;){var le=d[y++];K[ne++]=le>>0&255,K[ne++]=le>>8&255,K[ne++]=le>>16&255}}function St(d,y,N,K,ne,le){if(le==0)for(N=y+N;y<N;)re(K,((le=d[y++])[0]>>24|le[1]>>8&65280|le[2]<<8&16711680|le[3]<<24)>>>0),ne+=32;else r(K,ne,d,y,N)}function ur(d,y){j[y][0]=j[d+"0"],j[y][1]=j[d+"1"],j[y][2]=j[d+"2"],j[y][3]=j[d+"3"],j[y][4]=j[d+"4"],j[y][5]=j[d+"5"],j[y][6]=j[d+"6"],j[y][7]=j[d+"7"],j[y][8]=j[d+"8"],j[y][9]=j[d+"9"],j[y][10]=j[d+"10"],j[y][11]=j[d+"11"],j[y][12]=j[d+"12"],j[y][13]=j[d+"13"],j[y][14]=j[d+"0"],j[y][15]=j[d+"0"]}function Ft(d){return d==Hy||d==qy||d==wd||d==jy}function $t(){this.eb=[],this.size=this.A=this.fb=0}function Qt(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function yr(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new $t,this.f.kb=new Qt,this.sd=null}function It(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Kt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function mt(d){return alert("todo:WebPSamplerProcessPlane"),d.T}function pt(d,y){var N=d.T,K=y.ba.f.RGBA,ne=K.eb,le=K.fb+d.ka*K.A,ue=nA[y.ba.S],fe=d.y,de=d.O,ve=d.f,Se=d.N,Ne=d.ea,Le=d.W,Te=y.cc,je=y.dc,Qe=y.Mc,Fe=y.Nc,_e=d.ka,De=d.ka+d.T,Ke=d.U,qe=Ke+1>>1;for(_e==0?ue(fe,de,null,null,ve,Se,Ne,Le,ve,Se,Ne,Le,ne,le,null,null,Ke):(ue(y.ec,y.fc,fe,de,Te,je,Qe,Fe,ve,Se,Ne,Le,ne,le-K.A,ne,le,Ke),++N);_e+2<De;_e+=2)Te=ve,je=Se,Qe=Ne,Fe=Le,Se+=d.Rc,Le+=d.Rc,le+=2*K.A,ue(fe,(de+=2*d.fa)-d.fa,fe,de,Te,je,Qe,Fe,ve,Se,Ne,Le,ne,le-K.A,ne,le,Ke);return de+=d.fa,d.j+De<d.o?(r(y.ec,y.fc,fe,de,Ke),r(y.cc,y.dc,ve,Se,qe),r(y.Mc,y.Nc,Ne,Le,qe),N--):1&De||ue(fe,de,null,null,ve,Se,Ne,Le,ve,Se,Ne,Le,ne,le+K.A,null,null,Ke),N}function on(d,y,N){var K=d.F,ne=[d.J];if(K!=null){var le=d.U,ue=y.ba.S,fe=ue==vd||ue==wd;y=y.ba.f.RGBA;var de=[0],ve=d.ka;de[0]=d.T,d.Kb&&(ve==0?--de[0]:(--ve,ne[0]-=d.width),d.j+d.ka+d.T==d.o&&(de[0]=d.o-d.j-ve));var Se=y.eb;ve=y.fb+ve*y.A,d=Cr(K,ne[0],d.width,le,de,Se,ve+(fe?0:3),y.A),e(N==de),d&&Ft(ue)&&tA(Se,ve,fe,le,de,y.A)}return 0}function Fr(d){var y=d.ma,N=y.ba.S,K=11>N,ne=N==gd||N==md||N==vd||N==My||N==12||Ft(N);if(y.memory=null,y.Ib=null,y.Jb=null,y.Nd=null,!mc(y.Oa,d,ne?11:12))return 0;if(ne&&Ft(N)&&Xe(),d.da)alert("todo:use_scaling");else{if(K){if(y.Ib=mt,d.Kb){if(N=d.U+1>>1,y.memory=A(d.U+2*N),y.memory==null)return 0;y.ec=y.memory,y.fc=0,y.cc=y.ec,y.dc=y.fc+d.U,y.Mc=y.cc,y.Nc=y.dc+N,y.Ib=pt,Xe()}}else alert("todo:EmitYUV");ne&&(y.Jb=on,K&&Ie())}if(K&&!xI){for(d=0;256>d;++d)yz[d]=89858*(d-128)+bd>>yd,Cz[d]=-22014*(d-128)+bd,Bz[d]=-45773*(d-128),bz[d]=113618*(d-128)+bd>>yd;for(d=Sc;d<Gy;++d)y=76283*(d-16)+bd>>yd,Ez[d-Sc]=Oi(y,255),xz[d-Sc]=Oi(y+8>>4,15);xI=1}return 1}function jr(d){var y=d.ma,N=d.U,K=d.T;return e(!(1&d.ka)),0>=N||0>=K?0:(N=y.Ib(d,y),y.Jb!=null&&y.Jb(d,y,N),y.Dc+=N,1)}function dn(d){d.ma.memory=null}function ut(d,y,N,K){return $(d,8)!=47?0:(y[0]=$(d,14)+1,N[0]=$(d,14)+1,K[0]=$(d,1),$(d,3)!=0?0:!d.h)}function bn(d,y){if(4>d)return d+1;var N=d-2>>1;return(2+(1&d)<<N)+$(y,N)+1}function zn(d,y){return 120<y?y-120:1<=(N=((N=sz[y-1])>>4)*d+(8-(15&N)))?N:1;var N}function nr(d,y,N){var K=H(N),ne=d[y+=255&K].g-8;return 0<ne&&(X(N,N.u+8),K=H(N),y+=d[y].value,y+=K&(1<<ne)-1),X(N,N.u+d[y].g),d[y].value}function Jt(d,y,N){return N.g+=d.g,N.value+=d.value<<y>>>0,e(8>=N.g),d.g}function ir(d,y,N){var K=d.xc;return e((y=K==0?0:d.vc[d.md*(N>>K)+(y>>K)])<d.Wb),d.Ya[y]}function zt(d,y,N,K){var ne=d.ab,le=d.c*y,ue=d.C;y=ue+y;var fe=N,de=K;for(K=d.Ta,N=d.Ua;0<ne--;){var ve=d.gc[ne],Se=ue,Ne=y,Le=fe,Te=de,je=(de=K,fe=N,ve.Ea);switch(e(Se<Ne),e(Ne<=ve.nc),ve.hc){case 2:ld(Le,Te,(Ne-Se)*je,de,fe);break;case 0:var Qe=Se,Fe=Ne,_e=de,De=fe,Ke=(et=ve).Ea;Qe==0&&(ky(Le,Te,null,null,1,_e,De),Ue(Le,Te+1,0,0,Ke-1,_e,De+1),Te+=Ke,De+=Ke,++Qe);for(var qe=1<<et.b,it=qe-1,Ze=S(Ke,et.b),vt=et.K,et=et.w+(Qe>>et.b)*Ze;Qe<Fe;){var Zt=vt,sr=et,Xt=1;for(yc(Le,Te,_e,De-Ke,1,_e,De);Xt<Ke;){var jt=(Xt&~it)+qe;jt>Ke&&(jt=Ke),(0,_a[Zt[sr++]>>8&15])(Le,Te+ +Xt,_e,De+Xt-Ke,jt-Xt,_e,De+Xt),Xt=jt}Te+=Ke,De+=Ke,++Qe&it||(et+=Ze)}Ne!=ve.nc&&r(de,fe-je,de,fe+(Ne-Se-1)*je,je);break;case 1:for(je=Le,Fe=Te,Ke=(Le=ve.Ea)-(De=Le&~(_e=(Te=1<<ve.b)-1)),Qe=S(Le,ve.b),qe=ve.K,ve=ve.w+(Se>>ve.b)*Qe;Se<Ne;){for(it=qe,Ze=ve,vt=new ge,et=Fe+De,Zt=Fe+Le;Fe<et;)Me(it[Ze++],vt),Fo(vt,je,Fe,Te,de,fe),Fe+=Te,fe+=Te;Fe<Zt&&(Me(it[Ze++],vt),Fo(vt,je,Fe,Ke,de,fe),Fe+=Ke,fe+=Ke),++Se&_e||(ve+=Qe)}break;case 3:if(Le==de&&Te==fe&&0<ve.b){for(Fe=de,Le=je=fe+(Ne-Se)*je-(De=(Ne-Se)*S(ve.Ea,ve.b)),Te=de,_e=fe,Qe=[],De=(Ke=De)-1;0<=De;--De)Qe[De]=Te[_e+De];for(De=Ke-1;0<=De;--De)Fe[Le+De]=Qe[De];Ji(ve,Se,Ne,de,je,de,fe)}else Ji(ve,Se,Ne,Le,Te,de,fe)}fe=K,de=N}de!=N&&r(K,N,fe,de,le)}function vi(d,y){var N=d.V,K=d.Ba+d.c*d.C,ne=y-d.C;if(e(y<=d.l.o),e(16>=ne),0<ne){var le=d.l,ue=d.Ta,fe=d.Ua,de=le.width;if(zt(d,ne,N,K),ne=fe=[fe],e((N=d.C)<(K=y)),e(le.v<le.va),K>le.o&&(K=le.o),N<le.j){var ve=le.j-N;N=le.j,ne[0]+=ve*de}if(N>=K?N=0:(ne[0]+=4*le.v,le.ka=N-le.j,le.U=le.va-le.v,le.T=K-N,N=1),N){if(fe=fe[0],11>(N=d.ca).S){var Se=N.f.RGBA,Ne=(K=N.S,ne=le.U,le=le.T,ve=Se.eb,Se.A),Le=le;for(Se=Se.fb+d.Ma*Se.A;0<Le--;){var Te=ue,je=fe,Qe=ne,Fe=ve,_e=Se;switch(K){case pd:Ci(Te,je,Qe,Fe,_e);break;case gd:ui(Te,je,Qe,Fe,_e);break;case Hy:ui(Te,je,Qe,Fe,_e),tA(Fe,_e,0,Qe,1,0);break;case gI:Ds(Te,je,Qe,Fe,_e);break;case md:St(Te,je,Qe,Fe,_e,1);break;case qy:St(Te,je,Qe,Fe,_e,1),tA(Fe,_e,0,Qe,1,0);break;case vd:St(Te,je,Qe,Fe,_e,0);break;case wd:St(Te,je,Qe,Fe,_e,0),tA(Fe,_e,1,Qe,1,0);break;case My:Ta(Te,je,Qe,Fe,_e);break;case jy:Ta(Te,je,Qe,Fe,_e),Br(Fe,_e,Qe,1,0);break;case mI:ks(Te,je,Qe,Fe,_e);break;default:e(0)}fe+=de,Se+=Ne}d.Ma+=le}else alert("todo:EmitRescaledRowsYUVA");e(d.Ma<=N.height)}}d.C=y,e(d.C<=d.i)}function Wn(d){var y;if(0<d.ua)return 0;for(y=0;y<d.Wb;++y){var N=d.Ya[y].G,K=d.Ya[y].H;if(0<N[1][K[1]+0].g||0<N[2][K[2]+0].g||0<N[3][K[3]+0].g)return 0}return 1}function _r(d,y,N,K,ne,le){if(d.Z!=0){var ue=d.qd,fe=d.rd;for(e(La[d.Z]!=null);y<N;++y)La[d.Z](ue,fe,K,ne,K,ne,le),ue=K,fe=ne,ne+=le;d.qd=ue,d.rd=fe}}function Bn(d,y){var N=d.l.ma,K=N.Z==0||N.Z==1?d.l.j:d.C;if(K=d.C<K?K:d.C,e(y<=d.l.o),y>K){var ne=d.l.width,le=N.ca,ue=N.tb+ne*K,fe=d.V,de=d.Ba+d.c*K,ve=d.gc;e(d.ab==1),e(ve[0].hc==3),ud(ve[0],K,y,fe,de,le,ue),_r(N,K,y,le,ue,ne)}d.C=d.Ma=y}function Cn(d,y,N,K,ne,le,ue){var fe=d.$/K,de=d.$%K,ve=d.m,Se=d.s,Ne=N+d.$,Le=Ne;ne=N+K*ne;var Te=N+K*le,je=280+Se.ua,Qe=d.Pb?fe:16777216,Fe=0<Se.ua?Se.Wa:null,_e=Se.wc,De=Ne<Te?ir(Se,de,fe):null;e(d.C<le),e(Te<=ne);var Ke=!1;e:for(;;){for(;Ke||Ne<Te;){var qe=0;if(fe>=Qe){var it=Ne-N;e((Qe=d).Pb),Qe.wd=Qe.m,Qe.xd=it,0<Qe.s.ua&&pe(Qe.s.Wa,Qe.s.vb),Qe=fe+oz}if(de&_e||(De=ir(Se,de,fe)),e(De!=null),De.Qb&&(y[Ne]=De.qb,Ke=!0),!Ke)if(J(ve),De.jc){qe=ve,it=y;var Ze=Ne,vt=De.pd[H(qe)&Rn-1];e(De.jc),256>vt.g?(X(qe,qe.u+vt.g),it[Ze]=vt.value,qe=0):(X(qe,qe.u+vt.g-256),e(256<=vt.value),qe=vt.value),qe==0&&(Ke=!0)}else qe=nr(De.G[0],De.H[0],ve);if(ve.h)break;if(Ke||256>qe){if(!Ke)if(De.nd)y[Ne]=(De.qb|qe<<8)>>>0;else{if(J(ve),Ke=nr(De.G[1],De.H[1],ve),J(ve),it=nr(De.G[2],De.H[2],ve),Ze=nr(De.G[3],De.H[3],ve),ve.h)break;y[Ne]=(Ze<<24|Ke<<16|qe<<8|it)>>>0}if(Ke=!1,++Ne,++de>=K&&(de=0,++fe,ue!=null&&fe<=le&&!(fe%16)&&ue(d,fe),Fe!=null))for(;Le<Ne;)qe=y[Le++],Fe.X[(506832829*qe&4294967295)>>>Fe.Mb]=qe}else if(280>qe){if(qe=bn(qe-256,ve),it=nr(De.G[4],De.H[4],ve),J(ve),it=zn(K,it=bn(it,ve)),ve.h)break;if(Ne-N<it||ne-Ne<qe)break e;for(Ze=0;Ze<qe;++Ze)y[Ne+Ze]=y[Ne+Ze-it];for(Ne+=qe,de+=qe;de>=K;)de-=K,++fe,ue!=null&&fe<=le&&!(fe%16)&&ue(d,fe);if(e(Ne<=ne),de&_e&&(De=ir(Se,de,fe)),Fe!=null)for(;Le<Ne;)qe=y[Le++],Fe.X[(506832829*qe&4294967295)>>>Fe.Mb]=qe}else{if(!(qe<je))break e;for(Ke=qe-280,e(Fe!=null);Le<Ne;)qe=y[Le++],Fe.X[(506832829*qe&4294967295)>>>Fe.Mb]=qe;qe=Ne,e(!(Ke>>>(it=Fe).Xa)),y[qe]=it.X[Ke],Ke=!0}Ke||e(ve.h==G(ve))}if(d.Pb&&ve.h&&Ne<ne)e(d.m.h),d.a=5,d.m=d.wd,d.$=d.xd,0<d.s.ua&&pe(d.s.vb,d.s.Wa);else{if(ve.h)break e;ue?.(d,fe>le?le:fe),d.a=0,d.$=Ne-N}return 1}return d.a=3,0}function rr(d){e(d!=null),d.vc=null,d.yc=null,d.Ya=null;var y=d.Wa;y!=null&&(y.X=null),d.vb=null,e(d!=null)}function pn(){var d=new Py;return d==null?null:(d.a=0,d.xb=yI,ur("Predictor","VP8LPredictors"),ur("Predictor","VP8LPredictors_C"),ur("PredictorAdd","VP8LPredictorsAdd"),ur("PredictorAdd","VP8LPredictorsAdd_C"),ld=Oe,Fo=$e,Ci=Ve,ui=Tt,Ta=st,ks=kt,Ds=yt,j.VP8LMapColor32b=Ol,j.VP8LMapColor8b=cd,d)}function Xn(d,y,N,K,ne){var le=1,ue=[d],fe=[y],de=K.m,ve=K.s,Se=null,Ne=0;e:for(;;){if(N)for(;le&&$(de,1);){var Le=ue,Te=fe,je=K,Qe=1,Fe=je.m,_e=je.gc[je.ab],De=$(Fe,2);if(je.Oc&1<<De)le=0;else{switch(je.Oc|=1<<De,_e.hc=De,_e.Ea=Le[0],_e.nc=Te[0],_e.K=[null],++je.ab,e(4>=je.ab),De){case 0:case 1:_e.b=$(Fe,3)+2,Qe=Xn(S(_e.Ea,_e.b),S(_e.nc,_e.b),0,je,_e.K),_e.K=_e.K[0];break;case 3:var Ke,qe=$(Fe,8)+1,it=16<qe?0:4<qe?1:2<qe?2:3;if(Le[0]=S(_e.Ea,it),_e.b=it,Ke=Qe=Xn(qe,1,0,je,_e.K)){var Ze,vt=qe,et=_e,Zt=1<<(8>>et.b),sr=A(Zt);if(sr==null)Ke=0;else{var Xt=et.K[0],jt=et.w;for(sr[0]=et.K[0][0],Ze=1;Ze<1*vt;++Ze)sr[Ze]=P(Xt[jt+Ze],sr[Ze-1]);for(;Ze<4*Zt;++Ze)sr[Ze]=0;et.K[0]=null,et.K[0]=sr,Ke=1}}Qe=Ke;break;case 2:break;default:e(0)}le=Qe}}if(ue=ue[0],fe=fe[0],le&&$(de,1)&&!(le=1<=(Ne=$(de,4))&&11>=Ne)){K.a=3;break e}var gr;if(gr=le)t:{var hr,Ot,cn,Ei=K,fn=ue,xi=fe,ar=Ne,Ri=N,Pi=Ei.m,Fn=Ei.s,Pn=[null],fi=1,iA=0,ls=az[ar];r:for(;;){if(Ri&&$(Pi,1)){var _n=$(Pi,3)+2,js=S(fn,_n),No=S(xi,_n),Dl=js*No;if(!Xn(js,No,0,Ei,Pn))break r;for(Pn=Pn[0],Fn.xc=_n,hr=0;hr<Dl;++hr){var Oa=Pn[hr]>>8&65535;Pn[hr]=Oa,Oa>=fi&&(fi=Oa+1)}}if(Pi.h)break r;for(Ot=0;5>Ot;++Ot){var Gr=vI[Ot];!Ot&&0<ar&&(Gr+=1<<ar),iA<Gr&&(iA=Gr)}var zy=s(fi*ls,x),_I=fi,TI=s(_I,C);if(TI==null)var Cd=null;else e(65536>=_I),Cd=TI;var Fc=A(iA);if(Cd==null||Fc==null||zy==null){Ei.a=1;break r}var Ed=zy;for(hr=cn=0;hr<fi;++hr){var LA=Cd[hr],Ml=LA.G,Hl=LA.H,II=0,xd=1,UI=0;for(Ot=0;5>Ot;++Ot){Gr=vI[Ot],Ml[Ot]=Ed,Hl[Ot]=cn,!Ot&&0<ar&&(Gr+=1<<ar);i:{var Sd,Wy=Gr,Fd=Ei,_c=Fc,_z=Ed,Tz=cn,Xy=0,Qa=Fd.m,Iz=$(Qa,1);if(i(_c,0,0,Wy),Iz){var Uz=$(Qa,1)+1,Nz=$(Qa,1),NI=$(Qa,Nz==0?1:8);_c[NI]=1,Uz==2&&(_c[NI=$(Qa,8)]=1);var _d=1}else{var LI=A(19),OI=$(Qa,4)+4;if(19<OI){Fd.a=3;var Td=0;break i}for(Sd=0;Sd<OI;++Sd)LI[Az[Sd]]=$(Qa,3);var Yy=void 0,Tc=void 0,QI=Fd,Lz=LI,Id=Wy,RI=_c,$y=0,Ra=QI.m,PI=8,kI=s(128,x);n:for(;L(kI,0,7,Lz,19);){if($(Ra,1)){var Oz=2+2*$(Ra,3);if((Yy=2+$(Ra,Oz))>Id)break n}else Yy=Id;for(Tc=0;Tc<Id&&Yy--;){J(Ra);var DI=kI[0+(127&H(Ra))];X(Ra,Ra.u+DI.g);var ql=DI.value;if(16>ql)RI[Tc++]=ql,ql!=0&&(PI=ql);else{var Qz=ql==16,MI=ql-16,Rz=nz[MI],HI=$(Ra,rz[MI])+Rz;if(Tc+HI>Id)break n;for(var Pz=Qz?PI:0;0<HI--;)RI[Tc++]=Pz}}$y=1;break n}$y||(QI.a=3),_d=$y}(_d=_d&&!Qa.h)&&(Xy=L(_z,Tz,8,_c,Wy)),_d&&Xy!=0?Td=Xy:(Fd.a=3,Td=0)}if(Td==0)break r;if(xd&&iz[Ot]==1&&(xd=Ed[cn].g==0),II+=Ed[cn].g,cn+=Td,3>=Ot){var Ic,Jy=Fc[0];for(Ic=1;Ic<Gr;++Ic)Fc[Ic]>Jy&&(Jy=Fc[Ic]);UI+=Jy}}if(LA.nd=xd,LA.Qb=0,xd&&(LA.qb=(Ml[3][Hl[3]+0].value<<24|Ml[1][Hl[1]+0].value<<16|Ml[2][Hl[2]+0].value)>>>0,II==0&&256>Ml[0][Hl[0]+0].value&&(LA.Qb=1,LA.qb+=Ml[0][Hl[0]+0].value<<8)),LA.jc=!LA.Qb&&6>UI,LA.jc){var Ud,Ks=LA;for(Ud=0;Ud<Rn;++Ud){var Pa=Ud,ka=Ks.pd[Pa],Nd=Ks.G[0][Ks.H[0]+Pa];256<=Nd.value?(ka.g=Nd.g+256,ka.value=Nd.value):(ka.g=0,ka.value=0,Pa>>=Jt(Nd,8,ka),Pa>>=Jt(Ks.G[1][Ks.H[1]+Pa],16,ka),Pa>>=Jt(Ks.G[2][Ks.H[2]+Pa],0,ka),Jt(Ks.G[3][Ks.H[3]+Pa],24,ka))}}}Fn.vc=Pn,Fn.Wb=fi,Fn.Ya=Cd,Fn.yc=zy,gr=1;break t}gr=0}if(!(le=gr)){K.a=3;break e}if(0<Ne){if(ve.ua=1<<Ne,!k(ve.Wa,Ne)){K.a=1,le=0;break e}}else ve.ua=0;var Zy=K,qI=ue,kz=fe,e2=Zy.s,t2=e2.xc;if(Zy.c=qI,Zy.i=kz,e2.md=S(qI,t2),e2.wc=t2==0?-1:(1<<t2)-1,N){K.xb=pz;break e}if((Se=A(ue*fe))==null){K.a=1,le=0;break e}le=(le=Cn(K,Se,0,ue,fe,fe,null))&&!de.h;break e}return le?(ne!=null?ne[0]=Se:(e(Se==null),e(N)),K.$=0,N||rr(ve)):rr(ve),le}function at(d,y){var N=d.c*d.i,K=N+y+16*y;return e(d.c<=y),d.V=A(K),d.V==null?(d.Ta=null,d.Ua=0,d.a=1,0):(d.Ta=d.V,d.Ua=d.Ba+N+y,1)}function xe(d,y){var N=d.C,K=y-N,ne=d.V,le=d.Ba+d.c*N;for(e(y<=d.l.o);0<K;){var ue=16<K?16:K,fe=d.l.ma,de=d.l.width,ve=de*ue,Se=fe.ca,Ne=fe.tb+de*N,Le=d.Ta,Te=d.Ua;zt(d,ue,ne,le),nn(Le,Te,Se,Ne,ve),_r(fe,N,N+ue,Se,Ne,de),K-=ue,ne+=ue*d.c,N+=ue}e(N==y),d.C=d.Ma=y}function Ye(){this.ub=this.yd=this.td=this.Rb=0}function Je(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Vt(){this.Fb=this.Bb=this.Cb=0,this.Zb=A(4),this.Lb=A(4)}function Tr(){this.Yb=function(){var d=[];return function y(N,K,ne){for(var le=ne[K],ue=0;ue<le&&(N.push(ne.length>K+1?[]:0),!(ne.length<K+1));ue++)y(N[ue],K+1,ne)}(d,0,[3,11]),d}()}function pr(){this.jb=A(3),this.Wc=a([4,8],Tr),this.Xc=a([4,17],Tr)}function Kr(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new A(4),this.od=new A(4)}function ln(){this.ld=this.La=this.dd=this.tc=0}function Ln(){this.Na=this.la=0}function Xi(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ar(){this.ad=A(384),this.Za=0,this.Ob=A(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function On(){this.uc=this.M=this.Nb=0,this.wa=Array(new ln),this.Y=0,this.ya=Array(new Ar),this.aa=0,this.l=new ZA}function Ti(){this.y=A(16),this.f=A(8),this.ea=A(8)}function Bo(){this.cb=this.a=0,this.sc="",this.m=new te,this.Od=new Ye,this.Kc=new Je,this.ed=new Kr,this.Qa=new Vt,this.Ic=this.$c=this.Aa=0,this.D=new On,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,te),this.ia=0,this.pb=s(4,Xi),this.Pa=new pr,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ti),this.Hd=0,this.rb=Array(new Ln),this.sb=0,this.wa=Array(new ln),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ar),this.L=this.aa=0,this.gd=a([4,2],ln),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function ZA(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Co(){var d=new Bo;return d!=null&&(d.a=0,d.sc="OK",d.cb=0,d.Xb=0,xc||(xc=es)),d}function Ir(d,y,N){return d.a==0&&(d.a=y,d.sc=N,d.cb=0),0}function ya(d,y,N){return 3<=N&&d[y+0]==157&&d[y+1]==1&&d[y+2]==42}function TA(d,y){if(d==null)return 0;if(d.a=0,d.sc="OK",y==null)return Ir(d,2,"null VP8Io passed to VP8GetHeaders()");var N=y.data,K=y.w,ne=y.ha;if(4>ne)return Ir(d,7,"Truncated header.");var le=N[K+0]|N[K+1]<<8|N[K+2]<<16,ue=d.Od;if(ue.Rb=!(1&le),ue.td=le>>1&7,ue.yd=le>>4&1,ue.ub=le>>5,3<ue.td)return Ir(d,3,"Incorrect keyframe parameters.");if(!ue.yd)return Ir(d,4,"Frame not displayable.");K+=3,ne-=3;var fe=d.Kc;if(ue.Rb){if(7>ne)return Ir(d,7,"cannot parse picture header");if(!ya(N,K,ne))return Ir(d,3,"Bad code word");fe.c=16383&(N[K+4]<<8|N[K+3]),fe.Td=N[K+4]>>6,fe.i=16383&(N[K+6]<<8|N[K+5]),fe.Ud=N[K+6]>>6,K+=7,ne-=7,d.za=fe.c+15>>4,d.Ub=fe.i+15>>4,y.width=fe.c,y.height=fe.i,y.Da=0,y.j=0,y.v=0,y.va=y.width,y.o=y.height,y.da=0,y.ib=y.width,y.hb=y.height,y.U=y.width,y.T=y.height,i((le=d.Pa).jb,0,255,le.jb.length),e((le=d.Qa)!=null),le.Cb=0,le.Bb=0,le.Fb=1,i(le.Zb,0,0,le.Zb.length),i(le.Lb,0,0,le.Lb)}if(ue.ub>ne)return Ir(d,7,"bad partition length");z(le=d.m,N,K,ue.ub),K+=ue.ub,ne-=ue.ub,ue.Rb&&(fe.Ld=U(le),fe.Kd=U(le)),fe=d.Qa;var de,ve=d.Pa;if(e(le!=null),e(fe!=null),fe.Cb=U(le),fe.Cb){if(fe.Bb=U(le),U(le)){for(fe.Fb=U(le),de=0;4>de;++de)fe.Zb[de]=U(le)?V(le,7):0;for(de=0;4>de;++de)fe.Lb[de]=U(le)?V(le,6):0}if(fe.Bb)for(de=0;3>de;++de)ve.jb[de]=U(le)?Y(le,8):255}else fe.Bb=0;if(le.Ka)return Ir(d,3,"cannot parse segment header");if((fe=d.ed).zd=U(le),fe.Tb=Y(le,6),fe.wb=Y(le,3),fe.Pc=U(le),fe.Pc&&U(le)){for(ve=0;4>ve;++ve)U(le)&&(fe.vd[ve]=V(le,6));for(ve=0;4>ve;++ve)U(le)&&(fe.od[ve]=V(le,6))}if(d.L=fe.Tb==0?0:fe.zd?1:2,le.Ka)return Ir(d,3,"cannot parse filter header");var Se=ne;if(ne=de=K,K=de+Se,fe=Se,d.Xb=(1<<Y(d.m,2))-1,Se<3*(ve=d.Xb))N=7;else{for(de+=3*ve,fe-=3*ve,Se=0;Se<ve;++Se){var Ne=N[ne+0]|N[ne+1]<<8|N[ne+2]<<16;Ne>fe&&(Ne=fe),z(d.Jc[+Se],N,de,Ne),de+=Ne,fe-=Ne,ne+=3}z(d.Jc[+ve],N,de,fe),N=de<K?0:5}if(N!=0)return Ir(d,N,"cannot parse partitions");for(N=Y(de=d.m,7),ne=U(de)?V(de,4):0,K=U(de)?V(de,4):0,fe=U(de)?V(de,4):0,ve=U(de)?V(de,4):0,de=U(de)?V(de,4):0,Se=d.Qa,Ne=0;4>Ne;++Ne){if(Se.Cb){var Le=Se.Zb[Ne];Se.Fb||(Le+=N)}else{if(0<Ne){d.pb[Ne]=d.pb[0];continue}Le=N}var Te=d.pb[Ne];Te.Sc[0]=Ky[Oi(Le+ne,127)],Te.Sc[1]=Vy[Oi(Le+0,127)],Te.Eb[0]=2*Ky[Oi(Le+K,127)],Te.Eb[1]=101581*Vy[Oi(Le+fe,127)]>>16,8>Te.Eb[1]&&(Te.Eb[1]=8),Te.Qc[0]=Ky[Oi(Le+ve,117)],Te.Qc[1]=Vy[Oi(Le+de,127)],Te.lc=Le+de}if(!ue.Rb)return Ir(d,4,"Not a key frame.");for(U(le),ue=d.Pa,N=0;4>N;++N){for(ne=0;8>ne;++ne)for(K=0;3>K;++K)for(fe=0;11>fe;++fe)ve=ee(le,hz[N][ne][K][fe])?Y(le,8):cz[N][ne][K][fe],ue.Wc[N][ne].Yb[K][fe]=ve;for(ne=0;17>ne;++ne)ue.Xc[N][ne]=ue.Wc[N][dz[ne]]}return d.kc=U(le),d.kc&&(d.Bd=Y(le,8)),d.cb=1}function es(d,y,N,K,ne,le,ue){var fe=y[ne].Yb[N];for(N=0;16>ne;++ne){if(!ee(d,fe[N+0]))return ne;for(;!ee(d,fe[N+1]);)if(fe=y[++ne].Yb[0],N=0,ne==16)return 16;var de=y[ne+1].Yb;if(ee(d,fe[N+2])){var ve=d,Se=0;if(ee(ve,(Le=fe)[(Ne=N)+3]))if(ee(ve,Le[Ne+6])){for(fe=0,Ne=2*(Se=ee(ve,Le[Ne+8]))+(Le=ee(ve,Le[Ne+9+Se])),Se=0,Le=lz[Ne];Le[fe];++fe)Se+=Se+ee(ve,Le[fe]);Se+=3+(8<<Ne)}else ee(ve,Le[Ne+7])?(Se=7+2*ee(ve,165),Se+=ee(ve,145)):Se=5+ee(ve,159);else Se=ee(ve,Le[Ne+4])?3+ee(ve,Le[Ne+5]):2;fe=de[2]}else Se=1,fe=de[1];de=ue+uz[ne],0>(ve=d).b&&O(ve);var Ne,Le=ve.b,Te=(Ne=ve.Ca>>1)-(ve.I>>Le)>>31;--ve.b,ve.Ca+=Te,ve.Ca|=1,ve.I-=(Ne+1&Te)<<Le,le[de]=((Se^Te)-Te)*K[(0<ne)+0]}return 16}function Ii(d){var y=d.rb[d.sb-1];y.la=0,y.Na=0,i(d.zc,0,0,d.zc.length),d.ja=0}function ba(d,y){if(d==null)return 0;if(y==null)return Ir(d,2,"NULL VP8Io parameter in VP8Decode().");if(!d.cb&&!TA(d,y))return 0;if(e(d.cb),y.ac==null||y.ac(y)){y.ob&&(d.L=0);var N=Bd[d.L];if(d.L==2?(d.yb=0,d.zb=0):(d.yb=y.v-N>>4,d.zb=y.j-N>>4,0>d.yb&&(d.yb=0),0>d.zb&&(d.zb=0)),d.Va=y.o+15+N>>4,d.Hb=y.va+15+N>>4,d.Hb>d.za&&(d.Hb=d.za),d.Va>d.Ub&&(d.Va=d.Ub),0<d.L){var K=d.ed;for(N=0;4>N;++N){var ne;if(d.Qa.Cb){var le=d.Qa.Lb[N];d.Qa.Fb||(le+=K.Tb)}else le=K.Tb;for(ne=0;1>=ne;++ne){var ue=d.gd[N][ne],fe=le;if(K.Pc&&(fe+=K.vd[0],ne&&(fe+=K.od[0])),0<(fe=0>fe?0:63<fe?63:fe)){var de=fe;0<K.wb&&(de=4<K.wb?de>>2:de>>1)>9-K.wb&&(de=9-K.wb),1>de&&(de=1),ue.dd=de,ue.tc=2*fe+de,ue.ld=40<=fe?2:15<=fe?1:0}else ue.tc=0;ue.La=ne}}}N=0}else Ir(d,6,"Frame setup failed"),N=d.a;if(N=N==0){if(N){d.$c=0,0<d.Aa||(d.Ic=Fz);e:{N=d.Ic,K=4*(de=d.za);var ve=32*de,Se=de+1,Ne=0<d.L?de*(0<d.Aa?2:1):0,Le=(d.Aa==2?2:1)*de;if((ue=K+832+(ne=3*(16*N+Bd[d.L])/2*ve)+(le=d.Fa!=null&&0<d.Fa.length?d.Kc.c*d.Kc.i:0))!=ue)N=0;else{if(ue>d.Vb){if(d.Vb=0,d.Ec=A(ue),d.Fc=0,d.Ec==null){N=Ir(d,1,"no memory during frame initialization.");break e}d.Vb=ue}ue=d.Ec,fe=d.Fc,d.Ac=ue,d.Bc=fe,fe+=K,d.Gd=s(ve,Ti),d.Hd=0,d.rb=s(Se+1,Ln),d.sb=1,d.wa=Ne?s(Ne,ln):null,d.Y=0,d.D.Nb=0,d.D.wa=d.wa,d.D.Y=d.Y,0<d.Aa&&(d.D.Y+=de),e(!0),d.oc=ue,d.pc=fe,fe+=832,d.ya=s(Le,Ar),d.aa=0,d.D.ya=d.ya,d.D.aa=d.aa,d.Aa==2&&(d.D.aa+=de),d.R=16*de,d.B=8*de,de=(ve=Bd[d.L])*d.R,ve=ve/2*d.B,d.sa=ue,d.ta=fe+de,d.qa=d.sa,d.ra=d.ta+16*N*d.R+ve,d.Ha=d.qa,d.Ia=d.ra+8*N*d.B+ve,d.$c=0,fe+=ne,d.mb=le?ue:null,d.nb=le?fe:null,e(fe+le<=d.Fc+d.Vb),Ii(d),i(d.Ac,d.Bc,0,K),N=1}}if(N){if(y.ka=0,y.y=d.sa,y.O=d.ta,y.f=d.qa,y.N=d.ra,y.ea=d.Ha,y.Vd=d.Ia,y.fa=d.R,y.Rc=d.B,y.F=null,y.J=0,!hd){for(N=-255;255>=N;++N)mn[255+N]=0>N?-N:N;for(N=-1020;1020>=N;++N)Hs[1020+N]=-128>N?-128:127<N?127:N;for(N=-112;112>=N;++N)Ec[112+N]=-16>N?-16:15<N?15:N;for(N=-255;510>=N;++N)kl[255+N]=0>N?0:255<N?255:N;hd=1}Ql=oi,Ms=Ns,bc=Ca,ci=Eo,Zi=Yi,rn=Ba,Rl=Qr,fd=$n,Bc=Sl,_o=ss,To=Li,Ia=bi,Io=as,Pl=sd,Uo=Ur,Ua=Rt,Cc=br,eA=xn,NA[0]=Qn,NA[1]=Ui,NA[2]=is,NA[3]=Os,NA[4]=xa,NA[5]=$i,NA[6]=Qs,NA[7]=As,NA[8]=Sa,NA[9]=yi,Na[0]=Ea,Na[1]=wi,Na[2]=Ni,Na[3]=rs,Na[4]=tn,Na[5]=gn,Na[6]=Ls,qs[0]=q,qs[1]=xo,qs[2]=Rs,qs[3]=Ps,qs[4]=be,qs[5]=he,qs[6]=Re,N=1}else N=0}N&&(N=function(Te,je){for(Te.M=0;Te.M<Te.Va;++Te.M){var Qe,Fe=Te.Jc[Te.M&Te.Xb],_e=Te.m,De=Te;for(Qe=0;Qe<De.za;++Qe){var Ke=_e,qe=De,it=qe.Ac,Ze=qe.Bc+4*Qe,vt=qe.zc,et=qe.ya[qe.aa+Qe];if(qe.Qa.Bb?et.$b=ee(Ke,qe.Pa.jb[0])?2+ee(Ke,qe.Pa.jb[2]):ee(Ke,qe.Pa.jb[1]):et.$b=0,qe.kc&&(et.Ad=ee(Ke,qe.Bd)),et.Za=!ee(Ke,145)+0,et.Za){var Zt=et.Ob,sr=0;for(qe=0;4>qe;++qe){var Xt,jt=vt[0+qe];for(Xt=0;4>Xt;++Xt){jt=fz[it[Ze+Xt]][jt];for(var gr=wI[ee(Ke,jt[0])];0<gr;)gr=wI[2*gr+ee(Ke,jt[gr])];jt=-gr,it[Ze+Xt]=jt}r(Zt,sr,it,Ze,4),sr+=4,vt[0+qe]=jt}}else jt=ee(Ke,156)?ee(Ke,128)?1:3:ee(Ke,163)?2:0,et.Ob[0]=jt,i(it,Ze,jt,4),i(vt,0,jt,4);et.Dd=ee(Ke,142)?ee(Ke,114)?ee(Ke,183)?1:3:2:0}if(De.m.Ka)return Ir(Te,7,"Premature end-of-partition0 encountered.");for(;Te.ja<Te.za;++Te.ja){if(De=Fe,Ke=(_e=Te).rb[_e.sb-1],it=_e.rb[_e.sb+_e.ja],Qe=_e.ya[_e.aa+_e.ja],Ze=_e.kc?Qe.Ad:0)Ke.la=it.la=0,Qe.Za||(Ke.Na=it.Na=0),Qe.Hc=0,Qe.Gc=0,Qe.ia=0;else{var hr,Ot;if(Ke=it,it=De,Ze=_e.Pa.Xc,vt=_e.ya[_e.aa+_e.ja],et=_e.pb[vt.$b],qe=vt.ad,Zt=0,sr=_e.rb[_e.sb-1],jt=Xt=0,i(qe,Zt,0,384),vt.Za)var cn=0,Ei=Ze[3];else{gr=A(16);var fn=Ke.Na+sr.Na;if(fn=xc(it,Ze[1],fn,et.Eb,0,gr,0),Ke.Na=sr.Na=(0<fn)+0,1<fn)Ql(gr,0,qe,Zt);else{var xi=gr[0]+3>>3;for(gr=0;256>gr;gr+=16)qe[Zt+gr]=xi}cn=1,Ei=Ze[0]}var ar=15&Ke.la,Ri=15&sr.la;for(gr=0;4>gr;++gr){var Pi=1&Ri;for(xi=Ot=0;4>xi;++xi)ar=ar>>1|(Pi=(fn=xc(it,Ei,fn=Pi+(1&ar),et.Sc,cn,qe,Zt))>cn)<<7,Ot=Ot<<2|(3<fn?3:1<fn?2:qe[Zt+0]!=0),Zt+=16;ar>>=4,Ri=Ri>>1|Pi<<7,Xt=(Xt<<8|Ot)>>>0}for(Ei=ar,cn=Ri>>4,hr=0;4>hr;hr+=2){for(Ot=0,ar=Ke.la>>4+hr,Ri=sr.la>>4+hr,gr=0;2>gr;++gr){for(Pi=1&Ri,xi=0;2>xi;++xi)fn=Pi+(1&ar),ar=ar>>1|(Pi=0<(fn=xc(it,Ze[2],fn,et.Qc,0,qe,Zt)))<<3,Ot=Ot<<2|(3<fn?3:1<fn?2:qe[Zt+0]!=0),Zt+=16;ar>>=2,Ri=Ri>>1|Pi<<5}jt|=Ot<<4*hr,Ei|=ar<<4<<hr,cn|=(240&Ri)<<hr}Ke.la=Ei,sr.la=cn,vt.Hc=Xt,vt.Gc=jt,vt.ia=43690&jt?0:et.ia,Ze=!(Xt|jt)}if(0<_e.L&&(_e.wa[_e.Y+_e.ja]=_e.gd[Qe.$b][Qe.Za],_e.wa[_e.Y+_e.ja].La|=!Ze),De.Ka)return Ir(Te,7,"Premature end-of-file encountered.")}if(Ii(Te),_e=je,De=1,Qe=(Fe=Te).D,Ke=0<Fe.L&&Fe.M>=Fe.zb&&Fe.M<=Fe.Va,Fe.Aa==0)e:{if(Qe.M=Fe.M,Qe.uc=Ke,gc(Fe,Qe),De=1,Qe=(Ot=Fe.D).Nb,Ke=(jt=Bd[Fe.L])*Fe.R,it=jt/2*Fe.B,gr=16*Qe*Fe.R,xi=8*Qe*Fe.B,Ze=Fe.sa,vt=Fe.ta-Ke+gr,et=Fe.qa,qe=Fe.ra-it+xi,Zt=Fe.Ha,sr=Fe.Ia-it+xi,Ri=(ar=Ot.M)==0,Xt=ar>=Fe.Va-1,Fe.Aa==2&&gc(Fe,Ot),Ot.uc)for(Pi=(fn=Fe).D.M,e(fn.D.uc),Ot=fn.yb;Ot<fn.Hb;++Ot){cn=Ot,Ei=Pi;var Fn=(Pn=(Gr=fn).D).Nb;hr=Gr.R;var Pn=Pn.wa[Pn.Y+cn],fi=Gr.sa,iA=Gr.ta+16*Fn*hr+16*cn,ls=Pn.dd,_n=Pn.tc;if(_n!=0)if(e(3<=_n),Gr.L==1)0<cn&&Ua(fi,iA,hr,_n+4),Pn.La&&eA(fi,iA,hr,_n),0<Ei&&Uo(fi,iA,hr,_n+4),Pn.La&&Cc(fi,iA,hr,_n);else{var js=Gr.B,No=Gr.qa,Dl=Gr.ra+8*Fn*js+8*cn,Oa=Gr.Ha,Gr=Gr.Ia+8*Fn*js+8*cn;Fn=Pn.ld,0<cn&&(fd(fi,iA,hr,_n+4,ls,Fn),_o(No,Dl,Oa,Gr,js,_n+4,ls,Fn)),Pn.La&&(Ia(fi,iA,hr,_n,ls,Fn),Pl(No,Dl,Oa,Gr,js,_n,ls,Fn)),0<Ei&&(Rl(fi,iA,hr,_n+4,ls,Fn),Bc(No,Dl,Oa,Gr,js,_n+4,ls,Fn)),Pn.La&&(To(fi,iA,hr,_n,ls,Fn),Io(No,Dl,Oa,Gr,js,_n,ls,Fn))}}if(Fe.ia&&alert("todo:DitherRow"),_e.put!=null){if(Ot=16*ar,ar=16*(ar+1),Ri?(_e.y=Fe.sa,_e.O=Fe.ta+gr,_e.f=Fe.qa,_e.N=Fe.ra+xi,_e.ea=Fe.Ha,_e.W=Fe.Ia+xi):(Ot-=jt,_e.y=Ze,_e.O=vt,_e.f=et,_e.N=qe,_e.ea=Zt,_e.W=sr),Xt||(ar-=jt),ar>_e.o&&(ar=_e.o),_e.F=null,_e.J=null,Fe.Fa!=null&&0<Fe.Fa.length&&Ot<ar&&(_e.J=dc(Fe,_e,Ot,ar-Ot),_e.F=Fe.mb,_e.F==null&&_e.F.length==0)){De=Ir(Fe,3,"Could not decode alpha data.");break e}Ot<_e.j&&(jt=_e.j-Ot,Ot=_e.j,e(!(1&jt)),_e.O+=Fe.R*jt,_e.N+=Fe.B*(jt>>1),_e.W+=Fe.B*(jt>>1),_e.F!=null&&(_e.J+=_e.width*jt)),Ot<ar&&(_e.O+=_e.v,_e.N+=_e.v>>1,_e.W+=_e.v>>1,_e.F!=null&&(_e.J+=_e.v),_e.ka=Ot-_e.j,_e.U=_e.va-_e.v,_e.T=ar-Ot,De=_e.put(_e))}Qe+1!=Fe.Ic||Xt||(r(Fe.sa,Fe.ta-Ke,Ze,vt+16*Fe.R,Ke),r(Fe.qa,Fe.ra-it,et,qe+8*Fe.B,it),r(Fe.Ha,Fe.Ia-it,Zt,sr+8*Fe.B,it))}if(!De)return Ir(Te,6,"Output aborted.")}return 1}(d,y)),y.bc!=null&&y.bc(y),N&=1}return N?(d.cb=0,N):0}function Yn(d,y,N,K,ne){ne=d[y+N+32*K]+(ne>>3),d[y+N+32*K]=-256&ne?0>ne?0:255:ne}function ts(d,y,N,K,ne,le){Yn(d,y,0,N,K+ne),Yn(d,y,1,N,K+le),Yn(d,y,2,N,K-le),Yn(d,y,3,N,K-ne)}function En(d){return(20091*d>>16)+d}function Us(d,y,N,K){var ne,le=0,ue=A(16);for(ne=0;4>ne;++ne){var fe=d[y+0]+d[y+8],de=d[y+0]-d[y+8],ve=(35468*d[y+4]>>16)-En(d[y+12]),Se=En(d[y+4])+(35468*d[y+12]>>16);ue[le+0]=fe+Se,ue[le+1]=de+ve,ue[le+2]=de-ve,ue[le+3]=fe-Se,le+=4,y++}for(ne=le=0;4>ne;++ne)fe=(d=ue[le+0]+4)+ue[le+8],de=d-ue[le+8],ve=(35468*ue[le+4]>>16)-En(ue[le+12]),Yn(N,K,0,0,fe+(Se=En(ue[le+4])+(35468*ue[le+12]>>16))),Yn(N,K,1,0,de+ve),Yn(N,K,2,0,de-ve),Yn(N,K,3,0,fe-Se),le++,K+=32}function Ba(d,y,N,K){var ne=d[y+0]+4,le=35468*d[y+4]>>16,ue=En(d[y+4]),fe=35468*d[y+1]>>16;ts(N,K,0,ne+ue,d=En(d[y+1]),fe),ts(N,K,1,ne+le,d,fe),ts(N,K,2,ne-le,d,fe),ts(N,K,3,ne-ue,d,fe)}function Ns(d,y,N,K,ne){Us(d,y,N,K),ne&&Us(d,y+16,N,K+4)}function Ca(d,y,N,K){Ms(d,y+0,N,K,1),Ms(d,y+32,N,K+128,1)}function Eo(d,y,N,K){var ne;for(d=d[y+0]+4,ne=0;4>ne;++ne)for(y=0;4>y;++y)Yn(N,K,y,ne,d)}function Yi(d,y,N,K){d[y+0]&&ci(d,y+0,N,K),d[y+16]&&ci(d,y+16,N,K+4),d[y+32]&&ci(d,y+32,N,K+128),d[y+48]&&ci(d,y+48,N,K+128+4)}function oi(d,y,N,K){var ne,le=A(16);for(ne=0;4>ne;++ne){var ue=d[y+0+ne]+d[y+12+ne],fe=d[y+4+ne]+d[y+8+ne],de=d[y+4+ne]-d[y+8+ne],ve=d[y+0+ne]-d[y+12+ne];le[0+ne]=ue+fe,le[8+ne]=ue-fe,le[4+ne]=ve+de,le[12+ne]=ve-de}for(ne=0;4>ne;++ne)ue=(d=le[0+4*ne]+3)+le[3+4*ne],fe=le[1+4*ne]+le[2+4*ne],de=le[1+4*ne]-le[2+4*ne],ve=d-le[3+4*ne],N[K+0]=ue+fe>>3,N[K+16]=ve+de>>3,N[K+32]=ue-fe>>3,N[K+48]=ve-de>>3,K+=64}function li(d,y,N){var K,ne=y-32,le=Qi,ue=255-d[ne-1];for(K=0;K<N;++K){var fe,de=le,ve=ue+d[y-1];for(fe=0;fe<N;++fe)d[y+fe]=de[ve+d[ne+fe]];y+=32}}function Ui(d,y){li(d,y,4)}function xo(d,y){li(d,y,8)}function wi(d,y){li(d,y,16)}function Ni(d,y){var N;for(N=0;16>N;++N)r(d,y+32*N,d,y-32,16)}function rs(d,y){var N;for(N=16;0<N;--N)i(d,y,d[y-1],16),y+=32}function ns(d,y,N){var K;for(K=0;16>K;++K)i(y,N+32*K,d,16)}function Ea(d,y){var N,K=16;for(N=0;16>N;++N)K+=d[y-1+32*N]+d[y+N-32];ns(K>>5,d,y)}function tn(d,y){var N,K=8;for(N=0;16>N;++N)K+=d[y-1+32*N];ns(K>>4,d,y)}function gn(d,y){var N,K=8;for(N=0;16>N;++N)K+=d[y+N-32];ns(K>>4,d,y)}function Ls(d,y){ns(128,d,y)}function Bt(d,y,N){return d+2*y+N+2>>2}function is(d,y){var N,K=y-32;for(K=new Uint8Array([Bt(d[K-1],d[K+0],d[K+1]),Bt(d[K+0],d[K+1],d[K+2]),Bt(d[K+1],d[K+2],d[K+3]),Bt(d[K+2],d[K+3],d[K+4])]),N=0;4>N;++N)r(d,y+32*N,K,0,K.length)}function Os(d,y){var N=d[y-1],K=d[y-1+32],ne=d[y-1+64],le=d[y-1+96];re(d,y+0,16843009*Bt(d[y-1-32],N,K)),re(d,y+32,16843009*Bt(N,K,ne)),re(d,y+64,16843009*Bt(K,ne,le)),re(d,y+96,16843009*Bt(ne,le,le))}function Qn(d,y){var N,K=4;for(N=0;4>N;++N)K+=d[y+N-32]+d[y-1+32*N];for(K>>=3,N=0;4>N;++N)i(d,y+32*N,K,4)}function xa(d,y){var N=d[y-1+0],K=d[y-1+32],ne=d[y-1+64],le=d[y-1-32],ue=d[y+0-32],fe=d[y+1-32],de=d[y+2-32],ve=d[y+3-32];d[y+0+96]=Bt(K,ne,d[y-1+96]),d[y+1+96]=d[y+0+64]=Bt(N,K,ne),d[y+2+96]=d[y+1+64]=d[y+0+32]=Bt(le,N,K),d[y+3+96]=d[y+2+64]=d[y+1+32]=d[y+0+0]=Bt(ue,le,N),d[y+3+64]=d[y+2+32]=d[y+1+0]=Bt(fe,ue,le),d[y+3+32]=d[y+2+0]=Bt(de,fe,ue),d[y+3+0]=Bt(ve,de,fe)}function Qs(d,y){var N=d[y+1-32],K=d[y+2-32],ne=d[y+3-32],le=d[y+4-32],ue=d[y+5-32],fe=d[y+6-32],de=d[y+7-32];d[y+0+0]=Bt(d[y+0-32],N,K),d[y+1+0]=d[y+0+32]=Bt(N,K,ne),d[y+2+0]=d[y+1+32]=d[y+0+64]=Bt(K,ne,le),d[y+3+0]=d[y+2+32]=d[y+1+64]=d[y+0+96]=Bt(ne,le,ue),d[y+3+32]=d[y+2+64]=d[y+1+96]=Bt(le,ue,fe),d[y+3+64]=d[y+2+96]=Bt(ue,fe,de),d[y+3+96]=Bt(fe,de,de)}function $i(d,y){var N=d[y-1+0],K=d[y-1+32],ne=d[y-1+64],le=d[y-1-32],ue=d[y+0-32],fe=d[y+1-32],de=d[y+2-32],ve=d[y+3-32];d[y+0+0]=d[y+1+64]=le+ue+1>>1,d[y+1+0]=d[y+2+64]=ue+fe+1>>1,d[y+2+0]=d[y+3+64]=fe+de+1>>1,d[y+3+0]=de+ve+1>>1,d[y+0+96]=Bt(ne,K,N),d[y+0+64]=Bt(K,N,le),d[y+0+32]=d[y+1+96]=Bt(N,le,ue),d[y+1+32]=d[y+2+96]=Bt(le,ue,fe),d[y+2+32]=d[y+3+96]=Bt(ue,fe,de),d[y+3+32]=Bt(fe,de,ve)}function As(d,y){var N=d[y+0-32],K=d[y+1-32],ne=d[y+2-32],le=d[y+3-32],ue=d[y+4-32],fe=d[y+5-32],de=d[y+6-32],ve=d[y+7-32];d[y+0+0]=N+K+1>>1,d[y+1+0]=d[y+0+64]=K+ne+1>>1,d[y+2+0]=d[y+1+64]=ne+le+1>>1,d[y+3+0]=d[y+2+64]=le+ue+1>>1,d[y+0+32]=Bt(N,K,ne),d[y+1+32]=d[y+0+96]=Bt(K,ne,le),d[y+2+32]=d[y+1+96]=Bt(ne,le,ue),d[y+3+32]=d[y+2+96]=Bt(le,ue,fe),d[y+3+64]=Bt(ue,fe,de),d[y+3+96]=Bt(fe,de,ve)}function yi(d,y){var N=d[y-1+0],K=d[y-1+32],ne=d[y-1+64],le=d[y-1+96];d[y+0+0]=N+K+1>>1,d[y+2+0]=d[y+0+32]=K+ne+1>>1,d[y+2+32]=d[y+0+64]=ne+le+1>>1,d[y+1+0]=Bt(N,K,ne),d[y+3+0]=d[y+1+32]=Bt(K,ne,le),d[y+3+32]=d[y+1+64]=Bt(ne,le,le),d[y+3+64]=d[y+2+64]=d[y+0+96]=d[y+1+96]=d[y+2+96]=d[y+3+96]=le}function Sa(d,y){var N=d[y-1+0],K=d[y-1+32],ne=d[y-1+64],le=d[y-1+96],ue=d[y-1-32],fe=d[y+0-32],de=d[y+1-32],ve=d[y+2-32];d[y+0+0]=d[y+2+32]=N+ue+1>>1,d[y+0+32]=d[y+2+64]=K+N+1>>1,d[y+0+64]=d[y+2+96]=ne+K+1>>1,d[y+0+96]=le+ne+1>>1,d[y+3+0]=Bt(fe,de,ve),d[y+2+0]=Bt(ue,fe,de),d[y+1+0]=d[y+3+32]=Bt(N,ue,fe),d[y+1+32]=d[y+3+64]=Bt(K,N,ue),d[y+1+64]=d[y+3+96]=Bt(ne,K,N),d[y+1+96]=Bt(le,ne,K)}function Rs(d,y){var N;for(N=0;8>N;++N)r(d,y+32*N,d,y-32,8)}function Ps(d,y){var N;for(N=0;8>N;++N)i(d,y,d[y-1],8),y+=32}function IA(d,y,N){var K;for(K=0;8>K;++K)i(y,N+32*K,d,8)}function q(d,y){var N,K=8;for(N=0;8>N;++N)K+=d[y+N-32]+d[y-1+32*N];IA(K>>4,d,y)}function he(d,y){var N,K=4;for(N=0;8>N;++N)K+=d[y+N-32];IA(K>>3,d,y)}function be(d,y){var N,K=4;for(N=0;8>N;++N)K+=d[y-1+32*N];IA(K>>3,d,y)}function Re(d,y){IA(128,d,y)}function Ct(d,y,N){var K=d[y-N],ne=d[y+0],le=3*(ne-K)+Dy[1020+d[y-2*N]-d[y+N]],ue=dd[112+(le+4>>3)];d[y-N]=Qi[255+K+dd[112+(le+3>>3)]],d[y+0]=Qi[255+ne-ue]}function ft(d,y,N,K){var ne=d[y+0],le=d[y+N];return rA[255+d[y-2*N]-d[y-N]]>K||rA[255+le-ne]>K}function Ht(d,y,N,K){return 4*rA[255+d[y-N]-d[y+0]]+rA[255+d[y-2*N]-d[y+N]]<=K}function Dt(d,y,N,K,ne){var le=d[y-3*N],ue=d[y-2*N],fe=d[y-N],de=d[y+0],ve=d[y+N],Se=d[y+2*N],Ne=d[y+3*N];return 4*rA[255+fe-de]+rA[255+ue-ve]>K?0:rA[255+d[y-4*N]-le]<=ne&&rA[255+le-ue]<=ne&&rA[255+ue-fe]<=ne&&rA[255+Ne-Se]<=ne&&rA[255+Se-ve]<=ne&&rA[255+ve-de]<=ne}function Ur(d,y,N,K){var ne=2*K+1;for(K=0;16>K;++K)Ht(d,y+K,N,ne)&&Ct(d,y+K,N)}function Rt(d,y,N,K){var ne=2*K+1;for(K=0;16>K;++K)Ht(d,y+K*N,1,ne)&&Ct(d,y+K*N,1)}function br(d,y,N,K){var ne;for(ne=3;0<ne;--ne)Ur(d,y+=4*N,N,K)}function xn(d,y,N,K){var ne;for(ne=3;0<ne;--ne)Rt(d,y+=4,N,K)}function cr(d,y,N,K,ne,le,ue,fe){for(le=2*le+1;0<ne--;){if(Dt(d,y,N,le,ue))if(ft(d,y,N,fe))Ct(d,y,N);else{var de=d,ve=y,Se=N,Ne=de[ve-2*Se],Le=de[ve-Se],Te=de[ve+0],je=de[ve+Se],Qe=de[ve+2*Se],Fe=27*(De=Dy[1020+3*(Te-Le)+Dy[1020+Ne-je]])+63>>7,_e=18*De+63>>7,De=9*De+63>>7;de[ve-3*Se]=Qi[255+de[ve-3*Se]+De],de[ve-2*Se]=Qi[255+Ne+_e],de[ve-Se]=Qi[255+Le+Fe],de[ve+0]=Qi[255+Te-Fe],de[ve+Se]=Qi[255+je-_e],de[ve+2*Se]=Qi[255+Qe-De]}y+=K}}function fr(d,y,N,K,ne,le,ue,fe){for(le=2*le+1;0<ne--;){if(Dt(d,y,N,le,ue))if(ft(d,y,N,fe))Ct(d,y,N);else{var de=d,ve=y,Se=N,Ne=de[ve-Se],Le=de[ve+0],Te=de[ve+Se],je=dd[112+((Qe=3*(Le-Ne))+4>>3)],Qe=dd[112+(Qe+3>>3)],Fe=je+1>>1;de[ve-2*Se]=Qi[255+de[ve-2*Se]+Fe],de[ve-Se]=Qi[255+Ne+Qe],de[ve+0]=Qi[255+Le-je],de[ve+Se]=Qi[255+Te-Fe]}y+=K}}function Qr(d,y,N,K,ne,le){cr(d,y,N,1,16,K,ne,le)}function $n(d,y,N,K,ne,le){cr(d,y,1,N,16,K,ne,le)}function Li(d,y,N,K,ne,le){var ue;for(ue=3;0<ue;--ue)fr(d,y+=4*N,N,1,16,K,ne,le)}function bi(d,y,N,K,ne,le){var ue;for(ue=3;0<ue;--ue)fr(d,y+=4,1,N,16,K,ne,le)}function Sl(d,y,N,K,ne,le,ue,fe){cr(d,y,ne,1,8,le,ue,fe),cr(N,K,ne,1,8,le,ue,fe)}function ss(d,y,N,K,ne,le,ue,fe){cr(d,y,1,ne,8,le,ue,fe),cr(N,K,1,ne,8,le,ue,fe)}function as(d,y,N,K,ne,le,ue,fe){fr(d,y+4*ne,ne,1,8,le,ue,fe),fr(N,K+4*ne,ne,1,8,le,ue,fe)}function sd(d,y,N,K,ne,le,ue,fe){fr(d,y+4,1,ne,8,le,ue,fe),fr(N,K+4,1,ne,8,le,ue,fe)}function Fl(){this.ba=new yr,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Kt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function cc(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function fc(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ad(){this.ua=0,this.Wa=new I,this.vb=new I,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new C,this.yc=new x}function Py(){this.xb=this.a=0,this.l=new ZA,this.ca=new yr,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new F,this.Pb=0,this.wd=new F,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ad,this.ab=0,this.gc=s(4,fc),this.Oc=0}function _l(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ZA,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function So(d,y,N,K,ne,le,ue){for(d=d==null?0:d[y+0],y=0;y<ue;++y)ne[le+y]=d+N[K+y]&255,d=ne[le+y]}function hc(d,y,N,K,ne,le,ue){var fe;if(d==null)So(null,null,N,K,ne,le,ue);else for(fe=0;fe<ue;++fe)ne[le+fe]=d[y+fe]+N[K+fe]&255}function Fa(d,y,N,K,ne,le,ue){if(d==null)So(null,null,N,K,ne,le,ue);else{var fe,de=d[y+0],ve=de,Se=de;for(fe=0;fe<ue;++fe)ve=Se+(de=d[y+fe])-ve,Se=N[K+fe]+(-256&ve?0>ve?0:255:ve)&255,ve=de,ne[le+fe]=Se}}function dc(d,y,N,K){var ne=y.width,le=y.o;if(e(d!=null&&y!=null),0>N||0>=K||N+K>le)return null;if(!d.Cc){if(d.ga==null){var ue;if(d.ga=new _l,(ue=d.ga==null)||(ue=y.width*y.o,e(d.Gb.length==0),d.Gb=A(ue),d.Uc=0,d.Gb==null?ue=0:(d.mb=d.Gb,d.nb=d.Uc,d.rc=null,ue=1),ue=!ue),!ue){ue=d.ga;var fe=d.Fa,de=d.P,ve=d.qc,Se=d.mb,Ne=d.nb,Le=de+1,Te=ve-1,je=ue.l;if(e(fe!=null&&Se!=null&&y!=null),La[0]=null,La[1]=So,La[2]=hc,La[3]=Fa,ue.ca=Se,ue.tb=Ne,ue.c=y.width,ue.i=y.height,e(0<ue.c&&0<ue.i),1>=ve)y=0;else if(ue.$a=fe[de+0]>>0&3,ue.Z=fe[de+0]>>2&3,ue.Lc=fe[de+0]>>4&3,de=fe[de+0]>>6&3,0>ue.$a||1<ue.$a||4<=ue.Z||1<ue.Lc||de)y=0;else if(je.put=jr,je.ac=Fr,je.bc=dn,je.ma=ue,je.width=y.width,je.height=y.height,je.Da=y.Da,je.v=y.v,je.va=y.va,je.j=y.j,je.o=y.o,ue.$a)e:{e(ue.$a==1),y=pn();t:for(;;){if(y==null){y=0;break e}if(e(ue!=null),ue.mc=y,y.c=ue.c,y.i=ue.i,y.l=ue.l,y.l.ma=ue,y.l.width=ue.c,y.l.height=ue.i,y.a=0,ie(y.m,fe,Le,Te),!Xn(ue.c,ue.i,1,y,null)||(y.ab==1&&y.gc[0].hc==3&&Wn(y.s)?(ue.ic=1,fe=y.c*y.i,y.Ta=null,y.Ua=0,y.V=A(fe),y.Ba=0,y.V==null?(y.a=1,y=0):y=1):(ue.ic=0,y=at(y,ue.c)),!y))break t;y=1;break e}ue.mc=null,y=0}else y=Te>=ue.c*ue.i;ue=!y}if(ue)return null;d.ga.Lc!=1?d.Ga=0:K=le-N}e(d.ga!=null),e(N+K<=le);e:{if(y=(fe=d.ga).c,le=fe.l.o,fe.$a==0){if(Le=d.rc,Te=d.Vc,je=d.Fa,de=d.P+1+N*y,ve=d.mb,Se=d.nb+N*y,e(de<=d.P+d.qc),fe.Z!=0)for(e(La[fe.Z]!=null),ue=0;ue<K;++ue)La[fe.Z](Le,Te,je,de,ve,Se,y),Le=ve,Te=Se,Se+=y,de+=y;else for(ue=0;ue<K;++ue)r(ve,Se,je,de,y),Le=ve,Te=Se,Se+=y,de+=y;d.rc=Le,d.Vc=Te}else{if(e(fe.mc!=null),y=N+K,e((ue=fe.mc)!=null),e(y<=ue.i),ue.C>=y)y=1;else if(fe.ic||Ie(),fe.ic){fe=ue.V,Le=ue.Ba,Te=ue.c;var Qe=ue.i,Fe=(je=1,de=ue.$/Te,ve=ue.$%Te,Se=ue.m,Ne=ue.s,ue.$),_e=Te*Qe,De=Te*y,Ke=Ne.wc,qe=Fe<De?ir(Ne,ve,de):null;e(Fe<=_e),e(y<=Qe),e(Wn(Ne));t:for(;;){for(;!Se.h&&Fe<De;){if(ve&Ke||(qe=ir(Ne,ve,de)),e(qe!=null),J(Se),256>(Qe=nr(qe.G[0],qe.H[0],Se)))fe[Le+Fe]=Qe,++Fe,++ve>=Te&&(ve=0,++de<=y&&!(de%16)&&Bn(ue,de));else{if(!(280>Qe)){je=0;break t}Qe=bn(Qe-256,Se);var it,Ze=nr(qe.G[4],qe.H[4],Se);if(J(Se),!(Fe>=(Ze=zn(Te,Ze=bn(Ze,Se)))&&_e-Fe>=Qe)){je=0;break t}for(it=0;it<Qe;++it)fe[Le+Fe+it]=fe[Le+Fe+it-Ze];for(Fe+=Qe,ve+=Qe;ve>=Te;)ve-=Te,++de<=y&&!(de%16)&&Bn(ue,de);Fe<De&&ve&Ke&&(qe=ir(Ne,ve,de))}e(Se.h==G(Se))}Bn(ue,de>y?y:de);break t}!je||Se.h&&Fe<_e?(je=0,ue.a=Se.h?5:3):ue.$=Fe,y=je}else y=Cn(ue,ue.V,ue.Ba,ue.c,ue.i,y,xe);if(!y){K=0;break e}}N+K>=le&&(d.Cc=1),K=1}if(!K)return null;if(d.Cc&&((K=d.ga)!=null&&(K.mc=null),d.ga=null,0<d.Ga))return alert("todo:WebPDequantizeLevels"),null}return d.nb+N*ne}function _(d,y,N,K,ne,le){for(;0<ne--;){var ue,fe=d,de=y+(N?1:0),ve=d,Se=y+(N?0:3);for(ue=0;ue<K;++ue){var Ne=ve[Se+4*ue];Ne!=255&&(Ne*=32897,fe[de+4*ue+0]=fe[de+4*ue+0]*Ne>>23,fe[de+4*ue+1]=fe[de+4*ue+1]*Ne>>23,fe[de+4*ue+2]=fe[de+4*ue+2]*Ne>>23)}y+=le}}function se(d,y,N,K,ne){for(;0<K--;){var le;for(le=0;le<N;++le){var ue=d[y+2*le+0],fe=15&(ve=d[y+2*le+1]),de=4369*fe,ve=(240&ve|ve>>4)*de>>16;d[y+2*le+0]=(240&ue|ue>>4)*de>>16&240|(15&ue|ue<<4)*de>>16>>4&15,d[y+2*le+1]=240&ve|fe}y+=ne}}function we(d,y,N,K,ne,le,ue,fe){var de,ve,Se=255;for(ve=0;ve<ne;++ve){for(de=0;de<K;++de){var Ne=d[y+de];le[ue+4*de]=Ne,Se&=Ne}y+=N,ue+=fe}return Se!=255}function Ce(d,y,N,K,ne){var le;for(le=0;le<ne;++le)N[K+le]=d[y+le]>>8}function Ie(){tA=_,Br=se,Cr=we,nn=Ce}function Pe(d,y,N){j[d]=function(K,ne,le,ue,fe,de,ve,Se,Ne,Le,Te,je,Qe,Fe,_e,De,Ke){var qe,it=Ke-1>>1,Ze=fe[de+0]|ve[Se+0]<<16,vt=Ne[Le+0]|Te[je+0]<<16;e(K!=null);var et=3*Ze+vt+131074>>2;for(y(K[ne+0],255&et,et>>16,Qe,Fe),le!=null&&(et=3*vt+Ze+131074>>2,y(le[ue+0],255&et,et>>16,_e,De)),qe=1;qe<=it;++qe){var Zt=fe[de+qe]|ve[Se+qe]<<16,sr=Ne[Le+qe]|Te[je+qe]<<16,Xt=Ze+Zt+vt+sr+524296,jt=Xt+2*(Zt+vt)>>3;et=jt+Ze>>1,Ze=(Xt=Xt+2*(Ze+sr)>>3)+Zt>>1,y(K[ne+2*qe-1],255&et,et>>16,Qe,Fe+(2*qe-1)*N),y(K[ne+2*qe-0],255&Ze,Ze>>16,Qe,Fe+(2*qe-0)*N),le!=null&&(et=Xt+vt>>1,Ze=jt+sr>>1,y(le[ue+2*qe-1],255&et,et>>16,_e,De+(2*qe-1)*N),y(le[ue+2*qe+0],255&Ze,Ze>>16,_e,De+(2*qe+0)*N)),Ze=Zt,vt=sr}1&Ke||(et=3*Ze+vt+131074>>2,y(K[ne+Ke-1],255&et,et>>16,Qe,Fe+(Ke-1)*N),le!=null&&(et=3*vt+Ze+131074>>2,y(le[ue+Ke-1],255&et,et>>16,_e,De+(Ke-1)*N)))}}function Xe(){nA[pd]=gz,nA[gd]=bI,nA[gI]=mz,nA[md]=BI,nA[vd]=CI,nA[My]=EI,nA[mI]=vz,nA[Hy]=bI,nA[qy]=BI,nA[wd]=CI,nA[jy]=EI}function nt(d){return d&-16384?0>d?0:255:d>>wz}function gt(d,y){return nt((19077*d>>8)+(26149*y>>8)-14234)}function Lt(d,y,N){return nt((19077*d>>8)-(6419*y>>8)-(13320*N>>8)+8708)}function Ut(d,y){return nt((19077*d>>8)+(33050*y>>8)-17685)}function Wt(d,y,N,K,ne){K[ne+0]=gt(d,N),K[ne+1]=Lt(d,y,N),K[ne+2]=Ut(d,y)}function Rr(d,y,N,K,ne){K[ne+0]=Ut(d,y),K[ne+1]=Lt(d,y,N),K[ne+2]=gt(d,N)}function Vr(d,y,N,K,ne){var le=Lt(d,y,N);y=le<<3&224|Ut(d,y)>>3,K[ne+0]=248>(d,N)|le>>5,K[ne+1]=y}function un(d,y,N,K,ne){var le=240&Ut(d,y)|15;K[ne+0]=240>(d,N)|Lt(d,y,N)>>4,K[ne+1]=le}function Jn(d,y,N,K,ne){K[ne+0]=255,Wt(d,y,N,K,ne+1)}function Sn(d,y,N,K,ne){Rr(d,y,N,K,ne),K[ne+3]=255}function UA(d,y,N,K,ne){Wt(d,y,N,K,ne),K[ne+3]=255}function Oi(d,y){return 0>d?0:d>y?y:d}function os(d,y,N){j[d]=function(K,ne,le,ue,fe,de,ve,Se,Ne){for(var Le=Se+(-2&Ne)*N;Se!=Le;)y(K[ne+0],le[ue+0],fe[de+0],ve,Se),y(K[ne+1],le[ue+0],fe[de+0],ve,Se+N),ne+=2,++ue,++de,Se+=2*N;1&Ne&&y(K[ne+0],le[ue+0],fe[de+0],ve,Se)}}function od(d,y,N){return N==0?d==0?y==0?6:5:y==0?4:0:N}function pc(d,y,N,K,ne){switch(d>>>30){case 3:Ms(y,N,K,ne,0);break;case 2:rn(y,N,K,ne);break;case 1:ci(y,N,K,ne)}}function gc(d,y){var N,K,ne=y.M,le=y.Nb,ue=d.oc,fe=d.pc+40,de=d.oc,ve=d.pc+584,Se=d.oc,Ne=d.pc+600;for(N=0;16>N;++N)ue[fe+32*N-1]=129;for(N=0;8>N;++N)de[ve+32*N-1]=129,Se[Ne+32*N-1]=129;for(0<ne?ue[fe-1-32]=de[ve-1-32]=Se[Ne-1-32]=129:(i(ue,fe-32-1,127,21),i(de,ve-32-1,127,9),i(Se,Ne-32-1,127,9)),K=0;K<d.za;++K){var Le=y.ya[y.aa+K];if(0<K){for(N=-1;16>N;++N)r(ue,fe+32*N-4,ue,fe+32*N+12,4);for(N=-1;8>N;++N)r(de,ve+32*N-4,de,ve+32*N+4,4),r(Se,Ne+32*N-4,Se,Ne+32*N+4,4)}var Te=d.Gd,je=d.Hd+K,Qe=Le.ad,Fe=Le.Hc;if(0<ne&&(r(ue,fe-32,Te[je].y,0,16),r(de,ve-32,Te[je].f,0,8),r(Se,Ne-32,Te[je].ea,0,8)),Le.Za){var _e=ue,De=fe-32+16;for(0<ne&&(K>=d.za-1?i(_e,De,Te[je].y[15],4):r(_e,De,Te[je+1].y,0,4)),N=0;4>N;N++)_e[De+128+N]=_e[De+256+N]=_e[De+384+N]=_e[De+0+N];for(N=0;16>N;++N,Fe<<=2)_e=ue,De=fe+SI[N],NA[Le.Ob[N]](_e,De),pc(Fe,Qe,16*+N,_e,De)}else if(_e=od(K,ne,Le.Ob[0]),Na[_e](ue,fe),Fe!=0)for(N=0;16>N;++N,Fe<<=2)pc(Fe,Qe,16*+N,ue,fe+SI[N]);for(N=Le.Gc,_e=od(K,ne,Le.Dd),qs[_e](de,ve),qs[_e](Se,Ne),Fe=Qe,_e=de,De=ve,255&(Le=N>>0)&&(170&Le?bc(Fe,256,_e,De):Zi(Fe,256,_e,De)),Le=Se,Fe=Ne,255&(N>>=8)&&(170&N?bc(Qe,320,Le,Fe):Zi(Qe,320,Le,Fe)),ne<d.Ub-1&&(r(Te[je].y,0,ue,fe+480,16),r(Te[je].f,0,de,ve+224,8),r(Te[je].ea,0,Se,Ne+224,8)),N=8*le*d.B,Te=d.sa,je=d.ta+16*K+16*le*d.R,Qe=d.qa,Le=d.ra+8*K+N,Fe=d.Ha,_e=d.Ia+8*K+N,N=0;16>N;++N)r(Te,je+N*d.R,ue,fe+32*N,16);for(N=0;8>N;++N)r(Qe,Le+N*d.B,de,ve+32*N,8),r(Fe,_e+N*d.B,Se,Ne+32*N,8)}}function Tl(d,y,N,K,ne,le,ue,fe,de){var ve=[0],Se=[0],Ne=0,Le=de!=null?de.kd:0,Te=de??new cc;if(d==null||12>N)return 7;Te.data=d,Te.w=y,Te.ha=N,y=[y],N=[N],Te.gb=[Te.gb];e:{var je=y,Qe=N,Fe=Te.gb;if(e(d!=null),e(Qe!=null),e(Fe!=null),Fe[0]=0,12<=Qe[0]&&!t(d,je[0],"RIFF")){if(t(d,je[0]+8,"WEBP")){Fe=3;break e}var _e=me(d,je[0]+4);if(12>_e||4294967286<_e){Fe=3;break e}if(Le&&_e>Qe[0]-8){Fe=7;break e}Fe[0]=_e,je[0]+=12,Qe[0]-=12}Fe=0}if(Fe!=0)return Fe;for(_e=0<Te.gb[0],N=N[0];;){e:{var De=d;Qe=y,Fe=N;var Ke=ve,qe=Se,it=je=[0];if((et=Ne=[Ne])[0]=0,8>Fe[0])Fe=7;else{if(!t(De,Qe[0],"VP8X")){if(me(De,Qe[0]+4)!=10){Fe=3;break e}if(18>Fe[0]){Fe=7;break e}var Ze=me(De,Qe[0]+8),vt=1+Z(De,Qe[0]+12);if(2147483648<=vt*(De=1+Z(De,Qe[0]+15))){Fe=3;break e}it!=null&&(it[0]=Ze),Ke!=null&&(Ke[0]=vt),qe!=null&&(qe[0]=De),Qe[0]+=18,Fe[0]-=18,et[0]=1}Fe=0}}if(Ne=Ne[0],je=je[0],Fe!=0)return Fe;if(Qe=!!(2&je),!_e&&Ne)return 3;if(le!=null&&(le[0]=!!(16&je)),ue!=null&&(ue[0]=Qe),fe!=null&&(fe[0]=0),ue=ve[0],je=Se[0],Ne&&Qe&&de==null){Fe=0;break}if(4>N){Fe=7;break}if(_e&&Ne||!_e&&!Ne&&!t(d,y[0],"ALPH")){N=[N],Te.na=[Te.na],Te.P=[Te.P],Te.Sa=[Te.Sa];e:{Ze=d,Fe=y,_e=N;var et=Te.gb;Ke=Te.na,qe=Te.P,it=Te.Sa,vt=22,e(Ze!=null),e(_e!=null),De=Fe[0];var Zt=_e[0];for(e(Ke!=null),e(it!=null),Ke[0]=null,qe[0]=null,it[0]=0;;){if(Fe[0]=De,_e[0]=Zt,8>Zt){Fe=7;break e}var sr=me(Ze,De+4);if(4294967286<sr){Fe=3;break e}var Xt=8+sr+1&-2;if(vt+=Xt,0<et&&vt>et){Fe=3;break e}if(!t(Ze,De,"VP8 ")||!t(Ze,De,"VP8L")){Fe=0;break e}if(Zt[0]<Xt){Fe=7;break e}t(Ze,De,"ALPH")||(Ke[0]=Ze,qe[0]=De+8,it[0]=sr),De+=Xt,Zt-=Xt}}if(N=N[0],Te.na=Te.na[0],Te.P=Te.P[0],Te.Sa=Te.Sa[0],Fe!=0)break}N=[N],Te.Ja=[Te.Ja],Te.xa=[Te.xa];e:if(et=d,Fe=y,_e=N,Ke=Te.gb[0],qe=Te.Ja,it=Te.xa,Ze=Fe[0],De=!t(et,Ze,"VP8 "),vt=!t(et,Ze,"VP8L"),e(et!=null),e(_e!=null),e(qe!=null),e(it!=null),8>_e[0])Fe=7;else{if(De||vt){if(et=me(et,Ze+4),12<=Ke&&et>Ke-12){Fe=3;break e}if(Le&&et>_e[0]-8){Fe=7;break e}qe[0]=et,Fe[0]+=8,_e[0]-=8,it[0]=vt}else it[0]=5<=_e[0]&&et[Ze+0]==47&&!(et[Ze+4]>>5),qe[0]=_e[0];Fe=0}if(N=N[0],Te.Ja=Te.Ja[0],Te.xa=Te.xa[0],y=y[0],Fe!=0)break;if(4294967286<Te.Ja)return 3;if(fe==null||Qe||(fe[0]=Te.xa?2:1),ue=[ue],je=[je],Te.xa){if(5>N){Fe=7;break}fe=ue,Le=je,Qe=le,d==null||5>N?d=0:5<=N&&d[y+0]==47&&!(d[y+4]>>5)?(_e=[0],et=[0],Ke=[0],ie(qe=new F,d,y,N),ut(qe,_e,et,Ke)?(fe!=null&&(fe[0]=_e[0]),Le!=null&&(Le[0]=et[0]),Qe!=null&&(Qe[0]=Ke[0]),d=1):d=0):d=0}else{if(10>N){Fe=7;break}fe=je,d==null||10>N||!ya(d,y+3,N-3)?d=0:(Le=d[y+0]|d[y+1]<<8|d[y+2]<<16,Qe=16383&(d[y+7]<<8|d[y+6]),d=16383&(d[y+9]<<8|d[y+8]),1&Le||3<(Le>>1&7)||!(Le>>4&1)||Le>>5>=Te.Ja||!Qe||!d?d=0:(ue&&(ue[0]=Qe),fe&&(fe[0]=d),d=1))}if(!d||(ue=ue[0],je=je[0],Ne&&(ve[0]!=ue||Se[0]!=je)))return 3;de!=null&&(de[0]=Te,de.offset=y-de.w,e(4294967286>y-de.w),e(de.offset==de.ha-N));break}return Fe==0||Fe==7&&Ne&&de==null?(le!=null&&(le[0]|=Te.na!=null&&0<Te.na.length),K!=null&&(K[0]=ue),ne!=null&&(ne[0]=je),0):Fe}function mc(d,y,N){var K=y.width,ne=y.height,le=0,ue=0,fe=K,de=ne;if(y.Da=d!=null&&0<d.Da,y.Da&&(fe=d.cd,de=d.bd,le=d.v,ue=d.j,11>N||(le&=-2,ue&=-2),0>le||0>ue||0>=fe||0>=de||le+fe>K||ue+de>ne))return 0;if(y.v=le,y.j=ue,y.va=le+fe,y.o=ue+de,y.U=fe,y.T=de,y.da=d!=null&&0<d.da,y.da){if(!E(fe,de,N=[d.ib],le=[d.hb]))return 0;y.ib=N[0],y.hb=le[0]}return y.ob=d!=null&&d.ob,y.Kb=d==null||!d.Sd,y.da&&(y.ob=y.ib<3*K/4&&y.hb<3*ne/4,y.Kb=0),1}function vc(d){if(d==null)return 2;if(11>d.S){var y=d.f.RGBA;y.fb+=(d.height-1)*y.A,y.A=-y.A}else y=d.f.kb,d=d.height,y.O+=(d-1)*y.fa,y.fa=-y.fa,y.N+=(d-1>>1)*y.Ab,y.Ab=-y.Ab,y.W+=(d-1>>1)*y.Db,y.Db=-y.Db,y.F!=null&&(y.J+=(d-1)*y.lb,y.lb=-y.lb);return 0}function Il(d,y,N,K){if(K==null||0>=d||0>=y)return 2;if(N!=null){if(N.Da){var ne=N.cd,le=N.bd,ue=-2&N.v,fe=-2&N.j;if(0>ue||0>fe||0>=ne||0>=le||ue+ne>d||fe+le>y)return 2;d=ne,y=le}if(N.da){if(!E(d,y,ne=[N.ib],le=[N.hb]))return 2;d=ne[0],y=le[0]}}K.width=d,K.height=y;e:{var de=K.width,ve=K.height;if(d=K.S,0>=de||0>=ve||!(d>=pd&&13>d))d=2;else{if(0>=K.Rd&&K.sd==null){ue=le=ne=y=0;var Se=(fe=de*FI[d])*ve;if(11>d||(le=(ve+1)/2*(y=(de+1)/2),d==12&&(ue=(ne=de)*ve)),(ve=A(Se+2*le+ue))==null){d=1;break e}K.sd=ve,11>d?((de=K.f.RGBA).eb=ve,de.fb=0,de.A=fe,de.size=Se):((de=K.f.kb).y=ve,de.O=0,de.fa=fe,de.Fd=Se,de.f=ve,de.N=0+Se,de.Ab=y,de.Cd=le,de.ea=ve,de.W=0+Se+le,de.Db=y,de.Ed=le,d==12&&(de.F=ve,de.J=0+Se+2*le),de.Tc=ue,de.lb=ne)}if(y=1,ne=K.S,le=K.width,ue=K.height,ne>=pd&&13>ne)if(11>ne)d=K.f.RGBA,y&=(fe=Math.abs(d.A))*(ue-1)+le<=d.size,y&=fe>=le*FI[ne],y&=d.eb!=null;else{d=K.f.kb,fe=(le+1)/2,Se=(ue+1)/2,de=Math.abs(d.fa),ve=Math.abs(d.Ab);var Ne=Math.abs(d.Db),Le=Math.abs(d.lb),Te=Le*(ue-1)+le;y&=de*(ue-1)+le<=d.Fd,y&=ve*(Se-1)+fe<=d.Cd,y=(y&=Ne*(Se-1)+fe<=d.Ed)&de>=le&ve>=fe&Ne>=fe,y&=d.y!=null,y&=d.f!=null,y&=d.ea!=null,ne==12&&(y&=Le>=le,y&=Te<=d.Tc,y&=d.F!=null)}else y=0;d=y?0:2}}return d!=0||N!=null&&N.fd&&(d=vc(K)),d}var Rn=64,Ul=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Nl=24,Ll=32,wc=8,Bi=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];oe("Predictor0","PredictorAdd0"),j.Predictor0=function(){return 4278190080},j.Predictor1=function(d){return d},j.Predictor2=function(d,y,N){return y[N+0]},j.Predictor3=function(d,y,N){return y[N+1]},j.Predictor4=function(d,y,N){return y[N-1]},j.Predictor5=function(d,y,N){return ce(ce(d,y[N+1]),y[N+0])},j.Predictor6=function(d,y,N){return ce(d,y[N-1])},j.Predictor7=function(d,y,N){return ce(d,y[N+0])},j.Predictor8=function(d,y,N){return ce(y[N-1],y[N+0])},j.Predictor9=function(d,y,N){return ce(y[N+0],y[N+1])},j.Predictor10=function(d,y,N){return ce(ce(d,y[N-1]),ce(y[N+0],y[N+1]))},j.Predictor11=function(d,y,N){var K=y[N+0];return 0>=Be(K>>24&255,d>>24&255,(y=y[N-1])>>24&255)+Be(K>>16&255,d>>16&255,y>>16&255)+Be(K>>8&255,d>>8&255,y>>8&255)+Be(255&K,255&d,255&y)?K:d},j.Predictor12=function(d,y,N){var K=y[N+0];return(Ee((d>>24&255)+(K>>24&255)-((y=y[N-1])>>24&255))<<24|Ee((d>>16&255)+(K>>16&255)-(y>>16&255))<<16|Ee((d>>8&255)+(K>>8&255)-(y>>8&255))<<8|Ee((255&d)+(255&K)-(255&y)))>>>0},j.Predictor13=function(d,y,N){var K=y[N-1];return(ye((d=ce(d,y[N+0]))>>24&255,K>>24&255)<<24|ye(d>>16&255,K>>16&255)<<16|ye(d>>8&255,K>>8&255)<<8|ye(d>>0&255,K>>0&255))>>>0};var ky=j.PredictorAdd0;j.PredictorAdd1=Ue,oe("Predictor2","PredictorAdd2"),oe("Predictor3","PredictorAdd3"),oe("Predictor4","PredictorAdd4"),oe("Predictor5","PredictorAdd5"),oe("Predictor6","PredictorAdd6"),oe("Predictor7","PredictorAdd7"),oe("Predictor8","PredictorAdd8"),oe("Predictor9","PredictorAdd9"),oe("Predictor10","PredictorAdd10"),oe("Predictor11","PredictorAdd11"),oe("Predictor12","PredictorAdd12"),oe("Predictor13","PredictorAdd13");var yc=j.PredictorAdd2;tt("ColorIndexInverseTransform","MapARGB","32b",function(d){return d>>8&255},function(d){return d}),tt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(d){return d},function(d){return d>>8&255});var ld,Ji=j.ColorIndexInverseTransform,Ol=j.MapARGB,ud=j.VP8LColorIndexInverseTransformAlpha,cd=j.MapAlpha,_a=j.VP8LPredictorsAdd=[];_a.length=16,(j.VP8LPredictors=[]).length=16,(j.VP8LPredictorsAdd_C=[]).length=16,(j.VP8LPredictors_C=[]).length=16;var Fo,Ci,ui,Ta,ks,Ds,Ql,Ms,rn,bc,ci,Zi,Rl,fd,Bc,_o,To,Ia,Io,Pl,Uo,Ua,Cc,eA,tA,Br,Cr,nn,mn=A(511),Hs=A(2041),Ec=A(225),kl=A(767),hd=0,Dy=Hs,dd=Ec,Qi=kl,rA=mn,pd=0,gd=1,gI=2,md=3,vd=4,My=5,mI=6,Hy=7,qy=8,wd=9,jy=10,rz=[2,3,7],nz=[3,3,11],vI=[280,256,256,256,40],iz=[0,1,1,1,0],Az=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],sz=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],az=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],oz=8,Ky=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Vy=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],xc=null,lz=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],uz=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],wI=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],cz=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],fz=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],hz=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],dz=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Na=[],NA=[],qs=[],pz=1,yI=2,La=[],nA=[];Pe("UpsampleRgbLinePair",Wt,3),Pe("UpsampleBgrLinePair",Rr,3),Pe("UpsampleRgbaLinePair",UA,4),Pe("UpsampleBgraLinePair",Sn,4),Pe("UpsampleArgbLinePair",Jn,4),Pe("UpsampleRgba4444LinePair",un,2),Pe("UpsampleRgb565LinePair",Vr,2);var gz=j.UpsampleRgbLinePair,mz=j.UpsampleBgrLinePair,bI=j.UpsampleRgbaLinePair,BI=j.UpsampleBgraLinePair,CI=j.UpsampleArgbLinePair,EI=j.UpsampleRgba4444LinePair,vz=j.UpsampleRgb565LinePair,yd=16,bd=1<<yd-1,Sc=-227,Gy=482,wz=6,xI=0,yz=A(256),bz=A(256),Bz=A(256),Cz=A(256),Ez=A(Gy-Sc),xz=A(Gy-Sc);os("YuvToRgbRow",Wt,3),os("YuvToBgrRow",Rr,3),os("YuvToRgbaRow",UA,4),os("YuvToBgraRow",Sn,4),os("YuvToArgbRow",Jn,4),os("YuvToRgba4444Row",un,2),os("YuvToRgb565Row",Vr,2);var SI=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Bd=[0,2,8],Sz=[8,7,6,4,4,2,2,2,1,1,1,1],Fz=1;this.WebPDecodeRGBA=function(d,y,N,K,ne){var le=gd,ue=new Fl,fe=new yr;ue.ba=fe,fe.S=le,fe.width=[fe.width],fe.height=[fe.height];var de=fe.width,ve=fe.height,Se=new It;if(Se==null||d==null)var Ne=2;else e(Se!=null),Ne=Tl(d,y,N,Se.width,Se.height,Se.Pd,Se.Qd,Se.format,null);if(Ne!=0?de=0:(de!=null&&(de[0]=Se.width[0]),ve!=null&&(ve[0]=Se.height[0]),de=1),de){fe.width=fe.width[0],fe.height=fe.height[0],K!=null&&(K[0]=fe.width),ne!=null&&(ne[0]=fe.height);e:{if(K=new ZA,(ne=new cc).data=d,ne.w=y,ne.ha=N,ne.kd=1,y=[0],e(ne!=null),((d=Tl(ne.data,ne.w,ne.ha,null,null,null,y,null,ne))==0||d==7)&&y[0]&&(d=4),(y=d)==0){if(e(ue!=null),K.data=ne.data,K.w=ne.w+ne.offset,K.ha=ne.ha-ne.offset,K.put=jr,K.ac=Fr,K.bc=dn,K.ma=ue,ne.xa){if((d=pn())==null){ue=1;break e}if(function(Le,Te){var je=[0],Qe=[0],Fe=[0];t:for(;;){if(Le==null)return 0;if(Te==null)return Le.a=2,0;if(Le.l=Te,Le.a=0,ie(Le.m,Te.data,Te.w,Te.ha),!ut(Le.m,je,Qe,Fe)){Le.a=3;break t}if(Le.xb=yI,Te.width=je[0],Te.height=Qe[0],!Xn(je[0],Qe[0],1,Le,null))break t;return 1}return e(Le.a!=0),0}(d,K)){if(K=(y=Il(K.width,K.height,ue.Oa,ue.ba))==0){t:{K=d;r:for(;;){if(K==null){K=0;break t}if(e(K.s.yc!=null),e(K.s.Ya!=null),e(0<K.s.Wb),e((N=K.l)!=null),e((ne=N.ma)!=null),K.xb!=0){if(K.ca=ne.ba,K.tb=ne.tb,e(K.ca!=null),!mc(ne.Oa,N,md)){K.a=2;break r}if(!at(K,N.width)||N.da)break r;if((N.da||Ft(K.ca.S))&&Ie(),11>K.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),K.ca.f.kb.F!=null&&Ie()),K.Pb&&0<K.s.ua&&K.s.vb.X==null&&!k(K.s.vb,K.s.Wa.Xa)){K.a=1;break r}K.xb=0}if(!Cn(K,K.V,K.Ba,K.c,K.i,N.o,vi))break r;ne.Dc=K.Ma,K=1;break t}e(K.a!=0),K=0}K=!K}K&&(y=d.a)}else y=d.a}else{if((d=new Co)==null){ue=1;break e}if(d.Fa=ne.na,d.P=ne.P,d.qc=ne.Sa,TA(d,K)){if((y=Il(K.width,K.height,ue.Oa,ue.ba))==0){if(d.Aa=0,N=ue.Oa,e((ne=d)!=null),N!=null){if(0<(de=0>(de=N.Md)?0:100<de?255:255*de/100)){for(ve=Se=0;4>ve;++ve)12>(Ne=ne.pb[ve]).lc&&(Ne.ia=de*Sz[0>Ne.lc?0:Ne.lc]>>3),Se|=Ne.ia;Se&&(alert("todo:VP8InitRandom"),ne.ia=1)}ne.Ga=N.Id,100<ne.Ga?ne.Ga=100:0>ne.Ga&&(ne.Ga=0)}ba(d,K)||(y=d.a)}}else y=d.a}y==0&&ue.Oa!=null&&ue.Oa.fd&&(y=vc(ue.ba))}ue=y}le=ue!=0?null:11>le?fe.f.RGBA.eb:fe.f.kb.y}else le=null;return le};var FI=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(j,R){for(var ae="",L=0;L<4;L++)ae+=String.fromCharCode(j[R++]);return ae}function u(j,R){return(j[R+0]<<0|j[R+1]<<8|j[R+2]<<16)>>>0}function f(j,R){return(j[R+0]<<0|j[R+1]<<8|j[R+2]<<16|j[R+3]<<24)>>>0}new o;var h=[0],c=[0],m=[],g=new o,w=n,p=function(j,R){var ae={},L=0,x=!1,Q=0,C=0;if(ae.frames=[],!function(H,G,X,J){for(var O=0;O<J;O++)if(H[G+O]!=X.charCodeAt(O))return!0;return!1}(j,R,"RIFF",4)){for(f(j,R+=4),R+=8;R<j.length;){var z=l(j,R),Y=f(j,R+=4);R+=4;var V=Y+(1&Y);switch(z){case"VP8 ":case"VP8L":ae.frames[L]===void 0&&(ae.frames[L]={}),($=ae.frames[L]).src_off=x?C:R-8,$.src_size=Q+Y+8,L++,x&&(x=!1,Q=0,C=0);break;case"VP8X":($=ae.header={}).feature_flags=j[R];var ie=R+4;$.canvas_width=1+u(j,ie),ie+=3,$.canvas_height=1+u(j,ie),ie+=3;break;case"ALPH":x=!0,Q=V+8,C=R-8;break;case"ANIM":($=ae.header).bgcolor=f(j,R),ie=R+4,$.loop_count=(te=j)[(F=ie)+0]<<0|te[F+1]<<8,ie+=2;break;case"ANMF":var Ae,$;($=ae.frames[L]={}).offset_x=2*u(j,R),R+=3,$.offset_y=2*u(j,R),R+=3,$.width=1+u(j,R),R+=3,$.height=1+u(j,R),R+=3,$.duration=u(j,R),R+=3,Ae=j[R++],$.dispose=1&Ae,$.blend=Ae>>1&1}z!="ANMF"&&(R+=V)}var te,F;return ae}}(w,0);p.response=w,p.rgbaoutput=!0,p.dataurl=!1;var v=p.header?p.header:null,b=p.frames?p.frames:null;if(v){v.loop_counter=v.loop_count,h=[v.canvas_height],c=[v.canvas_width];for(var B=0;B<b.length&&b[B].blend!=0;B++);}var T=b[0],M=g.WebPDecodeRGBA(w,T.src_off,T.src_size,c,h);T.rgba=M,T.imgwidth=c[0],T.imgheight=h[0];for(var D=0;D<c[0]*h[0]*4;D++)m[D]=M[D];return this.width=c,this.height=h,this.data=m,this}(function(n){var e=function(){return typeof qd=="function"},t=function(h,c,m,g){var w=4,p=s;switch(g){case n.image_compression.FAST:w=1,p=A;break;case n.image_compression.MEDIUM:w=6,p=a;break;case n.image_compression.SLOW:w=9,p=o}h=r(h,c,m,p);var v=qd(h,{level:w});return n.__addimage__.arrayBufferToBinaryString(v)},r=function(h,c,m,g){for(var w,p,v,b=h.length/c,B=new Uint8Array(h.length+b),T=u(),M=0;M<b;M+=1){if(v=M*c,w=h.subarray(v,v+c),g)B.set(g(w,m,p),v+M);else{for(var D,j=T.length,R=[];D<j;D+=1)R[D]=T[D](w,m,p);var ae=f(R.concat());B.set(R[ae],v+M)}p=w}return B},i=function(h){var c=Array.apply([],h);return c.unshift(0),c},A=function(h,c){var m,g=[],w=h.length;g[0]=1;for(var p=0;p<w;p+=1)m=h[p-c]||0,g[p+1]=h[p]-m+256&255;return g},s=function(h,c,m){var g,w=[],p=h.length;w[0]=2;for(var v=0;v<p;v+=1)g=m&&m[v]||0,w[v+1]=h[v]-g+256&255;return w},a=function(h,c,m){var g,w,p=[],v=h.length;p[0]=3;for(var b=0;b<v;b+=1)g=h[b-c]||0,w=m&&m[b]||0,p[b+1]=h[b]+256-(g+w>>>1)&255;return p},o=function(h,c,m){var g,w,p,v,b=[],B=h.length;b[0]=4;for(var T=0;T<B;T+=1)g=h[T-c]||0,w=m&&m[T]||0,p=m&&m[T-c]||0,v=l(g,w,p),b[T+1]=h[T]-v+256&255;return b},l=function(h,c,m){if(h===c&&c===m)return h;var g=Math.abs(c-m),w=Math.abs(h-m),p=Math.abs(h+c-m-m);return g<=w&&g<=p?h:w<=p?c:m},u=function(){return[i,A,s,a,o]},f=function(h){var c=h.map(function(m){return m.reduce(function(g,w){return g+Math.abs(w)},0)});return c.indexOf(Math.min.apply(null,c))};n.processPNG=function(h,c,m,g){var w,p,v,b,B,T,M,D,j,R,ae,L,x,Q,C,z=this.decode.FLATE_DECODE,Y="";if(this.__addimage__.isArrayBuffer(h)&&(h=new Uint8Array(h)),this.__addimage__.isArrayBufferView(h)){if(h=(v=new FU(h)).imgData,p=v.bits,w=v.colorSpace,B=v.colors,[4,6].indexOf(v.colorType)!==-1){if(v.bits===8){j=(D=v.pixelBitlength==32?new Uint32Array(v.decodePixels().buffer):v.pixelBitlength==16?new Uint16Array(v.decodePixels().buffer):new Uint8Array(v.decodePixels().buffer)).length,ae=new Uint8Array(j*v.colors),R=new Uint8Array(j);var V,ie=v.pixelBitlength-v.bits;for(Q=0,C=0;Q<j;Q++){for(x=D[Q],V=0;V<ie;)ae[C++]=x>>>V&255,V+=v.bits;R[Q]=x>>>V&255}}if(v.bits===16){j=(D=new Uint32Array(v.decodePixels().buffer)).length,ae=new Uint8Array(j*(32/v.pixelBitlength)*v.colors),R=new Uint8Array(j*(32/v.pixelBitlength)),L=v.colors>1,Q=0,C=0;for(var Ae=0;Q<j;)x=D[Q++],ae[C++]=x>>>0&255,L&&(ae[C++]=x>>>16&255,x=D[Q++],ae[C++]=x>>>0&255),R[Ae++]=x>>>16&255;p=8}g!==n.image_compression.NONE&&e()?(h=t(ae,v.width*v.colors,v.colors,g),M=t(R,v.width,1,g)):(h=ae,M=R,z=void 0)}if(v.colorType===3&&(w=this.color_spaces.INDEXED,T=v.palette,v.transparency.indexed)){var $=v.transparency.indexed,te=0;for(Q=0,j=$.length;Q<j;++Q)te+=$[Q];if((te/=255)===j-1&&$.indexOf(0)!==-1)b=[$.indexOf(0)];else if(te!==j){for(D=v.decodePixels(),R=new Uint8Array(D.length),Q=0,j=D.length;Q<j;Q++)R[Q]=$[D[Q]];M=t(R,v.width,1)}}var F=function(H){var G;switch(H){case n.image_compression.FAST:G=11;break;case n.image_compression.MEDIUM:G=13;break;case n.image_compression.SLOW:G=14;break;default:G=12}return G}(g);return z===this.decode.FLATE_DECODE&&(Y="/Predictor "+F+" "),Y+="/Colors "+B+" /BitsPerComponent "+p+" /Columns "+v.width,(this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),(M&&this.__addimage__.isArrayBuffer(M)||this.__addimage__.isArrayBufferView(M))&&(M=this.__addimage__.arrayBufferToBinaryString(M)),{alias:m,data:h,index:c,filter:z,decodeParameters:Y,transparency:b,palette:T,sMask:M,predictor:F,width:v.width,height:v.height,bitsPerComponent:p,colorSpace:w}}}})(bt.API),function(n){n.processGIF89A=function(e,t,r,i){var A=new _U(e),s=A.width,a=A.height,o=[];A.decodeAndBlitFrameRGBA(0,o);var l={data:o,width:s,height:a},u=new tp(100).encode(l,100);return n.processJPEG.call(this,u,t,r,i)},n.processGIF87A=n.processGIF89A}(bt.API),oA.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var n=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(n);for(var e=0;e<n;e++){var t=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:t,quad:A}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},oA.prototype.parseBGR=function(){this.pos=this.offset;try{var n="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[n]()}catch(t){dr.log("bit decode error:"+t)}},oA.prototype.bit1=function(){var n,e=Math.ceil(this.width/8),t=e%4;for(n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++)for(var A=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+8*i*4,a=0;a<8&&8*i+a<this.width;a++){var o=this.palette[A>>7-a&1];this.data[s+4*a]=o.blue,this.data[s+4*a+1]=o.green,this.data[s+4*a+2]=o.red,this.data[s+4*a+3]=255}t!==0&&(this.pos+=4-t)}},oA.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),e=n%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<n;i++){var A=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+2*i*4,a=A>>4,o=15&A,l=this.palette[a];if(this.data[s]=l.blue,this.data[s+1]=l.green,this.data[s+2]=l.red,this.data[s+3]=255,2*i+1>=this.width)break;l=this.palette[o],this.data[s+4]=l.blue,this.data[s+4+1]=l.green,this.data[s+4+2]=l.red,this.data[s+4+3]=255}e!==0&&(this.pos+=4-e)}},oA.prototype.bit8=function(){for(var n=this.width%4,e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),A=t*this.width*4+4*r;if(i<this.palette.length){var s=this.palette[i];this.data[A]=s.red,this.data[A+1]=s.green,this.data[A+2]=s.blue,this.data[A+3]=255}else this.data[A]=255,this.data[A+1]=255,this.data[A+2]=255,this.data[A+3]=255}n!==0&&(this.pos+=4-n)}},oA.prototype.bit15=function(){for(var n=this.width%3,e=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<this.width;i++){var A=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(A&e)/e*255|0,a=(A>>5&e)/e*255|0,o=(A>>10&e)/e*255|0,l=A>>15?255:0,u=r*this.width*4+4*i;this.data[u]=o,this.data[u+1]=a,this.data[u+2]=s,this.data[u+3]=l}this.pos+=n}},oA.prototype.bit16=function(){for(var n=this.width%3,e=parseInt("11111",2),t=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,A=0;A<this.width;A++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(s&e)/e*255|0,o=(s>>5&t)/t*255|0,l=(s>>11)/e*255|0,u=i*this.width*4+4*A;this.data[u]=l,this.data[u+1]=o,this.data[u+2]=a,this.data[u+3]=255}this.pos+=n}},oA.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*t;this.data[s]=A,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=255}this.pos+=this.width%4}},oA.prototype.bit32=function(){for(var n=this.height-1;n>=0;n--)for(var e=this.bottom_up?n:this.height-1-n,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*t;this.data[a]=A,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=s}},oA.prototype.getData=function(){return this.data},function(n){n.processBMP=function(e,t,r,i){var A=new oA(e,!1),s=A.width,a=A.height,o={data:A.getData(),width:s,height:a},l=new tp(100).encode(o,100);return n.processJPEG.call(this,l,t,r,i)}}(bt.API),V2.prototype.getData=function(){return this.data},function(n){n.processWEBP=function(e,t,r,i){var A=new V2(e),s=A.width,a=A.height,o={data:A.getData(),width:s,height:a},l=new tp(100).encode(o,100);return n.processJPEG.call(this,l,t,r,i)}}(bt.API),bt.API.processRGBA=function(n,e,t){for(var r=n.data,i=r.length,A=new Uint8Array(i/4*3),s=new Uint8Array(i/4),a=0,o=0,l=0;l<i;l+=4){var u=r[l],f=r[l+1],h=r[l+2],c=r[l+3];A[a++]=u,A[a++]=f,A[a++]=h,s[o++]=c}var m=this.__addimage__.arrayBufferToBinaryString(A);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:m,index:e,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:n.width,height:n.height}},bt.API.setLanguage=function(n){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[n]!==void 0&&(this.internal.languageSettings.languageCode=n,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Ho=bt.API,Vc=Ho.getCharWidthsArray=function(n,e){var t,r,i=(e=e||{}).font||this.internal.getFont(),A=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),a=e.widths?e.widths:i.metadata.Unicode.widths,o=a.fof?a.fof:1,l=e.kerning?e.kerning:i.metadata.Unicode.kerning,u=l.fof?l.fof:1,f=e.doKerning!==!1,h=0,c=n.length,m=0,g=a[0]||o,w=[];for(t=0;t<c;t++)r=n.charCodeAt(t),typeof i.metadata.widthOfString=="function"?w.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+s*(1e3/A)||0)/1e3):(h=f&&Yt(l[r])==="object"&&!isNaN(parseInt(l[r][m],10))?l[r][m]/u:0,w.push((a[r]||g)/o+h)),m=r;return w},H2=Ho.getStringUnitWidth=function(n,e){var t=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return Ho.processArabic&&(n=Ho.processArabic(n)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(n,t,i)/t:Vc.apply(this,arguments).reduce(function(A,s){return A+s},0)},q2=function(n,e,t,r){for(var i=[],A=0,s=n.length,a=0;A!==s&&a+e[A]<t;)a+=e[A],A++;i.push(n.slice(0,A));var o=A;for(a=0;A!==s;)a+e[A]>r&&(i.push(n.slice(o,A)),a=0,o=A),a+=e[A],A++;return o!==A&&i.push(n.slice(o,A)),i},j2=function(n,e,t){t||(t={});var r,i,A,s,a,o,l,u=[],f=[u],h=t.textIndent||0,c=0,m=0,g=n.split(" "),w=Vc.apply(this,[" ",t])[0];if(o=t.lineIndent===-1?g[0].length+2:t.lineIndent||0){var p=Array(o).join(" "),v=[];g.map(function(B){(B=B.split(/\s*\n/)).length>1?v=v.concat(B.map(function(T,M){return(M&&T.length?`
`:"")+T})):v.push(B[0])}),g=v,o=H2.apply(this,[p,t])}for(A=0,s=g.length;A<s;A++){var b=0;if(r=g[A],o&&r[0]==`
`&&(r=r.substr(1),b=1),h+c+(m=(i=Vc.apply(this,[r,t])).reduce(function(B,T){return B+T},0))>e||b){if(m>e){for(a=q2.apply(this,[r,i,e-(h+c),e]),u.push(a.shift()),u=[a.pop()];a.length;)f.push([a.shift()]);m=i.slice(r.length-(u[0]?u[0].length:0)).reduce(function(B,T){return B+T},0)}else u=[r];f.push(u),h=m+o,c=w}else u.push(r),h+=c+m,c=w}return l=o?function(B,T){return(T?p:"")+B.join(" ")}:function(B){return B.join(" ")},f.map(l)},Ho.splitTextToSize=function(n,e,t){var r,i=(t=t||{}).fontSize||this.internal.getFontSize(),A=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var f=this.internal.getFont(u.fontName,u.fontStyle);return f.metadata.Unicode?{widths:f.metadata.Unicode.widths||{0:1},kerning:f.metadata.Unicode.kerning||{}}:{font:f.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);r=Array.isArray(n)?n:String(n).split(/\r?\n/);var s=1*this.internal.scaleFactor*e/i;A.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/i:0,A.lineIndent=t.lineIndent;var a,o,l=[];for(a=0,o=r.length;a<o;a++)l=l.concat(j2.apply(this,[r[a],s,A]));return l},function(n){n.__fontmetrics__=n.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",t={},r={},i=0;i<e.length;i++)t[e[i]]="0123456789abcdef"[i],r["0123456789abcdef"[i]]=e[i];var A=function(f){return"0x"+parseInt(f,10).toString(16)},s=n.__fontmetrics__.compress=function(f){var h,c,m,g,w=["{"];for(var p in f){if(h=f[p],isNaN(parseInt(p,10))?c="'"+p+"'":(p=parseInt(p,10),c=(c=A(p).slice(2)).slice(0,-1)+r[c.slice(-1)]),typeof h=="number")h<0?(m=A(h).slice(3),g="-"):(m=A(h).slice(2),g=""),m=g+m.slice(0,-1)+r[m.slice(-1)];else{if(Yt(h)!=="object")throw new Error("Don't know what to do with value type "+Yt(h)+".");m=s(h)}w.push(c+m)}return w.push("}"),w.join("")},a=n.__fontmetrics__.uncompress=function(f){if(typeof f!="string")throw new Error("Invalid argument passed to uncompress.");for(var h,c,m,g,w={},p=1,v=w,b=[],B="",T="",M=f.length-1,D=1;D<M;D+=1)(g=f[D])=="'"?h?(m=h.join(""),h=void 0):h=[]:h?h.push(g):g=="{"?(b.push([v,m]),v={},m=void 0):g=="}"?((c=b.pop())[0][c[1]]=v,m=void 0,v=c[0]):g=="-"?p=-1:m===void 0?t.hasOwnProperty(g)?(B+=t[g],m=parseInt(B,16)*p,p=1,B=""):B+=g:t.hasOwnProperty(g)?(T+=t[g],v[m]=parseInt(T,16)*p,p=1,m=void 0,T=""):T+=g;return w},o={codePages:["WinAnsiEncoding"],WinAnsiEncoding:a("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},l={Unicode:{Courier:o,"Courier-Bold":o,"Courier-BoldOblique":o,"Courier-Oblique":o,Helvetica:o,"Helvetica-Bold":o,"Helvetica-BoldOblique":o,"Helvetica-Oblique":o,"Times-Roman":o,"Times-Bold":o,"Times-BoldItalic":o,"Times-Italic":o}},u={Unicode:{"Courier-Oblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":a("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":a("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:a("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:a("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":a("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":a("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};n.events.push(["addFont",function(f){var h=f.font,c=u.Unicode[h.postScriptName];c&&(h.metadata.Unicode={},h.metadata.Unicode.widths=c.widths,h.metadata.Unicode.kerning=c.kerning);var m=l.Unicode[h.postScriptName];m&&(h.metadata.Unicode.encoding=m,h.encoding=m.codePages[0])}])}(bt.API),function(n){var e=function(t){for(var r=t.length,i=new Uint8Array(r),A=0;A<r;A++)i[A]=t.charCodeAt(A);return i};n.API.events.push(["addFont",function(t){var r=void 0,i=t.font,A=t.instance;if(!i.isStandardFont){if(A===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=A.existsFileInVFS(i.postScriptName)===!1?A.loadFile(i.postScriptName):A.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(s,a){a=/^\x00\x01\x00\x00/.test(a)?e(a):e(Yl(a)),s.metadata=n.API.TTFFont.open(a),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(i,r)}}])}(bt),function(n){function e(){return(Et.canvg?Promise.resolve(Et.canvg):Promise.resolve().then(()=>tz)).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t})}bt.API.addSvgAsImage=function(t,r,i,A,s,a,o,l){if(isNaN(r)||isNaN(i))throw dr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(A)||isNaN(s))throw dr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=A,u.height=s;var f=u.getContext("2d");f.fillStyle="#fff",f.fillRect(0,0,u.width,u.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},c=this;return e().then(function(m){return m.fromString(f,t,h)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(m){return m.render(h)}).then(function(){c.addImage(u.toDataURL("image/jpeg",1),r,i,A,s,o,l)})}}(),bt.API.putTotalPages=function(n){var e,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(n,"g"),t=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,t);return this},bt.API.viewerPreferences=function(n,e){var t;n=n||{},e=e||!1;var r,i,A,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(s),o=[],l=0,u=0,f=0;function h(m,g){var w,p=!1;for(w=0;w<m.length;w+=1)m[w]===g&&(p=!0);return p}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,n==="reset"||e===!0){var c=a.length;for(f=0;f<c;f+=1)t[a[f]].value=t[a[f]].defaultValue,t[a[f]].explicitSet=!1}if(Yt(n)==="object"){for(i in n)if(A=n[i],h(a,i)&&A!==void 0){if(t[i].type==="boolean"&&typeof A=="boolean")t[i].value=A;else if(t[i].type==="name"&&h(t[i].valueSet,A))t[i].value=A;else if(t[i].type==="integer"&&Number.isInteger(A))t[i].value=A;else if(t[i].type==="array"){for(l=0;l<A.length;l+=1)if(r=!0,A[l].length===1&&typeof A[l][0]=="number")o.push(String(A[l]-1));else if(A[l].length>1){for(u=0;u<A[l].length;u+=1)typeof A[l][u]!="number"&&(r=!1);r===!0&&o.push([A[l][0]-1,A[l][1]-1].join(" "))}t[i].value="["+o.join(" ")+"]"}else t[i].value=t[i].defaultValue;t[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var m,g=[];for(m in t)t[m].explicitSet===!0&&(t[m].type==="name"?g.push("/"+m+" /"+t[m].value):g.push("/"+m+" "+t[m].value));g.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+g.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},function(n){var e=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',i=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),A=unescape(encodeURIComponent(r)),s=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),a=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),l=A.length+s.length+a.length+i.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+l+" >>"),this.internal.write("stream"),this.internal.write(i+A+s+a+o),this.internal.write("endstream"),this.internal.write("endobj")},t=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};n.addMetadata=function(r,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",t),this.internal.events.subscribe("postPutResources",e)),this}}(bt.API),function(n){var e=n.API,t=e.pdfEscape16=function(A,s){for(var a,o=s.metadata.Unicode.widths,l=["","0","00","000","0000"],u=[""],f=0,h=A.length;f<h;++f){if(a=s.metadata.characterToGlyph(A.charCodeAt(f)),s.metadata.glyIdsUsed.push(a),s.metadata.toUnicode[a]=A.charCodeAt(f),o.indexOf(a)==-1&&(o.push(a),o.push([parseInt(s.metadata.widthOfGlyph(a),10)])),a=="0")return u.join("");a=a.toString(16),u.push(l[4-a.length],a)}return u.join("")},r=function(A){var s,a,o,l,u,f,h;for(u=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,o=[],f=0,h=(a=Object.keys(A).sort(function(c,m){return c-m})).length;f<h;f++)s=a[f],o.length>=100&&(u+=`
`+o.length+` beginbfchar
`+o.join(`
`)+`
endbfchar`,o=[]),A[s]!==void 0&&A[s]!==null&&typeof A[s].toString=="function"&&(l=("0000"+A[s].toString(16)).slice(-4),s=("0000"+(+s).toString(16)).slice(-4),o.push("<"+s+"><"+l+">"));return o.length&&(u+=`
`+o.length+` beginbfchar
`+o.join(`
`)+`
endbfchar
`),u+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};e.events.push(["putFont",function(A){(function(s){var a=s.font,o=s.out,l=s.newObject,u=s.putStream;if(a.metadata instanceof n.API.TTFFont&&a.encoding==="Identity-H"){for(var f=a.metadata.Unicode.widths,h=a.metadata.subset.encode(a.metadata.glyIdsUsed,1),c="",m=0;m<h.length;m++)c+=String.fromCharCode(h[m]);var g=l();u({data:c,addLength1:!0,objectId:g}),o("endobj");var w=l();u({data:r(a.metadata.toUnicode),addLength1:!0,objectId:w}),o("endobj");var p=l();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+Oo(a.fontName)),o("/FontFile2 "+g+" 0 R"),o("/FontBBox "+n.API.PDFObject.convert(a.metadata.bbox)),o("/Flags "+a.metadata.flags),o("/StemV "+a.metadata.stemV),o("/ItalicAngle "+a.metadata.italicAngle),o("/Ascent "+a.metadata.ascender),o("/Descent "+a.metadata.decender),o("/CapHeight "+a.metadata.capHeight),o(">>"),o("endobj");var v=l();o("<<"),o("/Type /Font"),o("/BaseFont /"+Oo(a.fontName)),o("/FontDescriptor "+p+" 0 R"),o("/W "+n.API.PDFObject.convert(f)),o("/CIDToGIDMap /Identity"),o("/DW 1000"),o("/Subtype /CIDFontType2"),o("/CIDSystemInfo"),o("<<"),o("/Supplement 0"),o("/Registry (Adobe)"),o("/Ordering ("+a.encoding+")"),o(">>"),o(">>"),o("endobj"),a.objectNumber=l(),o("<<"),o("/Type /Font"),o("/Subtype /Type0"),o("/ToUnicode "+w+" 0 R"),o("/BaseFont /"+Oo(a.fontName)),o("/Encoding /"+a.encoding),o("/DescendantFonts ["+v+" 0 R]"),o(">>"),o("endobj"),a.isAlreadyPutted=!0}})(A)}]),e.events.push(["putFont",function(A){(function(s){var a=s.font,o=s.out,l=s.newObject,u=s.putStream;if(a.metadata instanceof n.API.TTFFont&&a.encoding==="WinAnsiEncoding"){for(var f=a.metadata.rawData,h="",c=0;c<f.length;c++)h+=String.fromCharCode(f[c]);var m=l();u({data:h,addLength1:!0,objectId:m}),o("endobj");var g=l();u({data:r(a.metadata.toUnicode),addLength1:!0,objectId:g}),o("endobj");var w=l();o("<<"),o("/Descent "+a.metadata.decender),o("/CapHeight "+a.metadata.capHeight),o("/StemV "+a.metadata.stemV),o("/Type /FontDescriptor"),o("/FontFile2 "+m+" 0 R"),o("/Flags 96"),o("/FontBBox "+n.API.PDFObject.convert(a.metadata.bbox)),o("/FontName /"+Oo(a.fontName)),o("/ItalicAngle "+a.metadata.italicAngle),o("/Ascent "+a.metadata.ascender),o(">>"),o("endobj"),a.objectNumber=l();for(var p=0;p<a.metadata.hmtx.widths.length;p++)a.metadata.hmtx.widths[p]=parseInt(a.metadata.hmtx.widths[p]*(1e3/a.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+g+" 0 R/BaseFont/"+Oo(a.fontName)+"/FontDescriptor "+w+" 0 R/Encoding/"+a.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(a.metadata.hmtx.widths)+">>"),o("endobj"),a.isAlreadyPutted=!0}})(A)}]);var i=function(A){var s,a=A.text||"",o=A.x,l=A.y,u=A.options||{},f=A.mutex||{},h=f.pdfEscape,c=f.activeFontKey,m=f.fonts,g=c,w="",p=0,v="",b=m[g].encoding;if(m[g].encoding!=="Identity-H")return{text:a,x:o,y:l,options:u,mutex:f};for(v=a,g=c,Array.isArray(a)&&(v=a[0]),p=0;p<v.length;p+=1)m[g].metadata.hasOwnProperty("cmap")&&(s=m[g].metadata.cmap.unicode.codeMap[v[p].charCodeAt(0)]),s||v[p].charCodeAt(0)<256&&m[g].metadata.hasOwnProperty("Unicode")?w+=v[p]:w+="";var B="";return parseInt(g.slice(1))<14||b==="WinAnsiEncoding"?B=h(w,g).split("").map(function(T){return T.charCodeAt(0).toString(16)}).join(""):b==="Identity-H"&&(B=t(w,m[g])),f.isHex=!0,{text:B,x:o,y:l,options:u,mutex:f}};e.events.push(["postProcessText",function(A){var s=A.text||"",a=[],o={text:s,x:A.x,y:A.y,options:A.options,mutex:A.mutex};if(Array.isArray(s)){var l=0;for(l=0;l<s.length;l+=1)Array.isArray(s[l])&&s[l].length===3?a.push([i(Object.assign({},o,{text:s[l][0]})).text,s[l][1],s[l][2]]):a.push(i(Object.assign({},o,{text:s[l]})).text);A.text=a}else A.text=i(Object.assign({},o,{text:s})).text}])}(bt),function(n){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};n.existsFileInVFS=function(t){return e.call(this),this.internal.vFS[t]!==void 0},n.addFileToVFS=function(t,r){return e.call(this),this.internal.vFS[t]=r,this},n.getFileFromVFS=function(t){return e.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}}(bt.API),function(n){n.__bidiEngine__=n.prototype.__bidiEngine__=function(r){var i,A,s,a,o,l,u,f=e,h=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],c=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],m={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},g={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},w=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],p=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),v=!1,b=0;this.__bidiEngine__={};var B=function(L){var x=L.charCodeAt(),Q=x>>8,C=g[Q];return C!==void 0?f[256*C+(255&x)]:Q===252||Q===253?"AL":p.test(Q)?"L":Q===8?"R":"N"},T=function(L){for(var x,Q=0;Q<L.length;Q++){if((x=B(L.charAt(Q)))==="L")return!1;if(x==="R")return!0}return!1},M=function(L,x,Q,C){var z,Y,V,ie,Ae=x[C];switch(Ae){case"L":case"R":v=!1;break;case"N":case"AN":break;case"EN":v&&(Ae="AN");break;case"AL":v=!0,Ae="R";break;case"WS":Ae="N";break;case"CS":C<1||C+1>=x.length||(z=Q[C-1])!=="EN"&&z!=="AN"||(Y=x[C+1])!=="EN"&&Y!=="AN"?Ae="N":v&&(Y="AN"),Ae=Y===z?Y:"N";break;case"ES":Ae=(z=C>0?Q[C-1]:"B")==="EN"&&C+1<x.length&&x[C+1]==="EN"?"EN":"N";break;case"ET":if(C>0&&Q[C-1]==="EN"){Ae="EN";break}if(v){Ae="N";break}for(V=C+1,ie=x.length;V<ie&&x[V]==="ET";)V++;Ae=V<ie&&x[V]==="EN"?"EN":"N";break;case"NSM":if(s&&!a){for(ie=x.length,V=C+1;V<ie&&x[V]==="NSM";)V++;if(V<ie){var $=L[C],te=$>=1425&&$<=2303||$===64286;if(z=x[V],te&&(z==="R"||z==="AL")){Ae="R";break}}}Ae=C<1||(z=x[C-1])==="B"?"N":Q[C-1];break;case"B":v=!1,i=!0,Ae=b;break;case"S":A=!0,Ae="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":v=!1;break;case"BN":Ae="N"}return Ae},D=function(L,x,Q){var C=L.split("");return Q&&j(C,Q,{hiLevel:b}),C.reverse(),x&&x.reverse(),C.join("")},j=function(L,x,Q){var C,z,Y,V,ie,Ae=-1,$=L.length,te=0,F=[],H=b?c:h,G=[];for(v=!1,i=!1,A=!1,z=0;z<$;z++)G[z]=B(L[z]);for(Y=0;Y<$;Y++){if(ie=te,F[Y]=M(L,G,F,Y),C=240&(te=H[ie][m[F[Y]]]),te&=15,x[Y]=V=H[te][5],C>0)if(C===16){for(z=Ae;z<Y;z++)x[z]=1;Ae=-1}else Ae=-1;if(H[te][6])Ae===-1&&(Ae=Y);else if(Ae>-1){for(z=Ae;z<Y;z++)x[z]=V;Ae=-1}G[Y]==="B"&&(x[Y]=0),Q.hiLevel|=V}A&&function(X,J,O){for(var U=0;U<O;U++)if(X[U]==="S"){J[U]=b;for(var ee=U-1;ee>=0&&X[ee]==="WS";ee--)J[ee]=b}}(G,x,$)},R=function(L,x,Q,C,z){if(!(z.hiLevel<L)){if(L===1&&b===1&&!i)return x.reverse(),void(Q&&Q.reverse());for(var Y,V,ie,Ae,$=x.length,te=0;te<$;){if(C[te]>=L){for(ie=te+1;ie<$&&C[ie]>=L;)ie++;for(Ae=te,V=ie-1;Ae<V;Ae++,V--)Y=x[Ae],x[Ae]=x[V],x[V]=Y,Q&&(Y=Q[Ae],Q[Ae]=Q[V],Q[V]=Y);te=ie}te++}}},ae=function(L,x,Q){var C=L.split(""),z={hiLevel:b};return Q||(Q=[]),j(C,Q,z),function(Y,V,ie){if(ie.hiLevel!==0&&u)for(var Ae,$=0;$<Y.length;$++)V[$]===1&&(Ae=w.indexOf(Y[$]))>=0&&(Y[$]=w[Ae+1])}(C,Q,z),R(2,C,x,Q,z),R(1,C,x,Q,z),C.join("")};return this.__bidiEngine__.doBidiReorder=function(L,x,Q){if(function(z,Y){if(Y)for(var V=0;V<z.length;V++)Y[V]=V;a===void 0&&(a=T(z)),l===void 0&&(l=T(z))}(L,x),s||!o||l)if(s&&o&&a^l)b=a?1:0,L=D(L,x,Q);else if(!s&&o&&l)b=a?1:0,L=ae(L,x,Q),L=D(L,x);else if(!s||a||o||l){if(s&&!o&&a^l)L=D(L,x),a?(b=0,L=ae(L,x,Q)):(b=1,L=ae(L,x,Q),L=D(L,x));else if(s&&a&&!o&&l)b=1,L=ae(L,x,Q),L=D(L,x);else if(!s&&!o&&a^l){var C=u;a?(b=1,L=ae(L,x,Q),b=0,u=!1,L=ae(L,x,Q),u=C):(b=0,L=ae(L,x,Q),L=D(L,x),b=1,u=!1,L=ae(L,x,Q),u=C,L=D(L,x))}}else b=0,L=ae(L,x,Q);else b=a?1:0,L=ae(L,x,Q);return L},this.__bidiEngine__.setOptions=function(L){L&&(s=L.isInputVisual,o=L.isOutputVisual,a=L.isInputRtl,l=L.isOutputRtl,u=L.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],t=new n.__bidiEngine__({isInputVisual:!0});n.API.events.push(["postProcessText",function(r){var i=r.text;r.x,r.y;var A=r.options||{};r.mutex,A.lang;var s=[];if(A.isInputVisual=typeof A.isInputVisual!="boolean"||A.isInputVisual,t.setOptions(A),Object.prototype.toString.call(i)==="[object Array]"){var a=0;for(s=[],a=0;a<i.length;a+=1)Object.prototype.toString.call(i[a])==="[object Array]"?s.push([t.doBidiReorder(i[a][0]),i[a][1],i[a][2]]):s.push([t.doBidiReorder(i[a])]);r.text=s}else r.text=t.doBidiReorder(i);t.setOptions({isInputVisual:!0})}])}(bt),bt.API.TTFFont=function(){function n(e){var t;if(this.rawData=e,t=this.contents=new Xs(e),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new jU(this),this.registerTTF()}return n.open=function(e){return new n(e)},n.prototype.parse=function(){return this.directory=new TU(this.contents),this.head=new UU(this),this.name=new RU(this),this.cmap=new z2(this),this.toUnicode={},this.hhea=new NU(this),this.maxp=new PU(this),this.hmtx=new kU(this),this.post=new OU(this),this.os2=new LU(this),this.loca=new qU(this),this.glyf=new DU(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},n.prototype.registerTTF=function(){var e,t,r,i,A;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var s,a,o,l;for(l=[],s=0,a=(o=this.bbox).length;s<a;s++)e=o[s],l.push(Math.round(e*this.scaleFactor));return l}).call(this),this.stemV=0,this.post.exists?(r=255&(i=this.post.italic_angle),(32768&(t=i>>16))!=0&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(A=this.familyClass)===1||A===2||A===3||A===4||A===5||A===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},n.prototype.characterToGlyph=function(e){var t;return((t=this.cmap.unicode)!=null?t.codeMap[e]:void 0)||0},n.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},n.prototype.widthOfString=function(e,t,r){var i,A,s,a;for(s=0,A=0,a=(e=""+e).length;0<=a?A<a:A>a;A=0<=a?++A:--A)i=e.charCodeAt(A),s+=this.widthOfGlyph(this.characterToGlyph(i))+r*(1e3/t)||0;return s*(t/1e3)},n.prototype.lineHeight=function(e,t){var r;return t==null&&(t=!1),r=t?this.lineGap:0,(this.ascender+r-this.decender)/1e3*e},n}();var lA,Xs=function(){function n(e){this.data=e??[],this.pos=0,this.length=this.data.length}return n.prototype.readByte=function(){return this.data[this.pos++]},n.prototype.writeByte=function(e){return this.data[this.pos++]=e},n.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},n.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},n.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},n.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},n.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},n.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},n.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},n.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},n.prototype.readString=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)r[t]=String.fromCharCode(this.readByte());return r.join("")},n.prototype.writeString=function(e){var t,r,i;for(i=[],t=0,r=e.length;0<=r?t<r:t>r;t=0<=r?++t:--t)i.push(this.writeByte(e.charCodeAt(t)));return i},n.prototype.readShort=function(){return this.readInt16()},n.prototype.writeShort=function(e){return this.writeInt16(e)},n.prototype.readLongLong=function(){var e,t,r,i,A,s,a,o;return e=this.readByte(),t=this.readByte(),r=this.readByte(),i=this.readByte(),A=this.readByte(),s=this.readByte(),a=this.readByte(),o=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^r)+4294967296*(255^i)+16777216*(255^A)+65536*(255^s)+256*(255^a)+(255^o)+1):72057594037927940*e+281474976710656*t+1099511627776*r+4294967296*i+16777216*A+65536*s+256*a+o},n.prototype.writeLongLong=function(e){var t,r;return t=Math.floor(e/4294967296),r=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},n.prototype.readInt=function(){return this.readInt32()},n.prototype.writeInt=function(e){return this.writeInt32(e)},n.prototype.read=function(e){var t,r;for(t=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)t.push(this.readByte());return t},n.prototype.write=function(e){var t,r,i,A;for(A=[],r=0,i=e.length;r<i;r++)t=e[r],A.push(this.writeByte(t));return A},n}(),TU=function(){var n;function e(t){var r,i,A;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},i=0,A=this.tableCount;0<=A?i<A:i>A;i=0<=A?++i:--i)r={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[r.tag]=r}return e.prototype.encode=function(t){var r,i,A,s,a,o,l,u,f,h,c,m,g;for(g in c=Object.keys(t).length,o=Math.log(2),f=16*Math.floor(Math.log(c)/o),s=Math.floor(f/o),u=16*c-f,(i=new Xs).writeInt(this.scalarType),i.writeShort(c),i.writeShort(f),i.writeShort(s),i.writeShort(u),A=16*c,l=i.pos+A,a=null,m=[],t)for(h=t[g],i.writeString(g),i.writeInt(n(h)),i.writeInt(l),i.writeInt(h.length),m=m.concat(h),g==="head"&&(a=l),l+=h.length;l%4;)m.push(0),l++;return i.write(m),r=2981146554-n(i.data),i.pos=a+8,i.writeUInt32(r),i.data},n=function(t){var r,i,A,s;for(t=W2.call(t);t.length%4;)t.push(0);for(A=new Xs(t),i=0,r=0,s=t.length;r<s;r=r+=4)i+=A.readUInt32();return 4294967295&i},e}(),IU={}.hasOwnProperty,PA=function(n,e){for(var t in e)IU.call(e,t)&&(n[t]=e[t]);function r(){this.constructor=n}return r.prototype=e.prototype,n.prototype=new r,n.__super__=e.prototype,n};lA=function(){function n(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return n.prototype.parse=function(){},n.prototype.encode=function(){},n.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},n}();var UU=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return PA(e,lA),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var r;return(r=new Xs).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(t),r.writeShort(this.glyphDataFormat),r.data},e}(),G2=function(){function n(e,t){var r,i,A,s,a,o,l,u,f,h,c,m,g,w,p,v,b;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),f=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(o=0;o<256;++o)this.codeMap[o]=e.readByte();break;case 4:for(c=e.readUInt16(),h=c/2,e.pos+=6,A=function(){var B,T;for(T=[],o=B=0;0<=h?B<h:B>h;o=0<=h?++B:--B)T.push(e.readUInt16());return T}(),e.pos+=2,g=function(){var B,T;for(T=[],o=B=0;0<=h?B<h:B>h;o=0<=h?++B:--B)T.push(e.readUInt16());return T}(),l=function(){var B,T;for(T=[],o=B=0;0<=h?B<h:B>h;o=0<=h?++B:--B)T.push(e.readUInt16());return T}(),u=function(){var B,T;for(T=[],o=B=0;0<=h?B<h:B>h;o=0<=h?++B:--B)T.push(e.readUInt16());return T}(),i=(this.length-e.pos+this.offset)/2,a=function(){var B,T;for(T=[],o=B=0;0<=i?B<i:B>i;o=0<=i?++B:--B)T.push(e.readUInt16());return T}(),o=p=0,b=A.length;p<b;o=++p)for(w=A[o],r=v=m=g[o];m<=w?v<=w:v>=w;r=m<=w?++v:--v)u[o]===0?s=r+l[o]:(s=a[u[o]/2+(r-m)-(h-o)]||0)!==0&&(s+=l[o]),this.codeMap[r]=65535&s}e.pos=f}return n.encode=function(e,t){var r,i,A,s,a,o,l,u,f,h,c,m,g,w,p,v,b,B,T,M,D,j,R,ae,L,x,Q,C,z,Y,V,ie,Ae,$,te,F,H,G,X,J,O,U,ee,re,W,Z;switch(C=new Xs,s=Object.keys(e).sort(function(me,k){return me-k}),t){case"macroman":for(g=0,w=function(){var me=[];for(m=0;m<256;++m)me.push(0);return me}(),v={0:0},A={},z=0,Ae=s.length;z<Ae;z++)v[ee=e[i=s[z]]]==null&&(v[ee]=++g),A[i]={old:e[i],new:v[e[i]]},w[i]=v[e[i]];return C.writeUInt16(1),C.writeUInt16(0),C.writeUInt32(12),C.writeUInt16(0),C.writeUInt16(262),C.writeUInt16(0),C.write(w),{charMap:A,subtable:C.data,maxGlyphID:g+1};case"unicode":for(x=[],f=[],b=0,v={},r={},p=l=null,Y=0,$=s.length;Y<$;Y++)v[T=e[i=s[Y]]]==null&&(v[T]=++b),r[i]={old:T,new:v[T]},a=v[T]-i,p!=null&&a===l||(p&&f.push(p),x.push(i),l=a),p=i;for(p&&f.push(p),f.push(65535),x.push(65535),ae=2*(R=x.length),j=2*Math.pow(Math.log(R)/Math.LN2,2),h=Math.log(j/2)/Math.LN2,D=2*R-j,o=[],M=[],c=[],m=V=0,te=x.length;V<te;m=++V){if(L=x[m],u=f[m],L===65535){o.push(0),M.push(0);break}if(L-(Q=r[L].new)>=32768)for(o.push(0),M.push(2*(c.length+R-m)),i=ie=L;L<=u?ie<=u:ie>=u;i=L<=u?++ie:--ie)c.push(r[i].new);else o.push(Q-L),M.push(0)}for(C.writeUInt16(3),C.writeUInt16(1),C.writeUInt32(12),C.writeUInt16(4),C.writeUInt16(16+8*R+2*c.length),C.writeUInt16(0),C.writeUInt16(ae),C.writeUInt16(j),C.writeUInt16(h),C.writeUInt16(D),O=0,F=f.length;O<F;O++)i=f[O],C.writeUInt16(i);for(C.writeUInt16(0),U=0,H=x.length;U<H;U++)i=x[U],C.writeUInt16(i);for(re=0,G=o.length;re<G;re++)a=o[re],C.writeUInt16(a);for(W=0,X=M.length;W<X;W++)B=M[W],C.writeUInt16(B);for(Z=0,J=c.length;Z<J;Z++)g=c[Z],C.writeUInt16(g);return{charMap:r,subtable:C.data,maxGlyphID:b+1}}},n}(),z2=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return PA(e,lA),e.prototype.tag="cmap",e.prototype.parse=function(t){var r,i,A;for(t.pos=this.offset,this.version=t.readUInt16(),A=t.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=A?i<A:i>A;i=0<=A?++i:--i)r=new G2(t,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},e.encode=function(t,r){var i,A;return r==null&&(r="macroman"),i=G2.encode(t,r),(A=new Xs).writeUInt16(0),A.writeUInt16(1),i.table=A.data.concat(i.subtable),i},e}(),NU=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return PA(e,lA),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),LU=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return PA(e,lA),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var r,i;for(i=[],r=0;r<10;++r)i.push(t.readByte());return i}(),this.charRange=function(){var r,i;for(i=[],r=0;r<4;++r)i.push(t.readInt());return i}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var r,i;for(i=[],r=0;r<2;r=++r)i.push(t.readInt());return i}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),OU=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return PA(e,lA),e.prototype.tag="post",e.prototype.parse=function(t){var r,i,A;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var s;for(i=t.readUInt16(),this.glyphNameIndex=[],s=0;0<=i?s<i:s>i;s=0<=i?++s:--s)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],A=[];t.pos<this.offset+this.length;)r=t.readByte(),A.push(this.names.push(t.readString(r)));return A;case 151552:return i=t.readUInt16(),this.offsets=t.read(i);case 196608:break;case 262144:return this.map=(function(){var a,o,l;for(l=[],s=a=0,o=this.file.maxp.numGlyphs;0<=o?a<o:a>o;s=0<=o?++a:--a)l.push(t.readUInt32());return l}).call(this)}},e}(),QU=function(n,e){this.raw=n,this.length=n.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},RU=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return PA(e,lA),e.prototype.tag="name",e.prototype.parse=function(t){var r,i,A,s,a,o,l,u,f,h,c;for(t.pos=this.offset,t.readShort(),r=t.readShort(),o=t.readShort(),i=[],s=0;0<=r?s<r:s>r;s=0<=r?++s:--s)i.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(l={},s=f=0,h=i.length;f<h;s=++f)A=i[s],t.pos=A.offset,u=t.readString(A.length),a=new QU(u,A),l[c=A.nameID]==null&&(l[c]=[]),l[A.nameID].push(a);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},e}(),PU=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return PA(e,lA),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),kU=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return PA(e,lA),e.prototype.tag="hmtx",e.prototype.parse=function(t){var r,i,A,s,a,o,l;for(t.pos=this.offset,this.metrics=[],r=0,o=this.file.hhea.numberOfMetrics;0<=o?r<o:r>o;r=0<=o?++r:--r)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(A=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var u,f;for(f=[],r=u=0;0<=A?u<A:u>A;r=0<=A?++u:--u)f.push(t.readInt16());return f}(),this.widths=(function(){var u,f,h,c;for(c=[],u=0,f=(h=this.metrics).length;u<f;u++)s=h[u],c.push(s.advance);return c}).call(this),i=this.widths[this.widths.length-1],l=[],r=a=0;0<=A?a<A:a>A;r=0<=A?++a:--a)l.push(this.widths.push(i));return l},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),W2=[].slice,DU=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return PA(e,lA),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var r,i,A,s,a,o,l,u,f,h;return t in this.cache?this.cache[t]:(s=this.file.loca,r=this.file.contents,i=s.indexOf(t),(A=s.lengthOf(t))===0?this.cache[t]=null:(r.pos=this.offset+i,a=(o=new Xs(r.read(A))).readShort(),u=o.readShort(),h=o.readShort(),l=o.readShort(),f=o.readShort(),this.cache[t]=a===-1?new HU(o,u,h,l,f):new MU(o,a,u,h,l,f),this.cache[t]))},e.prototype.encode=function(t,r,i){var A,s,a,o,l;for(a=[],s=[],o=0,l=r.length;o<l;o++)A=t[r[o]],s.push(a.length),A&&(a=a.concat(A.encode(i)));return s.push(a.length),{table:a,offsets:s}},e}(),MU=function(){function n(e,t,r,i,A,s){this.raw=e,this.numberOfContours=t,this.xMin=r,this.yMin=i,this.xMax=A,this.yMax=s,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n}(),HU=function(){function n(e,t,r,i,A){var s,a;for(this.raw=e,this.xMin=t,this.yMin=r,this.xMax=i,this.yMax=A,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;a=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&a;)s.pos+=1&a?4:2,128&a?s.pos+=8:64&a?s.pos+=4:8&a&&(s.pos+=2)}return n.prototype.encode=function(){var e,t,r;for(t=new Xs(W2.call(this.raw.data)),e=0,r=this.glyphIDs.length;e<r;++e)t.pos=this.glyphOffsets[e];return t.data},n}(),qU=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return PA(e,lA),e.prototype.tag="loca",e.prototype.parse=function(t){var r,i;return t.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var A,s;for(s=[],i=0,A=this.length;i<A;i+=2)s.push(2*t.readUInt16());return s}).call(this):(function(){var A,s;for(s=[],i=0,A=this.length;i<A;i+=4)s.push(t.readUInt32());return s}).call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,r){for(var i=new Uint32Array(this.offsets.length),A=0,s=0,a=0;a<i.length;++a)if(i[a]=A,s<r.length&&r[s]==a){++s,i[a]=A;var o=this.offsets[a],l=this.offsets[a+1]-o;l>0&&(A+=l)}for(var u=new Array(4*i.length),f=0;f<i.length;++f)u[4*f+3]=255&i[f],u[4*f+2]=(65280&i[f])>>8,u[4*f+1]=(16711680&i[f])>>16,u[4*f]=(4278190080&i[f])>>24;return u},e}(),jU=function(){function n(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return n.prototype.generateCmap=function(){var e,t,r,i,A;for(t in i=this.font.cmap.tables[0].codeMap,e={},A=this.subset)r=A[t],e[t]=i[r];return e},n.prototype.glyphsFor=function(e){var t,r,i,A,s,a,o;for(i={},s=0,a=e.length;s<a;s++)i[A=e[s]]=this.font.glyf.glyphFor(A);for(A in t=[],i)(r=i[A])!=null&&r.compound&&t.push.apply(t,r.glyphIDs);if(t.length>0)for(A in o=this.glyphsFor(t))r=o[A],i[A]=r;return i},n.prototype.encode=function(e,t){var r,i,A,s,a,o,l,u,f,h,c,m,g,w,p;for(i in r=z2.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(e),c={0:0},p=r.charMap)c[(o=p[i]).old]=o.new;for(m in h=r.maxGlyphID,s)m in c||(c[m]=h++);return u=function(v){var b,B;for(b in B={},v)B[v[b]]=b;return B}(c),f=Object.keys(u).sort(function(v,b){return v-b}),g=function(){var v,b,B;for(B=[],v=0,b=f.length;v<b;v++)a=f[v],B.push(u[a]);return B}(),A=this.font.glyf.encode(s,g,c),l=this.font.loca.encode(A.offsets,g),w={cmap:this.font.cmap.raw(),glyf:A.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(w["OS/2"]=this.font.os2.raw()),this.font.directory.encode(w)},n}();bt.API.PDFObject=function(){var n;function e(){}return n=function(t,r){return(Array(r+1).join("0")+t).slice(-r)},e.convert=function(t){var r,i,A,s;if(Array.isArray(t))return"["+function(){var a,o,l;for(l=[],a=0,o=t.length;a<o;a++)r=t[a],l.push(e.convert(r));return l}().join(" ")+"]";if(typeof t=="string")return"/"+t;if(t?.isString)return"("+t+")";if(t instanceof Date)return"(D:"+n(t.getUTCFullYear(),4)+n(t.getUTCMonth(),2)+n(t.getUTCDate(),2)+n(t.getUTCHours(),2)+n(t.getUTCMinutes(),2)+n(t.getUTCSeconds(),2)+"Z)";if({}.toString.call(t)==="[object Object]"){for(i in A=["<<"],t)s=t[i],A.push("/"+i+" "+e.convert(s));return A.push(">>"),A.join(`
`)}return""+t},e}();/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var rp=function(n,e){return rp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},rp(n,e)};function uA(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");rp(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var np=function(){return np=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var A in t)Object.prototype.hasOwnProperty.call(t,A)&&(e[A]=t[A])}return e},np.apply(this,arguments)};function ei(n,e,t,r){function i(A){return A instanceof t?A:new t(function(s){s(A)})}return new(t||(t=Promise))(function(A,s){function a(u){try{l(r.next(u))}catch(f){s(f)}}function o(u){try{l(r.throw(u))}catch(f){s(f)}}function l(u){u.done?A(u.value):i(u.value).then(a,o)}l((r=r.apply(n,[])).next())})}function jn(n,e){var t={label:0,sent:function(){if(A[0]&1)throw A[1];return A[1]},trys:[],ops:[]},r,i,A,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(u){return o([l,u])}}function o(l){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,i&&(A=l[0]&2?i.return:l[0]?i.throw||((A=i.return)&&A.call(i),0):i.next)&&!(A=A.call(i,l[1])).done)return A;switch(i=0,A&&(l=[l[0]&2,A.value]),l[0]){case 0:case 1:A=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(A=t.trys,!(A=A.length>0&&A[A.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!A||l[1]>A[0]&&l[1]<A[3])){t.label=l[1];break}if(l[0]===6&&t.label<A[1]){t.label=A[1],A=l;break}if(A&&t.label<A[2]){t.label=A[2],t.ops.push(l);break}A[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(n,t)}catch(u){l=[6,u],i=0}finally{r=A=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Gc(n,e,t){if(arguments.length===2)for(var r=0,i=e.length,A;r<i;r++)(A||!(r in e))&&(A||(A=Array.prototype.slice.call(e,0,r)),A[r]=e[r]);return n.concat(A||e)}for(var cs=function(){function n(e,t,r,i){this.left=e,this.top=t,this.width=r,this.height=i}return n.prototype.add=function(e,t,r,i){return new n(this.left+e,this.top+t,this.width+r,this.height+i)},n.fromClientRect=function(e,t){return new n(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},n.fromDOMRectList=function(e,t){var r=Array.from(t).find(function(i){return i.width!==0});return r?new n(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):n.EMPTY},n.EMPTY=new n(0,0,0,0),n}(),zc=function(n,e){return cs.fromClientRect(n,e.getBoundingClientRect())},KU=function(n){var e=n.body,t=n.documentElement;if(!e||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),i=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new cs(0,0,r,i)},Wc=function(n){for(var e=[],t=0,r=n.length;t<r;){var i=n.charCodeAt(t++);if(i>=55296&&i<=56319&&t<r){var A=n.charCodeAt(t++);(A&64512)===56320?e.push(((i&1023)<<10)+(A&1023)+65536):(e.push(i),t--)}else e.push(i)}return e},Yr=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,n);var t=n.length;if(!t)return"";for(var r=[],i=-1,A="";++i<t;){var s=n[i];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(i+1===t||r.length>16384)&&(A+=String.fromCharCode.apply(String,r),r.length=0)}return A},X2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",VU=typeof Uint8Array>"u"?[]:new Uint8Array(256),Xc=0;Xc<X2.length;Xc++)VU[X2.charCodeAt(Xc)]=Xc;for(var Y2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$l=typeof Uint8Array>"u"?[]:new Uint8Array(256),Yc=0;Yc<Y2.length;Yc++)$l[Y2.charCodeAt(Yc)]=Yc;for(var GU=function(n){var e=n.length*.75,t=n.length,r,i=0,A,s,a,o;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(r=0;r<t;r+=4)A=$l[n.charCodeAt(r)],s=$l[n.charCodeAt(r+1)],a=$l[n.charCodeAt(r+2)],o=$l[n.charCodeAt(r+3)],u[i++]=A<<2|s>>4,u[i++]=(s&15)<<4|a>>2,u[i++]=(a&3)<<6|o&63;return l},zU=function(n){for(var e=n.length,t=[],r=0;r<e;r+=2)t.push(n[r+1]<<8|n[r]);return t},WU=function(n){for(var e=n.length,t=[],r=0;r<e;r+=4)t.push(n[r+3]<<24|n[r+2]<<16|n[r+1]<<8|n[r]);return t},Ka=5,ip=11,Ap=2,XU=ip-Ka,$2=65536>>Ka,YU=1<<Ka,sp=YU-1,$U=1024>>Ka,JU=$2+$U,ZU=JU,eN=32,tN=ZU+eN,rN=65536>>ip,nN=1<<XU,iN=nN-1,J2=function(n,e,t){return n.slice?n.slice(e,t):new Uint16Array(Array.prototype.slice.call(n,e,t))},AN=function(n,e,t){return n.slice?n.slice(e,t):new Uint32Array(Array.prototype.slice.call(n,e,t))},sN=function(n,e){var t=GU(n),r=Array.isArray(t)?WU(t):new Uint32Array(t),i=Array.isArray(t)?zU(t):new Uint16Array(t),A=24,s=J2(i,A/2,r[4]/2),a=r[5]===2?J2(i,(A+r[4])/2):AN(r,Math.ceil((A+r[4])/4));return new aN(r[0],r[1],r[2],r[3],s,a)},aN=function(){function n(e,t,r,i,A,s){this.initialValue=e,this.errorValue=t,this.highStart=r,this.highValueIndex=i,this.index=A,this.data=s}return n.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Ka],t=(t<<Ap)+(e&sp),this.data[t];if(e<=65535)return t=this.index[$2+(e-55296>>Ka)],t=(t<<Ap)+(e&sp),this.data[t];if(e<this.highStart)return t=tN-rN+(e>>ip),t=this.index[t],t+=e>>Ka&iN,t=this.index[t],t=(t<<Ap)+(e&sp),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},n}(),Z2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oN=typeof Uint8Array>"u"?[]:new Uint8Array(256),$c=0;$c<Z2.length;$c++)oN[Z2.charCodeAt($c)]=$c;var lN="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",eb=50,uN=1,tb=2,rb=3,cN=4,fN=5,nb=7,ib=8,Ab=9,Ys=10,ap=11,sb=12,op=13,hN=14,Jl=15,lp=16,Jc=17,Zl=18,dN=19,ab=20,up=21,eu=22,cp=23,qo=24,Fi=25,tu=26,ru=27,jo=28,pN=29,Va=30,gN=31,Zc=32,ef=33,fp=34,hp=35,dp=36,nu=37,pp=38,tf=39,rf=40,gp=41,ob=42,mN=43,vN=[9001,65288],lb="!",qt="×",nf="÷",mp=sN(lN),fs=[Va,dp],vp=[uN,tb,rb,fN],ub=[Ys,ib],cb=[ru,tu],wN=vp.concat(ub),fb=[pp,tf,rf,fp,hp],yN=[Jl,op],bN=function(n,e){e===void 0&&(e="strict");var t=[],r=[],i=[];return n.forEach(function(A,s){var a=mp.get(A);if(a>eb?(i.push(!0),a-=eb):i.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(A)!==-1)return r.push(s),t.push(lp);if(a===cN||a===ap){if(s===0)return r.push(s),t.push(Va);var o=t[s-1];return wN.indexOf(o)===-1?(r.push(r[s-1]),t.push(o)):(r.push(s),t.push(Va))}if(r.push(s),a===gN)return t.push(e==="strict"?up:nu);if(a===ob||a===pN)return t.push(Va);if(a===mN)return A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(nu):t.push(Va);t.push(a)}),[r,t,i]},wp=function(n,e,t,r){var i=r[t];if(Array.isArray(n)?n.indexOf(i)!==-1:n===i)for(var A=t;A<=r.length;){A++;var s=r[A];if(s===e)return!0;if(s!==Ys)break}if(i===Ys)for(var A=t;A>0;){A--;var a=r[A];if(Array.isArray(n)?n.indexOf(a)!==-1:n===a)for(var o=t;o<=r.length;){o++;var s=r[o];if(s===e)return!0;if(s!==Ys)break}if(a!==Ys)break}return!1},hb=function(n,e){for(var t=n;t>=0;){var r=e[t];if(r===Ys)t--;else return r}return 0},BN=function(n,e,t,r,i){if(t[r]===0)return qt;var A=r-1;if(Array.isArray(i)&&i[A]===!0)return qt;var s=A-1,a=A+1,o=e[A],l=s>=0?e[s]:0,u=e[a];if(o===tb&&u===rb)return qt;if(vp.indexOf(o)!==-1)return lb;if(vp.indexOf(u)!==-1||ub.indexOf(u)!==-1)return qt;if(hb(A,e)===ib)return nf;if(mp.get(n[A])===ap||(o===Zc||o===ef)&&mp.get(n[a])===ap||o===nb||u===nb||o===Ab||[Ys,op,Jl].indexOf(o)===-1&&u===Ab||[Jc,Zl,dN,qo,jo].indexOf(u)!==-1||hb(A,e)===eu||wp(cp,eu,A,e)||wp([Jc,Zl],up,A,e)||wp(sb,sb,A,e))return qt;if(o===Ys)return nf;if(o===cp||u===cp)return qt;if(u===lp||o===lp)return nf;if([op,Jl,up].indexOf(u)!==-1||o===hN||l===dp&&yN.indexOf(o)!==-1||o===jo&&u===dp||u===ab||fs.indexOf(u)!==-1&&o===Fi||fs.indexOf(o)!==-1&&u===Fi||o===ru&&[nu,Zc,ef].indexOf(u)!==-1||[nu,Zc,ef].indexOf(o)!==-1&&u===tu||fs.indexOf(o)!==-1&&cb.indexOf(u)!==-1||cb.indexOf(o)!==-1&&fs.indexOf(u)!==-1||[ru,tu].indexOf(o)!==-1&&(u===Fi||[eu,Jl].indexOf(u)!==-1&&e[a+1]===Fi)||[eu,Jl].indexOf(o)!==-1&&u===Fi||o===Fi&&[Fi,jo,qo].indexOf(u)!==-1)return qt;if([Fi,jo,qo,Jc,Zl].indexOf(u)!==-1)for(var f=A;f>=0;){var h=e[f];if(h===Fi)return qt;if([jo,qo].indexOf(h)!==-1)f--;else break}if([ru,tu].indexOf(u)!==-1)for(var f=[Jc,Zl].indexOf(o)!==-1?s:A;f>=0;){var h=e[f];if(h===Fi)return qt;if([jo,qo].indexOf(h)!==-1)f--;else break}if(pp===o&&[pp,tf,fp,hp].indexOf(u)!==-1||[tf,fp].indexOf(o)!==-1&&[tf,rf].indexOf(u)!==-1||[rf,hp].indexOf(o)!==-1&&u===rf||fb.indexOf(o)!==-1&&[ab,tu].indexOf(u)!==-1||fb.indexOf(u)!==-1&&o===ru||fs.indexOf(o)!==-1&&fs.indexOf(u)!==-1||o===qo&&fs.indexOf(u)!==-1||fs.concat(Fi).indexOf(o)!==-1&&u===eu&&vN.indexOf(n[a])===-1||fs.concat(Fi).indexOf(u)!==-1&&o===Zl)return qt;if(o===gp&&u===gp){for(var c=t[A],m=1;c>0&&(c--,e[c]===gp);)m++;if(m%2!==0)return qt}return o===Zc&&u===ef?qt:nf},CN=function(n,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=bN(n,e.lineBreak),r=t[0],i=t[1],A=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(i=i.map(function(a){return[Fi,Va,ob].indexOf(a)!==-1?nu:a}));var s=e.wordBreak==="keep-all"?A.map(function(a,o){return a&&n[o]>=19968&&n[o]<=40959}):void 0;return[r,i,s]},EN=function(){function n(e,t,r,i){this.codePoints=e,this.required=t===lb,this.start=r,this.end=i}return n.prototype.slice=function(){return Yr.apply(void 0,this.codePoints.slice(this.start,this.end))},n}(),xN=function(n,e){var t=Wc(n),r=CN(t,e),i=r[0],A=r[1],s=r[2],a=t.length,o=0,l=0;return{next:function(){if(l>=a)return{done:!0,value:null};for(var u=qt;l<a&&(u=BN(t,A,i,++l,s))===qt;);if(u!==qt||l===a){var f=new EN(t,u,o,l);return o=l,{value:f,done:!1}}return{done:!0,value:null}}}},SN=1,FN=2,iu=4,db=8,Af=10,pb=47,Au=92,_N=9,TN=32,sf=34,su=61,IN=35,UN=36,NN=37,af=39,of=40,au=41,LN=95,di=45,ON=33,QN=60,RN=62,PN=64,kN=91,DN=93,MN=61,HN=123,lf=63,qN=125,gb=124,jN=126,KN=128,mb=65533,yp=42,Ga=43,VN=44,GN=58,zN=59,ou=46,WN=0,XN=8,YN=11,$N=14,JN=31,ZN=127,kA=-1,vb=48,wb=97,yb=101,e6=102,t6=117,r6=122,bb=65,Bb=69,Cb=70,n6=85,i6=90,Kn=function(n){return n>=vb&&n<=57},A6=function(n){return n>=55296&&n<=57343},Ko=function(n){return Kn(n)||n>=bb&&n<=Cb||n>=wb&&n<=e6},s6=function(n){return n>=wb&&n<=r6},a6=function(n){return n>=bb&&n<=i6},o6=function(n){return s6(n)||a6(n)},l6=function(n){return n>=KN},uf=function(n){return n===Af||n===_N||n===TN},cf=function(n){return o6(n)||l6(n)||n===LN},Eb=function(n){return cf(n)||Kn(n)||n===di},u6=function(n){return n>=WN&&n<=XN||n===YN||n>=$N&&n<=JN||n===ZN},$s=function(n,e){return n!==Au?!1:e!==Af},ff=function(n,e,t){return n===di?cf(e)||$s(e,t):cf(n)?!0:!!(n===Au&&$s(n,e))},bp=function(n,e,t){return n===Ga||n===di?Kn(e)?!0:e===ou&&Kn(t):Kn(n===ou?e:n)},c6=function(n){var e=0,t=1;(n[e]===Ga||n[e]===di)&&(n[e]===di&&(t=-1),e++);for(var r=[];Kn(n[e]);)r.push(n[e++]);var i=r.length?parseInt(Yr.apply(void 0,r),10):0;n[e]===ou&&e++;for(var A=[];Kn(n[e]);)A.push(n[e++]);var s=A.length,a=s?parseInt(Yr.apply(void 0,A),10):0;(n[e]===Bb||n[e]===yb)&&e++;var o=1;(n[e]===Ga||n[e]===di)&&(n[e]===di&&(o=-1),e++);for(var l=[];Kn(n[e]);)l.push(n[e++]);var u=l.length?parseInt(Yr.apply(void 0,l),10):0;return t*(i+a*Math.pow(10,-s))*Math.pow(10,o*u)},f6={type:2},h6={type:3},d6={type:4},p6={type:13},g6={type:8},m6={type:21},v6={type:9},w6={type:10},y6={type:11},b6={type:12},B6={type:14},hf={type:23},C6={type:1},E6={type:25},x6={type:24},S6={type:26},F6={type:27},_6={type:28},T6={type:29},I6={type:31},Bp={type:32},xb=function(){function n(){this._value=[]}return n.prototype.write=function(e){this._value=this._value.concat(Wc(e))},n.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Bp;)e.push(t),t=this.consumeToken();return e},n.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case sf:return this.consumeStringToken(sf);case IN:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),i=this.peekCodePoint(2);if(Eb(t)||$s(r,i)){var A=ff(t,r,i)?FN:SN,s=this.consumeName();return{type:5,value:s,flags:A}}break;case UN:if(this.peekCodePoint(0)===su)return this.consumeCodePoint(),p6;break;case af:return this.consumeStringToken(af);case of:return f6;case au:return h6;case yp:if(this.peekCodePoint(0)===su)return this.consumeCodePoint(),B6;break;case Ga:if(bp(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case VN:return d6;case di:var a=e,o=this.peekCodePoint(0),l=this.peekCodePoint(1);if(bp(a,o,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(ff(a,o,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(o===di&&l===RN)return this.consumeCodePoint(),this.consumeCodePoint(),x6;break;case ou:if(bp(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case pb:if(this.peekCodePoint(0)===yp)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===yp&&(u=this.consumeCodePoint(),u===pb))return this.consumeToken();if(u===kA)return this.consumeToken()}break;case GN:return S6;case zN:return F6;case QN:if(this.peekCodePoint(0)===ON&&this.peekCodePoint(1)===di&&this.peekCodePoint(2)===di)return this.consumeCodePoint(),this.consumeCodePoint(),E6;break;case PN:var f=this.peekCodePoint(0),h=this.peekCodePoint(1),c=this.peekCodePoint(2);if(ff(f,h,c)){var s=this.consumeName();return{type:7,value:s}}break;case kN:return _6;case Au:if($s(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case DN:return T6;case MN:if(this.peekCodePoint(0)===su)return this.consumeCodePoint(),g6;break;case HN:return y6;case qN:return b6;case t6:case n6:var m=this.peekCodePoint(0),g=this.peekCodePoint(1);return m===Ga&&(Ko(g)||g===lf)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case gb:if(this.peekCodePoint(0)===su)return this.consumeCodePoint(),v6;if(this.peekCodePoint(0)===gb)return this.consumeCodePoint(),m6;break;case jN:if(this.peekCodePoint(0)===su)return this.consumeCodePoint(),w6;break;case kA:return Bp}return uf(e)?(this.consumeWhiteSpace(),I6):Kn(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):cf(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:Yr(e)}},n.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},n.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},n.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},n.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Ko(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var r=!1;t===lf&&e.length<6;)e.push(t),t=this.consumeCodePoint(),r=!0;if(r){var i=parseInt(Yr.apply(void 0,e.map(function(o){return o===lf?vb:o})),16),A=parseInt(Yr.apply(void 0,e.map(function(o){return o===lf?Cb:o})),16);return{type:30,start:i,end:A}}var s=parseInt(Yr.apply(void 0,e),16);if(this.peekCodePoint(0)===di&&Ko(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var a=[];Ko(t)&&a.length<6;)a.push(t),t=this.consumeCodePoint();var A=parseInt(Yr.apply(void 0,a),16);return{type:30,start:s,end:A}}else return{type:30,start:s,end:s}},n.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===of?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===of?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},n.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===kA)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===af||t===sf){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===kA||this.peekCodePoint(0)===au)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),hf)}for(;;){var i=this.consumeCodePoint();if(i===kA||i===au)return{type:22,value:Yr.apply(void 0,e)};if(uf(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===kA||this.peekCodePoint(0)===au?(this.consumeCodePoint(),{type:22,value:Yr.apply(void 0,e)}):(this.consumeBadUrlRemnants(),hf);if(i===sf||i===af||i===of||u6(i))return this.consumeBadUrlRemnants(),hf;if(i===Au)if($s(i,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),hf;else e.push(i)}},n.prototype.consumeWhiteSpace=function(){for(;uf(this.peekCodePoint(0));)this.consumeCodePoint()},n.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===au||e===kA)return;$s(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},n.prototype.consumeStringSlice=function(e){for(var t=5e4,r="";e>0;){var i=Math.min(t,e);r+=Yr.apply(void 0,this._value.splice(0,i)),e-=i}return this._value.shift(),r},n.prototype.consumeStringToken=function(e){var t="",r=0;do{var i=this._value[r];if(i===kA||i===void 0||i===e)return t+=this.consumeStringSlice(r),{type:0,value:t};if(i===Af)return this._value.splice(0,r),C6;if(i===Au){var A=this._value[r+1];A!==kA&&A!==void 0&&(A===Af?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):$s(i,A)&&(t+=this.consumeStringSlice(r),t+=Yr(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},n.prototype.consumeNumber=function(){var e=[],t=iu,r=this.peekCodePoint(0);for((r===Ga||r===di)&&e.push(this.consumeCodePoint());Kn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(r===ou&&Kn(i))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=db;Kn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0),i=this.peekCodePoint(1);var A=this.peekCodePoint(2);if((r===Bb||r===yb)&&((i===Ga||i===di)&&Kn(A)||Kn(i)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=db;Kn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[c6(e),t]},n.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],r=e[1],i=this.peekCodePoint(0),A=this.peekCodePoint(1),s=this.peekCodePoint(2);if(ff(i,A,s)){var a=this.consumeName();return{type:15,number:t,flags:r,unit:a}}return i===NN?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},n.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Ko(e)){for(var t=Yr(e);Ko(this.peekCodePoint(0))&&t.length<6;)t+=Yr(this.consumeCodePoint());uf(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||A6(r)||r>1114111?mb:r}return e===kA?mb:e},n.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(Eb(t))e+=Yr(t);else if($s(t,this.peekCodePoint(0)))e+=Yr(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},n}(),Sb=function(){function n(e){this._tokens=e}return n.create=function(e){var t=new xb;return t.write(e),new n(t.read())},n.parseValue=function(e){return n.create(e).parseComponentValue()},n.parseValues=function(e){return n.create(e).parseComponentValues()},n.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},n.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},n.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},n.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},r=this.consumeToken();;){if(r.type===32||N6(r,e))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},n.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},n.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Bp:e},n.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},n}(),lu=function(n){return n.type===15},Vo=function(n){return n.type===17},or=function(n){return n.type===20},U6=function(n){return n.type===0},Cp=function(n,e){return or(n)&&n.value===e},Fb=function(n){return n.type!==31},Go=function(n){return n.type!==31&&n.type!==4},DA=function(n){var e=[],t=[];return n.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&e.push(t),e},N6=function(n,e){return e===11&&n.type===12||e===28&&n.type===29?!0:e===2&&n.type===3},Js=function(n){return n.type===17||n.type===15},An=function(n){return n.type===16||Js(n)},_b=function(n){return n.length>1?[n[0],n[1]]:[n[0]]},Tn={type:17,number:0,flags:iu},Ep={type:16,number:50,flags:iu},Zs={type:16,number:100,flags:iu},uu=function(n,e,t){var r=n[0],i=n[1];return[vr(r,e),vr(typeof i<"u"?i:r,t)]},vr=function(n,e){if(n.type===16)return n.number/100*e;if(lu(n))switch(n.unit){case"rem":case"em":return 16*n.number;case"px":default:return n.number}return n.number},Tb="deg",Ib="grad",Ub="rad",Nb="turn",df={name:"angle",parse:function(n,e){if(e.type===15)switch(e.unit){case Tb:return Math.PI*e.number/180;case Ib:return Math.PI/200*e.number;case Ub:return e.number;case Nb:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Lb=function(n){return n.type===15&&(n.unit===Tb||n.unit===Ib||n.unit===Ub||n.unit===Nb)},Ob=function(n){var e=n.filter(or).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Tn,Tn];case"to top":case"bottom":return ki(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Tn,Zs];case"to right":case"left":return ki(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Zs,Zs];case"to bottom":case"top":return ki(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Zs,Tn];case"to left":case"right":return ki(270)}return 0},ki=function(n){return Math.PI*n/180},ea={name:"color",parse:function(n,e){if(e.type===18){var t=L6[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(n,e.values)}if(e.type===5){if(e.value.length===3){var r=e.value.substring(0,1),i=e.value.substring(1,2),A=e.value.substring(2,3);return ra(parseInt(r+r,16),parseInt(i+i,16),parseInt(A+A,16),1)}if(e.value.length===4){var r=e.value.substring(0,1),i=e.value.substring(1,2),A=e.value.substring(2,3),s=e.value.substring(3,4);return ra(parseInt(r+r,16),parseInt(i+i,16),parseInt(A+A,16),parseInt(s+s,16)/255)}if(e.value.length===6){var r=e.value.substring(0,2),i=e.value.substring(2,4),A=e.value.substring(4,6);return ra(parseInt(r,16),parseInt(i,16),parseInt(A,16),1)}if(e.value.length===8){var r=e.value.substring(0,2),i=e.value.substring(2,4),A=e.value.substring(4,6),s=e.value.substring(6,8);return ra(parseInt(r,16),parseInt(i,16),parseInt(A,16),parseInt(s,16)/255)}}if(e.type===20){var a=hs[e.value.toUpperCase()];if(typeof a<"u")return a}return hs.TRANSPARENT}},ta=function(n){return(255&n)===0},wn=function(n){var e=255&n,t=255&n>>8,r=255&n>>16,i=255&n>>24;return e<255?"rgba("+i+","+r+","+t+","+e/255+")":"rgb("+i+","+r+","+t+")"},ra=function(n,e,t,r){return(n<<24|e<<16|t<<8|Math.round(r*255)<<0)>>>0},Qb=function(n,e){if(n.type===17)return n.number;if(n.type===16){var t=e===3?1:255;return e===3?n.number/100*t:Math.round(n.number/100*t)}return 0},Rb=function(n,e){var t=e.filter(Go);if(t.length===3){var r=t.map(Qb),i=r[0],A=r[1],s=r[2];return ra(i,A,s,1)}if(t.length===4){var a=t.map(Qb),i=a[0],A=a[1],s=a[2],o=a[3];return ra(i,A,s,o)}return 0};function xp(n,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-n)*t*6+n:t<1/2?e:t<2/3?(e-n)*6*(2/3-t)+n:n}var Pb=function(n,e){var t=e.filter(Go),r=t[0],i=t[1],A=t[2],s=t[3],a=(r.type===17?ki(r.number):df.parse(n,r))/(Math.PI*2),o=An(i)?i.number/100:0,l=An(A)?A.number/100:0,u=typeof s<"u"&&An(s)?vr(s,1):1;if(o===0)return ra(l*255,l*255,l*255,1);var f=l<=.5?l*(o+1):l+o-l*o,h=l*2-f,c=xp(h,f,a+1/3),m=xp(h,f,a),g=xp(h,f,a-1/3);return ra(c*255,m*255,g*255,u)},L6={hsl:Pb,hsla:Pb,rgb:Rb,rgba:Rb},cu=function(n,e){return ea.parse(n,Sb.create(e).parseComponentValue())},hs={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},O6={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(n,e){return e.map(function(t){if(or(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Q6={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pf=function(n,e){var t=ea.parse(n,e[0]),r=e[1];return r&&An(r)?{color:t,stop:r}:{color:t,stop:null}},kb=function(n,e){var t=n[0],r=n[n.length-1];t.stop===null&&(t.stop=Tn),r.stop===null&&(r.stop=Zs);for(var i=[],A=0,s=0;s<n.length;s++){var a=n[s].stop;if(a!==null){var o=vr(a,e);o>A?i.push(o):i.push(A),A=o}else i.push(null)}for(var l=null,s=0;s<i.length;s++){var u=i[s];if(u===null)l===null&&(l=s);else if(l!==null){for(var f=s-l,h=i[l-1],c=(u-h)/(f+1),m=1;m<=f;m++)i[l+m-1]=c*m;l=null}}return n.map(function(g,w){var p=g.color;return{color:p,stop:Math.max(Math.min(1,i[w]/e),0)}})},R6=function(n,e,t){var r=e/2,i=t/2,A=vr(n[0],e)-r,s=i-vr(n[1],t);return(Math.atan2(s,A)+Math.PI*2)%(Math.PI*2)},P6=function(n,e,t){var r=typeof n=="number"?n:R6(n,e,t),i=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r)),A=e/2,s=t/2,a=i/2,o=Math.sin(r-Math.PI/2)*a,l=Math.cos(r-Math.PI/2)*a;return[i,A-l,A+l,s-o,s+o]},cA=function(n,e){return Math.sqrt(n*n+e*e)},Db=function(n,e,t,r,i){var A=[[0,0],[0,e],[n,0],[n,e]];return A.reduce(function(s,a){var o=a[0],l=a[1],u=cA(t-o,r-l);return(i?u<s.optimumDistance:u>s.optimumDistance)?{optimumCorner:a,optimumDistance:u}:s},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},k6=function(n,e,t,r,i){var A=0,s=0;switch(n.size){case 0:n.shape===0?A=s=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-i)):n.shape===1&&(A=Math.min(Math.abs(e),Math.abs(e-r)),s=Math.min(Math.abs(t),Math.abs(t-i)));break;case 2:if(n.shape===0)A=s=Math.min(cA(e,t),cA(e,t-i),cA(e-r,t),cA(e-r,t-i));else if(n.shape===1){var a=Math.min(Math.abs(t),Math.abs(t-i))/Math.min(Math.abs(e),Math.abs(e-r)),o=Db(r,i,e,t,!0),l=o[0],u=o[1];A=cA(l-e,(u-t)/a),s=a*A}break;case 1:n.shape===0?A=s=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-i)):n.shape===1&&(A=Math.max(Math.abs(e),Math.abs(e-r)),s=Math.max(Math.abs(t),Math.abs(t-i)));break;case 3:if(n.shape===0)A=s=Math.max(cA(e,t),cA(e,t-i),cA(e-r,t),cA(e-r,t-i));else if(n.shape===1){var a=Math.max(Math.abs(t),Math.abs(t-i))/Math.max(Math.abs(e),Math.abs(e-r)),f=Db(r,i,e,t,!1),l=f[0],u=f[1];A=cA(l-e,(u-t)/a),s=a*A}break}return Array.isArray(n.size)&&(A=vr(n.size[0],r),s=n.size.length===2?vr(n.size[1],i):A),[A,s]},D6=function(n,e){var t=ki(180),r=[];return DA(e).forEach(function(i,A){if(A===0){var s=i[0];if(s.type===20&&s.value==="to"){t=Ob(i);return}else if(Lb(s)){t=df.parse(n,s);return}}var a=pf(n,i);r.push(a)}),{angle:t,stops:r,type:1}},gf=function(n,e){var t=ki(180),r=[];return DA(e).forEach(function(i,A){if(A===0){var s=i[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){t=Ob(i);return}else if(Lb(s)){t=(df.parse(n,s)+ki(270))%ki(360);return}}var a=pf(n,i);r.push(a)}),{angle:t,stops:r,type:1}},M6=function(n,e){var t=ki(180),r=[],i=1,A=0,s=3,a=[];return DA(e).forEach(function(o,l){var u=o[0];if(l===0){if(or(u)&&u.value==="linear"){i=1;return}else if(or(u)&&u.value==="radial"){i=2;return}}if(u.type===18){if(u.name==="from"){var f=ea.parse(n,u.values[0]);r.push({stop:Tn,color:f})}else if(u.name==="to"){var f=ea.parse(n,u.values[0]);r.push({stop:Zs,color:f})}else if(u.name==="color-stop"){var h=u.values.filter(Go);if(h.length===2){var f=ea.parse(n,h[1]),c=h[0];Vo(c)&&r.push({stop:{type:16,number:c.number*100,flags:c.flags},color:f})}}}}),i===1?{angle:(t+ki(180))%ki(360),stops:r,type:i}:{size:s,shape:A,stops:r,position:a,type:i}},Mb="closest-side",Hb="farthest-side",qb="closest-corner",jb="farthest-corner",Kb="circle",Vb="ellipse",Gb="cover",zb="contain",H6=function(n,e){var t=0,r=3,i=[],A=[];return DA(e).forEach(function(s,a){var o=!0;if(a===0){var l=!1;o=s.reduce(function(f,h){if(l)if(or(h))switch(h.value){case"center":return A.push(Ep),f;case"top":case"left":return A.push(Tn),f;case"right":case"bottom":return A.push(Zs),f}else(An(h)||Js(h))&&A.push(h);else if(or(h))switch(h.value){case Kb:return t=0,!1;case Vb:return t=1,!1;case"at":return l=!0,!1;case Mb:return r=0,!1;case Gb:case Hb:return r=1,!1;case zb:case qb:return r=2,!1;case jb:return r=3,!1}else if(Js(h)||An(h))return Array.isArray(r)||(r=[]),r.push(h),!1;return f},o)}if(o){var u=pf(n,s);i.push(u)}}),{size:r,shape:t,stops:i,position:A,type:2}},mf=function(n,e){var t=0,r=3,i=[],A=[];return DA(e).forEach(function(s,a){var o=!0;if(a===0?o=s.reduce(function(u,f){if(or(f))switch(f.value){case"center":return A.push(Ep),!1;case"top":case"left":return A.push(Tn),!1;case"right":case"bottom":return A.push(Zs),!1}else if(An(f)||Js(f))return A.push(f),!1;return u},o):a===1&&(o=s.reduce(function(u,f){if(or(f))switch(f.value){case Kb:return t=0,!1;case Vb:return t=1,!1;case zb:case Mb:return r=0,!1;case Hb:return r=1,!1;case qb:return r=2,!1;case Gb:case jb:return r=3,!1}else if(Js(f)||An(f))return Array.isArray(r)||(r=[]),r.push(f),!1;return u},o)),o){var l=pf(n,s);i.push(l)}}),{size:r,shape:t,stops:i,position:A,type:2}},q6=function(n){return n.type===1},j6=function(n){return n.type===2},Sp={name:"image",parse:function(n,e){if(e.type===22){var t={url:e.value,type:0};return n.cache.addImage(e.value),t}if(e.type===18){var r=Wb[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(n,e.values)}throw new Error("Unsupported image type "+e.type)}};function K6(n){return!(n.type===20&&n.value==="none")&&(n.type!==18||!!Wb[n.name])}var Wb={"linear-gradient":D6,"-moz-linear-gradient":gf,"-ms-linear-gradient":gf,"-o-linear-gradient":gf,"-webkit-linear-gradient":gf,"radial-gradient":H6,"-moz-radial-gradient":mf,"-ms-radial-gradient":mf,"-o-radial-gradient":mf,"-webkit-radial-gradient":mf,"-webkit-gradient":M6},V6={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(n,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(r){return Go(r)&&K6(r)}).map(function(r){return Sp.parse(n,r)})}},G6={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(n,e){return e.map(function(t){if(or(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},z6={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(n,e){return DA(e).map(function(t){return t.filter(An)}).map(_b)}},W6={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(n,e){return DA(e).map(function(t){return t.filter(or).map(function(r){return r.value}).join(" ")}).map(X6)}},X6=function(n){switch(n){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},zo;(function(n){n.AUTO="auto",n.CONTAIN="contain",n.COVER="cover"})(zo||(zo={}));var Y6={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(n,e){return DA(e).map(function(t){return t.filter($6)})}},$6=function(n){return or(n)||An(n)},vf=function(n){return{name:"border-"+n+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},J6=vf("top"),Z6=vf("right"),eL=vf("bottom"),tL=vf("left"),wf=function(n){return{name:"border-radius-"+n,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return _b(t.filter(An))}}},rL=wf("top-left"),nL=wf("top-right"),iL=wf("bottom-right"),AL=wf("bottom-left"),yf=function(n){return{name:"border-"+n+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},sL=yf("top"),aL=yf("right"),oL=yf("bottom"),lL=yf("left"),bf=function(n){return{name:"border-"+n+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return lu(t)?t.number:0}}},uL=bf("top"),cL=bf("right"),fL=bf("bottom"),hL=bf("left"),dL={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pL={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(n,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},gL={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(n,e){return e.filter(or).reduce(function(t,r){return t|mL(r.value)},0)}},mL=function(n){switch(n){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},vL={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(n,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},wL={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(n,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Bf;(function(n){n.NORMAL="normal",n.STRICT="strict"})(Bf||(Bf={}));var yL={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(n,e){switch(e){case"strict":return Bf.STRICT;case"normal":default:return Bf.NORMAL}}},bL={name:"line-height",initialValue:"normal",prefix:!1,type:4},Xb=function(n,e){return or(n)&&n.value==="normal"?1.2*e:n.type===17?e*n.number:An(n)?vr(n,e):e},BL={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(n,e){return e.type===20&&e.value==="none"?null:Sp.parse(n,e)}},CL={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(n,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},Fp={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(n,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Cf=function(n){return{name:"margin-"+n,initialValue:"0",prefix:!1,type:4}},EL=Cf("top"),xL=Cf("right"),SL=Cf("bottom"),FL=Cf("left"),_L={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(n,e){return e.filter(or).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},TL={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(n,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ef=function(n){return{name:"padding-"+n,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},IL=Ef("top"),UL=Ef("right"),NL=Ef("bottom"),LL=Ef("left"),OL={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(n,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},QL={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(n,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},RL={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(n,e){return e.length===1&&Cp(e[0],"none")?[]:DA(e).map(function(t){for(var r={color:hs.TRANSPARENT,offsetX:Tn,offsetY:Tn,blur:Tn},i=0,A=0;A<t.length;A++){var s=t[A];Js(s)?(i===0?r.offsetX=s:i===1?r.offsetY=s:r.blur=s,i++):r.color=ea.parse(n,s)}return r})}},PL={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(n,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},kL={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(n,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var t=HL[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},DL=function(n){var e=n.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},ML=function(n){var e=n.filter(function(o){return o.type===17}).map(function(o){return o.number}),t=e[0],r=e[1];e[2],e[3];var i=e[4],A=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],a=e[13];return e[14],e[15],e.length===16?[t,r,i,A,s,a]:null},HL={matrix:DL,matrix3d:ML},Yb={type:16,number:50,flags:iu},qL=[Yb,Yb],jL={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(n,e){var t=e.filter(An);return t.length!==2?qL:[t[0],t[1]]}},KL={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(n,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},fu;(function(n){n.NORMAL="normal",n.BREAK_ALL="break-all",n.KEEP_ALL="keep-all"})(fu||(fu={}));for(var VL={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(n,e){switch(e){case"break-all":return fu.BREAK_ALL;case"keep-all":return fu.KEEP_ALL;case"normal":default:return fu.NORMAL}}},GL={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(n,e){if(e.type===20)return{auto:!0,order:0};if(Vo(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},$b={name:"time",parse:function(n,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},zL={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(n,e){return Vo(e)?e.number:1}},WL={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},XL={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(n,e){return e.filter(or).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},YL={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(n,e){var t=[],r=[];return e.forEach(function(i){switch(i.type){case 20:case 0:t.push(i.value);break;case 17:t.push(i.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}}),t.length&&r.push(t.join(" ")),r.map(function(i){return i.indexOf(" ")===-1?i:"'"+i+"'"})}},$L={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},JL={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(n,e){if(Vo(e))return e.number;if(or(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},ZL={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(n,e){return e.filter(or).map(function(t){return t.value})}},e8={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(n,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},hn=function(n,e){return(n&e)!==0},t8={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(n,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},r8={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(n,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var r=[],i=e.filter(Fb),A=0;A<i.length;A++){var s=i[A],a=i[A+1];if(s.type===20){var o=a&&Vo(a)?a.number:1;r.push({counter:s.value,increment:o})}}return r}},n8={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(n,e){if(e.length===0)return[];for(var t=[],r=e.filter(Fb),i=0;i<r.length;i++){var A=r[i],s=r[i+1];if(or(A)&&A.value!=="none"){var a=s&&Vo(s)?s.number:0;t.push({counter:A.value,reset:a})}}return t}},i8={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(n,e){return e.filter(lu).map(function(t){return $b.parse(n,t)})}},A8={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(n,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;var r=[],i=e.filter(U6);if(i.length%2!==0)return null;for(var A=0;A<i.length;A+=2){var s=i[A].value,a=i[A+1].value;r.push({open:s,close:a})}return r}},Jb=function(n,e,t){if(!n)return"";var r=n[Math.min(e,n.length-1)];return r?t?r.open:r.close:""},s8={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(n,e){return e.length===1&&Cp(e[0],"none")?[]:DA(e).map(function(t){for(var r={color:255,offsetX:Tn,offsetY:Tn,blur:Tn,spread:Tn,inset:!1},i=0,A=0;A<t.length;A++){var s=t[A];Cp(s,"inset")?r.inset=!0:Js(s)?(i===0?r.offsetX=s:i===1?r.offsetY=s:i===2?r.blur=s:r.spread=s,i++):r.color=ea.parse(n,s)}return r})}},a8={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(n,e){var t=[0,1,2],r=[];return e.filter(or).forEach(function(i){switch(i.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),t.forEach(function(i){r.indexOf(i)===-1&&r.push(i)}),r}},o8={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},l8={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(n,e){return lu(e)?e.number:0}},u8=function(){function n(e,t){var r,i;this.animationDuration=At(e,i8,t.animationDuration),this.backgroundClip=At(e,O6,t.backgroundClip),this.backgroundColor=At(e,Q6,t.backgroundColor),this.backgroundImage=At(e,V6,t.backgroundImage),this.backgroundOrigin=At(e,G6,t.backgroundOrigin),this.backgroundPosition=At(e,z6,t.backgroundPosition),this.backgroundRepeat=At(e,W6,t.backgroundRepeat),this.backgroundSize=At(e,Y6,t.backgroundSize),this.borderTopColor=At(e,J6,t.borderTopColor),this.borderRightColor=At(e,Z6,t.borderRightColor),this.borderBottomColor=At(e,eL,t.borderBottomColor),this.borderLeftColor=At(e,tL,t.borderLeftColor),this.borderTopLeftRadius=At(e,rL,t.borderTopLeftRadius),this.borderTopRightRadius=At(e,nL,t.borderTopRightRadius),this.borderBottomRightRadius=At(e,iL,t.borderBottomRightRadius),this.borderBottomLeftRadius=At(e,AL,t.borderBottomLeftRadius),this.borderTopStyle=At(e,sL,t.borderTopStyle),this.borderRightStyle=At(e,aL,t.borderRightStyle),this.borderBottomStyle=At(e,oL,t.borderBottomStyle),this.borderLeftStyle=At(e,lL,t.borderLeftStyle),this.borderTopWidth=At(e,uL,t.borderTopWidth),this.borderRightWidth=At(e,cL,t.borderRightWidth),this.borderBottomWidth=At(e,fL,t.borderBottomWidth),this.borderLeftWidth=At(e,hL,t.borderLeftWidth),this.boxShadow=At(e,s8,t.boxShadow),this.color=At(e,dL,t.color),this.direction=At(e,pL,t.direction),this.display=At(e,gL,t.display),this.float=At(e,vL,t.cssFloat),this.fontFamily=At(e,YL,t.fontFamily),this.fontSize=At(e,$L,t.fontSize),this.fontStyle=At(e,e8,t.fontStyle),this.fontVariant=At(e,ZL,t.fontVariant),this.fontWeight=At(e,JL,t.fontWeight),this.letterSpacing=At(e,wL,t.letterSpacing),this.lineBreak=At(e,yL,t.lineBreak),this.lineHeight=At(e,bL,t.lineHeight),this.listStyleImage=At(e,BL,t.listStyleImage),this.listStylePosition=At(e,CL,t.listStylePosition),this.listStyleType=At(e,Fp,t.listStyleType),this.marginTop=At(e,EL,t.marginTop),this.marginRight=At(e,xL,t.marginRight),this.marginBottom=At(e,SL,t.marginBottom),this.marginLeft=At(e,FL,t.marginLeft),this.opacity=At(e,zL,t.opacity);var A=At(e,_L,t.overflow);this.overflowX=A[0],this.overflowY=A[A.length>1?1:0],this.overflowWrap=At(e,TL,t.overflowWrap),this.paddingTop=At(e,IL,t.paddingTop),this.paddingRight=At(e,UL,t.paddingRight),this.paddingBottom=At(e,NL,t.paddingBottom),this.paddingLeft=At(e,LL,t.paddingLeft),this.paintOrder=At(e,a8,t.paintOrder),this.position=At(e,QL,t.position),this.textAlign=At(e,OL,t.textAlign),this.textDecorationColor=At(e,WL,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=At(e,XL,(i=t.textDecorationLine)!==null&&i!==void 0?i:t.textDecoration),this.textShadow=At(e,RL,t.textShadow),this.textTransform=At(e,PL,t.textTransform),this.transform=At(e,kL,t.transform),this.transformOrigin=At(e,jL,t.transformOrigin),this.visibility=At(e,KL,t.visibility),this.webkitTextStrokeColor=At(e,o8,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=At(e,l8,t.webkitTextStrokeWidth),this.wordBreak=At(e,VL,t.wordBreak),this.zIndex=At(e,GL,t.zIndex)}return n.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},n.prototype.isTransparent=function(){return ta(this.backgroundColor)},n.prototype.isTransformed=function(){return this.transform!==null},n.prototype.isPositioned=function(){return this.position!==0},n.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},n.prototype.isFloating=function(){return this.float!==0},n.prototype.isInlineLevel=function(){return hn(this.display,4)||hn(this.display,33554432)||hn(this.display,268435456)||hn(this.display,536870912)||hn(this.display,67108864)||hn(this.display,134217728)},n}(),c8=function(){function n(e,t){this.content=At(e,t8,t.content),this.quotes=At(e,A8,t.quotes)}return n}(),Zb=function(){function n(e,t){this.counterIncrement=At(e,r8,t.counterIncrement),this.counterReset=At(e,n8,t.counterReset)}return n}(),At=function(n,e,t){var r=new xb,i=t!==null&&typeof t<"u"?t.toString():e.initialValue;r.write(i);var A=new Sb(r.read());switch(e.type){case 2:var s=A.parseComponentValue();return e.parse(n,or(s)?s.value:e.initialValue);case 0:return e.parse(n,A.parseComponentValue());case 1:return e.parse(n,A.parseComponentValues());case 4:return A.parseComponentValue();case 3:switch(e.format){case"angle":return df.parse(n,A.parseComponentValue());case"color":return ea.parse(n,A.parseComponentValue());case"image":return Sp.parse(n,A.parseComponentValue());case"length":var a=A.parseComponentValue();return Js(a)?a:Tn;case"length-percentage":var o=A.parseComponentValue();return An(o)?o:Tn;case"time":return $b.parse(n,A.parseComponentValue())}break}},f8="data-html2canvas-debug",h8=function(n){var e=n.getAttribute(f8);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},_p=function(n,e){var t=h8(n);return t===1||e===t},MA=function(){function n(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,_p(t,3))debugger;this.styles=new u8(e,window.getComputedStyle(t,null)),qp(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=zc(this.context,t),_p(t,4)&&(this.flags|=16)}return n}(),d8="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",eB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hu=typeof Uint8Array>"u"?[]:new Uint8Array(256),xf=0;xf<eB.length;xf++)hu[eB.charCodeAt(xf)]=xf;for(var p8=function(n){var e=n.length*.75,t=n.length,r,i=0,A,s,a,o;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(r=0;r<t;r+=4)A=hu[n.charCodeAt(r)],s=hu[n.charCodeAt(r+1)],a=hu[n.charCodeAt(r+2)],o=hu[n.charCodeAt(r+3)],u[i++]=A<<2|s>>4,u[i++]=(s&15)<<4|a>>2,u[i++]=(a&3)<<6|o&63;return l},g8=function(n){for(var e=n.length,t=[],r=0;r<e;r+=2)t.push(n[r+1]<<8|n[r]);return t},m8=function(n){for(var e=n.length,t=[],r=0;r<e;r+=4)t.push(n[r+3]<<24|n[r+2]<<16|n[r+1]<<8|n[r]);return t},za=5,Tp=11,Ip=2,v8=Tp-za,tB=65536>>za,w8=1<<za,Up=w8-1,y8=1024>>za,b8=tB+y8,B8=b8,C8=32,E8=B8+C8,x8=65536>>Tp,S8=1<<v8,F8=S8-1,rB=function(n,e,t){return n.slice?n.slice(e,t):new Uint16Array(Array.prototype.slice.call(n,e,t))},_8=function(n,e,t){return n.slice?n.slice(e,t):new Uint32Array(Array.prototype.slice.call(n,e,t))},T8=function(n,e){var t=p8(n),r=Array.isArray(t)?m8(t):new Uint32Array(t),i=Array.isArray(t)?g8(t):new Uint16Array(t),A=24,s=rB(i,A/2,r[4]/2),a=r[5]===2?rB(i,(A+r[4])/2):_8(r,Math.ceil((A+r[4])/4));return new I8(r[0],r[1],r[2],r[3],s,a)},I8=function(){function n(e,t,r,i,A,s){this.initialValue=e,this.errorValue=t,this.highStart=r,this.highValueIndex=i,this.index=A,this.data=s}return n.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>za],t=(t<<Ip)+(e&Up),this.data[t];if(e<=65535)return t=this.index[tB+(e-55296>>za)],t=(t<<Ip)+(e&Up),this.data[t];if(e<this.highStart)return t=E8-x8+(e>>Tp),t=this.index[t],t+=e>>za&F8,t=this.index[t],t=(t<<Ip)+(e&Up),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},n}(),nB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",U8=typeof Uint8Array>"u"?[]:new Uint8Array(256),Sf=0;Sf<nB.length;Sf++)U8[nB.charCodeAt(Sf)]=Sf;var N8=1,Np=2,Lp=3,iB=4,AB=5,L8=7,sB=8,Op=9,Qp=10,aB=11,oB=12,lB=13,uB=14,Rp=15,O8=function(n){for(var e=[],t=0,r=n.length;t<r;){var i=n.charCodeAt(t++);if(i>=55296&&i<=56319&&t<r){var A=n.charCodeAt(t++);(A&64512)===56320?e.push(((i&1023)<<10)+(A&1023)+65536):(e.push(i),t--)}else e.push(i)}return e},Q8=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,n);var t=n.length;if(!t)return"";for(var r=[],i=-1,A="";++i<t;){var s=n[i];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(i+1===t||r.length>16384)&&(A+=String.fromCharCode.apply(String,r),r.length=0)}return A},R8=T8(d8),Di="×",Pp="÷",P8=function(n){return R8.get(n)},k8=function(n,e,t){var r=t-2,i=e[r],A=e[t-1],s=e[t];if(A===Np&&s===Lp)return Di;if(A===Np||A===Lp||A===iB||s===Np||s===Lp||s===iB)return Pp;if(A===sB&&[sB,Op,aB,oB].indexOf(s)!==-1||(A===aB||A===Op)&&(s===Op||s===Qp)||(A===oB||A===Qp)&&s===Qp||s===lB||s===AB||s===L8||A===N8)return Di;if(A===lB&&s===uB){for(;i===AB;)i=e[--r];if(i===uB)return Di}if(A===Rp&&s===Rp){for(var a=0;i===Rp;)a++,i=e[--r];if(a%2===0)return Di}return Pp},D8=function(n){var e=O8(n),t=e.length,r=0,i=0,A=e.map(P8);return{next:function(){if(r>=t)return{done:!0,value:null};for(var s=Di;r<t&&(s=k8(e,A,++r))===Di;);if(s!==Di||r===t){var a=Q8.apply(null,e.slice(i,r));return i=r,{value:a,done:!1}}return{done:!0,value:null}}}},M8=function(n){for(var e=D8(n),t=[],r;!(r=e.next()).done;)r.value&&t.push(r.value.slice());return t},H8=function(n){var e=123;if(n.createRange){var t=n.createRange();if(t.getBoundingClientRect){var r=n.createElement("boundtest");r.style.height=e+"px",r.style.display="block",n.body.appendChild(r),t.selectNode(r);var i=t.getBoundingClientRect(),A=Math.round(i.height);if(n.body.removeChild(r),A===e)return!0}}return!1},q8=function(n){var e=n.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",n.body.appendChild(e);var t=n.createRange();e.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var r=e.firstChild,i=Wc(r.data).map(function(o){return Yr(o)}),A=0,s={},a=i.every(function(o,l){t.setStart(r,A),t.setEnd(r,A+o.length);var u=t.getBoundingClientRect();A+=o.length;var f=u.x>s.x||u.y>s.y;return s=u,l===0?!0:f});return n.body.removeChild(e),a},j8=function(){return typeof new Image().crossOrigin<"u"},K8=function(){return typeof new XMLHttpRequest().responseType=="string"},V8=function(n){var e=new Image,t=n.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),t.toDataURL()}catch{return!1}return!0},cB=function(n){return n[0]===0&&n[1]===255&&n[2]===0&&n[3]===255},G8=function(n){var e=n.createElement("canvas"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var i=new Image,A=e.toDataURL();i.src=A;var s=kp(t,t,0,0,i);return r.fillStyle="red",r.fillRect(0,0,t,t),fB(s).then(function(a){r.drawImage(a,0,0);var o=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var l=n.createElement("div");return l.style.backgroundImage="url("+A+")",l.style.height=t+"px",cB(o)?fB(kp(t,t,0,0,l)):Promise.reject(!1)}).then(function(a){return r.drawImage(a,0,0),cB(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},kp=function(n,e,t,r,i){var A="http://www.w3.org/2000/svg",s=document.createElementNS(A,"svg"),a=document.createElementNS(A,"foreignObject");return s.setAttributeNS(null,"width",n.toString()),s.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",t.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(i),s},fB=function(n){return new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(n))})},In={get SUPPORT_RANGE_BOUNDS(){var n=H8(document);return Object.defineProperty(In,"SUPPORT_RANGE_BOUNDS",{value:n}),n},get SUPPORT_WORD_BREAKING(){var n=In.SUPPORT_RANGE_BOUNDS&&q8(document);return Object.defineProperty(In,"SUPPORT_WORD_BREAKING",{value:n}),n},get SUPPORT_SVG_DRAWING(){var n=V8(document);return Object.defineProperty(In,"SUPPORT_SVG_DRAWING",{value:n}),n},get SUPPORT_FOREIGNOBJECT_DRAWING(){var n=typeof Array.from=="function"&&typeof window.fetch=="function"?G8(document):Promise.resolve(!1);return Object.defineProperty(In,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:n}),n},get SUPPORT_CORS_IMAGES(){var n=j8();return Object.defineProperty(In,"SUPPORT_CORS_IMAGES",{value:n}),n},get SUPPORT_RESPONSE_TYPE(){var n=K8();return Object.defineProperty(In,"SUPPORT_RESPONSE_TYPE",{value:n}),n},get SUPPORT_CORS_XHR(){var n="withCredentials"in new XMLHttpRequest;return Object.defineProperty(In,"SUPPORT_CORS_XHR",{value:n}),n},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var n=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(In,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:n}),n}},du=function(){function n(e,t){this.text=e,this.bounds=t}return n}(),z8=function(n,e,t,r){var i=Y8(e,t),A=[],s=0;return i.forEach(function(a){if(t.textDecorationLine.length||a.trim().length>0)if(In.SUPPORT_RANGE_BOUNDS){var o=hB(r,s,a.length).getClientRects();if(o.length>1){var l=Dp(a),u=0;l.forEach(function(h){A.push(new du(h,cs.fromDOMRectList(n,hB(r,u+s,h.length).getClientRects()))),u+=h.length})}else A.push(new du(a,cs.fromDOMRectList(n,o)))}else{var f=r.splitText(a.length);A.push(new du(a,W8(n,r))),r=f}else In.SUPPORT_RANGE_BOUNDS||(r=r.splitText(a.length));s+=a.length}),A},W8=function(n,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(r,e);var A=zc(n,r);return r.firstChild&&i.replaceChild(r.firstChild,r),A}}return cs.EMPTY},hB=function(n,e,t){var r=n.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(n,e),i.setEnd(n,e+t),i},Dp=function(n){if(In.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(n)).map(function(t){return t.segment})}return M8(n)},X8=function(n,e){if(In.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(n)).map(function(r){return r.segment})}return J8(n,e)},Y8=function(n,e){return e.letterSpacing!==0?Dp(n):X8(n,e)},$8=[32,160,4961,65792,65793,4153,4241],J8=function(n,e){for(var t=xN(n,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),r=[],i,A=function(){if(i.value){var s=i.value.slice(),a=Wc(s),o="";a.forEach(function(l){$8.indexOf(l)===-1?o+=Yr(l):(o.length&&r.push(o),r.push(Yr(l)),o="")}),o.length&&r.push(o)}};!(i=t.next()).done;)A();return r},Z8=function(){function n(e,t,r){this.text=eO(t.data,r.textTransform),this.textBounds=z8(e,this.text,r,t)}return n}(),eO=function(n,e){switch(e){case 1:return n.toLowerCase();case 3:return n.replace(tO,rO);case 2:return n.toUpperCase();default:return n}},tO=/(^|\s|:|-|\(|\))([a-z])/g,rO=function(n,e,t){return n.length>0?e+t.toUpperCase():n},dB=function(n){uA(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.src=r.currentSrc||r.src,i.intrinsicWidth=r.naturalWidth,i.intrinsicHeight=r.naturalHeight,i.context.cache.addImage(i.src),i}return e}(MA),pB=function(n){uA(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.canvas=r,i.intrinsicWidth=r.width,i.intrinsicHeight=r.height,i}return e}(MA),gB=function(n){uA(e,n);function e(t,r){var i=n.call(this,t,r)||this,A=new XMLSerializer,s=zc(t,r);return r.setAttribute("width",s.width+"px"),r.setAttribute("height",s.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(A.serializeToString(r)),i.intrinsicWidth=r.width.baseVal.value,i.intrinsicHeight=r.height.baseVal.value,i.context.cache.addImage(i.svg),i}return e}(MA),mB=function(n){uA(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.value=r.value,i}return e}(MA),Mp=function(n){uA(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.start=r.start,i.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,i}return e}(MA),nO=[{type:15,flags:0,unit:"px",number:3}],iO=[{type:16,flags:0,number:50}],AO=function(n){return n.width>n.height?new cs(n.left+(n.width-n.height)/2,n.top,n.height,n.height):n.width<n.height?new cs(n.left,n.top+(n.height-n.width)/2,n.width,n.width):n},sO=function(n){var e=n.type===aO?new Array(n.value.length+1).join("•"):n.value;return e.length===0?n.placeholder||"":e},Ff="checkbox",_f="radio",aO="password",vB=707406591,Hp=function(n){uA(e,n);function e(t,r){var i=n.call(this,t,r)||this;switch(i.type=r.type.toLowerCase(),i.checked=r.checked,i.value=sO(r),(i.type===Ff||i.type===_f)&&(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=AO(i.bounds)),i.type){case Ff:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=nO;break;case _f:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=iO;break}return i}return e}(MA),wB=function(n){uA(e,n);function e(t,r){var i=n.call(this,t,r)||this,A=r.options[r.selectedIndex||0];return i.value=A&&A.text||"",i}return e}(MA),yB=function(n){uA(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.value=r.value,i}return e}(MA),bB=function(n){uA(e,n);function e(t,r){var i=n.call(this,t,r)||this;i.src=r.src,i.width=parseInt(r.width,10)||0,i.height=parseInt(r.height,10)||0,i.backgroundColor=i.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){i.tree=CB(t,r.contentWindow.document.documentElement);var A=r.contentWindow.document.documentElement?cu(t,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):hs.TRANSPARENT,s=r.contentWindow.document.body?cu(t,getComputedStyle(r.contentWindow.document.body).backgroundColor):hs.TRANSPARENT;i.backgroundColor=ta(A)?ta(s)?i.styles.backgroundColor:s:A}}catch{}return i}return e}(MA),oO=["OL","UL","MENU"],Tf=function(n,e,t,r){for(var i=e.firstChild,A=void 0;i;i=A)if(A=i.nextSibling,EB(i)&&i.data.trim().length>0)t.textNodes.push(new Z8(n,i,t.styles));else if(Wo(i))if(IB(i)&&i.assignedNodes)i.assignedNodes().forEach(function(a){return Tf(n,a,t,r)});else{var s=BB(n,i);s.styles.isVisible()&&(lO(i,s,r)?s.flags|=4:uO(s.styles)&&(s.flags|=2),oO.indexOf(i.tagName)!==-1&&(s.flags|=8),t.elements.push(s),i.slot,i.shadowRoot?Tf(n,i.shadowRoot,s,r):!Uf(i)&&!xB(i)&&!Nf(i)&&Tf(n,i,s,r))}},BB=function(n,e){return Kp(e)?new dB(n,e):SB(e)?new pB(n,e):xB(e)?new gB(n,e):cO(e)?new mB(n,e):fO(e)?new Mp(n,e):hO(e)?new Hp(n,e):Nf(e)?new wB(n,e):Uf(e)?new yB(n,e):_B(e)?new bB(n,e):new MA(n,e)},CB=function(n,e){var t=BB(n,e);return t.flags|=4,Tf(n,e,t,t),t},lO=function(n,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||jp(n)&&t.styles.isTransparent()},uO=function(n){return n.isPositioned()||n.isFloating()},EB=function(n){return n.nodeType===Node.TEXT_NODE},Wo=function(n){return n.nodeType===Node.ELEMENT_NODE},qp=function(n){return Wo(n)&&typeof n.style<"u"&&!If(n)},If=function(n){return typeof n.className=="object"},cO=function(n){return n.tagName==="LI"},fO=function(n){return n.tagName==="OL"},hO=function(n){return n.tagName==="INPUT"},dO=function(n){return n.tagName==="HTML"},xB=function(n){return n.tagName==="svg"},jp=function(n){return n.tagName==="BODY"},SB=function(n){return n.tagName==="CANVAS"},FB=function(n){return n.tagName==="VIDEO"},Kp=function(n){return n.tagName==="IMG"},_B=function(n){return n.tagName==="IFRAME"},TB=function(n){return n.tagName==="STYLE"},pO=function(n){return n.tagName==="SCRIPT"},Uf=function(n){return n.tagName==="TEXTAREA"},Nf=function(n){return n.tagName==="SELECT"},IB=function(n){return n.tagName==="SLOT"},UB=function(n){return n.tagName.indexOf("-")>0},gO=function(){function n(){this.counters={}}return n.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},n.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},n.prototype.pop=function(e){var t=this;e.forEach(function(r){return t.counters[r].pop()})},n.prototype.parse=function(e){var t=this,r=e.counterIncrement,i=e.counterReset,A=!0;r!==null&&r.forEach(function(a){var o=t.counters[a.counter];o&&a.increment!==0&&(A=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=a.increment)});var s=[];return A&&i.forEach(function(a){var o=t.counters[a.counter];s.push(a.counter),o||(o=t.counters[a.counter]=[]),o.push(a.reset)}),s},n}(),NB={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},LB={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},mO={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},vO={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Xo=function(n,e,t,r,i,A){return n<e||n>t?gu(n,i,A.length>0):r.integers.reduce(function(s,a,o){for(;n>=a;)n-=a,s+=r.values[o];return s},"")+A},OB=function(n,e,t,r){var i="";do t||n--,i=r(n)+i,n/=e;while(n*e>=e);return i},$r=function(n,e,t,r,i){var A=t-e+1;return(n<0?"-":"")+(OB(Math.abs(n),A,r,function(s){return Yr(Math.floor(s%A)+e)})+i)},Wa=function(n,e,t){t===void 0&&(t=". ");var r=e.length;return OB(Math.abs(n),r,!1,function(i){return e[Math.floor(i%r)]})+t},Yo=1,na=2,ia=4,pu=8,ds=function(n,e,t,r,i,A){if(n<-9999||n>9999)return gu(n,4,i.length>0);var s=Math.abs(n),a=i;if(s===0)return e[0]+a;for(var o=0;s>0&&o<=4;o++){var l=s%10;l===0&&hn(A,Yo)&&a!==""?a=e[l]+a:l>1||l===1&&o===0||l===1&&o===1&&hn(A,na)||l===1&&o===1&&hn(A,ia)&&n>100||l===1&&o>1&&hn(A,pu)?a=e[l]+(o>0?t[o-1]:"")+a:l===1&&o>0&&(a=t[o-1]+a),s=Math.floor(s/10)}return(n<0?r:"")+a},QB="十百千萬",RB="拾佰仟萬",PB="マイナス",Vp="마이너스",gu=function(n,e,t){var r=t?". ":"",i=t?"、":"",A=t?", ":"",s=t?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var a=$r(n,48,57,!0,r);return a.length<4?"0"+a:a;case 4:return Wa(n,"〇一二三四五六七八九",i);case 6:return Xo(n,1,3999,NB,3,r).toLowerCase();case 7:return Xo(n,1,3999,NB,3,r);case 8:return $r(n,945,969,!1,r);case 9:return $r(n,97,122,!1,r);case 10:return $r(n,65,90,!1,r);case 11:return $r(n,1632,1641,!0,r);case 12:case 49:return Xo(n,1,9999,LB,3,r);case 35:return Xo(n,1,9999,LB,3,r).toLowerCase();case 13:return $r(n,2534,2543,!0,r);case 14:case 30:return $r(n,6112,6121,!0,r);case 15:return Wa(n,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return Wa(n,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return ds(n,"零一二三四五六七八九",QB,"負",i,na|ia|pu);case 47:return ds(n,"零壹貳參肆伍陸柒捌玖",RB,"負",i,Yo|na|ia|pu);case 42:return ds(n,"零一二三四五六七八九",QB,"负",i,na|ia|pu);case 41:return ds(n,"零壹贰叁肆伍陆柒捌玖",RB,"负",i,Yo|na|ia|pu);case 26:return ds(n,"〇一二三四五六七八九","十百千万",PB,i,0);case 25:return ds(n,"零壱弐参四伍六七八九","拾百千万",PB,i,Yo|na|ia);case 31:return ds(n,"영일이삼사오육칠팔구","십백천만",Vp,A,Yo|na|ia);case 33:return ds(n,"零一二三四五六七八九","十百千萬",Vp,A,0);case 32:return ds(n,"零壹貳參四五六七八九","拾百千",Vp,A,Yo|na|ia);case 18:return $r(n,2406,2415,!0,r);case 20:return Xo(n,1,19999,vO,3,r);case 21:return $r(n,2790,2799,!0,r);case 22:return $r(n,2662,2671,!0,r);case 22:return Xo(n,1,10999,mO,3,r);case 23:return Wa(n,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Wa(n,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return $r(n,3302,3311,!0,r);case 28:return Wa(n,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return Wa(n,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return $r(n,3792,3801,!0,r);case 37:return $r(n,6160,6169,!0,r);case 38:return $r(n,4160,4169,!0,r);case 39:return $r(n,2918,2927,!0,r);case 40:return $r(n,1776,1785,!0,r);case 43:return $r(n,3046,3055,!0,r);case 44:return $r(n,3174,3183,!0,r);case 45:return $r(n,3664,3673,!0,r);case 46:return $r(n,3872,3881,!0,r);case 3:default:return $r(n,48,57,!0,r)}},kB="data-html2canvas-ignore",DB=function(){function n(e,t,r){if(this.context=e,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new gO,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return n.prototype.toIFrame=function(e,t){var r=this,i=wO(e,t);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var A=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,a=i.contentWindow,o=a.document,l=BO(i).then(function(){return ei(r,void 0,void 0,function(){var u,f;return jn(this,function(h){switch(h.label){case 0:return this.scrolledElements.forEach(SO),a&&(a.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(a.scrollY!==t.top||a.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-t.left,a.scrollY-t.top,0,0))),u=this.options.onclone,f=this.clonedReferenceElement,typeof f>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:o.fonts&&o.fonts.ready?[4,o.fonts.ready]:[3,2];case 1:h.sent(),h.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,bO(o)]:[3,4];case 3:h.sent(),h.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(o,f)}).then(function(){return i})]:[2,i]}})})});return o.open(),o.write(EO(document.doctype)+"<html></html>"),xO(this.referenceElement.ownerDocument,A,s),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),l},n.prototype.createElementClone=function(e){if(_p(e,2))debugger;if(SB(e))return this.createCanvasClone(e);if(FB(e))return this.createVideoClone(e);if(TB(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Kp(t)&&(Kp(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),UB(t)?this.createCustomElementClone(t):t},n.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return Gp(e.style,t),t},n.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(A,s){return s&&typeof s.cssText=="string"?A+s.cssText:A},""),i=e.cloneNode(!1);return i.textContent=r,i}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),A.name!=="SecurityError")throw A}return e.cloneNode(!1)},n.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var r=e.ownerDocument.createElement("img");try{return r.src=e.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var i=e.cloneNode(!1);try{i.width=e.width,i.height=e.height;var A=e.getContext("2d"),s=i.getContext("2d");if(s)if(!this.options.allowTaint&&A)s.putImageData(A.getImageData(0,0,e.width,e.height),0,0);else{var a=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(a){var o=a.getContextAttributes();o?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}s.drawImage(e,0,0)}return i}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return i},n.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var i=e.ownerDocument.createElement("canvas");return i.width=e.offsetWidth,i.height=e.offsetHeight,i},n.prototype.appendChildNode=function(e,t,r){(!Wo(t)||!pO(t)&&!t.hasAttribute(kB)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!Wo(t)||!TB(t))&&e.appendChild(this.cloneNode(t,r))},n.prototype.cloneChildNodes=function(e,t,r){for(var i=this,A=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;A;A=A.nextSibling)if(Wo(A)&&IB(A)&&typeof A.assignedNodes=="function"){var s=A.assignedNodes();s.length&&s.forEach(function(a){return i.appendChildNode(t,a,r)})}else this.appendChildNode(t,A,r)},n.prototype.cloneNode=function(e,t){if(EB(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var r=e.ownerDocument.defaultView;if(r&&Wo(e)&&(qp(e)||If(e))){var i=this.createElementClone(e);i.style.transitionProperty="none";var A=r.getComputedStyle(e),s=r.getComputedStyle(e,":before"),a=r.getComputedStyle(e,":after");this.referenceElement===e&&qp(i)&&(this.clonedReferenceElement=i),jp(i)&&TO(i);var o=this.counters.parse(new Zb(this.context,A)),l=this.resolvePseudoContent(e,i,s,mu.BEFORE);UB(e)&&(t=!0),FB(e)||this.cloneChildNodes(e,i,t),l&&i.insertBefore(l,i.firstChild);var u=this.resolvePseudoContent(e,i,a,mu.AFTER);return u&&i.appendChild(u),this.counters.pop(o),(A&&(this.options.copyStyles||If(e))&&!_B(e)||t)&&Gp(A,i),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([i,e.scrollLeft,e.scrollTop]),(Uf(e)||Nf(e))&&(Uf(i)||Nf(i))&&(i.value=e.value),i}return e.cloneNode(!1)},n.prototype.resolvePseudoContent=function(e,t,r,i){var A=this;if(r){var s=r.content,a=t.ownerDocument;if(!(!a||!s||s==="none"||s==="-moz-alt-content"||r.display==="none")){this.counters.parse(new Zb(this.context,r));var o=new c8(this.context,r),l=a.createElement("html2canvaspseudoelement");Gp(r,l),o.content.forEach(function(f){if(f.type===0)l.appendChild(a.createTextNode(f.value));else if(f.type===22){var h=a.createElement("img");h.src=f.value,h.style.opacity="1",l.appendChild(h)}else if(f.type===18){if(f.name==="attr"){var c=f.values.filter(or);c.length&&l.appendChild(a.createTextNode(e.getAttribute(c[0].value)||""))}else if(f.name==="counter"){var m=f.values.filter(Go),g=m[0],w=m[1];if(g&&or(g)){var p=A.counters.getCounterValue(g.value),v=w&&or(w)?Fp.parse(A.context,w.value):3;l.appendChild(a.createTextNode(gu(p,v,!1)))}}else if(f.name==="counters"){var b=f.values.filter(Go),g=b[0],B=b[1],w=b[2];if(g&&or(g)){var T=A.counters.getCounterValues(g.value),M=w&&or(w)?Fp.parse(A.context,w.value):3,D=B&&B.type===0?B.value:"",j=T.map(function(L){return gu(L,M,!1)}).join(D);l.appendChild(a.createTextNode(j))}}}else if(f.type===20)switch(f.value){case"open-quote":l.appendChild(a.createTextNode(Jb(o.quotes,A.quoteDepth++,!0)));break;case"close-quote":l.appendChild(a.createTextNode(Jb(o.quotes,--A.quoteDepth,!1)));break;default:l.appendChild(a.createTextNode(f.value))}}),l.className=zp+" "+Wp;var u=i===mu.BEFORE?" "+zp:" "+Wp;return If(t)?t.className.baseValue+=u:t.className+=u,l}}},n.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},n}(),mu;(function(n){n[n.BEFORE=0]="BEFORE",n[n.AFTER=1]="AFTER"})(mu||(mu={}));var wO=function(n,e){var t=n.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(kB,"true"),n.body.appendChild(t),t},yO=function(n){return new Promise(function(e){if(n.complete){e();return}if(!n.src){e();return}n.onload=e,n.onerror=e})},bO=function(n){return Promise.all([].slice.call(n.images,0).map(yO))},BO=function(n){return new Promise(function(e,t){var r=n.contentWindow;if(!r)return t("No window assigned for iframe");var i=r.document;r.onload=n.onload=function(){r.onload=n.onload=null;var A=setInterval(function(){i.body.childNodes.length>0&&i.readyState==="complete"&&(clearInterval(A),e(n))},50)}})},CO=["all","d","content"],Gp=function(n,e){for(var t=n.length-1;t>=0;t--){var r=n.item(t);CO.indexOf(r)===-1&&e.style.setProperty(r,n.getPropertyValue(r))}return e},EO=function(n){var e="";return n&&(e+="<!DOCTYPE ",n.name&&(e+=n.name),n.internalSubset&&(e+=n.internalSubset),n.publicId&&(e+='"'+n.publicId+'"'),n.systemId&&(e+='"'+n.systemId+'"'),e+=">"),e},xO=function(n,e,t){n&&n.defaultView&&(e!==n.defaultView.pageXOffset||t!==n.defaultView.pageYOffset)&&n.defaultView.scrollTo(e,t)},SO=function(n){var e=n[0],t=n[1],r=n[2];e.scrollLeft=t,e.scrollTop=r},FO=":before",_O=":after",zp="___html2canvas___pseudoelement_before",Wp="___html2canvas___pseudoelement_after",MB=`{
content: "" !important;
display: none !important;
}`,TO=function(n){IO(n,"."+zp+FO+MB+`
.`+Wp+_O+MB)},IO=function(n,e){var t=n.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,n.appendChild(r)}},HB=function(){function n(){}return n.getOrigin=function(e){var t=n._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},n.isSameOrigin=function(e){return n.getOrigin(e)===n._origin},n.setContext=function(e){n._link=e.document.createElement("a"),n._origin=n.getOrigin(e.location.href)},n._origin="about:blank",n}(),UO=function(){function n(e,t){this.context=e,this._options=t,this._cache={}}return n.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(Yp(e)||QO(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},n.prototype.match=function(e){return this._cache[e]},n.prototype.loadImage=function(e){return ei(this,void 0,void 0,function(){var t,r,i,A,s=this;return jn(this,function(a){switch(a.label){case 0:return t=HB.isSameOrigin(e),r=!Xp(e)&&this._options.useCORS===!0&&In.SUPPORT_CORS_IMAGES&&!t,i=!Xp(e)&&!t&&!Yp(e)&&typeof this._options.proxy=="string"&&In.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!Xp(e)&&!Yp(e)&&!i&&!r?[2]:(A=e,i?[4,this.proxy(A)]:[3,2]);case 1:A=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(o,l){var u=new Image;u.onload=function(){return o(u)},u.onerror=l,(RO(A)||r)&&(u.crossOrigin="anonymous"),u.src=A,u.complete===!0&&setTimeout(function(){return o(u)},500),s._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},n.prototype.has=function(e){return typeof this._cache[e]<"u"},n.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},n.prototype.proxy=function(e){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var i=e.substring(0,256);return new Promise(function(A,s){var a=In.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(o.status===200)if(a==="text")A(o.response);else{var f=new FileReader;f.addEventListener("load",function(){return A(f.result)},!1),f.addEventListener("error",function(h){return s(h)},!1),f.readAsDataURL(o.response)}else s("Failed to proxy resource "+i+" with status code "+o.status)},o.onerror=s;var l=r.indexOf("?")>-1?"&":"?";if(o.open("GET",""+r+l+"url="+encodeURIComponent(e)+"&responseType="+a),a!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=a),t._options.imageTimeout){var u=t._options.imageTimeout;o.timeout=u,o.ontimeout=function(){return s("Timed out ("+u+"ms) proxying "+i)}}o.send()})},n}(),NO=/^data:image\/svg\+xml/i,LO=/^data:image\/.*;base64,/i,OO=/^data:image\/.*/i,QO=function(n){return In.SUPPORT_SVG_DRAWING||!PO(n)},Xp=function(n){return OO.test(n)},RO=function(n){return LO.test(n)},Yp=function(n){return n.substr(0,4)==="blob"},PO=function(n){return n.substr(-3).toLowerCase()==="svg"||NO.test(n)},rt=function(){function n(e,t){this.type=0,this.x=e,this.y=t}return n.prototype.add=function(e,t){return new n(this.x+e,this.y+t)},n}(),$o=function(n,e,t){return new rt(n.x+(e.x-n.x)*t,n.y+(e.y-n.y)*t)},Lf=function(){function n(e,t,r,i){this.type=1,this.start=e,this.startControl=t,this.endControl=r,this.end=i}return n.prototype.subdivide=function(e,t){var r=$o(this.start,this.startControl,e),i=$o(this.startControl,this.endControl,e),A=$o(this.endControl,this.end,e),s=$o(r,i,e),a=$o(i,A,e),o=$o(s,a,e);return t?new n(this.start,r,s,o):new n(o,a,A,this.end)},n.prototype.add=function(e,t){return new n(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},n.prototype.reverse=function(){return new n(this.end,this.endControl,this.startControl,this.start)},n}(),Mi=function(n){return n.type===1},kO=function(){function n(e){var t=e.styles,r=e.bounds,i=uu(t.borderTopLeftRadius,r.width,r.height),A=i[0],s=i[1],a=uu(t.borderTopRightRadius,r.width,r.height),o=a[0],l=a[1],u=uu(t.borderBottomRightRadius,r.width,r.height),f=u[0],h=u[1],c=uu(t.borderBottomLeftRadius,r.width,r.height),m=c[0],g=c[1],w=[];w.push((A+o)/r.width),w.push((m+f)/r.width),w.push((s+g)/r.height),w.push((l+h)/r.height);var p=Math.max.apply(Math,w);p>1&&(A/=p,s/=p,o/=p,l/=p,f/=p,h/=p,m/=p,g/=p);var v=r.width-o,b=r.height-h,B=r.width-f,T=r.height-g,M=t.borderTopWidth,D=t.borderRightWidth,j=t.borderBottomWidth,R=t.borderLeftWidth,ae=vr(t.paddingTop,e.bounds.width),L=vr(t.paddingRight,e.bounds.width),x=vr(t.paddingBottom,e.bounds.width),Q=vr(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=A>0||s>0?Nr(r.left+R/3,r.top+M/3,A-R/3,s-M/3,er.TOP_LEFT):new rt(r.left+R/3,r.top+M/3),this.topRightBorderDoubleOuterBox=A>0||s>0?Nr(r.left+v,r.top+M/3,o-D/3,l-M/3,er.TOP_RIGHT):new rt(r.left+r.width-D/3,r.top+M/3),this.bottomRightBorderDoubleOuterBox=f>0||h>0?Nr(r.left+B,r.top+b,f-D/3,h-j/3,er.BOTTOM_RIGHT):new rt(r.left+r.width-D/3,r.top+r.height-j/3),this.bottomLeftBorderDoubleOuterBox=m>0||g>0?Nr(r.left+R/3,r.top+T,m-R/3,g-j/3,er.BOTTOM_LEFT):new rt(r.left+R/3,r.top+r.height-j/3),this.topLeftBorderDoubleInnerBox=A>0||s>0?Nr(r.left+R*2/3,r.top+M*2/3,A-R*2/3,s-M*2/3,er.TOP_LEFT):new rt(r.left+R*2/3,r.top+M*2/3),this.topRightBorderDoubleInnerBox=A>0||s>0?Nr(r.left+v,r.top+M*2/3,o-D*2/3,l-M*2/3,er.TOP_RIGHT):new rt(r.left+r.width-D*2/3,r.top+M*2/3),this.bottomRightBorderDoubleInnerBox=f>0||h>0?Nr(r.left+B,r.top+b,f-D*2/3,h-j*2/3,er.BOTTOM_RIGHT):new rt(r.left+r.width-D*2/3,r.top+r.height-j*2/3),this.bottomLeftBorderDoubleInnerBox=m>0||g>0?Nr(r.left+R*2/3,r.top+T,m-R*2/3,g-j*2/3,er.BOTTOM_LEFT):new rt(r.left+R*2/3,r.top+r.height-j*2/3),this.topLeftBorderStroke=A>0||s>0?Nr(r.left+R/2,r.top+M/2,A-R/2,s-M/2,er.TOP_LEFT):new rt(r.left+R/2,r.top+M/2),this.topRightBorderStroke=A>0||s>0?Nr(r.left+v,r.top+M/2,o-D/2,l-M/2,er.TOP_RIGHT):new rt(r.left+r.width-D/2,r.top+M/2),this.bottomRightBorderStroke=f>0||h>0?Nr(r.left+B,r.top+b,f-D/2,h-j/2,er.BOTTOM_RIGHT):new rt(r.left+r.width-D/2,r.top+r.height-j/2),this.bottomLeftBorderStroke=m>0||g>0?Nr(r.left+R/2,r.top+T,m-R/2,g-j/2,er.BOTTOM_LEFT):new rt(r.left+R/2,r.top+r.height-j/2),this.topLeftBorderBox=A>0||s>0?Nr(r.left,r.top,A,s,er.TOP_LEFT):new rt(r.left,r.top),this.topRightBorderBox=o>0||l>0?Nr(r.left+v,r.top,o,l,er.TOP_RIGHT):new rt(r.left+r.width,r.top),this.bottomRightBorderBox=f>0||h>0?Nr(r.left+B,r.top+b,f,h,er.BOTTOM_RIGHT):new rt(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=m>0||g>0?Nr(r.left,r.top+T,m,g,er.BOTTOM_LEFT):new rt(r.left,r.top+r.height),this.topLeftPaddingBox=A>0||s>0?Nr(r.left+R,r.top+M,Math.max(0,A-R),Math.max(0,s-M),er.TOP_LEFT):new rt(r.left+R,r.top+M),this.topRightPaddingBox=o>0||l>0?Nr(r.left+Math.min(v,r.width-D),r.top+M,v>r.width+D?0:Math.max(0,o-D),Math.max(0,l-M),er.TOP_RIGHT):new rt(r.left+r.width-D,r.top+M),this.bottomRightPaddingBox=f>0||h>0?Nr(r.left+Math.min(B,r.width-R),r.top+Math.min(b,r.height-j),Math.max(0,f-D),Math.max(0,h-j),er.BOTTOM_RIGHT):new rt(r.left+r.width-D,r.top+r.height-j),this.bottomLeftPaddingBox=m>0||g>0?Nr(r.left+R,r.top+Math.min(T,r.height-j),Math.max(0,m-R),Math.max(0,g-j),er.BOTTOM_LEFT):new rt(r.left+R,r.top+r.height-j),this.topLeftContentBox=A>0||s>0?Nr(r.left+R+Q,r.top+M+ae,Math.max(0,A-(R+Q)),Math.max(0,s-(M+ae)),er.TOP_LEFT):new rt(r.left+R+Q,r.top+M+ae),this.topRightContentBox=o>0||l>0?Nr(r.left+Math.min(v,r.width+R+Q),r.top+M+ae,v>r.width+R+Q?0:o-R+Q,l-(M+ae),er.TOP_RIGHT):new rt(r.left+r.width-(D+L),r.top+M+ae),this.bottomRightContentBox=f>0||h>0?Nr(r.left+Math.min(B,r.width-(R+Q)),r.top+Math.min(b,r.height+M+ae),Math.max(0,f-(D+L)),h-(j+x),er.BOTTOM_RIGHT):new rt(r.left+r.width-(D+L),r.top+r.height-(j+x)),this.bottomLeftContentBox=m>0||g>0?Nr(r.left+R+Q,r.top+T,Math.max(0,m-(R+Q)),g-(j+x),er.BOTTOM_LEFT):new rt(r.left+R+Q,r.top+r.height-(j+x))}return n}(),er;(function(n){n[n.TOP_LEFT=0]="TOP_LEFT",n[n.TOP_RIGHT=1]="TOP_RIGHT",n[n.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",n[n.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(er||(er={}));var Nr=function(n,e,t,r,i){var A=4*((Math.sqrt(2)-1)/3),s=t*A,a=r*A,o=n+t,l=e+r;switch(i){case er.TOP_LEFT:return new Lf(new rt(n,l),new rt(n,l-a),new rt(o-s,e),new rt(o,e));case er.TOP_RIGHT:return new Lf(new rt(n,e),new rt(n+s,e),new rt(o,l-a),new rt(o,l));case er.BOTTOM_RIGHT:return new Lf(new rt(o,e),new rt(o,e+a),new rt(n+s,l),new rt(n,l));case er.BOTTOM_LEFT:default:return new Lf(new rt(o,l),new rt(o-s,l),new rt(n,e+a),new rt(n,e))}},Of=function(n){return[n.topLeftBorderBox,n.topRightBorderBox,n.bottomRightBorderBox,n.bottomLeftBorderBox]},DO=function(n){return[n.topLeftContentBox,n.topRightContentBox,n.bottomRightContentBox,n.bottomLeftContentBox]},Qf=function(n){return[n.topLeftPaddingBox,n.topRightPaddingBox,n.bottomRightPaddingBox,n.bottomLeftPaddingBox]},MO=function(){function n(e,t,r){this.offsetX=e,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return n}(),Rf=function(){function n(e,t){this.path=e,this.target=t,this.type=1}return n}(),HO=function(){function n(e){this.opacity=e,this.type=2,this.target=6}return n}(),qO=function(n){return n.type===0},qB=function(n){return n.type===1},jO=function(n){return n.type===2},jB=function(n,e){return n.length===e.length?n.some(function(t,r){return t===e[r]}):!1},KO=function(n,e,t,r,i){return n.map(function(A,s){switch(s){case 0:return A.add(e,t);case 1:return A.add(e+r,t);case 2:return A.add(e+r,t+i);case 3:return A.add(e,t+i)}return A})},KB=function(){function n(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return n}(),VB=function(){function n(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new kO(this.container),this.container.styles.opacity<1&&this.effects.push(new HO(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,A=this.container.styles.transform;this.effects.push(new MO(r,i,A))}if(this.container.styles.overflowX!==0){var s=Of(this.curves),a=Qf(this.curves);jB(s,a)?this.effects.push(new Rf(s,6)):(this.effects.push(new Rf(s,2)),this.effects.push(new Rf(a,4)))}}return n.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,i=this.effects.slice(0);r;){var A=r.effects.filter(function(o){return!qB(o)});if(t||r.container.styles.position!==0||!r.parent){if(i.unshift.apply(i,A),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=Of(r.curves),a=Qf(r.curves);jB(s,a)||i.unshift(new Rf(a,6))}}else i.unshift.apply(i,A);r=r.parent}return i.filter(function(o){return hn(o.target,e)})},n}(),$p=function(n,e,t,r){n.container.elements.forEach(function(i){var A=hn(i.flags,4),s=hn(i.flags,2),a=new VB(i,n);hn(i.styles.display,2048)&&r.push(a);var o=hn(i.flags,8)?[]:r;if(A||s){var l=A||i.styles.isPositioned()?t:e,u=new KB(a);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var f=i.styles.zIndex.order;if(f<0){var h=0;l.negativeZIndex.some(function(m,g){return f>m.element.container.styles.zIndex.order?(h=g,!1):h>0}),l.negativeZIndex.splice(h,0,u)}else if(f>0){var c=0;l.positiveZIndex.some(function(m,g){return f>=m.element.container.styles.zIndex.order?(c=g+1,!1):c>0}),l.positiveZIndex.splice(c,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);$p(a,u,A?u:t,o)}else i.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),$p(a,e,t,o);hn(i.flags,8)&&GB(i,o)})},GB=function(n,e){for(var t=n instanceof Mp?n.start:1,r=n instanceof Mp?n.reversed:!1,i=0;i<e.length;i++){var A=e[i];A.container instanceof mB&&typeof A.container.value=="number"&&A.container.value!==0&&(t=A.container.value),A.listValue=gu(t,A.container.styles.listStyleType,!0),t+=r?-1:1}},VO=function(n){var e=new VB(n,null),t=new KB(e),r=[];return $p(e,t,t,r),GB(e.container,r),t},zB=function(n,e){switch(e){case 0:return Hi(n.topLeftBorderBox,n.topLeftPaddingBox,n.topRightBorderBox,n.topRightPaddingBox);case 1:return Hi(n.topRightBorderBox,n.topRightPaddingBox,n.bottomRightBorderBox,n.bottomRightPaddingBox);case 2:return Hi(n.bottomRightBorderBox,n.bottomRightPaddingBox,n.bottomLeftBorderBox,n.bottomLeftPaddingBox);case 3:default:return Hi(n.bottomLeftBorderBox,n.bottomLeftPaddingBox,n.topLeftBorderBox,n.topLeftPaddingBox)}},GO=function(n,e){switch(e){case 0:return Hi(n.topLeftBorderBox,n.topLeftBorderDoubleOuterBox,n.topRightBorderBox,n.topRightBorderDoubleOuterBox);case 1:return Hi(n.topRightBorderBox,n.topRightBorderDoubleOuterBox,n.bottomRightBorderBox,n.bottomRightBorderDoubleOuterBox);case 2:return Hi(n.bottomRightBorderBox,n.bottomRightBorderDoubleOuterBox,n.bottomLeftBorderBox,n.bottomLeftBorderDoubleOuterBox);case 3:default:return Hi(n.bottomLeftBorderBox,n.bottomLeftBorderDoubleOuterBox,n.topLeftBorderBox,n.topLeftBorderDoubleOuterBox)}},zO=function(n,e){switch(e){case 0:return Hi(n.topLeftBorderDoubleInnerBox,n.topLeftPaddingBox,n.topRightBorderDoubleInnerBox,n.topRightPaddingBox);case 1:return Hi(n.topRightBorderDoubleInnerBox,n.topRightPaddingBox,n.bottomRightBorderDoubleInnerBox,n.bottomRightPaddingBox);case 2:return Hi(n.bottomRightBorderDoubleInnerBox,n.bottomRightPaddingBox,n.bottomLeftBorderDoubleInnerBox,n.bottomLeftPaddingBox);case 3:default:return Hi(n.bottomLeftBorderDoubleInnerBox,n.bottomLeftPaddingBox,n.topLeftBorderDoubleInnerBox,n.topLeftPaddingBox)}},WO=function(n,e){switch(e){case 0:return Pf(n.topLeftBorderStroke,n.topRightBorderStroke);case 1:return Pf(n.topRightBorderStroke,n.bottomRightBorderStroke);case 2:return Pf(n.bottomRightBorderStroke,n.bottomLeftBorderStroke);case 3:default:return Pf(n.bottomLeftBorderStroke,n.topLeftBorderStroke)}},Pf=function(n,e){var t=[];return Mi(n)?t.push(n.subdivide(.5,!1)):t.push(n),Mi(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Hi=function(n,e,t,r){var i=[];return Mi(n)?i.push(n.subdivide(.5,!1)):i.push(n),Mi(t)?i.push(t.subdivide(.5,!0)):i.push(t),Mi(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),Mi(e)?i.push(e.subdivide(.5,!1).reverse()):i.push(e),i},WB=function(n){var e=n.bounds,t=n.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},kf=function(n){var e=n.styles,t=n.bounds,r=vr(e.paddingLeft,t.width),i=vr(e.paddingRight,t.width),A=vr(e.paddingTop,t.width),s=vr(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,A+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+i),-(e.borderTopWidth+e.borderBottomWidth+A+s))},XO=function(n,e){return n===0?e.bounds:n===2?kf(e):WB(e)},YO=function(n,e){return n===0?e.bounds:n===2?kf(e):WB(e)},Jp=function(n,e,t){var r=XO(Zo(n.styles.backgroundOrigin,e),n),i=YO(Zo(n.styles.backgroundClip,e),n),A=$O(Zo(n.styles.backgroundSize,e),t,r),s=A[0],a=A[1],o=uu(Zo(n.styles.backgroundPosition,e),r.width-s,r.height-a),l=JO(Zo(n.styles.backgroundRepeat,e),o,A,r,i),u=Math.round(r.left+o[0]),f=Math.round(r.top+o[1]);return[l,u,f,s,a]},Jo=function(n){return or(n)&&n.value===zo.AUTO},Df=function(n){return typeof n=="number"},$O=function(n,e,t){var r=e[0],i=e[1],A=e[2],s=n[0],a=n[1];if(!s)return[0,0];if(An(s)&&a&&An(a))return[vr(s,t.width),vr(a,t.height)];var o=Df(A);if(or(s)&&(s.value===zo.CONTAIN||s.value===zo.COVER)){if(Df(A)){var l=t.width/t.height;return l<A!=(s.value===zo.COVER)?[t.width,t.width/A]:[t.height*A,t.height]}return[t.width,t.height]}var u=Df(r),f=Df(i),h=u||f;if(Jo(s)&&(!a||Jo(a))){if(u&&f)return[r,i];if(!o&&!h)return[t.width,t.height];if(h&&o){var c=u?r:i*A,m=f?i:r/A;return[c,m]}var g=u?r:t.width,w=f?i:t.height;return[g,w]}if(o){var p=0,v=0;return An(s)?p=vr(s,t.width):An(a)&&(v=vr(a,t.height)),Jo(s)?p=v*A:(!a||Jo(a))&&(v=p/A),[p,v]}var b=null,B=null;if(An(s)?b=vr(s,t.width):a&&An(a)&&(B=vr(a,t.height)),b!==null&&(!a||Jo(a))&&(B=u&&f?b/r*i:t.height),B!==null&&Jo(s)&&(b=u&&f?B/i*r:t.width),b!==null&&B!==null)return[b,B];throw new Error("Unable to calculate background-size for element")},Zo=function(n,e){var t=n[e];return typeof t>"u"?n[0]:t},JO=function(n,e,t,r,i){var A=e[0],s=e[1],a=t[0],o=t[1];switch(n){case 2:return[new rt(Math.round(r.left),Math.round(r.top+s)),new rt(Math.round(r.left+r.width),Math.round(r.top+s)),new rt(Math.round(r.left+r.width),Math.round(o+r.top+s)),new rt(Math.round(r.left),Math.round(o+r.top+s))];case 3:return[new rt(Math.round(r.left+A),Math.round(r.top)),new rt(Math.round(r.left+A+a),Math.round(r.top)),new rt(Math.round(r.left+A+a),Math.round(r.height+r.top)),new rt(Math.round(r.left+A),Math.round(r.height+r.top))];case 1:return[new rt(Math.round(r.left+A),Math.round(r.top+s)),new rt(Math.round(r.left+A+a),Math.round(r.top+s)),new rt(Math.round(r.left+A+a),Math.round(r.top+s+o)),new rt(Math.round(r.left+A),Math.round(r.top+s+o))];default:return[new rt(Math.round(i.left),Math.round(i.top)),new rt(Math.round(i.left+i.width),Math.round(i.top)),new rt(Math.round(i.left+i.width),Math.round(i.height+i.top)),new rt(Math.round(i.left),Math.round(i.height+i.top))]}},ZO="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",XB="Hidden Text",eQ=function(){function n(e){this._data={},this._document=e}return n.prototype.parseMetrics=function(e,t){var r=this._document.createElement("div"),i=this._document.createElement("img"),A=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=e,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),i.src=ZO,i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",A.style.fontFamily=e,A.style.fontSize=t,A.style.margin="0",A.style.padding="0",A.appendChild(this._document.createTextNode(XB)),r.appendChild(A),r.appendChild(i);var a=i.offsetTop-A.offsetTop+2;r.removeChild(A),r.appendChild(this._document.createTextNode(XB)),r.style.lineHeight="normal",i.style.verticalAlign="super";var o=i.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:a,middle:o}},n.prototype.getMetrics=function(e,t){var r=e+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(e,t)),this._data[r]},n}(),YB=function(){function n(e,t){this.context=e,this.options=t}return n}(),tQ=1e4,rQ=function(n){uA(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i._activeEffects=[],i.canvas=r.canvas?r.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),r.canvas||(i.canvas.width=Math.floor(r.width*r.scale),i.canvas.height=Math.floor(r.height*r.scale),i.canvas.style.width=r.width+"px",i.canvas.style.height=r.height+"px"),i.fontMetrics=new eQ(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-r.x,-r.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),i}return e.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(i){return r.applyEffect(i)})},e.prototype.applyEffect=function(t){this.ctx.save(),jO(t)&&(this.ctx.globalAlpha=t.opacity),qO(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),qB(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return ei(this,void 0,void 0,function(){var r;return jn(this,function(i){switch(i.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return ei(this,void 0,void 0,function(){return jn(this,function(r){switch(r.label){case 0:if(hn(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,r,i){var A=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+i);else{var s=Dp(t.text);s.reduce(function(a,o){return A.ctx.fillText(o,a,t.bounds.top+i),a+A.ctx.measureText(o).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),i=aQ(t.fontFamily).join(", "),A=lu(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,A,i].join(" "),i,A]},e.prototype.renderTextNode=function(t,r){return ei(this,void 0,void 0,function(){var i,A,s,a,o,l,u,f,h=this;return jn(this,function(c){return i=this.createFontStyle(r),A=i[0],s=i[1],a=i[2],this.ctx.font=A,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(s,a),l=o.baseline,u=o.middle,f=r.paintOrder,t.textBounds.forEach(function(m){f.forEach(function(g){switch(g){case 0:h.ctx.fillStyle=wn(r.color),h.renderTextWithLetterSpacing(m,r.letterSpacing,l);var w=r.textShadow;w.length&&m.text.trim().length&&(w.slice(0).reverse().forEach(function(p){h.ctx.shadowColor=wn(p.color),h.ctx.shadowOffsetX=p.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=p.offsetY.number*h.options.scale,h.ctx.shadowBlur=p.blur.number,h.renderTextWithLetterSpacing(m,r.letterSpacing,l)}),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),r.textDecorationLine.length&&(h.ctx.fillStyle=wn(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(p){switch(p){case 1:h.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top+l),m.bounds.width,1);break;case 2:h.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top),m.bounds.width,1);break;case 3:h.ctx.fillRect(m.bounds.left,Math.ceil(m.bounds.top+u),m.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&m.text.trim().length&&(h.ctx.strokeStyle=wn(r.webkitTextStrokeColor),h.ctx.lineWidth=r.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(m.text,m.bounds.left,m.bounds.top+l)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,r,i){if(i&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var A=kf(t),s=Qf(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(i,0,0,t.intrinsicWidth,t.intrinsicHeight,A.left,A.top,A.width,A.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return ei(this,void 0,void 0,function(){var r,i,A,s,a,o,v,v,l,u,f,h,B,c,m,T,g,w,p,v,b,B,T;return jn(this,function(M){switch(M.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,i=t.curves,A=r.styles,s=0,a=r.textNodes,M.label=1;case 1:return s<a.length?(o=a[s],[4,this.renderTextNode(o,A)]):[3,4];case 2:M.sent(),M.label=3;case 3:return s++,[3,1];case 4:if(!(r instanceof dB))return[3,8];M.label=5;case 5:return M.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return v=M.sent(),this.renderReplacedElement(r,i,v),[3,8];case 7:return M.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof pB&&this.renderReplacedElement(r,i,r.canvas),!(r instanceof gB))return[3,12];M.label=9;case 9:return M.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return v=M.sent(),this.renderReplacedElement(r,i,v),[3,12];case 11:return M.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof bB&&r.tree?(l=new e(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,l.render(r.tree)]):[3,14];case 13:u=M.sent(),r.width&&r.height&&this.ctx.drawImage(u,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),M.label=14;case 14:if(r instanceof Hp&&(f=Math.min(r.bounds.width,r.bounds.height),r.type===Ff?r.checked&&(this.ctx.save(),this.path([new rt(r.bounds.left+f*.39363,r.bounds.top+f*.79),new rt(r.bounds.left+f*.16,r.bounds.top+f*.5549),new rt(r.bounds.left+f*.27347,r.bounds.top+f*.44071),new rt(r.bounds.left+f*.39694,r.bounds.top+f*.5649),new rt(r.bounds.left+f*.72983,r.bounds.top+f*.23),new rt(r.bounds.left+f*.84,r.bounds.top+f*.34085),new rt(r.bounds.left+f*.39363,r.bounds.top+f*.79)]),this.ctx.fillStyle=wn(vB),this.ctx.fill(),this.ctx.restore()):r.type===_f&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+f/2,r.bounds.top+f/2,f/4,0,Math.PI*2,!0),this.ctx.fillStyle=wn(vB),this.ctx.fill(),this.ctx.restore())),nQ(r)&&r.value.length){switch(h=this.createFontStyle(A),B=h[0],c=h[1],m=this.fontMetrics.getMetrics(B,c).baseline,this.ctx.font=B,this.ctx.fillStyle=wn(A.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=AQ(r.styles.textAlign),T=kf(r),g=0,r.styles.textAlign){case 1:g+=T.width/2;break;case 2:g+=T.width;break}w=T.add(g,0,0,-T.height/2+1),this.ctx.save(),this.path([new rt(T.left,T.top),new rt(T.left+T.width,T.top),new rt(T.left+T.width,T.top+T.height),new rt(T.left,T.top+T.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new du(r.value,w),A.letterSpacing,m),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!hn(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(p=r.styles.listStyleImage,p.type!==0)return[3,18];v=void 0,b=p.url,M.label=15;case 15:return M.trys.push([15,17,,18]),[4,this.context.cache.match(b)];case 16:return v=M.sent(),this.ctx.drawImage(v,r.bounds.left-(v.width+10),r.bounds.top),[3,18];case 17:return M.sent(),this.context.logger.error("Error loading list-style-image "+b),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==-1&&(B=this.createFontStyle(A)[0],this.ctx.font=B,this.ctx.fillStyle=wn(A.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",T=new cs(r.bounds.left,r.bounds.top+vr(r.styles.paddingTop,r.bounds.width),r.bounds.width,Xb(A.lineHeight,A.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new du(t.listValue,T),A.letterSpacing,Xb(A.lineHeight,A.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),M.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return ei(this,void 0,void 0,function(){var r,i,p,A,s,p,a,o,p,l,u,p,f,h,p,c,m,p,g,w,p;return jn(this,function(v){switch(v.label){case 0:if(hn(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:v.sent(),r=0,i=t.negativeZIndex,v.label=2;case 2:return r<i.length?(p=i[r],[4,this.renderStack(p)]):[3,5];case 3:v.sent(),v.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:v.sent(),A=0,s=t.nonInlineLevel,v.label=7;case 7:return A<s.length?(p=s[A],[4,this.renderNode(p)]):[3,10];case 8:v.sent(),v.label=9;case 9:return A++,[3,7];case 10:a=0,o=t.nonPositionedFloats,v.label=11;case 11:return a<o.length?(p=o[a],[4,this.renderStack(p)]):[3,14];case 12:v.sent(),v.label=13;case 13:return a++,[3,11];case 14:l=0,u=t.nonPositionedInlineLevel,v.label=15;case 15:return l<u.length?(p=u[l],[4,this.renderStack(p)]):[3,18];case 16:v.sent(),v.label=17;case 17:return l++,[3,15];case 18:f=0,h=t.inlineLevel,v.label=19;case 19:return f<h.length?(p=h[f],[4,this.renderNode(p)]):[3,22];case 20:v.sent(),v.label=21;case 21:return f++,[3,19];case 22:c=0,m=t.zeroOrAutoZIndexOrTransformedOrOpacity,v.label=23;case 23:return c<m.length?(p=m[c],[4,this.renderStack(p)]):[3,26];case 24:v.sent(),v.label=25;case 25:return c++,[3,23];case 26:g=0,w=t.positiveZIndex,v.label=27;case 27:return g<w.length?(p=w[g],[4,this.renderStack(p)]):[3,30];case 28:v.sent(),v.label=29;case 29:return g++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var r=this;t.forEach(function(i,A){var s=Mi(i)?i.start:i;A===0?r.ctx.moveTo(s.x,s.y):r.ctx.lineTo(s.x,s.y),Mi(i)&&r.ctx.bezierCurveTo(i.startControl.x,i.startControl.y,i.endControl.x,i.endControl.y,i.end.x,i.end.y)})},e.prototype.renderRepeat=function(t,r,i,A){this.path(t),this.ctx.fillStyle=r,this.ctx.translate(i,A),this.ctx.fill(),this.ctx.translate(-i,-A)},e.prototype.resizeImage=function(t,r,i){var A;if(t.width===r&&t.height===i)return t;var s=(A=this.canvas.ownerDocument)!==null&&A!==void 0?A:document,a=s.createElement("canvas");a.width=Math.max(1,r),a.height=Math.max(1,i);var o=a.getContext("2d");return o.drawImage(t,0,0,t.width,t.height,0,0,r,i),a},e.prototype.renderBackgroundImage=function(t){return ei(this,void 0,void 0,function(){var r,i,A,s,a,o;return jn(this,function(l){switch(l.label){case 0:r=t.styles.backgroundImage.length-1,i=function(u){var f,h,c,ae,Y,V,Q,C,j,m,ae,Y,V,Q,C,g,w,p,v,b,B,T,M,D,j,R,ae,L,x,Q,C,z,Y,V,ie,Ae,$,te,F,H,G,X;return jn(this,function(J){switch(J.label){case 0:if(u.type!==0)return[3,5];f=void 0,h=u.url,J.label=1;case 1:return J.trys.push([1,3,,4]),[4,A.context.cache.match(h)];case 2:return f=J.sent(),[3,4];case 3:return J.sent(),A.context.logger.error("Error loading background-image "+h),[3,4];case 4:return f&&(c=Jp(t,r,[f.width,f.height,f.width/f.height]),ae=c[0],Y=c[1],V=c[2],Q=c[3],C=c[4],j=A.ctx.createPattern(A.resizeImage(f,Q,C),"repeat"),A.renderRepeat(ae,j,Y,V)),[3,6];case 5:q6(u)?(m=Jp(t,r,[null,null,null]),ae=m[0],Y=m[1],V=m[2],Q=m[3],C=m[4],g=P6(u.angle,Q,C),w=g[0],p=g[1],v=g[2],b=g[3],B=g[4],T=document.createElement("canvas"),T.width=Q,T.height=C,M=T.getContext("2d"),D=M.createLinearGradient(p,b,v,B),kb(u.stops,w).forEach(function(O){return D.addColorStop(O.stop,wn(O.color))}),M.fillStyle=D,M.fillRect(0,0,Q,C),Q>0&&C>0&&(j=A.ctx.createPattern(T,"repeat"),A.renderRepeat(ae,j,Y,V))):j6(u)&&(R=Jp(t,r,[null,null,null]),ae=R[0],L=R[1],x=R[2],Q=R[3],C=R[4],z=u.position.length===0?[Ep]:u.position,Y=vr(z[0],Q),V=vr(z[z.length-1],C),ie=k6(u,Y,V,Q,C),Ae=ie[0],$=ie[1],Ae>0&&$>0&&(te=A.ctx.createRadialGradient(L+Y,x+V,0,L+Y,x+V,Ae),kb(u.stops,Ae*2).forEach(function(O){return te.addColorStop(O.stop,wn(O.color))}),A.path(ae),A.ctx.fillStyle=te,Ae!==$?(F=t.bounds.left+.5*t.bounds.width,H=t.bounds.top+.5*t.bounds.height,G=$/Ae,X=1/G,A.ctx.save(),A.ctx.translate(F,H),A.ctx.transform(1,0,0,G,0,0),A.ctx.translate(-F,-H),A.ctx.fillRect(L,X*(x-H)+H,Q,C*X),A.ctx.restore()):A.ctx.fill())),J.label=6;case 6:return r--,[2]}})},A=this,s=0,a=t.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return s<a.length?(o=a[s],[5,i(o)]):[3,4];case 2:l.sent(),l.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,r,i){return ei(this,void 0,void 0,function(){return jn(this,function(A){return this.path(zB(i,r)),this.ctx.fillStyle=wn(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,r,i,A){return ei(this,void 0,void 0,function(){var s,a;return jn(this,function(o){switch(o.label){case 0:return r<3?[4,this.renderSolidBorder(t,i,A)]:[3,2];case 1:return o.sent(),[2];case 2:return s=GO(A,i),this.path(s),this.ctx.fillStyle=wn(t),this.ctx.fill(),a=zO(A,i),this.path(a),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return ei(this,void 0,void 0,function(){var r,i,A,s,a,o,l,u,f=this;return jn(this,function(h){switch(h.label){case 0:return this.applyEffects(t.getEffects(2)),r=t.container.styles,i=!ta(r.backgroundColor)||r.backgroundImage.length,A=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],s=iQ(Zo(r.backgroundClip,0),t.curves),i||r.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),ta(r.backgroundColor)||(this.ctx.fillStyle=wn(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:h.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(c){f.ctx.save();var m=Of(t.curves),g=c.inset?0:tQ,w=KO(m,-g+(c.inset?1:-1)*c.spread.number,(c.inset?1:-1)*c.spread.number,c.spread.number*(c.inset?-2:2),c.spread.number*(c.inset?-2:2));c.inset?(f.path(m),f.ctx.clip(),f.mask(w)):(f.mask(m),f.ctx.clip(),f.path(w)),f.ctx.shadowOffsetX=c.offsetX.number+g,f.ctx.shadowOffsetY=c.offsetY.number,f.ctx.shadowColor=wn(c.color),f.ctx.shadowBlur=c.blur.number,f.ctx.fillStyle=c.inset?wn(c.color):"rgba(0,0,0,1)",f.ctx.fill(),f.ctx.restore()}),h.label=2;case 2:a=0,o=0,l=A,h.label=3;case 3:return o<l.length?(u=l[o],u.style!==0&&!ta(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,a,t.curves,2)]:[3,11]):[3,13];case 4:return h.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,a,t.curves,3)];case 6:return h.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,a,t.curves)];case 8:return h.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,a,t.curves)];case 10:h.sent(),h.label=11;case 11:a++,h.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,r,i,A,s){return ei(this,void 0,void 0,function(){var a,o,l,u,f,h,c,m,g,w,p,v,b,B,T,M,T,M;return jn(this,function(D){return this.ctx.save(),a=WO(A,i),o=zB(A,i),s===2&&(this.path(o),this.ctx.clip()),Mi(o[0])?(l=o[0].start.x,u=o[0].start.y):(l=o[0].x,u=o[0].y),Mi(o[1])?(f=o[1].end.x,h=o[1].end.y):(f=o[1].x,h=o[1].y),i===0||i===2?c=Math.abs(l-f):c=Math.abs(u-h),this.ctx.beginPath(),s===3?this.formatPath(a):this.formatPath(o.slice(0,2)),m=r<3?r*3:r*2,g=r<3?r*2:r,s===3&&(m=r,g=r),w=!0,c<=m*2?w=!1:c<=m*2+g?(p=c/(2*m+g),m*=p,g*=p):(v=Math.floor((c+g)/(m+g)),b=(c-v*m)/(v-1),B=(c-(v+1)*m)/v,g=B<=0||Math.abs(g-b)<Math.abs(g-B)?b:B),w&&(s===3?this.ctx.setLineDash([0,m+g]):this.ctx.setLineDash([m,g])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=wn(t),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Mi(o[0])&&(T=o[3],M=o[0],this.ctx.beginPath(),this.formatPath([new rt(T.end.x,T.end.y),new rt(M.start.x,M.start.y)]),this.ctx.stroke()),Mi(o[1])&&(T=o[1],M=o[2],this.ctx.beginPath(),this.formatPath([new rt(T.end.x,T.end.y),new rt(M.start.x,M.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return ei(this,void 0,void 0,function(){var r;return jn(this,function(i){switch(i.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=wn(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=VO(t),[4,this.renderStack(r)];case 1:return i.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(YB),nQ=function(n){return n instanceof yB||n instanceof wB?!0:n instanceof Hp&&n.type!==_f&&n.type!==Ff},iQ=function(n,e){switch(n){case 0:return Of(e);case 2:return DO(e);case 1:default:return Qf(e)}},AQ=function(n){switch(n){case 1:return"center";case 2:return"right";case 0:default:return"left"}},sQ=["-apple-system","system-ui"],aQ=function(n){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?n.filter(function(e){return sQ.indexOf(e)===-1}):n},oQ=function(n){uA(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.canvas=r.canvas?r.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),i.options=r,i.canvas.width=Math.floor(r.width*r.scale),i.canvas.height=Math.floor(r.height*r.scale),i.canvas.style.width=r.width+"px",i.canvas.style.height=r.height+"px",i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-r.x,-r.y),i.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),i}return e.prototype.render=function(t){return ei(this,void 0,void 0,function(){var r,i;return jn(this,function(A){switch(A.label){case 0:return r=kp(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,lQ(r)];case 1:return i=A.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=wn(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(i,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(YB),lQ=function(n){return new Promise(function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(n))})},uQ=function(){function n(e){var t=e.id,r=e.enabled;this.id=t,this.enabled=r,this.start=Date.now()}return n.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Gc([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},n.prototype.getTime=function(){return Date.now()-this.start},n.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Gc([this.id,this.getTime()+"ms"],e))},n.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Gc([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},n.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Gc([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},n.instances={},n}(),cQ=function(){function n(e,t){var r;this.windowBounds=t,this.instanceName="#"+n.instanceCount++,this.logger=new uQ({id:this.instanceName,enabled:e.logging}),this.cache=(r=e.cache)!==null&&r!==void 0?r:new UO(this,e)}return n.instanceCount=1,n}(),$B=function(n,e){return e===void 0&&(e={}),fQ(n,e)};typeof window<"u"&&HB.setContext(window);var fQ=function(n,e){return ei(void 0,void 0,void 0,function(){var t,r,i,A,s,a,o,l,u,f,h,c,m,g,w,p,v,b,B,T,D,M,D,j,R,ae,L,x,Q,C,z,Y,V,ie,Ae,$,te,F,H,G;return jn(this,function(X){switch(X.label){case 0:if(!n||typeof n!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=n.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(r=t.defaultView,!r)throw new Error("Document is not attached to a Window");return i={allowTaint:(j=e.allowTaint)!==null&&j!==void 0?j:!1,imageTimeout:(R=e.imageTimeout)!==null&&R!==void 0?R:15e3,proxy:e.proxy,useCORS:(ae=e.useCORS)!==null&&ae!==void 0?ae:!1},A=np({logging:(L=e.logging)!==null&&L!==void 0?L:!0,cache:e.cache},i),s={windowWidth:(x=e.windowWidth)!==null&&x!==void 0?x:r.innerWidth,windowHeight:(Q=e.windowHeight)!==null&&Q!==void 0?Q:r.innerHeight,scrollX:(C=e.scrollX)!==null&&C!==void 0?C:r.pageXOffset,scrollY:(z=e.scrollY)!==null&&z!==void 0?z:r.pageYOffset},a=new cs(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),o=new cQ(A,a),l=(Y=e.foreignObjectRendering)!==null&&Y!==void 0?Y:!1,u={allowTaint:(V=e.allowTaint)!==null&&V!==void 0?V:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:l,copyStyles:l},o.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),f=new DB(o,n,u),h=f.clonedReferenceElement,h?[4,f.toIFrame(t,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return c=X.sent(),m=jp(h)||dO(h)?KU(h.ownerDocument):zc(o,h),g=m.width,w=m.height,p=m.left,v=m.top,b=hQ(o,h,e.backgroundColor),B={canvas:e.canvas,backgroundColor:b,scale:(Ae=(ie=e.scale)!==null&&ie!==void 0?ie:r.devicePixelRatio)!==null&&Ae!==void 0?Ae:1,x:(($=e.x)!==null&&$!==void 0?$:0)+p,y:((te=e.y)!==null&&te!==void 0?te:0)+v,width:(F=e.width)!==null&&F!==void 0?F:Math.ceil(g),height:(H=e.height)!==null&&H!==void 0?H:Math.ceil(w)},l?(o.logger.debug("Document cloned, using foreign object rendering"),D=new oQ(o,B),[4,D.render(h)]):[3,3];case 2:return T=X.sent(),[3,5];case 3:return o.logger.debug("Document cloned, element located at "+p+","+v+" with size "+g+"x"+w+" using computed rendering"),o.logger.debug("Starting DOM parsing"),M=CB(o,h),b===M.styles.backgroundColor&&(M.styles.backgroundColor=hs.TRANSPARENT),o.logger.debug("Starting renderer for element at "+B.x+","+B.y+" with size "+B.width+"x"+B.height),D=new rQ(o,B),[4,D.render(M)];case 4:T=X.sent(),X.label=5;case 5:return(!((G=e.removeContainer)!==null&&G!==void 0)||G)&&(DB.destroy(c)||o.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),o.logger.debug("Finished rendering"),[2,T]}})})},hQ=function(n,e,t){var r=e.ownerDocument,i=r.documentElement?cu(n,getComputedStyle(r.documentElement).backgroundColor):hs.TRANSPARENT,A=r.body?cu(n,getComputedStyle(r.body).backgroundColor):hs.TRANSPARENT,s=typeof t=="string"?cu(n,t):t===null?hs.TRANSPARENT:4294967295;return e===r.documentElement?ta(i)?ta(A)?s:A:i:s};const dQ=Object.freeze(Object.defineProperty({__proto__:null,default:$B},Symbol.toStringTag,{value:"Module"})),JB=async(n,e="a4",t="document")=>{const A=n.cloneNode(!0);A.style.width="794px",A.style.position="absolute",A.style.top="0",A.style.left="-9999px",A.style.padding="0",A.style.margin="0",A.style.boxSizing="border-box",document.body.appendChild(A);const s=await $B(A,{scale:2,useCORS:!0,allowTaint:!0,scrollY:-window.scrollY});document.body.removeChild(A);const a=new bt({format:e,unit:"pt"}),o=a.internal.pageSize.getWidth(),l=a.internal.pageSize.getHeight(),u=o-88,f=l-88,h=u;let m=s.height*h/s.width,g=0;for(;m>0;){const w=Math.min(f*s.width/h,s.height-g*s.width/h),p=document.createElement("canvas");p.width=s.width,p.height=w,p.getContext("2d").drawImage(s,0,g*s.width/h,s.width,w,0,0,s.width,w);const b=p.toDataURL("image/png"),B=w*h/s.width;a.addImage(b,"PNG",44,44,h,B),g+=f,m-=f,m>0&&a.addPage()}a.save(`${t}.pdf`)};var Mf={exports:{}},pQ=Mf.exports,ZB;function gQ(){return ZB||(ZB=1,function(n,e){(function(t,r){r()})(pQ,function(){function t(l,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,u,f){var h=new XMLHttpRequest;h.open("GET",l),h.responseType="blob",h.onload=function(){o(h.response,u,f)},h.onerror=function(){console.error("could not download file")},h.send()}function i(l){var u=new XMLHttpRequest;u.open("HEAD",l,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function A(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(u)}}var s=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Zn=="object"&&Zn.global===Zn?Zn:void 0,a=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=s.saveAs||(typeof window!="object"||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(l,u,f){var h=s.URL||s.webkitURL,c=document.createElement("a");u=u||l.name||"download",c.download=u,c.rel="noopener",typeof l=="string"?(c.href=l,c.origin===location.origin?A(c):i(c.href)?r(l,u,f):A(c,c.target="_blank")):(c.href=h.createObjectURL(l),setTimeout(function(){h.revokeObjectURL(c.href)},4e4),setTimeout(function(){A(c)},0))}:"msSaveOrOpenBlob"in navigator?function(l,u,f){if(u=u||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(t(l,f),u);else if(i(l))r(l,u,f);else{var h=document.createElement("a");h.href=l,h.target="_blank",setTimeout(function(){A(h)})}}:function(l,u,f,h){if(h=h||open("","_blank"),h&&(h.document.title=h.document.body.innerText="downloading..."),typeof l=="string")return r(l,u,f);var c=l.type==="application/octet-stream",m=/constructor/i.test(s.HTMLElement)||s.safari,g=/CriOS\/[\d]+/.test(navigator.userAgent);if((g||c&&m||a)&&typeof FileReader<"u"){var w=new FileReader;w.onloadend=function(){var b=w.result;b=g?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=b:location=b,h=null},w.readAsDataURL(l)}else{var p=s.URL||s.webkitURL,v=p.createObjectURL(l);h?h.location=v:location.href=v,h=null,setTimeout(function(){p.revokeObjectURL(v)},4e4)}});s.saveAs=o.saveAs=o,n.exports=o})}(Mf)),Mf.exports}var mQ=gQ(),vQ=Object.defineProperty,wQ=Object.defineProperties,yQ=Object.getOwnPropertyDescriptors,e5=Object.getOwnPropertySymbols,bQ=Object.prototype.hasOwnProperty,BQ=Object.prototype.propertyIsEnumerable,Zp=(n,e,t)=>e in n?vQ(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Gt=(n,e)=>{for(var t in e||(e={}))bQ.call(e,t)&&Zp(n,t,e[t]);if(e5)for(var t of e5(e))BQ.call(e,t)&&Zp(n,t,e[t]);return n},el=(n,e)=>wQ(n,yQ(e)),He=(n,e,t)=>Zp(n,typeof e!="symbol"?e+"":e,t),CQ=(n,e,t)=>new Promise((r,i)=>{var A=o=>{try{a(t.next(o))}catch(l){i(l)}},s=o=>{try{a(t.throw(o))}catch(l){i(l)}},a=o=>o.done?r(o.value):Promise.resolve(o.value).then(A,s);a((t=t.apply(n,e)).next())});class Hf{constructor(e){He(this,"rootKey"),this.rootKey=e}}const EQ=Object.seal({});class Ge extends Hf{constructor(e){super(e),He(this,"root"),this.root=new Array}prepForXml(e){var t;e.stack.push(this);const r=this.root.map(i=>i instanceof Hf?i.prepForXml(e):i).filter(i=>i!==void 0);return e.stack.pop(),{[this.rootKey]:r.length?r.length===1&&((t=r[0])!=null&&t._attr)?r[0]:r:EQ}}addChildElement(e){return this.root.push(e),this}}class qf extends Ge{prepForXml(e){const t=super.prepForXml(e);if(t&&(typeof t[this.rootKey]!="object"||Object.keys(t[this.rootKey]).length))return t}}class xt extends Hf{constructor(e){super("_attr"),He(this,"xmlKeys"),this.root=e}prepForXml(e){const t={};return Object.entries(this.root).forEach(([r,i])=>{if(i!==void 0){const A=this.xmlKeys&&this.xmlKeys[r]||r;t[A]=i}}),{_attr:t}}}class jf extends Hf{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:r})=>r!==void 0).reduce((r,{key:i,value:A})=>el(Gt({},r),{[i]:A}),{})}}}class Jr extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var HA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function t5(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var eg={},Kf={exports:{}},r5;function tg(){if(r5)return Kf.exports;r5=1;var n=typeof Reflect=="object"?Reflect:null,e=n&&typeof n.apply=="function"?n.apply:function(T,M,D){return Function.prototype.apply.call(T,M,D)},t;n&&typeof n.ownKeys=="function"?t=n.ownKeys:Object.getOwnPropertySymbols?t=function(T){return Object.getOwnPropertyNames(T).concat(Object.getOwnPropertySymbols(T))}:t=function(T){return Object.getOwnPropertyNames(T)};function r(B){console&&console.warn&&console.warn(B)}var i=Number.isNaN||function(T){return T!==T};function A(){A.init.call(this)}Kf.exports=A,Kf.exports.once=p,A.EventEmitter=A,A.prototype._events=void 0,A.prototype._eventsCount=0,A.prototype._maxListeners=void 0;var s=10;function a(B){if(typeof B!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof B)}Object.defineProperty(A,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(B){if(typeof B!="number"||B<0||i(B))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+B+".");s=B}}),A.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},A.prototype.setMaxListeners=function(T){if(typeof T!="number"||T<0||i(T))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+T+".");return this._maxListeners=T,this};function o(B){return B._maxListeners===void 0?A.defaultMaxListeners:B._maxListeners}A.prototype.getMaxListeners=function(){return o(this)},A.prototype.emit=function(T){for(var M=[],D=1;D<arguments.length;D++)M.push(arguments[D]);var j=T==="error",R=this._events;if(R!==void 0)j=j&&R.error===void 0;else if(!j)return!1;if(j){var ae;if(M.length>0&&(ae=M[0]),ae instanceof Error)throw ae;var L=new Error("Unhandled error."+(ae?" ("+ae.message+")":""));throw L.context=ae,L}var x=R[T];if(x===void 0)return!1;if(typeof x=="function")e(x,this,M);else for(var Q=x.length,C=m(x,Q),D=0;D<Q;++D)e(C[D],this,M);return!0};function l(B,T,M,D){var j,R,ae;if(a(M),R=B._events,R===void 0?(R=B._events=Object.create(null),B._eventsCount=0):(R.newListener!==void 0&&(B.emit("newListener",T,M.listener?M.listener:M),R=B._events),ae=R[T]),ae===void 0)ae=R[T]=M,++B._eventsCount;else if(typeof ae=="function"?ae=R[T]=D?[M,ae]:[ae,M]:D?ae.unshift(M):ae.push(M),j=o(B),j>0&&ae.length>j&&!ae.warned){ae.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+ae.length+" "+String(T)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=B,L.type=T,L.count=ae.length,r(L)}return B}A.prototype.addListener=function(T,M){return l(this,T,M,!1)},A.prototype.on=A.prototype.addListener,A.prototype.prependListener=function(T,M){return l(this,T,M,!0)};function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(B,T,M){var D={fired:!1,wrapFn:void 0,target:B,type:T,listener:M},j=u.bind(D);return j.listener=M,D.wrapFn=j,j}A.prototype.once=function(T,M){return a(M),this.on(T,f(this,T,M)),this},A.prototype.prependOnceListener=function(T,M){return a(M),this.prependListener(T,f(this,T,M)),this},A.prototype.removeListener=function(T,M){var D,j,R,ae,L;if(a(M),j=this._events,j===void 0)return this;if(D=j[T],D===void 0)return this;if(D===M||D.listener===M)--this._eventsCount===0?this._events=Object.create(null):(delete j[T],j.removeListener&&this.emit("removeListener",T,D.listener||M));else if(typeof D!="function"){for(R=-1,ae=D.length-1;ae>=0;ae--)if(D[ae]===M||D[ae].listener===M){L=D[ae].listener,R=ae;break}if(R<0)return this;R===0?D.shift():g(D,R),D.length===1&&(j[T]=D[0]),j.removeListener!==void 0&&this.emit("removeListener",T,L||M)}return this},A.prototype.off=A.prototype.removeListener,A.prototype.removeAllListeners=function(T){var M,D,j;if(D=this._events,D===void 0)return this;if(D.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):D[T]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete D[T]),this;if(arguments.length===0){var R=Object.keys(D),ae;for(j=0;j<R.length;++j)ae=R[j],ae!=="removeListener"&&this.removeAllListeners(ae);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(M=D[T],typeof M=="function")this.removeListener(T,M);else if(M!==void 0)for(j=M.length-1;j>=0;j--)this.removeListener(T,M[j]);return this};function h(B,T,M){var D=B._events;if(D===void 0)return[];var j=D[T];return j===void 0?[]:typeof j=="function"?M?[j.listener||j]:[j]:M?w(j):m(j,j.length)}A.prototype.listeners=function(T){return h(this,T,!0)},A.prototype.rawListeners=function(T){return h(this,T,!1)},A.listenerCount=function(B,T){return typeof B.listenerCount=="function"?B.listenerCount(T):c.call(B,T)},A.prototype.listenerCount=c;function c(B){var T=this._events;if(T!==void 0){var M=T[B];if(typeof M=="function")return 1;if(M!==void 0)return M.length}return 0}A.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function m(B,T){for(var M=new Array(T),D=0;D<T;++D)M[D]=B[D];return M}function g(B,T){for(;T+1<B.length;T++)B[T]=B[T+1];B.pop()}function w(B){for(var T=new Array(B.length),M=0;M<T.length;++M)T[M]=B[M].listener||B[M];return T}function p(B,T){return new Promise(function(M,D){function j(ae){B.removeListener(T,R),D(ae)}function R(){typeof B.removeListener=="function"&&B.removeListener("error",j),M([].slice.call(arguments))}b(B,T,R,{once:!0}),T!=="error"&&v(B,j,{once:!0})})}function v(B,T,M){typeof B.on=="function"&&b(B,"error",T,M)}function b(B,T,M,D){if(typeof B.on=="function")D.once?B.once(T,M):B.on(T,M);else if(typeof B.addEventListener=="function")B.addEventListener(T,function j(R){D.once&&B.removeEventListener(T,j),M(R)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof B)}return Kf.exports}var Vf={exports:{}},n5;function Aa(){return n5||(n5=1,typeof Object.create=="function"?Vf.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Vf.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}),Vf.exports}function xQ(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var i5={exports:{}},Zr=i5.exports={},qA,jA;function rg(){throw new Error("setTimeout has not been defined")}function ng(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?qA=setTimeout:qA=rg}catch{qA=rg}try{typeof clearTimeout=="function"?jA=clearTimeout:jA=ng}catch{jA=ng}})();function A5(n){if(qA===setTimeout)return setTimeout(n,0);if((qA===rg||!qA)&&setTimeout)return qA=setTimeout,setTimeout(n,0);try{return qA(n,0)}catch{try{return qA.call(null,n,0)}catch{return qA.call(this,n,0)}}}function SQ(n){if(jA===clearTimeout)return clearTimeout(n);if((jA===ng||!jA)&&clearTimeout)return jA=clearTimeout,clearTimeout(n);try{return jA(n)}catch{try{return jA.call(null,n)}catch{return jA.call(this,n)}}}var ps=[],tl=!1,Xa,Gf=-1;function FQ(){!tl||!Xa||(tl=!1,Xa.length?ps=Xa.concat(ps):Gf=-1,ps.length&&s5())}function s5(){if(!tl){var n=A5(FQ);tl=!0;for(var e=ps.length;e;){for(Xa=ps,ps=[];++Gf<e;)Xa&&Xa[Gf].run();Gf=-1,e=ps.length}Xa=null,tl=!1,SQ(n)}}Zr.nextTick=function(n){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];ps.push(new a5(n,e)),ps.length===1&&!tl&&A5(s5)};function a5(n,e){this.fun=n,this.array=e}a5.prototype.run=function(){this.fun.apply(null,this.array)},Zr.title="browser",Zr.browser=!0,Zr.env={},Zr.argv=[],Zr.version="",Zr.versions={};function gs(){}Zr.on=gs,Zr.addListener=gs,Zr.once=gs,Zr.off=gs,Zr.removeListener=gs,Zr.removeAllListeners=gs,Zr.emit=gs,Zr.prependListener=gs,Zr.prependOnceListener=gs,Zr.listeners=function(n){return[]},Zr.binding=function(n){throw new Error("process.binding is not supported")},Zr.cwd=function(){return"/"},Zr.chdir=function(n){throw new Error("process.chdir is not supported")},Zr.umask=function(){return 0};var _Q=i5.exports;const Pt=xQ(_Q);var ig,o5;function l5(){return o5||(o5=1,ig=tg().EventEmitter),ig}var Ag={},vu={},u5;function TQ(){if(u5)return vu;u5=1,vu.byteLength=a,vu.toByteArray=l,vu.fromByteArray=h;for(var n=[],e=[],t=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,A=r.length;i<A;++i)n[i]=r[i],e[r.charCodeAt(i)]=i;e[45]=62,e[95]=63;function s(c){var m=c.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=c.indexOf("=");g===-1&&(g=m);var w=g===m?0:4-g%4;return[g,w]}function a(c){var m=s(c),g=m[0],w=m[1];return(g+w)*3/4-w}function o(c,m,g){return(m+g)*3/4-g}function l(c){var m,g=s(c),w=g[0],p=g[1],v=new t(o(c,w,p)),b=0,B=p>0?w-4:w,T;for(T=0;T<B;T+=4)m=e[c.charCodeAt(T)]<<18|e[c.charCodeAt(T+1)]<<12|e[c.charCodeAt(T+2)]<<6|e[c.charCodeAt(T+3)],v[b++]=m>>16&255,v[b++]=m>>8&255,v[b++]=m&255;return p===2&&(m=e[c.charCodeAt(T)]<<2|e[c.charCodeAt(T+1)]>>4,v[b++]=m&255),p===1&&(m=e[c.charCodeAt(T)]<<10|e[c.charCodeAt(T+1)]<<4|e[c.charCodeAt(T+2)]>>2,v[b++]=m>>8&255,v[b++]=m&255),v}function u(c){return n[c>>18&63]+n[c>>12&63]+n[c>>6&63]+n[c&63]}function f(c,m,g){for(var w,p=[],v=m;v<g;v+=3)w=(c[v]<<16&16711680)+(c[v+1]<<8&65280)+(c[v+2]&255),p.push(u(w));return p.join("")}function h(c){for(var m,g=c.length,w=g%3,p=[],v=16383,b=0,B=g-w;b<B;b+=v)p.push(f(c,b,b+v>B?B:b+v));return w===1?(m=c[g-1],p.push(n[m>>2]+n[m<<4&63]+"==")):w===2&&(m=(c[g-2]<<8)+c[g-1],p.push(n[m>>10]+n[m>>4&63]+n[m<<2&63]+"=")),p.join("")}return vu}var zf={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var c5;function IQ(){return c5||(c5=1,zf.read=function(n,e,t,r,i){var A,s,a=i*8-r-1,o=(1<<a)-1,l=o>>1,u=-7,f=t?i-1:0,h=t?-1:1,c=n[e+f];for(f+=h,A=c&(1<<-u)-1,c>>=-u,u+=a;u>0;A=A*256+n[e+f],f+=h,u-=8);for(s=A&(1<<-u)-1,A>>=-u,u+=r;u>0;s=s*256+n[e+f],f+=h,u-=8);if(A===0)A=1-l;else{if(A===o)return s?NaN:(c?-1:1)*(1/0);s=s+Math.pow(2,r),A=A-l}return(c?-1:1)*s*Math.pow(2,A-r)},zf.write=function(n,e,t,r,i,A){var s,a,o,l=A*8-i-1,u=(1<<l)-1,f=u>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=r?0:A-1,m=r?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(o=Math.pow(2,-s))<1&&(s--,o*=2),s+f>=1?e+=h/o:e+=h*Math.pow(2,1-f),e*o>=2&&(s++,o/=2),s+f>=u?(a=0,s=u):s+f>=1?(a=(e*o-1)*Math.pow(2,i),s=s+f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;n[t+c]=a&255,c+=m,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;n[t+c]=s&255,c+=m,s/=256,l-=8);n[t+c-m]|=g*128}),zf}/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var f5;function Wf(){return f5||(f5=1,function(n){var e=TQ(),t=IQ(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=a,n.SlowBuffer=v,n.INSPECT_MAX_BYTES=50;var i=2147483647;n.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=A(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function A(){try{var I=new Uint8Array(1),E={foo:function(){return 42}};return Object.setPrototypeOf(E,Uint8Array.prototype),Object.setPrototypeOf(I,E),I.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(I){if(I>i)throw new RangeError('The value "'+I+'" is invalid for option "size"');var E=new Uint8Array(I);return Object.setPrototypeOf(E,a.prototype),E}function a(I,E,S){if(typeof I=="number"){if(typeof E=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(I)}return o(I,E,S)}a.poolSize=8192;function o(I,E,S){if(typeof I=="string")return h(I,E);if(ArrayBuffer.isView(I))return m(I);if(I==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(me(I,ArrayBuffer)||I&&me(I.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(me(I,SharedArrayBuffer)||I&&me(I.buffer,SharedArrayBuffer)))return g(I,E,S);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var P=I.valueOf&&I.valueOf();if(P!=null&&P!==I)return a.from(P,E,S);var oe=w(I);if(oe)return oe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return a.from(I[Symbol.toPrimitive]("string"),E,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}a.from=function(I,E,S){return o(I,E,S)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function u(I,E,S){return l(I),I<=0?s(I):E!==void 0?typeof S=="string"?s(I).fill(E,S):s(I).fill(E):s(I)}a.alloc=function(I,E,S){return u(I,E,S)};function f(I){return l(I),s(I<0?0:p(I)|0)}a.allocUnsafe=function(I){return f(I)},a.allocUnsafeSlow=function(I){return f(I)};function h(I,E){if((typeof E!="string"||E==="")&&(E="utf8"),!a.isEncoding(E))throw new TypeError("Unknown encoding: "+E);var S=b(I,E)|0,P=s(S),oe=P.write(I,E);return oe!==S&&(P=P.slice(0,oe)),P}function c(I){for(var E=I.length<0?0:p(I.length)|0,S=s(E),P=0;P<E;P+=1)S[P]=I[P]&255;return S}function m(I){if(me(I,Uint8Array)){var E=new Uint8Array(I);return g(E.buffer,E.byteOffset,E.byteLength)}return c(I)}function g(I,E,S){if(E<0||I.byteLength<E)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<E+(S||0))throw new RangeError('"length" is outside of buffer bounds');var P;return E===void 0&&S===void 0?P=new Uint8Array(I):S===void 0?P=new Uint8Array(I,E):P=new Uint8Array(I,E,S),Object.setPrototypeOf(P,a.prototype),P}function w(I){if(a.isBuffer(I)){var E=p(I.length)|0,S=s(E);return S.length===0||I.copy(S,0,0,E),S}if(I.length!==void 0)return typeof I.length!="number"||k(I.length)?s(0):c(I);if(I.type==="Buffer"&&Array.isArray(I.data))return c(I.data)}function p(I){if(I>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return I|0}function v(I){return+I!=I&&(I=0),a.alloc(+I)}a.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==a.prototype},a.compare=function(E,S){if(me(E,Uint8Array)&&(E=a.from(E,E.offset,E.byteLength)),me(S,Uint8Array)&&(S=a.from(S,S.offset,S.byteLength)),!a.isBuffer(E)||!a.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===S)return 0;for(var P=E.length,oe=S.length,ge=0,ce=Math.min(P,oe);ge<ce;++ge)if(E[ge]!==S[ge]){P=E[ge],oe=S[ge];break}return P<oe?-1:oe<P?1:0},a.isEncoding=function(E){switch(String(E).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(E,S){if(!Array.isArray(E))throw new TypeError('"list" argument must be an Array of Buffers');if(E.length===0)return a.alloc(0);var P;if(S===void 0)for(S=0,P=0;P<E.length;++P)S+=E[P].length;var oe=a.allocUnsafe(S),ge=0;for(P=0;P<E.length;++P){var ce=E[P];if(me(ce,Uint8Array))ge+ce.length>oe.length?a.from(ce).copy(oe,ge):Uint8Array.prototype.set.call(oe,ce,ge);else if(a.isBuffer(ce))ce.copy(oe,ge);else throw new TypeError('"list" argument must be an Array of Buffers');ge+=ce.length}return oe};function b(I,E){if(a.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||me(I,ArrayBuffer))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);var S=I.length,P=arguments.length>2&&arguments[2]===!0;if(!P&&S===0)return 0;for(var oe=!1;;)switch(E){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return U(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return W(I).length;default:if(oe)return P?-1:U(I).length;E=(""+E).toLowerCase(),oe=!0}}a.byteLength=b;function B(I,E,S){var P=!1;if((E===void 0||E<0)&&(E=0),E>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,E>>>=0,S<=E))return"";for(I||(I="utf8");;)switch(I){case"hex":return Ae(this,E,S);case"utf8":case"utf-8":return C(this,E,S);case"ascii":return V(this,E,S);case"latin1":case"binary":return ie(this,E,S);case"base64":return Q(this,E,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,E,S);default:if(P)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),P=!0}}a.prototype._isBuffer=!0;function T(I,E,S){var P=I[E];I[E]=I[S],I[S]=P}a.prototype.swap16=function(){var E=this.length;if(E%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var S=0;S<E;S+=2)T(this,S,S+1);return this},a.prototype.swap32=function(){var E=this.length;if(E%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var S=0;S<E;S+=4)T(this,S,S+3),T(this,S+1,S+2);return this},a.prototype.swap64=function(){var E=this.length;if(E%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var S=0;S<E;S+=8)T(this,S,S+7),T(this,S+1,S+6),T(this,S+2,S+5),T(this,S+3,S+4);return this},a.prototype.toString=function(){var E=this.length;return E===0?"":arguments.length===0?C(this,0,E):B.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(E){if(!a.isBuffer(E))throw new TypeError("Argument must be a Buffer");return this===E?!0:a.compare(this,E)===0},a.prototype.inspect=function(){var E="",S=n.INSPECT_MAX_BYTES;return E=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(E+=" ... "),"<Buffer "+E+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(E,S,P,oe,ge){if(me(E,Uint8Array)&&(E=a.from(E,E.offset,E.byteLength)),!a.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if(S===void 0&&(S=0),P===void 0&&(P=E?E.length:0),oe===void 0&&(oe=0),ge===void 0&&(ge=this.length),S<0||P>E.length||oe<0||ge>this.length)throw new RangeError("out of range index");if(oe>=ge&&S>=P)return 0;if(oe>=ge)return-1;if(S>=P)return 1;if(S>>>=0,P>>>=0,oe>>>=0,ge>>>=0,this===E)return 0;for(var ce=ge-oe,Ee=P-S,ye=Math.min(ce,Ee),Be=this.slice(oe,ge),Ue=E.slice(S,P),Oe=0;Oe<ye;++Oe)if(Be[Oe]!==Ue[Oe]){ce=Be[Oe],Ee=Ue[Oe];break}return ce<Ee?-1:Ee<ce?1:0};function M(I,E,S,P,oe){if(I.length===0)return-1;if(typeof S=="string"?(P=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,k(S)&&(S=oe?0:I.length-1),S<0&&(S=I.length+S),S>=I.length){if(oe)return-1;S=I.length-1}else if(S<0)if(oe)S=0;else return-1;if(typeof E=="string"&&(E=a.from(E,P)),a.isBuffer(E))return E.length===0?-1:D(I,E,S,P,oe);if(typeof E=="number")return E=E&255,typeof Uint8Array.prototype.indexOf=="function"?oe?Uint8Array.prototype.indexOf.call(I,E,S):Uint8Array.prototype.lastIndexOf.call(I,E,S):D(I,[E],S,P,oe);throw new TypeError("val must be string, number or Buffer")}function D(I,E,S,P,oe){var ge=1,ce=I.length,Ee=E.length;if(P!==void 0&&(P=String(P).toLowerCase(),P==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(I.length<2||E.length<2)return-1;ge=2,ce/=2,Ee/=2,S/=2}function ye($e,tt){return ge===1?$e[tt]:$e.readUInt16BE(tt*ge)}var Be;if(oe){var Ue=-1;for(Be=S;Be<ce;Be++)if(ye(I,Be)===ye(E,Ue===-1?0:Be-Ue)){if(Ue===-1&&(Ue=Be),Be-Ue+1===Ee)return Ue*ge}else Ue!==-1&&(Be-=Be-Ue),Ue=-1}else for(S+Ee>ce&&(S=ce-Ee),Be=S;Be>=0;Be--){for(var Oe=!0,Me=0;Me<Ee;Me++)if(ye(I,Be+Me)!==ye(E,Me)){Oe=!1;break}if(Oe)return Be}return-1}a.prototype.includes=function(E,S,P){return this.indexOf(E,S,P)!==-1},a.prototype.indexOf=function(E,S,P){return M(this,E,S,P,!0)},a.prototype.lastIndexOf=function(E,S,P){return M(this,E,S,P,!1)};function j(I,E,S,P){S=Number(S)||0;var oe=I.length-S;P?(P=Number(P),P>oe&&(P=oe)):P=oe;var ge=E.length;P>ge/2&&(P=ge/2);for(var ce=0;ce<P;++ce){var Ee=parseInt(E.substr(ce*2,2),16);if(k(Ee))return ce;I[S+ce]=Ee}return ce}function R(I,E,S,P){return Z(U(E,I.length-S),I,S,P)}function ae(I,E,S,P){return Z(ee(E),I,S,P)}function L(I,E,S,P){return Z(W(E),I,S,P)}function x(I,E,S,P){return Z(re(E,I.length-S),I,S,P)}a.prototype.write=function(E,S,P,oe){if(S===void 0)oe="utf8",P=this.length,S=0;else if(P===void 0&&typeof S=="string")oe=S,P=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(P)?(P=P>>>0,oe===void 0&&(oe="utf8")):(oe=P,P=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ge=this.length-S;if((P===void 0||P>ge)&&(P=ge),E.length>0&&(P<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");oe||(oe="utf8");for(var ce=!1;;)switch(oe){case"hex":return j(this,E,S,P);case"utf8":case"utf-8":return R(this,E,S,P);case"ascii":case"latin1":case"binary":return ae(this,E,S,P);case"base64":return L(this,E,S,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,E,S,P);default:if(ce)throw new TypeError("Unknown encoding: "+oe);oe=(""+oe).toLowerCase(),ce=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Q(I,E,S){return E===0&&S===I.length?e.fromByteArray(I):e.fromByteArray(I.slice(E,S))}function C(I,E,S){S=Math.min(I.length,S);for(var P=[],oe=E;oe<S;){var ge=I[oe],ce=null,Ee=ge>239?4:ge>223?3:ge>191?2:1;if(oe+Ee<=S){var ye,Be,Ue,Oe;switch(Ee){case 1:ge<128&&(ce=ge);break;case 2:ye=I[oe+1],(ye&192)===128&&(Oe=(ge&31)<<6|ye&63,Oe>127&&(ce=Oe));break;case 3:ye=I[oe+1],Be=I[oe+2],(ye&192)===128&&(Be&192)===128&&(Oe=(ge&15)<<12|(ye&63)<<6|Be&63,Oe>2047&&(Oe<55296||Oe>57343)&&(ce=Oe));break;case 4:ye=I[oe+1],Be=I[oe+2],Ue=I[oe+3],(ye&192)===128&&(Be&192)===128&&(Ue&192)===128&&(Oe=(ge&15)<<18|(ye&63)<<12|(Be&63)<<6|Ue&63,Oe>65535&&Oe<1114112&&(ce=Oe))}}ce===null?(ce=65533,Ee=1):ce>65535&&(ce-=65536,P.push(ce>>>10&1023|55296),ce=56320|ce&1023),P.push(ce),oe+=Ee}return Y(P)}var z=4096;function Y(I){var E=I.length;if(E<=z)return String.fromCharCode.apply(String,I);for(var S="",P=0;P<E;)S+=String.fromCharCode.apply(String,I.slice(P,P+=z));return S}function V(I,E,S){var P="";S=Math.min(I.length,S);for(var oe=E;oe<S;++oe)P+=String.fromCharCode(I[oe]&127);return P}function ie(I,E,S){var P="";S=Math.min(I.length,S);for(var oe=E;oe<S;++oe)P+=String.fromCharCode(I[oe]);return P}function Ae(I,E,S){var P=I.length;(!E||E<0)&&(E=0),(!S||S<0||S>P)&&(S=P);for(var oe="",ge=E;ge<S;++ge)oe+=pe[I[ge]];return oe}function $(I,E,S){for(var P=I.slice(E,S),oe="",ge=0;ge<P.length-1;ge+=2)oe+=String.fromCharCode(P[ge]+P[ge+1]*256);return oe}a.prototype.slice=function(E,S){var P=this.length;E=~~E,S=S===void 0?P:~~S,E<0?(E+=P,E<0&&(E=0)):E>P&&(E=P),S<0?(S+=P,S<0&&(S=0)):S>P&&(S=P),S<E&&(S=E);var oe=this.subarray(E,S);return Object.setPrototypeOf(oe,a.prototype),oe};function te(I,E,S){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+E>S)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(E,S,P){E=E>>>0,S=S>>>0,P||te(E,S,this.length);for(var oe=this[E],ge=1,ce=0;++ce<S&&(ge*=256);)oe+=this[E+ce]*ge;return oe},a.prototype.readUintBE=a.prototype.readUIntBE=function(E,S,P){E=E>>>0,S=S>>>0,P||te(E,S,this.length);for(var oe=this[E+--S],ge=1;S>0&&(ge*=256);)oe+=this[E+--S]*ge;return oe},a.prototype.readUint8=a.prototype.readUInt8=function(E,S){return E=E>>>0,S||te(E,1,this.length),this[E]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(E,S){return E=E>>>0,S||te(E,2,this.length),this[E]|this[E+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(E,S){return E=E>>>0,S||te(E,2,this.length),this[E]<<8|this[E+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(E,S){return E=E>>>0,S||te(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+this[E+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(E,S){return E=E>>>0,S||te(E,4,this.length),this[E]*16777216+(this[E+1]<<16|this[E+2]<<8|this[E+3])},a.prototype.readIntLE=function(E,S,P){E=E>>>0,S=S>>>0,P||te(E,S,this.length);for(var oe=this[E],ge=1,ce=0;++ce<S&&(ge*=256);)oe+=this[E+ce]*ge;return ge*=128,oe>=ge&&(oe-=Math.pow(2,8*S)),oe},a.prototype.readIntBE=function(E,S,P){E=E>>>0,S=S>>>0,P||te(E,S,this.length);for(var oe=S,ge=1,ce=this[E+--oe];oe>0&&(ge*=256);)ce+=this[E+--oe]*ge;return ge*=128,ce>=ge&&(ce-=Math.pow(2,8*S)),ce},a.prototype.readInt8=function(E,S){return E=E>>>0,S||te(E,1,this.length),this[E]&128?(255-this[E]+1)*-1:this[E]},a.prototype.readInt16LE=function(E,S){E=E>>>0,S||te(E,2,this.length);var P=this[E]|this[E+1]<<8;return P&32768?P|4294901760:P},a.prototype.readInt16BE=function(E,S){E=E>>>0,S||te(E,2,this.length);var P=this[E+1]|this[E]<<8;return P&32768?P|4294901760:P},a.prototype.readInt32LE=function(E,S){return E=E>>>0,S||te(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},a.prototype.readInt32BE=function(E,S){return E=E>>>0,S||te(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},a.prototype.readFloatLE=function(E,S){return E=E>>>0,S||te(E,4,this.length),t.read(this,E,!0,23,4)},a.prototype.readFloatBE=function(E,S){return E=E>>>0,S||te(E,4,this.length),t.read(this,E,!1,23,4)},a.prototype.readDoubleLE=function(E,S){return E=E>>>0,S||te(E,8,this.length),t.read(this,E,!0,52,8)},a.prototype.readDoubleBE=function(E,S){return E=E>>>0,S||te(E,8,this.length),t.read(this,E,!1,52,8)};function F(I,E,S,P,oe,ge){if(!a.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(E>oe||E<ge)throw new RangeError('"value" argument is out of bounds');if(S+P>I.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(E,S,P,oe){if(E=+E,S=S>>>0,P=P>>>0,!oe){var ge=Math.pow(2,8*P)-1;F(this,E,S,P,ge,0)}var ce=1,Ee=0;for(this[S]=E&255;++Ee<P&&(ce*=256);)this[S+Ee]=E/ce&255;return S+P},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(E,S,P,oe){if(E=+E,S=S>>>0,P=P>>>0,!oe){var ge=Math.pow(2,8*P)-1;F(this,E,S,P,ge,0)}var ce=P-1,Ee=1;for(this[S+ce]=E&255;--ce>=0&&(Ee*=256);)this[S+ce]=E/Ee&255;return S+P},a.prototype.writeUint8=a.prototype.writeUInt8=function(E,S,P){return E=+E,S=S>>>0,P||F(this,E,S,1,255,0),this[S]=E&255,S+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(E,S,P){return E=+E,S=S>>>0,P||F(this,E,S,2,65535,0),this[S]=E&255,this[S+1]=E>>>8,S+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(E,S,P){return E=+E,S=S>>>0,P||F(this,E,S,2,65535,0),this[S]=E>>>8,this[S+1]=E&255,S+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(E,S,P){return E=+E,S=S>>>0,P||F(this,E,S,4,4294967295,0),this[S+3]=E>>>24,this[S+2]=E>>>16,this[S+1]=E>>>8,this[S]=E&255,S+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(E,S,P){return E=+E,S=S>>>0,P||F(this,E,S,4,4294967295,0),this[S]=E>>>24,this[S+1]=E>>>16,this[S+2]=E>>>8,this[S+3]=E&255,S+4},a.prototype.writeIntLE=function(E,S,P,oe){if(E=+E,S=S>>>0,!oe){var ge=Math.pow(2,8*P-1);F(this,E,S,P,ge-1,-ge)}var ce=0,Ee=1,ye=0;for(this[S]=E&255;++ce<P&&(Ee*=256);)E<0&&ye===0&&this[S+ce-1]!==0&&(ye=1),this[S+ce]=(E/Ee>>0)-ye&255;return S+P},a.prototype.writeIntBE=function(E,S,P,oe){if(E=+E,S=S>>>0,!oe){var ge=Math.pow(2,8*P-1);F(this,E,S,P,ge-1,-ge)}var ce=P-1,Ee=1,ye=0;for(this[S+ce]=E&255;--ce>=0&&(Ee*=256);)E<0&&ye===0&&this[S+ce+1]!==0&&(ye=1),this[S+ce]=(E/Ee>>0)-ye&255;return S+P},a.prototype.writeInt8=function(E,S,P){return E=+E,S=S>>>0,P||F(this,E,S,1,127,-128),E<0&&(E=255+E+1),this[S]=E&255,S+1},a.prototype.writeInt16LE=function(E,S,P){return E=+E,S=S>>>0,P||F(this,E,S,2,32767,-32768),this[S]=E&255,this[S+1]=E>>>8,S+2},a.prototype.writeInt16BE=function(E,S,P){return E=+E,S=S>>>0,P||F(this,E,S,2,32767,-32768),this[S]=E>>>8,this[S+1]=E&255,S+2},a.prototype.writeInt32LE=function(E,S,P){return E=+E,S=S>>>0,P||F(this,E,S,4,2147483647,-2147483648),this[S]=E&255,this[S+1]=E>>>8,this[S+2]=E>>>16,this[S+3]=E>>>24,S+4},a.prototype.writeInt32BE=function(E,S,P){return E=+E,S=S>>>0,P||F(this,E,S,4,2147483647,-2147483648),E<0&&(E=4294967295+E+1),this[S]=E>>>24,this[S+1]=E>>>16,this[S+2]=E>>>8,this[S+3]=E&255,S+4};function H(I,E,S,P,oe,ge){if(S+P>I.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function G(I,E,S,P,oe){return E=+E,S=S>>>0,oe||H(I,E,S,4),t.write(I,E,S,P,23,4),S+4}a.prototype.writeFloatLE=function(E,S,P){return G(this,E,S,!0,P)},a.prototype.writeFloatBE=function(E,S,P){return G(this,E,S,!1,P)};function X(I,E,S,P,oe){return E=+E,S=S>>>0,oe||H(I,E,S,8),t.write(I,E,S,P,52,8),S+8}a.prototype.writeDoubleLE=function(E,S,P){return X(this,E,S,!0,P)},a.prototype.writeDoubleBE=function(E,S,P){return X(this,E,S,!1,P)},a.prototype.copy=function(E,S,P,oe){if(!a.isBuffer(E))throw new TypeError("argument should be a Buffer");if(P||(P=0),!oe&&oe!==0&&(oe=this.length),S>=E.length&&(S=E.length),S||(S=0),oe>0&&oe<P&&(oe=P),oe===P||E.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(P<0||P>=this.length)throw new RangeError("Index out of range");if(oe<0)throw new RangeError("sourceEnd out of bounds");oe>this.length&&(oe=this.length),E.length-S<oe-P&&(oe=E.length-S+P);var ge=oe-P;return this===E&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(S,P,oe):Uint8Array.prototype.set.call(E,this.subarray(P,oe),S),ge},a.prototype.fill=function(E,S,P,oe){if(typeof E=="string"){if(typeof S=="string"?(oe=S,S=0,P=this.length):typeof P=="string"&&(oe=P,P=this.length),oe!==void 0&&typeof oe!="string")throw new TypeError("encoding must be a string");if(typeof oe=="string"&&!a.isEncoding(oe))throw new TypeError("Unknown encoding: "+oe);if(E.length===1){var ge=E.charCodeAt(0);(oe==="utf8"&&ge<128||oe==="latin1")&&(E=ge)}}else typeof E=="number"?E=E&255:typeof E=="boolean"&&(E=Number(E));if(S<0||this.length<S||this.length<P)throw new RangeError("Out of range index");if(P<=S)return this;S=S>>>0,P=P===void 0?this.length:P>>>0,E||(E=0);var ce;if(typeof E=="number")for(ce=S;ce<P;++ce)this[ce]=E;else{var Ee=a.isBuffer(E)?E:a.from(E,oe),ye=Ee.length;if(ye===0)throw new TypeError('The value "'+E+'" is invalid for argument "value"');for(ce=0;ce<P-S;++ce)this[ce+S]=Ee[ce%ye]}return this};var J=/[^+/0-9A-Za-z-_]/g;function O(I){if(I=I.split("=")[0],I=I.trim().replace(J,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function U(I,E){E=E||1/0;for(var S,P=I.length,oe=null,ge=[],ce=0;ce<P;++ce){if(S=I.charCodeAt(ce),S>55295&&S<57344){if(!oe){if(S>56319){(E-=3)>-1&&ge.push(239,191,189);continue}else if(ce+1===P){(E-=3)>-1&&ge.push(239,191,189);continue}oe=S;continue}if(S<56320){(E-=3)>-1&&ge.push(239,191,189),oe=S;continue}S=(oe-55296<<10|S-56320)+65536}else oe&&(E-=3)>-1&&ge.push(239,191,189);if(oe=null,S<128){if((E-=1)<0)break;ge.push(S)}else if(S<2048){if((E-=2)<0)break;ge.push(S>>6|192,S&63|128)}else if(S<65536){if((E-=3)<0)break;ge.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((E-=4)<0)break;ge.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return ge}function ee(I){for(var E=[],S=0;S<I.length;++S)E.push(I.charCodeAt(S)&255);return E}function re(I,E){for(var S,P,oe,ge=[],ce=0;ce<I.length&&!((E-=2)<0);++ce)S=I.charCodeAt(ce),P=S>>8,oe=S%256,ge.push(oe),ge.push(P);return ge}function W(I){return e.toByteArray(O(I))}function Z(I,E,S,P){for(var oe=0;oe<P&&!(oe+S>=E.length||oe>=I.length);++oe)E[oe+S]=I[oe];return oe}function me(I,E){return I instanceof E||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===E.name}function k(I){return I!==I}var pe=function(){for(var I="0123456789abcdef",E=new Array(256),S=0;S<16;++S)for(var P=S*16,oe=0;oe<16;++oe)E[P+oe]=I[S]+I[oe];return E}()}(Ag)),Ag}var sg={},ag={},og,h5;function d5(){return h5||(h5=1,og=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var A in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==i||a.enumerable!==!0)return!1}return!0}),og}var lg,p5;function ug(){if(p5)return lg;p5=1;var n=d5();return lg=function(){return n()&&!!Symbol.toStringTag},lg}var cg,g5;function m5(){return g5||(g5=1,cg=Object),cg}var fg,v5;function UQ(){return v5||(v5=1,fg=Error),fg}var hg,w5;function NQ(){return w5||(w5=1,hg=EvalError),hg}var dg,y5;function LQ(){return y5||(y5=1,dg=RangeError),dg}var pg,b5;function OQ(){return b5||(b5=1,pg=ReferenceError),pg}var gg,B5;function C5(){return B5||(B5=1,gg=SyntaxError),gg}var mg,E5;function wu(){return E5||(E5=1,mg=TypeError),mg}var vg,x5;function QQ(){return x5||(x5=1,vg=URIError),vg}var wg,S5;function RQ(){return S5||(S5=1,wg=Math.abs),wg}var yg,F5;function PQ(){return F5||(F5=1,yg=Math.floor),yg}var bg,_5;function kQ(){return _5||(_5=1,bg=Math.max),bg}var Bg,T5;function DQ(){return T5||(T5=1,Bg=Math.min),Bg}var Cg,I5;function MQ(){return I5||(I5=1,Cg=Math.pow),Cg}var Eg,U5;function HQ(){return U5||(U5=1,Eg=Math.round),Eg}var xg,N5;function qQ(){return N5||(N5=1,xg=Number.isNaN||function(e){return e!==e}),xg}var Sg,L5;function jQ(){if(L5)return Sg;L5=1;var n=qQ();return Sg=function(t){return n(t)||t===0?t:t<0?-1:1},Sg}var Fg,O5;function KQ(){return O5||(O5=1,Fg=Object.getOwnPropertyDescriptor),Fg}var _g,Q5;function yu(){if(Q5)return _g;Q5=1;var n=KQ();if(n)try{n([],"length")}catch{n=null}return _g=n,_g}var Tg,R5;function Xf(){if(R5)return Tg;R5=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return Tg=n,Tg}var Ig,P5;function VQ(){if(P5)return Ig;P5=1;var n=typeof Symbol<"u"&&Symbol,e=d5();return Ig=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Ig}var Ug,k5;function D5(){return k5||(k5=1,Ug=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ug}var Ng,M5;function H5(){if(M5)return Ng;M5=1;var n=m5();return Ng=n.getPrototypeOf||null,Ng}var Lg,q5;function GQ(){if(q5)return Lg;q5=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,r="[object Function]",i=function(o,l){for(var u=[],f=0;f<o.length;f+=1)u[f]=o[f];for(var h=0;h<l.length;h+=1)u[h+o.length]=l[h];return u},A=function(o,l){for(var u=[],f=l,h=0;f<o.length;f+=1,h+=1)u[h]=o[f];return u},s=function(a,o){for(var l="",u=0;u<a.length;u+=1)l+=a[u],u+1<a.length&&(l+=o);return l};return Lg=function(o){var l=this;if(typeof l!="function"||e.apply(l)!==r)throw new TypeError(n+l);for(var u=A(arguments,1),f,h=function(){if(this instanceof f){var p=l.apply(this,i(u,arguments));return Object(p)===p?p:this}return l.apply(o,i(u,arguments))},c=t(0,l.length-u.length),m=[],g=0;g<c;g++)m[g]="$"+g;if(f=Function("binder","return function ("+s(m,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var w=function(){};w.prototype=l.prototype,f.prototype=new w,w.prototype=null}return f},Lg}var Og,j5;function bu(){if(j5)return Og;j5=1;var n=GQ();return Og=Function.prototype.bind||n,Og}var Qg,K5;function Rg(){return K5||(K5=1,Qg=Function.prototype.call),Qg}var Pg,V5;function G5(){return V5||(V5=1,Pg=Function.prototype.apply),Pg}var kg,z5;function zQ(){return z5||(z5=1,kg=typeof Reflect<"u"&&Reflect&&Reflect.apply),kg}var Dg,W5;function WQ(){if(W5)return Dg;W5=1;var n=bu(),e=G5(),t=Rg(),r=zQ();return Dg=r||n.call(t,e),Dg}var Mg,X5;function XQ(){if(X5)return Mg;X5=1;var n=bu(),e=wu(),t=Rg(),r=WQ();return Mg=function(A){if(A.length<1||typeof A[0]!="function")throw new e("a function is required");return r(n,t,A)},Mg}var Hg,Y5;function YQ(){if(Y5)return Hg;Y5=1;var n=XQ(),e=yu(),t;try{t=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var r=!!t&&e&&e(Object.prototype,"__proto__"),i=Object,A=i.getPrototypeOf;return Hg=r&&typeof r.get=="function"?n([r.get]):typeof A=="function"?function(a){return A(a==null?a:i(a))}:!1,Hg}var qg,$5;function $Q(){if($5)return qg;$5=1;var n=D5(),e=H5(),t=YQ();return qg=n?function(i){return n(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:t?function(i){return t(i)}:null,qg}var jg,J5;function JQ(){if(J5)return jg;J5=1;var n=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=bu();return jg=t.call(n,e),jg}var Kg,Z5;function Vg(){if(Z5)return Kg;Z5=1;var n,e=m5(),t=UQ(),r=NQ(),i=LQ(),A=OQ(),s=C5(),a=wu(),o=QQ(),l=RQ(),u=PQ(),f=kQ(),h=DQ(),c=MQ(),m=HQ(),g=jQ(),w=Function,p=function(ee){try{return w('"use strict"; return ('+ee+").constructor;")()}catch{}},v=yu(),b=Xf(),B=function(){throw new a},T=v?function(){try{return arguments.callee,B}catch{try{return v(arguments,"callee").get}catch{return B}}}():B,M=VQ()(),D=$Q(),j=H5(),R=D5(),ae=G5(),L=Rg(),x={},Q=typeof Uint8Array>"u"||!D?n:D(Uint8Array),C={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":M&&D?D([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":M&&D?D(D([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!M||!D?n:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":v,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":i,"%ReferenceError%":A,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!M||!D?n:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":M&&D?D(""[Symbol.iterator]()):n,"%Symbol%":M?Symbol:n,"%SyntaxError%":s,"%ThrowTypeError%":T,"%TypedArray%":Q,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":o,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":ae,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":j,"%Math.abs%":l,"%Math.floor%":u,"%Math.max%":f,"%Math.min%":h,"%Math.pow%":c,"%Math.round%":m,"%Math.sign%":g,"%Reflect.getPrototypeOf%":R};if(D)try{null.error}catch(ee){var z=D(D(ee));C["%Error.prototype%"]=z}var Y=function ee(re){var W;if(re==="%AsyncFunction%")W=p("async function () {}");else if(re==="%GeneratorFunction%")W=p("function* () {}");else if(re==="%AsyncGeneratorFunction%")W=p("async function* () {}");else if(re==="%AsyncGenerator%"){var Z=ee("%AsyncGeneratorFunction%");Z&&(W=Z.prototype)}else if(re==="%AsyncIteratorPrototype%"){var me=ee("%AsyncGenerator%");me&&D&&(W=D(me.prototype))}return C[re]=W,W},V={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ie=bu(),Ae=JQ(),$=ie.call(L,Array.prototype.concat),te=ie.call(ae,Array.prototype.splice),F=ie.call(L,String.prototype.replace),H=ie.call(L,String.prototype.slice),G=ie.call(L,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,O=function(re){var W=H(re,0,1),Z=H(re,-1);if(W==="%"&&Z!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&W!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var me=[];return F(re,X,function(k,pe,I,E){me[me.length]=I?F(E,J,"$1"):pe||k}),me},U=function(re,W){var Z=re,me;if(Ae(V,Z)&&(me=V[Z],Z="%"+me[0]+"%"),Ae(C,Z)){var k=C[Z];if(k===x&&(k=Y(Z)),typeof k>"u"&&!W)throw new a("intrinsic "+re+" exists, but is not available. Please file an issue!");return{alias:me,name:Z,value:k}}throw new s("intrinsic "+re+" does not exist!")};return Kg=function(re,W){if(typeof re!="string"||re.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof W!="boolean")throw new a('"allowMissing" argument must be a boolean');if(G(/^%?[^%]*%?$/,re)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Z=O(re),me=Z.length>0?Z[0]:"",k=U("%"+me+"%",W),pe=k.name,I=k.value,E=!1,S=k.alias;S&&(me=S[0],te(Z,$([0,1],S)));for(var P=1,oe=!0;P<Z.length;P+=1){var ge=Z[P],ce=H(ge,0,1),Ee=H(ge,-1);if((ce==='"'||ce==="'"||ce==="`"||Ee==='"'||Ee==="'"||Ee==="`")&&ce!==Ee)throw new s("property names with quotes must have matching quotes");if((ge==="constructor"||!oe)&&(E=!0),me+="."+ge,pe="%"+me+"%",Ae(C,pe))I=C[pe];else if(I!=null){if(!(ge in I)){if(!W)throw new a("base intrinsic for "+re+" exists, but the property is not available.");return}if(v&&P+1>=Z.length){var ye=v(I,ge);oe=!!ye,oe&&"get"in ye&&!("originalValue"in ye.get)?I=ye.get:I=I[ge]}else oe=Ae(I,ge),I=I[ge];oe&&!E&&(C[pe]=I)}}return I},Kg}var Gg={exports:{}},zg,eC;function ZQ(){if(eC)return zg;eC=1;var n=Xf(),e=C5(),t=wu(),r=yu();return zg=function(A,s,a){if(!A||typeof A!="object"&&typeof A!="function")throw new t("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new t("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new t("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new t("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new t("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new t("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,h=!!r&&r(A,s);if(n)n(A,s,{configurable:u===null&&h?h.configurable:!u,enumerable:o===null&&h?h.enumerable:!o,value:a,writable:l===null&&h?h.writable:!l});else if(f||!o&&!l&&!u)A[s]=a;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},zg}var Wg,tC;function eR(){if(tC)return Wg;tC=1;var n=Xf(),e=function(){return!!n};return e.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],"length",{value:1}).length!==1}catch{return!0}},Wg=e,Wg}var Xg,rC;function tR(){if(rC)return Xg;rC=1;var n=Vg(),e=ZQ(),t=eR()(),r=yu(),i=wu(),A=n("%Math.floor%");return Xg=function(a,o){if(typeof a!="function")throw new i("`fn` is not a function");if(typeof o!="number"||o<0||o>4294967295||A(o)!==o)throw new i("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],u=!0,f=!0;if("length"in a&&r){var h=r(a,"length");h&&!h.configurable&&(u=!1),h&&!h.writable&&(f=!1)}return(u||f||!l)&&(t?e(a,"length",o,!0,!0):e(a,"length",o)),a},Xg}var nC;function iC(){return nC||(nC=1,function(n){var e=bu(),t=Vg(),r=tR(),i=wu(),A=t("%Function.prototype.apply%"),s=t("%Function.prototype.call%"),a=t("%Reflect.apply%",!0)||e.call(s,A),o=Xf(),l=t("%Math.max%");n.exports=function(h){if(typeof h!="function")throw new i("a function is required");var c=a(e,s,arguments);return r(c,1+l(0,h.length-(arguments.length-1)),!0)};var u=function(){return a(e,A,arguments)};o?o(n.exports,"apply",{value:u}):n.exports.apply=u}(Gg)),Gg.exports}var Yg,AC;function sC(){if(AC)return Yg;AC=1;var n=Vg(),e=iC(),t=e(n("String.prototype.indexOf"));return Yg=function(i,A){var s=n(i,!!A);return typeof s=="function"&&t(i,".prototype.")>-1?e(s):s},Yg}var $g,aC;function rR(){if(aC)return $g;aC=1;var n=ug()(),e=sC(),t=e("Object.prototype.toString"),r=function(a){return n&&a&&typeof a=="object"&&Symbol.toStringTag in a?!1:t(a)==="[object Arguments]"},i=function(a){return r(a)?!0:a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&t(a)!=="[object Array]"&&t(a.callee)==="[object Function]"},A=function(){return r(arguments)}();return r.isLegacyArguments=i,$g=A?r:i,$g}var Jg,oC;function nR(){if(oC)return Jg;oC=1;var n=Object.prototype.toString,e=Function.prototype.toString,t=/^\s*(?:function)?\*/,r=ug()(),i=Object.getPrototypeOf,A=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}},s;return Jg=function(o){if(typeof o!="function")return!1;if(t.test(e.call(o)))return!0;if(!r){var l=n.call(o);return l==="[object GeneratorFunction]"}if(!i)return!1;if(typeof s>"u"){var u=A();s=u?i(u):!1}return i(o)===s},Jg}var Zg,lC;function iR(){if(lC)return Zg;lC=1;var n=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,t,r;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},e(function(){throw 42},null,t)}catch(v){v!==r&&(e=null)}else e=null;var i=/^\s*class\b/,A=function(b){try{var B=n.call(b);return i.test(B)}catch{return!1}},s=function(b){try{return A(b)?!1:(n.call(b),!0)}catch{return!1}},a=Object.prototype.toString,o="[object Object]",l="[object Function]",u="[object GeneratorFunction]",f="[object HTMLAllCollection]",h="[object HTML document.all class]",c="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),w=function(){return!1};if(typeof document=="object"){var p=document.all;a.call(p)===a.call(document.all)&&(w=function(b){if((g||!b)&&(typeof b>"u"||typeof b=="object"))try{var B=a.call(b);return(B===f||B===h||B===c||B===o)&&b("")==null}catch{}return!1})}return Zg=e?function(b){if(w(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;try{e(b,null,t)}catch(B){if(B!==r)return!1}return!A(b)&&s(b)}:function(b){if(w(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;if(m)return s(b);if(A(b))return!1;var B=a.call(b);return B!==l&&B!==u&&!/^\[object HTML/.test(B)?!1:s(b)},Zg}var e0,uC;function AR(){if(uC)return e0;uC=1;var n=iR(),e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=function(o,l,u){for(var f=0,h=o.length;f<h;f++)t.call(o,f)&&(u==null?l(o[f],f,o):l.call(u,o[f],f,o))},i=function(o,l,u){for(var f=0,h=o.length;f<h;f++)u==null?l(o.charAt(f),f,o):l.call(u,o.charAt(f),f,o)},A=function(o,l,u){for(var f in o)t.call(o,f)&&(u==null?l(o[f],f,o):l.call(u,o[f],f,o))},s=function(o,l,u){if(!n(l))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=u),e.call(o)==="[object Array]"?r(o,l,f):typeof o=="string"?i(o,l,f):A(o,l,f)};return e0=s,e0}var t0,cC;function sR(){return cC||(cC=1,t0=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),t0}var r0,fC;function aR(){if(fC)return r0;fC=1;var n=sR(),e=typeof globalThis>"u"?HA:globalThis;return r0=function(){for(var r=[],i=0;i<n.length;i++)typeof e[n[i]]=="function"&&(r[r.length]=n[i]);return r},r0}var n0,hC;function dC(){if(hC)return n0;hC=1;var n=AR(),e=aR(),t=iC(),r=sC(),i=yu(),A=r("Object.prototype.toString"),s=ug()(),a=typeof globalThis>"u"?HA:globalThis,o=e(),l=r("String.prototype.slice"),u=Object.getPrototypeOf,f=r("Array.prototype.indexOf",!0)||function(w,p){for(var v=0;v<w.length;v+=1)if(w[v]===p)return v;return-1},h={__proto__:null};s&&i&&u?n(o,function(g){var w=new a[g];if(Symbol.toStringTag in w){var p=u(w),v=i(p,Symbol.toStringTag);if(!v){var b=u(p);v=i(b,Symbol.toStringTag)}h["$"+g]=t(v.get)}}):n(o,function(g){var w=new a[g],p=w.slice||w.set;p&&(h["$"+g]=t(p))});var c=function(w){var p=!1;return n(h,function(v,b){if(!p)try{"$"+v(w)===b&&(p=l(b,1))}catch{}}),p},m=function(w){var p=!1;return n(h,function(v,b){if(!p)try{v(w),p=l(b,1)}catch{}}),p};return n0=function(w){if(!w||typeof w!="object")return!1;if(!s){var p=l(A(w),8,-1);return f(o,p)>-1?p:p!=="Object"?!1:m(w)}return i?c(w):null},n0}var i0,pC;function oR(){if(pC)return i0;pC=1;var n=dC();return i0=function(t){return!!n(t)},i0}var gC;function lR(){return gC||(gC=1,function(n){var e=rR(),t=nR(),r=dC(),i=oR();function A(P){return P.call.bind(P)}var s=typeof BigInt<"u",a=typeof Symbol<"u",o=A(Object.prototype.toString),l=A(Number.prototype.valueOf),u=A(String.prototype.valueOf),f=A(Boolean.prototype.valueOf);if(s)var h=A(BigInt.prototype.valueOf);if(a)var c=A(Symbol.prototype.valueOf);function m(P,oe){if(typeof P!="object")return!1;try{return oe(P),!0}catch{return!1}}n.isArgumentsObject=e,n.isGeneratorFunction=t,n.isTypedArray=i;function g(P){return typeof Promise<"u"&&P instanceof Promise||P!==null&&typeof P=="object"&&typeof P.then=="function"&&typeof P.catch=="function"}n.isPromise=g;function w(P){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(P):i(P)||H(P)}n.isArrayBufferView=w;function p(P){return r(P)==="Uint8Array"}n.isUint8Array=p;function v(P){return r(P)==="Uint8ClampedArray"}n.isUint8ClampedArray=v;function b(P){return r(P)==="Uint16Array"}n.isUint16Array=b;function B(P){return r(P)==="Uint32Array"}n.isUint32Array=B;function T(P){return r(P)==="Int8Array"}n.isInt8Array=T;function M(P){return r(P)==="Int16Array"}n.isInt16Array=M;function D(P){return r(P)==="Int32Array"}n.isInt32Array=D;function j(P){return r(P)==="Float32Array"}n.isFloat32Array=j;function R(P){return r(P)==="Float64Array"}n.isFloat64Array=R;function ae(P){return r(P)==="BigInt64Array"}n.isBigInt64Array=ae;function L(P){return r(P)==="BigUint64Array"}n.isBigUint64Array=L;function x(P){return o(P)==="[object Map]"}x.working=typeof Map<"u"&&x(new Map);function Q(P){return typeof Map>"u"?!1:x.working?x(P):P instanceof Map}n.isMap=Q;function C(P){return o(P)==="[object Set]"}C.working=typeof Set<"u"&&C(new Set);function z(P){return typeof Set>"u"?!1:C.working?C(P):P instanceof Set}n.isSet=z;function Y(P){return o(P)==="[object WeakMap]"}Y.working=typeof WeakMap<"u"&&Y(new WeakMap);function V(P){return typeof WeakMap>"u"?!1:Y.working?Y(P):P instanceof WeakMap}n.isWeakMap=V;function ie(P){return o(P)==="[object WeakSet]"}ie.working=typeof WeakSet<"u"&&ie(new WeakSet);function Ae(P){return ie(P)}n.isWeakSet=Ae;function $(P){return o(P)==="[object ArrayBuffer]"}$.working=typeof ArrayBuffer<"u"&&$(new ArrayBuffer);function te(P){return typeof ArrayBuffer>"u"?!1:$.working?$(P):P instanceof ArrayBuffer}n.isArrayBuffer=te;function F(P){return o(P)==="[object DataView]"}F.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&F(new DataView(new ArrayBuffer(1),0,1));function H(P){return typeof DataView>"u"?!1:F.working?F(P):P instanceof DataView}n.isDataView=H;var G=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(P){return o(P)==="[object SharedArrayBuffer]"}function J(P){return typeof G>"u"?!1:(typeof X.working>"u"&&(X.working=X(new G)),X.working?X(P):P instanceof G)}n.isSharedArrayBuffer=J;function O(P){return o(P)==="[object AsyncFunction]"}n.isAsyncFunction=O;function U(P){return o(P)==="[object Map Iterator]"}n.isMapIterator=U;function ee(P){return o(P)==="[object Set Iterator]"}n.isSetIterator=ee;function re(P){return o(P)==="[object Generator]"}n.isGeneratorObject=re;function W(P){return o(P)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=W;function Z(P){return m(P,l)}n.isNumberObject=Z;function me(P){return m(P,u)}n.isStringObject=me;function k(P){return m(P,f)}n.isBooleanObject=k;function pe(P){return s&&m(P,h)}n.isBigIntObject=pe;function I(P){return a&&m(P,c)}n.isSymbolObject=I;function E(P){return Z(P)||me(P)||k(P)||pe(P)||I(P)}n.isBoxedPrimitive=E;function S(P){return typeof Uint8Array<"u"&&(te(P)||J(P))}n.isAnyArrayBuffer=S,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(P){Object.defineProperty(n,P,{enumerable:!1,value:function(){throw new Error(P+" is not supported in userland")}})})}(ag)),ag}var A0,mC;function uR(){return mC||(mC=1,A0=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),A0}var vC;function wC(){return vC||(vC=1,function(n){var e=Object.getOwnPropertyDescriptors||function(H){for(var G=Object.keys(H),X={},J=0;J<G.length;J++)X[G[J]]=Object.getOwnPropertyDescriptor(H,G[J]);return X},t=/%[sdj%]/g;n.format=function(F){if(!T(F)){for(var H=[],G=0;G<arguments.length;G++)H.push(s(arguments[G]));return H.join(" ")}for(var G=1,X=arguments,J=X.length,O=String(F).replace(t,function(ee){if(ee==="%%")return"%";if(G>=J)return ee;switch(ee){case"%s":return String(X[G++]);case"%d":return Number(X[G++]);case"%j":try{return JSON.stringify(X[G++])}catch{return"[Circular]"}default:return ee}}),U=X[G];G<J;U=X[++G])v(U)||!R(U)?O+=" "+U:O+=" "+s(U);return O},n.deprecate=function(F,H){if(typeof Pt<"u"&&Pt.noDeprecation===!0)return F;if(typeof Pt>"u")return function(){return n.deprecate(F,H).apply(this,arguments)};var G=!1;function X(){if(!G){if(Pt.throwDeprecation)throw new Error(H);Pt.traceDeprecation?console.trace(H):console.error(H),G=!0}return F.apply(this,arguments)}return X};var r={},i=/^$/;if(Pt.env.NODE_DEBUG){var A=Pt.env.NODE_DEBUG;A=A.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+A+"$","i")}n.debuglog=function(F){if(F=F.toUpperCase(),!r[F])if(i.test(F)){var H=Pt.pid;r[F]=function(){var G=n.format.apply(n,arguments);console.error("%s %d: %s",F,H,G)}}else r[F]=function(){};return r[F]};function s(F,H){var G={seen:[],stylize:o};return arguments.length>=3&&(G.depth=arguments[2]),arguments.length>=4&&(G.colors=arguments[3]),p(H)?G.showHidden=H:H&&n._extend(G,H),D(G.showHidden)&&(G.showHidden=!1),D(G.depth)&&(G.depth=2),D(G.colors)&&(G.colors=!1),D(G.customInspect)&&(G.customInspect=!0),G.colors&&(G.stylize=a),u(G,F,G.depth)}n.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function a(F,H){var G=s.styles[H];return G?"\x1B["+s.colors[G][0]+"m"+F+"\x1B["+s.colors[G][1]+"m":F}function o(F,H){return F}function l(F){var H={};return F.forEach(function(G,X){H[G]=!0}),H}function u(F,H,G){if(F.customInspect&&H&&x(H.inspect)&&H.inspect!==n.inspect&&!(H.constructor&&H.constructor.prototype===H)){var X=H.inspect(G,F);return T(X)||(X=u(F,X,G)),X}var J=f(F,H);if(J)return J;var O=Object.keys(H),U=l(O);if(F.showHidden&&(O=Object.getOwnPropertyNames(H)),L(H)&&(O.indexOf("message")>=0||O.indexOf("description")>=0))return h(H);if(O.length===0){if(x(H)){var ee=H.name?": "+H.name:"";return F.stylize("[Function"+ee+"]","special")}if(j(H))return F.stylize(RegExp.prototype.toString.call(H),"regexp");if(ae(H))return F.stylize(Date.prototype.toString.call(H),"date");if(L(H))return h(H)}var re="",W=!1,Z=["{","}"];if(w(H)&&(W=!0,Z=["[","]"]),x(H)){var me=H.name?": "+H.name:"";re=" [Function"+me+"]"}if(j(H)&&(re=" "+RegExp.prototype.toString.call(H)),ae(H)&&(re=" "+Date.prototype.toUTCString.call(H)),L(H)&&(re=" "+h(H)),O.length===0&&(!W||H.length==0))return Z[0]+re+Z[1];if(G<0)return j(H)?F.stylize(RegExp.prototype.toString.call(H),"regexp"):F.stylize("[Object]","special");F.seen.push(H);var k;return W?k=c(F,H,G,U,O):k=O.map(function(pe){return m(F,H,G,U,pe,W)}),F.seen.pop(),g(k,re,Z)}function f(F,H){if(D(H))return F.stylize("undefined","undefined");if(T(H)){var G="'"+JSON.stringify(H).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return F.stylize(G,"string")}if(B(H))return F.stylize(""+H,"number");if(p(H))return F.stylize(""+H,"boolean");if(v(H))return F.stylize("null","null")}function h(F){return"["+Error.prototype.toString.call(F)+"]"}function c(F,H,G,X,J){for(var O=[],U=0,ee=H.length;U<ee;++U)ie(H,String(U))?O.push(m(F,H,G,X,String(U),!0)):O.push("");return J.forEach(function(re){re.match(/^\d+$/)||O.push(m(F,H,G,X,re,!0))}),O}function m(F,H,G,X,J,O){var U,ee,re;if(re=Object.getOwnPropertyDescriptor(H,J)||{value:H[J]},re.get?re.set?ee=F.stylize("[Getter/Setter]","special"):ee=F.stylize("[Getter]","special"):re.set&&(ee=F.stylize("[Setter]","special")),ie(X,J)||(U="["+J+"]"),ee||(F.seen.indexOf(re.value)<0?(v(G)?ee=u(F,re.value,null):ee=u(F,re.value,G-1),ee.indexOf(`
`)>-1&&(O?ee=ee.split(`
`).map(function(W){return" "+W}).join(`
`).slice(2):ee=`
`+ee.split(`
`).map(function(W){return" "+W}).join(`
`))):ee=F.stylize("[Circular]","special")),D(U)){if(O&&J.match(/^\d+$/))return ee;U=JSON.stringify(""+J),U.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(U=U.slice(1,-1),U=F.stylize(U,"name")):(U=U.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),U=F.stylize(U,"string"))}return U+": "+ee}function g(F,H,G){var X=F.reduce(function(J,O){return O.indexOf(`
`)>=0,J+O.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?G[0]+(H===""?"":H+`
`)+" "+F.join(`,
`)+" "+G[1]:G[0]+H+" "+F.join(", ")+" "+G[1]}n.types=lR();function w(F){return Array.isArray(F)}n.isArray=w;function p(F){return typeof F=="boolean"}n.isBoolean=p;function v(F){return F===null}n.isNull=v;function b(F){return F==null}n.isNullOrUndefined=b;function B(F){return typeof F=="number"}n.isNumber=B;function T(F){return typeof F=="string"}n.isString=T;function M(F){return typeof F=="symbol"}n.isSymbol=M;function D(F){return F===void 0}n.isUndefined=D;function j(F){return R(F)&&C(F)==="[object RegExp]"}n.isRegExp=j,n.types.isRegExp=j;function R(F){return typeof F=="object"&&F!==null}n.isObject=R;function ae(F){return R(F)&&C(F)==="[object Date]"}n.isDate=ae,n.types.isDate=ae;function L(F){return R(F)&&(C(F)==="[object Error]"||F instanceof Error)}n.isError=L,n.types.isNativeError=L;function x(F){return typeof F=="function"}n.isFunction=x;function Q(F){return F===null||typeof F=="boolean"||typeof F=="number"||typeof F=="string"||typeof F=="symbol"||typeof F>"u"}n.isPrimitive=Q,n.isBuffer=uR();function C(F){return Object.prototype.toString.call(F)}function z(F){return F<10?"0"+F.toString(10):F.toString(10)}var Y=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var F=new Date,H=[z(F.getHours()),z(F.getMinutes()),z(F.getSeconds())].join(":");return[F.getDate(),Y[F.getMonth()],H].join(" ")}n.log=function(){console.log("%s - %s",V(),n.format.apply(n,arguments))},n.inherits=Aa(),n._extend=function(F,H){if(!H||!R(H))return F;for(var G=Object.keys(H),X=G.length;X--;)F[G[X]]=H[G[X]];return F};function ie(F,H){return Object.prototype.hasOwnProperty.call(F,H)}var Ae=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;n.promisify=function(H){if(typeof H!="function")throw new TypeError('The "original" argument must be of type Function');if(Ae&&H[Ae]){var G=H[Ae];if(typeof G!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(G,Ae,{value:G,enumerable:!1,writable:!1,configurable:!0}),G}function G(){for(var X,J,O=new Promise(function(re,W){X=re,J=W}),U=[],ee=0;ee<arguments.length;ee++)U.push(arguments[ee]);U.push(function(re,W){re?J(re):X(W)});try{H.apply(this,U)}catch(re){J(re)}return O}return Object.setPrototypeOf(G,Object.getPrototypeOf(H)),Ae&&Object.defineProperty(G,Ae,{value:G,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(G,e(H))},n.promisify.custom=Ae;function $(F,H){if(!F){var G=new Error("Promise was rejected with a falsy value");G.reason=F,F=G}return H(F)}function te(F){if(typeof F!="function")throw new TypeError('The "original" argument must be of type Function');function H(){for(var G=[],X=0;X<arguments.length;X++)G.push(arguments[X]);var J=G.pop();if(typeof J!="function")throw new TypeError("The last argument must be of type Function");var O=this,U=function(){return J.apply(O,arguments)};F.apply(this,G).then(function(ee){Pt.nextTick(U.bind(null,null,ee))},function(ee){Pt.nextTick($.bind(null,ee,U))})}return Object.setPrototypeOf(H,Object.getPrototypeOf(F)),Object.defineProperties(H,e(F)),H}n.callbackify=te}(sg)),sg}var s0,yC;function cR(){if(yC)return s0;yC=1;function n(h,c){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(h);c&&(g=g.filter(function(w){return Object.getOwnPropertyDescriptor(h,w).enumerable})),m.push.apply(m,g)}return m}function e(h){for(var c=1;c<arguments.length;c++){var m=arguments[c]!=null?arguments[c]:{};c%2?n(Object(m),!0).forEach(function(g){t(h,g,m[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):n(Object(m)).forEach(function(g){Object.defineProperty(h,g,Object.getOwnPropertyDescriptor(m,g))})}return h}function t(h,c,m){return c in h?Object.defineProperty(h,c,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[c]=m,h}function r(h,c){if(!(h instanceof c))throw new TypeError("Cannot call a class as a function")}function i(h,c){for(var m=0;m<c.length;m++){var g=c[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function A(h,c,m){return c&&i(h.prototype,c),h}var s=Wf(),a=s.Buffer,o=wC(),l=o.inspect,u=l&&l.custom||"inspect";function f(h,c,m){a.prototype.copy.call(h,c,m)}return s0=function(){function h(){r(this,h),this.head=null,this.tail=null,this.length=0}return A(h,[{key:"push",value:function(m){var g={data:m,next:null};this.length>0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(m){var g={data:m,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var m=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,m}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(m){if(this.length===0)return"";for(var g=this.head,w=""+g.data;g=g.next;)w+=m+g.data;return w}},{key:"concat",value:function(m){if(this.length===0)return a.alloc(0);for(var g=a.allocUnsafe(m>>>0),w=this.head,p=0;w;)f(w.data,g,p),p+=w.data.length,w=w.next;return g}},{key:"consume",value:function(m,g){var w;return m<this.head.data.length?(w=this.head.data.slice(0,m),this.head.data=this.head.data.slice(m)):m===this.head.data.length?w=this.shift():w=g?this._getString(m):this._getBuffer(m),w}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(m){var g=this.head,w=1,p=g.data;for(m-=p.length;g=g.next;){var v=g.data,b=m>v.length?v.length:m;if(b===v.length?p+=v:p+=v.slice(0,m),m-=b,m===0){b===v.length?(++w,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=v.slice(b));break}++w}return this.length-=w,p}},{key:"_getBuffer",value:function(m){var g=a.allocUnsafe(m),w=this.head,p=1;for(w.data.copy(g),m-=w.data.length;w=w.next;){var v=w.data,b=m>v.length?v.length:m;if(v.copy(g,g.length-m,0,b),m-=b,m===0){b===v.length?(++p,w.next?this.head=w.next:this.head=this.tail=null):(this.head=w,w.data=v.slice(b));break}++p}return this.length-=p,g}},{key:u,value:function(m,g){return l(this,e({},g,{depth:0,customInspect:!1}))}}]),h}(),s0}var a0,bC;function BC(){if(bC)return a0;bC=1;function n(s,a){var o=this,l=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return l||u?(a?a(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Pt.nextTick(i,this,s)):Pt.nextTick(i,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(f){!a&&f?o._writableState?o._writableState.errorEmitted?Pt.nextTick(t,o):(o._writableState.errorEmitted=!0,Pt.nextTick(e,o,f)):Pt.nextTick(e,o,f):a?(Pt.nextTick(t,o),a(f)):Pt.nextTick(t,o)}),this)}function e(s,a){i(s,a),t(s)}function t(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(s,a){s.emit("error",a)}function A(s,a){var o=s._readableState,l=s._writableState;o&&o.autoDestroy||l&&l.autoDestroy?s.destroy(a):s.emit("error",a)}return a0={destroy:n,undestroy:r,errorOrDestroy:A},a0}var o0={},CC;function rl(){if(CC)return o0;CC=1;function n(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,a.__proto__=o}var e={};function t(a,o,l){l||(l=Error);function u(h,c,m){return typeof o=="string"?o:o(h,c,m)}var f=function(h){n(c,h);function c(m,g,w){return h.call(this,u(m,g,w))||this}return c}(l);f.prototype.name=l.name,f.prototype.code=a,e[a]=f}function r(a,o){if(Array.isArray(a)){var l=a.length;return a=a.map(function(u){return String(u)}),l>2?"one of ".concat(o," ").concat(a.slice(0,l-1).join(", "),", or ")+a[l-1]:l===2?"one of ".concat(o," ").concat(a[0]," or ").concat(a[1]):"of ".concat(o," ").concat(a[0])}else return"of ".concat(o," ").concat(String(a))}function i(a,o,l){return a.substr(0,o.length)===o}function A(a,o,l){return(l===void 0||l>a.length)&&(l=a.length),a.substring(l-o.length,l)===o}function s(a,o,l){return typeof l!="number"&&(l=0),l+o.length>a.length?!1:a.indexOf(o,l)!==-1}return t("ERR_INVALID_OPT_VALUE",function(a,o){return'The value "'+o+'" is invalid for option "'+a+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(a,o,l){var u;typeof o=="string"&&i(o,"not ")?(u="must not be",o=o.replace(/^not /,"")):u="must be";var f;if(A(a," argument"))f="The ".concat(a," ").concat(u," ").concat(r(o,"type"));else{var h=s(a,".")?"property":"argument";f='The "'.concat(a,'" ').concat(h," ").concat(u," ").concat(r(o,"type"))}return f+=". Received type ".concat(typeof l),f},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),o0.codes=e,o0}var l0,EC;function xC(){if(EC)return l0;EC=1;var n=rl().codes.ERR_INVALID_OPT_VALUE;function e(r,i,A){return r.highWaterMark!=null?r.highWaterMark:i?r[A]:null}function t(r,i,A,s){var a=e(i,s,A);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var o=s?A:"highWaterMark";throw new n(o,a)}return Math.floor(a)}return r.objectMode?16:16*1024}return l0={getHighWaterMark:t},l0}var u0,SC;function fR(){if(SC)return u0;SC=1,u0=n;function n(t,r){if(e("noDeprecation"))return t;var i=!1;function A(){if(!i){if(e("throwDeprecation"))throw new Error(r);e("traceDeprecation")?console.trace(r):console.warn(r),i=!0}return t.apply(this,arguments)}return A}function e(t){try{if(!HA.localStorage)return!1}catch{return!1}var r=HA.localStorage[t];return r==null?!1:String(r).toLowerCase()==="true"}return u0}var c0,FC;function _C(){if(FC)return c0;FC=1,c0=j;function n(J){var O=this;this.next=null,this.entry=null,this.finish=function(){X(O,J)}}var e;j.WritableState=M;var t={deprecate:fR()},r=l5(),i=Wf().Buffer,A=HA.Uint8Array||function(){};function s(J){return i.from(J)}function a(J){return i.isBuffer(J)||J instanceof A}var o=BC(),l=xC(),u=l.getHighWaterMark,f=rl().codes,h=f.ERR_INVALID_ARG_TYPE,c=f.ERR_METHOD_NOT_IMPLEMENTED,m=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,w=f.ERR_STREAM_DESTROYED,p=f.ERR_STREAM_NULL_VALUES,v=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,B=o.errorOrDestroy;Aa()(j,r);function T(){}function M(J,O,U){e=e||nl(),J=J||{},typeof U!="boolean"&&(U=O instanceof e),this.objectMode=!!J.objectMode,U&&(this.objectMode=this.objectMode||!!J.writableObjectMode),this.highWaterMark=u(this,J,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ee=J.decodeStrings===!1;this.decodeStrings=!ee,this.defaultEncoding=J.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(re){Y(O,re)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=J.emitClose!==!1,this.autoDestroy=!!J.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}M.prototype.getBuffer=function(){for(var O=this.bufferedRequest,U=[];O;)U.push(O),O=O.next;return U},function(){try{Object.defineProperty(M.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var D;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(D=Function.prototype[Symbol.hasInstance],Object.defineProperty(j,Symbol.hasInstance,{value:function(O){return D.call(this,O)?!0:this!==j?!1:O&&O._writableState instanceof M}})):D=function(O){return O instanceof this};function j(J){e=e||nl();var O=this instanceof e;if(!O&&!D.call(j,this))return new j(J);this._writableState=new M(J,this,O),this.writable=!0,J&&(typeof J.write=="function"&&(this._write=J.write),typeof J.writev=="function"&&(this._writev=J.writev),typeof J.destroy=="function"&&(this._destroy=J.destroy),typeof J.final=="function"&&(this._final=J.final)),r.call(this)}j.prototype.pipe=function(){B(this,new g)};function R(J,O){var U=new v;B(J,U),Pt.nextTick(O,U)}function ae(J,O,U,ee){var re;return U===null?re=new p:typeof U!="string"&&!O.objectMode&&(re=new h("chunk",["string","Buffer"],U)),re?(B(J,re),Pt.nextTick(ee,re),!1):!0}j.prototype.write=function(J,O,U){var ee=this._writableState,re=!1,W=!ee.objectMode&&a(J);return W&&!i.isBuffer(J)&&(J=s(J)),typeof O=="function"&&(U=O,O=null),W?O="buffer":O||(O=ee.defaultEncoding),typeof U!="function"&&(U=T),ee.ending?R(this,U):(W||ae(this,ee,J,U))&&(ee.pendingcb++,re=x(this,ee,W,J,O,U)),re},j.prototype.cork=function(){this._writableState.corked++},j.prototype.uncork=function(){var J=this._writableState;J.corked&&(J.corked--,!J.writing&&!J.corked&&!J.bufferProcessing&&J.bufferedRequest&&Ae(this,J))},j.prototype.setDefaultEncoding=function(O){if(typeof O=="string"&&(O=O.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((O+"").toLowerCase())>-1))throw new b(O);return this._writableState.defaultEncoding=O,this},Object.defineProperty(j.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function L(J,O,U){return!J.objectMode&&J.decodeStrings!==!1&&typeof O=="string"&&(O=i.from(O,U)),O}Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function x(J,O,U,ee,re,W){if(!U){var Z=L(O,ee,re);ee!==Z&&(U=!0,re="buffer",ee=Z)}var me=O.objectMode?1:ee.length;O.length+=me;var k=O.length<O.highWaterMark;if(k||(O.needDrain=!0),O.writing||O.corked){var pe=O.lastBufferedRequest;O.lastBufferedRequest={chunk:ee,encoding:re,isBuf:U,callback:W,next:null},pe?pe.next=O.lastBufferedRequest:O.bufferedRequest=O.lastBufferedRequest,O.bufferedRequestCount+=1}else Q(J,O,!1,me,ee,re,W);return k}function Q(J,O,U,ee,re,W,Z){O.writelen=ee,O.writecb=Z,O.writing=!0,O.sync=!0,O.destroyed?O.onwrite(new w("write")):U?J._writev(re,O.onwrite):J._write(re,W,O.onwrite),O.sync=!1}function C(J,O,U,ee,re){--O.pendingcb,U?(Pt.nextTick(re,ee),Pt.nextTick(H,J,O),J._writableState.errorEmitted=!0,B(J,ee)):(re(ee),J._writableState.errorEmitted=!0,B(J,ee),H(J,O))}function z(J){J.writing=!1,J.writecb=null,J.length-=J.writelen,J.writelen=0}function Y(J,O){var U=J._writableState,ee=U.sync,re=U.writecb;if(typeof re!="function")throw new m;if(z(U),O)C(J,U,ee,O,re);else{var W=$(U)||J.destroyed;!W&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&Ae(J,U),ee?Pt.nextTick(V,J,U,W,re):V(J,U,W,re)}}function V(J,O,U,ee){U||ie(J,O),O.pendingcb--,ee(),H(J,O)}function ie(J,O){O.length===0&&O.needDrain&&(O.needDrain=!1,J.emit("drain"))}function Ae(J,O){O.bufferProcessing=!0;var U=O.bufferedRequest;if(J._writev&&U&&U.next){var ee=O.bufferedRequestCount,re=new Array(ee),W=O.corkedRequestsFree;W.entry=U;for(var Z=0,me=!0;U;)re[Z]=U,U.isBuf||(me=!1),U=U.next,Z+=1;re.allBuffers=me,Q(J,O,!0,O.length,re,"",W.finish),O.pendingcb++,O.lastBufferedRequest=null,W.next?(O.corkedRequestsFree=W.next,W.next=null):O.corkedRequestsFree=new n(O),O.bufferedRequestCount=0}else{for(;U;){var k=U.chunk,pe=U.encoding,I=U.callback,E=O.objectMode?1:k.length;if(Q(J,O,!1,E,k,pe,I),U=U.next,O.bufferedRequestCount--,O.writing)break}U===null&&(O.lastBufferedRequest=null)}O.bufferedRequest=U,O.bufferProcessing=!1}j.prototype._write=function(J,O,U){U(new c("_write()"))},j.prototype._writev=null,j.prototype.end=function(J,O,U){var ee=this._writableState;return typeof J=="function"?(U=J,J=null,O=null):typeof O=="function"&&(U=O,O=null),J!=null&&this.write(J,O),ee.corked&&(ee.corked=1,this.uncork()),ee.ending||G(this,ee,U),this},Object.defineProperty(j.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function $(J){return J.ending&&J.length===0&&J.bufferedRequest===null&&!J.finished&&!J.writing}function te(J,O){J._final(function(U){O.pendingcb--,U&&B(J,U),O.prefinished=!0,J.emit("prefinish"),H(J,O)})}function F(J,O){!O.prefinished&&!O.finalCalled&&(typeof J._final=="function"&&!O.destroyed?(O.pendingcb++,O.finalCalled=!0,Pt.nextTick(te,J,O)):(O.prefinished=!0,J.emit("prefinish")))}function H(J,O){var U=$(O);if(U&&(F(J,O),O.pendingcb===0&&(O.finished=!0,J.emit("finish"),O.autoDestroy))){var ee=J._readableState;(!ee||ee.autoDestroy&&ee.endEmitted)&&J.destroy()}return U}function G(J,O,U){O.ending=!0,H(J,O),U&&(O.finished?Pt.nextTick(U):J.once("finish",U)),O.ended=!0,J.writable=!1}function X(J,O,U){var ee=J.entry;for(J.entry=null;ee;){var re=ee.callback;O.pendingcb--,re(U),ee=ee.next}O.corkedRequestsFree.next=J}return Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(O){this._writableState&&(this._writableState.destroyed=O)}}),j.prototype.destroy=o.destroy,j.prototype._undestroy=o.undestroy,j.prototype._destroy=function(J,O){O(J)},c0}var f0,TC;function nl(){if(TC)return f0;TC=1;var n=Object.keys||function(l){var u=[];for(var f in l)u.push(f);return u};f0=s;var e=RC(),t=_C();Aa()(s,e);for(var r=n(t.prototype),i=0;i<r.length;i++){var A=r[i];s.prototype[A]||(s.prototype[A]=t.prototype[A])}function s(l){if(!(this instanceof s))return new s(l);e.call(this,l),t.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",a)))}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function a(){this._writableState.ended||Pt.nextTick(o,this)}function o(l){l.end()}return Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),f0}var h0={},Yf={exports:{}},IC;function hR(){return IC||(IC=1,function(n,e){var t=Wf(),r=t.Buffer;function i(s,a){for(var o in s)a[o]=s[o]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?n.exports=t:(i(t,e),e.Buffer=A);function A(s,a,o){return r(s,a,o)}i(r,A),A.from=function(s,a,o){if(typeof s=="number")throw new TypeError("Argument must not be a number");return r(s,a,o)},A.alloc=function(s,a,o){if(typeof s!="number")throw new TypeError("Argument must be a number");var l=r(s);return a!==void 0?typeof o=="string"?l.fill(a,o):l.fill(a):l.fill(0),l},A.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r(s)},A.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(s)}}(Yf,Yf.exports)),Yf.exports}var UC;function d0(){if(UC)return h0;UC=1;var n=hR().Buffer,e=n.isEncoding||function(p){switch(p=""+p,p&&p.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function t(p){if(!p)return"utf8";for(var v;;)switch(p){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return p;default:if(v)return;p=(""+p).toLowerCase(),v=!0}}function r(p){var v=t(p);if(typeof v!="string"&&(n.isEncoding===e||!e(p)))throw new Error("Unknown encoding: "+p);return v||p}h0.StringDecoder=i;function i(p){this.encoding=r(p);var v;switch(this.encoding){case"utf16le":this.text=f,this.end=h,v=4;break;case"utf8":this.fillLast=o,v=4;break;case"base64":this.text=c,this.end=m,v=3;break;default:this.write=g,this.end=w;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(v)}i.prototype.write=function(p){if(p.length===0)return"";var v,b;if(this.lastNeed){if(v=this.fillLast(p),v===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<p.length?v?v+this.text(p,b):this.text(p,b):v||""},i.prototype.end=u,i.prototype.text=l,i.prototype.fillLast=function(p){if(this.lastNeed<=p.length)return p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,p.length),this.lastNeed-=p.length};function A(p){return p<=127?0:p>>5===6?2:p>>4===14?3:p>>3===30?4:p>>6===2?-1:-2}function s(p,v,b){var B=v.length-1;if(B<b)return 0;var T=A(v[B]);return T>=0?(T>0&&(p.lastNeed=T-1),T):--B<b||T===-2?0:(T=A(v[B]),T>=0?(T>0&&(p.lastNeed=T-2),T):--B<b||T===-2?0:(T=A(v[B]),T>=0?(T>0&&(T===2?T=0:p.lastNeed=T-3),T):0))}function a(p,v,b){if((v[0]&192)!==128)return p.lastNeed=0,"�";if(p.lastNeed>1&&v.length>1){if((v[1]&192)!==128)return p.lastNeed=1,"�";if(p.lastNeed>2&&v.length>2&&(v[2]&192)!==128)return p.lastNeed=2,"�"}}function o(p){var v=this.lastTotal-this.lastNeed,b=a(this,p);if(b!==void 0)return b;if(this.lastNeed<=p.length)return p.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,v,0,p.length),this.lastNeed-=p.length}function l(p,v){var b=s(this,p,v);if(!this.lastNeed)return p.toString("utf8",v);this.lastTotal=b;var B=p.length-(b-this.lastNeed);return p.copy(this.lastChar,0,B),p.toString("utf8",v,B)}function u(p){var v=p&&p.length?this.write(p):"";return this.lastNeed?v+"�":v}function f(p,v){if((p.length-v)%2===0){var b=p.toString("utf16le",v);if(b){var B=b.charCodeAt(b.length-1);if(B>=55296&&B<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",v,p.length-1)}function h(p){var v=p&&p.length?this.write(p):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,b)}return v}function c(p,v){var b=(p.length-v)%3;return b===0?p.toString("base64",v):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",v,p.length-b))}function m(p){var v=p&&p.length?this.write(p):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function g(p){return p.toString(this.encoding)}function w(p){return p&&p.length?this.write(p):""}return h0}var p0,NC;function g0(){if(NC)return p0;NC=1;var n=rl().codes.ERR_STREAM_PREMATURE_CLOSE;function e(A){var s=!1;return function(){if(!s){s=!0;for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];A.apply(this,o)}}}function t(){}function r(A){return A.setHeader&&typeof A.abort=="function"}function i(A,s,a){if(typeof s=="function")return i(A,null,s);s||(s={}),a=e(a||t);var o=s.readable||s.readable!==!1&&A.readable,l=s.writable||s.writable!==!1&&A.writable,u=function(){A.writable||h()},f=A._writableState&&A._writableState.finished,h=function(){l=!1,f=!0,o||a.call(A)},c=A._readableState&&A._readableState.endEmitted,m=function(){o=!1,c=!0,l||a.call(A)},g=function(b){a.call(A,b)},w=function(){var b;if(o&&!c)return(!A._readableState||!A._readableState.ended)&&(b=new n),a.call(A,b);if(l&&!f)return(!A._writableState||!A._writableState.ended)&&(b=new n),a.call(A,b)},p=function(){A.req.on("finish",h)};return r(A)?(A.on("complete",h),A.on("abort",w),A.req?p():A.on("request",p)):l&&!A._writableState&&(A.on("end",u),A.on("close",u)),A.on("end",m),A.on("finish",h),s.error!==!1&&A.on("error",g),A.on("close",w),function(){A.removeListener("complete",h),A.removeListener("abort",w),A.removeListener("request",p),A.req&&A.req.removeListener("finish",h),A.removeListener("end",u),A.removeListener("close",u),A.removeListener("finish",h),A.removeListener("end",m),A.removeListener("error",g),A.removeListener("close",w)}}return p0=i,p0}var m0,LC;function dR(){if(LC)return m0;LC=1;var n;function e(p,v,b){return v in p?Object.defineProperty(p,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[v]=b,p}var t=g0(),r=Symbol("lastResolve"),i=Symbol("lastReject"),A=Symbol("error"),s=Symbol("ended"),a=Symbol("lastPromise"),o=Symbol("handlePromise"),l=Symbol("stream");function u(p,v){return{value:p,done:v}}function f(p){var v=p[r];if(v!==null){var b=p[l].read();b!==null&&(p[a]=null,p[r]=null,p[i]=null,v(u(b,!1)))}}function h(p){Pt.nextTick(f,p)}function c(p,v){return function(b,B){p.then(function(){if(v[s]){b(u(void 0,!0));return}v[o](b,B)},B)}}var m=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((n={get stream(){return this[l]},next:function(){var v=this,b=this[A];if(b!==null)return Promise.reject(b);if(this[s])return Promise.resolve(u(void 0,!0));if(this[l].destroyed)return new Promise(function(D,j){Pt.nextTick(function(){v[A]?j(v[A]):D(u(void 0,!0))})});var B=this[a],T;if(B)T=new Promise(c(B,this));else{var M=this[l].read();if(M!==null)return Promise.resolve(u(M,!1));T=new Promise(this[o])}return this[a]=T,T}},e(n,Symbol.asyncIterator,function(){return this}),e(n,"return",function(){var v=this;return new Promise(function(b,B){v[l].destroy(null,function(T){if(T){B(T);return}b(u(void 0,!0))})})}),n),m),w=function(v){var b,B=Object.create(g,(b={},e(b,l,{value:v,writable:!0}),e(b,r,{value:null,writable:!0}),e(b,i,{value:null,writable:!0}),e(b,A,{value:null,writable:!0}),e(b,s,{value:v._readableState.endEmitted,writable:!0}),e(b,o,{value:function(M,D){var j=B[l].read();j?(B[a]=null,B[r]=null,B[i]=null,M(u(j,!1))):(B[r]=M,B[i]=D)},writable:!0}),b));return B[a]=null,t(v,function(T){if(T&&T.code!=="ERR_STREAM_PREMATURE_CLOSE"){var M=B[i];M!==null&&(B[a]=null,B[r]=null,B[i]=null,M(T)),B[A]=T;return}var D=B[r];D!==null&&(B[a]=null,B[r]=null,B[i]=null,D(u(void 0,!0))),B[s]=!0}),v.on("readable",h.bind(null,B)),B};return m0=w,m0}var v0,OC;function pR(){return OC||(OC=1,v0=function(){throw new Error("Readable.from is not available in the browser")}),v0}var w0,QC;function RC(){if(QC)return w0;QC=1,w0=R;var n;R.ReadableState=j,tg().EventEmitter;var e=function(Z,me){return Z.listeners(me).length},t=l5(),r=Wf().Buffer,i=HA.Uint8Array||function(){};function A(W){return r.from(W)}function s(W){return r.isBuffer(W)||W instanceof i}var a=wC(),o;a&&a.debuglog?o=a.debuglog("stream"):o=function(){};var l=cR(),u=BC(),f=xC(),h=f.getHighWaterMark,c=rl().codes,m=c.ERR_INVALID_ARG_TYPE,g=c.ERR_STREAM_PUSH_AFTER_EOF,w=c.ERR_METHOD_NOT_IMPLEMENTED,p=c.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,v,b,B;Aa()(R,t);var T=u.errorOrDestroy,M=["error","close","destroy","pause","resume"];function D(W,Z,me){if(typeof W.prependListener=="function")return W.prependListener(Z,me);!W._events||!W._events[Z]?W.on(Z,me):Array.isArray(W._events[Z])?W._events[Z].unshift(me):W._events[Z]=[me,W._events[Z]]}function j(W,Z,me){n=n||nl(),W=W||{},typeof me!="boolean"&&(me=Z instanceof n),this.objectMode=!!W.objectMode,me&&(this.objectMode=this.objectMode||!!W.readableObjectMode),this.highWaterMark=h(this,W,"readableHighWaterMark",me),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=W.emitClose!==!1,this.autoDestroy=!!W.autoDestroy,this.destroyed=!1,this.defaultEncoding=W.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,W.encoding&&(v||(v=d0().StringDecoder),this.decoder=new v(W.encoding),this.encoding=W.encoding)}function R(W){if(n=n||nl(),!(this instanceof R))return new R(W);var Z=this instanceof n;this._readableState=new j(W,this,Z),this.readable=!0,W&&(typeof W.read=="function"&&(this._read=W.read),typeof W.destroy=="function"&&(this._destroy=W.destroy)),t.call(this)}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Z){this._readableState&&(this._readableState.destroyed=Z)}}),R.prototype.destroy=u.destroy,R.prototype._undestroy=u.undestroy,R.prototype._destroy=function(W,Z){Z(W)},R.prototype.push=function(W,Z){var me=this._readableState,k;return me.objectMode?k=!0:typeof W=="string"&&(Z=Z||me.defaultEncoding,Z!==me.encoding&&(W=r.from(W,Z),Z=""),k=!0),ae(this,W,Z,!1,k)},R.prototype.unshift=function(W){return ae(this,W,null,!0,!1)};function ae(W,Z,me,k,pe){o("readableAddChunk",Z);var I=W._readableState;if(Z===null)I.reading=!1,Y(W,I);else{var E;if(pe||(E=x(I,Z)),E)T(W,E);else if(I.objectMode||Z&&Z.length>0)if(typeof Z!="string"&&!I.objectMode&&Object.getPrototypeOf(Z)!==r.prototype&&(Z=A(Z)),k)I.endEmitted?T(W,new p):L(W,I,Z,!0);else if(I.ended)T(W,new g);else{if(I.destroyed)return!1;I.reading=!1,I.decoder&&!me?(Z=I.decoder.write(Z),I.objectMode||Z.length!==0?L(W,I,Z,!1):Ae(W,I)):L(W,I,Z,!1)}else k||(I.reading=!1,Ae(W,I))}return!I.ended&&(I.length<I.highWaterMark||I.length===0)}function L(W,Z,me,k){Z.flowing&&Z.length===0&&!Z.sync?(Z.awaitDrain=0,W.emit("data",me)):(Z.length+=Z.objectMode?1:me.length,k?Z.buffer.unshift(me):Z.buffer.push(me),Z.needReadable&&V(W)),Ae(W,Z)}function x(W,Z){var me;return!s(Z)&&typeof Z!="string"&&Z!==void 0&&!W.objectMode&&(me=new m("chunk",["string","Buffer","Uint8Array"],Z)),me}R.prototype.isPaused=function(){return this._readableState.flowing===!1},R.prototype.setEncoding=function(W){v||(v=d0().StringDecoder);var Z=new v(W);this._readableState.decoder=Z,this._readableState.encoding=this._readableState.decoder.encoding;for(var me=this._readableState.buffer.head,k="";me!==null;)k+=Z.write(me.data),me=me.next;return this._readableState.buffer.clear(),k!==""&&this._readableState.buffer.push(k),this._readableState.length=k.length,this};var Q=1073741824;function C(W){return W>=Q?W=Q:(W--,W|=W>>>1,W|=W>>>2,W|=W>>>4,W|=W>>>8,W|=W>>>16,W++),W}function z(W,Z){return W<=0||Z.length===0&&Z.ended?0:Z.objectMode?1:W!==W?Z.flowing&&Z.length?Z.buffer.head.data.length:Z.length:(W>Z.highWaterMark&&(Z.highWaterMark=C(W)),W<=Z.length?W:Z.ended?Z.length:(Z.needReadable=!0,0))}R.prototype.read=function(W){o("read",W),W=parseInt(W,10);var Z=this._readableState,me=W;if(W!==0&&(Z.emittedReadable=!1),W===0&&Z.needReadable&&((Z.highWaterMark!==0?Z.length>=Z.highWaterMark:Z.length>0)||Z.ended))return o("read: emitReadable",Z.length,Z.ended),Z.length===0&&Z.ended?U(this):V(this),null;if(W=z(W,Z),W===0&&Z.ended)return Z.length===0&&U(this),null;var k=Z.needReadable;o("need readable",k),(Z.length===0||Z.length-W<Z.highWaterMark)&&(k=!0,o("length less than watermark",k)),Z.ended||Z.reading?(k=!1,o("reading or ended",k)):k&&(o("do read"),Z.reading=!0,Z.sync=!0,Z.length===0&&(Z.needReadable=!0),this._read(Z.highWaterMark),Z.sync=!1,Z.reading||(W=z(me,Z)));var pe;return W>0?pe=O(W,Z):pe=null,pe===null?(Z.needReadable=Z.length<=Z.highWaterMark,W=0):(Z.length-=W,Z.awaitDrain=0),Z.length===0&&(Z.ended||(Z.needReadable=!0),me!==W&&Z.ended&&U(this)),pe!==null&&this.emit("data",pe),pe};function Y(W,Z){if(o("onEofChunk"),!Z.ended){if(Z.decoder){var me=Z.decoder.end();me&&me.length&&(Z.buffer.push(me),Z.length+=Z.objectMode?1:me.length)}Z.ended=!0,Z.sync?V(W):(Z.needReadable=!1,Z.emittedReadable||(Z.emittedReadable=!0,ie(W)))}}function V(W){var Z=W._readableState;o("emitReadable",Z.needReadable,Z.emittedReadable),Z.needReadable=!1,Z.emittedReadable||(o("emitReadable",Z.flowing),Z.emittedReadable=!0,Pt.nextTick(ie,W))}function ie(W){var Z=W._readableState;o("emitReadable_",Z.destroyed,Z.length,Z.ended),!Z.destroyed&&(Z.length||Z.ended)&&(W.emit("readable"),Z.emittedReadable=!1),Z.needReadable=!Z.flowing&&!Z.ended&&Z.length<=Z.highWaterMark,J(W)}function Ae(W,Z){Z.readingMore||(Z.readingMore=!0,Pt.nextTick($,W,Z))}function $(W,Z){for(;!Z.reading&&!Z.ended&&(Z.length<Z.highWaterMark||Z.flowing&&Z.length===0);){var me=Z.length;if(o("maybeReadMore read 0"),W.read(0),me===Z.length)break}Z.readingMore=!1}R.prototype._read=function(W){T(this,new w("_read()"))},R.prototype.pipe=function(W,Z){var me=this,k=this._readableState;switch(k.pipesCount){case 0:k.pipes=W;break;case 1:k.pipes=[k.pipes,W];break;default:k.pipes.push(W);break}k.pipesCount+=1,o("pipe count=%d opts=%j",k.pipesCount,Z);var pe=(!Z||Z.end!==!1)&&W!==Pt.stdout&&W!==Pt.stderr,I=pe?S:Ue;k.endEmitted?Pt.nextTick(I):me.once("end",I),W.on("unpipe",E);function E(Oe,Me){o("onunpipe"),Oe===me&&Me&&Me.hasUnpiped===!1&&(Me.hasUnpiped=!0,ge())}function S(){o("onend"),W.end()}var P=te(me);W.on("drain",P);var oe=!1;function ge(){o("cleanup"),W.removeListener("close",ye),W.removeListener("finish",Be),W.removeListener("drain",P),W.removeListener("error",Ee),W.removeListener("unpipe",E),me.removeListener("end",S),me.removeListener("end",Ue),me.removeListener("data",ce),oe=!0,k.awaitDrain&&(!W._writableState||W._writableState.needDrain)&&P()}me.on("data",ce);function ce(Oe){o("ondata");var Me=W.write(Oe);o("dest.write",Me),Me===!1&&((k.pipesCount===1&&k.pipes===W||k.pipesCount>1&&re(k.pipes,W)!==-1)&&!oe&&(o("false write response, pause",k.awaitDrain),k.awaitDrain++),me.pause())}function Ee(Oe){o("onerror",Oe),Ue(),W.removeListener("error",Ee),e(W,"error")===0&&T(W,Oe)}D(W,"error",Ee);function ye(){W.removeListener("finish",Be),Ue()}W.once("close",ye);function Be(){o("onfinish"),W.removeListener("close",ye),Ue()}W.once("finish",Be);function Ue(){o("unpipe"),me.unpipe(W)}return W.emit("pipe",me),k.flowing||(o("pipe resume"),me.resume()),W};function te(W){return function(){var me=W._readableState;o("pipeOnDrain",me.awaitDrain),me.awaitDrain&&me.awaitDrain--,me.awaitDrain===0&&e(W,"data")&&(me.flowing=!0,J(W))}}R.prototype.unpipe=function(W){var Z=this._readableState,me={hasUnpiped:!1};if(Z.pipesCount===0)return this;if(Z.pipesCount===1)return W&&W!==Z.pipes?this:(W||(W=Z.pipes),Z.pipes=null,Z.pipesCount=0,Z.flowing=!1,W&&W.emit("unpipe",this,me),this);if(!W){var k=Z.pipes,pe=Z.pipesCount;Z.pipes=null,Z.pipesCount=0,Z.flowing=!1;for(var I=0;I<pe;I++)k[I].emit("unpipe",this,{hasUnpiped:!1});return this}var E=re(Z.pipes,W);return E===-1?this:(Z.pipes.splice(E,1),Z.pipesCount-=1,Z.pipesCount===1&&(Z.pipes=Z.pipes[0]),W.emit("unpipe",this,me),this)},R.prototype.on=function(W,Z){var me=t.prototype.on.call(this,W,Z),k=this._readableState;return W==="data"?(k.readableListening=this.listenerCount("readable")>0,k.flowing!==!1&&this.resume()):W==="readable"&&!k.endEmitted&&!k.readableListening&&(k.readableListening=k.needReadable=!0,k.flowing=!1,k.emittedReadable=!1,o("on readable",k.length,k.reading),k.length?V(this):k.reading||Pt.nextTick(H,this)),me},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(W,Z){var me=t.prototype.removeListener.call(this,W,Z);return W==="readable"&&Pt.nextTick(F,this),me},R.prototype.removeAllListeners=function(W){var Z=t.prototype.removeAllListeners.apply(this,arguments);return(W==="readable"||W===void 0)&&Pt.nextTick(F,this),Z};function F(W){var Z=W._readableState;Z.readableListening=W.listenerCount("readable")>0,Z.resumeScheduled&&!Z.paused?Z.flowing=!0:W.listenerCount("data")>0&&W.resume()}function H(W){o("readable nexttick read 0"),W.read(0)}R.prototype.resume=function(){var W=this._readableState;return W.flowing||(o("resume"),W.flowing=!W.readableListening,G(this,W)),W.paused=!1,this};function G(W,Z){Z.resumeScheduled||(Z.resumeScheduled=!0,Pt.nextTick(X,W,Z))}function X(W,Z){o("resume",Z.reading),Z.reading||W.read(0),Z.resumeScheduled=!1,W.emit("resume"),J(W),Z.flowing&&!Z.reading&&W.read(0)}R.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function J(W){var Z=W._readableState;for(o("flow",Z.flowing);Z.flowing&&W.read()!==null;);}R.prototype.wrap=function(W){var Z=this,me=this._readableState,k=!1;W.on("end",function(){if(o("wrapped end"),me.decoder&&!me.ended){var E=me.decoder.end();E&&E.length&&Z.push(E)}Z.push(null)}),W.on("data",function(E){if(o("wrapped data"),me.decoder&&(E=me.decoder.write(E)),!(me.objectMode&&E==null)&&!(!me.objectMode&&(!E||!E.length))){var S=Z.push(E);S||(k=!0,W.pause())}});for(var pe in W)this[pe]===void 0&&typeof W[pe]=="function"&&(this[pe]=function(S){return function(){return W[S].apply(W,arguments)}}(pe));for(var I=0;I<M.length;I++)W.on(M[I],this.emit.bind(this,M[I]));return this._read=function(E){o("wrapped _read",E),k&&(k=!1,W.resume())},this},typeof Symbol=="function"&&(R.prototype[Symbol.asyncIterator]=function(){return b===void 0&&(b=dR()),b(this)}),Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(R.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(R.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Z){this._readableState&&(this._readableState.flowing=Z)}}),R._fromList=O,Object.defineProperty(R.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function O(W,Z){if(Z.length===0)return null;var me;return Z.objectMode?me=Z.buffer.shift():!W||W>=Z.length?(Z.decoder?me=Z.buffer.join(""):Z.buffer.length===1?me=Z.buffer.first():me=Z.buffer.concat(Z.length),Z.buffer.clear()):me=Z.buffer.consume(W,Z.decoder),me}function U(W){var Z=W._readableState;o("endReadable",Z.endEmitted),Z.endEmitted||(Z.ended=!0,Pt.nextTick(ee,Z,W))}function ee(W,Z){if(o("endReadableNT",W.endEmitted,W.length),!W.endEmitted&&W.length===0&&(W.endEmitted=!0,Z.readable=!1,Z.emit("end"),W.autoDestroy)){var me=Z._writableState;(!me||me.autoDestroy&&me.finished)&&Z.destroy()}}typeof Symbol=="function"&&(R.from=function(W,Z){return B===void 0&&(B=pR()),B(R,W,Z)});function re(W,Z){for(var me=0,k=W.length;me<k;me++)if(W[me]===Z)return me;return-1}return w0}var y0,PC;function kC(){if(PC)return y0;PC=1,y0=a;var n=rl().codes,e=n.ERR_METHOD_NOT_IMPLEMENTED,t=n.ERR_MULTIPLE_CALLBACK,r=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=n.ERR_TRANSFORM_WITH_LENGTH_0,A=nl();Aa()(a,A);function s(u,f){var h=this._transformState;h.transforming=!1;var c=h.writecb;if(c===null)return this.emit("error",new t);h.writechunk=null,h.writecb=null,f!=null&&this.push(f),c(u);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}function a(u){if(!(this instanceof a))return new a(u);A.call(this,u),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",o)}function o(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,h){l(u,f,h)}):l(this,null,null)}a.prototype.push=function(u,f){return this._transformState.needTransform=!1,A.prototype.push.call(this,u,f)},a.prototype._transform=function(u,f,h){h(new e("_transform()"))},a.prototype._write=function(u,f,h){var c=this._transformState;if(c.writecb=h,c.writechunk=u,c.writeencoding=f,!c.transforming){var m=this._readableState;(c.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},a.prototype._read=function(u){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},a.prototype._destroy=function(u,f){A.prototype._destroy.call(this,u,function(h){f(h)})};function l(u,f,h){if(f)return u.emit("error",f);if(h!=null&&u.push(h),u._writableState.length)throw new i;if(u._transformState.transforming)throw new r;return u.push(null)}return y0}var b0,DC;function gR(){if(DC)return b0;DC=1,b0=e;var n=kC();Aa()(e,n);function e(t){if(!(this instanceof e))return new e(t);n.call(this,t)}return e.prototype._transform=function(t,r,i){i(null,t)},b0}var B0,MC;function mR(){if(MC)return B0;MC=1;var n;function e(h){var c=!1;return function(){c||(c=!0,h.apply(void 0,arguments))}}var t=rl().codes,r=t.ERR_MISSING_ARGS,i=t.ERR_STREAM_DESTROYED;function A(h){if(h)throw h}function s(h){return h.setHeader&&typeof h.abort=="function"}function a(h,c,m,g){g=e(g);var w=!1;h.on("close",function(){w=!0}),n===void 0&&(n=g0()),n(h,{readable:c,writable:m},function(v){if(v)return g(v);w=!0,g()});var p=!1;return function(v){if(!w&&!p){if(p=!0,s(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();g(v||new i("pipe"))}}}function o(h){h()}function l(h,c){return h.pipe(c)}function u(h){return!h.length||typeof h[h.length-1]!="function"?A:h.pop()}function f(){for(var h=arguments.length,c=new Array(h),m=0;m<h;m++)c[m]=arguments[m];var g=u(c);if(Array.isArray(c[0])&&(c=c[0]),c.length<2)throw new r("streams");var w,p=c.map(function(v,b){var B=b<c.length-1,T=b>0;return a(v,B,T,function(M){w||(w=M),M&&p.forEach(o),!B&&(p.forEach(o),g(w))})});return c.reduce(l)}return B0=f,B0}var C0,HC;function E0(){if(HC)return C0;HC=1,C0=t;var n=tg().EventEmitter,e=Aa();e(t,n),t.Readable=RC(),t.Writable=_C(),t.Duplex=nl(),t.Transform=kC(),t.PassThrough=gR(),t.finished=g0(),t.pipeline=mR(),t.Stream=t;function t(){n.call(this)}return t.prototype.pipe=function(r,i){var A=this;function s(c){r.writable&&r.write(c)===!1&&A.pause&&A.pause()}A.on("data",s);function a(){A.readable&&A.resume&&A.resume()}r.on("drain",a),!r._isStdio&&(!i||i.end!==!1)&&(A.on("end",l),A.on("close",u));var o=!1;function l(){o||(o=!0,r.end())}function u(){o||(o=!0,typeof r.destroy=="function"&&r.destroy())}function f(c){if(h(),n.listenerCount(this,"error")===0)throw c}A.on("error",f),r.on("error",f);function h(){A.removeListener("data",s),r.removeListener("drain",a),A.removeListener("end",l),A.removeListener("close",u),A.removeListener("error",f),r.removeListener("error",f),A.removeListener("end",h),A.removeListener("close",h),r.removeListener("close",h)}return A.on("end",h),A.on("close",h),r.on("close",h),r.emit("pipe",A),r},C0}var qC;function vR(){return qC||(qC=1,function(n){(function(e){e.parser=function(O,U){return new r(O,U)},e.SAXParser=r,e.SAXStream=u,e.createStream=l,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function r(O,U){if(!(this instanceof r))return new r(O,U);var ee=this;A(ee),ee.q=ee.c="",ee.bufferCheckPosition=e.MAX_BUFFER_LENGTH,ee.opt=U||{},ee.opt.lowercase=ee.opt.lowercase||ee.opt.lowercasetags,ee.looseCase=ee.opt.lowercase?"toLowerCase":"toUpperCase",ee.tags=[],ee.closed=ee.closedRoot=ee.sawRoot=!1,ee.tag=ee.error=null,ee.strict=!!O,ee.noscript=!!(O||ee.opt.noscript),ee.state=R.BEGIN,ee.strictEntities=ee.opt.strictEntities,ee.ENTITIES=ee.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),ee.attribList=[],ee.opt.xmlns&&(ee.ns=Object.create(g)),ee.trackPosition=ee.opt.position!==!1,ee.trackPosition&&(ee.position=ee.line=ee.column=0),L(ee,"onready")}Object.create||(Object.create=function(O){function U(){}U.prototype=O;var ee=new U;return ee}),Object.keys||(Object.keys=function(O){var U=[];for(var ee in O)O.hasOwnProperty(ee)&&U.push(ee);return U});function i(O){for(var U=Math.max(e.MAX_BUFFER_LENGTH,10),ee=0,re=0,W=t.length;re<W;re++){var Z=O[t[re]].length;if(Z>U)switch(t[re]){case"textNode":Q(O);break;case"cdata":x(O,"oncdata",O.cdata),O.cdata="";break;case"script":x(O,"onscript",O.script),O.script="";break;default:z(O,"Max buffer length exceeded: "+t[re])}ee=Math.max(ee,Z)}var me=e.MAX_BUFFER_LENGTH-ee;O.bufferCheckPosition=me+O.position}function A(O){for(var U=0,ee=t.length;U<ee;U++)O[t[U]]=""}function s(O){Q(O),O.cdata!==""&&(x(O,"oncdata",O.cdata),O.cdata=""),O.script!==""&&(x(O,"onscript",O.script),O.script="")}r.prototype={end:function(){Y(this)},write:J,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){s(this)}};var a;try{a=E0().Stream}catch{a=function(){}}var o=e.EVENTS.filter(function(O){return O!=="error"&&O!=="end"});function l(O,U){return new u(O,U)}function u(O,U){if(!(this instanceof u))return new u(O,U);a.apply(this),this._parser=new r(O,U),this.writable=!0,this.readable=!0;var ee=this;this._parser.onend=function(){ee.emit("end")},this._parser.onerror=function(re){ee.emit("error",re),ee._parser.error=null},this._decoder=null,o.forEach(function(re){Object.defineProperty(ee,"on"+re,{get:function(){return ee._parser["on"+re]},set:function(W){if(!W)return ee.removeAllListeners(re),ee._parser["on"+re]=W,W;ee.on(re,W)},enumerable:!0,configurable:!1})})}u.prototype=Object.create(a.prototype,{constructor:{value:u}}),u.prototype.write=function(O){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(O)){if(!this._decoder){var U=d0().StringDecoder;this._decoder=new U("utf8")}O=this._decoder.write(O)}return this._parser.write(O.toString()),this.emit("data",O),!0},u.prototype.end=function(O){return O&&O.length&&this.write(O),this._parser.end(),!0},u.prototype.on=function(O,U){var ee=this;return!ee._parser["on"+O]&&o.indexOf(O)!==-1&&(ee._parser["on"+O]=function(){var re=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);re.splice(0,0,O),ee.emit.apply(ee,re)}),a.prototype.on.call(ee,O,U)};var f="[CDATA[",h="DOCTYPE",c="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/2000/xmlns/",g={xml:c,xmlns:m},w=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,b=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function B(O){return O===" "||O===`
`||O==="\r"||O===" "}function T(O){return O==='"'||O==="'"}function M(O){return O===">"||B(O)}function D(O,U){return O.test(U)}function j(O,U){return!D(O,U)}var R=0;e.STATE={BEGIN:R++,BEGIN_WHITESPACE:R++,TEXT:R++,TEXT_ENTITY:R++,OPEN_WAKA:R++,SGML_DECL:R++,SGML_DECL_QUOTED:R++,DOCTYPE:R++,DOCTYPE_QUOTED:R++,DOCTYPE_DTD:R++,DOCTYPE_DTD_QUOTED:R++,COMMENT_STARTING:R++,COMMENT:R++,COMMENT_ENDING:R++,COMMENT_ENDED:R++,CDATA:R++,CDATA_ENDING:R++,CDATA_ENDING_2:R++,PROC_INST:R++,PROC_INST_BODY:R++,PROC_INST_ENDING:R++,OPEN_TAG:R++,OPEN_TAG_SLASH:R++,ATTRIB:R++,ATTRIB_NAME:R++,ATTRIB_NAME_SAW_WHITE:R++,ATTRIB_VALUE:R++,ATTRIB_VALUE_QUOTED:R++,ATTRIB_VALUE_CLOSED:R++,ATTRIB_VALUE_UNQUOTED:R++,ATTRIB_VALUE_ENTITY_Q:R++,ATTRIB_VALUE_ENTITY_U:R++,CLOSE_TAG:R++,CLOSE_TAG_SAW_WHITE:R++,SCRIPT:R++,SCRIPT_ENDING:R++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(O){var U=e.ENTITIES[O],ee=typeof U=="number"?String.fromCharCode(U):U;e.ENTITIES[O]=ee});for(var ae in e.STATE)e.STATE[e.STATE[ae]]=ae;R=e.STATE;function L(O,U,ee){O[U]&&O[U](ee)}function x(O,U,ee){O.textNode&&Q(O),L(O,U,ee)}function Q(O){O.textNode=C(O.opt,O.textNode),O.textNode&&L(O,"ontext",O.textNode),O.textNode=""}function C(O,U){return O.trim&&(U=U.trim()),O.normalize&&(U=U.replace(/\s+/g," ")),U}function z(O,U){return Q(O),O.trackPosition&&(U+=`
Line: `+O.line+`
Column: `+O.column+`
Char: `+O.c),U=new Error(U),O.error=U,L(O,"onerror",U),O}function Y(O){return O.sawRoot&&!O.closedRoot&&V(O,"Unclosed root tag"),O.state!==R.BEGIN&&O.state!==R.BEGIN_WHITESPACE&&O.state!==R.TEXT&&z(O,"Unexpected end"),Q(O),O.c="",O.closed=!0,L(O,"onend"),r.call(O,O.strict,O.opt),O}function V(O,U){if(typeof O!="object"||!(O instanceof r))throw new Error("bad call to strictFail");O.strict&&z(O,U)}function ie(O){O.strict||(O.tagName=O.tagName[O.looseCase]());var U=O.tags[O.tags.length-1]||O,ee=O.tag={name:O.tagName,attributes:{}};O.opt.xmlns&&(ee.ns=U.ns),O.attribList.length=0,x(O,"onopentagstart",ee)}function Ae(O,U){var ee=O.indexOf(":"),re=ee<0?["",O]:O.split(":"),W=re[0],Z=re[1];return U&&O==="xmlns"&&(W="xmlns",Z=""),{prefix:W,local:Z}}function $(O){if(O.strict||(O.attribName=O.attribName[O.looseCase]()),O.attribList.indexOf(O.attribName)!==-1||O.tag.attributes.hasOwnProperty(O.attribName)){O.attribName=O.attribValue="";return}if(O.opt.xmlns){var U=Ae(O.attribName,!0),ee=U.prefix,re=U.local;if(ee==="xmlns")if(re==="xml"&&O.attribValue!==c)V(O,"xml: prefix must be bound to "+c+`
Actual: `+O.attribValue);else if(re==="xmlns"&&O.attribValue!==m)V(O,"xmlns: prefix must be bound to "+m+`
Actual: `+O.attribValue);else{var W=O.tag,Z=O.tags[O.tags.length-1]||O;W.ns===Z.ns&&(W.ns=Object.create(Z.ns)),W.ns[re]=O.attribValue}O.attribList.push([O.attribName,O.attribValue])}else O.tag.attributes[O.attribName]=O.attribValue,x(O,"onattribute",{name:O.attribName,value:O.attribValue});O.attribName=O.attribValue=""}function te(O,U){if(O.opt.xmlns){var ee=O.tag,re=Ae(O.tagName);ee.prefix=re.prefix,ee.local=re.local,ee.uri=ee.ns[re.prefix]||"",ee.prefix&&!ee.uri&&(V(O,"Unbound namespace prefix: "+JSON.stringify(O.tagName)),ee.uri=re.prefix);var W=O.tags[O.tags.length-1]||O;ee.ns&&W.ns!==ee.ns&&Object.keys(ee.ns).forEach(function(ce){x(O,"onopennamespace",{prefix:ce,uri:ee.ns[ce]})});for(var Z=0,me=O.attribList.length;Z<me;Z++){var k=O.attribList[Z],pe=k[0],I=k[1],E=Ae(pe,!0),S=E.prefix,P=E.local,oe=S===""?"":ee.ns[S]||"",ge={name:pe,value:I,prefix:S,local:P,uri:oe};S&&S!=="xmlns"&&!oe&&(V(O,"Unbound namespace prefix: "+JSON.stringify(S)),ge.uri=S),O.tag.attributes[pe]=ge,x(O,"onattribute",ge)}O.attribList.length=0}O.tag.isSelfClosing=!!U,O.sawRoot=!0,O.tags.push(O.tag),x(O,"onopentag",O.tag),U||(!O.noscript&&O.tagName.toLowerCase()==="script"?O.state=R.SCRIPT:O.state=R.TEXT,O.tag=null,O.tagName=""),O.attribName=O.attribValue="",O.attribList.length=0}function F(O){if(!O.tagName){V(O,"Weird empty close tag."),O.textNode+="</>",O.state=R.TEXT;return}if(O.script){if(O.tagName!=="script"){O.script+="</"+O.tagName+">",O.tagName="",O.state=R.SCRIPT;return}x(O,"onscript",O.script),O.script=""}var U=O.tags.length,ee=O.tagName;O.strict||(ee=ee[O.looseCase]());for(var re=ee;U--;){var W=O.tags[U];if(W.name!==re)V(O,"Unexpected close tag");else break}if(U<0){V(O,"Unmatched closing tag: "+O.tagName),O.textNode+="</"+O.tagName+">",O.state=R.TEXT;return}O.tagName=ee;for(var Z=O.tags.length;Z-- >U;){var me=O.tag=O.tags.pop();O.tagName=O.tag.name,x(O,"onclosetag",O.tagName);var k={};for(var pe in me.ns)k[pe]=me.ns[pe];var I=O.tags[O.tags.length-1]||O;O.opt.xmlns&&me.ns!==I.ns&&Object.keys(me.ns).forEach(function(E){var S=me.ns[E];x(O,"onclosenamespace",{prefix:E,uri:S})})}U===0&&(O.closedRoot=!0),O.tagName=O.attribValue=O.attribName="",O.attribList.length=0,O.state=R.TEXT}function H(O){var U=O.entity,ee=U.toLowerCase(),re,W="";return O.ENTITIES[U]?O.ENTITIES[U]:O.ENTITIES[ee]?O.ENTITIES[ee]:(U=ee,U.charAt(0)==="#"&&(U.charAt(1)==="x"?(U=U.slice(2),re=parseInt(U,16),W=re.toString(16)):(U=U.slice(1),re=parseInt(U,10),W=re.toString(10))),U=U.replace(/^0+/,""),isNaN(re)||W.toLowerCase()!==U?(V(O,"Invalid character entity"),"&"+O.entity+";"):String.fromCodePoint(re))}function G(O,U){U==="<"?(O.state=R.OPEN_WAKA,O.startTagPosition=O.position):B(U)||(V(O,"Non-whitespace before first tag."),O.textNode=U,O.state=R.TEXT)}function X(O,U){var ee="";return U<O.length&&(ee=O.charAt(U)),ee}function J(O){var U=this;if(this.error)throw this.error;if(U.closed)return z(U,"Cannot write after close. Assign an onready handler.");if(O===null)return Y(U);typeof O=="object"&&(O=O.toString());for(var ee=0,re="";re=X(O,ee++),U.c=re,!!re;)switch(U.trackPosition&&(U.position++,re===`
`?(U.line++,U.column=0):U.column++),U.state){case R.BEGIN:if(U.state=R.BEGIN_WHITESPACE,re==="\uFEFF")continue;G(U,re);continue;case R.BEGIN_WHITESPACE:G(U,re);continue;case R.TEXT:if(U.sawRoot&&!U.closedRoot){for(var W=ee-1;re&&re!=="<"&&re!=="&";)re=X(O,ee++),re&&U.trackPosition&&(U.position++,re===`
`?(U.line++,U.column=0):U.column++);U.textNode+=O.substring(W,ee-1)}re==="<"&&!(U.sawRoot&&U.closedRoot&&!U.strict)?(U.state=R.OPEN_WAKA,U.startTagPosition=U.position):(!B(re)&&(!U.sawRoot||U.closedRoot)&&V(U,"Text data outside of root node."),re==="&"?U.state=R.TEXT_ENTITY:U.textNode+=re);continue;case R.SCRIPT:re==="<"?U.state=R.SCRIPT_ENDING:U.script+=re;continue;case R.SCRIPT_ENDING:re==="/"?U.state=R.CLOSE_TAG:(U.script+="<"+re,U.state=R.SCRIPT);continue;case R.OPEN_WAKA:if(re==="!")U.state=R.SGML_DECL,U.sgmlDecl="";else if(!B(re))if(D(w,re))U.state=R.OPEN_TAG,U.tagName=re;else if(re==="/")U.state=R.CLOSE_TAG,U.tagName="";else if(re==="?")U.state=R.PROC_INST,U.procInstName=U.procInstBody="";else{if(V(U,"Unencoded <"),U.startTagPosition+1<U.position){var Z=U.position-U.startTagPosition;re=new Array(Z).join(" ")+re}U.textNode+="<"+re,U.state=R.TEXT}continue;case R.SGML_DECL:(U.sgmlDecl+re).toUpperCase()===f?(x(U,"onopencdata"),U.state=R.CDATA,U.sgmlDecl="",U.cdata=""):U.sgmlDecl+re==="--"?(U.state=R.COMMENT,U.comment="",U.sgmlDecl=""):(U.sgmlDecl+re).toUpperCase()===h?(U.state=R.DOCTYPE,(U.doctype||U.sawRoot)&&V(U,"Inappropriately located doctype declaration"),U.doctype="",U.sgmlDecl=""):re===">"?(x(U,"onsgmldeclaration",U.sgmlDecl),U.sgmlDecl="",U.state=R.TEXT):(T(re)&&(U.state=R.SGML_DECL_QUOTED),U.sgmlDecl+=re);continue;case R.SGML_DECL_QUOTED:re===U.q&&(U.state=R.SGML_DECL,U.q=""),U.sgmlDecl+=re;continue;case R.DOCTYPE:re===">"?(U.state=R.TEXT,x(U,"ondoctype",U.doctype),U.doctype=!0):(U.doctype+=re,re==="["?U.state=R.DOCTYPE_DTD:T(re)&&(U.state=R.DOCTYPE_QUOTED,U.q=re));continue;case R.DOCTYPE_QUOTED:U.doctype+=re,re===U.q&&(U.q="",U.state=R.DOCTYPE);continue;case R.DOCTYPE_DTD:U.doctype+=re,re==="]"?U.state=R.DOCTYPE:T(re)&&(U.state=R.DOCTYPE_DTD_QUOTED,U.q=re);continue;case R.DOCTYPE_DTD_QUOTED:U.doctype+=re,re===U.q&&(U.state=R.DOCTYPE_DTD,U.q="");continue;case R.COMMENT:re==="-"?U.state=R.COMMENT_ENDING:U.comment+=re;continue;case R.COMMENT_ENDING:re==="-"?(U.state=R.COMMENT_ENDED,U.comment=C(U.opt,U.comment),U.comment&&x(U,"oncomment",U.comment),U.comment=""):(U.comment+="-"+re,U.state=R.COMMENT);continue;case R.COMMENT_ENDED:re!==">"?(V(U,"Malformed comment"),U.comment+="--"+re,U.state=R.COMMENT):U.state=R.TEXT;continue;case R.CDATA:re==="]"?U.state=R.CDATA_ENDING:U.cdata+=re;continue;case R.CDATA_ENDING:re==="]"?U.state=R.CDATA_ENDING_2:(U.cdata+="]"+re,U.state=R.CDATA);continue;case R.CDATA_ENDING_2:re===">"?(U.cdata&&x(U,"oncdata",U.cdata),x(U,"onclosecdata"),U.cdata="",U.state=R.TEXT):re==="]"?U.cdata+="]":(U.cdata+="]]"+re,U.state=R.CDATA);continue;case R.PROC_INST:re==="?"?U.state=R.PROC_INST_ENDING:B(re)?U.state=R.PROC_INST_BODY:U.procInstName+=re;continue;case R.PROC_INST_BODY:if(!U.procInstBody&&B(re))continue;re==="?"?U.state=R.PROC_INST_ENDING:U.procInstBody+=re;continue;case R.PROC_INST_ENDING:re===">"?(x(U,"onprocessinginstruction",{name:U.procInstName,body:U.procInstBody}),U.procInstName=U.procInstBody="",U.state=R.TEXT):(U.procInstBody+="?"+re,U.state=R.PROC_INST_BODY);continue;case R.OPEN_TAG:D(p,re)?U.tagName+=re:(ie(U),re===">"?te(U):re==="/"?U.state=R.OPEN_TAG_SLASH:(B(re)||V(U,"Invalid character in tag name"),U.state=R.ATTRIB));continue;case R.OPEN_TAG_SLASH:re===">"?(te(U,!0),F(U)):(V(U,"Forward-slash in opening tag not followed by >"),U.state=R.ATTRIB);continue;case R.ATTRIB:if(B(re))continue;re===">"?te(U):re==="/"?U.state=R.OPEN_TAG_SLASH:D(w,re)?(U.attribName=re,U.attribValue="",U.state=R.ATTRIB_NAME):V(U,"Invalid attribute name");continue;case R.ATTRIB_NAME:re==="="?U.state=R.ATTRIB_VALUE:re===">"?(V(U,"Attribute without value"),U.attribValue=U.attribName,$(U),te(U)):B(re)?U.state=R.ATTRIB_NAME_SAW_WHITE:D(p,re)?U.attribName+=re:V(U,"Invalid attribute name");continue;case R.ATTRIB_NAME_SAW_WHITE:if(re==="=")U.state=R.ATTRIB_VALUE;else{if(B(re))continue;V(U,"Attribute without value"),U.tag.attributes[U.attribName]="",U.attribValue="",x(U,"onattribute",{name:U.attribName,value:""}),U.attribName="",re===">"?te(U):D(w,re)?(U.attribName=re,U.state=R.ATTRIB_NAME):(V(U,"Invalid attribute name"),U.state=R.ATTRIB)}continue;case R.ATTRIB_VALUE:if(B(re))continue;T(re)?(U.q=re,U.state=R.ATTRIB_VALUE_QUOTED):(V(U,"Unquoted attribute value"),U.state=R.ATTRIB_VALUE_UNQUOTED,U.attribValue=re);continue;case R.ATTRIB_VALUE_QUOTED:if(re!==U.q){re==="&"?U.state=R.ATTRIB_VALUE_ENTITY_Q:U.attribValue+=re;continue}$(U),U.q="",U.state=R.ATTRIB_VALUE_CLOSED;continue;case R.ATTRIB_VALUE_CLOSED:B(re)?U.state=R.ATTRIB:re===">"?te(U):re==="/"?U.state=R.OPEN_TAG_SLASH:D(w,re)?(V(U,"No whitespace between attributes"),U.attribName=re,U.attribValue="",U.state=R.ATTRIB_NAME):V(U,"Invalid attribute name");continue;case R.ATTRIB_VALUE_UNQUOTED:if(!M(re)){re==="&"?U.state=R.ATTRIB_VALUE_ENTITY_U:U.attribValue+=re;continue}$(U),re===">"?te(U):U.state=R.ATTRIB;continue;case R.CLOSE_TAG:if(U.tagName)re===">"?F(U):D(p,re)?U.tagName+=re:U.script?(U.script+="</"+U.tagName,U.tagName="",U.state=R.SCRIPT):(B(re)||V(U,"Invalid tagname in closing tag"),U.state=R.CLOSE_TAG_SAW_WHITE);else{if(B(re))continue;j(w,re)?U.script?(U.script+="</"+re,U.state=R.SCRIPT):V(U,"Invalid tagname in closing tag."):U.tagName=re}continue;case R.CLOSE_TAG_SAW_WHITE:if(B(re))continue;re===">"?F(U):V(U,"Invalid characters in closing tag");continue;case R.TEXT_ENTITY:case R.ATTRIB_VALUE_ENTITY_Q:case R.ATTRIB_VALUE_ENTITY_U:var me,k;switch(U.state){case R.TEXT_ENTITY:me=R.TEXT,k="textNode";break;case R.ATTRIB_VALUE_ENTITY_Q:me=R.ATTRIB_VALUE_QUOTED,k="attribValue";break;case R.ATTRIB_VALUE_ENTITY_U:me=R.ATTRIB_VALUE_UNQUOTED,k="attribValue";break}re===";"?(U[k]+=H(U),U.entity="",U.state=me):D(U.entity.length?b:v,re)?U.entity+=re:(V(U,"Invalid character in entity name"),U[k]+="&"+U.entity+re,U.entity="",U.state=me);continue;default:throw new Error(U,"Unknown state: "+U.state)}return U.position>=U.bufferCheckPosition&&i(U),U}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var O=String.fromCharCode,U=Math.floor,ee=function(){var re=16384,W=[],Z,me,k=-1,pe=arguments.length;if(!pe)return"";for(var I="";++k<pe;){var E=Number(arguments[k]);if(!isFinite(E)||E<0||E>1114111||U(E)!==E)throw RangeError("Invalid code point: "+E);E<=65535?W.push(E):(E-=65536,Z=(E>>10)+55296,me=E%1024+56320,W.push(Z,me)),(k+1===pe||W.length>re)&&(I+=O.apply(null,W),W.length=0)}return I};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:ee,configurable:!0,writable:!0}):String.fromCodePoint=ee}()})(n)}(eg)),eg}var x0,jC;function S0(){return jC||(jC=1,x0={isArray:function(n){return Array.isArray?Array.isArray(n):Object.prototype.toString.call(n)==="[object Array]"}}),x0}var F0,KC;function _0(){if(KC)return F0;KC=1;var n=S0().isArray;return F0={copyOptions:function(e){var t,r={};for(t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r},ensureFlagExists:function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!n(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}},F0}var T0,VC;function GC(){if(VC)return T0;VC=1;var n=vR(),e=_0(),t=S0().isArray,r,i;function A(p){return r=e.copyOptions(p),e.ensureFlagExists("ignoreDeclaration",r),e.ensureFlagExists("ignoreInstruction",r),e.ensureFlagExists("ignoreAttributes",r),e.ensureFlagExists("ignoreText",r),e.ensureFlagExists("ignoreComment",r),e.ensureFlagExists("ignoreCdata",r),e.ensureFlagExists("ignoreDoctype",r),e.ensureFlagExists("compact",r),e.ensureFlagExists("alwaysChildren",r),e.ensureFlagExists("addParent",r),e.ensureFlagExists("trim",r),e.ensureFlagExists("nativeType",r),e.ensureFlagExists("nativeTypeAttributes",r),e.ensureFlagExists("sanitize",r),e.ensureFlagExists("instructionHasAttributes",r),e.ensureFlagExists("captureSpacesBetweenElements",r),e.ensureAlwaysArrayExists(r),e.ensureKeyExists("declaration",r),e.ensureKeyExists("instruction",r),e.ensureKeyExists("attributes",r),e.ensureKeyExists("text",r),e.ensureKeyExists("comment",r),e.ensureKeyExists("cdata",r),e.ensureKeyExists("doctype",r),e.ensureKeyExists("type",r),e.ensureKeyExists("name",r),e.ensureKeyExists("elements",r),e.ensureKeyExists("parent",r),e.checkFnExists("doctype",r),e.checkFnExists("instruction",r),e.checkFnExists("cdata",r),e.checkFnExists("comment",r),e.checkFnExists("text",r),e.checkFnExists("instructionName",r),e.checkFnExists("elementName",r),e.checkFnExists("attributeName",r),e.checkFnExists("attributeValue",r),e.checkFnExists("attributes",r),r}function s(p){var v=Number(p);if(!isNaN(v))return v;var b=p.toLowerCase();return b==="true"?!0:b==="false"?!1:p}function a(p,v){var b;if(r.compact){if(!i[r[p+"Key"]]&&(t(r.alwaysArray)?r.alwaysArray.indexOf(r[p+"Key"])!==-1:r.alwaysArray)&&(i[r[p+"Key"]]=[]),i[r[p+"Key"]]&&!t(i[r[p+"Key"]])&&(i[r[p+"Key"]]=[i[r[p+"Key"]]]),p+"Fn"in r&&typeof v=="string"&&(v=r[p+"Fn"](v,i)),p==="instruction"&&("instructionFn"in r||"instructionNameFn"in r)){for(b in v)if(v.hasOwnProperty(b))if("instructionFn"in r)v[b]=r.instructionFn(v[b],b,i);else{var B=v[b];delete v[b],v[r.instructionNameFn(b,B,i)]=B}}t(i[r[p+"Key"]])?i[r[p+"Key"]].push(v):i[r[p+"Key"]]=v}else{i[r.elementsKey]||(i[r.elementsKey]=[]);var T={};if(T[r.typeKey]=p,p==="instruction"){for(b in v)if(v.hasOwnProperty(b))break;T[r.nameKey]="instructionNameFn"in r?r.instructionNameFn(b,v,i):b,r.instructionHasAttributes?(T[r.attributesKey]=v[b][r.attributesKey],"instructionFn"in r&&(T[r.attributesKey]=r.instructionFn(T[r.attributesKey],b,i))):("instructionFn"in r&&(v[b]=r.instructionFn(v[b],b,i)),T[r.instructionKey]=v[b])}else p+"Fn"in r&&(v=r[p+"Fn"](v,i)),T[r[p+"Key"]]=v;r.addParent&&(T[r.parentKey]=i),i[r.elementsKey].push(T)}}function o(p){if("attributesFn"in r&&p&&(p=r.attributesFn(p,i)),(r.trim||"attributeValueFn"in r||"attributeNameFn"in r||r.nativeTypeAttributes)&&p){var v;for(v in p)if(p.hasOwnProperty(v)&&(r.trim&&(p[v]=p[v].trim()),r.nativeTypeAttributes&&(p[v]=s(p[v])),"attributeValueFn"in r&&(p[v]=r.attributeValueFn(p[v],v,i)),"attributeNameFn"in r)){var b=p[v];delete p[v],p[r.attributeNameFn(v,p[v],i)]=b}}return p}function l(p){var v={};if(p.body&&(p.name.toLowerCase()==="xml"||r.instructionHasAttributes)){for(var b=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,B;(B=b.exec(p.body))!==null;)v[B[1]]=B[2]||B[3]||B[4];v=o(v)}if(p.name.toLowerCase()==="xml"){if(r.ignoreDeclaration)return;i[r.declarationKey]={},Object.keys(v).length&&(i[r.declarationKey][r.attributesKey]=v),r.addParent&&(i[r.declarationKey][r.parentKey]=i)}else{if(r.ignoreInstruction)return;r.trim&&(p.body=p.body.trim());var T={};r.instructionHasAttributes&&Object.keys(v).length?(T[p.name]={},T[p.name][r.attributesKey]=v):T[p.name]=p.body,a("instruction",T)}}function u(p,v){var b;if(typeof p=="object"&&(v=p.attributes,p=p.name),v=o(v),"elementNameFn"in r&&(p=r.elementNameFn(p,i)),r.compact){if(b={},!r.ignoreAttributes&&v&&Object.keys(v).length){b[r.attributesKey]={};var B;for(B in v)v.hasOwnProperty(B)&&(b[r.attributesKey][B]=v[B])}!(p in i)&&(t(r.alwaysArray)?r.alwaysArray.indexOf(p)!==-1:r.alwaysArray)&&(i[p]=[]),i[p]&&!t(i[p])&&(i[p]=[i[p]]),t(i[p])?i[p].push(b):i[p]=b}else i[r.elementsKey]||(i[r.elementsKey]=[]),b={},b[r.typeKey]="element",b[r.nameKey]=p,!r.ignoreAttributes&&v&&Object.keys(v).length&&(b[r.attributesKey]=v),r.alwaysChildren&&(b[r.elementsKey]=[]),i[r.elementsKey].push(b);b[r.parentKey]=i,i=b}function f(p){r.ignoreText||!p.trim()&&!r.captureSpacesBetweenElements||(r.trim&&(p=p.trim()),r.nativeType&&(p=s(p)),r.sanitize&&(p=p.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),a("text",p))}function h(p){r.ignoreComment||(r.trim&&(p=p.trim()),a("comment",p))}function c(p){var v=i[r.parentKey];r.addParent||delete i[r.parentKey],i=v}function m(p){r.ignoreCdata||(r.trim&&(p=p.trim()),a("cdata",p))}function g(p){r.ignoreDoctype||(p=p.replace(/^ /,""),r.trim&&(p=p.trim()),a("doctype",p))}function w(p){p.note=p}return T0=function(p,v){var b=n.parser(!0,{}),B={};if(i=B,r=A(v),b.opt={strictEntities:!0},b.onopentag=u,b.ontext=f,b.oncomment=h,b.onclosetag=c,b.onerror=w,b.oncdata=m,b.ondoctype=g,b.onprocessinginstruction=l,b.write(p).close(),B[r.elementsKey]){var T=B[r.elementsKey];delete B[r.elementsKey],B[r.elementsKey]=T,delete B.text}return B},T0}var I0,zC;function wR(){if(zC)return I0;zC=1;var n=_0(),e=GC();function t(r){var i=n.copyOptions(r);return n.ensureSpacesExists(i),i}return I0=function(r,i){var A,s,a,o;return A=t(i),s=e(r,A),o="compact"in A&&A.compact?"_parent":"parent","addParent"in A&&A.addParent?a=JSON.stringify(s,function(l,u){return l===o?"_":u},A.spaces):a=JSON.stringify(s,null,A.spaces),a.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},I0}var U0,WC;function XC(){if(WC)return U0;WC=1;var n=_0(),e=S0().isArray,t,r;function i(b){var B=n.copyOptions(b);return n.ensureFlagExists("ignoreDeclaration",B),n.ensureFlagExists("ignoreInstruction",B),n.ensureFlagExists("ignoreAttributes",B),n.ensureFlagExists("ignoreText",B),n.ensureFlagExists("ignoreComment",B),n.ensureFlagExists("ignoreCdata",B),n.ensureFlagExists("ignoreDoctype",B),n.ensureFlagExists("compact",B),n.ensureFlagExists("indentText",B),n.ensureFlagExists("indentCdata",B),n.ensureFlagExists("indentAttributes",B),n.ensureFlagExists("indentInstruction",B),n.ensureFlagExists("fullTagEmptyElement",B),n.ensureFlagExists("noQuotesForNativeAttributes",B),n.ensureSpacesExists(B),typeof B.spaces=="number"&&(B.spaces=Array(B.spaces+1).join(" ")),n.ensureKeyExists("declaration",B),n.ensureKeyExists("instruction",B),n.ensureKeyExists("attributes",B),n.ensureKeyExists("text",B),n.ensureKeyExists("comment",B),n.ensureKeyExists("cdata",B),n.ensureKeyExists("doctype",B),n.ensureKeyExists("type",B),n.ensureKeyExists("name",B),n.ensureKeyExists("elements",B),n.checkFnExists("doctype",B),n.checkFnExists("instruction",B),n.checkFnExists("cdata",B),n.checkFnExists("comment",B),n.checkFnExists("text",B),n.checkFnExists("instructionName",B),n.checkFnExists("elementName",B),n.checkFnExists("attributeName",B),n.checkFnExists("attributeValue",B),n.checkFnExists("attributes",B),n.checkFnExists("fullTagEmptyElement",B),B}function A(b,B,T){return(!T&&b.spaces?`
`:"")+Array(B+1).join(b.spaces)}function s(b,B,T){if(B.ignoreAttributes)return"";"attributesFn"in B&&(b=B.attributesFn(b,r,t));var M,D,j,R,ae=[];for(M in b)b.hasOwnProperty(M)&&b[M]!==null&&b[M]!==void 0&&(R=B.noQuotesForNativeAttributes&&typeof b[M]!="string"?"":'"',D=""+b[M],D=D.replace(/"/g,"""),j="attributeNameFn"in B?B.attributeNameFn(M,D,r,t):M,ae.push(B.spaces&&B.indentAttributes?A(B,T+1,!1):" "),ae.push(j+"="+R+("attributeValueFn"in B?B.attributeValueFn(D,M,r,t):D)+R));return b&&Object.keys(b).length&&B.spaces&&B.indentAttributes&&ae.push(A(B,T,!1)),ae.join("")}function a(b,B,T){return t=b,r="xml",B.ignoreDeclaration?"":"<?xml"+s(b[B.attributesKey],B,T)+"?>"}function o(b,B,T){if(B.ignoreInstruction)return"";var M;for(M in b)if(b.hasOwnProperty(M))break;var D="instructionNameFn"in B?B.instructionNameFn(M,b[M],r,t):M;if(typeof b[M]=="object")return t=b,r=D,"<?"+D+s(b[M][B.attributesKey],B,T)+"?>";var j=b[M]?b[M]:"";return"instructionFn"in B&&(j=B.instructionFn(j,M,r,t)),"<?"+D+(j?" "+j:"")+"?>"}function l(b,B){return B.ignoreComment?"":"<!--"+("commentFn"in B?B.commentFn(b,r,t):b)+"-->"}function u(b,B){return B.ignoreCdata?"":"<![CDATA["+("cdataFn"in B?B.cdataFn(b,r,t):b.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function f(b,B){return B.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in B?B.doctypeFn(b,r,t):b)+">"}function h(b,B){return B.ignoreText?"":(b=""+b,b=b.replace(/&/g,"&"),b=b.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in B?B.textFn(b,r,t):b)}function c(b,B){var T;if(b.elements&&b.elements.length)for(T=0;T<b.elements.length;++T)switch(b.elements[T][B.typeKey]){case"text":if(B.indentText)return!0;break;case"cdata":if(B.indentCdata)return!0;break;case"instruction":if(B.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function m(b,B,T){t=b,r=b.name;var M=[],D="elementNameFn"in B?B.elementNameFn(b.name,b):b.name;M.push("<"+D),b[B.attributesKey]&&M.push(s(b[B.attributesKey],B,T));var j=b[B.elementsKey]&&b[B.elementsKey].length||b[B.attributesKey]&&b[B.attributesKey]["xml:space"]==="preserve";return j||("fullTagEmptyElementFn"in B?j=B.fullTagEmptyElementFn(b.name,b):j=B.fullTagEmptyElement),j?(M.push(">"),b[B.elementsKey]&&b[B.elementsKey].length&&(M.push(g(b[B.elementsKey],B,T+1)),t=b,r=b.name),M.push(B.spaces&&c(b,B)?`
`+Array(T+1).join(B.spaces):""),M.push("</"+D+">")):M.push("/>"),M.join("")}function g(b,B,T,M){return b.reduce(function(D,j){var R=A(B,T,M&&!D);switch(j.type){case"element":return D+R+m(j,B,T);case"comment":return D+R+l(j[B.commentKey],B);case"doctype":return D+R+f(j[B.doctypeKey],B);case"cdata":return D+(B.indentCdata?R:"")+u(j[B.cdataKey],B);case"text":return D+(B.indentText?R:"")+h(j[B.textKey],B);case"instruction":var ae={};return ae[j[B.nameKey]]=j[B.attributesKey]?j:j[B.instructionKey],D+(B.indentInstruction?R:"")+o(ae,B,T)}},"")}function w(b,B,T){var M;for(M in b)if(b.hasOwnProperty(M))switch(M){case B.parentKey:case B.attributesKey:break;case B.textKey:if(B.indentText||T)return!0;break;case B.cdataKey:if(B.indentCdata||T)return!0;break;case B.instructionKey:if(B.indentInstruction||T)return!0;break;case B.doctypeKey:case B.commentKey:return!0;default:return!0}return!1}function p(b,B,T,M,D){t=b,r=B;var j="elementNameFn"in T?T.elementNameFn(B,b):B;if(typeof b>"u"||b===null||b==="")return"fullTagEmptyElementFn"in T&&T.fullTagEmptyElementFn(B,b)||T.fullTagEmptyElement?"<"+j+"></"+j+">":"<"+j+"/>";var R=[];if(B){if(R.push("<"+j),typeof b!="object")return R.push(">"+h(b,T)+"</"+j+">"),R.join("");b[T.attributesKey]&&R.push(s(b[T.attributesKey],T,M));var ae=w(b,T,!0)||b[T.attributesKey]&&b[T.attributesKey]["xml:space"]==="preserve";if(ae||("fullTagEmptyElementFn"in T?ae=T.fullTagEmptyElementFn(B,b):ae=T.fullTagEmptyElement),ae)R.push(">");else return R.push("/>"),R.join("")}return R.push(v(b,T,M+1,!1)),t=b,r=B,B&&R.push((D?A(T,M,!1):"")+"</"+j+">"),R.join("")}function v(b,B,T,M){var D,j,R,ae=[];for(j in b)if(b.hasOwnProperty(j))for(R=e(b[j])?b[j]:[b[j]],D=0;D<R.length;++D){switch(j){case B.declarationKey:ae.push(a(R[D],B,T));break;case B.instructionKey:ae.push((B.indentInstruction?A(B,T,M):"")+o(R[D],B,T));break;case B.attributesKey:case B.parentKey:break;case B.textKey:ae.push((B.indentText?A(B,T,M):"")+h(R[D],B));break;case B.cdataKey:ae.push((B.indentCdata?A(B,T,M):"")+u(R[D],B));break;case B.doctypeKey:ae.push(A(B,T,M)+f(R[D],B));break;case B.commentKey:ae.push(A(B,T,M)+l(R[D],B));break;default:ae.push(A(B,T,M)+p(R[D],j,B,T,w(R[D],B)))}M=M&&!ae.length}return ae.join("")}return U0=function(b,B){B=i(B);var T=[];return t=b,r="_root_",B.compact?T.push(v(b,B,0,!0)):(b[B.declarationKey]&&T.push(a(b[B.declarationKey],B,0)),b[B.elementsKey]&&b[B.elementsKey].length&&T.push(g(b[B.elementsKey],B,0,!T.length))),T.join("")},U0}var N0,YC;function yR(){if(YC)return N0;YC=1;var n=XC();return N0=function(e,t){e instanceof Buffer&&(e=e.toString());var r=null;if(typeof e=="string")try{r=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else r=e;return n(r,t)},N0}var L0,$C;function bR(){if($C)return L0;$C=1;var n=GC(),e=wR(),t=XC(),r=yR();return L0={xml2js:n,xml2json:e,js2xml:t,json2xml:r},L0}var JC=bR();const O0=n=>{switch(n.type){case void 0:case"element":const e=new CR(n.name,n.attributes),t=n.elements||[];for(const r of t){const i=O0(r);i!==void 0&&e.push(i)}return e;case"text":return n.text;default:return}};class BR extends xt{}class CR extends Ge{static fromXmlString(e){const t=JC.xml2js(e,{compact:!1});return O0(t)}constructor(e,t){super(e),t&&this.root.push(new BR(t))}push(e){this.root.push(e)}}class ER extends Ge{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}}class ZC extends Ge{constructor(e,t){super(e),t&&(this.root=t.root)}}const pi=n=>{if(isNaN(n))throw new Error(`Invalid value '${n}' specified. Must be an integer.`);return Math.floor(n)},$f=n=>{const e=pi(n);if(e<0)throw new Error(`Invalid value '${n}' specified. Must be a positive integer.`);return e},eE=(n,e)=>{const t=e*2;if(n.length!==t||isNaN(+`0x${n}`))throw new Error(`Invalid hex value '${n}'. Expected ${t} digit hex value`);return n},tE=n=>eE(n,1),rE=n=>{const e=n.slice(-2),t=n.substring(0,n.length-2);return`${Number(t)}${e}`},nE=n=>{const e=rE(n);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},il=n=>{if(n==="auto")return n;const e=n.charAt(0)==="#"?n.substring(1):n;return eE(e,3)},Ya=n=>typeof n=="string"?rE(n):pi(n),xR=n=>typeof n=="string"?nE(n):$f(n),fA=n=>typeof n=="string"?nE(n):$f(n),SR=$f,FR=$f,_R=n=>n.toISOString();class We extends Ge{constructor(e,t=!0){super(e),t!==!0&&this.root.push(new Jr({val:t}))}}class Q0 extends Ge{constructor(e,t){super(e),this.root.push(new Jr({val:xR(t)}))}}class Al extends Ge{constructor(e,t){super(e),this.root.push(new Jr({val:t}))}}const Bu=(n,e)=>new KA({name:n,attributes:{value:{key:"w:val",value:e}}});class Cu extends Ge{constructor(e,t){super(e),this.root.push(new Jr({val:t}))}}class $a extends Ge{constructor(e,t){super(e),this.root.push(t)}}class KA extends Ge{constructor({name:e,attributes:t,children:r}){super(e),t&&this.root.push(new jf(t)),r&&this.root.push(...r)}}const hA={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"};class TR extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{val:"w:val"})}}class IR extends Ge{constructor(e){super("w:jc"),this.root.push(new TR({val:e}))}}class kr extends Ge{constructor(e,{color:t,size:r,space:i,style:A}){super(e),this.root.push(new UR({style:A,color:t===void 0?void 0:il(t),size:r===void 0?void 0:SR(r),space:i===void 0?void 0:FR(i)}))}}class UR extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const R0={SINGLE:"single",NONE:"none"};class NR extends qf{constructor(e){super("w:pBdr"),e.top&&this.root.push(new kr("w:top",e.top)),e.bottom&&this.root.push(new kr("w:bottom",e.bottom)),e.left&&this.root.push(new kr("w:left",e.left)),e.right&&this.root.push(new kr("w:right",e.right))}}class LR extends Ge{constructor(){super("w:pBdr");const e=new kr("w:bottom",{color:"auto",space:1,style:R0.SINGLE,size:6});this.root.push(e)}}class OR extends Ge{constructor({start:e,end:t,left:r,right:i,hanging:A,firstLine:s}){super("w:ind"),this.root.push(new jf({start:{key:"w:start",value:e===void 0?void 0:Ya(e)},end:{key:"w:end",value:t===void 0?void 0:Ya(t)},left:{key:"w:left",value:r===void 0?void 0:Ya(r)},right:{key:"w:right",value:i===void 0?void 0:Ya(i)},hanging:{key:"w:hanging",value:A===void 0?void 0:fA(A)},firstLine:{key:"w:firstLine",value:s===void 0?void 0:fA(s)}}))}}let QR=class extends Ge{constructor(){super("w:br")}};const P0={BEGIN:"begin",END:"end",SEPARATE:"separate"};class k0 extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class Jf extends Ge{constructor(e){super("w:fldChar"),this.root.push(new k0({type:P0.BEGIN,dirty:e}))}}class Zf extends Ge{constructor(e){super("w:fldChar"),this.root.push(new k0({type:P0.SEPARATE,dirty:e}))}}class eh extends Ge{constructor(e){super("w:fldChar"),this.root.push(new k0({type:P0.END,dirty:e}))}}const sl={DEFAULT:"default",PRESERVE:"preserve"};class al extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{space:"xml:space"})}}class RR extends Ge{constructor(){super("w:instrText"),this.root.push(new al({space:sl.PRESERVE})),this.root.push("PAGE")}}class PR extends Ge{constructor(){super("w:instrText"),this.root.push(new al({space:sl.PRESERVE})),this.root.push("NUMPAGES")}}class kR extends Ge{constructor(){super("w:instrText"),this.root.push(new al({space:sl.PRESERVE})),this.root.push("SECTIONPAGES")}}class DR extends Ge{constructor(){super("w:instrText"),this.root.push(new al({space:sl.PRESERVE})),this.root.push("SECTION")}}class MR extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class iE extends Ge{constructor({fill:e,color:t,type:r}){super("w:shd"),this.root.push(new MR({fill:e===void 0?void 0:il(e),color:t===void 0?void 0:il(t),type:r}))}}class HR extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const qR={DOT:"dot"};class jR extends Ge{constructor(e){super("w:em"),this.root.push(new Jr({val:e}))}}class KR extends jR{constructor(e=qR.DOT){super(e)}}class VR extends Ge{constructor(e){super("w:spacing"),this.root.push(new Jr({val:Ya(e)}))}}class GR extends Ge{constructor(e){super("w:color"),this.root.push(new Jr({val:il(e)}))}}class zR extends Ge{constructor(e){super("w:highlight"),this.root.push(new Jr({val:e}))}}class WR extends Ge{constructor(e){super("w:highlightCs"),this.root.push(new Jr({val:e}))}}const XR=n=>new KA({name:"w:lang",attributes:{value:{key:"w:val",value:n.value},eastAsia:{key:"w:eastAsia",value:n.eastAsia},bidirectional:{key:"w:bidi",value:n.bidirectional}}});class AE extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class D0 extends Ge{constructor(e,t){if(super("w:rFonts"),typeof e=="string"){const r=e;this.root.push(new AE({ascii:r,cs:r,eastAsia:r,hAnsi:r,hint:t}))}else{const r=e;this.root.push(new AE(r))}}}let sE=class extends Ge{constructor(e){super("w:vertAlign"),this.root.push(new Jr({val:e}))}};class YR extends sE{constructor(){super("superscript")}}class $R extends sE{constructor(){super("subscript")}}const aE={SINGLE:"single"};let JR=class extends Ge{constructor(e=aE.SINGLE,t){super("w:u"),this.root.push(new Jr({val:e,color:t===void 0?void 0:il(t)}))}};class Ja extends qf{constructor(e){var t,r;if(super("w:rPr"),!e)return;e.style&&this.push(new Al("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new D0(e.font)):"name"in e.font?this.push(new D0(e.font.name,e.font.hint)):this.push(new D0(e.font))),e.bold!==void 0&&this.push(new We("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new We("w:bCs",(t=e.boldComplexScript)!=null?t:e.bold)),e.italics!==void 0&&this.push(new We("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new We("w:iCs",(r=e.italicsComplexScript)!=null?r:e.italics)),e.smallCaps!==void 0?this.push(new We("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new We("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new We("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new We("w:dstrike",e.doubleStrike)),e.emboss!==void 0&&this.push(new We("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new We("w:imprint",e.imprint)),e.noProof!==void 0&&this.push(new We("w:noProof",e.noProof)),e.snapToGrid!==void 0&&this.push(new We("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new We("w:vanish",e.vanish)),e.color&&this.push(new GR(e.color)),e.characterSpacing&&this.push(new VR(e.characterSpacing)),e.scale!==void 0&&this.push(new Cu("w:w",e.scale)),e.kern&&this.push(new Q0("w:kern",e.kern)),e.position&&this.push(new Al("w:position",e.position)),e.size!==void 0&&this.push(new Q0("w:sz",e.size));const i=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;i&&this.push(new Q0("w:szCs",i)),e.highlight&&this.push(new zR(e.highlight));const A=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;A&&this.push(new WR(A)),e.underline&&this.push(new JR(e.underline.type,e.underline.color)),e.effect&&this.push(new Al("w:effect",e.effect)),e.border&&this.push(new kr("w:bdr",e.border)),e.shading&&this.push(new iE(e.shading)),e.subScript&&this.push(new $R),e.superScript&&this.push(new YR),e.rightToLeft!==void 0&&this.push(new We("w:rtl",e.rightToLeft)),e.emphasisMark&&this.push(new KR(e.emphasisMark.type)),e.language&&this.push(XR(e.language)),e.specVanish&&this.push(new We("w:specVanish",e.vanish)),e.math&&this.push(new We("w:oMath",e.math)),e.revision&&this.push(new ZR(e.revision))}push(e){this.root.push(e)}}class ZR extends Ge{constructor(e){super("w:rPrChange"),this.root.push(new HR({id:e.id,author:e.author,date:e.date})),this.addChildElement(new Ja(e))}}let oE=class extends Ge{constructor(e){var t;super("w:t"),typeof e=="string"?(this.root.push(new al({space:sl.PRESERVE})),this.root.push(e)):(this.root.push(new al({space:(t=e.space)!=null?t:sl.DEFAULT})),this.root.push(e.text))}};const th={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class rh extends Ge{constructor(e){if(super("w:r"),He(this,"properties"),this.properties=new Ja(e),this.root.push(this.properties),e.break)for(let t=0;t<e.break;t++)this.root.push(new QR);if(e.children)for(const t of e.children){if(typeof t=="string"){switch(t){case th.CURRENT:this.root.push(new Jf),this.root.push(new RR),this.root.push(new Zf),this.root.push(new eh);break;case th.TOTAL_PAGES:this.root.push(new Jf),this.root.push(new PR),this.root.push(new Zf),this.root.push(new eh);break;case th.TOTAL_PAGES_IN_SECTION:this.root.push(new Jf),this.root.push(new kR),this.root.push(new Zf),this.root.push(new eh);break;case th.CURRENT_SECTION:this.root.push(new Jf),this.root.push(new DR),this.root.push(new Zf),this.root.push(new eh);break;default:this.root.push(new oE(t));break}continue}this.root.push(t)}else e.text!==void 0&&this.root.push(new oE(e.text))}}class sa extends rh{constructor(e){super(typeof e=="string"?{text:e}:e)}}var M0={},lr={},H0,lE;function Eu(){if(lE)return H0;lE=1,H0=n;function n(e,t){if(!e)throw new Error(t||"Assertion failed")}return n.equal=function(t,r,i){if(t!=r)throw new Error(i||"Assertion failed: "+t+" != "+r)},H0}var uE;function VA(){if(uE)return lr;uE=1;var n=Eu(),e=Aa();lr.inherits=e;function t(x,Q){return(x.charCodeAt(Q)&64512)!==55296||Q<0||Q+1>=x.length?!1:(x.charCodeAt(Q+1)&64512)===56320}function r(x,Q){if(Array.isArray(x))return x.slice();if(!x)return[];var C=[];if(typeof x=="string")if(Q){if(Q==="hex")for(x=x.replace(/[^a-z0-9]+/ig,""),x.length%2!==0&&(x="0"+x),Y=0;Y<x.length;Y+=2)C.push(parseInt(x[Y]+x[Y+1],16))}else for(var z=0,Y=0;Y<x.length;Y++){var V=x.charCodeAt(Y);V<128?C[z++]=V:V<2048?(C[z++]=V>>6|192,C[z++]=V&63|128):t(x,Y)?(V=65536+((V&1023)<<10)+(x.charCodeAt(++Y)&1023),C[z++]=V>>18|240,C[z++]=V>>12&63|128,C[z++]=V>>6&63|128,C[z++]=V&63|128):(C[z++]=V>>12|224,C[z++]=V>>6&63|128,C[z++]=V&63|128)}else for(Y=0;Y<x.length;Y++)C[Y]=x[Y]|0;return C}lr.toArray=r;function i(x){for(var Q="",C=0;C<x.length;C++)Q+=a(x[C].toString(16));return Q}lr.toHex=i;function A(x){var Q=x>>>24|x>>>8&65280|x<<8&16711680|(x&255)<<24;return Q>>>0}lr.htonl=A;function s(x,Q){for(var C="",z=0;z<x.length;z++){var Y=x[z];Q==="little"&&(Y=A(Y)),C+=o(Y.toString(16))}return C}lr.toHex32=s;function a(x){return x.length===1?"0"+x:x}lr.zero2=a;function o(x){return x.length===7?"0"+x:x.length===6?"00"+x:x.length===5?"000"+x:x.length===4?"0000"+x:x.length===3?"00000"+x:x.length===2?"000000"+x:x.length===1?"0000000"+x:x}lr.zero8=o;function l(x,Q,C,z){var Y=C-Q;n(Y%4===0);for(var V=new Array(Y/4),ie=0,Ae=Q;ie<V.length;ie++,Ae+=4){var $;z==="big"?$=x[Ae]<<24|x[Ae+1]<<16|x[Ae+2]<<8|x[Ae+3]:$=x[Ae+3]<<24|x[Ae+2]<<16|x[Ae+1]<<8|x[Ae],V[ie]=$>>>0}return V}lr.join32=l;function u(x,Q){for(var C=new Array(x.length*4),z=0,Y=0;z<x.length;z++,Y+=4){var V=x[z];Q==="big"?(C[Y]=V>>>24,C[Y+1]=V>>>16&255,C[Y+2]=V>>>8&255,C[Y+3]=V&255):(C[Y+3]=V>>>24,C[Y+2]=V>>>16&255,C[Y+1]=V>>>8&255,C[Y]=V&255)}return C}lr.split32=u;function f(x,Q){return x>>>Q|x<<32-Q}lr.rotr32=f;function h(x,Q){return x<<Q|x>>>32-Q}lr.rotl32=h;function c(x,Q){return x+Q>>>0}lr.sum32=c;function m(x,Q,C){return x+Q+C>>>0}lr.sum32_3=m;function g(x,Q,C,z){return x+Q+C+z>>>0}lr.sum32_4=g;function w(x,Q,C,z,Y){return x+Q+C+z+Y>>>0}lr.sum32_5=w;function p(x,Q,C,z){var Y=x[Q],V=x[Q+1],ie=z+V>>>0,Ae=(ie<z?1:0)+C+Y;x[Q]=Ae>>>0,x[Q+1]=ie}lr.sum64=p;function v(x,Q,C,z){var Y=Q+z>>>0,V=(Y<Q?1:0)+x+C;return V>>>0}lr.sum64_hi=v;function b(x,Q,C,z){var Y=Q+z;return Y>>>0}lr.sum64_lo=b;function B(x,Q,C,z,Y,V,ie,Ae){var $=0,te=Q;te=te+z>>>0,$+=te<Q?1:0,te=te+V>>>0,$+=te<V?1:0,te=te+Ae>>>0,$+=te<Ae?1:0;var F=x+C+Y+ie+$;return F>>>0}lr.sum64_4_hi=B;function T(x,Q,C,z,Y,V,ie,Ae){var $=Q+z+V+Ae;return $>>>0}lr.sum64_4_lo=T;function M(x,Q,C,z,Y,V,ie,Ae,$,te){var F=0,H=Q;H=H+z>>>0,F+=H<Q?1:0,H=H+V>>>0,F+=H<V?1:0,H=H+Ae>>>0,F+=H<Ae?1:0,H=H+te>>>0,F+=H<te?1:0;var G=x+C+Y+ie+$+F;return G>>>0}lr.sum64_5_hi=M;function D(x,Q,C,z,Y,V,ie,Ae,$,te){var F=Q+z+V+Ae+te;return F>>>0}lr.sum64_5_lo=D;function j(x,Q,C){var z=Q<<32-C|x>>>C;return z>>>0}lr.rotr64_hi=j;function R(x,Q,C){var z=x<<32-C|Q>>>C;return z>>>0}lr.rotr64_lo=R;function ae(x,Q,C){return x>>>C}lr.shr64_hi=ae;function L(x,Q,C){var z=x<<32-C|Q>>>C;return z>>>0}return lr.shr64_lo=L,lr}var q0={},cE;function xu(){if(cE)return q0;cE=1;var n=VA(),e=Eu();function t(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return q0.BlockHash=t,t.prototype.update=function(i,A){if(i=n.toArray(i,A),this.pending?this.pending=this.pending.concat(i):this.pending=i,this.pendingTotal+=i.length,this.pending.length>=this._delta8){i=this.pending;var s=i.length%this._delta8;this.pending=i.slice(i.length-s,i.length),this.pending.length===0&&(this.pending=null),i=n.join32(i,0,i.length-s,this.endian);for(var a=0;a<i.length;a+=this._delta32)this._update(i,a,a+this._delta32)}return this},t.prototype.digest=function(i){return this.update(this._pad()),e(this.pending===null),this._digest(i)},t.prototype._pad=function(){var i=this.pendingTotal,A=this._delta8,s=A-(i+this.padLength)%A,a=new Array(s+this.padLength);a[0]=128;for(var o=1;o<s;o++)a[o]=0;if(i<<=3,this.endian==="big"){for(var l=8;l<this.padLength;l++)a[o++]=0;a[o++]=0,a[o++]=0,a[o++]=0,a[o++]=0,a[o++]=i>>>24&255,a[o++]=i>>>16&255,a[o++]=i>>>8&255,a[o++]=i&255}else for(a[o++]=i&255,a[o++]=i>>>8&255,a[o++]=i>>>16&255,a[o++]=i>>>24&255,a[o++]=0,a[o++]=0,a[o++]=0,a[o++]=0,l=8;l<this.padLength;l++)a[o++]=0;return a},q0}var Za={},GA={},fE;function hE(){if(fE)return GA;fE=1;var n=VA(),e=n.rotr32;function t(u,f,h,c){if(u===0)return r(f,h,c);if(u===1||u===3)return A(f,h,c);if(u===2)return i(f,h,c)}GA.ft_1=t;function r(u,f,h){return u&f^~u&h}GA.ch32=r;function i(u,f,h){return u&f^u&h^f&h}GA.maj32=i;function A(u,f,h){return u^f^h}GA.p32=A;function s(u){return e(u,2)^e(u,13)^e(u,22)}GA.s0_256=s;function a(u){return e(u,6)^e(u,11)^e(u,25)}GA.s1_256=a;function o(u){return e(u,7)^e(u,18)^u>>>3}GA.g0_256=o;function l(u){return e(u,17)^e(u,19)^u>>>10}return GA.g1_256=l,GA}var j0,dE;function eP(){if(dE)return j0;dE=1;var n=VA(),e=xu(),t=hE(),r=n.rotl32,i=n.sum32,A=n.sum32_5,s=t.ft_1,a=e.BlockHash,o=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;a.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return n.inherits(l,a),j0=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(f,h){for(var c=this.W,m=0;m<16;m++)c[m]=f[h+m];for(;m<c.length;m++)c[m]=r(c[m-3]^c[m-8]^c[m-14]^c[m-16],1);var g=this.h[0],w=this.h[1],p=this.h[2],v=this.h[3],b=this.h[4];for(m=0;m<c.length;m++){var B=~~(m/20),T=A(r(g,5),s(B,w,p,v),b,c[m],o[B]);b=v,v=p,p=r(w,30),w=g,g=T}this.h[0]=i(this.h[0],g),this.h[1]=i(this.h[1],w),this.h[2]=i(this.h[2],p),this.h[3]=i(this.h[3],v),this.h[4]=i(this.h[4],b)},l.prototype._digest=function(f){return f==="hex"?n.toHex32(this.h,"big"):n.split32(this.h,"big")},j0}var K0,pE;function gE(){if(pE)return K0;pE=1;var n=VA(),e=xu(),t=hE(),r=Eu(),i=n.sum32,A=n.sum32_4,s=n.sum32_5,a=t.ch32,o=t.maj32,l=t.s0_256,u=t.s1_256,f=t.g0_256,h=t.g1_256,c=e.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function g(){if(!(this instanceof g))return new g;c.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}return n.inherits(g,c),K0=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(p,v){for(var b=this.W,B=0;B<16;B++)b[B]=p[v+B];for(;B<b.length;B++)b[B]=A(h(b[B-2]),b[B-7],f(b[B-15]),b[B-16]);var T=this.h[0],M=this.h[1],D=this.h[2],j=this.h[3],R=this.h[4],ae=this.h[5],L=this.h[6],x=this.h[7];for(r(this.k.length===b.length),B=0;B<b.length;B++){var Q=s(x,u(R),a(R,ae,L),this.k[B],b[B]),C=i(l(T),o(T,M,D));x=L,L=ae,ae=R,R=i(j,Q),j=D,D=M,M=T,T=i(Q,C)}this.h[0]=i(this.h[0],T),this.h[1]=i(this.h[1],M),this.h[2]=i(this.h[2],D),this.h[3]=i(this.h[3],j),this.h[4]=i(this.h[4],R),this.h[5]=i(this.h[5],ae),this.h[6]=i(this.h[6],L),this.h[7]=i(this.h[7],x)},g.prototype._digest=function(p){return p==="hex"?n.toHex32(this.h,"big"):n.split32(this.h,"big")},K0}var V0,mE;function tP(){if(mE)return V0;mE=1;var n=VA(),e=gE();function t(){if(!(this instanceof t))return new t;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return n.inherits(t,e),V0=t,t.blockSize=512,t.outSize=224,t.hmacStrength=192,t.padLength=64,t.prototype._digest=function(i){return i==="hex"?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")},V0}var G0,vE;function wE(){if(vE)return G0;vE=1;var n=VA(),e=xu(),t=Eu(),r=n.rotr64_hi,i=n.rotr64_lo,A=n.shr64_hi,s=n.shr64_lo,a=n.sum64,o=n.sum64_hi,l=n.sum64_lo,u=n.sum64_4_hi,f=n.sum64_4_lo,h=n.sum64_5_hi,c=n.sum64_5_lo,m=e.BlockHash,g=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function w(){if(!(this instanceof w))return new w;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=g,this.W=new Array(160)}n.inherits(w,m),G0=w,w.blockSize=1024,w.outSize=512,w.hmacStrength=192,w.padLength=128,w.prototype._prepareBlock=function(C,z){for(var Y=this.W,V=0;V<32;V++)Y[V]=C[z+V];for(;V<Y.length;V+=2){var ie=L(Y[V-4],Y[V-3]),Ae=x(Y[V-4],Y[V-3]),$=Y[V-14],te=Y[V-13],F=R(Y[V-30],Y[V-29]),H=ae(Y[V-30],Y[V-29]),G=Y[V-32],X=Y[V-31];Y[V]=u(ie,Ae,$,te,F,H,G,X),Y[V+1]=f(ie,Ae,$,te,F,H,G,X)}},w.prototype._update=function(C,z){this._prepareBlock(C,z);var Y=this.W,V=this.h[0],ie=this.h[1],Ae=this.h[2],$=this.h[3],te=this.h[4],F=this.h[5],H=this.h[6],G=this.h[7],X=this.h[8],J=this.h[9],O=this.h[10],U=this.h[11],ee=this.h[12],re=this.h[13],W=this.h[14],Z=this.h[15];t(this.k.length===Y.length);for(var me=0;me<Y.length;me+=2){var k=W,pe=Z,I=D(X,J),E=j(X,J),S=p(X,J,O,U,ee),P=v(X,J,O,U,ee,re),oe=this.k[me],ge=this.k[me+1],ce=Y[me],Ee=Y[me+1],ye=h(k,pe,I,E,S,P,oe,ge,ce,Ee),Be=c(k,pe,I,E,S,P,oe,ge,ce,Ee);k=T(V,ie),pe=M(V,ie),I=b(V,ie,Ae,$,te),E=B(V,ie,Ae,$,te,F);var Ue=o(k,pe,I,E),Oe=l(k,pe,I,E);W=ee,Z=re,ee=O,re=U,O=X,U=J,X=o(H,G,ye,Be),J=l(G,G,ye,Be),H=te,G=F,te=Ae,F=$,Ae=V,$=ie,V=o(ye,Be,Ue,Oe),ie=l(ye,Be,Ue,Oe)}a(this.h,0,V,ie),a(this.h,2,Ae,$),a(this.h,4,te,F),a(this.h,6,H,G),a(this.h,8,X,J),a(this.h,10,O,U),a(this.h,12,ee,re),a(this.h,14,W,Z)},w.prototype._digest=function(C){return C==="hex"?n.toHex32(this.h,"big"):n.split32(this.h,"big")};function p(Q,C,z,Y,V){var ie=Q&z^~Q&V;return ie<0&&(ie+=4294967296),ie}function v(Q,C,z,Y,V,ie){var Ae=C&Y^~C&ie;return Ae<0&&(Ae+=4294967296),Ae}function b(Q,C,z,Y,V){var ie=Q&z^Q&V^z&V;return ie<0&&(ie+=4294967296),ie}function B(Q,C,z,Y,V,ie){var Ae=C&Y^C&ie^Y&ie;return Ae<0&&(Ae+=4294967296),Ae}function T(Q,C){var z=r(Q,C,28),Y=r(C,Q,2),V=r(C,Q,7),ie=z^Y^V;return ie<0&&(ie+=4294967296),ie}function M(Q,C){var z=i(Q,C,28),Y=i(C,Q,2),V=i(C,Q,7),ie=z^Y^V;return ie<0&&(ie+=4294967296),ie}function D(Q,C){var z=r(Q,C,14),Y=r(Q,C,18),V=r(C,Q,9),ie=z^Y^V;return ie<0&&(ie+=4294967296),ie}function j(Q,C){var z=i(Q,C,14),Y=i(Q,C,18),V=i(C,Q,9),ie=z^Y^V;return ie<0&&(ie+=4294967296),ie}function R(Q,C){var z=r(Q,C,1),Y=r(Q,C,8),V=A(Q,C,7),ie=z^Y^V;return ie<0&&(ie+=4294967296),ie}function ae(Q,C){var z=i(Q,C,1),Y=i(Q,C,8),V=s(Q,C,7),ie=z^Y^V;return ie<0&&(ie+=4294967296),ie}function L(Q,C){var z=r(Q,C,19),Y=r(C,Q,29),V=A(Q,C,6),ie=z^Y^V;return ie<0&&(ie+=4294967296),ie}function x(Q,C){var z=i(Q,C,19),Y=i(C,Q,29),V=s(Q,C,6),ie=z^Y^V;return ie<0&&(ie+=4294967296),ie}return G0}var z0,yE;function rP(){if(yE)return z0;yE=1;var n=VA(),e=wE();function t(){if(!(this instanceof t))return new t;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return n.inherits(t,e),z0=t,t.blockSize=1024,t.outSize=384,t.hmacStrength=192,t.padLength=128,t.prototype._digest=function(i){return i==="hex"?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")},z0}var bE;function nP(){return bE||(bE=1,Za.sha1=eP(),Za.sha224=tP(),Za.sha256=gE(),Za.sha384=rP(),Za.sha512=wE()),Za}var W0={},BE;function iP(){if(BE)return W0;BE=1;var n=VA(),e=xu(),t=n.rotl32,r=n.sum32,i=n.sum32_3,A=n.sum32_4,s=e.BlockHash;function a(){if(!(this instanceof a))return new a;s.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}n.inherits(a,s),W0.ripemd160=a,a.blockSize=512,a.outSize=160,a.hmacStrength=192,a.padLength=64,a.prototype._update=function(w,p){for(var v=this.h[0],b=this.h[1],B=this.h[2],T=this.h[3],M=this.h[4],D=v,j=b,R=B,ae=T,L=M,x=0;x<80;x++){var Q=r(t(A(v,o(x,b,B,T),w[f[x]+p],l(x)),c[x]),M);v=M,M=T,T=t(B,10),B=b,b=Q,Q=r(t(A(D,o(79-x,j,R,ae),w[h[x]+p],u(x)),m[x]),L),D=L,L=ae,ae=t(R,10),R=j,j=Q}Q=i(this.h[1],B,ae),this.h[1]=i(this.h[2],T,L),this.h[2]=i(this.h[3],M,D),this.h[3]=i(this.h[4],v,j),this.h[4]=i(this.h[0],b,R),this.h[0]=Q},a.prototype._digest=function(w){return w==="hex"?n.toHex32(this.h,"little"):n.split32(this.h,"little")};function o(g,w,p,v){return g<=15?w^p^v:g<=31?w&p|~w&v:g<=47?(w|~p)^v:g<=63?w&v|p&~v:w^(p|~v)}function l(g){return g<=15?0:g<=31?1518500249:g<=47?1859775393:g<=63?2400959708:2840853838}function u(g){return g<=15?1352829926:g<=31?1548603684:g<=47?1836072691:g<=63?2053994217:0}var f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],h=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return W0}var X0,CE;function AP(){if(CE)return X0;CE=1;var n=VA(),e=Eu();function t(r,i,A){if(!(this instanceof t))return new t(r,i,A);this.Hash=r,this.blockSize=r.blockSize/8,this.outSize=r.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(i,A))}return X0=t,t.prototype._init=function(i){i.length>this.blockSize&&(i=new this.Hash().update(i).digest()),e(i.length<=this.blockSize);for(var A=i.length;A<this.blockSize;A++)i.push(0);for(A=0;A<i.length;A++)i[A]^=54;for(this.inner=new this.Hash().update(i),A=0;A<i.length;A++)i[A]^=106;this.outer=new this.Hash().update(i)},t.prototype.update=function(i,A){return this.inner.update(i,A),this},t.prototype.digest=function(i){return this.outer.update(this.inner.digest()),this.outer.digest(i)},X0}var EE;function sP(){return EE||(EE=1,function(n){var e=n;e.utils=VA(),e.common=xu(),e.sha=nP(),e.ripemd=iP(),e.hmac=AP(),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160}(M0)),M0}sP();let aP="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",oP=(n,e=21)=>(t=e)=>{let r="",i=t|0;for(;i--;)r+=n[Math.random()*n.length|0];return r},lP=(n=21)=>{let e="",t=n|0;for(;t--;)e+=aP[Math.random()*64|0];return e};const dA=n=>Math.floor(n*72*20),Y0=(n=0)=>{let e=n;return()=>++e},uP=()=>Y0(),cP=()=>Y0(1),fP=()=>Y0(),hP=()=>lP().toLowerCase(),Su=n=>oP("1234567890abcdef",n)(),dP=()=>`${Su(8)}-${Su(4)}-${Su(4)}-${Su(4)}-${Su(12)}`;class pP extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{xmlns:"xmlns"})}}class gP extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const mP={EXTERNAL:"External"};class vP extends Ge{constructor(e,t,r,i){super("Relationship"),this.root.push(new gP({id:e,type:t,target:r,targetMode:i}))}}class eo extends Ge{constructor(){super("Relationships"),this.root.push(new pP({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,t,r,i){const A=new vP(`rId${e}`,t,r,i);return this.root.push(A),A}get RelationshipCount(){return this.root.length-1}}class wP extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class yP extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class bP extends Ge{constructor({id:e,initials:t,author:r,date:i=new Date,children:A}){super("w:comment"),this.root.push(new wP({id:e,initials:t,author:r,date:i.toISOString()}));for(const s of A)this.root.push(s)}}class BP extends Ge{constructor({children:e}){super("w:comments"),He(this,"relationships"),this.root.push(new yP({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const t of e)this.root.push(new bP(t));this.relationships=new eo}get Relationships(){return this.relationships}}class CP extends Ge{constructor(){super("w:pageBreakBefore")}}const $0={AUTO:"auto"};class EP extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule",beforeAutoSpacing:"w:beforeAutospacing",afterAutoSpacing:"w:afterAutospacing"})}}class xP extends Ge{constructor(e){super("w:spacing"),this.root.push(new EP(e))}}let nh=class extends Ge{constructor(e){super("w:pStyle"),this.root.push(new Jr({val:e}))}};class SP extends Ge{constructor(e){super("w:tabs");for(const t of e)this.root.push(new _P(t))}}const xE={LEFT:"left",RIGHT:"right"};class FP extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class _P extends Ge{constructor({type:e,position:t,leader:r}){super("w:tab"),this.root.push(new FP({val:e,pos:t,leader:r}))}}class J0 extends Ge{constructor(e,t){super("w:numPr"),this.root.push(new TP(t)),this.root.push(new IP(e))}}class TP extends Ge{constructor(e){if(super("w:ilvl"),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Jr({val:e}))}}class IP extends Ge{constructor(e){super("w:numId"),this.root.push(new Jr({val:typeof e=="string"?`{${e}}`:e}))}}class UP extends Ge{constructor(){super(...arguments),He(this,"fileChild",Symbol())}}class NP extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class LP extends Ge{constructor(e,t,r){super("w:hyperlink"),He(this,"linkId"),this.linkId=t;const i={history:1,anchor:r||void 0,id:r?void 0:`rId${this.linkId}`},A=new NP(i);this.root.push(A),e.forEach(s=>{this.root.push(s)})}}class OP extends Ge{constructor(e){super("w:externalHyperlink"),this.options=e}}class QP extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class RP extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{id:"w:id"})}}class PP{constructor(e){He(this,"bookmarkUniqueNumericId",fP()),He(this,"start"),He(this,"children"),He(this,"end");const t=this.bookmarkUniqueNumericId();this.start=new kP(e.id,t),this.children=e.children,this.end=new DP(t)}}class kP extends Ge{constructor(e,t){super("w:bookmarkStart");const r=new QP({name:e,id:t});this.root.push(r)}}class DP extends Ge{constructor(e){super("w:bookmarkEnd");const t=new RP({id:e});this.root.push(t)}}class MP extends Ge{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new Jr({val:e}))}}el(Gt({},{TOP:"top",CENTER:"center",BOTTOM:"bottom"}),{BOTH:"both"});class HP extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{verticalAlign:"w:val"})}}class qP extends Ge{constructor(e){super("w:vAlign"),this.root.push(new HP({verticalAlign:e}))}}class jP extends Ge{constructor({space:e,count:t,separate:r,equalWidth:i,children:A}){super("w:cols"),this.root.push(new jf({space:{key:"w:space",value:e===void 0?void 0:fA(e)},count:{key:"w:num",value:t===void 0?void 0:pi(t)},separate:{key:"w:sep",value:r},equalWidth:{key:"w:equalWidth",value:i}})),!i&&A&&A.forEach(s=>this.addChildElement(s))}}const KP=({type:n,linePitch:e,charSpace:t})=>new KA({name:"w:docGrid",attributes:{type:{key:"w:type",value:n},linePitch:{key:"w:linePitch",value:pi(e)},charSpace:{key:"w:charSpace",value:t?pi(t):void 0}}}),ol={DEFAULT:"default",FIRST:"first",EVEN:"even"};class VP extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const SE={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class Z0 extends Ge{constructor(e,t){super(e),this.root.push(new VP({type:t.type||ol.DEFAULT,id:`rId${t.id}`}))}}const GP=({countBy:n,start:e,restart:t,distance:r})=>new KA({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:n===void 0?void 0:pi(n)},start:{key:"w:start",value:e===void 0?void 0:pi(e)},restart:{key:"w:restart",value:t},distance:{key:"w:distance",value:r===void 0?void 0:fA(r)}}});class FE extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class zP extends qf{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new FE({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new FE({})),e.pageBorderTop&&this.root.push(new kr("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new kr("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new kr("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new kr("w:right",e.pageBorderRight))}}class WP extends Ge{constructor(e,t,r,i,A,s,a){super("w:pgMar"),this.root.push(new jf({top:{key:"w:top",value:Ya(e)},right:{key:"w:right",value:fA(t)},bottom:{key:"w:bottom",value:Ya(r)},left:{key:"w:left",value:fA(i)},header:{key:"w:header",value:fA(A)},footer:{key:"w:footer",value:fA(s)},gutter:{key:"w:gutter",value:fA(a)}}))}}class XP extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class YP extends Ge{constructor({start:e,formatType:t,separator:r}){super("w:pgNumType"),this.root.push(new XP({start:e===void 0?void 0:pi(e),formatType:t,separator:r}))}}const em={PORTRAIT:"portrait",LANDSCAPE:"landscape"},$P=({width:n,height:e,orientation:t,code:r})=>{const i=fA(n),A=fA(e);return new KA({name:"w:pgSz",attributes:{width:{key:"w:w",value:t===em.LANDSCAPE?A:i},height:{key:"w:h",value:t===em.LANDSCAPE?i:A},orientation:{key:"w:orient",value:t},code:{key:"w:code",value:r}}})};class JP extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{val:"w:val"})}}class ZP extends Ge{constructor(e){super("w:textDirection"),this.root.push(new JP({val:e}))}}class ek extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{val:"w:val"})}}class tk extends Ge{constructor(e){super("w:type"),this.root.push(new ek({val:e}))}}const to={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},tm={WIDTH:11906,HEIGHT:16838,ORIENTATION:em.PORTRAIT};class rk extends Ge{constructor({page:{size:{width:e=tm.WIDTH,height:t=tm.HEIGHT,orientation:r=tm.ORIENTATION}={},margin:{top:i=to.TOP,right:A=to.RIGHT,bottom:s=to.BOTTOM,left:a=to.LEFT,header:o=to.HEADER,footer:l=to.FOOTER,gutter:u=to.GUTTER}={},pageNumbers:f={},borders:h,textDirection:c}={},grid:{linePitch:m=360,charSpace:g,type:w}={},headerWrapperGroup:p={},footerWrapperGroup:v={},lineNumbers:b,titlePage:B,verticalAlign:T,column:M,type:D}={}){super("w:sectPr"),this.addHeaderFooterGroup(SE.HEADER,p),this.addHeaderFooterGroup(SE.FOOTER,v),D&&this.root.push(new tk(D)),this.root.push($P({width:e,height:t,orientation:r})),this.root.push(new WP(i,A,s,a,o,l,u)),h&&this.root.push(new zP(h)),b&&this.root.push(GP(b)),this.root.push(new YP(f)),M&&this.root.push(new jP(M)),T&&this.root.push(new qP(T)),B!==void 0&&this.root.push(new We("w:titlePg",B)),c&&this.root.push(new ZP(c)),this.root.push(KP({linePitch:m,charSpace:g,type:w}))}addHeaderFooterGroup(e,t){t.default&&this.root.push(new Z0(e,{type:ol.DEFAULT,id:t.default.View.ReferenceId})),t.first&&this.root.push(new Z0(e,{type:ol.FIRST,id:t.first.View.ReferenceId})),t.even&&this.root.push(new Z0(e,{type:ol.EVEN,id:t.even.View.ReferenceId}))}}class nk extends Ge{constructor(){super("w:body"),He(this,"sections",[])}addSection(e){const t=this.sections.pop();this.root.push(this.createSectionParagraph(t)),this.sections.push(new rk(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){const t=new aa({}),r=new ll({});return r.push(e),t.addChildElement(r),t}}const _E={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"};class ih extends xt{constructor(e,t){super(Gt({Ignorable:t},Object.fromEntries(e.map(r=>[r,_E[r]])))),He(this,"xmlKeys",Gt({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(_E).map(r=>[r,`xmlns:${r}`]))))}}class ik extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class Ak extends Ge{constructor(e){super("w:background"),this.root.push(new ik({color:e.color===void 0?void 0:il(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:tE(e.themeShade),themeTint:e.themeTint===void 0?void 0:tE(e.themeTint)}))}}let sk=class extends Ge{constructor(e){super("w:document"),He(this,"body"),this.root.push(new ih(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps","cx","cx1","cx2","cx3","cx4","cx5","cx6","cx7","cx8","aink","am3d","w16cex","w16cid","w16","w16sdtdh","w16se"],"w14 w15 wp14")),this.body=new nk,e.background&&this.root.push(new Ak(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}};class TE{constructor(e){He(this,"document"),He(this,"relationships"),this.document=new sk(e),this.relationships=new eo}get View(){return this.document}get Relationships(){return this.relationships}}class ak extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{val:"w:val"})}}class ok extends Ge{constructor(){super("w:wordWrap"),this.root.push(new ak({val:0}))}}const lk=n=>{var e,t;return new KA({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:n.anchorLock},dropCap:{key:"w:dropCap",value:n.dropCap},width:{key:"w:w",value:n.width},height:{key:"w:h",value:n.height},x:{key:"w:x",value:n.position?n.position.x:void 0},y:{key:"w:y",value:n.position?n.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:n.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:n.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(e=n.space)==null?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:(t=n.space)==null?void 0:t.vertical},rule:{key:"w:hRule",value:n.rule},alignmentX:{key:"w:xAlign",value:n.alignment?n.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:n.alignment?n.alignment.y:void 0},lines:{key:"w:lines",value:n.lines},wrap:{key:"w:wrap",value:n.wrap}}})};class ll extends qf{constructor(e){var t,r;if(super("w:pPr"),He(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new nh(e.heading)),e.bullet&&this.push(new nh("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new nh("ListParagraph"))),e.style&&this.push(new nh(e.style)),e.keepNext!==void 0&&this.push(new We("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new We("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new CP),e.frame&&this.push(lk(e.frame)),e.widowControl!==void 0&&this.push(new We("w:widowControl",e.widowControl)),e.bullet&&this.push(new J0(1,e.bullet.level)),e.numbering?(this.numberingReferences.push({reference:e.numbering.reference,instance:(t=e.numbering.instance)!=null?t:0}),this.push(new J0(`${e.numbering.reference}-${(r=e.numbering.instance)!=null?r:0}`,e.numbering.level))):e.numbering===!1&&this.push(new J0(0,0)),e.border&&this.push(new NR(e.border)),e.thematicBreak&&this.push(new LR),e.shading&&this.push(new iE(e.shading)),e.wordWrap&&this.push(new ok),e.overflowPunctuation&&this.push(new We("w:overflowPunct",e.overflowPunctuation));const i=[...e.rightTabStop!==void 0?[{type:xE.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:xE.LEFT,position:e.leftTabStop}]:[]];i.length>0&&this.push(new SP(i)),e.bidirectional!==void 0&&this.push(new We("w:bidi",e.bidirectional)),e.spacing&&this.push(new xP(e.spacing)),e.indent&&this.push(new OR(e.indent)),e.contextualSpacing!==void 0&&this.push(new We("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new IR(e.alignment)),e.outlineLevel!==void 0&&this.push(new MP(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new We("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new We("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new Ja(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof TE)for(const t of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(t.reference,t.instance);return super.prepForXml(e)}}class aa extends UP{constructor(e){if(super("w:p"),He(this,"properties"),typeof e=="string")return this.properties=new ll({}),this.root.push(this.properties),this.root.push(new sa(e)),this;if(this.properties=new ll(e),this.root.push(this.properties),e.text&&this.root.push(new sa(e.text)),e.children)for(const t of e.children){if(t instanceof PP){this.root.push(t.start);for(const r of t.children)this.root.push(r);this.root.push(t.end);continue}this.root.push(t)}}prepForXml(e){for(const t of this.root)if(t instanceof OP){const r=this.root.indexOf(t),i=new LP(t.options.children,hP());e.viewWrapper.Relationships.createRelationship(i.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.options.link,mP.EXTERNAL),this.root[r]=i}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}}const ul={style:R0.NONE,size:0,color:"auto"},cl={style:R0.SINGLE,size:4,color:"auto"};class uk extends Ge{constructor(e){super("w:tblBorders"),e.top?this.root.push(new kr("w:top",e.top)):this.root.push(new kr("w:top",cl)),e.left?this.root.push(new kr("w:left",e.left)):this.root.push(new kr("w:left",cl)),e.bottom?this.root.push(new kr("w:bottom",e.bottom)):this.root.push(new kr("w:bottom",cl)),e.right?this.root.push(new kr("w:right",e.right)):this.root.push(new kr("w:right",cl)),e.insideHorizontal?this.root.push(new kr("w:insideH",e.insideHorizontal)):this.root.push(new kr("w:insideH",cl)),e.insideVertical?this.root.push(new kr("w:insideV",e.insideVertical)):this.root.push(new kr("w:insideV",cl))}}He(uk,"NONE",{top:ul,bottom:ul,left:ul,right:ul,insideHorizontal:ul,insideVertical:ul});class ck extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class fk extends Ge{constructor(){super("Properties"),this.root.push(new ck({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class hk extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{xmlns:"xmlns"})}}class dk extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class ms extends Ge{constructor(e,t){super("Default"),this.root.push(new dk({contentType:e,extension:t}))}}class pk extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class qi extends Ge{constructor(e,t){super("Override"),this.root.push(new pk({contentType:e,partName:t}))}}class gk extends Ge{constructor(){super("Types"),this.root.push(new hk({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new ms("image/png","png")),this.root.push(new ms("image/jpeg","jpeg")),this.root.push(new ms("image/jpeg","jpg")),this.root.push(new ms("image/bmp","bmp")),this.root.push(new ms("image/gif","gif")),this.root.push(new ms("image/svg+xml","svg")),this.root.push(new ms("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new ms("application/xml","xml")),this.root.push(new ms("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new qi("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new qi("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new qi("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new qi("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new qi("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new qi("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new qi("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new qi("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new qi("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new qi("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new qi("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new qi("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}}class mk extends Ge{constructor(e){super("cp:coreProperties"),this.root.push(new ih(["cp","dc","dcterms","dcmitype","xsi"])),e.title&&this.root.push(new $a("dc:title",e.title)),e.subject&&this.root.push(new $a("dc:subject",e.subject)),e.creator&&this.root.push(new $a("dc:creator",e.creator)),e.keywords&&this.root.push(new $a("cp:keywords",e.keywords)),e.description&&this.root.push(new $a("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new $a("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new $a("cp:revision",String(e.revision))),this.root.push(new IE("dcterms:created")),this.root.push(new IE("dcterms:modified"))}}class vk extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{type:"xsi:type"})}}class IE extends Ge{constructor(e){super(e),this.root.push(new vk({type:"dcterms:W3CDTF"})),this.root.push(_R(new Date))}}class wk extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class yk extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class bk extends Ge{constructor(e,t){super("property"),this.root.push(new yk({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:t.name})),this.root.push(new Bk(t.value))}}class Bk extends Ge{constructor(e){super("vt:lpwstr"),this.root.push(e)}}class Ck extends Ge{constructor(e){super("Properties"),He(this,"nextId"),He(this,"properties",[]),this.root.push(new wk({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const t of e)this.addCustomProperty(t)}prepForXml(e){return this.properties.forEach(t=>this.root.push(t)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new bk(this.nextId++,e))}}const Ah=({id:n,fontKey:e,subsetted:t},r)=>new KA({name:r,attributes:Gt({id:{key:"r:id",value:n}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...t?[new We("w:subsetted",t)]:[]]}),Ek=({name:n,altName:e,panose1:t,charset:r,family:i,notTrueType:A,pitch:s,sig:a,embedRegular:o,embedBold:l,embedItalic:u,embedBoldItalic:f})=>new KA({name:"w:font",attributes:{name:{key:"w:name",value:n}},children:[...e?[Bu("w:altName",e)]:[],...t?[Bu("w:panose1",t)]:[],...r?[Bu("w:charset",r)]:[],Bu("w:family",i),...A?[new We("w:notTrueType",A)]:[],Bu("w:pitch",s),...a?[new KA({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:a.usb0},usb1:{key:"w:usb1",value:a.usb1},usb2:{key:"w:usb2",value:a.usb2},usb3:{key:"w:usb3",value:a.usb3},csb0:{key:"w:csb0",value:a.csb0},csb1:{key:"w:csb1",value:a.csb1}}})]:[],...o?[Ah(o,"w:embedRegular")]:[],...l?[Ah(l,"w:embedBold")]:[],...u?[Ah(u,"w:embedItalic")]:[],...f?[Ah(f,"w:embedBoldItalic")]:[]]}),xk=({name:n,index:e,fontKey:t,characterSet:r})=>Ek({name:n,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:r,family:"auto",pitch:"variable",embedRegular:{fontKey:t,id:`rId${e}`}}),Sk=n=>new KA({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:n.map((e,t)=>xk({name:e.name,index:t+1,fontKey:e.fontKey}))});class Fk{constructor(e){He(this,"fontTable"),He(this,"relationships"),He(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(t=>el(Gt({},t),{fontKey:dP()})),this.fontTable=Sk(this.fontOptionsWithKey),this.relationships=new eo;for(let t=0;t<e.length;t++)this.relationships.createRelationship(t+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${e[t].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}}class _k extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}}let Tk=class extends ZC{constructor(e,t){super("w:ftr",t),He(this,"refId"),this.refId=e,t||this.root.push(new _k({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}};class Ik{constructor(e,t,r){He(this,"footer"),He(this,"relationships"),this.media=e,this.footer=new Tk(t,r),this.relationships=new eo}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class Uk extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class Nk extends Ge{constructor(){super("w:footnoteRef")}}class Lk extends rh{constructor(){super({style:"FootnoteReference"}),this.root.push(new Nk)}}const UE={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class rm extends Ge{constructor(e){super("w:footnote"),this.root.push(new Uk({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){const r=e.children[t];t===0&&r.addRunToFront(new Lk),this.root.push(r)}}}class Ok extends Ge{constructor(){super("w:continuationSeparator")}}class Qk extends rh{constructor(){super({}),this.root.push(new Ok)}}class Rk extends Ge{constructor(){super("w:separator")}}class Pk extends rh{constructor(){super({}),this.root.push(new Rk)}}class kk extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class Dk extends Ge{constructor(){super("w:footnotes"),this.root.push(new kk({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const e=new rm({id:-1,type:UE.SEPERATOR,children:[new aa({spacing:{after:0,line:240,lineRule:$0.AUTO},children:[new Pk]})]});this.root.push(e);const t=new rm({id:0,type:UE.CONTINUATION_SEPERATOR,children:[new aa({spacing:{after:0,line:240,lineRule:$0.AUTO},children:[new Qk]})]});this.root.push(t)}createFootNote(e,t){const r=new rm({id:e,children:t});this.root.push(r)}}class Mk{constructor(){He(this,"footnotess"),He(this,"relationships"),this.footnotess=new Dk,this.relationships=new eo}get View(){return this.footnotess}get Relationships(){return this.relationships}}class Hk extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}}let qk=class extends ZC{constructor(e,t){super("w:hdr",t),He(this,"refId"),this.refId=e,t||this.root.push(new Hk({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}};class jk{constructor(e,t,r){He(this,"header"),He(this,"relationships"),this.media=e,this.header=new qk(t,r),this.relationships=new eo}add(e){return this.header.add(e),this}addChildElement(e){this.header.addChildElement(e)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}}class Kk{constructor(){He(this,"map"),this.map=new Map}addImage(e,t){this.map.set(e,t)}get Array(){return Array.from(this.map.values())}}const vs={BULLET:"bullet"};class Vk extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}}class Gk extends Ge{constructor(e){super("w:numFmt"),this.root.push(new Jr({val:e}))}}class zk extends Ge{constructor(e){super("w:lvlText"),this.root.push(new Jr({val:e}))}}class Wk extends Ge{constructor(e){super("w:lvlJc"),this.root.push(new Jr({val:e}))}}class Xk extends Ge{constructor(e){super("w:suff"),this.root.push(new Jr({val:e}))}}class Yk extends Ge{constructor(){super("w:isLgl")}}class $k extends Ge{constructor({level:e,format:t,text:r,alignment:i=hA.START,start:A=1,style:s,suffix:a,isLegalNumberingStyle:o}){if(super("w:lvl"),He(this,"paragraphProperties"),He(this,"runProperties"),this.root.push(new Cu("w:start",pi(A))),t&&this.root.push(new Gk(t)),a&&this.root.push(new Xk(a)),o&&this.root.push(new Yk),r&&this.root.push(new zk(r)),this.root.push(new Wk(i)),this.paragraphProperties=new ll(s&&s.paragraph),this.runProperties=new Ja(s&&s.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Vk({ilvl:pi(e),tentative:1}))}}class Jk extends $k{}class Zk extends Ge{constructor(e){super("w:multiLevelType"),this.root.push(new Jr({val:e}))}}class e7 extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class NE extends Ge{constructor(e,t){super("w:abstractNum"),He(this,"id"),this.root.push(new e7({abstractNumId:pi(e),restartNumberingAfterBreak:0})),this.root.push(new Zk("hybridMultilevel")),this.id=e;for(const r of t)this.root.push(new Jk(r))}}class t7 extends Ge{constructor(e){super("w:abstractNumId"),this.root.push(new Jr({val:e}))}}class r7 extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{numId:"w:numId"})}}class LE extends Ge{constructor(e){if(super("w:num"),He(this,"numId"),He(this,"reference"),He(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new r7({numId:pi(e.numId)})),this.root.push(new t7(pi(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const t of e.overrideLevels)this.root.push(new i7(t.num,t.start))}}class n7 extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{ilvl:"w:ilvl"})}}class i7 extends Ge{constructor(e,t){super("w:lvlOverride"),this.root.push(new n7({ilvl:e})),t!==void 0&&this.root.push(new s7(t))}}class A7 extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{val:"w:val"})}}class s7 extends Ge{constructor(e){super("w:startOverride"),this.root.push(new A7({val:e}))}}class a7 extends Ge{constructor(e){super("w:numbering"),He(this,"abstractNumberingMap",new Map),He(this,"concreteNumberingMap",new Map),He(this,"referenceConfigMap",new Map),He(this,"abstractNumUniqueNumericId",uP()),He(this,"concreteNumUniqueNumericId",cP()),this.root.push(new ih(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));const t=new NE(this.abstractNumUniqueNumericId(),[{level:0,format:vs.BULLET,text:"●",alignment:hA.LEFT,style:{paragraph:{indent:{left:dA(.5),hanging:dA(.25)}}}},{level:1,format:vs.BULLET,text:"○",alignment:hA.LEFT,style:{paragraph:{indent:{left:dA(1),hanging:dA(.25)}}}},{level:2,format:vs.BULLET,text:"■",alignment:hA.LEFT,style:{paragraph:{indent:{left:2160,hanging:dA(.25)}}}},{level:3,format:vs.BULLET,text:"●",alignment:hA.LEFT,style:{paragraph:{indent:{left:2880,hanging:dA(.25)}}}},{level:4,format:vs.BULLET,text:"○",alignment:hA.LEFT,style:{paragraph:{indent:{left:3600,hanging:dA(.25)}}}},{level:5,format:vs.BULLET,text:"■",alignment:hA.LEFT,style:{paragraph:{indent:{left:4320,hanging:dA(.25)}}}},{level:6,format:vs.BULLET,text:"●",alignment:hA.LEFT,style:{paragraph:{indent:{left:5040,hanging:dA(.25)}}}},{level:7,format:vs.BULLET,text:"●",alignment:hA.LEFT,style:{paragraph:{indent:{left:5760,hanging:dA(.25)}}}},{level:8,format:vs.BULLET,text:"●",alignment:hA.LEFT,style:{paragraph:{indent:{left:6480,hanging:dA(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new LE({numId:1,abstractNumId:t.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",t);for(const r of e.config)this.abstractNumberingMap.set(r.reference,new NE(this.abstractNumUniqueNumericId(),r.levels)),this.referenceConfigMap.set(r.reference,r.levels)}prepForXml(e){for(const t of this.abstractNumberingMap.values())this.root.push(t);for(const t of this.concreteNumberingMap.values())this.root.push(t);return super.prepForXml(e)}createConcreteNumberingInstance(e,t){const r=this.abstractNumberingMap.get(e);if(!r)return;const i=`${e}-${t}`;if(this.concreteNumberingMap.has(i))return;const A=this.referenceConfigMap.get(e),s=A&&A[0].start,a={numId:this.concreteNumUniqueNumericId(),abstractNumId:r.id,reference:e,instance:t,overrideLevels:[s&&Number.isInteger(s)?{num:0,start:s}:{num:0,start:1}]};this.concreteNumberingMap.set(i,new LE(a))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class o7 extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class l7 extends Ge{constructor(e){super("w:compatSetting"),this.root.push(new o7({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class u7 extends Ge{constructor(e){super("w:compat"),e.version&&this.root.push(new l7(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new We("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new We("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new We("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new We("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new We("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new We("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new We("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new We("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new We("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new We("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new We("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new We("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new We("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new We("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new We("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new We("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new We("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new We("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new We("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new We("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new We("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new We("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new We("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new We("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new We("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new We("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new We("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new We("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new We("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new We("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new We("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new We("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new We("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new We("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new We("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new We("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new We("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new We("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new We("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new We("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new We("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new We("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new We("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new We("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new We("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new We("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new We("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new We("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new We("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new We("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new We("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new We("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new We("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new We("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new We("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new We("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new We("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new We("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new We("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new We("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new We("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new We("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new We("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new We("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new We("w:cachedColBalance",e.cachedColumnBalance))}}class c7 extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class f7 extends Ge{constructor(e){var t,r,i,A,s,a,o,l;super("w:settings"),this.root.push(new c7({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new We("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new We("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new We("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new We("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new Cu("w:defaultTabStop",e.defaultTabStop)),((t=e.hyphenation)==null?void 0:t.autoHyphenation)!==void 0&&this.root.push(new We("w:autoHyphenation",e.hyphenation.autoHyphenation)),((r=e.hyphenation)==null?void 0:r.hyphenationZone)!==void 0&&this.root.push(new Cu("w:hyphenationZone",e.hyphenation.hyphenationZone)),((i=e.hyphenation)==null?void 0:i.consecutiveHyphenLimit)!==void 0&&this.root.push(new Cu("w:consecutiveHyphenLimit",e.hyphenation.consecutiveHyphenLimit)),((A=e.hyphenation)==null?void 0:A.doNotHyphenateCaps)!==void 0&&this.root.push(new We("w:doNotHyphenateCaps",e.hyphenation.doNotHyphenateCaps)),this.root.push(new u7(el(Gt({},(s=e.compatibility)!=null?s:{}),{version:(l=(o=(a=e.compatibility)==null?void 0:a.version)!=null?o:e.compatibilityModeVersion)!=null?l:15})))}}class OE extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{val:"w:val"})}}class h7 extends Ge{constructor(e){super("w:name"),this.root.push(new OE({val:e}))}}class d7 extends Ge{constructor(e){super("w:uiPriority"),this.root.push(new OE({val:pi(e)}))}}class p7 extends xt{constructor(){super(...arguments),He(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class QE extends Ge{constructor(e,t){super("w:style"),this.root.push(new p7(e)),t.name&&this.root.push(new h7(t.name)),t.basedOn&&this.root.push(new Al("w:basedOn",t.basedOn)),t.next&&this.root.push(new Al("w:next",t.next)),t.link&&this.root.push(new Al("w:link",t.link)),t.uiPriority!==void 0&&this.root.push(new d7(t.uiPriority)),t.semiHidden!==void 0&&this.root.push(new We("w:semiHidden",t.semiHidden)),t.unhideWhenUsed!==void 0&&this.root.push(new We("w:unhideWhenUsed",t.unhideWhenUsed)),t.quickFormat!==void 0&&this.root.push(new We("w:qFormat",t.quickFormat))}}class sh extends QE{constructor(e){super({type:"paragraph",styleId:e.id},e),He(this,"paragraphProperties"),He(this,"runProperties"),this.paragraphProperties=new ll(e.paragraph),this.runProperties=new Ja(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class ah extends QE{constructor(e){super({type:"character",styleId:e.id},Gt({uiPriority:99,unhideWhenUsed:!0},e)),He(this,"runProperties"),this.runProperties=new Ja(e.run),this.root.push(this.runProperties)}}class oa extends sh{constructor(e){super(Gt({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}}class g7 extends oa{constructor(e){super(Gt({id:"Title",name:"Title"},e))}}class m7 extends oa{constructor(e){super(Gt({id:"Heading1",name:"Heading 1"},e))}}class v7 extends oa{constructor(e){super(Gt({id:"Heading2",name:"Heading 2"},e))}}class w7 extends oa{constructor(e){super(Gt({id:"Heading3",name:"Heading 3"},e))}}class y7 extends oa{constructor(e){super(Gt({id:"Heading4",name:"Heading 4"},e))}}class b7 extends oa{constructor(e){super(Gt({id:"Heading5",name:"Heading 5"},e))}}class B7 extends oa{constructor(e){super(Gt({id:"Heading6",name:"Heading 6"},e))}}class C7 extends oa{constructor(e){super(Gt({id:"Strong",name:"Strong"},e))}}class E7 extends sh{constructor(e){super(Gt({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}}class x7 extends sh{constructor(e){super(Gt({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:$0.AUTO}},run:{size:20}},e))}}class S7 extends ah{constructor(e){super(Gt({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}}class F7 extends ah{constructor(e){super(Gt({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}}class _7 extends ah{constructor(e){super(Gt({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:aE.SINGLE}}},e))}}class nm extends Ge{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const t of e.importedStyles)this.root.push(t);if(e.paragraphStyles)for(const t of e.paragraphStyles)this.root.push(new sh(t));if(e.characterStyles)for(const t of e.characterStyles)this.root.push(new ah(t))}}class T7 extends Ge{constructor(e){super("w:pPrDefault"),this.root.push(new ll(e))}}class I7 extends Ge{constructor(e){super("w:rPrDefault"),this.root.push(new Ja(e))}}class U7 extends Ge{constructor(e){super("w:docDefaults"),He(this,"runPropertiesDefaults"),He(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new I7(e.run),this.paragraphPropertiesDefaults=new T7(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class N7{newInstance(e){const t=JC.xml2js(e,{compact:!1});let r;for(const s of t.elements||[])s.name==="w:styles"&&(r=s);if(r===void 0)throw new Error("can not find styles element");const i=r.elements||[];return new nm({initialStyles:new ER(r.attributes),importedStyles:i.map(s=>O0(s))})}}class RE{newInstance(e={}){var t;return{initialStyles:new ih(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:[new U7((t=e.document)!=null?t:{}),new g7(Gt({run:{size:56}},e.title)),new m7(Gt({run:{color:"2E74B5",size:32}},e.heading1)),new v7(Gt({run:{color:"2E74B5",size:26}},e.heading2)),new w7(Gt({run:{color:"1F4D78",size:24}},e.heading3)),new y7(Gt({run:{color:"2E74B5",italics:!0}},e.heading4)),new b7(Gt({run:{color:"2E74B5"}},e.heading5)),new B7(Gt({run:{color:"1F4D78"}},e.heading6)),new C7(Gt({run:{bold:!0}},e.strong)),new E7(e.listParagraph||{}),new _7(e.hyperlink||{}),new S7(e.footnoteReference||{}),new x7(e.footnoteText||{}),new F7(e.footnoteTextChar||{})]}}}class L7{constructor(e){He(this,"currentRelationshipId",1),He(this,"documentWrapper"),He(this,"headers",[]),He(this,"footers",[]),He(this,"coreProperties"),He(this,"numbering"),He(this,"media"),He(this,"fileRelationships"),He(this,"footnotesWrapper"),He(this,"settings"),He(this,"contentTypes"),He(this,"customProperties"),He(this,"appProperties"),He(this,"styles"),He(this,"comments"),He(this,"fontWrapper");var t,r,i,A,s,a,o,l,u,f,h,c;if(this.coreProperties=new mk(el(Gt({},e),{creator:(t=e.creator)!=null?t:"Un-named",revision:(r=e.revision)!=null?r:1,lastModifiedBy:(i=e.lastModifiedBy)!=null?i:"Un-named"})),this.numbering=new a7(e.numbering?e.numbering:{config:[]}),this.comments=new BP((A=e.comments)!=null?A:{children:[]}),this.fileRelationships=new eo,this.customProperties=new Ck((s=e.customProperties)!=null?s:[]),this.appProperties=new fk,this.footnotesWrapper=new Mk,this.contentTypes=new gk,this.documentWrapper=new TE({background:e.background}),this.settings=new f7({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:(a=e.features)==null?void 0:a.trackRevisions,updateFields:(o=e.features)==null?void 0:o.updateFields,defaultTabStop:e.defaultTabStop,hyphenation:{autoHyphenation:(l=e.hyphenation)==null?void 0:l.autoHyphenation,hyphenationZone:(u=e.hyphenation)==null?void 0:u.hyphenationZone,consecutiveHyphenLimit:(f=e.hyphenation)==null?void 0:f.consecutiveHyphenLimit,doNotHyphenateCaps:(h=e.hyphenation)==null?void 0:h.doNotHyphenateCaps}}),this.media=new Kk,e.externalStyles!==void 0){const m=new N7;this.styles=m.newInstance(e.externalStyles)}else if(e.styles){const g=new RE().newInstance(e.styles.default);this.styles=new nm(Gt(Gt({},g),e.styles))}else{const m=new RE;this.styles=new nm(m.newInstance())}this.addDefaultRelationships();for(const m of e.sections)this.addSection(m);if(e.footnotes)for(const m in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(m),e.footnotes[m].children);this.fontWrapper=new Fk((c=e.fonts)!=null?c:[])}addSection({headers:e={},footers:t={},children:r,properties:i}){this.documentWrapper.View.Body.addSection(el(Gt({},i),{headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,first:e.first?this.createHeader(e.first):void 0,even:e.even?this.createHeader(e.even):void 0},footerWrapperGroup:{default:t.default?this.createFooter(t.default):void 0,first:t.first?this.createFooter(t.first):void 0,even:t.even?this.createFooter(t.even):void 0}}));for(const A of r)this.documentWrapper.View.add(A)}createHeader(e){const t=new jk(this.media,this.currentRelationshipId++);for(const r of e.options.children)t.add(r);return this.addHeaderToDocument(t),t}createFooter(e){const t=new Ik(this.media,this.currentRelationshipId++);for(const r of e.options.children)t.add(r);return this.addFooterToDocument(t),t}addHeaderToDocument(e,t=ol.DEFAULT){this.headers.push({header:e,type:t}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(e,t=ol.DEFAULT){this.footers.push({footer:e,type:t}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(e=>e.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}var O7=E0();function oh(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var im={exports:{}},PE;function Q7(){return PE||(PE=1,function(n,e){(function(t){n.exports=t()})(function(){return function t(r,i,A){function s(l,u){if(!i[l]){if(!r[l]){var f=typeof oh=="function"&&oh;if(!u&&f)return f(l,!0);if(a)return a(l,!0);var h=new Error("Cannot find module '"+l+"'");throw h.code="MODULE_NOT_FOUND",h}var c=i[l]={exports:{}};r[l][0].call(c.exports,function(m){var g=r[l][1][m];return s(g||m)},c,c.exports,t,r,i,A)}return i[l].exports}for(var a=typeof oh=="function"&&oh,o=0;o<A.length;o++)s(A[o]);return s}({1:[function(t,r,i){var A=t("./utils"),s=t("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(o){for(var l,u,f,h,c,m,g,w=[],p=0,v=o.length,b=v,B=A.getTypeOf(o)!=="string";p<o.length;)b=v-p,f=B?(l=o[p++],u=p<v?o[p++]:0,p<v?o[p++]:0):(l=o.charCodeAt(p++),u=p<v?o.charCodeAt(p++):0,p<v?o.charCodeAt(p++):0),h=l>>2,c=(3&l)<<4|u>>4,m=1<b?(15&u)<<2|f>>6:64,g=2<b?63&f:64,w.push(a.charAt(h)+a.charAt(c)+a.charAt(m)+a.charAt(g));return w.join("")},i.decode=function(o){var l,u,f,h,c,m,g=0,w=0,p="data:";if(o.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");var v,b=3*(o=o.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(o.charAt(o.length-1)===a.charAt(64)&&b--,o.charAt(o.length-2)===a.charAt(64)&&b--,b%1!=0)throw new Error("Invalid base64 input, bad content length.");for(v=s.uint8array?new Uint8Array(0|b):new Array(0|b);g<o.length;)l=a.indexOf(o.charAt(g++))<<2|(h=a.indexOf(o.charAt(g++)))>>4,u=(15&h)<<4|(c=a.indexOf(o.charAt(g++)))>>2,f=(3&c)<<6|(m=a.indexOf(o.charAt(g++))),v[w++]=l,c!==64&&(v[w++]=u),m!==64&&(v[w++]=f);return v}},{"./support":30,"./utils":32}],2:[function(t,r,i){var A=t("./external"),s=t("./stream/DataWorker"),a=t("./stream/Crc32Probe"),o=t("./stream/DataLengthProbe");function l(u,f,h,c,m){this.compressedSize=u,this.uncompressedSize=f,this.crc32=h,this.compression=c,this.compressedContent=m}l.prototype={getContentWorker:function(){var u=new s(A.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),f=this;return u.on("end",function(){if(this.streamInfo.data_length!==f.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new s(A.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},l.createWorkerFrom=function(u,f,h){return u.pipe(new a).pipe(new o("uncompressedSize")).pipe(f.compressWorker(h)).pipe(new o("compressedSize")).withStreamInfo("compression",f)},r.exports=l},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,r,i){var A=t("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new A("STORE compression")},uncompressWorker:function(){return new A("STORE decompression")}},i.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,r,i){var A=t("./utils"),s=function(){for(var a,o=[],l=0;l<256;l++){a=l;for(var u=0;u<8;u++)a=1&a?3988292384^a>>>1:a>>>1;o[l]=a}return o}();r.exports=function(a,o){return a!==void 0&&a.length?A.getTypeOf(a)!=="string"?function(l,u,f,h){var c=s,m=h+f;l^=-1;for(var g=h;g<m;g++)l=l>>>8^c[255&(l^u[g])];return-1^l}(0|o,a,a.length,0):function(l,u,f,h){var c=s,m=h+f;l^=-1;for(var g=h;g<m;g++)l=l>>>8^c[255&(l^u.charCodeAt(g))];return-1^l}(0|o,a,a.length,0):0}},{"./utils":32}],5:[function(t,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(t,r,i){var A=null;A=typeof Promise<"u"?Promise:t("lie"),r.exports={Promise:A}},{lie:37}],7:[function(t,r,i){var A=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",s=t("pako"),a=t("./utils"),o=t("./stream/GenericWorker"),l=A?"uint8array":"array";function u(f,h){o.call(this,"FlateWorker/"+f),this._pako=null,this._pakoAction=f,this._pakoOptions=h,this.meta={}}i.magic="\b\0",a.inherits(u,o),u.prototype.processChunk=function(f){this.meta=f.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(l,f.data),!1)},u.prototype.flush=function(){o.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var f=this;this._pako.onData=function(h){f.push({data:h,meta:f.meta})}},i.compressWorker=function(f){return new u("Deflate",f)},i.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,r,i){function A(c,m){var g,w="";for(g=0;g<m;g++)w+=String.fromCharCode(255&c),c>>>=8;return w}function s(c,m,g,w,p,v){var b,B,T=c.file,M=c.compression,D=v!==l.utf8encode,j=a.transformTo("string",v(T.name)),R=a.transformTo("string",l.utf8encode(T.name)),ae=T.comment,L=a.transformTo("string",v(ae)),x=a.transformTo("string",l.utf8encode(ae)),Q=R.length!==T.name.length,C=x.length!==ae.length,z="",Y="",V="",ie=T.dir,Ae=T.date,$={crc32:0,compressedSize:0,uncompressedSize:0};m&&!g||($.crc32=c.crc32,$.compressedSize=c.compressedSize,$.uncompressedSize=c.uncompressedSize);var te=0;m&&(te|=8),D||!Q&&!C||(te|=2048);var F=0,H=0;ie&&(F|=16),p==="UNIX"?(H=798,F|=function(X,J){var O=X;return X||(O=J?16893:33204),(65535&O)<<16}(T.unixPermissions,ie)):(H=20,F|=function(X){return 63&(X||0)}(T.dosPermissions)),b=Ae.getUTCHours(),b<<=6,b|=Ae.getUTCMinutes(),b<<=5,b|=Ae.getUTCSeconds()/2,B=Ae.getUTCFullYear()-1980,B<<=4,B|=Ae.getUTCMonth()+1,B<<=5,B|=Ae.getUTCDate(),Q&&(Y=A(1,1)+A(u(j),4)+R,z+="up"+A(Y.length,2)+Y),C&&(V=A(1,1)+A(u(L),4)+x,z+="uc"+A(V.length,2)+V);var G="";return G+=`
\0`,G+=A(te,2),G+=M.magic,G+=A(b,2),G+=A(B,2),G+=A($.crc32,4),G+=A($.compressedSize,4),G+=A($.uncompressedSize,4),G+=A(j.length,2),G+=A(z.length,2),{fileRecord:f.LOCAL_FILE_HEADER+G+j+z,dirRecord:f.CENTRAL_FILE_HEADER+A(H,2)+G+A(L.length,2)+"\0\0\0\0"+A(F,4)+A(w,4)+j+z+L}}var a=t("../utils"),o=t("../stream/GenericWorker"),l=t("../utf8"),u=t("../crc32"),f=t("../signature");function h(c,m,g,w){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=m,this.zipPlatform=g,this.encodeFileName=w,this.streamFiles=c,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(h,o),h.prototype.push=function(c){var m=c.meta.percent||0,g=this.entriesCount,w=this._sources.length;this.accumulate?this.contentBuffer.push(c):(this.bytesWritten+=c.data.length,o.prototype.push.call(this,{data:c.data,meta:{currentFile:this.currentFile,percent:g?(m+100*(g-w-1))/g:100}}))},h.prototype.openedSource=function(c){this.currentSourceOffset=this.bytesWritten,this.currentFile=c.file.name;var m=this.streamFiles&&!c.file.dir;if(m){var g=s(c,m,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(c){this.accumulate=!1;var m=this.streamFiles&&!c.file.dir,g=s(c,m,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),m)this.push({data:function(w){return f.DATA_DESCRIPTOR+A(w.crc32,4)+A(w.compressedSize,4)+A(w.uncompressedSize,4)}(c),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var c=this.bytesWritten,m=0;m<this.dirRecords.length;m++)this.push({data:this.dirRecords[m],meta:{percent:100}});var g=this.bytesWritten-c,w=function(p,v,b,B,T){var M=a.transformTo("string",T(B));return f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+A(p,2)+A(p,2)+A(v,4)+A(b,4)+A(M.length,2)+M}(this.dirRecords.length,g,c,this.zipComment,this.encodeFileName);this.push({data:w,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(c){this._sources.push(c);var m=this;return c.on("data",function(g){m.processChunk(g)}),c.on("end",function(){m.closedSource(m.previous.streamInfo),m._sources.length?m.prepareNextSource():m.end()}),c.on("error",function(g){m.error(g)}),this},h.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(c){var m=this._sources;if(!o.prototype.error.call(this,c))return!1;for(var g=0;g<m.length;g++)try{m[g].error(c)}catch{}return!0},h.prototype.lock=function(){o.prototype.lock.call(this);for(var c=this._sources,m=0;m<c.length;m++)c[m].lock()},r.exports=h},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,r,i){var A=t("../compressions"),s=t("./ZipFileWorker");i.generateWorker=function(a,o,l){var u=new s(o.streamFiles,l,o.platform,o.encodeFileName),f=0;try{a.forEach(function(h,c){f++;var m=function(v,b){var B=v||b,T=A[B];if(!T)throw new Error(B+" is not a valid compression method !");return T}(c.options.compression,o.compression),g=c.options.compressionOptions||o.compressionOptions||{},w=c.dir,p=c.date;c._compressWorker(m,g).withStreamInfo("file",{name:h,dir:w,date:p,comment:c.comment||"",unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions}).pipe(u)}),u.entriesCount=f}catch(h){u.error(h)}return u}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,r,i){function A(){if(!(this instanceof A))return new A;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var s=new A;for(var a in this)typeof this[a]!="function"&&(s[a]=this[a]);return s}}(A.prototype=t("./object")).loadAsync=t("./load"),A.support=t("./support"),A.defaults=t("./defaults"),A.version="3.10.1",A.loadAsync=function(s,a){return new A().loadAsync(s,a)},A.external=t("./external"),r.exports=A},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,r,i){var A=t("./utils"),s=t("./external"),a=t("./utf8"),o=t("./zipEntries"),l=t("./stream/Crc32Probe"),u=t("./nodejsUtils");function f(h){return new s.Promise(function(c,m){var g=h.decompressed.getContentWorker().pipe(new l);g.on("error",function(w){m(w)}).on("end",function(){g.streamInfo.crc32!==h.decompressed.crc32?m(new Error("Corrupted zip : CRC32 mismatch")):c()}).resume()})}r.exports=function(h,c){var m=this;return c=A.extend(c||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),u.isNode&&u.isStream(h)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):A.prepareContent("the loaded zip file",h,!0,c.optimizedBinaryString,c.base64).then(function(g){var w=new o(c);return w.load(g),w}).then(function(g){var w=[s.Promise.resolve(g)],p=g.files;if(c.checkCRC32)for(var v=0;v<p.length;v++)w.push(f(p[v]));return s.Promise.all(w)}).then(function(g){for(var w=g.shift(),p=w.files,v=0;v<p.length;v++){var b=p[v],B=b.fileNameStr,T=A.resolve(b.fileNameStr);m.file(T,b.decompressed,{binary:!0,optimizedBinaryString:!0,date:b.date,dir:b.dir,comment:b.fileCommentStr.length?b.fileCommentStr:null,unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions,createFolders:c.createFolders}),b.dir||(m.file(T).unsafeOriginalName=B)}return w.zipComment.length&&(m.comment=w.zipComment),m})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,r,i){var A=t("../utils"),s=t("../stream/GenericWorker");function a(o,l){s.call(this,"Nodejs stream input adapter for "+o),this._upstreamEnded=!1,this._bindStream(l)}A.inherits(a,s),a.prototype._bindStream=function(o){var l=this;(this._stream=o).pause(),o.on("data",function(u){l.push({data:u,meta:{percent:0}})}).on("error",function(u){l.isPaused?this.generatedError=u:l.error(u)}).on("end",function(){l.isPaused?l._upstreamEnded=!0:l.end()})},a.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,r,i){var A=t("readable-stream").Readable;function s(a,o,l){A.call(this,o),this._helper=a;var u=this;a.on("data",function(f,h){u.push(f)||u._helper.pause(),l&&l(h)}).on("error",function(f){u.emit("error",f)}).on("end",function(){u.push(null)})}t("../utils").inherits(s,A),s.prototype._read=function(){this._helper.resume()},r.exports=s},{"../utils":32,"readable-stream":16}],14:[function(t,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(A,s){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(A,s);if(typeof A=="number")throw new Error('The "data" argument must not be a number');return new Buffer(A,s)},allocBuffer:function(A){if(Buffer.alloc)return Buffer.alloc(A);var s=new Buffer(A);return s.fill(0),s},isBuffer:function(A){return Buffer.isBuffer(A)},isStream:function(A){return A&&typeof A.on=="function"&&typeof A.pause=="function"&&typeof A.resume=="function"}}},{}],15:[function(t,r,i){function A(T,M,D){var j,R=a.getTypeOf(M),ae=a.extend(D||{},u);ae.date=ae.date||new Date,ae.compression!==null&&(ae.compression=ae.compression.toUpperCase()),typeof ae.unixPermissions=="string"&&(ae.unixPermissions=parseInt(ae.unixPermissions,8)),ae.unixPermissions&&16384&ae.unixPermissions&&(ae.dir=!0),ae.dosPermissions&&16&ae.dosPermissions&&(ae.dir=!0),ae.dir&&(T=p(T)),ae.createFolders&&(j=w(T))&&v.call(this,j,!0);var L=R==="string"&&ae.binary===!1&&ae.base64===!1;D&&D.binary!==void 0||(ae.binary=!L),(M instanceof f&&M.uncompressedSize===0||ae.dir||!M||M.length===0)&&(ae.base64=!1,ae.binary=!0,M="",ae.compression="STORE",R="string");var x=null;x=M instanceof f||M instanceof o?M:m.isNode&&m.isStream(M)?new g(T,M):a.prepareContent(T,M,ae.binary,ae.optimizedBinaryString,ae.base64);var Q=new h(T,x,ae);this.files[T]=Q}var s=t("./utf8"),a=t("./utils"),o=t("./stream/GenericWorker"),l=t("./stream/StreamHelper"),u=t("./defaults"),f=t("./compressedObject"),h=t("./zipObject"),c=t("./generate"),m=t("./nodejsUtils"),g=t("./nodejs/NodejsStreamInputAdapter"),w=function(T){T.slice(-1)==="/"&&(T=T.substring(0,T.length-1));var M=T.lastIndexOf("/");return 0<M?T.substring(0,M):""},p=function(T){return T.slice(-1)!=="/"&&(T+="/"),T},v=function(T,M){return M=M!==void 0?M:u.createFolders,T=p(T),this.files[T]||A.call(this,T,null,{dir:!0,createFolders:M}),this.files[T]};function b(T){return Object.prototype.toString.call(T)==="[object RegExp]"}var B={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(T){var M,D,j;for(M in this.files)j=this.files[M],(D=M.slice(this.root.length,M.length))&&M.slice(0,this.root.length)===this.root&&T(D,j)},filter:function(T){var M=[];return this.forEach(function(D,j){T(D,j)&&M.push(j)}),M},file:function(T,M,D){if(arguments.length!==1)return T=this.root+T,A.call(this,T,M,D),this;if(b(T)){var j=T;return this.filter(function(ae,L){return!L.dir&&j.test(ae)})}var R=this.files[this.root+T];return R&&!R.dir?R:null},folder:function(T){if(!T)return this;if(b(T))return this.filter(function(R,ae){return ae.dir&&T.test(R)});var M=this.root+T,D=v.call(this,M),j=this.clone();return j.root=D.name,j},remove:function(T){T=this.root+T;var M=this.files[T];if(M||(T.slice(-1)!=="/"&&(T+="/"),M=this.files[T]),M&&!M.dir)delete this.files[T];else for(var D=this.filter(function(R,ae){return ae.name.slice(0,T.length)===T}),j=0;j<D.length;j++)delete this.files[D[j].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(T){var M,D={};try{if((D=a.extend(T||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=D.type.toLowerCase(),D.compression=D.compression.toUpperCase(),D.type==="binarystring"&&(D.type="string"),!D.type)throw new Error("No output type specified.");a.checkSupport(D.type),D.platform!=="darwin"&&D.platform!=="freebsd"&&D.platform!=="linux"&&D.platform!=="sunos"||(D.platform="UNIX"),D.platform==="win32"&&(D.platform="DOS");var j=D.comment||this.comment||"";M=c.generateWorker(this,D,j)}catch(R){(M=new o("error")).error(R)}return new l(M,D.type||"string",D.mimeType)},generateAsync:function(T,M){return this.generateInternalStream(T).accumulate(M)},generateNodeStream:function(T,M){return(T=T||{}).type||(T.type="nodebuffer"),this.generateInternalStream(T).toNodejsStream(M)}};r.exports=B},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,r,i){r.exports=t("stream")},{stream:void 0}],17:[function(t,r,i){var A=t("./DataReader");function s(a){A.call(this,a);for(var o=0;o<this.data.length;o++)a[o]=255&a[o]}t("../utils").inherits(s,A),s.prototype.byteAt=function(a){return this.data[this.zero+a]},s.prototype.lastIndexOfSignature=function(a){for(var o=a.charCodeAt(0),l=a.charCodeAt(1),u=a.charCodeAt(2),f=a.charCodeAt(3),h=this.length-4;0<=h;--h)if(this.data[h]===o&&this.data[h+1]===l&&this.data[h+2]===u&&this.data[h+3]===f)return h-this.zero;return-1},s.prototype.readAndCheckSignature=function(a){var o=a.charCodeAt(0),l=a.charCodeAt(1),u=a.charCodeAt(2),f=a.charCodeAt(3),h=this.readData(4);return o===h[0]&&l===h[1]&&u===h[2]&&f===h[3]},s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var o=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,o},r.exports=s},{"../utils":32,"./DataReader":18}],18:[function(t,r,i){var A=t("../utils");function s(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var o,l=0;for(this.checkOffset(a),o=this.index+a-1;o>=this.index;o--)l=(l<<8)+this.byteAt(o);return this.index+=a,l},readString:function(a){return A.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},r.exports=s},{"../utils":32}],19:[function(t,r,i){var A=t("./Uint8ArrayReader");function s(a){A.call(this,a)}t("../utils").inherits(s,A),s.prototype.readData=function(a){this.checkOffset(a);var o=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,o},r.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,r,i){var A=t("./DataReader");function s(a){A.call(this,a)}t("../utils").inherits(s,A),s.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},s.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},s.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},s.prototype.readData=function(a){this.checkOffset(a);var o=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,o},r.exports=s},{"../utils":32,"./DataReader":18}],21:[function(t,r,i){var A=t("./ArrayReader");function s(a){A.call(this,a)}t("../utils").inherits(s,A),s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var o=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,o},r.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(t,r,i){var A=t("../utils"),s=t("../support"),a=t("./ArrayReader"),o=t("./StringReader"),l=t("./NodeBufferReader"),u=t("./Uint8ArrayReader");r.exports=function(f){var h=A.getTypeOf(f);return A.checkSupport(h),h!=="string"||s.uint8array?h==="nodebuffer"?new l(f):s.uint8array?new u(A.transformTo("uint8array",f)):new a(A.transformTo("array",f)):new o(f)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,r,i){var A=t("./GenericWorker"),s=t("../utils");function a(o){A.call(this,"ConvertWorker to "+o),this.destType=o}s.inherits(a,A),a.prototype.processChunk=function(o){this.push({data:s.transformTo(this.destType,o.data),meta:o.meta})},r.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(t,r,i){var A=t("./GenericWorker"),s=t("../crc32");function a(){A.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(a,A),a.prototype.processChunk=function(o){this.streamInfo.crc32=s(o.data,this.streamInfo.crc32||0),this.push(o)},r.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,r,i){var A=t("../utils"),s=t("./GenericWorker");function a(o){s.call(this,"DataLengthProbe for "+o),this.propName=o,this.withStreamInfo(o,0)}A.inherits(a,s),a.prototype.processChunk=function(o){if(o){var l=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=l+o.data.length}s.prototype.processChunk.call(this,o)},r.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(t,r,i){var A=t("../utils"),s=t("./GenericWorker");function a(o){s.call(this,"DataWorker");var l=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,o.then(function(u){l.dataIsReady=!0,l.data=u,l.max=u&&u.length||0,l.type=A.getTypeOf(u),l.isPaused||l._tickAndRepeat()},function(u){l.error(u)})}A.inherits(a,s),a.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,A.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(A.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var o=null,l=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":o=this.data.substring(this.index,l);break;case"uint8array":o=this.data.subarray(this.index,l);break;case"array":case"nodebuffer":o=this.data.slice(this.index,l)}return this.index=l,this.push({data:o,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(t,r,i){function A(s){this.name=s||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}A.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,a){return this._listeners[s].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,a){if(this._listeners[s])for(var o=0;o<this._listeners[s].length;o++)this._listeners[s][o].call(this,a)},pipe:function(s){return s.registerPrevious(this)},registerPrevious:function(s){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=s.streamInfo,this.mergeStreamInfo(),this.previous=s;var a=this;return s.on("data",function(o){a.processChunk(o)}),s.on("end",function(){a.end()}),s.on("error",function(o){a.error(o)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var s=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),s=!0),this.previous&&this.previous.resume(),!s},flush:function(){},processChunk:function(s){this.push(s)},withStreamInfo:function(s,a){return this.extraStreamInfo[s]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var s in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,s)&&(this.streamInfo[s]=this.extraStreamInfo[s])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var s="Worker "+this.name;return this.previous?this.previous+" -> "+s:s}},r.exports=A},{}],29:[function(t,r,i){var A=t("../utils"),s=t("./ConvertWorker"),a=t("./GenericWorker"),o=t("../base64"),l=t("../support"),u=t("../external"),f=null;if(l.nodestream)try{f=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(m,g){return new u.Promise(function(w,p){var v=[],b=m._internalType,B=m._outputType,T=m._mimeType;m.on("data",function(M,D){v.push(M),g&&g(D)}).on("error",function(M){v=[],p(M)}).on("end",function(){try{var M=function(D,j,R){switch(D){case"blob":return A.newBlob(A.transformTo("arraybuffer",j),R);case"base64":return o.encode(j);default:return A.transformTo(D,j)}}(B,function(D,j){var R,ae=0,L=null,x=0;for(R=0;R<j.length;R++)x+=j[R].length;switch(D){case"string":return j.join("");case"array":return Array.prototype.concat.apply([],j);case"uint8array":for(L=new Uint8Array(x),R=0;R<j.length;R++)L.set(j[R],ae),ae+=j[R].length;return L;case"nodebuffer":return Buffer.concat(j);default:throw new Error("concat : unsupported type '"+D+"'")}}(b,v),T);w(M)}catch(D){p(D)}v=[]}).resume()})}function c(m,g,w){var p=g;switch(g){case"blob":case"arraybuffer":p="uint8array";break;case"base64":p="string"}try{this._internalType=p,this._outputType=g,this._mimeType=w,A.checkSupport(p),this._worker=m.pipe(new s(p)),m.lock()}catch(v){this._worker=new a("error"),this._worker.error(v)}}c.prototype={accumulate:function(m){return h(this,m)},on:function(m,g){var w=this;return m==="data"?this._worker.on(m,function(p){g.call(w,p.data,p.meta)}):this._worker.on(m,function(){A.delay(g,arguments,w)}),this},resume:function(){return A.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(m){if(A.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new f(this,{objectMode:this._outputType!=="nodebuffer"},m)}},r.exports=c},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,r,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var A=new ArrayBuffer(0);try{i.blob=new Blob([A],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(A),i.blob=s.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(t,r,i){for(var A=t("./utils"),s=t("./support"),a=t("./nodejsUtils"),o=t("./stream/GenericWorker"),l=new Array(256),u=0;u<256;u++)l[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;l[254]=l[254]=1;function f(){o.call(this,"utf-8 decode"),this.leftOver=null}function h(){o.call(this,"utf-8 encode")}i.utf8encode=function(c){return s.nodebuffer?a.newBufferFrom(c,"utf-8"):function(m){var g,w,p,v,b,B=m.length,T=0;for(v=0;v<B;v++)(64512&(w=m.charCodeAt(v)))==55296&&v+1<B&&(64512&(p=m.charCodeAt(v+1)))==56320&&(w=65536+(w-55296<<10)+(p-56320),v++),T+=w<128?1:w<2048?2:w<65536?3:4;for(g=s.uint8array?new Uint8Array(T):new Array(T),v=b=0;b<T;v++)(64512&(w=m.charCodeAt(v)))==55296&&v+1<B&&(64512&(p=m.charCodeAt(v+1)))==56320&&(w=65536+(w-55296<<10)+(p-56320),v++),w<128?g[b++]=w:(w<2048?g[b++]=192|w>>>6:(w<65536?g[b++]=224|w>>>12:(g[b++]=240|w>>>18,g[b++]=128|w>>>12&63),g[b++]=128|w>>>6&63),g[b++]=128|63&w);return g}(c)},i.utf8decode=function(c){return s.nodebuffer?A.transformTo("nodebuffer",c).toString("utf-8"):function(m){var g,w,p,v,b=m.length,B=new Array(2*b);for(g=w=0;g<b;)if((p=m[g++])<128)B[w++]=p;else if(4<(v=l[p]))B[w++]=65533,g+=v-1;else{for(p&=v===2?31:v===3?15:7;1<v&&g<b;)p=p<<6|63&m[g++],v--;1<v?B[w++]=65533:p<65536?B[w++]=p:(p-=65536,B[w++]=55296|p>>10&1023,B[w++]=56320|1023&p)}return B.length!==w&&(B.subarray?B=B.subarray(0,w):B.length=w),A.applyFromCharCode(B)}(c=A.transformTo(s.uint8array?"uint8array":"array",c))},A.inherits(f,o),f.prototype.processChunk=function(c){var m=A.transformTo(s.uint8array?"uint8array":"array",c.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var g=m;(m=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),m.set(g,this.leftOver.length)}else m=this.leftOver.concat(m);this.leftOver=null}var w=function(v,b){var B;for((b=b||v.length)>v.length&&(b=v.length),B=b-1;0<=B&&(192&v[B])==128;)B--;return B<0||B===0?b:B+l[v[B]]>b?B:b}(m),p=m;w!==m.length&&(s.uint8array?(p=m.subarray(0,w),this.leftOver=m.subarray(w,m.length)):(p=m.slice(0,w),this.leftOver=m.slice(w,m.length))),this.push({data:i.utf8decode(p),meta:c.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=f,A.inherits(h,o),h.prototype.processChunk=function(c){this.push({data:i.utf8encode(c.data),meta:c.meta})},i.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,r,i){var A=t("./support"),s=t("./base64"),a=t("./nodejsUtils"),o=t("./external");function l(g){return g}function u(g,w){for(var p=0;p<g.length;++p)w[p]=255&g.charCodeAt(p);return w}t("setimmediate"),i.newBlob=function(g,w){i.checkSupport("blob");try{return new Blob([g],{type:w})}catch{try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return p.append(g),p.getBlob(w)}catch{throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(g,w,p){var v=[],b=0,B=g.length;if(B<=p)return String.fromCharCode.apply(null,g);for(;b<B;)w==="array"||w==="nodebuffer"?v.push(String.fromCharCode.apply(null,g.slice(b,Math.min(b+p,B)))):v.push(String.fromCharCode.apply(null,g.subarray(b,Math.min(b+p,B)))),b+=p;return v.join("")},stringifyByChar:function(g){for(var w="",p=0;p<g.length;p++)w+=String.fromCharCode(g[p]);return w},applyCanBeUsed:{uint8array:function(){try{return A.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return A.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}}()}};function h(g){var w=65536,p=i.getTypeOf(g),v=!0;if(p==="uint8array"?v=f.applyCanBeUsed.uint8array:p==="nodebuffer"&&(v=f.applyCanBeUsed.nodebuffer),v)for(;1<w;)try{return f.stringifyByChunk(g,p,w)}catch{w=Math.floor(w/2)}return f.stringifyByChar(g)}function c(g,w){for(var p=0;p<g.length;p++)w[p]=g[p];return w}i.applyFromCharCode=h;var m={};m.string={string:l,array:function(g){return u(g,new Array(g.length))},arraybuffer:function(g){return m.string.uint8array(g).buffer},uint8array:function(g){return u(g,new Uint8Array(g.length))},nodebuffer:function(g){return u(g,a.allocBuffer(g.length))}},m.array={string:h,array:l,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return a.newBufferFrom(g)}},m.arraybuffer={string:function(g){return h(new Uint8Array(g))},array:function(g){return c(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:l,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return a.newBufferFrom(new Uint8Array(g))}},m.uint8array={string:h,array:function(g){return c(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:l,nodebuffer:function(g){return a.newBufferFrom(g)}},m.nodebuffer={string:h,array:function(g){return c(g,new Array(g.length))},arraybuffer:function(g){return m.nodebuffer.uint8array(g).buffer},uint8array:function(g){return c(g,new Uint8Array(g.length))},nodebuffer:l},i.transformTo=function(g,w){if(w=w||"",!g)return w;i.checkSupport(g);var p=i.getTypeOf(w);return m[p][g](w)},i.resolve=function(g){for(var w=g.split("/"),p=[],v=0;v<w.length;v++){var b=w[v];b==="."||b===""&&v!==0&&v!==w.length-1||(b===".."?p.pop():p.push(b))}return p.join("/")},i.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":A.nodebuffer&&a.isBuffer(g)?"nodebuffer":A.uint8array&&g instanceof Uint8Array?"uint8array":A.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(g){if(!A[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(g){var w,p,v="";for(p=0;p<(g||"").length;p++)v+="\\x"+((w=g.charCodeAt(p))<16?"0":"")+w.toString(16).toUpperCase();return v},i.delay=function(g,w,p){setImmediate(function(){g.apply(p||null,w||[])})},i.inherits=function(g,w){function p(){}p.prototype=w.prototype,g.prototype=new p},i.extend=function(){var g,w,p={};for(g=0;g<arguments.length;g++)for(w in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],w)&&p[w]===void 0&&(p[w]=arguments[g][w]);return p},i.prepareContent=function(g,w,p,v,b){return o.Promise.resolve(w).then(function(B){return A.blob&&(B instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(B))!==-1)&&typeof FileReader<"u"?new o.Promise(function(T,M){var D=new FileReader;D.onload=function(j){T(j.target.result)},D.onerror=function(j){M(j.target.error)},D.readAsArrayBuffer(B)}):B}).then(function(B){var T=i.getTypeOf(B);return T?(T==="arraybuffer"?B=i.transformTo("uint8array",B):T==="string"&&(b?B=s.decode(B):p&&v!==!0&&(B=function(M){return u(M,A.uint8array?new Uint8Array(M.length):new Array(M.length))}(B))),B):o.Promise.reject(new Error("Can't read the data of '"+g+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,r,i){var A=t("./reader/readerFor"),s=t("./utils"),a=t("./signature"),o=t("./zipEntry"),l=t("./support");function u(f){this.files=[],this.loadOptions=f}u.prototype={checkSignature:function(f){if(!this.reader.readAndCheckSignature(f)){this.reader.index-=4;var h=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(h)+", expected "+s.pretty(f)+")")}},isSignature:function(f,h){var c=this.reader.index;this.reader.setIndex(f);var m=this.reader.readString(4)===h;return this.reader.setIndex(c),m},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var f=this.reader.readData(this.zipCommentLength),h=l.uint8array?"uint8array":"array",c=s.transformTo(h,f);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var f,h,c,m=this.zip64EndOfCentralSize-44;0<m;)f=this.reader.readInt(2),h=this.reader.readInt(4),c=this.reader.readData(h),this.zip64ExtensibleData[f]={id:f,length:h,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var f,h;for(f=0;f<this.files.length;f++)h=this.files[f],this.reader.setIndex(h.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),h.readLocalPart(this.reader),h.handleUTF8(),h.processAttributes()},readCentralDir:function(){var f;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(f=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(f);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var f=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(f<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(f);var h=f;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(f=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(f),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var m=h-c;if(0<m)this.isSignature(h,a.CENTRAL_FILE_HEADER)||(this.reader.zero=m);else if(m<0)throw new Error("Corrupted zip: missing "+Math.abs(m)+" bytes.")},prepareReader:function(f){this.reader=A(f)},load:function(f){this.prepareReader(f),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,r,i){var A=t("./reader/readerFor"),s=t("./utils"),a=t("./compressedObject"),o=t("./crc32"),l=t("./utf8"),u=t("./compressions"),f=t("./support");function h(c,m){this.options=c,this.loadOptions=m}h.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(c){var m,g;if(c.skip(22),this.fileNameLength=c.readInt(2),g=c.readInt(2),this.fileName=c.readData(this.fileNameLength),c.skip(g),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((m=function(w){for(var p in u)if(Object.prototype.hasOwnProperty.call(u,p)&&u[p].magic===w)return u[p];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,m,c.readData(this.compressedSize))},readCentralPart:function(c){this.versionMadeBy=c.readInt(2),c.skip(2),this.bitFlag=c.readInt(2),this.compressionMethod=c.readString(2),this.date=c.readDate(),this.crc32=c.readInt(4),this.compressedSize=c.readInt(4),this.uncompressedSize=c.readInt(4);var m=c.readInt(2);if(this.extraFieldsLength=c.readInt(2),this.fileCommentLength=c.readInt(2),this.diskNumberStart=c.readInt(2),this.internalFileAttributes=c.readInt(2),this.externalFileAttributes=c.readInt(4),this.localHeaderOffset=c.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");c.skip(m),this.readExtraFields(c),this.parseZIP64ExtraField(c),this.fileComment=c.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var c=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),c==0&&(this.dosPermissions=63&this.externalFileAttributes),c==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var c=A(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=c.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=c.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=c.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=c.readInt(4))}},readExtraFields:function(c){var m,g,w,p=c.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});c.index+4<p;)m=c.readInt(2),g=c.readInt(2),w=c.readData(g),this.extraFields[m]={id:m,length:g,value:w};c.setIndex(p)},handleUTF8:function(){var c=f.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=l.utf8decode(this.fileName),this.fileCommentStr=l.utf8decode(this.fileComment);else{var m=this.findExtraFieldUnicodePath();if(m!==null)this.fileNameStr=m;else{var g=s.transformTo(c,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var w=this.findExtraFieldUnicodeComment();if(w!==null)this.fileCommentStr=w;else{var p=s.transformTo(c,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(p)}}},findExtraFieldUnicodePath:function(){var c=this.extraFields[28789];if(c){var m=A(c.value);return m.readInt(1)!==1||o(this.fileName)!==m.readInt(4)?null:l.utf8decode(m.readData(c.length-5))}return null},findExtraFieldUnicodeComment:function(){var c=this.extraFields[25461];if(c){var m=A(c.value);return m.readInt(1)!==1||o(this.fileComment)!==m.readInt(4)?null:l.utf8decode(m.readData(c.length-5))}return null}},r.exports=h},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,r,i){function A(m,g,w){this.name=m,this.dir=w.dir,this.date=w.date,this.comment=w.comment,this.unixPermissions=w.unixPermissions,this.dosPermissions=w.dosPermissions,this._data=g,this._dataBinary=w.binary,this.options={compression:w.compression,compressionOptions:w.compressionOptions}}var s=t("./stream/StreamHelper"),a=t("./stream/DataWorker"),o=t("./utf8"),l=t("./compressedObject"),u=t("./stream/GenericWorker");A.prototype={internalStream:function(m){var g=null,w="string";try{if(!m)throw new Error("No output type specified.");var p=(w=m.toLowerCase())==="string"||w==="text";w!=="binarystring"&&w!=="text"||(w="string"),g=this._decompressWorker();var v=!this._dataBinary;v&&!p&&(g=g.pipe(new o.Utf8EncodeWorker)),!v&&p&&(g=g.pipe(new o.Utf8DecodeWorker))}catch(b){(g=new u("error")).error(b)}return new s(g,w,"")},async:function(m,g){return this.internalStream(m).accumulate(g)},nodeStream:function(m,g){return this.internalStream(m||"nodebuffer").toNodejsStream(g)},_compressWorker:function(m,g){if(this._data instanceof l&&this._data.compression.magic===m.magic)return this._data.getCompressedWorker();var w=this._decompressWorker();return this._dataBinary||(w=w.pipe(new o.Utf8EncodeWorker)),l.createWorkerFrom(w,m,g)},_decompressWorker:function(){return this._data instanceof l?this._data.getContentWorker():this._data instanceof u?this._data:new a(this._data)}};for(var f=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<f.length;c++)A.prototype[f[c]]=h;r.exports=A},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,r,i){(function(A){var s,a,o=A.MutationObserver||A.WebKitMutationObserver;if(o){var l=0,u=new o(m),f=A.document.createTextNode("");u.observe(f,{characterData:!0}),s=function(){f.data=l=++l%2}}else if(A.setImmediate||A.MessageChannel===void 0)s="document"in A&&"onreadystatechange"in A.document.createElement("script")?function(){var g=A.document.createElement("script");g.onreadystatechange=function(){m(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},A.document.documentElement.appendChild(g)}:function(){setTimeout(m,0)};else{var h=new A.MessageChannel;h.port1.onmessage=m,s=function(){h.port2.postMessage(0)}}var c=[];function m(){var g,w;a=!0;for(var p=c.length;p;){for(w=c,c=[],g=-1;++g<p;)w[g]();p=c.length}a=!1}r.exports=function(g){c.push(g)!==1||a||s()}}).call(this,typeof HA<"u"?HA:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(t,r,i){var A=t("immediate");function s(){}var a={},o=["REJECTED"],l=["FULFILLED"],u=["PENDING"];function f(p){if(typeof p!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,p!==s&&g(this,p)}function h(p,v,b){this.promise=p,typeof v=="function"&&(this.onFulfilled=v,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function c(p,v,b){A(function(){var B;try{B=v(b)}catch(T){return a.reject(p,T)}B===p?a.reject(p,new TypeError("Cannot resolve promise with itself")):a.resolve(p,B)})}function m(p){var v=p&&p.then;if(p&&(typeof p=="object"||typeof p=="function")&&typeof v=="function")return function(){v.apply(p,arguments)}}function g(p,v){var b=!1;function B(D){b||(b=!0,a.reject(p,D))}function T(D){b||(b=!0,a.resolve(p,D))}var M=w(function(){v(T,B)});M.status==="error"&&B(M.value)}function w(p,v){var b={};try{b.value=p(v),b.status="success"}catch(B){b.status="error",b.value=B}return b}(r.exports=f).prototype.finally=function(p){if(typeof p!="function")return this;var v=this.constructor;return this.then(function(b){return v.resolve(p()).then(function(){return b})},function(b){return v.resolve(p()).then(function(){throw b})})},f.prototype.catch=function(p){return this.then(null,p)},f.prototype.then=function(p,v){if(typeof p!="function"&&this.state===l||typeof v!="function"&&this.state===o)return this;var b=new this.constructor(s);return this.state!==u?c(b,this.state===l?p:v,this.outcome):this.queue.push(new h(b,p,v)),b},h.prototype.callFulfilled=function(p){a.resolve(this.promise,p)},h.prototype.otherCallFulfilled=function(p){c(this.promise,this.onFulfilled,p)},h.prototype.callRejected=function(p){a.reject(this.promise,p)},h.prototype.otherCallRejected=function(p){c(this.promise,this.onRejected,p)},a.resolve=function(p,v){var b=w(m,v);if(b.status==="error")return a.reject(p,b.value);var B=b.value;if(B)g(p,B);else{p.state=l,p.outcome=v;for(var T=-1,M=p.queue.length;++T<M;)p.queue[T].callFulfilled(v)}return p},a.reject=function(p,v){p.state=o,p.outcome=v;for(var b=-1,B=p.queue.length;++b<B;)p.queue[b].callRejected(v);return p},f.resolve=function(p){return p instanceof this?p:a.resolve(new this(s),p)},f.reject=function(p){var v=new this(s);return a.reject(v,p)},f.all=function(p){var v=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=p.length,B=!1;if(!b)return this.resolve([]);for(var T=new Array(b),M=0,D=-1,j=new this(s);++D<b;)R(p[D],D);return j;function R(ae,L){v.resolve(ae).then(function(x){T[L]=x,++M!==b||B||(B=!0,a.resolve(j,T))},function(x){B||(B=!0,a.reject(j,x))})}},f.race=function(p){var v=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=p.length,B=!1;if(!b)return this.resolve([]);for(var T=-1,M=new this(s);++T<b;)D=p[T],v.resolve(D).then(function(j){B||(B=!0,a.resolve(M,j))},function(j){B||(B=!0,a.reject(M,j))});var D;return M}},{immediate:36}],38:[function(t,r,i){var A={};(0,t("./lib/utils/common").assign)(A,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),r.exports=A},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,r,i){var A=t("./zlib/deflate"),s=t("./utils/common"),a=t("./utils/strings"),o=t("./zlib/messages"),l=t("./zlib/zstream"),u=Object.prototype.toString,f=0,h=-1,c=0,m=8;function g(p){if(!(this instanceof g))return new g(p);this.options=s.assign({level:h,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},p||{});var v=this.options;v.raw&&0<v.windowBits?v.windowBits=-v.windowBits:v.gzip&&0<v.windowBits&&v.windowBits<16&&(v.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var b=A.deflateInit2(this.strm,v.level,v.method,v.windowBits,v.memLevel,v.strategy);if(b!==f)throw new Error(o[b]);if(v.header&&A.deflateSetHeader(this.strm,v.header),v.dictionary){var B;if(B=typeof v.dictionary=="string"?a.string2buf(v.dictionary):u.call(v.dictionary)==="[object ArrayBuffer]"?new Uint8Array(v.dictionary):v.dictionary,(b=A.deflateSetDictionary(this.strm,B))!==f)throw new Error(o[b]);this._dict_set=!0}}function w(p,v){var b=new g(v);if(b.push(p,!0),b.err)throw b.msg||o[b.err];return b.result}g.prototype.push=function(p,v){var b,B,T=this.strm,M=this.options.chunkSize;if(this.ended)return!1;B=v===~~v?v:v===!0?4:0,typeof p=="string"?T.input=a.string2buf(p):u.call(p)==="[object ArrayBuffer]"?T.input=new Uint8Array(p):T.input=p,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new s.Buf8(M),T.next_out=0,T.avail_out=M),(b=A.deflate(T,B))!==1&&b!==f)return this.onEnd(b),!(this.ended=!0);T.avail_out!==0&&(T.avail_in!==0||B!==4&&B!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(s.shrinkBuf(T.output,T.next_out))):this.onData(s.shrinkBuf(T.output,T.next_out)))}while((0<T.avail_in||T.avail_out===0)&&b!==1);return B===4?(b=A.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===f):B!==2||(this.onEnd(f),!(T.avail_out=0))},g.prototype.onData=function(p){this.chunks.push(p)},g.prototype.onEnd=function(p){p===f&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},i.Deflate=g,i.deflate=w,i.deflateRaw=function(p,v){return(v=v||{}).raw=!0,w(p,v)},i.gzip=function(p,v){return(v=v||{}).gzip=!0,w(p,v)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,r,i){var A=t("./zlib/inflate"),s=t("./utils/common"),a=t("./utils/strings"),o=t("./zlib/constants"),l=t("./zlib/messages"),u=t("./zlib/zstream"),f=t("./zlib/gzheader"),h=Object.prototype.toString;function c(g){if(!(this instanceof c))return new c(g);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},g||{});var w=this.options;w.raw&&0<=w.windowBits&&w.windowBits<16&&(w.windowBits=-w.windowBits,w.windowBits===0&&(w.windowBits=-15)),!(0<=w.windowBits&&w.windowBits<16)||g&&g.windowBits||(w.windowBits+=32),15<w.windowBits&&w.windowBits<48&&(15&w.windowBits)==0&&(w.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var p=A.inflateInit2(this.strm,w.windowBits);if(p!==o.Z_OK)throw new Error(l[p]);this.header=new f,A.inflateGetHeader(this.strm,this.header)}function m(g,w){var p=new c(w);if(p.push(g,!0),p.err)throw p.msg||l[p.err];return p.result}c.prototype.push=function(g,w){var p,v,b,B,T,M,D=this.strm,j=this.options.chunkSize,R=this.options.dictionary,ae=!1;if(this.ended)return!1;v=w===~~w?w:w===!0?o.Z_FINISH:o.Z_NO_FLUSH,typeof g=="string"?D.input=a.binstring2buf(g):h.call(g)==="[object ArrayBuffer]"?D.input=new Uint8Array(g):D.input=g,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new s.Buf8(j),D.next_out=0,D.avail_out=j),(p=A.inflate(D,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&R&&(M=typeof R=="string"?a.string2buf(R):h.call(R)==="[object ArrayBuffer]"?new Uint8Array(R):R,p=A.inflateSetDictionary(this.strm,M)),p===o.Z_BUF_ERROR&&ae===!0&&(p=o.Z_OK,ae=!1),p!==o.Z_STREAM_END&&p!==o.Z_OK)return this.onEnd(p),!(this.ended=!0);D.next_out&&(D.avail_out!==0&&p!==o.Z_STREAM_END&&(D.avail_in!==0||v!==o.Z_FINISH&&v!==o.Z_SYNC_FLUSH)||(this.options.to==="string"?(b=a.utf8border(D.output,D.next_out),B=D.next_out-b,T=a.buf2string(D.output,b),D.next_out=B,D.avail_out=j-B,B&&s.arraySet(D.output,D.output,b,B,0),this.onData(T)):this.onData(s.shrinkBuf(D.output,D.next_out)))),D.avail_in===0&&D.avail_out===0&&(ae=!0)}while((0<D.avail_in||D.avail_out===0)&&p!==o.Z_STREAM_END);return p===o.Z_STREAM_END&&(v=o.Z_FINISH),v===o.Z_FINISH?(p=A.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===o.Z_OK):v!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(D.avail_out=0))},c.prototype.onData=function(g){this.chunks.push(g)},c.prototype.onEnd=function(g){g===o.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},i.Inflate=c,i.inflate=m,i.inflateRaw=function(g,w){return(w=w||{}).raw=!0,m(g,w)},i.ungzip=m},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,r,i){var A=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(o){for(var l=Array.prototype.slice.call(arguments,1);l.length;){var u=l.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var f in u)u.hasOwnProperty(f)&&(o[f]=u[f])}}return o},i.shrinkBuf=function(o,l){return o.length===l?o:o.subarray?o.subarray(0,l):(o.length=l,o)};var s={arraySet:function(o,l,u,f,h){if(l.subarray&&o.subarray)o.set(l.subarray(u,u+f),h);else for(var c=0;c<f;c++)o[h+c]=l[u+c]},flattenChunks:function(o){var l,u,f,h,c,m;for(l=f=0,u=o.length;l<u;l++)f+=o[l].length;for(m=new Uint8Array(f),l=h=0,u=o.length;l<u;l++)c=o[l],m.set(c,h),h+=c.length;return m}},a={arraySet:function(o,l,u,f,h){for(var c=0;c<f;c++)o[h+c]=l[u+c]},flattenChunks:function(o){return[].concat.apply([],o)}};i.setTyped=function(o){o?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,s)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,a))},i.setTyped(A)},{}],42:[function(t,r,i){var A=t("./common"),s=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var o=new A.Buf8(256),l=0;l<256;l++)o[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(f,h){if(h<65537&&(f.subarray&&a||!f.subarray&&s))return String.fromCharCode.apply(null,A.shrinkBuf(f,h));for(var c="",m=0;m<h;m++)c+=String.fromCharCode(f[m]);return c}o[254]=o[254]=1,i.string2buf=function(f){var h,c,m,g,w,p=f.length,v=0;for(g=0;g<p;g++)(64512&(c=f.charCodeAt(g)))==55296&&g+1<p&&(64512&(m=f.charCodeAt(g+1)))==56320&&(c=65536+(c-55296<<10)+(m-56320),g++),v+=c<128?1:c<2048?2:c<65536?3:4;for(h=new A.Buf8(v),g=w=0;w<v;g++)(64512&(c=f.charCodeAt(g)))==55296&&g+1<p&&(64512&(m=f.charCodeAt(g+1)))==56320&&(c=65536+(c-55296<<10)+(m-56320),g++),c<128?h[w++]=c:(c<2048?h[w++]=192|c>>>6:(c<65536?h[w++]=224|c>>>12:(h[w++]=240|c>>>18,h[w++]=128|c>>>12&63),h[w++]=128|c>>>6&63),h[w++]=128|63&c);return h},i.buf2binstring=function(f){return u(f,f.length)},i.binstring2buf=function(f){for(var h=new A.Buf8(f.length),c=0,m=h.length;c<m;c++)h[c]=f.charCodeAt(c);return h},i.buf2string=function(f,h){var c,m,g,w,p=h||f.length,v=new Array(2*p);for(c=m=0;c<p;)if((g=f[c++])<128)v[m++]=g;else if(4<(w=o[g]))v[m++]=65533,c+=w-1;else{for(g&=w===2?31:w===3?15:7;1<w&&c<p;)g=g<<6|63&f[c++],w--;1<w?v[m++]=65533:g<65536?v[m++]=g:(g-=65536,v[m++]=55296|g>>10&1023,v[m++]=56320|1023&g)}return u(v,m)},i.utf8border=function(f,h){var c;for((h=h||f.length)>f.length&&(h=f.length),c=h-1;0<=c&&(192&f[c])==128;)c--;return c<0||c===0?h:c+o[f[c]]>h?c:h}},{"./common":41}],43:[function(t,r,i){r.exports=function(A,s,a,o){for(var l=65535&A|0,u=A>>>16&65535|0,f=0;a!==0;){for(a-=f=2e3<a?2e3:a;u=u+(l=l+s[o++]|0)|0,--f;);l%=65521,u%=65521}return l|u<<16|0}},{}],44:[function(t,r,i){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,r,i){var A=function(){for(var s,a=[],o=0;o<256;o++){s=o;for(var l=0;l<8;l++)s=1&s?3988292384^s>>>1:s>>>1;a[o]=s}return a}();r.exports=function(s,a,o,l){var u=A,f=l+o;s^=-1;for(var h=l;h<f;h++)s=s>>>8^u[255&(s^a[h])];return-1^s}},{}],46:[function(t,r,i){var A,s=t("../utils/common"),a=t("./trees"),o=t("./adler32"),l=t("./crc32"),u=t("./messages"),f=0,h=4,c=0,m=-2,g=-1,w=4,p=2,v=8,b=9,B=286,T=30,M=19,D=2*B+1,j=15,R=3,ae=258,L=ae+R+1,x=42,Q=113,C=1,z=2,Y=3,V=4;function ie(k,pe){return k.msg=u[pe],pe}function Ae(k){return(k<<1)-(4<k?9:0)}function $(k){for(var pe=k.length;0<=--pe;)k[pe]=0}function te(k){var pe=k.state,I=pe.pending;I>k.avail_out&&(I=k.avail_out),I!==0&&(s.arraySet(k.output,pe.pending_buf,pe.pending_out,I,k.next_out),k.next_out+=I,pe.pending_out+=I,k.total_out+=I,k.avail_out-=I,pe.pending-=I,pe.pending===0&&(pe.pending_out=0))}function F(k,pe){a._tr_flush_block(k,0<=k.block_start?k.block_start:-1,k.strstart-k.block_start,pe),k.block_start=k.strstart,te(k.strm)}function H(k,pe){k.pending_buf[k.pending++]=pe}function G(k,pe){k.pending_buf[k.pending++]=pe>>>8&255,k.pending_buf[k.pending++]=255&pe}function X(k,pe){var I,E,S=k.max_chain_length,P=k.strstart,oe=k.prev_length,ge=k.nice_match,ce=k.strstart>k.w_size-L?k.strstart-(k.w_size-L):0,Ee=k.window,ye=k.w_mask,Be=k.prev,Ue=k.strstart+ae,Oe=Ee[P+oe-1],Me=Ee[P+oe];k.prev_length>=k.good_match&&(S>>=2),ge>k.lookahead&&(ge=k.lookahead);do if(Ee[(I=pe)+oe]===Me&&Ee[I+oe-1]===Oe&&Ee[I]===Ee[P]&&Ee[++I]===Ee[P+1]){P+=2,I++;do;while(Ee[++P]===Ee[++I]&&Ee[++P]===Ee[++I]&&Ee[++P]===Ee[++I]&&Ee[++P]===Ee[++I]&&Ee[++P]===Ee[++I]&&Ee[++P]===Ee[++I]&&Ee[++P]===Ee[++I]&&Ee[++P]===Ee[++I]&&P<Ue);if(E=ae-(Ue-P),P=Ue-ae,oe<E){if(k.match_start=pe,ge<=(oe=E))break;Oe=Ee[P+oe-1],Me=Ee[P+oe]}}while((pe=Be[pe&ye])>ce&&--S!=0);return oe<=k.lookahead?oe:k.lookahead}function J(k){var pe,I,E,S,P,oe,ge,ce,Ee,ye,Be=k.w_size;do{if(S=k.window_size-k.lookahead-k.strstart,k.strstart>=Be+(Be-L)){for(s.arraySet(k.window,k.window,Be,Be,0),k.match_start-=Be,k.strstart-=Be,k.block_start-=Be,pe=I=k.hash_size;E=k.head[--pe],k.head[pe]=Be<=E?E-Be:0,--I;);for(pe=I=Be;E=k.prev[--pe],k.prev[pe]=Be<=E?E-Be:0,--I;);S+=Be}if(k.strm.avail_in===0)break;if(oe=k.strm,ge=k.window,ce=k.strstart+k.lookahead,Ee=S,ye=void 0,ye=oe.avail_in,Ee<ye&&(ye=Ee),I=ye===0?0:(oe.avail_in-=ye,s.arraySet(ge,oe.input,oe.next_in,ye,ce),oe.state.wrap===1?oe.adler=o(oe.adler,ge,ye,ce):oe.state.wrap===2&&(oe.adler=l(oe.adler,ge,ye,ce)),oe.next_in+=ye,oe.total_in+=ye,ye),k.lookahead+=I,k.lookahead+k.insert>=R)for(P=k.strstart-k.insert,k.ins_h=k.window[P],k.ins_h=(k.ins_h<<k.hash_shift^k.window[P+1])&k.hash_mask;k.insert&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[P+R-1])&k.hash_mask,k.prev[P&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=P,P++,k.insert--,!(k.lookahead+k.insert<R)););}while(k.lookahead<L&&k.strm.avail_in!==0)}function O(k,pe){for(var I,E;;){if(k.lookahead<L){if(J(k),k.lookahead<L&&pe===f)return C;if(k.lookahead===0)break}if(I=0,k.lookahead>=R&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+R-1])&k.hash_mask,I=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),I!==0&&k.strstart-I<=k.w_size-L&&(k.match_length=X(k,I)),k.match_length>=R)if(E=a._tr_tally(k,k.strstart-k.match_start,k.match_length-R),k.lookahead-=k.match_length,k.match_length<=k.max_lazy_match&&k.lookahead>=R){for(k.match_length--;k.strstart++,k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+R-1])&k.hash_mask,I=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart,--k.match_length!=0;);k.strstart++}else k.strstart+=k.match_length,k.match_length=0,k.ins_h=k.window[k.strstart],k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+1])&k.hash_mask;else E=a._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++;if(E&&(F(k,!1),k.strm.avail_out===0))return C}return k.insert=k.strstart<R-1?k.strstart:R-1,pe===h?(F(k,!0),k.strm.avail_out===0?Y:V):k.last_lit&&(F(k,!1),k.strm.avail_out===0)?C:z}function U(k,pe){for(var I,E,S;;){if(k.lookahead<L){if(J(k),k.lookahead<L&&pe===f)return C;if(k.lookahead===0)break}if(I=0,k.lookahead>=R&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+R-1])&k.hash_mask,I=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),k.prev_length=k.match_length,k.prev_match=k.match_start,k.match_length=R-1,I!==0&&k.prev_length<k.max_lazy_match&&k.strstart-I<=k.w_size-L&&(k.match_length=X(k,I),k.match_length<=5&&(k.strategy===1||k.match_length===R&&4096<k.strstart-k.match_start)&&(k.match_length=R-1)),k.prev_length>=R&&k.match_length<=k.prev_length){for(S=k.strstart+k.lookahead-R,E=a._tr_tally(k,k.strstart-1-k.prev_match,k.prev_length-R),k.lookahead-=k.prev_length-1,k.prev_length-=2;++k.strstart<=S&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+R-1])&k.hash_mask,I=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),--k.prev_length!=0;);if(k.match_available=0,k.match_length=R-1,k.strstart++,E&&(F(k,!1),k.strm.avail_out===0))return C}else if(k.match_available){if((E=a._tr_tally(k,0,k.window[k.strstart-1]))&&F(k,!1),k.strstart++,k.lookahead--,k.strm.avail_out===0)return C}else k.match_available=1,k.strstart++,k.lookahead--}return k.match_available&&(E=a._tr_tally(k,0,k.window[k.strstart-1]),k.match_available=0),k.insert=k.strstart<R-1?k.strstart:R-1,pe===h?(F(k,!0),k.strm.avail_out===0?Y:V):k.last_lit&&(F(k,!1),k.strm.avail_out===0)?C:z}function ee(k,pe,I,E,S){this.good_length=k,this.max_lazy=pe,this.nice_length=I,this.max_chain=E,this.func=S}function re(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=v,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new s.Buf16(2*D),this.dyn_dtree=new s.Buf16(2*(2*T+1)),this.bl_tree=new s.Buf16(2*(2*M+1)),$(this.dyn_ltree),$(this.dyn_dtree),$(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(j+1),this.heap=new s.Buf16(2*B+1),$(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*B+1),$(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function W(k){var pe;return k&&k.state?(k.total_in=k.total_out=0,k.data_type=p,(pe=k.state).pending=0,pe.pending_out=0,pe.wrap<0&&(pe.wrap=-pe.wrap),pe.status=pe.wrap?x:Q,k.adler=pe.wrap===2?0:1,pe.last_flush=f,a._tr_init(pe),c):ie(k,m)}function Z(k){var pe=W(k);return pe===c&&function(I){I.window_size=2*I.w_size,$(I.head),I.max_lazy_match=A[I.level].max_lazy,I.good_match=A[I.level].good_length,I.nice_match=A[I.level].nice_length,I.max_chain_length=A[I.level].max_chain,I.strstart=0,I.block_start=0,I.lookahead=0,I.insert=0,I.match_length=I.prev_length=R-1,I.match_available=0,I.ins_h=0}(k.state),pe}function me(k,pe,I,E,S,P){if(!k)return m;var oe=1;if(pe===g&&(pe=6),E<0?(oe=0,E=-E):15<E&&(oe=2,E-=16),S<1||b<S||I!==v||E<8||15<E||pe<0||9<pe||P<0||w<P)return ie(k,m);E===8&&(E=9);var ge=new re;return(k.state=ge).strm=k,ge.wrap=oe,ge.gzhead=null,ge.w_bits=E,ge.w_size=1<<ge.w_bits,ge.w_mask=ge.w_size-1,ge.hash_bits=S+7,ge.hash_size=1<<ge.hash_bits,ge.hash_mask=ge.hash_size-1,ge.hash_shift=~~((ge.hash_bits+R-1)/R),ge.window=new s.Buf8(2*ge.w_size),ge.head=new s.Buf16(ge.hash_size),ge.prev=new s.Buf16(ge.w_size),ge.lit_bufsize=1<<S+6,ge.pending_buf_size=4*ge.lit_bufsize,ge.pending_buf=new s.Buf8(ge.pending_buf_size),ge.d_buf=1*ge.lit_bufsize,ge.l_buf=3*ge.lit_bufsize,ge.level=pe,ge.strategy=P,ge.method=I,Z(k)}A=[new ee(0,0,0,0,function(k,pe){var I=65535;for(I>k.pending_buf_size-5&&(I=k.pending_buf_size-5);;){if(k.lookahead<=1){if(J(k),k.lookahead===0&&pe===f)return C;if(k.lookahead===0)break}k.strstart+=k.lookahead,k.lookahead=0;var E=k.block_start+I;if((k.strstart===0||k.strstart>=E)&&(k.lookahead=k.strstart-E,k.strstart=E,F(k,!1),k.strm.avail_out===0)||k.strstart-k.block_start>=k.w_size-L&&(F(k,!1),k.strm.avail_out===0))return C}return k.insert=0,pe===h?(F(k,!0),k.strm.avail_out===0?Y:V):(k.strstart>k.block_start&&(F(k,!1),k.strm.avail_out),C)}),new ee(4,4,8,4,O),new ee(4,5,16,8,O),new ee(4,6,32,32,O),new ee(4,4,16,16,U),new ee(8,16,32,32,U),new ee(8,16,128,128,U),new ee(8,32,128,256,U),new ee(32,128,258,1024,U),new ee(32,258,258,4096,U)],i.deflateInit=function(k,pe){return me(k,pe,v,15,8,0)},i.deflateInit2=me,i.deflateReset=Z,i.deflateResetKeep=W,i.deflateSetHeader=function(k,pe){return k&&k.state?k.state.wrap!==2?m:(k.state.gzhead=pe,c):m},i.deflate=function(k,pe){var I,E,S,P;if(!k||!k.state||5<pe||pe<0)return k?ie(k,m):m;if(E=k.state,!k.output||!k.input&&k.avail_in!==0||E.status===666&&pe!==h)return ie(k,k.avail_out===0?-5:m);if(E.strm=k,I=E.last_flush,E.last_flush=pe,E.status===x)if(E.wrap===2)k.adler=0,H(E,31),H(E,139),H(E,8),E.gzhead?(H(E,(E.gzhead.text?1:0)+(E.gzhead.hcrc?2:0)+(E.gzhead.extra?4:0)+(E.gzhead.name?8:0)+(E.gzhead.comment?16:0)),H(E,255&E.gzhead.time),H(E,E.gzhead.time>>8&255),H(E,E.gzhead.time>>16&255),H(E,E.gzhead.time>>24&255),H(E,E.level===9?2:2<=E.strategy||E.level<2?4:0),H(E,255&E.gzhead.os),E.gzhead.extra&&E.gzhead.extra.length&&(H(E,255&E.gzhead.extra.length),H(E,E.gzhead.extra.length>>8&255)),E.gzhead.hcrc&&(k.adler=l(k.adler,E.pending_buf,E.pending,0)),E.gzindex=0,E.status=69):(H(E,0),H(E,0),H(E,0),H(E,0),H(E,0),H(E,E.level===9?2:2<=E.strategy||E.level<2?4:0),H(E,3),E.status=Q);else{var oe=v+(E.w_bits-8<<4)<<8;oe|=(2<=E.strategy||E.level<2?0:E.level<6?1:E.level===6?2:3)<<6,E.strstart!==0&&(oe|=32),oe+=31-oe%31,E.status=Q,G(E,oe),E.strstart!==0&&(G(E,k.adler>>>16),G(E,65535&k.adler)),k.adler=1}if(E.status===69)if(E.gzhead.extra){for(S=E.pending;E.gzindex<(65535&E.gzhead.extra.length)&&(E.pending!==E.pending_buf_size||(E.gzhead.hcrc&&E.pending>S&&(k.adler=l(k.adler,E.pending_buf,E.pending-S,S)),te(k),S=E.pending,E.pending!==E.pending_buf_size));)H(E,255&E.gzhead.extra[E.gzindex]),E.gzindex++;E.gzhead.hcrc&&E.pending>S&&(k.adler=l(k.adler,E.pending_buf,E.pending-S,S)),E.gzindex===E.gzhead.extra.length&&(E.gzindex=0,E.status=73)}else E.status=73;if(E.status===73)if(E.gzhead.name){S=E.pending;do{if(E.pending===E.pending_buf_size&&(E.gzhead.hcrc&&E.pending>S&&(k.adler=l(k.adler,E.pending_buf,E.pending-S,S)),te(k),S=E.pending,E.pending===E.pending_buf_size)){P=1;break}P=E.gzindex<E.gzhead.name.length?255&E.gzhead.name.charCodeAt(E.gzindex++):0,H(E,P)}while(P!==0);E.gzhead.hcrc&&E.pending>S&&(k.adler=l(k.adler,E.pending_buf,E.pending-S,S)),P===0&&(E.gzindex=0,E.status=91)}else E.status=91;if(E.status===91)if(E.gzhead.comment){S=E.pending;do{if(E.pending===E.pending_buf_size&&(E.gzhead.hcrc&&E.pending>S&&(k.adler=l(k.adler,E.pending_buf,E.pending-S,S)),te(k),S=E.pending,E.pending===E.pending_buf_size)){P=1;break}P=E.gzindex<E.gzhead.comment.length?255&E.gzhead.comment.charCodeAt(E.gzindex++):0,H(E,P)}while(P!==0);E.gzhead.hcrc&&E.pending>S&&(k.adler=l(k.adler,E.pending_buf,E.pending-S,S)),P===0&&(E.status=103)}else E.status=103;if(E.status===103&&(E.gzhead.hcrc?(E.pending+2>E.pending_buf_size&&te(k),E.pending+2<=E.pending_buf_size&&(H(E,255&k.adler),H(E,k.adler>>8&255),k.adler=0,E.status=Q)):E.status=Q),E.pending!==0){if(te(k),k.avail_out===0)return E.last_flush=-1,c}else if(k.avail_in===0&&Ae(pe)<=Ae(I)&&pe!==h)return ie(k,-5);if(E.status===666&&k.avail_in!==0)return ie(k,-5);if(k.avail_in!==0||E.lookahead!==0||pe!==f&&E.status!==666){var ge=E.strategy===2?function(ce,Ee){for(var ye;;){if(ce.lookahead===0&&(J(ce),ce.lookahead===0)){if(Ee===f)return C;break}if(ce.match_length=0,ye=a._tr_tally(ce,0,ce.window[ce.strstart]),ce.lookahead--,ce.strstart++,ye&&(F(ce,!1),ce.strm.avail_out===0))return C}return ce.insert=0,Ee===h?(F(ce,!0),ce.strm.avail_out===0?Y:V):ce.last_lit&&(F(ce,!1),ce.strm.avail_out===0)?C:z}(E,pe):E.strategy===3?function(ce,Ee){for(var ye,Be,Ue,Oe,Me=ce.window;;){if(ce.lookahead<=ae){if(J(ce),ce.lookahead<=ae&&Ee===f)return C;if(ce.lookahead===0)break}if(ce.match_length=0,ce.lookahead>=R&&0<ce.strstart&&(Be=Me[Ue=ce.strstart-1])===Me[++Ue]&&Be===Me[++Ue]&&Be===Me[++Ue]){Oe=ce.strstart+ae;do;while(Be===Me[++Ue]&&Be===Me[++Ue]&&Be===Me[++Ue]&&Be===Me[++Ue]&&Be===Me[++Ue]&&Be===Me[++Ue]&&Be===Me[++Ue]&&Be===Me[++Ue]&&Ue<Oe);ce.match_length=ae-(Oe-Ue),ce.match_length>ce.lookahead&&(ce.match_length=ce.lookahead)}if(ce.match_length>=R?(ye=a._tr_tally(ce,1,ce.match_length-R),ce.lookahead-=ce.match_length,ce.strstart+=ce.match_length,ce.match_length=0):(ye=a._tr_tally(ce,0,ce.window[ce.strstart]),ce.lookahead--,ce.strstart++),ye&&(F(ce,!1),ce.strm.avail_out===0))return C}return ce.insert=0,Ee===h?(F(ce,!0),ce.strm.avail_out===0?Y:V):ce.last_lit&&(F(ce,!1),ce.strm.avail_out===0)?C:z}(E,pe):A[E.level].func(E,pe);if(ge!==Y&&ge!==V||(E.status=666),ge===C||ge===Y)return k.avail_out===0&&(E.last_flush=-1),c;if(ge===z&&(pe===1?a._tr_align(E):pe!==5&&(a._tr_stored_block(E,0,0,!1),pe===3&&($(E.head),E.lookahead===0&&(E.strstart=0,E.block_start=0,E.insert=0))),te(k),k.avail_out===0))return E.last_flush=-1,c}return pe!==h?c:E.wrap<=0?1:(E.wrap===2?(H(E,255&k.adler),H(E,k.adler>>8&255),H(E,k.adler>>16&255),H(E,k.adler>>24&255),H(E,255&k.total_in),H(E,k.total_in>>8&255),H(E,k.total_in>>16&255),H(E,k.total_in>>24&255)):(G(E,k.adler>>>16),G(E,65535&k.adler)),te(k),0<E.wrap&&(E.wrap=-E.wrap),E.pending!==0?c:1)},i.deflateEnd=function(k){var pe;return k&&k.state?(pe=k.state.status)!==x&&pe!==69&&pe!==73&&pe!==91&&pe!==103&&pe!==Q&&pe!==666?ie(k,m):(k.state=null,pe===Q?ie(k,-3):c):m},i.deflateSetDictionary=function(k,pe){var I,E,S,P,oe,ge,ce,Ee,ye=pe.length;if(!k||!k.state||(P=(I=k.state).wrap)===2||P===1&&I.status!==x||I.lookahead)return m;for(P===1&&(k.adler=o(k.adler,pe,ye,0)),I.wrap=0,ye>=I.w_size&&(P===0&&($(I.head),I.strstart=0,I.block_start=0,I.insert=0),Ee=new s.Buf8(I.w_size),s.arraySet(Ee,pe,ye-I.w_size,I.w_size,0),pe=Ee,ye=I.w_size),oe=k.avail_in,ge=k.next_in,ce=k.input,k.avail_in=ye,k.next_in=0,k.input=pe,J(I);I.lookahead>=R;){for(E=I.strstart,S=I.lookahead-(R-1);I.ins_h=(I.ins_h<<I.hash_shift^I.window[E+R-1])&I.hash_mask,I.prev[E&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=E,E++,--S;);I.strstart=E,I.lookahead=R-1,J(I)}return I.strstart+=I.lookahead,I.block_start=I.strstart,I.insert=I.lookahead,I.lookahead=0,I.match_length=I.prev_length=R-1,I.match_available=0,k.next_in=ge,k.input=ce,k.avail_in=oe,I.wrap=P,c},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,r,i){r.exports=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}},{}],48:[function(t,r,i){r.exports=function(A,s){var a,o,l,u,f,h,c,m,g,w,p,v,b,B,T,M,D,j,R,ae,L,x,Q,C,z;a=A.state,o=A.next_in,C=A.input,l=o+(A.avail_in-5),u=A.next_out,z=A.output,f=u-(s-A.avail_out),h=u+(A.avail_out-257),c=a.dmax,m=a.wsize,g=a.whave,w=a.wnext,p=a.window,v=a.hold,b=a.bits,B=a.lencode,T=a.distcode,M=(1<<a.lenbits)-1,D=(1<<a.distbits)-1;e:do{b<15&&(v+=C[o++]<<b,b+=8,v+=C[o++]<<b,b+=8),j=B[v&M];t:for(;;){if(v>>>=R=j>>>24,b-=R,(R=j>>>16&255)===0)z[u++]=65535&j;else{if(!(16&R)){if((64&R)==0){j=B[(65535&j)+(v&(1<<R)-1)];continue t}if(32&R){a.mode=12;break e}A.msg="invalid literal/length code",a.mode=30;break e}ae=65535&j,(R&=15)&&(b<R&&(v+=C[o++]<<b,b+=8),ae+=v&(1<<R)-1,v>>>=R,b-=R),b<15&&(v+=C[o++]<<b,b+=8,v+=C[o++]<<b,b+=8),j=T[v&D];r:for(;;){if(v>>>=R=j>>>24,b-=R,!(16&(R=j>>>16&255))){if((64&R)==0){j=T[(65535&j)+(v&(1<<R)-1)];continue r}A.msg="invalid distance code",a.mode=30;break e}if(L=65535&j,b<(R&=15)&&(v+=C[o++]<<b,(b+=8)<R&&(v+=C[o++]<<b,b+=8)),c<(L+=v&(1<<R)-1)){A.msg="invalid distance too far back",a.mode=30;break e}if(v>>>=R,b-=R,(R=u-f)<L){if(g<(R=L-R)&&a.sane){A.msg="invalid distance too far back",a.mode=30;break e}if(Q=p,(x=0)===w){if(x+=m-R,R<ae){for(ae-=R;z[u++]=p[x++],--R;);x=u-L,Q=z}}else if(w<R){if(x+=m+w-R,(R-=w)<ae){for(ae-=R;z[u++]=p[x++],--R;);if(x=0,w<ae){for(ae-=R=w;z[u++]=p[x++],--R;);x=u-L,Q=z}}}else if(x+=w-R,R<ae){for(ae-=R;z[u++]=p[x++],--R;);x=u-L,Q=z}for(;2<ae;)z[u++]=Q[x++],z[u++]=Q[x++],z[u++]=Q[x++],ae-=3;ae&&(z[u++]=Q[x++],1<ae&&(z[u++]=Q[x++]))}else{for(x=u-L;z[u++]=z[x++],z[u++]=z[x++],z[u++]=z[x++],2<(ae-=3););ae&&(z[u++]=z[x++],1<ae&&(z[u++]=z[x++]))}break}}break}}while(o<l&&u<h);o-=ae=b>>3,v&=(1<<(b-=ae<<3))-1,A.next_in=o,A.next_out=u,A.avail_in=o<l?l-o+5:5-(o-l),A.avail_out=u<h?h-u+257:257-(u-h),a.hold=v,a.bits=b}},{}],49:[function(t,r,i){var A=t("../utils/common"),s=t("./adler32"),a=t("./crc32"),o=t("./inffast"),l=t("./inftrees"),u=1,f=2,h=0,c=-2,m=1,g=852,w=592;function p(x){return(x>>>24&255)+(x>>>8&65280)+((65280&x)<<8)+((255&x)<<24)}function v(){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 A.Buf16(320),this.work=new A.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(x){var Q;return x&&x.state?(Q=x.state,x.total_in=x.total_out=Q.total=0,x.msg="",Q.wrap&&(x.adler=1&Q.wrap),Q.mode=m,Q.last=0,Q.havedict=0,Q.dmax=32768,Q.head=null,Q.hold=0,Q.bits=0,Q.lencode=Q.lendyn=new A.Buf32(g),Q.distcode=Q.distdyn=new A.Buf32(w),Q.sane=1,Q.back=-1,h):c}function B(x){var Q;return x&&x.state?((Q=x.state).wsize=0,Q.whave=0,Q.wnext=0,b(x)):c}function T(x,Q){var C,z;return x&&x.state?(z=x.state,Q<0?(C=0,Q=-Q):(C=1+(Q>>4),Q<48&&(Q&=15)),Q&&(Q<8||15<Q)?c:(z.window!==null&&z.wbits!==Q&&(z.window=null),z.wrap=C,z.wbits=Q,B(x))):c}function M(x,Q){var C,z;return x?(z=new v,(x.state=z).window=null,(C=T(x,Q))!==h&&(x.state=null),C):c}var D,j,R=!0;function ae(x){if(R){var Q;for(D=new A.Buf32(512),j=new A.Buf32(32),Q=0;Q<144;)x.lens[Q++]=8;for(;Q<256;)x.lens[Q++]=9;for(;Q<280;)x.lens[Q++]=7;for(;Q<288;)x.lens[Q++]=8;for(l(u,x.lens,0,288,D,0,x.work,{bits:9}),Q=0;Q<32;)x.lens[Q++]=5;l(f,x.lens,0,32,j,0,x.work,{bits:5}),R=!1}x.lencode=D,x.lenbits=9,x.distcode=j,x.distbits=5}function L(x,Q,C,z){var Y,V=x.state;return V.window===null&&(V.wsize=1<<V.wbits,V.wnext=0,V.whave=0,V.window=new A.Buf8(V.wsize)),z>=V.wsize?(A.arraySet(V.window,Q,C-V.wsize,V.wsize,0),V.wnext=0,V.whave=V.wsize):(z<(Y=V.wsize-V.wnext)&&(Y=z),A.arraySet(V.window,Q,C-z,Y,V.wnext),(z-=Y)?(A.arraySet(V.window,Q,C-z,z,0),V.wnext=z,V.whave=V.wsize):(V.wnext+=Y,V.wnext===V.wsize&&(V.wnext=0),V.whave<V.wsize&&(V.whave+=Y))),0}i.inflateReset=B,i.inflateReset2=T,i.inflateResetKeep=b,i.inflateInit=function(x){return M(x,15)},i.inflateInit2=M,i.inflate=function(x,Q){var C,z,Y,V,ie,Ae,$,te,F,H,G,X,J,O,U,ee,re,W,Z,me,k,pe,I,E,S=0,P=new A.Buf8(4),oe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!x||!x.state||!x.output||!x.input&&x.avail_in!==0)return c;(C=x.state).mode===12&&(C.mode=13),ie=x.next_out,Y=x.output,$=x.avail_out,V=x.next_in,z=x.input,Ae=x.avail_in,te=C.hold,F=C.bits,H=Ae,G=$,pe=h;e:for(;;)switch(C.mode){case m:if(C.wrap===0){C.mode=13;break}for(;F<16;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}if(2&C.wrap&&te===35615){P[C.check=0]=255&te,P[1]=te>>>8&255,C.check=a(C.check,P,2,0),F=te=0,C.mode=2;break}if(C.flags=0,C.head&&(C.head.done=!1),!(1&C.wrap)||(((255&te)<<8)+(te>>8))%31){x.msg="incorrect header check",C.mode=30;break}if((15&te)!=8){x.msg="unknown compression method",C.mode=30;break}if(F-=4,k=8+(15&(te>>>=4)),C.wbits===0)C.wbits=k;else if(k>C.wbits){x.msg="invalid window size",C.mode=30;break}C.dmax=1<<k,x.adler=C.check=1,C.mode=512&te?10:12,F=te=0;break;case 2:for(;F<16;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}if(C.flags=te,(255&C.flags)!=8){x.msg="unknown compression method",C.mode=30;break}if(57344&C.flags){x.msg="unknown header flags set",C.mode=30;break}C.head&&(C.head.text=te>>8&1),512&C.flags&&(P[0]=255&te,P[1]=te>>>8&255,C.check=a(C.check,P,2,0)),F=te=0,C.mode=3;case 3:for(;F<32;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}C.head&&(C.head.time=te),512&C.flags&&(P[0]=255&te,P[1]=te>>>8&255,P[2]=te>>>16&255,P[3]=te>>>24&255,C.check=a(C.check,P,4,0)),F=te=0,C.mode=4;case 4:for(;F<16;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}C.head&&(C.head.xflags=255&te,C.head.os=te>>8),512&C.flags&&(P[0]=255&te,P[1]=te>>>8&255,C.check=a(C.check,P,2,0)),F=te=0,C.mode=5;case 5:if(1024&C.flags){for(;F<16;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}C.length=te,C.head&&(C.head.extra_len=te),512&C.flags&&(P[0]=255&te,P[1]=te>>>8&255,C.check=a(C.check,P,2,0)),F=te=0}else C.head&&(C.head.extra=null);C.mode=6;case 6:if(1024&C.flags&&(Ae<(X=C.length)&&(X=Ae),X&&(C.head&&(k=C.head.extra_len-C.length,C.head.extra||(C.head.extra=new Array(C.head.extra_len)),A.arraySet(C.head.extra,z,V,X,k)),512&C.flags&&(C.check=a(C.check,z,X,V)),Ae-=X,V+=X,C.length-=X),C.length))break e;C.length=0,C.mode=7;case 7:if(2048&C.flags){if(Ae===0)break e;for(X=0;k=z[V+X++],C.head&&k&&C.length<65536&&(C.head.name+=String.fromCharCode(k)),k&&X<Ae;);if(512&C.flags&&(C.check=a(C.check,z,X,V)),Ae-=X,V+=X,k)break e}else C.head&&(C.head.name=null);C.length=0,C.mode=8;case 8:if(4096&C.flags){if(Ae===0)break e;for(X=0;k=z[V+X++],C.head&&k&&C.length<65536&&(C.head.comment+=String.fromCharCode(k)),k&&X<Ae;);if(512&C.flags&&(C.check=a(C.check,z,X,V)),Ae-=X,V+=X,k)break e}else C.head&&(C.head.comment=null);C.mode=9;case 9:if(512&C.flags){for(;F<16;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}if(te!==(65535&C.check)){x.msg="header crc mismatch",C.mode=30;break}F=te=0}C.head&&(C.head.hcrc=C.flags>>9&1,C.head.done=!0),x.adler=C.check=0,C.mode=12;break;case 10:for(;F<32;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}x.adler=C.check=p(te),F=te=0,C.mode=11;case 11:if(C.havedict===0)return x.next_out=ie,x.avail_out=$,x.next_in=V,x.avail_in=Ae,C.hold=te,C.bits=F,2;x.adler=C.check=1,C.mode=12;case 12:if(Q===5||Q===6)break e;case 13:if(C.last){te>>>=7&F,F-=7&F,C.mode=27;break}for(;F<3;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}switch(C.last=1&te,F-=1,3&(te>>>=1)){case 0:C.mode=14;break;case 1:if(ae(C),C.mode=20,Q!==6)break;te>>>=2,F-=2;break e;case 2:C.mode=17;break;case 3:x.msg="invalid block type",C.mode=30}te>>>=2,F-=2;break;case 14:for(te>>>=7&F,F-=7&F;F<32;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}if((65535&te)!=(te>>>16^65535)){x.msg="invalid stored block lengths",C.mode=30;break}if(C.length=65535&te,F=te=0,C.mode=15,Q===6)break e;case 15:C.mode=16;case 16:if(X=C.length){if(Ae<X&&(X=Ae),$<X&&(X=$),X===0)break e;A.arraySet(Y,z,V,X,ie),Ae-=X,V+=X,$-=X,ie+=X,C.length-=X;break}C.mode=12;break;case 17:for(;F<14;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}if(C.nlen=257+(31&te),te>>>=5,F-=5,C.ndist=1+(31&te),te>>>=5,F-=5,C.ncode=4+(15&te),te>>>=4,F-=4,286<C.nlen||30<C.ndist){x.msg="too many length or distance symbols",C.mode=30;break}C.have=0,C.mode=18;case 18:for(;C.have<C.ncode;){for(;F<3;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}C.lens[oe[C.have++]]=7&te,te>>>=3,F-=3}for(;C.have<19;)C.lens[oe[C.have++]]=0;if(C.lencode=C.lendyn,C.lenbits=7,I={bits:C.lenbits},pe=l(0,C.lens,0,19,C.lencode,0,C.work,I),C.lenbits=I.bits,pe){x.msg="invalid code lengths set",C.mode=30;break}C.have=0,C.mode=19;case 19:for(;C.have<C.nlen+C.ndist;){for(;ee=(S=C.lencode[te&(1<<C.lenbits)-1])>>>16&255,re=65535&S,!((U=S>>>24)<=F);){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}if(re<16)te>>>=U,F-=U,C.lens[C.have++]=re;else{if(re===16){for(E=U+2;F<E;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}if(te>>>=U,F-=U,C.have===0){x.msg="invalid bit length repeat",C.mode=30;break}k=C.lens[C.have-1],X=3+(3&te),te>>>=2,F-=2}else if(re===17){for(E=U+3;F<E;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}F-=U,k=0,X=3+(7&(te>>>=U)),te>>>=3,F-=3}else{for(E=U+7;F<E;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}F-=U,k=0,X=11+(127&(te>>>=U)),te>>>=7,F-=7}if(C.have+X>C.nlen+C.ndist){x.msg="invalid bit length repeat",C.mode=30;break}for(;X--;)C.lens[C.have++]=k}}if(C.mode===30)break;if(C.lens[256]===0){x.msg="invalid code -- missing end-of-block",C.mode=30;break}if(C.lenbits=9,I={bits:C.lenbits},pe=l(u,C.lens,0,C.nlen,C.lencode,0,C.work,I),C.lenbits=I.bits,pe){x.msg="invalid literal/lengths set",C.mode=30;break}if(C.distbits=6,C.distcode=C.distdyn,I={bits:C.distbits},pe=l(f,C.lens,C.nlen,C.ndist,C.distcode,0,C.work,I),C.distbits=I.bits,pe){x.msg="invalid distances set",C.mode=30;break}if(C.mode=20,Q===6)break e;case 20:C.mode=21;case 21:if(6<=Ae&&258<=$){x.next_out=ie,x.avail_out=$,x.next_in=V,x.avail_in=Ae,C.hold=te,C.bits=F,o(x,G),ie=x.next_out,Y=x.output,$=x.avail_out,V=x.next_in,z=x.input,Ae=x.avail_in,te=C.hold,F=C.bits,C.mode===12&&(C.back=-1);break}for(C.back=0;ee=(S=C.lencode[te&(1<<C.lenbits)-1])>>>16&255,re=65535&S,!((U=S>>>24)<=F);){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}if(ee&&(240&ee)==0){for(W=U,Z=ee,me=re;ee=(S=C.lencode[me+((te&(1<<W+Z)-1)>>W)])>>>16&255,re=65535&S,!(W+(U=S>>>24)<=F);){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}te>>>=W,F-=W,C.back+=W}if(te>>>=U,F-=U,C.back+=U,C.length=re,ee===0){C.mode=26;break}if(32&ee){C.back=-1,C.mode=12;break}if(64&ee){x.msg="invalid literal/length code",C.mode=30;break}C.extra=15&ee,C.mode=22;case 22:if(C.extra){for(E=C.extra;F<E;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}C.length+=te&(1<<C.extra)-1,te>>>=C.extra,F-=C.extra,C.back+=C.extra}C.was=C.length,C.mode=23;case 23:for(;ee=(S=C.distcode[te&(1<<C.distbits)-1])>>>16&255,re=65535&S,!((U=S>>>24)<=F);){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}if((240&ee)==0){for(W=U,Z=ee,me=re;ee=(S=C.distcode[me+((te&(1<<W+Z)-1)>>W)])>>>16&255,re=65535&S,!(W+(U=S>>>24)<=F);){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}te>>>=W,F-=W,C.back+=W}if(te>>>=U,F-=U,C.back+=U,64&ee){x.msg="invalid distance code",C.mode=30;break}C.offset=re,C.extra=15&ee,C.mode=24;case 24:if(C.extra){for(E=C.extra;F<E;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}C.offset+=te&(1<<C.extra)-1,te>>>=C.extra,F-=C.extra,C.back+=C.extra}if(C.offset>C.dmax){x.msg="invalid distance too far back",C.mode=30;break}C.mode=25;case 25:if($===0)break e;if(X=G-$,C.offset>X){if((X=C.offset-X)>C.whave&&C.sane){x.msg="invalid distance too far back",C.mode=30;break}J=X>C.wnext?(X-=C.wnext,C.wsize-X):C.wnext-X,X>C.length&&(X=C.length),O=C.window}else O=Y,J=ie-C.offset,X=C.length;for($<X&&(X=$),$-=X,C.length-=X;Y[ie++]=O[J++],--X;);C.length===0&&(C.mode=21);break;case 26:if($===0)break e;Y[ie++]=C.length,$--,C.mode=21;break;case 27:if(C.wrap){for(;F<32;){if(Ae===0)break e;Ae--,te|=z[V++]<<F,F+=8}if(G-=$,x.total_out+=G,C.total+=G,G&&(x.adler=C.check=C.flags?a(C.check,Y,G,ie-G):s(C.check,Y,G,ie-G)),G=$,(C.flags?te:p(te))!==C.check){x.msg="incorrect data check",C.mode=30;break}F=te=0}C.mode=28;case 28:if(C.wrap&&C.flags){for(;F<32;){if(Ae===0)break e;Ae--,te+=z[V++]<<F,F+=8}if(te!==(4294967295&C.total)){x.msg="incorrect length check",C.mode=30;break}F=te=0}C.mode=29;case 29:pe=1;break e;case 30:pe=-3;break e;case 31:return-4;case 32:default:return c}return x.next_out=ie,x.avail_out=$,x.next_in=V,x.avail_in=Ae,C.hold=te,C.bits=F,(C.wsize||G!==x.avail_out&&C.mode<30&&(C.mode<27||Q!==4))&&L(x,x.output,x.next_out,G-x.avail_out)?(C.mode=31,-4):(H-=x.avail_in,G-=x.avail_out,x.total_in+=H,x.total_out+=G,C.total+=G,C.wrap&&G&&(x.adler=C.check=C.flags?a(C.check,Y,G,x.next_out-G):s(C.check,Y,G,x.next_out-G)),x.data_type=C.bits+(C.last?64:0)+(C.mode===12?128:0)+(C.mode===20||C.mode===15?256:0),(H==0&&G===0||Q===4)&&pe===h&&(pe=-5),pe)},i.inflateEnd=function(x){if(!x||!x.state)return c;var Q=x.state;return Q.window&&(Q.window=null),x.state=null,h},i.inflateGetHeader=function(x,Q){var C;return x&&x.state?(2&(C=x.state).wrap)==0?c:((C.head=Q).done=!1,h):c},i.inflateSetDictionary=function(x,Q){var C,z=Q.length;return x&&x.state?(C=x.state).wrap!==0&&C.mode!==11?c:C.mode===11&&s(1,Q,z,0)!==C.check?-3:L(x,Q,z,z)?(C.mode=31,-4):(C.havedict=1,h):c},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,r,i){var A=t("../utils/common"),s=[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],a=[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,72,78],o=[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],l=[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];r.exports=function(u,f,h,c,m,g,w,p){var v,b,B,T,M,D,j,R,ae,L=p.bits,x=0,Q=0,C=0,z=0,Y=0,V=0,ie=0,Ae=0,$=0,te=0,F=null,H=0,G=new A.Buf16(16),X=new A.Buf16(16),J=null,O=0;for(x=0;x<=15;x++)G[x]=0;for(Q=0;Q<c;Q++)G[f[h+Q]]++;for(Y=L,z=15;1<=z&&G[z]===0;z--);if(z<Y&&(Y=z),z===0)return m[g++]=20971520,m[g++]=20971520,p.bits=1,0;for(C=1;C<z&&G[C]===0;C++);for(Y<C&&(Y=C),x=Ae=1;x<=15;x++)if(Ae<<=1,(Ae-=G[x])<0)return-1;if(0<Ae&&(u===0||z!==1))return-1;for(X[1]=0,x=1;x<15;x++)X[x+1]=X[x]+G[x];for(Q=0;Q<c;Q++)f[h+Q]!==0&&(w[X[f[h+Q]]++]=Q);if(D=u===0?(F=J=w,19):u===1?(F=s,H-=257,J=a,O-=257,256):(F=o,J=l,-1),x=C,M=g,ie=Q=te=0,B=-1,T=($=1<<(V=Y))-1,u===1&&852<$||u===2&&592<$)return 1;for(;;){for(j=x-ie,ae=w[Q]<D?(R=0,w[Q]):w[Q]>D?(R=J[O+w[Q]],F[H+w[Q]]):(R=96,0),v=1<<x-ie,C=b=1<<V;m[M+(te>>ie)+(b-=v)]=j<<24|R<<16|ae|0,b!==0;);for(v=1<<x-1;te&v;)v>>=1;if(v!==0?(te&=v-1,te+=v):te=0,Q++,--G[x]==0){if(x===z)break;x=f[h+w[Q]]}if(Y<x&&(te&T)!==B){for(ie===0&&(ie=Y),M+=C,Ae=1<<(V=x-ie);V+ie<z&&!((Ae-=G[V+ie])<=0);)V++,Ae<<=1;if($+=1<<V,u===1&&852<$||u===2&&592<$)return 1;m[B=te&T]=Y<<24|V<<16|M-g|0}}return te!==0&&(m[M+te]=x-ie<<24|64<<16|0),p.bits=Y,0}},{"../utils/common":41}],51:[function(t,r,i){r.exports={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"}},{}],52:[function(t,r,i){var A=t("../utils/common"),s=0,a=1;function o(S){for(var P=S.length;0<=--P;)S[P]=0}var l=0,u=29,f=256,h=f+1+u,c=30,m=19,g=2*h+1,w=15,p=16,v=7,b=256,B=16,T=17,M=18,D=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],j=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],L=new Array(2*(h+2));o(L);var x=new Array(2*c);o(x);var Q=new Array(512);o(Q);var C=new Array(256);o(C);var z=new Array(u);o(z);var Y,V,ie,Ae=new Array(c);function $(S,P,oe,ge,ce){this.static_tree=S,this.extra_bits=P,this.extra_base=oe,this.elems=ge,this.max_length=ce,this.has_stree=S&&S.length}function te(S,P){this.dyn_tree=S,this.max_code=0,this.stat_desc=P}function F(S){return S<256?Q[S]:Q[256+(S>>>7)]}function H(S,P){S.pending_buf[S.pending++]=255&P,S.pending_buf[S.pending++]=P>>>8&255}function G(S,P,oe){S.bi_valid>p-oe?(S.bi_buf|=P<<S.bi_valid&65535,H(S,S.bi_buf),S.bi_buf=P>>p-S.bi_valid,S.bi_valid+=oe-p):(S.bi_buf|=P<<S.bi_valid&65535,S.bi_valid+=oe)}function X(S,P,oe){G(S,oe[2*P],oe[2*P+1])}function J(S,P){for(var oe=0;oe|=1&S,S>>>=1,oe<<=1,0<--P;);return oe>>>1}function O(S,P,oe){var ge,ce,Ee=new Array(w+1),ye=0;for(ge=1;ge<=w;ge++)Ee[ge]=ye=ye+oe[ge-1]<<1;for(ce=0;ce<=P;ce++){var Be=S[2*ce+1];Be!==0&&(S[2*ce]=J(Ee[Be]++,Be))}}function U(S){var P;for(P=0;P<h;P++)S.dyn_ltree[2*P]=0;for(P=0;P<c;P++)S.dyn_dtree[2*P]=0;for(P=0;P<m;P++)S.bl_tree[2*P]=0;S.dyn_ltree[2*b]=1,S.opt_len=S.static_len=0,S.last_lit=S.matches=0}function ee(S){8<S.bi_valid?H(S,S.bi_buf):0<S.bi_valid&&(S.pending_buf[S.pending++]=S.bi_buf),S.bi_buf=0,S.bi_valid=0}function re(S,P,oe,ge){var ce=2*P,Ee=2*oe;return S[ce]<S[Ee]||S[ce]===S[Ee]&&ge[P]<=ge[oe]}function W(S,P,oe){for(var ge=S.heap[oe],ce=oe<<1;ce<=S.heap_len&&(ce<S.heap_len&&re(P,S.heap[ce+1],S.heap[ce],S.depth)&&ce++,!re(P,ge,S.heap[ce],S.depth));)S.heap[oe]=S.heap[ce],oe=ce,ce<<=1;S.heap[oe]=ge}function Z(S,P,oe){var ge,ce,Ee,ye,Be=0;if(S.last_lit!==0)for(;ge=S.pending_buf[S.d_buf+2*Be]<<8|S.pending_buf[S.d_buf+2*Be+1],ce=S.pending_buf[S.l_buf+Be],Be++,ge===0?X(S,ce,P):(X(S,(Ee=C[ce])+f+1,P),(ye=D[Ee])!==0&&G(S,ce-=z[Ee],ye),X(S,Ee=F(--ge),oe),(ye=j[Ee])!==0&&G(S,ge-=Ae[Ee],ye)),Be<S.last_lit;);X(S,b,P)}function me(S,P){var oe,ge,ce,Ee=P.dyn_tree,ye=P.stat_desc.static_tree,Be=P.stat_desc.has_stree,Ue=P.stat_desc.elems,Oe=-1;for(S.heap_len=0,S.heap_max=g,oe=0;oe<Ue;oe++)Ee[2*oe]!==0?(S.heap[++S.heap_len]=Oe=oe,S.depth[oe]=0):Ee[2*oe+1]=0;for(;S.heap_len<2;)Ee[2*(ce=S.heap[++S.heap_len]=Oe<2?++Oe:0)]=1,S.depth[ce]=0,S.opt_len--,Be&&(S.static_len-=ye[2*ce+1]);for(P.max_code=Oe,oe=S.heap_len>>1;1<=oe;oe--)W(S,Ee,oe);for(ce=Ue;oe=S.heap[1],S.heap[1]=S.heap[S.heap_len--],W(S,Ee,1),ge=S.heap[1],S.heap[--S.heap_max]=oe,S.heap[--S.heap_max]=ge,Ee[2*ce]=Ee[2*oe]+Ee[2*ge],S.depth[ce]=(S.depth[oe]>=S.depth[ge]?S.depth[oe]:S.depth[ge])+1,Ee[2*oe+1]=Ee[2*ge+1]=ce,S.heap[1]=ce++,W(S,Ee,1),2<=S.heap_len;);S.heap[--S.heap_max]=S.heap[1],function(Me,$e){var tt,Ve,Tt,st,kt,yt,St=$e.dyn_tree,ur=$e.max_code,Ft=$e.stat_desc.static_tree,$t=$e.stat_desc.has_stree,Qt=$e.stat_desc.extra_bits,yr=$e.stat_desc.extra_base,It=$e.stat_desc.max_length,Kt=0;for(st=0;st<=w;st++)Me.bl_count[st]=0;for(St[2*Me.heap[Me.heap_max]+1]=0,tt=Me.heap_max+1;tt<g;tt++)It<(st=St[2*St[2*(Ve=Me.heap[tt])+1]+1]+1)&&(st=It,Kt++),St[2*Ve+1]=st,ur<Ve||(Me.bl_count[st]++,kt=0,yr<=Ve&&(kt=Qt[Ve-yr]),yt=St[2*Ve],Me.opt_len+=yt*(st+kt),$t&&(Me.static_len+=yt*(Ft[2*Ve+1]+kt)));if(Kt!==0){do{for(st=It-1;Me.bl_count[st]===0;)st--;Me.bl_count[st]--,Me.bl_count[st+1]+=2,Me.bl_count[It]--,Kt-=2}while(0<Kt);for(st=It;st!==0;st--)for(Ve=Me.bl_count[st];Ve!==0;)ur<(Tt=Me.heap[--tt])||(St[2*Tt+1]!==st&&(Me.opt_len+=(st-St[2*Tt+1])*St[2*Tt],St[2*Tt+1]=st),Ve--)}}(S,P),O(Ee,Oe,S.bl_count)}function k(S,P,oe){var ge,ce,Ee=-1,ye=P[1],Be=0,Ue=7,Oe=4;for(ye===0&&(Ue=138,Oe=3),P[2*(oe+1)+1]=65535,ge=0;ge<=oe;ge++)ce=ye,ye=P[2*(ge+1)+1],++Be<Ue&&ce===ye||(Be<Oe?S.bl_tree[2*ce]+=Be:ce!==0?(ce!==Ee&&S.bl_tree[2*ce]++,S.bl_tree[2*B]++):Be<=10?S.bl_tree[2*T]++:S.bl_tree[2*M]++,Ee=ce,Oe=(Be=0)===ye?(Ue=138,3):ce===ye?(Ue=6,3):(Ue=7,4))}function pe(S,P,oe){var ge,ce,Ee=-1,ye=P[1],Be=0,Ue=7,Oe=4;for(ye===0&&(Ue=138,Oe=3),ge=0;ge<=oe;ge++)if(ce=ye,ye=P[2*(ge+1)+1],!(++Be<Ue&&ce===ye)){if(Be<Oe)for(;X(S,ce,S.bl_tree),--Be!=0;);else ce!==0?(ce!==Ee&&(X(S,ce,S.bl_tree),Be--),X(S,B,S.bl_tree),G(S,Be-3,2)):Be<=10?(X(S,T,S.bl_tree),G(S,Be-3,3)):(X(S,M,S.bl_tree),G(S,Be-11,7));Ee=ce,Oe=(Be=0)===ye?(Ue=138,3):ce===ye?(Ue=6,3):(Ue=7,4)}}o(Ae);var I=!1;function E(S,P,oe,ge){G(S,(l<<1)+(ge?1:0),3),function(ce,Ee,ye,Be){ee(ce),H(ce,ye),H(ce,~ye),A.arraySet(ce.pending_buf,ce.window,Ee,ye,ce.pending),ce.pending+=ye}(S,P,oe)}i._tr_init=function(S){I||(function(){var P,oe,ge,ce,Ee,ye=new Array(w+1);for(ce=ge=0;ce<u-1;ce++)for(z[ce]=ge,P=0;P<1<<D[ce];P++)C[ge++]=ce;for(C[ge-1]=ce,ce=Ee=0;ce<16;ce++)for(Ae[ce]=Ee,P=0;P<1<<j[ce];P++)Q[Ee++]=ce;for(Ee>>=7;ce<c;ce++)for(Ae[ce]=Ee<<7,P=0;P<1<<j[ce]-7;P++)Q[256+Ee++]=ce;for(oe=0;oe<=w;oe++)ye[oe]=0;for(P=0;P<=143;)L[2*P+1]=8,P++,ye[8]++;for(;P<=255;)L[2*P+1]=9,P++,ye[9]++;for(;P<=279;)L[2*P+1]=7,P++,ye[7]++;for(;P<=287;)L[2*P+1]=8,P++,ye[8]++;for(O(L,h+1,ye),P=0;P<c;P++)x[2*P+1]=5,x[2*P]=J(P,5);Y=new $(L,D,f+1,h,w),V=new $(x,j,0,c,w),ie=new $(new Array(0),R,0,m,v)}(),I=!0),S.l_desc=new te(S.dyn_ltree,Y),S.d_desc=new te(S.dyn_dtree,V),S.bl_desc=new te(S.bl_tree,ie),S.bi_buf=0,S.bi_valid=0,U(S)},i._tr_stored_block=E,i._tr_flush_block=function(S,P,oe,ge){var ce,Ee,ye=0;0<S.level?(S.strm.data_type===2&&(S.strm.data_type=function(Be){var Ue,Oe=4093624447;for(Ue=0;Ue<=31;Ue++,Oe>>>=1)if(1&Oe&&Be.dyn_ltree[2*Ue]!==0)return s;if(Be.dyn_ltree[18]!==0||Be.dyn_ltree[20]!==0||Be.dyn_ltree[26]!==0)return a;for(Ue=32;Ue<f;Ue++)if(Be.dyn_ltree[2*Ue]!==0)return a;return s}(S)),me(S,S.l_desc),me(S,S.d_desc),ye=function(Be){var Ue;for(k(Be,Be.dyn_ltree,Be.l_desc.max_code),k(Be,Be.dyn_dtree,Be.d_desc.max_code),me(Be,Be.bl_desc),Ue=m-1;3<=Ue&&Be.bl_tree[2*ae[Ue]+1]===0;Ue--);return Be.opt_len+=3*(Ue+1)+5+5+4,Ue}(S),ce=S.opt_len+3+7>>>3,(Ee=S.static_len+3+7>>>3)<=ce&&(ce=Ee)):ce=Ee=oe+5,oe+4<=ce&&P!==-1?E(S,P,oe,ge):S.strategy===4||Ee===ce?(G(S,2+(ge?1:0),3),Z(S,L,x)):(G(S,4+(ge?1:0),3),function(Be,Ue,Oe,Me){var $e;for(G(Be,Ue-257,5),G(Be,Oe-1,5),G(Be,Me-4,4),$e=0;$e<Me;$e++)G(Be,Be.bl_tree[2*ae[$e]+1],3);pe(Be,Be.dyn_ltree,Ue-1),pe(Be,Be.dyn_dtree,Oe-1)}(S,S.l_desc.max_code+1,S.d_desc.max_code+1,ye+1),Z(S,S.dyn_ltree,S.dyn_dtree)),U(S),ge&&ee(S)},i._tr_tally=function(S,P,oe){return S.pending_buf[S.d_buf+2*S.last_lit]=P>>>8&255,S.pending_buf[S.d_buf+2*S.last_lit+1]=255&P,S.pending_buf[S.l_buf+S.last_lit]=255&oe,S.last_lit++,P===0?S.dyn_ltree[2*oe]++:(S.matches++,P--,S.dyn_ltree[2*(C[oe]+f+1)]++,S.dyn_dtree[2*F(P)]++),S.last_lit===S.lit_bufsize-1},i._tr_align=function(S){G(S,2,3),X(S,b,L),function(P){P.bi_valid===16?(H(P,P.bi_buf),P.bi_buf=0,P.bi_valid=0):8<=P.bi_valid&&(P.pending_buf[P.pending++]=255&P.bi_buf,P.bi_buf>>=8,P.bi_valid-=8)}(S)}},{"../utils/common":41}],53:[function(t,r,i){r.exports=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}},{}],54:[function(t,r,i){(function(A){(function(s,a){if(!s.setImmediate){var o,l,u,f,h=1,c={},m=!1,g=s.document,w=Object.getPrototypeOf&&Object.getPrototypeOf(s);w=w&&w.setTimeout?w:s,o={}.toString.call(s.process)==="[object process]"?function(B){Pt.nextTick(function(){v(B)})}:function(){if(s.postMessage&&!s.importScripts){var B=!0,T=s.onmessage;return s.onmessage=function(){B=!1},s.postMessage("","*"),s.onmessage=T,B}}()?(f="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",b,!1):s.attachEvent("onmessage",b),function(B){s.postMessage(f+B,"*")}):s.MessageChannel?((u=new MessageChannel).port1.onmessage=function(B){v(B.data)},function(B){u.port2.postMessage(B)}):g&&"onreadystatechange"in g.createElement("script")?(l=g.documentElement,function(B){var T=g.createElement("script");T.onreadystatechange=function(){v(B),T.onreadystatechange=null,l.removeChild(T),T=null},l.appendChild(T)}):function(B){setTimeout(v,0,B)},w.setImmediate=function(B){typeof B!="function"&&(B=new Function(""+B));for(var T=new Array(arguments.length-1),M=0;M<T.length;M++)T[M]=arguments[M+1];var D={callback:B,args:T};return c[h]=D,o(h),h++},w.clearImmediate=p}function p(B){delete c[B]}function v(B){if(m)setTimeout(v,0,B);else{var T=c[B];if(T){m=!0;try{(function(M){var D=M.callback,j=M.args;switch(j.length){case 0:D();break;case 1:D(j[0]);break;case 2:D(j[0],j[1]);break;case 3:D(j[0],j[1],j[2]);break;default:D.apply(a,j)}})(T)}finally{p(B),m=!1}}}}function b(B){B.source===s&&typeof B.data=="string"&&B.data.indexOf(f)===0&&v(+B.data.slice(f.length))}})(typeof self>"u"?A===void 0?this:A:self)}).call(this,typeof HA<"u"?HA:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}(im)),im.exports}var R7=Q7();const P7=t5(R7);var Fu={exports:{}},Am,kE;function k7(){if(kE)return Am;kE=1;var n={"&":"&",'"':""","'":"'","<":"<",">":">"};function e(t){return t&&t.replace?t.replace(/([&"<>'])/g,function(r,i){return n[i]}):t}return Am=e,Am}var DE;function D7(){if(DE)return Fu.exports;DE=1;var n=k7(),e=E0().Stream,t=" ";function r(l,u){typeof u!="object"&&(u={indent:u});var f=u.stream?new e:null,h="",c=!1,m=u.indent?u.indent===!0?t:u.indent:"",g=!0;function w(T){g?Pt.nextTick(T):T()}function p(T,M){if(M!==void 0&&(h+=M),T&&!c&&(f=f||new e,c=!0),T&&c){var D=h;w(function(){f.emit("data",D)}),h=""}}function v(T,M){a(p,s(T,m,m?1:0),M)}function b(){if(f){var T=h;w(function(){f.emit("data",T),f.emit("end"),f.readable=!1,f.emit("close")})}}function B(T){var M=T.encoding||"UTF-8",D={version:"1.0",encoding:M};T.standalone&&(D.standalone=T.standalone),v({"?xml":{_attr:D}}),h=h.replace("/>","?>")}return w(function(){g=!1}),u.declaration&&B(u.declaration),l&&l.forEach?l.forEach(function(T,M){var D;M+1===l.length&&(D=b),v(T,D)}):v(l,b),f?(f.readable=!0,f):h}function i(){var l=Array.prototype.slice.call(arguments),u={_elem:s(l)};return u.push=function(f){if(!this.append)throw new Error("not assigned to a parent!");var h=this,c=this._elem.indent;a(this.append,s(f,c,this._elem.icount+(c?1:0)),function(){h.append(!0)})},u.close=function(f){f!==void 0&&this.push(f),this.end&&this.end()},u}function A(l,u){return new Array(u||0).join(l||"")}function s(l,u,f){f=f||0;var h=A(u,f),c,m=l,g=!1;if(typeof l=="object"){var w=Object.keys(l);if(c=w[0],m=l[c],m&&m._elem)return m._elem.name=c,m._elem.icount=f,m._elem.indent=u,m._elem.indents=h,m._elem.interrupt=m,m._elem}var p=[],v=[],b;function B(T){var M=Object.keys(T);M.forEach(function(D){p.push(o(D,T[D]))})}switch(typeof m){case"object":if(m===null)break;m._attr&&B(m._attr),m._cdata&&v.push(("<![CDATA["+m._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),m.forEach&&(b=!1,v.push(""),m.forEach(function(T){if(typeof T=="object"){var M=Object.keys(T)[0];M=="_attr"?B(T._attr):v.push(s(T,u,f+1))}else v.pop(),b=!0,v.push(n(T))}),b||v.push(""));break;default:v.push(n(m))}return{name:c,interrupt:g,attributes:p,content:v,icount:f,indents:h,indent:u}}function a(l,u,f){if(typeof u!="object")return l(!1,u);var h=u.interrupt?1:u.content.length;function c(){for(;u.content.length;){var g=u.content.shift();if(g!==void 0){if(m(g))return;a(l,g)}}l(!1,(h>1?u.indents:"")+(u.name?"</"+u.name+">":"")+(u.indent&&!f?`
`:"")),f&&f()}function m(g){return g.interrupt?(g.interrupt.append=l,g.interrupt.end=c,g.interrupt=!1,l(!0),!0):!1}if(l(!1,u.indents+(u.name?"<"+u.name:"")+(u.attributes.length?" "+u.attributes.join(" "):"")+(h?u.name?">":"":u.name?"/>":"")+(u.indent&&h>1?`
`:"")),!h)return l(!1,u.indent?`
`:"");m(u)||c()}function o(l,u){return l+'="'+n(u)+'"'}return Fu.exports=r,Fu.exports.element=Fu.exports.Element=i,Fu.exports}var M7=D7();const Dr=t5(M7),_u=0,sm=32,H7=32,q7=(n,e)=>{const t=e.replace(/-/g,"");if(t.length!==H7)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);const i=t.replace(/(..)/g,"$1 ").trim().split(" ").map(o=>parseInt(o,16));i.reverse();const s=n.slice(_u,sm).map((o,l)=>o^i[l%i.length]),a=new Uint8Array(_u+s.length+Math.max(0,n.length-sm));return a.set(n.slice(0,_u)),a.set(s,_u),a.set(n.slice(sm),_u+s.length),a};class j7{format(e,t={stack:[]}){const r=e.prepForXml(t);if(r)return r;throw Error("XMLComponent did not format correctly")}}class K7{replace(e,t,r){let i=e;return t.forEach((A,s)=>{i=i.replace(new RegExp(`{${A.fileName}}`,"g"),(r+s).toString())}),i}getMediaData(e,t){return t.Array.filter(r=>e.search(`{${r.fileName}}`)>0)}}class V7{replace(e,t){let r=e;for(const i of t)r=r.replace(new RegExp(`{${i.reference}-${i.instance}}`,"g"),i.numId.toString());return r}}class G7{constructor(){He(this,"formatter"),He(this,"imageReplacer"),He(this,"numberingReplacer"),this.formatter=new j7,this.imageReplacer=new K7,this.numberingReplacer=new V7}compile(e,t,r=[]){const i=new P7,A=this.xmlifyFile(e,t),s=new Map(Object.entries(A));for(const[,a]of s)if(Array.isArray(a))for(const o of a)i.file(o.path,o.data);else i.file(a.path,a.data);for(const a of r)i.file(a.path,a.data);for(const a of e.Media.Array)a.type!=="svg"?i.file(`word/media/${a.fileName}`,a.data):(i.file(`word/media/${a.fileName}`,a.data),i.file(`word/media/${a.fallback.fileName}`,a.fallback.data));for(const{data:a,name:o,fontKey:l}of e.FontTable.fontOptionsWithKey){const[u]=o.split(".");i.file(`word/fonts/${u}.odttf`,q7(a,l))}return i}xmlifyFile(e,t){const r=e.Document.Relationships.RelationshipCount+1,i=Dr(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),A=e.Comments.Relationships.RelationshipCount+1,s=Dr(this.formatter.format(e.Comments,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),a=this.imageReplacer.getMediaData(i,e.Media),o=this.imageReplacer.getMediaData(s,e.Media);return{Relationships:{data:(a.forEach((l,u)=>{e.Document.Relationships.createRelationship(r+u,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${l.fileName}`)}),e.Document.Relationships.createRelationship(e.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),Dr(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const l=this.imageReplacer.replace(i,a,r);return this.numberingReplacer.replace(l,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const l=Dr(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(l,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Dr(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Dr(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Dr(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((l,u)=>{const f=Dr(this.formatter.format(l.View,{viewWrapper:l,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(f,e.Media).forEach((c,m)=>{l.Relationships.createRelationship(m,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${c.fileName}`)}),{data:Dr(this.formatter.format(l.Relationships,{viewWrapper:l,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${u+1}.xml.rels`}}),FooterRelationships:e.Footers.map((l,u)=>{const f=Dr(this.formatter.format(l.View,{viewWrapper:l,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(f,e.Media).forEach((c,m)=>{l.Relationships.createRelationship(m,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${c.fileName}`)}),{data:Dr(this.formatter.format(l.Relationships,{viewWrapper:l,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${u+1}.xml.rels`}}),Headers:e.Headers.map((l,u)=>{const f=Dr(this.formatter.format(l.View,{viewWrapper:l,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),h=this.imageReplacer.getMediaData(f,e.Media),c=this.imageReplacer.replace(f,h,0);return{data:this.numberingReplacer.replace(c,e.Numbering.ConcreteNumbering),path:`word/header${u+1}.xml`}}),Footers:e.Footers.map((l,u)=>{const f=Dr(this.formatter.format(l.View,{viewWrapper:l,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),h=this.imageReplacer.getMediaData(f,e.Media),c=this.imageReplacer.replace(f,h,0);return{data:this.numberingReplacer.replace(c,e.Numbering.ConcreteNumbering),path:`word/footer${u+1}.xml`}}),ContentTypes:{data:Dr(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Dr(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Dr(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Dr(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Dr(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Dr(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:(()=>{const l=this.imageReplacer.replace(s,o,A);return this.numberingReplacer.replace(l,e.Numbering.ConcreteNumbering)})(),path:"word/comments.xml"},CommentsRelationships:{data:(o.forEach((l,u)=>{e.Comments.Relationships.createRelationship(A+u,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${l.fileName}`)}),Dr(this.formatter.format(e.Comments.Relationships,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/comments.xml.rels"},FontTable:{data:Dr(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:Dr(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}}const z7={WITH_2_BLANKS:" "},ME=n=>n===!0?z7.WITH_2_BLANKS:n===!1?void 0:n,HE=class jl{static pack(e,t,r){return CQ(this,arguments,function*(i,A,s,a=[]){return this.compiler.compile(i,ME(s),a).generateAsync({type:A,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toString(e,t,r=[]){return jl.pack(e,"string",t,r)}static toBuffer(e,t,r=[]){return jl.pack(e,"nodebuffer",t,r)}static toBase64String(e,t,r=[]){return jl.pack(e,"base64",t,r)}static toBlob(e,t,r=[]){return jl.pack(e,"blob",t,r)}static toArrayBuffer(e,t,r=[]){return jl.pack(e,"arraybuffer",t,r)}static toStream(e,t,r=[]){const i=new O7.Stream;return this.compiler.compile(e,ME(t),r).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(s=>{i.emit("data",s),i.emit("end")}),i}};He(HE,"compiler",new G7);let W7=HE;const qE=async(n,e="document")=>{const t=n.querySelector(".ql-editor");if(!t){console.error("Quill editor not found");return}try{const r=X7(t),i=new L7({numbering:{config:[{reference:"my-crazy-numbering",levels:[{level:0,format:"decimal",text:"%1.",alignment:hA.LEFT}]}]},sections:[{children:r}]}),A=await W7.toBlob(i);mQ.saveAs(A,`${e}.docx`)}catch(r){console.error("Error creating DOCX:",r)}};function X7(n){const e=Array.from(n.children),t=[];return e.forEach(r=>{if(r.tagName==="P"){const i=am(r),A=om(r);t.push(new aa({children:i,alignment:A,spacing:{after:200}}))}else if(r.tagName==="UL"||r.tagName==="OL"){const i=r.tagName==="OL",A=om(r);Array.from(r.children).filter(a=>a.tagName==="LI").forEach(a=>{const o=om(a)||A,l=am(a);t.push(new aa({children:l,bullet:i?void 0:{level:0},numbering:i?{reference:"my-crazy-numbering",level:0}:void 0,alignment:o,spacing:{after:100}}))})}else if(r.tagName==="BR")t.push(new aa({children:[new sa({break:1})],spacing:{after:200}}));else{const i=am(r);t.push(new aa({children:i,spacing:{after:200}}))}}),t.length===0&&(n.innerText||"").split(`
`).forEach(A=>{t.push(new aa({children:[new sa(A.trim())],spacing:{after:200}}))}),t}function am(n){const e=[],t={"ql-font-arial":"Arial","ql-font-times-new-roman":"Times New Roman","ql-font-georgia":"Georgia","ql-font-verdana":"Verdana","ql-font-tahoma":"Tahoma","ql-font-comic-sans":"Comic Sans MS","ql-font-roboto":"Roboto","ql-font-ubuntu":"Ubuntu"},r={"ql-size-small":16,"ql-size-large":32,"ql-size-huge":50};function i(A,s={}){if(A.nodeType===Node.TEXT_NODE){const a=A.textContent;a&&a.length>0&&a.split(/(\n)/).forEach(l=>{l===`
`?e.push(new sa({break:1,...s})):l.length>0&&e.push(new sa({text:l,...s}))})}else if(A.nodeType===Node.ELEMENT_NODE){const a=window.getComputedStyle(A),o=A.tagName==="STRONG"||A.tagName==="B"||A.classList.contains("ql-bold")||a.fontWeight==="bold"||parseInt(a.fontWeight,10)>=600,l=A.tagName==="EM"||A.tagName==="I"||A.classList.contains("ql-italic")||a.fontStyle==="italic",u=A.tagName==="U"||A.classList.contains("ql-underline")||a.textDecorationLine.includes("underline");let f;for(const g of A.classList)if(t[g]){f=t[g];break}if(!f){let g=a.fontFamily||void 0;g&&(g.includes("Arial")?f="Arial":g.includes("Times")?f="Times New Roman":g.includes("Georgia")?f="Georgia":g.includes("Verdana")?f="Verdana":g.includes("Tahoma")?f="Tahoma":g.includes("Comic Sans")?f="Comic Sans MS":g.includes("Roboto")?f="Roboto":g.includes("Ubuntu")?f="Ubuntu":f=void 0)}let h;for(const g of A.classList)if(r[g]){h=r[g];break}const c=a.color?Y7(a.color):void 0,m={...o?{bold:!0}:{},...l?{italics:!0}:{},...u?{underline:!0}:{},...f?{font:f}:{},...h?{size:h}:{},...c?{color:c}:{},...s};if(A.tagName==="BR")e.push(new sa({break:1,...m}));else for(const g of A.childNodes)i(g,m)}}for(const A of n.childNodes)i(A);return e.length>0?e:[new sa(n.textContent||"")]}function Y7(n){const e=n.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(e)return((1<<24)+(parseInt(e[1])<<16)+(parseInt(e[2])<<8)+parseInt(e[3])).toString(16).slice(1).toUpperCase()}function om(n){return n.classList.contains("ql-align-center")?"center":n.classList.contains("ql-align-right")?"right":n.classList.contains("ql-align-justify")?"justify":"left"}const $7="/FilePdf.svg",J7="/FileDoc.svg",Z7="/Printer.svg",eD=({value:n,onChange:e,options:t,label:r})=>{const[i,A]=mr.useState(!1),s=mr.useRef(null);mr.useEffect(()=>{const l=u=>{s.current&&!s.current.contains(u.target)&&A(!1)};return document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[]);const a=l=>{e(l),A(!1)},o=t.find(l=>l.value===n)?.label||n;return wt.jsxs("div",{className:"relative",ref:s,children:[wt.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:r}),wt.jsxs("div",{className:"w-full border rounded px-3 py-2 text-sm bg-white cursor-pointer flex justify-between items-center transition-all duration-200 hover:border-blue-400",onClick:()=>A(!i),children:[wt.jsx("span",{children:o}),wt.jsx("svg",{className:`w-4 h-4 text-gray-500 transition-transform duration-200 ${i?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:wt.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),i&&wt.jsx("ul",{className:"absolute top-full left-0 right-0 bg-white border rounded shadow-lg mt-1 z-50 max-h-48 overflow-y-auto transform origin-top transition-all duration-300 ease-out",style:{opacity:i?1:0,transform:i?"scaleY(1)":"scaleY(0.95)"},children:t.map(l=>wt.jsx("li",{className:"px-3 py-2 hover:bg-gray-100 cursor-pointer",onClick:()=>a(l.value),children:l.label},l.value))}),wt.jsx("select",{className:"sr-only",value:n,onChange:l=>e(l.target.value),children:t.map(l=>wt.jsx("option",{value:l.value,children:l.label},l.value))})]})},jE=({previewRef:n,logo:e})=>{const[t,r]=mr.useState(!1),[i,A]=mr.useState("a4"),[s,a]=mr.useState("Document"),o=f=>{const h=n.current;if(!h){console.error("Preview content is not ready.");return}f==="pdf"?JB(h,i,s):qE(h,s),r(!1)},l=()=>{const f=n.current;if(!f){console.error("Preview content is not ready.");return}const h=window.open("","","height=800,width=600");h&&(h.document.write("<html><head><title>Print</title>"),h.document.write(`
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<style>
@page {
margin: 32px 30px;
}
body {
font-family: sans-serif;
margin: 40px;
padding: 0;
}
@media print {
body {
zoom: 80%;
}
}
</style>
`),h.document.write("</head><body>"),h.document.write(f.innerHTML),h.document.write("</body></html>"),h.document.close(),h.focus(),setTimeout(()=>{h.print(),h.close()},500))},u=[{value:"a4",label:"A4"},{value:"letter",label:"Letter"},{value:"legal",label:"Legal"}];return wt.jsxs(wt.Fragment,{children:[wt.jsx("div",{className:"fixed top-0 left-0 right-0 z-10 bg-gray-100 shadow-md",children:wt.jsxs("div",{className:"flex items-center justify-between px-4 py-3 mx-auto w-full md:w-4/5 lg:w-4/5 xl:w-2/3 2xl:w-1/2 max-w-[1440px]",children:[wt.jsx("img",{src:e,alt:"Logo",className:"w-10 h-10"}),wt.jsx("button",{onClick:()=>r(!0),className:"bg-purple-600 text-white px-4 py-2 rounded-md shadow hover:bg-purple-700 transition",children:"Download Options"})]})}),t&&wt.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-40",style:{backdropFilter:"blur(5px)",backgroundColor:"rgba(0, 0, 0, 0.4)"},onClick:()=>r(!1),children:wt.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-lg w-80 relative z-50",onClick:f=>f.stopPropagation(),children:[wt.jsx("h2",{className:"text-lg font-semibold mb-4 text-gray-800",children:"Export Options"}),wt.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"File Name"}),wt.jsx("input",{type:"text",value:s,onChange:f=>a(f.target.value),placeholder:"Enter file name",className:"w-full border px-3 py-2 text-sm rounded mb-4"}),wt.jsx(eD,{label:"Paper Size (PDF)",value:i,onChange:A,options:u}),wt.jsx("button",{onClick:()=>o("pdf"),className:"w-full bg-blue-600 text-white py-2 px-4 rounded mt-4 mb-2 hover:bg-blue-700 transition",children:wt.jsxs("div",{className:"flex items-center justify-center gap-2",children:[wt.jsx("img",{src:$7,alt:"PDF Icon",className:"w-5 h-5"}),wt.jsx("p",{children:"Export as PDF"})]})}),wt.jsx("button",{onClick:()=>o("doc"),className:"w-full bg-green-600 text-white py-2 px-4 rounded mb-2 hover:bg-green-700 transition",children:wt.jsxs("div",{className:"flex items-center justify-center gap-2",children:[wt.jsx("img",{src:J7,alt:"Doc Icon",className:"w-5 h-5"}),wt.jsx("p",{children:"Export as DOC"})]})}),wt.jsx("button",{onClick:l,className:"w-full bg-gray-600 text-white py-2 px-4 rounded hover:bg-gray-700 transition",children:wt.jsxs("div",{className:"flex items-center justify-center gap-2",children:[wt.jsx("img",{src:Z7,alt:"Print Icon",className:"w-5 h-5"}),wt.jsx("p",{children:" Print"})]})})]})})]})};var KE=typeof global=="object"&&global&&global.Object===Object&&global,tD=typeof self=="object"&&self&&self.Object===Object&&self,zA=KE||tD||Function("return this")(),la=zA.Symbol,VE=Object.prototype,rD=VE.hasOwnProperty,nD=VE.toString,Tu=la?la.toStringTag:void 0;function iD(n){var e=rD.call(n,Tu),t=n[Tu];try{n[Tu]=void 0;var r=!0}catch{}var i=nD.call(n);return r&&(e?n[Tu]=t:delete n[Tu]),i}var AD=Object.prototype,sD=AD.toString;function aD(n){return sD.call(n)}var oD="[object Null]",lD="[object Undefined]",GE=la?la.toStringTag:void 0;function fl(n){return n==null?n===void 0?lD:oD:GE&&GE in Object(n)?iD(n):aD(n)}function ws(n){return n!=null&&typeof n=="object"}var ro=Array.isArray;function ua(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function zE(n){return n}var uD="[object AsyncFunction]",cD="[object Function]",fD="[object GeneratorFunction]",hD="[object Proxy]";function lm(n){if(!ua(n))return!1;var e=fl(n);return e==cD||e==fD||e==uD||e==hD}var um=zA["__core-js_shared__"],WE=function(){var n=/[^.]+$/.exec(um&&um.keys&&um.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function dD(n){return!!WE&&WE in n}var pD=Function.prototype,gD=pD.toString;function no(n){if(n!=null){try{return gD.call(n)}catch{}try{return n+""}catch{}}return""}var mD=/[\\^$.*+?()[\]{}|]/g,vD=/^\[object .+?Constructor\]$/,wD=Function.prototype,yD=Object.prototype,bD=wD.toString,BD=yD.hasOwnProperty,CD=RegExp("^"+bD.call(BD).replace(mD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ED(n){if(!ua(n)||dD(n))return!1;var e=lm(n)?CD:vD;return e.test(no(n))}function xD(n,e){return n?.[e]}function io(n,e){var t=xD(n,e);return ED(t)?t:void 0}var cm=io(zA,"WeakMap"),XE=Object.create,SD=function(){function n(){}return function(e){if(!ua(e))return{};if(XE)return XE(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();function FD(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function _D(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var TD=800,ID=16,UD=Date.now;function ND(n){var e=0,t=0;return function(){var r=UD(),i=ID-(r-t);if(t=r,i>0){if(++e>=TD)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function LD(n){return function(){return n}}var lh=function(){try{var n=io(Object,"defineProperty");return n({},"",{}),n}catch{}}(),OD=lh?function(n,e){return lh(n,"toString",{configurable:!0,enumerable:!1,value:LD(e),writable:!0})}:zE,QD=ND(OD);function RD(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var PD=9007199254740991,kD=/^(?:0|[1-9]\d*)$/;function YE(n,e){var t=typeof n;return e=e??PD,!!e&&(t=="number"||t!="symbol"&&kD.test(n))&&n>-1&&n%1==0&&n<e}function fm(n,e,t){e=="__proto__"&&lh?lh(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function Iu(n,e){return n===e||n!==n&&e!==e}var DD=Object.prototype,MD=DD.hasOwnProperty;function $E(n,e,t){var r=n[e];(!(MD.call(n,e)&&Iu(r,t))||t===void 0&&!(e in n))&&fm(n,e,t)}function HD(n,e,t,r){var i=!t;t||(t={});for(var A=-1,s=e.length;++A<s;){var a=e[A],o=void 0;o===void 0&&(o=n[a]),i?fm(t,a,o):$E(t,a,o)}return t}var JE=Math.max;function qD(n,e,t){return e=JE(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,A=JE(r.length-e,0),s=Array(A);++i<A;)s[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=t(s),FD(n,this,a)}}function jD(n,e){return QD(qD(n,e,zE),n+"")}var KD=9007199254740991;function ZE(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=KD}function uh(n){return n!=null&&ZE(n.length)&&!lm(n)}function VD(n,e,t){if(!ua(t))return!1;var r=typeof e;return(r=="number"?uh(t)&&YE(e,t.length):r=="string"&&e in t)?Iu(t[e],n):!1}function GD(n){return jD(function(e,t){var r=-1,i=t.length,A=i>1?t[i-1]:void 0,s=i>2?t[2]:void 0;for(A=n.length>3&&typeof A=="function"?(i--,A):void 0,s&&VD(t[0],t[1],s)&&(A=i<3?void 0:A,i=1),e=Object(e);++r<i;){var a=t[r];a&&n(e,a,r,A)}return e})}var zD=Object.prototype;function hm(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||zD;return n===t}function WD(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var XD="[object Arguments]";function e4(n){return ws(n)&&fl(n)==XD}var t4=Object.prototype,YD=t4.hasOwnProperty,$D=t4.propertyIsEnumerable,dm=e4(function(){return arguments}())?e4:function(n){return ws(n)&&YD.call(n,"callee")&&!$D.call(n,"callee")};function JD(){return!1}var r4=typeof Er=="object"&&Er&&!Er.nodeType&&Er,n4=r4&&typeof module=="object"&&module&&!module.nodeType&&module,ZD=n4&&n4.exports===r4,i4=ZD?zA.Buffer:void 0,eM=i4?i4.isBuffer:void 0,Uu=eM||JD,tM="[object Arguments]",rM="[object Array]",nM="[object Boolean]",iM="[object Date]",AM="[object Error]",sM="[object Function]",aM="[object Map]",oM="[object Number]",lM="[object Object]",uM="[object RegExp]",cM="[object Set]",fM="[object String]",hM="[object WeakMap]",dM="[object ArrayBuffer]",pM="[object DataView]",gM="[object Float32Array]",mM="[object Float64Array]",vM="[object Int8Array]",wM="[object Int16Array]",yM="[object Int32Array]",bM="[object Uint8Array]",BM="[object Uint8ClampedArray]",CM="[object Uint16Array]",EM="[object Uint32Array]",Sr={};Sr[gM]=Sr[mM]=Sr[vM]=Sr[wM]=Sr[yM]=Sr[bM]=Sr[BM]=Sr[CM]=Sr[EM]=!0,Sr[tM]=Sr[rM]=Sr[dM]=Sr[nM]=Sr[pM]=Sr[iM]=Sr[AM]=Sr[sM]=Sr[aM]=Sr[oM]=Sr[lM]=Sr[uM]=Sr[cM]=Sr[fM]=Sr[hM]=!1;function xM(n){return ws(n)&&ZE(n.length)&&!!Sr[fl(n)]}function pm(n){return function(e){return n(e)}}var A4=typeof Er=="object"&&Er&&!Er.nodeType&&Er,Nu=A4&&typeof module=="object"&&module&&!module.nodeType&&module,SM=Nu&&Nu.exports===A4,gm=SM&&KE.process,hl=function(){try{var n=Nu&&Nu.require&&Nu.require("util").types;return n||gm&&gm.binding&&gm.binding("util")}catch{}}(),s4=hl&&hl.isTypedArray,mm=s4?pm(s4):xM,FM=Object.prototype,_M=FM.hasOwnProperty;function a4(n,e){var t=ro(n),r=!t&&dm(n),i=!t&&!r&&Uu(n),A=!t&&!r&&!i&&mm(n),s=t||r||i||A,a=s?WD(n.length,String):[],o=a.length;for(var l in n)(e||_M.call(n,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||A&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||YE(l,o)))&&a.push(l);return a}function o4(n,e){return function(t){return n(e(t))}}var TM=o4(Object.keys,Object),IM=Object.prototype,UM=IM.hasOwnProperty;function NM(n){if(!hm(n))return TM(n);var e=[];for(var t in Object(n))UM.call(n,t)&&t!="constructor"&&e.push(t);return e}function LM(n){return uh(n)?a4(n):NM(n)}function OM(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var QM=Object.prototype,RM=QM.hasOwnProperty;function PM(n){if(!ua(n))return OM(n);var e=hm(n),t=[];for(var r in n)r=="constructor"&&(e||!RM.call(n,r))||t.push(r);return t}function l4(n){return uh(n)?a4(n,!0):PM(n)}var Lu=io(Object,"create");function kM(){this.__data__=Lu?Lu(null):{},this.size=0}function DM(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var MM="__lodash_hash_undefined__",HM=Object.prototype,qM=HM.hasOwnProperty;function jM(n){var e=this.__data__;if(Lu){var t=e[n];return t===MM?void 0:t}return qM.call(e,n)?e[n]:void 0}var KM=Object.prototype,VM=KM.hasOwnProperty;function GM(n){var e=this.__data__;return Lu?e[n]!==void 0:VM.call(e,n)}var zM="__lodash_hash_undefined__";function WM(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Lu&&e===void 0?zM:e,this}function Ao(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Ao.prototype.clear=kM,Ao.prototype.delete=DM,Ao.prototype.get=jM,Ao.prototype.has=GM,Ao.prototype.set=WM;function XM(){this.__data__=[],this.size=0}function ch(n,e){for(var t=n.length;t--;)if(Iu(n[t][0],e))return t;return-1}var YM=Array.prototype,$M=YM.splice;function JM(n){var e=this.__data__,t=ch(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():$M.call(e,t,1),--this.size,!0}function ZM(n){var e=this.__data__,t=ch(e,n);return t<0?void 0:e[t][1]}function eH(n){return ch(this.__data__,n)>-1}function tH(n,e){var t=this.__data__,r=ch(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function ys(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}ys.prototype.clear=XM,ys.prototype.delete=JM,ys.prototype.get=ZM,ys.prototype.has=eH,ys.prototype.set=tH;var Ou=io(zA,"Map");function rH(){this.size=0,this.__data__={hash:new Ao,map:new(Ou||ys),string:new Ao}}function nH(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function fh(n,e){var t=n.__data__;return nH(e)?t[typeof e=="string"?"string":"hash"]:t.map}function iH(n){var e=fh(this,n).delete(n);return this.size-=e?1:0,e}function AH(n){return fh(this,n).get(n)}function sH(n){return fh(this,n).has(n)}function aH(n,e){var t=fh(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function so(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}so.prototype.clear=rH,so.prototype.delete=iH,so.prototype.get=AH,so.prototype.has=sH,so.prototype.set=aH;function oH(n,e){for(var t=-1,r=e.length,i=n.length;++t<r;)n[i+t]=e[t];return n}var u4=o4(Object.getPrototypeOf,Object),lH="[object Object]",uH=Function.prototype,cH=Object.prototype,c4=uH.toString,fH=cH.hasOwnProperty,hH=c4.call(Object);function dH(n){if(!ws(n)||fl(n)!=lH)return!1;var e=u4(n);if(e===null)return!0;var t=fH.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&c4.call(t)==hH}function pH(){this.__data__=new ys,this.size=0}function gH(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function mH(n){return this.__data__.get(n)}function vH(n){return this.__data__.has(n)}var wH=200;function yH(n,e){var t=this.__data__;if(t instanceof ys){var r=t.__data__;if(!Ou||r.length<wH-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new so(r)}return t.set(n,e),this.size=t.size,this}function WA(n){var e=this.__data__=new ys(n);this.size=e.size}WA.prototype.clear=pH,WA.prototype.delete=gH,WA.prototype.get=mH,WA.prototype.has=vH,WA.prototype.set=yH;var f4=typeof Er=="object"&&Er&&!Er.nodeType&&Er,h4=f4&&typeof module=="object"&&module&&!module.nodeType&&module,bH=h4&&h4.exports===f4,d4=bH?zA.Buffer:void 0,p4=d4?d4.allocUnsafe:void 0;function g4(n,e){if(e)return n.slice();var t=n.length,r=p4?p4(t):new n.constructor(t);return n.copy(r),r}function BH(n,e){for(var t=-1,r=n==null?0:n.length,i=0,A=[];++t<r;){var s=n[t];e(s,t,n)&&(A[i++]=s)}return A}function CH(){return[]}var EH=Object.prototype,xH=EH.propertyIsEnumerable,m4=Object.getOwnPropertySymbols,SH=m4?function(n){return n==null?[]:(n=Object(n),BH(m4(n),function(e){return xH.call(n,e)}))}:CH;function FH(n,e,t){var r=e(n);return ro(n)?r:oH(r,t(n))}function vm(n){return FH(n,LM,SH)}var wm=io(zA,"DataView"),ym=io(zA,"Promise"),bm=io(zA,"Set"),v4="[object Map]",_H="[object Object]",w4="[object Promise]",y4="[object Set]",b4="[object WeakMap]",B4="[object DataView]",TH=no(wm),IH=no(Ou),UH=no(ym),NH=no(bm),LH=no(cm),pA=fl;(wm&&pA(new wm(new ArrayBuffer(1)))!=B4||Ou&&pA(new Ou)!=v4||ym&&pA(ym.resolve())!=w4||bm&&pA(new bm)!=y4||cm&&pA(new cm)!=b4)&&(pA=function(n){var e=fl(n),t=e==_H?n.constructor:void 0,r=t?no(t):"";if(r)switch(r){case TH:return B4;case IH:return v4;case UH:return w4;case NH:return y4;case LH:return b4}return e});var OH=Object.prototype,QH=OH.hasOwnProperty;function RH(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&QH.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var hh=zA.Uint8Array;function Bm(n){var e=new n.constructor(n.byteLength);return new hh(e).set(new hh(n)),e}function PH(n,e){var t=Bm(n.buffer);return new n.constructor(t,n.byteOffset,n.byteLength)}var kH=/\w*$/;function DH(n){var e=new n.constructor(n.source,kH.exec(n));return e.lastIndex=n.lastIndex,e}var C4=la?la.prototype:void 0,E4=C4?C4.valueOf:void 0;function MH(n){return E4?Object(E4.call(n)):{}}function x4(n,e){var t=e?Bm(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var HH="[object Boolean]",qH="[object Date]",jH="[object Map]",KH="[object Number]",VH="[object RegExp]",GH="[object Set]",zH="[object String]",WH="[object Symbol]",XH="[object ArrayBuffer]",YH="[object DataView]",$H="[object Float32Array]",JH="[object Float64Array]",ZH="[object Int8Array]",e9="[object Int16Array]",t9="[object Int32Array]",r9="[object Uint8Array]",n9="[object Uint8ClampedArray]",i9="[object Uint16Array]",A9="[object Uint32Array]";function s9(n,e,t){var r=n.constructor;switch(e){case XH:return Bm(n);case HH:case qH:return new r(+n);case YH:return PH(n);case $H:case JH:case ZH:case e9:case t9:case r9:case n9:case i9:case A9:return x4(n,t);case jH:return new r;case KH:case zH:return new r(n);case VH:return DH(n);case GH:return new r;case WH:return MH(n)}}function S4(n){return typeof n.constructor=="function"&&!hm(n)?SD(u4(n)):{}}var a9="[object Map]";function o9(n){return ws(n)&&pA(n)==a9}var F4=hl&&hl.isMap,l9=F4?pm(F4):o9,u9="[object Set]";function c9(n){return ws(n)&&pA(n)==u9}var _4=hl&&hl.isSet,f9=_4?pm(_4):c9,h9=1,T4="[object Arguments]",d9="[object Array]",p9="[object Boolean]",g9="[object Date]",m9="[object Error]",I4="[object Function]",v9="[object GeneratorFunction]",w9="[object Map]",y9="[object Number]",U4="[object Object]",b9="[object RegExp]",B9="[object Set]",C9="[object String]",E9="[object Symbol]",x9="[object WeakMap]",S9="[object ArrayBuffer]",F9="[object DataView]",_9="[object Float32Array]",T9="[object Float64Array]",I9="[object Int8Array]",U9="[object Int16Array]",N9="[object Int32Array]",L9="[object Uint8Array]",O9="[object Uint8ClampedArray]",Q9="[object Uint16Array]",R9="[object Uint32Array]",wr={};wr[T4]=wr[d9]=wr[S9]=wr[F9]=wr[p9]=wr[g9]=wr[_9]=wr[T9]=wr[I9]=wr[U9]=wr[N9]=wr[w9]=wr[y9]=wr[U4]=wr[b9]=wr[B9]=wr[C9]=wr[E9]=wr[L9]=wr[O9]=wr[Q9]=wr[R9]=!0,wr[m9]=wr[I4]=wr[x9]=!1;function dh(n,e,t,r,i,A){var s,a=e&h9;if(s!==void 0)return s;if(!ua(n))return n;var o=ro(n);if(o)s=RH(n);else{var l=pA(n),u=l==I4||l==v9;if(Uu(n))return g4(n,a);if(l==U4||l==T4||u&&!i)s=u?{}:S4(n);else{if(!wr[l])return i?n:{};s=s9(n,l,a)}}A||(A=new WA);var f=A.get(n);if(f)return f;A.set(n,s),f9(n)?n.forEach(function(m){s.add(dh(m,e,t,m,n,A))}):l9(n)&&n.forEach(function(m,g){s.set(g,dh(m,e,t,g,n,A))});var h=vm,c=o?void 0:h(n);return RD(c||n,function(m,g){c&&(g=m,m=n[g]),$E(s,g,dh(m,e,t,g,n,A))}),s}var P9=1,k9=4;function dl(n){return dh(n,P9|k9)}var D9="__lodash_hash_undefined__";function M9(n){return this.__data__.set(n,D9),this}function H9(n){return this.__data__.has(n)}function ph(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new so;++e<t;)this.add(n[e])}ph.prototype.add=ph.prototype.push=M9,ph.prototype.has=H9;function q9(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function j9(n,e){return n.has(e)}var K9=1,V9=2;function N4(n,e,t,r,i,A){var s=t&K9,a=n.length,o=e.length;if(a!=o&&!(s&&o>a))return!1;var l=A.get(n),u=A.get(e);if(l&&u)return l==e&&u==n;var f=-1,h=!0,c=t&V9?new ph:void 0;for(A.set(n,e),A.set(e,n);++f<a;){var m=n[f],g=e[f];if(r)var w=s?r(g,m,f,e,n,A):r(m,g,f,n,e,A);if(w!==void 0){if(w)continue;h=!1;break}if(c){if(!q9(e,function(p,v){if(!j9(c,v)&&(m===p||i(m,p,t,r,A)))return c.push(v)})){h=!1;break}}else if(!(m===g||i(m,g,t,r,A))){h=!1;break}}return A.delete(n),A.delete(e),h}function G9(n){var e=-1,t=Array(n.size);return n.forEach(function(r,i){t[++e]=[i,r]}),t}function z9(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var W9=1,X9=2,Y9="[object Boolean]",$9="[object Date]",J9="[object Error]",Z9="[object Map]",eq="[object Number]",tq="[object RegExp]",rq="[object Set]",nq="[object String]",iq="[object Symbol]",Aq="[object ArrayBuffer]",sq="[object DataView]",L4=la?la.prototype:void 0,Cm=L4?L4.valueOf:void 0;function aq(n,e,t,r,i,A,s){switch(t){case sq:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case Aq:return!(n.byteLength!=e.byteLength||!A(new hh(n),new hh(e)));case Y9:case $9:case eq:return Iu(+n,+e);case J9:return n.name==e.name&&n.message==e.message;case tq:case nq:return n==e+"";case Z9:var a=G9;case rq:var o=r&W9;if(a||(a=z9),n.size!=e.size&&!o)return!1;var l=s.get(n);if(l)return l==e;r|=X9,s.set(n,e);var u=N4(a(n),a(e),r,i,A,s);return s.delete(n),u;case iq:if(Cm)return Cm.call(n)==Cm.call(e)}return!1}var oq=1,lq=Object.prototype,uq=lq.hasOwnProperty;function cq(n,e,t,r,i,A){var s=t&oq,a=vm(n),o=a.length,l=vm(e),u=l.length;if(o!=u&&!s)return!1;for(var f=o;f--;){var h=a[f];if(!(s?h in e:uq.call(e,h)))return!1}var c=A.get(n),m=A.get(e);if(c&&m)return c==e&&m==n;var g=!0;A.set(n,e),A.set(e,n);for(var w=s;++f<o;){h=a[f];var p=n[h],v=e[h];if(r)var b=s?r(v,p,h,e,n,A):r(p,v,h,n,e,A);if(!(b===void 0?p===v||i(p,v,t,r,A):b)){g=!1;break}w||(w=h=="constructor")}if(g&&!w){var B=n.constructor,T=e.constructor;B!=T&&"constructor"in n&&"constructor"in e&&!(typeof B=="function"&&B instanceof B&&typeof T=="function"&&T instanceof T)&&(g=!1)}return A.delete(n),A.delete(e),g}var fq=1,O4="[object Arguments]",Q4="[object Array]",gh="[object Object]",hq=Object.prototype,R4=hq.hasOwnProperty;function dq(n,e,t,r,i,A){var s=ro(n),a=ro(e),o=s?Q4:pA(n),l=a?Q4:pA(e);o=o==O4?gh:o,l=l==O4?gh:l;var u=o==gh,f=l==gh,h=o==l;if(h&&Uu(n)){if(!Uu(e))return!1;s=!0,u=!1}if(h&&!u)return A||(A=new WA),s||mm(n)?N4(n,e,t,r,i,A):aq(n,e,o,t,r,i,A);if(!(t&fq)){var c=u&&R4.call(n,"__wrapped__"),m=f&&R4.call(e,"__wrapped__");if(c||m){var g=c?n.value():n,w=m?e.value():e;return A||(A=new WA),i(g,w,t,r,A)}}return h?(A||(A=new WA),cq(n,e,t,r,i,A)):!1}function P4(n,e,t,r,i){return n===e?!0:n==null||e==null||!ws(n)&&!ws(e)?n!==n&&e!==e:dq(n,e,t,r,P4,i)}function pq(n){return function(e,t,r){for(var i=-1,A=Object(e),s=r(e),a=s.length;a--;){var o=s[++i];if(t(A[o],o,A)===!1)break}return e}}var gq=pq();function Em(n,e,t){(t!==void 0&&!Iu(n[e],t)||t===void 0&&!(e in n))&&fm(n,e,t)}function mq(n){return ws(n)&&uh(n)}function xm(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function vq(n){return HD(n,l4(n))}function wq(n,e,t,r,i,A,s){var a=xm(n,t),o=xm(e,t),l=s.get(o);if(l){Em(n,t,l);return}var u=A?A(a,o,t+"",n,e,s):void 0,f=u===void 0;if(f){var h=ro(o),c=!h&&Uu(o),m=!h&&!c&&mm(o);u=o,h||c||m?ro(a)?u=a:mq(a)?u=_D(a):c?(f=!1,u=g4(o,!0)):m?(f=!1,u=x4(o,!0)):u=[]:dH(o)||dm(o)?(u=a,dm(a)?u=vq(a):(!ua(a)||lm(a))&&(u=S4(o))):f=!1}f&&(s.set(o,u),i(u,o,r,A,s),s.delete(o)),Em(n,t,u)}function k4(n,e,t,r,i){n!==e&&gq(e,function(A,s){if(i||(i=new WA),ua(A))wq(n,e,s,t,k4,r,i);else{var a=r?r(xm(n,s),A,s+"",n,e,i):void 0;a===void 0&&(a=A),Em(n,s,a)}},l4)}function ca(n,e){return P4(n,e)}var fa=GD(function(n,e,t){k4(n,e,t)}),ht=(n=>(n[n.TYPE=3]="TYPE",n[n.LEVEL=12]="LEVEL",n[n.ATTRIBUTE=13]="ATTRIBUTE",n[n.BLOT=14]="BLOT",n[n.INLINE=7]="INLINE",n[n.BLOCK=11]="BLOCK",n[n.BLOCK_BLOT=10]="BLOCK_BLOT",n[n.INLINE_BLOT=6]="INLINE_BLOT",n[n.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",n[n.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",n[n.ANY=15]="ANY",n))(ht||{});class XA{constructor(e,t,r={}){this.attrName=e,this.keyName=t;const i=ht.TYPE&ht.ATTRIBUTE;this.scope=r.scope!=null?r.scope&ht.LEVEL|i:ht.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class pl extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const D4=class r2{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,t)}return null}create(e,t,r){const i=this.query(t);if(i==null)throw new pl(`Unable to create ${t} blot`);const A=i,s=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:A.create(r),a=new A(e,s,r);return r2.blots.set(a.domNode,a),a}find(e,t=!1){return r2.find(e,t)}query(e,t=ht.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&ht.LEVEL&ht.BLOCK?r=this.types.block:e&ht.LEVEL&ht.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(i=>(r=this.classes[i],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&t&ht.LEVEL&r.scope&&t&ht.TYPE&r.scope?r:null}register(...e){return e.map(t=>{const r="blotName"in t,i="attrName"in t;if(!r&&!i)throw new pl("Invalid definition");if(r&&t.blotName==="abstract")throw new pl("Cannot register abstract class");const A=r?t.blotName:i?t.attrName:void 0;return this.types[A]=t,i?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):r&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(s=>s.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(s=>{(this.tags[s]==null||t.className==null)&&(this.tags[s]=t)}))),t})}};D4.blots=new WeakMap;let gl=D4;function M4(n,e){return(n.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class yq extends XA{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){M4(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(M4(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const gA=yq;function Sm(n){const e=n.split("-"),t=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+t}class bq extends XA{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[Sm(this.keyName)]=t,!0):!1}remove(e){e.style[Sm(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[Sm(this.keyName)];return this.canAdd(e,t)?t:""}}const ha=bq;class Bq{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=gl.find(this.domNode);if(e==null)return;const t=XA.keys(this.domNode),r=gA.keys(this.domNode),i=ha.keys(this.domNode);t.concat(r).concat(i).forEach(A=>{const s=e.scroll.query(A,ht.ATTRIBUTE);s instanceof XA&&(this.attributes[s.attrName]=s)})}copy(e){Object.keys(this.attributes).forEach(t=>{const r=this.attributes[t].value(this.domNode);e.format(t,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const mh=Bq,H4=class{constructor(e,t){this.scroll=e,this.domNode=t,gl.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new pl("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?t=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?t=document.createElement(r):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),gl.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,r,i){const A=this.isolate(e,t);if(this.scroll.query(r,ht.BLOT)!=null&&i)A.wrap(r,i);else if(this.scroll.query(r,ht.ATTRIBUTE)!=null){const s=this.scroll.create(this.statics.scope);A.wrap(s),s.format(r,i)}}insertAt(e,t,r){const i=r==null?this.scroll.create("text",t):this.scroll.create(t,r),A=this.split(e);this.parent.insertBefore(i,A||void 0)}isolate(e,t){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new pl(`Cannot wrap ${e}`);return r.appendChild(this),r}};H4.blotName="abstract";let q4=H4;const j4=class extends q4{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};j4.scope=ht.INLINE_BLOT;const Vn=j4;class Cq{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let r=t();for(;r&&e>0;)e-=1,r=t();return r}contains(e){const t=this.iterator();let r=t();for(;r;){if(r===e)return!0;r=t()}return!1}indexOf(e){const t=this.iterator();let r=t(),i=0;for(;r;){if(r===e)return i;i+=1,r=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,r=this.head;for(;r!=null;){if(r===e)return t;t+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const r=this.iterator();let i=r();for(;i;){const A=i.length();if(e<A||t&&e===A&&(i.next==null||i.next.length()!==0))return[i,e];e-=A,i=r()}return[null,0]}forEach(e){const t=this.iterator();let r=t();for(;r;)e(r),r=t()}forEachAt(e,t,r){if(t<=0)return;const[i,A]=this.find(e);let s=e-A;const a=this.iterator(i);let o=a();for(;o&&s<e+t;){const l=o.length();e>s?r(o,e-s,Math.min(t,s+l-e)):r(o,0,Math.min(l,e+t-s)),s+=l,o=a()}}map(e){return this.reduce((t,r)=>(t.push(e(r)),t),[])}reduce(e,t){const r=this.iterator();let i=r();for(;i;)t=e(t,i),i=r();return t}}function K4(n,e){const t=e.find(n);if(t)return t;try{return e.create(n)}catch{const r=e.create(ht.INLINE);return Array.from(n.childNodes).forEach(i=>{r.domNode.appendChild(i)}),n.parentNode&&n.parentNode.replaceChild(r.domNode,n),r.attach(),r}}const V4=class Da extends q4{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,Da.uiClass&&this.uiNode.classList.add(Da.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Cq,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=K4(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof pl)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(r,i,A)=>{r.deleteAt(i,A)})}descendant(e,t=0){const[r,i]=this.children.find(t);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,i]:r instanceof Da?r.descendant(e,i):[null,-1]}descendants(e,t=0,r=Number.MAX_VALUE){let i=[],A=r;return this.children.forEachAt(t,r,(s,a,o)=>{(e.blotName==null&&e(s)||e.blotName!=null&&s instanceof e)&&i.push(s),s instanceof Da&&(i=i.concat(s.descendants(e,a,A))),A-=o}),i}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(r=>t instanceof r)||(t.statics.scope===ht.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof Da?t.unwrap():t.remove())})}formatAt(e,t,r,i){this.children.forEachAt(e,t,(A,s,a)=>{A.formatAt(s,a,r,i)})}insertAt(e,t,r){const[i,A]=this.children.find(e);if(i)i.insertAt(A,t,r);else{const s=r==null?this.scroll.create("text",t):this.scroll.create(t,r);this.appendChild(s)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(r=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(r=>{e.insertBefore(r,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[r,i]=this.children.find(e,t),A=[[this,e]];return r instanceof Da?A.concat(r.path(i,t)):(r!=null&&A.push([r,i]),A)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return r instanceof Da&&this.moveChildren(r),super.replaceWith(r)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(i,A,s)=>{const a=i.split(A,t);a!=null&&r.appendChild(a)}),r}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const r=[],i=[];e.forEach(A=>{A.target===this.domNode&&A.type==="childList"&&(r.push(...A.addedNodes),i.push(...A.removedNodes))}),i.forEach(A=>{if(A.parentNode!=null&&A.tagName!=="IFRAME"&&document.body.compareDocumentPosition(A)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const s=this.scroll.find(A);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===this.domNode)&&s.detach()}),r.filter(A=>A.parentNode===this.domNode&&A!==this.uiNode).sort((A,s)=>A===s?0:A.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(A=>{let s=null;A.nextSibling!=null&&(s=this.scroll.find(A.nextSibling));const a=K4(A,this.scroll);(a.next!==s||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,s||void 0))}),this.enforceAllowedChildren()}};V4.uiClass="";const mA=V4;function Eq(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}const ml=class Kl extends mA{static create(e){return super.create(e)}static formats(e,t){const r=t.query(Kl.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new mh(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof Kl||(r=r.wrap(Kl.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,ht.INLINE);if(r==null)return;r instanceof XA?this.attributes.attribute(r,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,i){this.formats()[r]!=null||this.scroll.query(r,ht.ATTRIBUTE)?this.isolate(e,t).format(r,i):super.formatAt(e,t,r,i)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const r=this.next;r instanceof Kl&&r.prev===this&&Eq(t,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,t){const r=super.wrap(e,t);return r instanceof Kl&&this.attributes.move(r),r}};ml.allowedChildren=[ml,Vn],ml.blotName="inline",ml.scope=ht.INLINE_BLOT,ml.tagName="SPAN";const Fm=ml,vl=class n2 extends mA{static create(e){return super.create(e)}static formats(e,t){const r=t.query(n2.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new mh(this.domNode)}format(e,t){const r=this.scroll.query(e,ht.BLOCK);r!=null&&(r instanceof XA?this.attributes.attribute(r,t):e===this.statics.blotName&&!t?this.replaceWith(n2.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,i){this.scroll.query(r,ht.BLOCK)!=null?this.format(r,i):super.formatAt(e,t,r,i)}insertAt(e,t,r){if(r==null||this.scroll.query(t,ht.INLINE)!=null)super.insertAt(e,t,r);else{const i=this.split(e);if(i!=null){const A=this.scroll.create(t,r);i.parent.insertBefore(A,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};vl.blotName="block",vl.scope=ht.BLOCK_BLOT,vl.tagName="P",vl.allowedChildren=[Fm,vl,Vn];const Qu=vl,_m=class extends mA{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,r,i){super.formatAt(e,t,r,i),this.enforceAllowedChildren()}insertAt(e,t,r){super.insertAt(e,t,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};_m.blotName="container",_m.scope=ht.BLOCK_BLOT;const vh=_m;class xq extends Vn{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,r,i){e===0&&t===this.length()?this.format(r,i):super.formatAt(e,t,r,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const _i=xq,Sq={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Fq=100,wl=class extends mA{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,Sq),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const r=this.registry.find(e,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,t=ht.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,t)}formatAt(e,t,r,i){this.update(),super.formatAt(e,t,r,i)}insertAt(e,t,r){this.update(),super.insertAt(e,t,r)}optimize(e=[],t={}){super.optimize(t);const r=t.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)e.push(i.pop());const A=(o,l=!0)=>{o==null||o===this||o.domNode.parentNode!=null&&(r.has(o.domNode)||r.set(o.domNode,[]),l&&A(o.parent))},s=o=>{r.has(o.domNode)&&(o instanceof mA&&o.children.forEach(s),r.delete(o.domNode),o.optimize(t))};let a=e;for(let o=0;a.length>0;o+=1){if(o>=Fq)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(l=>{const u=this.find(l.target,!0);u!=null&&(u.domNode===l.target&&(l.type==="childList"?(A(this.find(l.previousSibling,!1)),Array.from(l.addedNodes).forEach(f=>{const h=this.find(f,!1);A(h,!1),h instanceof mA&&h.children.forEach(c=>{A(c,!1)})})):l.type==="attributes"&&A(u.prev)),A(u))}),this.children.forEach(s),a=Array.from(this.observer.takeRecords()),i=a.slice();i.length>0;)e.push(i.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(i=>{const A=this.find(i.target,!0);return A==null?null:r.has(A.domNode)?(r.get(A.domNode).push(i),null):(r.set(A.domNode,[i]),A)}).forEach(i=>{i!=null&&i!==this&&r.has(i.domNode)&&i.update(r.get(i.domNode)||[],t)}),t.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),t),this.optimize(e,t)}};wl.blotName="scroll",wl.defaultChild=Qu,wl.allowedChildren=[Qu,vh],wl.scope=ht.BLOCK_BLOT,wl.tagName="DIV";const Tm=wl,Im=class jI extends Vn{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,r){r==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof jI&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,t){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Im.blotName="text",Im.scope=ht.INLINE_BLOT;const wh=Im,_q=Object.freeze(Object.defineProperty({__proto__:null,Attributor:XA,AttributorStore:mh,BlockBlot:Qu,ClassAttributor:gA,ContainerBlot:vh,EmbedBlot:_i,InlineBlot:Fm,LeafBlot:Vn,ParentBlot:mA,Registry:gl,Scope:ht,ScrollBlot:Tm,StyleAttributor:ha,TextBlot:wh},Symbol.toStringTag,{value:"Module"}));var yh={exports:{}},Um,G4;function Tq(){if(G4)return Um;G4=1;var n=-1,e=1,t=0;function r(L,x,Q,C,z){if(L===x)return L?[[t,L]]:[];if(Q!=null){var Y=R(L,x,Q);if(Y)return Y}var V=a(L,x),ie=L.substring(0,V);L=L.substring(V),x=x.substring(V),V=l(L,x);var Ae=L.substring(L.length-V);L=L.substring(0,L.length-V),x=x.substring(0,x.length-V);var $=i(L,x);return ie&&$.unshift([t,ie]),Ae&&$.push([t,Ae]),v($,z),C&&f($),$}function i(L,x){var Q;if(!L)return[[e,x]];if(!x)return[[n,L]];var C=L.length>x.length?L:x,z=L.length>x.length?x:L,Y=C.indexOf(z);if(Y!==-1)return Q=[[e,C.substring(0,Y)],[t,z],[e,C.substring(Y+z.length)]],L.length>x.length&&(Q[0][0]=Q[2][0]=n),Q;if(z.length===1)return[[n,L],[e,x]];var V=u(L,x);if(V){var ie=V[0],Ae=V[1],$=V[2],te=V[3],F=V[4],H=r(ie,$),G=r(Ae,te);return H.concat([[t,F]],G)}return A(L,x)}function A(L,x){for(var Q=L.length,C=x.length,z=Math.ceil((Q+C)/2),Y=z,V=2*z,ie=new Array(V),Ae=new Array(V),$=0;$<V;$++)ie[$]=-1,Ae[$]=-1;ie[Y+1]=0,Ae[Y+1]=0;for(var te=Q-C,F=te%2!==0,H=0,G=0,X=0,J=0,O=0;O<z;O++){for(var U=-O+H;U<=O-G;U+=2){var ee=Y+U,re;U===-O||U!==O&&ie[ee-1]<ie[ee+1]?re=ie[ee+1]:re=ie[ee-1]+1;for(var W=re-U;re<Q&&W<C&&L.charAt(re)===x.charAt(W);)re++,W++;if(ie[ee]=re,re>Q)G+=2;else if(W>C)H+=2;else if(F){var Z=Y+te-U;if(Z>=0&&Z<V&&Ae[Z]!==-1){var me=Q-Ae[Z];if(re>=me)return s(L,x,re,W)}}}for(var k=-O+X;k<=O-J;k+=2){var Z=Y+k,me;k===-O||k!==O&&Ae[Z-1]<Ae[Z+1]?me=Ae[Z+1]:me=Ae[Z-1]+1;for(var pe=me-k;me<Q&&pe<C&&L.charAt(Q-me-1)===x.charAt(C-pe-1);)me++,pe++;if(Ae[Z]=me,me>Q)J+=2;else if(pe>C)X+=2;else if(!F){var ee=Y+te-k;if(ee>=0&&ee<V&&ie[ee]!==-1){var re=ie[ee],W=Y+re-ee;if(me=Q-me,re>=me)return s(L,x,re,W)}}}}return[[n,L],[e,x]]}function s(L,x,Q,C){var z=L.substring(0,Q),Y=x.substring(0,C),V=L.substring(Q),ie=x.substring(C),Ae=r(z,Y),$=r(V,ie);return Ae.concat($)}function a(L,x){if(!L||!x||L.charAt(0)!==x.charAt(0))return 0;for(var Q=0,C=Math.min(L.length,x.length),z=C,Y=0;Q<z;)L.substring(Y,z)==x.substring(Y,z)?(Q=z,Y=Q):C=z,z=Math.floor((C-Q)/2+Q);return b(L.charCodeAt(z-1))&&z--,z}function o(L,x){var Q=L.length,C=x.length;if(Q==0||C==0)return 0;Q>C?L=L.substring(Q-C):Q<C&&(x=x.substring(0,Q));var z=Math.min(Q,C);if(L==x)return z;for(var Y=0,V=1;;){var ie=L.substring(z-V),Ae=x.indexOf(ie);if(Ae==-1)return Y;V+=Ae,(Ae==0||L.substring(z-V)==x.substring(0,V))&&(Y=V,V++)}}function l(L,x){if(!L||!x||L.slice(-1)!==x.slice(-1))return 0;for(var Q=0,C=Math.min(L.length,x.length),z=C,Y=0;Q<z;)L.substring(L.length-z,L.length-Y)==x.substring(x.length-z,x.length-Y)?(Q=z,Y=Q):C=z,z=Math.floor((C-Q)/2+Q);return B(L.charCodeAt(L.length-z))&&z--,z}function u(L,x){var Q=L.length>x.length?L:x,C=L.length>x.length?x:L;if(Q.length<4||C.length*2<Q.length)return null;function z(G,X,J){for(var O=G.substring(J,J+Math.floor(G.length/4)),U=-1,ee="",re,W,Z,me;(U=X.indexOf(O,U+1))!==-1;){var k=a(G.substring(J),X.substring(U)),pe=l(G.substring(0,J),X.substring(0,U));ee.length<pe+k&&(ee=X.substring(U-pe,U)+X.substring(U,U+k),re=G.substring(0,J-pe),W=G.substring(J+k),Z=X.substring(0,U-pe),me=X.substring(U+k))}return ee.length*2>=G.length?[re,W,Z,me,ee]:null}var Y=z(Q,C,Math.ceil(Q.length/4)),V=z(Q,C,Math.ceil(Q.length/2)),ie;if(!Y&&!V)return null;V?Y?ie=Y[4].length>V[4].length?Y:V:ie=V:ie=Y;var Ae,$,te,F;L.length>x.length?(Ae=ie[0],$=ie[1],te=ie[2],F=ie[3]):(te=ie[0],F=ie[1],Ae=ie[2],$=ie[3]);var H=ie[4];return[Ae,$,te,F,H]}function f(L){for(var x=!1,Q=[],C=0,z=null,Y=0,V=0,ie=0,Ae=0,$=0;Y<L.length;)L[Y][0]==t?(Q[C++]=Y,V=Ae,ie=$,Ae=0,$=0,z=L[Y][1]):(L[Y][0]==e?Ae+=L[Y][1].length:$+=L[Y][1].length,z&&z.length<=Math.max(V,ie)&&z.length<=Math.max(Ae,$)&&(L.splice(Q[C-1],0,[n,z]),L[Q[C-1]+1][0]=e,C--,C--,Y=C>0?Q[C-1]:-1,V=0,ie=0,Ae=0,$=0,z=null,x=!0)),Y++;for(x&&v(L),p(L),Y=1;Y<L.length;){if(L[Y-1][0]==n&&L[Y][0]==e){var te=L[Y-1][1],F=L[Y][1],H=o(te,F),G=o(F,te);H>=G?(H>=te.length/2||H>=F.length/2)&&(L.splice(Y,0,[t,F.substring(0,H)]),L[Y-1][1]=te.substring(0,te.length-H),L[Y+1][1]=F.substring(H),Y++):(G>=te.length/2||G>=F.length/2)&&(L.splice(Y,0,[t,te.substring(0,G)]),L[Y-1][0]=e,L[Y-1][1]=F.substring(0,F.length-G),L[Y+1][0]=n,L[Y+1][1]=te.substring(G),Y++),Y++}Y++}}var h=/[^a-zA-Z0-9]/,c=/\s/,m=/[\r\n]/,g=/\n\r?\n$/,w=/^\r?\n\r?\n/;function p(L){function x(G,X){if(!G||!X)return 6;var J=G.charAt(G.length-1),O=X.charAt(0),U=J.match(h),ee=O.match(h),re=U&&J.match(c),W=ee&&O.match(c),Z=re&&J.match(m),me=W&&O.match(m),k=Z&&G.match(g),pe=me&&X.match(w);return k||pe?5:Z||me?4:U&&!re&&W?3:re||W?2:U||ee?1:0}for(var Q=1;Q<L.length-1;){if(L[Q-1][0]==t&&L[Q+1][0]==t){var C=L[Q-1][1],z=L[Q][1],Y=L[Q+1][1],V=l(C,z);if(V){var ie=z.substring(z.length-V);C=C.substring(0,C.length-V),z=ie+z.substring(0,z.length-V),Y=ie+Y}for(var Ae=C,$=z,te=Y,F=x(C,z)+x(z,Y);z.charAt(0)===Y.charAt(0);){C+=z.charAt(0),z=z.substring(1)+Y.charAt(0),Y=Y.substring(1);var H=x(C,z)+x(z,Y);H>=F&&(F=H,Ae=C,$=z,te=Y)}L[Q-1][1]!=Ae&&(Ae?L[Q-1][1]=Ae:(L.splice(Q-1,1),Q--),L[Q][1]=$,te?L[Q+1][1]=te:(L.splice(Q+1,1),Q--))}Q++}}function v(L,x){L.push([t,""]);for(var Q=0,C=0,z=0,Y="",V="",ie;Q<L.length;){if(Q<L.length-1&&!L[Q][1]){L.splice(Q,1);continue}switch(L[Q][0]){case e:z++,V+=L[Q][1],Q++;break;case n:C++,Y+=L[Q][1],Q++;break;case t:var Ae=Q-z-C-1;if(x){if(Ae>=0&&M(L[Ae][1])){var $=L[Ae][1].slice(-1);if(L[Ae][1]=L[Ae][1].slice(0,-1),Y=$+Y,V=$+V,!L[Ae][1]){L.splice(Ae,1),Q--;var te=Ae-1;L[te]&&L[te][0]===e&&(z++,V=L[te][1]+V,te--),L[te]&&L[te][0]===n&&(C++,Y=L[te][1]+Y,te--),Ae=te}}if(T(L[Q][1])){var $=L[Q][1].charAt(0);L[Q][1]=L[Q][1].slice(1),Y+=$,V+=$}}if(Q<L.length-1&&!L[Q][1]){L.splice(Q,1);break}if(Y.length>0||V.length>0){Y.length>0&&V.length>0&&(ie=a(V,Y),ie!==0&&(Ae>=0?L[Ae][1]+=V.substring(0,ie):(L.splice(0,0,[t,V.substring(0,ie)]),Q++),V=V.substring(ie),Y=Y.substring(ie)),ie=l(V,Y),ie!==0&&(L[Q][1]=V.substring(V.length-ie)+L[Q][1],V=V.substring(0,V.length-ie),Y=Y.substring(0,Y.length-ie)));var F=z+C;Y.length===0&&V.length===0?(L.splice(Q-F,F),Q=Q-F):Y.length===0?(L.splice(Q-F,F,[e,V]),Q=Q-F+1):V.length===0?(L.splice(Q-F,F,[n,Y]),Q=Q-F+1):(L.splice(Q-F,F,[n,Y],[e,V]),Q=Q-F+2)}Q!==0&&L[Q-1][0]===t?(L[Q-1][1]+=L[Q][1],L.splice(Q,1)):Q++,z=0,C=0,Y="",V="";break}}L[L.length-1][1]===""&&L.pop();var H=!1;for(Q=1;Q<L.length-1;)L[Q-1][0]===t&&L[Q+1][0]===t&&(L[Q][1].substring(L[Q][1].length-L[Q-1][1].length)===L[Q-1][1]?(L[Q][1]=L[Q-1][1]+L[Q][1].substring(0,L[Q][1].length-L[Q-1][1].length),L[Q+1][1]=L[Q-1][1]+L[Q+1][1],L.splice(Q-1,1),H=!0):L[Q][1].substring(0,L[Q+1][1].length)==L[Q+1][1]&&(L[Q-1][1]+=L[Q+1][1],L[Q][1]=L[Q][1].substring(L[Q+1][1].length)+L[Q+1][1],L.splice(Q+1,1),H=!0)),Q++;H&&v(L,x)}function b(L){return L>=55296&&L<=56319}function B(L){return L>=56320&&L<=57343}function T(L){return B(L.charCodeAt(0))}function M(L){return b(L.charCodeAt(L.length-1))}function D(L){for(var x=[],Q=0;Q<L.length;Q++)L[Q][1].length>0&&x.push(L[Q]);return x}function j(L,x,Q,C){return M(L)||T(C)?null:D([[t,L],[n,x],[e,Q],[t,C]])}function R(L,x,Q){var C=typeof Q=="number"?{index:Q,length:0}:Q.oldRange,z=typeof Q=="number"?null:Q.newRange,Y=L.length,V=x.length;if(C.length===0&&(z===null||z.length===0)){var ie=C.index,Ae=L.slice(0,ie),$=L.slice(ie),te=z?z.index:null;e:{var F=ie+V-Y;if(te!==null&&te!==F||F<0||F>V)break e;var H=x.slice(0,F),G=x.slice(F);if(G!==$)break e;var X=Math.min(ie,F),J=Ae.slice(0,X),O=H.slice(0,X);if(J!==O)break e;var U=Ae.slice(X),ee=H.slice(X);return j(J,U,ee,$)}e:{if(te!==null&&te!==ie)break e;var re=ie,H=x.slice(0,re),G=x.slice(re);if(H!==Ae)break e;var W=Math.min(Y-re,V-re),Z=$.slice($.length-W),me=G.slice(G.length-W);if(Z!==me)break e;var U=$.slice(0,$.length-W),ee=G.slice(0,G.length-W);return j(Ae,U,ee,Z)}}if(C.length>0&&z&&z.length===0)e:{var J=L.slice(0,C.index),Z=L.slice(C.index+C.length),X=J.length,W=Z.length;if(V<X+W)break e;var O=x.slice(0,X),me=x.slice(V-W);if(J!==O||Z!==me)break e;var U=L.slice(X,Y-W),ee=x.slice(X,V-W);return j(J,U,ee,Z)}return null}function ae(L,x,Q,C){return r(L,x,Q,C,!0)}return ae.INSERT=e,ae.DELETE=n,ae.EQUAL=t,Um=ae,Um}var Ru={exports:{}};Ru.exports;var z4;function W4(){return z4||(z4=1,function(n,e){var t=200,r="__lodash_hash_undefined__",i=9007199254740991,A="[object Arguments]",s="[object Array]",a="[object Boolean]",o="[object Date]",l="[object Error]",u="[object Function]",f="[object GeneratorFunction]",h="[object Map]",c="[object Number]",m="[object Object]",g="[object Promise]",w="[object RegExp]",p="[object Set]",v="[object String]",b="[object Symbol]",B="[object WeakMap]",T="[object ArrayBuffer]",M="[object DataView]",D="[object Float32Array]",j="[object Float64Array]",R="[object Int8Array]",ae="[object Int16Array]",L="[object Int32Array]",x="[object Uint8Array]",Q="[object Uint8ClampedArray]",C="[object Uint16Array]",z="[object Uint32Array]",Y=/[\\^$.*+?()[\]{}|]/g,V=/\w*$/,ie=/^\[object .+?Constructor\]$/,Ae=/^(?:0|[1-9]\d*)$/,$={};$[A]=$[s]=$[T]=$[M]=$[a]=$[o]=$[D]=$[j]=$[R]=$[ae]=$[L]=$[h]=$[c]=$[m]=$[w]=$[p]=$[v]=$[b]=$[x]=$[Q]=$[C]=$[z]=!0,$[l]=$[u]=$[B]=!1;var te=typeof Zn=="object"&&Zn&&Zn.Object===Object&&Zn,F=typeof self=="object"&&self&&self.Object===Object&&self,H=te||F||Function("return this")(),G=e&&!e.nodeType&&e,X=G&&!0&&n&&!n.nodeType&&n,J=X&&X.exports===G;function O(q,he){return q.set(he[0],he[1]),q}function U(q,he){return q.add(he),q}function ee(q,he){for(var be=-1,Re=q?q.length:0;++be<Re&&he(q[be],be,q)!==!1;);return q}function re(q,he){for(var be=-1,Re=he.length,Ct=q.length;++be<Re;)q[Ct+be]=he[be];return q}function W(q,he,be,Re){for(var Ct=-1,ft=q?q.length:0;++Ct<ft;)be=he(be,q[Ct],Ct,q);return be}function Z(q,he){for(var be=-1,Re=Array(q);++be<q;)Re[be]=he(be);return Re}function me(q,he){return q?.[he]}function k(q){var he=!1;if(q!=null&&typeof q.toString!="function")try{he=!!(q+"")}catch{}return he}function pe(q){var he=-1,be=Array(q.size);return q.forEach(function(Re,Ct){be[++he]=[Ct,Re]}),be}function I(q,he){return function(be){return q(he(be))}}function E(q){var he=-1,be=Array(q.size);return q.forEach(function(Re){be[++he]=Re}),be}var S=Array.prototype,P=Function.prototype,oe=Object.prototype,ge=H["__core-js_shared__"],ce=function(){var q=/[^.]+$/.exec(ge&&ge.keys&&ge.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}(),Ee=P.toString,ye=oe.hasOwnProperty,Be=oe.toString,Ue=RegExp("^"+Ee.call(ye).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oe=J?H.Buffer:void 0,Me=H.Symbol,$e=H.Uint8Array,tt=I(Object.getPrototypeOf,Object),Ve=Object.create,Tt=oe.propertyIsEnumerable,st=S.splice,kt=Object.getOwnPropertySymbols,yt=Oe?Oe.isBuffer:void 0,St=I(Object.keys,Object),ur=oi(H,"DataView"),Ft=oi(H,"Map"),$t=oi(H,"Promise"),Qt=oi(H,"Set"),yr=oi(H,"WeakMap"),It=oi(Object,"create"),Kt=gn(ur),mt=gn(Ft),pt=gn($t),on=gn(Qt),Fr=gn(yr),jr=Me?Me.prototype:void 0,dn=jr?jr.valueOf:void 0;function ut(q){var he=-1,be=q?q.length:0;for(this.clear();++he<be;){var Re=q[he];this.set(Re[0],Re[1])}}function bn(){this.__data__=It?It(null):{}}function zn(q){return this.has(q)&&delete this.__data__[q]}function nr(q){var he=this.__data__;if(It){var be=he[q];return be===r?void 0:be}return ye.call(he,q)?he[q]:void 0}function Jt(q){var he=this.__data__;return It?he[q]!==void 0:ye.call(he,q)}function ir(q,he){var be=this.__data__;return be[q]=It&&he===void 0?r:he,this}ut.prototype.clear=bn,ut.prototype.delete=zn,ut.prototype.get=nr,ut.prototype.has=Jt,ut.prototype.set=ir;function zt(q){var he=-1,be=q?q.length:0;for(this.clear();++he<be;){var Re=q[he];this.set(Re[0],Re[1])}}function vi(){this.__data__=[]}function Wn(q){var he=this.__data__,be=Ar(he,q);if(be<0)return!1;var Re=he.length-1;return be==Re?he.pop():st.call(he,be,1),!0}function _r(q){var he=this.__data__,be=Ar(he,q);return be<0?void 0:he[be][1]}function Bn(q){return Ar(this.__data__,q)>-1}function Cn(q,he){var be=this.__data__,Re=Ar(be,q);return Re<0?be.push([q,he]):be[Re][1]=he,this}zt.prototype.clear=vi,zt.prototype.delete=Wn,zt.prototype.get=_r,zt.prototype.has=Bn,zt.prototype.set=Cn;function rr(q){var he=-1,be=q?q.length:0;for(this.clear();++he<be;){var Re=q[he];this.set(Re[0],Re[1])}}function pn(){this.__data__={hash:new ut,map:new(Ft||zt),string:new ut}}function Xn(q){return Yi(this,q).delete(q)}function at(q){return Yi(this,q).get(q)}function xe(q){return Yi(this,q).has(q)}function Ye(q,he){return Yi(this,q).set(q,he),this}rr.prototype.clear=pn,rr.prototype.delete=Xn,rr.prototype.get=at,rr.prototype.has=xe,rr.prototype.set=Ye;function Je(q){this.__data__=new zt(q)}function Vt(){this.__data__=new zt}function Tr(q){return this.__data__.delete(q)}function pr(q){return this.__data__.get(q)}function Kr(q){return this.__data__.has(q)}function ln(q,he){var be=this.__data__;if(be instanceof zt){var Re=be.__data__;if(!Ft||Re.length<t-1)return Re.push([q,he]),this;be=this.__data__=new rr(Re)}return be.set(q,he),this}Je.prototype.clear=Vt,Je.prototype.delete=Tr,Je.prototype.get=pr,Je.prototype.has=Kr,Je.prototype.set=ln;function Ln(q,he){var be=Os(q)||is(q)?Z(q.length,String):[],Re=be.length,Ct=!!Re;for(var ft in q)ye.call(q,ft)&&!(Ct&&(ft=="length"||rs(ft,Re)))&&be.push(ft);return be}function Xi(q,he,be){var Re=q[he];(!(ye.call(q,he)&&Bt(Re,be))||be===void 0&&!(he in q))&&(q[he]=be)}function Ar(q,he){for(var be=q.length;be--;)if(Bt(q[be][0],he))return be;return-1}function On(q,he){return q&&Ns(he,Rs(he),q)}function Ti(q,he,be,Re,Ct,ft,Ht){var Dt;if(Re&&(Dt=ft?Re(q,Ct,ft,Ht):Re(q)),Dt!==void 0)return Dt;if(!yi(q))return q;var Ur=Os(q);if(Ur){if(Dt=xo(q),!he)return Ba(q,Dt)}else{var Rt=Ui(q),br=Rt==u||Rt==f;if(Qs(q))return TA(q,he);if(Rt==m||Rt==A||br&&!ft){if(k(q))return ft?q:{};if(Dt=wi(br?{}:q),!he)return Ca(q,On(Dt,q))}else{if(!$[Rt])return ft?q:{};Dt=Ni(q,Rt,Ti,he)}}Ht||(Ht=new Je);var xn=Ht.get(q);if(xn)return xn;if(Ht.set(q,Dt),!Ur)var cr=be?Eo(q):Rs(q);return ee(cr||q,function(fr,Qr){cr&&(Qr=fr,fr=q[Qr]),Xi(Dt,Qr,Ti(fr,he,be,Re,Qr,q,Ht))}),Dt}function Bo(q){return yi(q)?Ve(q):{}}function ZA(q,he,be){var Re=he(q);return Os(q)?Re:re(Re,be(q))}function Co(q){return Be.call(q)}function Ir(q){if(!yi(q)||Ea(q))return!1;var he=$i(q)||k(q)?Ue:ie;return he.test(gn(q))}function ya(q){if(!tn(q))return St(q);var he=[];for(var be in Object(q))ye.call(q,be)&&be!="constructor"&&he.push(be);return he}function TA(q,he){if(he)return q.slice();var be=new q.constructor(q.length);return q.copy(be),be}function es(q){var he=new q.constructor(q.byteLength);return new $e(he).set(new $e(q)),he}function Ii(q,he){var be=he?es(q.buffer):q.buffer;return new q.constructor(be,q.byteOffset,q.byteLength)}function ba(q,he,be){var Re=he?be(pe(q),!0):pe(q);return W(Re,O,new q.constructor)}function Yn(q){var he=new q.constructor(q.source,V.exec(q));return he.lastIndex=q.lastIndex,he}function ts(q,he,be){var Re=he?be(E(q),!0):E(q);return W(Re,U,new q.constructor)}function En(q){return dn?Object(dn.call(q)):{}}function Us(q,he){var be=he?es(q.buffer):q.buffer;return new q.constructor(be,q.byteOffset,q.length)}function Ba(q,he){var be=-1,Re=q.length;for(he||(he=Array(Re));++be<Re;)he[be]=q[be];return he}function Ns(q,he,be,Re){be||(be={});for(var Ct=-1,ft=he.length;++Ct<ft;){var Ht=he[Ct],Dt=void 0;Xi(be,Ht,Dt===void 0?q[Ht]:Dt)}return be}function Ca(q,he){return Ns(q,li(q),he)}function Eo(q){return ZA(q,Rs,li)}function Yi(q,he){var be=q.__data__;return ns(he)?be[typeof he=="string"?"string":"hash"]:be.map}function oi(q,he){var be=me(q,he);return Ir(be)?be:void 0}var li=kt?I(kt,Object):Ps,Ui=Co;(ur&&Ui(new ur(new ArrayBuffer(1)))!=M||Ft&&Ui(new Ft)!=h||$t&&Ui($t.resolve())!=g||Qt&&Ui(new Qt)!=p||yr&&Ui(new yr)!=B)&&(Ui=function(q){var he=Be.call(q),be=he==m?q.constructor:void 0,Re=be?gn(be):void 0;if(Re)switch(Re){case Kt:return M;case mt:return h;case pt:return g;case on:return p;case Fr:return B}return he});function xo(q){var he=q.length,be=q.constructor(he);return he&&typeof q[0]=="string"&&ye.call(q,"index")&&(be.index=q.index,be.input=q.input),be}function wi(q){return typeof q.constructor=="function"&&!tn(q)?Bo(tt(q)):{}}function Ni(q,he,be,Re){var Ct=q.constructor;switch(he){case T:return es(q);case a:case o:return new Ct(+q);case M:return Ii(q,Re);case D:case j:case R:case ae:case L:case x:case Q:case C:case z:return Us(q,Re);case h:return ba(q,Re,be);case c:case v:return new Ct(q);case w:return Yn(q);case p:return ts(q,Re,be);case b:return En(q)}}function rs(q,he){return he=he??i,!!he&&(typeof q=="number"||Ae.test(q))&&q>-1&&q%1==0&&q<he}function ns(q){var he=typeof q;return he=="string"||he=="number"||he=="symbol"||he=="boolean"?q!=="__proto__":q===null}function Ea(q){return!!ce&&ce in q}function tn(q){var he=q&&q.constructor,be=typeof he=="function"&&he.prototype||oe;return q===be}function gn(q){if(q!=null){try{return Ee.call(q)}catch{}try{return q+""}catch{}}return""}function Ls(q){return Ti(q,!0,!0)}function Bt(q,he){return q===he||q!==q&&he!==he}function is(q){return xa(q)&&ye.call(q,"callee")&&(!Tt.call(q,"callee")||Be.call(q)==A)}var Os=Array.isArray;function Qn(q){return q!=null&&As(q.length)&&!$i(q)}function xa(q){return Sa(q)&&Qn(q)}var Qs=yt||IA;function $i(q){var he=yi(q)?Be.call(q):"";return he==u||he==f}function As(q){return typeof q=="number"&&q>-1&&q%1==0&&q<=i}function yi(q){var he=typeof q;return!!q&&(he=="object"||he=="function")}function Sa(q){return!!q&&typeof q=="object"}function Rs(q){return Qn(q)?Ln(q):ya(q)}function Ps(){return[]}function IA(){return!1}n.exports=Ls}(Ru,Ru.exports)),Ru.exports}var Pu={exports:{}};Pu.exports;var X4;function Y4(){return X4||(X4=1,function(n,e){var t=200,r="__lodash_hash_undefined__",i=1,A=2,s=9007199254740991,a="[object Arguments]",o="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",f="[object Date]",h="[object Error]",c="[object Function]",m="[object GeneratorFunction]",g="[object Map]",w="[object Number]",p="[object Null]",v="[object Object]",b="[object Promise]",B="[object Proxy]",T="[object RegExp]",M="[object Set]",D="[object String]",j="[object Symbol]",R="[object Undefined]",ae="[object WeakMap]",L="[object ArrayBuffer]",x="[object DataView]",Q="[object Float32Array]",C="[object Float64Array]",z="[object Int8Array]",Y="[object Int16Array]",V="[object Int32Array]",ie="[object Uint8Array]",Ae="[object Uint8ClampedArray]",$="[object Uint16Array]",te="[object Uint32Array]",F=/[\\^$.*+?()[\]{}|]/g,H=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,X={};X[Q]=X[C]=X[z]=X[Y]=X[V]=X[ie]=X[Ae]=X[$]=X[te]=!0,X[a]=X[o]=X[L]=X[u]=X[x]=X[f]=X[h]=X[c]=X[g]=X[w]=X[v]=X[T]=X[M]=X[D]=X[ae]=!1;var J=typeof Zn=="object"&&Zn&&Zn.Object===Object&&Zn,O=typeof self=="object"&&self&&self.Object===Object&&self,U=J||O||Function("return this")(),ee=e&&!e.nodeType&&e,re=ee&&!0&&n&&!n.nodeType&&n,W=re&&re.exports===ee,Z=W&&J.process,me=function(){try{return Z&&Z.binding&&Z.binding("util")}catch{}}(),k=me&&me.isTypedArray;function pe(q,he){for(var be=-1,Re=q==null?0:q.length,Ct=0,ft=[];++be<Re;){var Ht=q[be];he(Ht,be,q)&&(ft[Ct++]=Ht)}return ft}function I(q,he){for(var be=-1,Re=he.length,Ct=q.length;++be<Re;)q[Ct+be]=he[be];return q}function E(q,he){for(var be=-1,Re=q==null?0:q.length;++be<Re;)if(he(q[be],be,q))return!0;return!1}function S(q,he){for(var be=-1,Re=Array(q);++be<q;)Re[be]=he(be);return Re}function P(q){return function(he){return q(he)}}function oe(q,he){return q.has(he)}function ge(q,he){return q?.[he]}function ce(q){var he=-1,be=Array(q.size);return q.forEach(function(Re,Ct){be[++he]=[Ct,Re]}),be}function Ee(q,he){return function(be){return q(he(be))}}function ye(q){var he=-1,be=Array(q.size);return q.forEach(function(Re){be[++he]=Re}),be}var Be=Array.prototype,Ue=Function.prototype,Oe=Object.prototype,Me=U["__core-js_shared__"],$e=Ue.toString,tt=Oe.hasOwnProperty,Ve=function(){var q=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}(),Tt=Oe.toString,st=RegExp("^"+$e.call(tt).replace(F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kt=W?U.Buffer:void 0,yt=U.Symbol,St=U.Uint8Array,ur=Oe.propertyIsEnumerable,Ft=Be.splice,$t=yt?yt.toStringTag:void 0,Qt=Object.getOwnPropertySymbols,yr=kt?kt.isBuffer:void 0,It=Ee(Object.keys,Object),Kt=li(U,"DataView"),mt=li(U,"Map"),pt=li(U,"Promise"),on=li(U,"Set"),Fr=li(U,"WeakMap"),jr=li(Object,"create"),dn=gn(Kt),ut=gn(mt),bn=gn(pt),zn=gn(on),nr=gn(Fr),Jt=yt?yt.prototype:void 0,ir=Jt?Jt.valueOf:void 0;function zt(q){var he=-1,be=q==null?0:q.length;for(this.clear();++he<be;){var Re=q[he];this.set(Re[0],Re[1])}}function vi(){this.__data__=jr?jr(null):{},this.size=0}function Wn(q){var he=this.has(q)&&delete this.__data__[q];return this.size-=he?1:0,he}function _r(q){var he=this.__data__;if(jr){var be=he[q];return be===r?void 0:be}return tt.call(he,q)?he[q]:void 0}function Bn(q){var he=this.__data__;return jr?he[q]!==void 0:tt.call(he,q)}function Cn(q,he){var be=this.__data__;return this.size+=this.has(q)?0:1,be[q]=jr&&he===void 0?r:he,this}zt.prototype.clear=vi,zt.prototype.delete=Wn,zt.prototype.get=_r,zt.prototype.has=Bn,zt.prototype.set=Cn;function rr(q){var he=-1,be=q==null?0:q.length;for(this.clear();++he<be;){var Re=q[he];this.set(Re[0],Re[1])}}function pn(){this.__data__=[],this.size=0}function Xn(q){var he=this.__data__,be=TA(he,q);if(be<0)return!1;var Re=he.length-1;return be==Re?he.pop():Ft.call(he,be,1),--this.size,!0}function at(q){var he=this.__data__,be=TA(he,q);return be<0?void 0:he[be][1]}function xe(q){return TA(this.__data__,q)>-1}function Ye(q,he){var be=this.__data__,Re=TA(be,q);return Re<0?(++this.size,be.push([q,he])):be[Re][1]=he,this}rr.prototype.clear=pn,rr.prototype.delete=Xn,rr.prototype.get=at,rr.prototype.has=xe,rr.prototype.set=Ye;function Je(q){var he=-1,be=q==null?0:q.length;for(this.clear();++he<be;){var Re=q[he];this.set(Re[0],Re[1])}}function Vt(){this.size=0,this.__data__={hash:new zt,map:new(mt||rr),string:new zt}}function Tr(q){var he=oi(this,q).delete(q);return this.size-=he?1:0,he}function pr(q){return oi(this,q).get(q)}function Kr(q){return oi(this,q).has(q)}function ln(q,he){var be=oi(this,q),Re=be.size;return be.set(q,he),this.size+=be.size==Re?0:1,this}Je.prototype.clear=Vt,Je.prototype.delete=Tr,Je.prototype.get=pr,Je.prototype.has=Kr,Je.prototype.set=ln;function Ln(q){var he=-1,be=q==null?0:q.length;for(this.__data__=new Je;++he<be;)this.add(q[he])}function Xi(q){return this.__data__.set(q,r),this}function Ar(q){return this.__data__.has(q)}Ln.prototype.add=Ln.prototype.push=Xi,Ln.prototype.has=Ar;function On(q){var he=this.__data__=new rr(q);this.size=he.size}function Ti(){this.__data__=new rr,this.size=0}function Bo(q){var he=this.__data__,be=he.delete(q);return this.size=he.size,be}function ZA(q){return this.__data__.get(q)}function Co(q){return this.__data__.has(q)}function Ir(q,he){var be=this.__data__;if(be instanceof rr){var Re=be.__data__;if(!mt||Re.length<t-1)return Re.push([q,he]),this.size=++be.size,this;be=this.__data__=new Je(Re)}return be.set(q,he),this.size=be.size,this}On.prototype.clear=Ti,On.prototype.delete=Bo,On.prototype.get=ZA,On.prototype.has=Co,On.prototype.set=Ir;function ya(q,he){var be=is(q),Re=!be&&Bt(q),Ct=!be&&!Re&&Qn(q),ft=!be&&!Re&&!Ct&&Sa(q),Ht=be||Re||Ct||ft,Dt=Ht?S(q.length,String):[],Ur=Dt.length;for(var Rt in q)tt.call(q,Rt)&&!(Ht&&(Rt=="length"||Ct&&(Rt=="offset"||Rt=="parent")||ft&&(Rt=="buffer"||Rt=="byteLength"||Rt=="byteOffset")||Ni(Rt,Ur)))&&Dt.push(Rt);return Dt}function TA(q,he){for(var be=q.length;be--;)if(Ls(q[be][0],he))return be;return-1}function es(q,he,be){var Re=he(q);return is(q)?Re:I(Re,be(q))}function Ii(q){return q==null?q===void 0?R:p:$t&&$t in Object(q)?Ui(q):tn(q)}function ba(q){return yi(q)&&Ii(q)==a}function Yn(q,he,be,Re,Ct){return q===he?!0:q==null||he==null||!yi(q)&&!yi(he)?q!==q&&he!==he:ts(q,he,be,Re,Yn,Ct)}function ts(q,he,be,Re,Ct,ft){var Ht=is(q),Dt=is(he),Ur=Ht?o:wi(q),Rt=Dt?o:wi(he);Ur=Ur==a?v:Ur,Rt=Rt==a?v:Rt;var br=Ur==v,xn=Rt==v,cr=Ur==Rt;if(cr&&Qn(q)){if(!Qn(he))return!1;Ht=!0,br=!1}if(cr&&!br)return ft||(ft=new On),Ht||Sa(q)?Ns(q,he,be,Re,Ct,ft):Ca(q,he,Ur,be,Re,Ct,ft);if(!(be&i)){var fr=br&&tt.call(q,"__wrapped__"),Qr=xn&&tt.call(he,"__wrapped__");if(fr||Qr){var $n=fr?q.value():q,Li=Qr?he.value():he;return ft||(ft=new On),Ct($n,Li,be,Re,ft)}}return cr?(ft||(ft=new On),Eo(q,he,be,Re,Ct,ft)):!1}function En(q){if(!As(q)||ns(q))return!1;var he=Qs(q)?st:H;return he.test(gn(q))}function Us(q){return yi(q)&&$i(q.length)&&!!X[Ii(q)]}function Ba(q){if(!Ea(q))return It(q);var he=[];for(var be in Object(q))tt.call(q,be)&&be!="constructor"&&he.push(be);return he}function Ns(q,he,be,Re,Ct,ft){var Ht=be&i,Dt=q.length,Ur=he.length;if(Dt!=Ur&&!(Ht&&Ur>Dt))return!1;var Rt=ft.get(q);if(Rt&&ft.get(he))return Rt==he;var br=-1,xn=!0,cr=be&A?new Ln:void 0;for(ft.set(q,he),ft.set(he,q);++br<Dt;){var fr=q[br],Qr=he[br];if(Re)var $n=Ht?Re(Qr,fr,br,he,q,ft):Re(fr,Qr,br,q,he,ft);if($n!==void 0){if($n)continue;xn=!1;break}if(cr){if(!E(he,function(Li,bi){if(!oe(cr,bi)&&(fr===Li||Ct(fr,Li,be,Re,ft)))return cr.push(bi)})){xn=!1;break}}else if(!(fr===Qr||Ct(fr,Qr,be,Re,ft))){xn=!1;break}}return ft.delete(q),ft.delete(he),xn}function Ca(q,he,be,Re,Ct,ft,Ht){switch(be){case x:if(q.byteLength!=he.byteLength||q.byteOffset!=he.byteOffset)return!1;q=q.buffer,he=he.buffer;case L:return!(q.byteLength!=he.byteLength||!ft(new St(q),new St(he)));case u:case f:case w:return Ls(+q,+he);case h:return q.name==he.name&&q.message==he.message;case T:case D:return q==he+"";case g:var Dt=ce;case M:var Ur=Re&i;if(Dt||(Dt=ye),q.size!=he.size&&!Ur)return!1;var Rt=Ht.get(q);if(Rt)return Rt==he;Re|=A,Ht.set(q,he);var br=Ns(Dt(q),Dt(he),Re,Ct,ft,Ht);return Ht.delete(q),br;case j:if(ir)return ir.call(q)==ir.call(he)}return!1}function Eo(q,he,be,Re,Ct,ft){var Ht=be&i,Dt=Yi(q),Ur=Dt.length,Rt=Yi(he),br=Rt.length;if(Ur!=br&&!Ht)return!1;for(var xn=Ur;xn--;){var cr=Dt[xn];if(!(Ht?cr in he:tt.call(he,cr)))return!1}var fr=ft.get(q);if(fr&&ft.get(he))return fr==he;var Qr=!0;ft.set(q,he),ft.set(he,q);for(var $n=Ht;++xn<Ur;){cr=Dt[xn];var Li=q[cr],bi=he[cr];if(Re)var Sl=Ht?Re(bi,Li,cr,he,q,ft):Re(Li,bi,cr,q,he,ft);if(!(Sl===void 0?Li===bi||Ct(Li,bi,be,Re,ft):Sl)){Qr=!1;break}$n||($n=cr=="constructor")}if(Qr&&!$n){var ss=q.constructor,as=he.constructor;ss!=as&&"constructor"in q&&"constructor"in he&&!(typeof ss=="function"&&ss instanceof ss&&typeof as=="function"&&as instanceof as)&&(Qr=!1)}return ft.delete(q),ft.delete(he),Qr}function Yi(q){return es(q,Rs,xo)}function oi(q,he){var be=q.__data__;return rs(he)?be[typeof he=="string"?"string":"hash"]:be.map}function li(q,he){var be=ge(q,he);return En(be)?be:void 0}function Ui(q){var he=tt.call(q,$t),be=q[$t];try{q[$t]=void 0;var Re=!0}catch{}var Ct=Tt.call(q);return Re&&(he?q[$t]=be:delete q[$t]),Ct}var xo=Qt?function(q){return q==null?[]:(q=Object(q),pe(Qt(q),function(he){return ur.call(q,he)}))}:Ps,wi=Ii;(Kt&&wi(new Kt(new ArrayBuffer(1)))!=x||mt&&wi(new mt)!=g||pt&&wi(pt.resolve())!=b||on&&wi(new on)!=M||Fr&&wi(new Fr)!=ae)&&(wi=function(q){var he=Ii(q),be=he==v?q.constructor:void 0,Re=be?gn(be):"";if(Re)switch(Re){case dn:return x;case ut:return g;case bn:return b;case zn:return M;case nr:return ae}return he});function Ni(q,he){return he=he??s,!!he&&(typeof q=="number"||G.test(q))&&q>-1&&q%1==0&&q<he}function rs(q){var he=typeof q;return he=="string"||he=="number"||he=="symbol"||he=="boolean"?q!=="__proto__":q===null}function ns(q){return!!Ve&&Ve in q}function Ea(q){var he=q&&q.constructor,be=typeof he=="function"&&he.prototype||Oe;return q===be}function tn(q){return Tt.call(q)}function gn(q){if(q!=null){try{return $e.call(q)}catch{}try{return q+""}catch{}}return""}function Ls(q,he){return q===he||q!==q&&he!==he}var Bt=ba(function(){return arguments}())?ba:function(q){return yi(q)&&tt.call(q,"callee")&&!ur.call(q,"callee")},is=Array.isArray;function Os(q){return q!=null&&$i(q.length)&&!Qs(q)}var Qn=yr||IA;function xa(q,he){return Yn(q,he)}function Qs(q){if(!As(q))return!1;var he=Ii(q);return he==c||he==m||he==l||he==B}function $i(q){return typeof q=="number"&&q>-1&&q%1==0&&q<=s}function As(q){var he=typeof q;return q!=null&&(he=="object"||he=="function")}function yi(q){return q!=null&&typeof q=="object"}var Sa=k?P(k):Us;function Rs(q){return Os(q)?ya(q):Ba(q)}function Ps(){return[]}function IA(){return!1}n.exports=xa}(Pu,Pu.exports)),Pu.exports}var bh={},$4;function Iq(){if($4)return bh;$4=1,Object.defineProperty(bh,"__esModule",{value:!0});const n=W4(),e=Y4();var t;return function(r){function i(o={},l={},u=!1){typeof o!="object"&&(o={}),typeof l!="object"&&(l={});let f=n(l);u||(f=Object.keys(f).reduce((h,c)=>(f[c]!=null&&(h[c]=f[c]),h),{}));for(const h in o)o[h]!==void 0&&l[h]===void 0&&(f[h]=o[h]);return Object.keys(f).length>0?f:void 0}r.compose=i;function A(o={},l={}){typeof o!="object"&&(o={}),typeof l!="object"&&(l={});const u=Object.keys(o).concat(Object.keys(l)).reduce((f,h)=>(e(o[h],l[h])||(f[h]=l[h]===void 0?null:l[h]),f),{});return Object.keys(u).length>0?u:void 0}r.diff=A;function s(o={},l={}){o=o||{};const u=Object.keys(l).reduce((f,h)=>(l[h]!==o[h]&&o[h]!==void 0&&(f[h]=l[h]),f),{});return Object.keys(o).reduce((f,h)=>(o[h]!==l[h]&&l[h]===void 0&&(f[h]=null),f),u)}r.invert=s;function a(o,l,u=!1){if(typeof o!="object")return l;if(typeof l!="object")return;if(!u)return l;const f=Object.keys(l).reduce((h,c)=>(o[c]===void 0&&(h[c]=l[c]),h),{});return Object.keys(f).length>0?f:void 0}r.transform=a}(t||(t={})),bh.default=t,bh}var Bh={},J4;function Z4(){if(J4)return Bh;J4=1,Object.defineProperty(Bh,"__esModule",{value:!0});var n;return function(e){function t(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}e.length=t}(n||(n={})),Bh.default=n,Bh}var Ch={},ex;function Uq(){if(ex)return Ch;ex=1,Object.defineProperty(Ch,"__esModule",{value:!0});const n=Z4();class e{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const i=this.ops[this.index];if(i){const A=this.offset,s=n.default.length(i);if(r>=s-A?(r=s-A,this.index+=1,this.offset=0):this.offset+=r,typeof i.delete=="number")return{delete:r};{const a={};return i.attributes&&(a.attributes=i.attributes),typeof i.retain=="number"?a.retain=r:typeof i.retain=="object"&&i.retain!==null?a.retain=i.retain:typeof i.insert=="string"?a.insert=i.insert.substr(A,r):a.insert=i.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?n.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,i=this.index,A=this.next(),s=this.ops.slice(this.index);return this.offset=r,this.index=i,[A].concat(s)}}else return[]}}return Ch.default=e,Ch}var tx;function Nq(){return tx||(tx=1,function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=Tq(),r=W4(),i=Y4(),A=Iq();e.AttributeMap=A.default;const s=Z4();e.Op=s.default;const a=Uq();e.OpIterator=a.default;const o="\0",l=(f,h)=>{if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);const c=Object.keys(f)[0];if(!c||c!==Object.keys(h)[0])throw new Error(`embed types not matched: ${c} != ${Object.keys(h)[0]}`);return[c,f[c],h[c]]};class u{constructor(h){Array.isArray(h)?this.ops=h:h!=null&&Array.isArray(h.ops)?this.ops=h.ops:this.ops=[]}static registerEmbed(h,c){this.handlers[h]=c}static unregisterEmbed(h){delete this.handlers[h]}static getHandler(h){const c=this.handlers[h];if(!c)throw new Error(`no handlers for embed type "${h}"`);return c}insert(h,c){const m={};return typeof h=="string"&&h.length===0?this:(m.insert=h,c!=null&&typeof c=="object"&&Object.keys(c).length>0&&(m.attributes=c),this.push(m))}delete(h){return h<=0?this:this.push({delete:h})}retain(h,c){if(typeof h=="number"&&h<=0)return this;const m={retain:h};return c!=null&&typeof c=="object"&&Object.keys(c).length>0&&(m.attributes=c),this.push(m)}push(h){let c=this.ops.length,m=this.ops[c-1];if(h=r(h),typeof m=="object"){if(typeof h.delete=="number"&&typeof m.delete=="number")return this.ops[c-1]={delete:m.delete+h.delete},this;if(typeof m.delete=="number"&&h.insert!=null&&(c-=1,m=this.ops[c-1],typeof m!="object"))return this.ops.unshift(h),this;if(i(h.attributes,m.attributes)){if(typeof h.insert=="string"&&typeof m.insert=="string")return this.ops[c-1]={insert:m.insert+h.insert},typeof h.attributes=="object"&&(this.ops[c-1].attributes=h.attributes),this;if(typeof h.retain=="number"&&typeof m.retain=="number")return this.ops[c-1]={retain:m.retain+h.retain},typeof h.attributes=="object"&&(this.ops[c-1].attributes=h.attributes),this}}return c===this.ops.length?this.ops.push(h):this.ops.splice(c,0,h),this}chop(){const h=this.ops[this.ops.length-1];return h&&typeof h.retain=="number"&&!h.attributes&&this.ops.pop(),this}filter(h){return this.ops.filter(h)}forEach(h){this.ops.forEach(h)}map(h){return this.ops.map(h)}partition(h){const c=[],m=[];return this.forEach(g=>{(h(g)?c:m).push(g)}),[c,m]}reduce(h,c){return this.ops.reduce(h,c)}changeLength(){return this.reduce((h,c)=>c.insert?h+s.default.length(c):c.delete?h-c.delete:h,0)}length(){return this.reduce((h,c)=>h+s.default.length(c),0)}slice(h=0,c=1/0){const m=[],g=new a.default(this.ops);let w=0;for(;w<c&&g.hasNext();){let p;w<h?p=g.next(h-w):(p=g.next(c-w),m.push(p)),w+=s.default.length(p)}return new u(m)}compose(h){const c=new a.default(this.ops),m=new a.default(h.ops),g=[],w=m.peek();if(w!=null&&typeof w.retain=="number"&&w.attributes==null){let v=w.retain;for(;c.peekType()==="insert"&&c.peekLength()<=v;)v-=c.peekLength(),g.push(c.next());w.retain-v>0&&m.next(w.retain-v)}const p=new u(g);for(;c.hasNext()||m.hasNext();)if(m.peekType()==="insert")p.push(m.next());else if(c.peekType()==="delete")p.push(c.next());else{const v=Math.min(c.peekLength(),m.peekLength()),b=c.next(v),B=m.next(v);if(B.retain){const T={};if(typeof b.retain=="number")T.retain=typeof B.retain=="number"?v:B.retain;else if(typeof B.retain=="number")b.retain==null?T.insert=b.insert:T.retain=b.retain;else{const D=b.retain==null?"insert":"retain",[j,R,ae]=l(b[D],B.retain),L=u.getHandler(j);T[D]={[j]:L.compose(R,ae,D==="retain")}}const M=A.default.compose(b.attributes,B.attributes,typeof b.retain=="number");if(M&&(T.attributes=M),p.push(T),!m.hasNext()&&i(p.ops[p.ops.length-1],T)){const D=new u(c.rest());return p.concat(D).chop()}}else typeof B.delete=="number"&&(typeof b.retain=="number"||typeof b.retain=="object"&&b.retain!==null)&&p.push(B)}return p.chop()}concat(h){const c=new u(this.ops.slice());return h.ops.length>0&&(c.push(h.ops[0]),c.ops=c.ops.concat(h.ops.slice(1))),c}diff(h,c){if(this.ops===h.ops)return new u;const m=[this,h].map(b=>b.map(B=>{if(B.insert!=null)return typeof B.insert=="string"?B.insert:o;const T=b===h?"on":"with";throw new Error("diff() called "+T+" non-document")}).join("")),g=new u,w=t(m[0],m[1],c,!0),p=new a.default(this.ops),v=new a.default(h.ops);return w.forEach(b=>{let B=b[1].length;for(;B>0;){let T=0;switch(b[0]){case t.INSERT:T=Math.min(v.peekLength(),B),g.push(v.next(T));break;case t.DELETE:T=Math.min(B,p.peekLength()),p.next(T),g.delete(T);break;case t.EQUAL:T=Math.min(p.peekLength(),v.peekLength(),B);const M=p.next(T),D=v.next(T);i(M.insert,D.insert)?g.retain(T,A.default.diff(M.attributes,D.attributes)):g.push(D).delete(T);break}B-=T}}),g.chop()}eachLine(h,c=`
`){const m=new a.default(this.ops);let g=new u,w=0;for(;m.hasNext();){if(m.peekType()!=="insert")return;const p=m.peek(),v=s.default.length(p)-m.peekLength(),b=typeof p.insert=="string"?p.insert.indexOf(c,v)-v:-1;if(b<0)g.push(m.next());else if(b>0)g.push(m.next(b));else{if(h(g,m.next(1).attributes||{},w)===!1)return;w+=1,g=new u}}g.length()>0&&h(g,{},w)}invert(h){const c=new u;return this.reduce((m,g)=>{if(g.insert)c.delete(s.default.length(g));else{if(typeof g.retain=="number"&&g.attributes==null)return c.retain(g.retain),m+g.retain;if(g.delete||typeof g.retain=="number"){const w=g.delete||g.retain;return h.slice(m,m+w).forEach(v=>{g.delete?c.push(v):g.retain&&g.attributes&&c.retain(s.default.length(v),A.default.invert(g.attributes,v.attributes))}),m+w}else if(typeof g.retain=="object"&&g.retain!==null){const w=h.slice(m,m+1),p=new a.default(w.ops).next(),[v,b,B]=l(g.retain,p.insert),T=u.getHandler(v);return c.retain({[v]:T.invert(b,B)},A.default.invert(g.attributes,p.attributes)),m+1}}return m},0),c.chop()}transform(h,c=!1){if(c=!!c,typeof h=="number")return this.transformPosition(h,c);const m=h,g=new a.default(this.ops),w=new a.default(m.ops),p=new u;for(;g.hasNext()||w.hasNext();)if(g.peekType()==="insert"&&(c||w.peekType()!=="insert"))p.retain(s.default.length(g.next()));else if(w.peekType()==="insert")p.push(w.next());else{const v=Math.min(g.peekLength(),w.peekLength()),b=g.next(v),B=w.next(v);if(b.delete)continue;if(B.delete)p.push(B);else{const T=b.retain,M=B.retain;let D=typeof M=="object"&&M!==null?M:v;if(typeof T=="object"&&T!==null&&typeof M=="object"&&M!==null){const j=Object.keys(T)[0];if(j===Object.keys(M)[0]){const R=u.getHandler(j);R&&(D={[j]:R.transform(T[j],M[j],c)})}}p.retain(D,A.default.transform(b.attributes,B.attributes,c))}}return p.chop()}transformPosition(h,c=!1){c=!!c;const m=new a.default(this.ops);let g=0;for(;m.hasNext()&&g<=h;){const w=m.peekLength(),p=m.peekType();if(m.next(),p==="delete"){h-=Math.min(w,h-g);continue}else p==="insert"&&(g<h||!c)&&(h+=w);g+=w}return h}}u.Op=s.default,u.OpIterator=a.default,u.AttributeMap=A.default,u.handlers={},e.default=u,n.exports=u,n.exports.default=u}(yh,yh.exports)),yh.exports}var ji=Nq();const ct=Uc(ji);class vA extends _i{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}vA.blotName="break",vA.tagName="BR";let wA=class extends wh{};const Lq={"&":"&","<":"<",">":">",'"':""","'":"'"};function Eh(n){return n.replace(/[&<>"']/g,e=>Lq[e])}class ti extends Fm{static allowedChildren=[ti,vA,_i,wA];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(e,t){const r=ti.order.indexOf(e),i=ti.order.indexOf(t);return r>=0||i>=0?r-i:e===t?0:e<t?-1:1}formatAt(e,t,r,i){if(ti.compare(this.statics.blotName,r)<0&&this.scroll.query(r,ht.BLOT)){const A=this.isolate(e,t);i&&A.wrap(r,i)}else super.formatAt(e,t,r,i)}optimize(e){if(super.optimize(e),this.parent instanceof ti&&ti.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}}const rx=1;class Un extends Qu{cache={};delta(){return this.cache.delta==null&&(this.cache.delta=nx(this)),this.cache.delta}deleteAt(e,t){super.deleteAt(e,t),this.cache={}}formatAt(e,t,r,i){t<=0||(this.scroll.query(r,ht.BLOCK)?e+t===this.length()&&this.format(r,i):super.formatAt(e,Math.min(t,this.length()-e-1),r,i),this.cache={})}insertAt(e,t,r){if(r!=null){super.insertAt(e,t,r),this.cache={};return}if(t.length===0)return;const i=t.split(`
`),A=i.shift();A.length>0&&(e<this.length()-1||this.children.tail==null?super.insertAt(Math.min(e,this.length()-1),A):this.children.tail.insertAt(this.children.tail.length(),A),this.cache={});let s=this;i.reduce((a,o)=>(s=s.split(a,!0),s.insertAt(0,o),o.length),e+A.length)}insertBefore(e,t){const{head:r}=this.children;super.insertBefore(e,t),r instanceof vA&&r.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+rx),this.cache.length}moveChildren(e,t){super.moveChildren(e,t),this.cache={}}optimize(e){super.optimize(e),this.cache={}}path(e){return super.path(e,!0)}removeChild(e){super.removeChild(e),this.cache={}}split(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t&&(e===0||e>=this.length()-rx)){const i=this.clone();return e===0?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}const r=super.split(e,t);return this.cache={},r}}Un.blotName="block",Un.tagName="P",Un.defaultChild=vA,Un.allowedChildren=[vA,ti,_i,wA];class Ki extends _i{attach(){super.attach(),this.attributes=new mh(this.domNode)}delta(){return new ct().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const r=this.scroll.query(e,ht.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,t)}formatAt(e,t,r,i){this.format(r,i)}insertAt(e,t,r){if(r!=null){super.insertAt(e,t,r);return}const i=t.split(`
`),A=i.pop(),s=i.map(o=>{const l=this.scroll.create(Un.blotName);return l.insertAt(0,o),l}),a=this.split(e);s.forEach(o=>{this.parent.insertBefore(o,a)}),A&&this.parent.insertBefore(this.scroll.create("text",A),a)}}Ki.scope=ht.BLOCK_BLOT;function nx(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.descendants(Vn).reduce((t,r)=>r.length()===0?t:t.insert(r.value(),Vi(r,{},e)),new ct).insert(`
`,Vi(n))}function Vi(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return n==null||("formats"in n&&typeof n.formats=="function"&&(e={...e,...n.formats()},t&&delete e["code-token"]),n.parent==null||n.parent.statics.blotName==="scroll"||n.parent.statics.scope!==n.statics.scope)?e:Vi(n.parent,e,t)}class yA extends _i{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\uFEFF";static value(){}constructor(e,t,r){super(e,t),this.selection=r,this.textNode=document.createTextNode(yA.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,t){if(this.savedLength!==0){super.format(e,t);return}let r=this,i=0;for(;r!=null&&r.statics.scope!==ht.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=yA.CONTENTS.length,r.optimize(),r.formatAt(i,yA.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const t=this.prev instanceof wA?this.prev:null,r=t?t.length():0,i=this.next instanceof wA?this.next:null,A=i?i.text:"",{textNode:s}=this,a=s.data.split(yA.CONTENTS).join("");s.data=yA.CONTENTS;let o;if(t)o=t,(a||i)&&(t.insertAt(t.length(),a+A),i&&i.remove());else if(i)o=i,i.insertAt(0,a);else{const l=document.createTextNode(a);o=this.scroll.create(l),this.parent.insertBefore(o,this)}if(this.remove(),e){const l=(h,c)=>t&&h===t.domNode?c:h===s?r+c-1:i&&h===i.domNode?r+a.length+c:null,u=l(e.start.node,e.start.offset),f=l(e.end.node,e.end.offset);if(u!==null&&f!==null)return{startNode:o.domNode,startOffset:u,endNode:o.domNode,endOffset:f}}return null}update(e,t){if(e.some(r=>r.type==="characterData"&&r.target===this.textNode)){const r=this.restore();r&&(t.range=r)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=yA.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}}var Nm={exports:{}},ix;function Oq(){return ix||(ix=1,function(n){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function i(o,l,u){this.fn=o,this.context=l,this.once=u||!1}function A(o,l,u,f,h){if(typeof u!="function")throw new TypeError("The listener must be a function");var c=new i(u,f||o,h),m=t?t+l:l;return o._events[m]?o._events[m].fn?o._events[m]=[o._events[m],c]:o._events[m].push(c):(o._events[m]=c,o._eventsCount++),o}function s(o,l){--o._eventsCount===0?o._events=new r:delete o._events[l]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],u,f;if(this._eventsCount===0)return l;for(f in u=this._events)e.call(u,f)&&l.push(t?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},a.prototype.listeners=function(l){var u=t?t+l:l,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,c=f.length,m=new Array(c);h<c;h++)m[h]=f[h].fn;return m},a.prototype.listenerCount=function(l){var u=t?t+l:l,f=this._events[u];return f?f.fn?1:f.length:0},a.prototype.emit=function(l,u,f,h,c,m){var g=t?t+l:l;if(!this._events[g])return!1;var w=this._events[g],p=arguments.length,v,b;if(w.fn){switch(w.once&&this.removeListener(l,w.fn,void 0,!0),p){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,u),!0;case 3:return w.fn.call(w.context,u,f),!0;case 4:return w.fn.call(w.context,u,f,h),!0;case 5:return w.fn.call(w.context,u,f,h,c),!0;case 6:return w.fn.call(w.context,u,f,h,c,m),!0}for(b=1,v=new Array(p-1);b<p;b++)v[b-1]=arguments[b];w.fn.apply(w.context,v)}else{var B=w.length,T;for(b=0;b<B;b++)switch(w[b].once&&this.removeListener(l,w[b].fn,void 0,!0),p){case 1:w[b].fn.call(w[b].context);break;case 2:w[b].fn.call(w[b].context,u);break;case 3:w[b].fn.call(w[b].context,u,f);break;case 4:w[b].fn.call(w[b].context,u,f,h);break;default:if(!v)for(T=1,v=new Array(p-1);T<p;T++)v[T-1]=arguments[T];w[b].fn.apply(w[b].context,v)}}return!0},a.prototype.on=function(l,u,f){return A(this,l,u,f,!1)},a.prototype.once=function(l,u,f){return A(this,l,u,f,!0)},a.prototype.removeListener=function(l,u,f,h){var c=t?t+l:l;if(!this._events[c])return this;if(!u)return s(this,c),this;var m=this._events[c];if(m.fn)m.fn===u&&(!h||m.once)&&(!f||m.context===f)&&s(this,c);else{for(var g=0,w=[],p=m.length;g<p;g++)(m[g].fn!==u||h&&!m[g].once||f&&m[g].context!==f)&&w.push(m[g]);w.length?this._events[c]=w.length===1?w[0]:w:s(this,c)}return this},a.prototype.removeAllListeners=function(l){var u;return l?(u=t?t+l:l,this._events[u]&&s(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=t,a.EventEmitter=a,n.exports=a}(Nm)),Nm.exports}var Qq=Oq();const Rq=Uc(Qq),Lm=new WeakMap,Om=["error","warn","log","info"];let Qm="warn";function Ax(n){if(Qm&&Om.indexOf(n)<=Om.indexOf(Qm)){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];console[n](...t)}}function bs(n){return Om.reduce((e,t)=>(e[t]=Ax.bind(console,t,n),e),{})}bs.level=n=>{Qm=n},Ax.level=bs.level;const Rm=bs("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(n=>{document.addEventListener(n,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(i=>{const A=Lm.get(i);A&&A.emitter&&A.emitter.handleDOM(...t)})})});class lt extends Rq{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",Rm.error)}emit(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Rm.log.call(Rm,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];(this.domListeners[e.type]||[]).forEach(A=>{let{node:s,handler:a}=A;(e.target===s||s.contains(e.target))&&a(e,...r)})}listenDOM(e,t,r){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:r})}}const Pm=bs("quill:selection");class ao{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class Pq{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new ao(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,lt.sources.USER),1)}),this.emitter.on(lt.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(lt.events.SCROLL_UPDATE,(i,A)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);const s=A.some(a=>a.type==="characterData"||a.type==="childList"||a.type==="attributes"&&a.target===this.root);this.update(s?lt.sources.SILENT:i)}catch{}})}),this.emitter.on(lt.events.SCROLL_OPTIMIZE,(r,i)=>{if(i.range){const{startNode:A,startOffset:s,endNode:a,endOffset:o}=i.range;this.setNativeRange(A,s,a,o),this.update(lt.sources.SILENT)}}),this.update(lt.sources.SILENT)}handleComposition(){this.emitter.on(lt.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(lt.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(lt.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(e,ht.BLOCK))){if(r.start.node!==this.cursor.textNode){const i=this.scroll.find(r.start.node,!1);if(i==null)return;if(i instanceof Vn){const A=i.split(r.start.offset);i.parent.insertBefore(this.cursor,A)}else i.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.scroll.length();e=Math.min(e,r-1),t=Math.min(e+t,r-1)-e;let i,[A,s]=this.scroll.leaf(e);if(A==null)return null;if(t>0&&s===A.length()){const[u]=this.scroll.leaf(e+1);if(u){const[f]=this.scroll.line(e),[h]=this.scroll.line(e+1);f===h&&(A=u,s=0)}}[i,s]=A.position(s,!0);const a=document.createRange();if(t>0)return a.setStart(i,s),[A,s]=this.scroll.leaf(e+t),A==null?null:([i,s]=A.position(s,!0),a.setEnd(i,s),a.getBoundingClientRect());let o="left",l;if(i instanceof Text){if(!i.data.length)return null;s<i.data.length?(a.setStart(i,s),a.setEnd(i,s+1)):(a.setStart(i,s-1),a.setEnd(i,s),o="right"),l=a.getBoundingClientRect()}else{if(!(A.domNode instanceof Element))return null;l=A.domNode.getBoundingClientRect(),s>0&&(o="right")}return{bottom:l.top+l.height,height:l.height,left:l[o],right:l[o],top:l.top,width:0}}getNativeRange(){const e=document.getSelection();if(e==null||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(t==null)return null;const r=this.normalizeNative(t);return Pm.info("getNativeRange",r),r}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();return t==null?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&km(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const r=t.map(s=>{const[a,o]=s,l=this.scroll.find(a,!0),u=l.offset(this.scroll);return o===0?u:l instanceof Vn?u+l.index(a,o):u+l.length()}),i=Math.min(Math.max(...r),this.scroll.length()-1),A=Math.min(i,...r);return new ao(A,i-A)}normalizeNative(e){if(!km(this.root,e.startContainer)||!e.collapsed&&!km(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(r=>{let{node:i,offset:A}=r;for(;!(i instanceof Text)&&i.childNodes.length>0;)if(i.childNodes.length>A)i=i.childNodes[A],A=0;else if(i.childNodes.length===A)i=i.lastChild,i instanceof Text?A=i.data.length:i.childNodes.length>0?A=i.childNodes.length:A=i.childNodes.length+1;else break;r.node=i,r.offset=A}),t}rangeToNative(e){const t=this.scroll.length(),r=(i,A)=>{i=Math.min(t-1,i);const[s,a]=this.scroll.leaf(i);return s?s.position(a,A):[null,-1]};return[...r(e.index,!1),...r(e.index+e.length,!0)]}setNativeRange(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Pm.info("setNativeRange",e,t,r,i),e!=null&&(this.root.parentNode==null||e.parentNode==null||r.parentNode==null))return;const s=document.getSelection();if(s!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:a}=this.getNativeRange()||{};if(a==null||A||e!==a.startContainer||t!==a.startOffset||r!==a.endContainer||i!==a.endOffset){e instanceof Element&&e.tagName==="BR"&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),r instanceof Element&&r.tagName==="BR"&&(i=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);const o=document.createRange();o.setStart(e,t),o.setEnd(r,i),s.removeAllRanges(),s.addRange(o)}}else s.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lt.sources.API;if(typeof t=="string"&&(r=t,t=!1),Pm.info("setRange",e),e!=null){const i=this.rangeToNative(e);this.setNativeRange(...i,t)}else this.setNativeRange(null);this.update(r)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lt.sources.USER;const t=this.lastRange,[r,i]=this.getRange();if(this.lastRange=r,this.lastNative=i,this.lastRange!=null&&(this.savedRange=this.lastRange),!ca(t,this.lastRange)){if(!this.composing&&i!=null&&i.native.collapsed&&i.start.node!==this.cursor.textNode){const s=this.cursor.restore();s&&this.setNativeRange(s.startNode,s.startOffset,s.endNode,s.endOffset)}const A=[lt.events.SELECTION_CHANGE,dl(this.lastRange),dl(t),e];this.emitter.emit(lt.events.EDITOR_CHANGE,...A),e!==lt.sources.SILENT&&this.emitter.emit(...A)}}}function km(n,e){try{e.parentNode}catch{return!1}return n.contains(e)}const kq=/^[ -~]*$/;class Dq{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const r=sx(e),i=new ct;return Hq(r.ops.slice()).reduce((s,a)=>{const o=ji.Op.length(a);let l=a.attributes||{},u=!1,f=!1;if(a.insert!=null){if(i.retain(o),typeof a.insert=="string"){const m=a.insert;f=!m.endsWith(`
`)&&(t<=s||!!this.scroll.descendant(Ki,s)[0]),this.scroll.insertAt(s,m);const[g,w]=this.scroll.line(s);let p=fa({},Vi(g));if(g instanceof Un){const[v]=g.descendant(Vn,w);v&&(p=fa(p,Vi(v)))}l=ji.AttributeMap.diff(p,l)||{}}else if(typeof a.insert=="object"){const m=Object.keys(a.insert)[0];if(m==null)return s;const g=this.scroll.query(m,ht.INLINE)!=null;if(g)(t<=s||this.scroll.descendant(Ki,s)[0])&&(f=!0);else if(s>0){const[w,p]=this.scroll.descendant(Vn,s-1);w instanceof wA?w.value()[p]!==`
`&&(u=!0):w instanceof _i&&w.statics.scope===ht.INLINE_BLOT&&(u=!0)}if(this.scroll.insertAt(s,m,a.insert[m]),g){const[w]=this.scroll.descendant(Vn,s);if(w){const p=fa({},Vi(w));l=ji.AttributeMap.diff(p,l)||{}}}}t+=o}else if(i.push(a),a.retain!==null&&typeof a.retain=="object"){const m=Object.keys(a.retain)[0];if(m==null)return s;this.scroll.updateEmbedAt(s,m,a.retain[m])}Object.keys(l).forEach(m=>{this.scroll.formatAt(s,o,m,l[m])});const h=u?1:0,c=f?1:0;return t+=h+c,i.retain(h),i.delete(c),s+o+h+c},0),i.reduce((s,a)=>typeof a.delete=="number"?(this.scroll.deleteAt(s,a.delete),s):s+ji.Op.length(a),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update(new ct().retain(e).delete(t))}formatLine(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(r).forEach(A=>{this.scroll.lines(e,Math.max(t,1)).forEach(s=>{s.format(A,r[A])})}),this.scroll.optimize();const i=new ct().retain(e).retain(t,dl(r));return this.update(i)}formatText(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r).forEach(A=>{this.scroll.formatAt(e,t,A,r[A])});const i=new ct().retain(e).retain(t,dl(r));return this.update(i)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce((e,t)=>e.concat(t.delta()),new ct)}getFormat(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[],i=[];t===0?this.scroll.path(e).forEach(a=>{const[o]=a;o instanceof Un?r.push(o):o instanceof Vn&&i.push(o)}):(r=this.scroll.lines(e,t),i=this.scroll.descendants(Vn,e,t));const[A,s]=[r,i].map(a=>{const o=a.shift();if(o==null)return{};let l=Vi(o);for(;Object.keys(l).length>0;){const u=a.shift();if(u==null)return l;l=Mq(Vi(u),l)}return l});return{...A,...s}}getHTML(e,t){const[r,i]=this.scroll.line(e);if(r){const A=r.length();return r.length()>=i+t&&!(i===0&&t===A)?ku(r,i,t,!0):ku(this.scroll,e,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter(r=>typeof r.insert=="string").map(r=>r.insert).join("")}insertContents(e,t){const r=sx(t),i=new ct().retain(e).concat(r);return this.scroll.insertContents(e,r),this.update(i)}insertEmbed(e,t,r){return this.scroll.insertAt(e,t,r),this.update(new ct().retain(e).insert({[t]:r}))}insertText(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t=t.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(e,t),Object.keys(r).forEach(i=>{this.scroll.formatAt(e,t.length,i,r[i])}),this.update(new ct().retain(e).insert(t,dl(r)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const e=this.scroll.children.head;if(e?.statics.blotName!==Un.blotName)return!1;const t=e;return t.children.length>1?!1:t.children.head instanceof vA}removeFormat(e,t){const r=this.getText(e,t),[i,A]=this.scroll.line(e+t);let s=0,a=new ct;i!=null&&(s=i.length()-A,a=i.delta().slice(A,A+s-1).insert(`
`));const l=this.getContents(e,t+s).diff(new ct().insert(r).concat(a)),u=new ct().retain(e).concat(l);return this.applyDelta(u)}update(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const i=this.delta;if(t.length===1&&t[0].type==="characterData"&&t[0].target.data.match(kq)&&this.scroll.find(t[0].target)){const A=this.scroll.find(t[0].target),s=Vi(A),a=A.offset(this.scroll),o=t[0].oldValue.replace(yA.CONTENTS,""),l=new ct().insert(o),u=new ct().insert(A.value()),f=r&&{oldRange:ax(r.oldRange,-a),newRange:ax(r.newRange,-a)};e=new ct().retain(a).concat(l.diff(u,f)).reduce((c,m)=>m.insert?c.insert(m.insert,s):c.push(m),new ct),this.delta=i.compose(e)}else this.delta=this.getDelta(),(!e||!ca(i.compose(e),this.delta))&&(e=i.diff(this.delta,r));return e}}function yl(n,e,t){if(n.length===0){const[c]=Dm(t.pop());return e<=0?`</li></${c}>`:`</li></${c}>${yl([],e-1,t)}`}const[{child:r,offset:i,length:A,indent:s,type:a},...o]=n,[l,u]=Dm(a);if(s>e)return t.push(a),s===e+1?`<${l}><li${u}>${ku(r,i,A)}${yl(o,s,t)}`:`<${l}><li>${yl(n,e+1,t)}`;const f=t[t.length-1];if(s===e&&a===f)return`</li><li${u}>${ku(r,i,A)}${yl(o,s,t)}`;const[h]=Dm(t.pop());return`</li></${h}>${yl(n,e-1,t)}`}function ku(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in n&&typeof n.html=="function")return n.html(e,t);if(n instanceof wA)return Eh(n.value().slice(e,e+t)).replaceAll(" "," ");if(n instanceof mA){if(n.statics.blotName==="list-container"){const l=[];return n.children.forEachAt(e,t,(u,f,h)=>{const c="formats"in u&&typeof u.formats=="function"?u.formats():{};l.push({child:u,offset:f,length:h,indent:c.indent||0,type:c.list})}),yl(l,-1,[])}const i=[];if(n.children.forEachAt(e,t,(l,u,f)=>{i.push(ku(l,u,f))}),r||n.statics.blotName==="list")return i.join("");const{outerHTML:A,innerHTML:s}=n.domNode,[a,o]=A.split(`>${s}<`);return a==="<table"?`<table style="border: 1px solid #000;">${i.join("")}<${o}`:`${a}>${i.join("")}<${o}`}return n.domNode instanceof Element?n.domNode.outerHTML:""}function Mq(n,e){return Object.keys(e).reduce((t,r)=>{if(n[r]==null)return t;const i=e[r];return i===n[r]?t[r]=i:Array.isArray(i)?i.indexOf(n[r])<0?t[r]=i.concat([n[r]]):t[r]=i:t[r]=[i,n[r]],t},{})}function Dm(n){const e=n==="ordered"?"ol":"ul";switch(n){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function sx(n){return n.reduce((e,t)=>{if(typeof t.insert=="string"){const r=t.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return e.insert(r,t.attributes)}return e.push(t)},new ct)}function ax(n,e){let{index:t,length:r}=n;return new ao(t+e,r)}function Hq(n){const e=[];return n.forEach(t=>{typeof t.insert=="string"?t.insert.split(`
`).forEach((i,A)=>{A&&e.push({insert:`
`,attributes:t.attributes}),i&&e.push({insert:i,attributes:t.attributes})}):e.push(t)}),e}class YA{static DEFAULTS={};constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=e,this.options=t}}const xh="\uFEFF";class Mm extends _i{constructor(e,t){super(e,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(r=>{this.contentNode.appendChild(r)}),this.leftGuard=document.createTextNode(xh),this.rightGuard=document.createTextNode(xh),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let t=null,r;const i=e.data.split(xh).join("");if(e===this.leftGuard)if(this.prev instanceof wA){const A=this.prev.length();this.prev.insertAt(A,i),t={startNode:this.prev.domNode,startOffset:A+i.length}}else r=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(r),this),t={startNode:r,startOffset:i.length};else e===this.rightGuard&&(this.next instanceof wA?(this.next.insertAt(0,i),t={startNode:this.next.domNode,startOffset:i.length}):(r=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(r),this.next),t={startNode:r,startOffset:i.length}));return e.data=xh,t}update(e,t){e.forEach(r=>{if(r.type==="characterData"&&(r.target===this.leftGuard||r.target===this.rightGuard)){const i=this.restore(r.target);i&&(t.range=i)}})}}class qq{isComposing=!1;constructor(e,t){this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){const t=e.target instanceof Node?this.scroll.find(e.target,!0):null;t&&!(t instanceof Mm)&&(this.emitter.emit(lt.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(lt.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(lt.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(lt.events.COMPOSITION_END,e),this.isComposing=!1}}class bl{static DEFAULTS={modules:{}};static themes={default:bl};modules={};constructor(e,t){this.quill=e,this.options=t}init(){Object.keys(this.options.modules).forEach(e=>{this.modules[e]==null&&this.addModule(e)})}addModule(e){const t=this.quill.constructor.import(`modules/${e}`);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}const jq=n=>n.parentElement||n.getRootNode().host||null,Kq=n=>{const e=n.getBoundingClientRect(),t="offsetWidth"in n&&Math.abs(e.width)/n.offsetWidth||1,r="offsetHeight"in n&&Math.abs(e.height)/n.offsetHeight||1;return{top:e.top,right:e.left+n.clientWidth*t,bottom:e.top+n.clientHeight*r,left:e.left}},Sh=n=>{const e=parseInt(n,10);return Number.isNaN(e)?0:e},ox=(n,e,t,r,i,A)=>n<t&&e>r?0:n<t?-(t-n+i):e>r?e-n>r-t?n+i-t:e-r+A:0,Vq=(n,e)=>{const t=n.ownerDocument;let r=e,i=n;for(;i;){const A=i===t.body,s=A?{top:0,right:window.visualViewport?.width??t.documentElement.clientWidth,bottom:window.visualViewport?.height??t.documentElement.clientHeight,left:0}:Kq(i),a=getComputedStyle(i),o=ox(r.left,r.right,s.left,s.right,Sh(a.scrollPaddingLeft),Sh(a.scrollPaddingRight)),l=ox(r.top,r.bottom,s.top,s.bottom,Sh(a.scrollPaddingTop),Sh(a.scrollPaddingBottom));if(o||l)if(A)t.defaultView?.scrollBy(o,l);else{const{scrollLeft:u,scrollTop:f}=i;l&&(i.scrollTop+=l),o&&(i.scrollLeft+=o);const h=i.scrollLeft-u,c=i.scrollTop-f;r={left:r.left-h,top:r.top-c,right:r.right-h,bottom:r.bottom-c}}i=A||a.position==="fixed"?null:jq(i)}},Gq=100,zq=["block","break","cursor","inline","scroll","text"],Wq=(n,e,t)=>{const r=new gl;return zq.forEach(i=>{const A=e.query(i);A&&r.register(A)}),n.forEach(i=>{let A=e.query(i);A||t.error(`Cannot register "${i}" specified in "formats" config. Are you sure it was registered?`);let s=0;for(;A;)if(r.register(A),A="blotName"in A?A.requiredContainer??null:null,s+=1,s>Gq){t.error(`Cycle detected in registering blot requiredContainer: "${i}"`);break}}),r},Bl=bs("quill"),Fh=new gl;mA.uiClass="ql-ui";class ke{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Fh,theme:"default"};static events=lt.events;static sources=lt.sources;static version="2.0.3";static imports={delta:ct,parchment:_q,"core/module":YA,"core/theme":bl};static debug(e){e===!0&&(e="log"),bs.level(e)}static find(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Lm.get(e)||Fh.find(e,t)}static import(e){return this.imports[e]==null&&Bl.error(`Cannot import ${e}. Are you sure it was registered?`),this.imports[e]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const e=arguments.length<=0?void 0:arguments[0],t=!!(!(arguments.length<=1)&&arguments[1]),r="attrName"in e?e.attrName:e.blotName;typeof r=="string"?this.register(`formats/${r}`,e,t):Object.keys(e).forEach(i=>{this.register(i,e[i],t)})}else{const e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=!!(!(arguments.length<=2)&&arguments[2]);this.imports[e]!=null&&!r&&Bl.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&typeof t!="boolean"&&t.blotName!=="abstract"&&Fh.register(t),typeof t.register=="function"&&t.register(Fh)}}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=Xq(e,t),this.container=this.options.container,this.container==null){Bl.error("Invalid Quill container",e);return}this.options.debug&&ke.debug(this.options.debug);const r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",Lm.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new lt;const i=Tm.blotName,A=this.options.registry.query(i);if(!A||!("blotName"in A))throw new Error(`Cannot initialize Quill without "${i}" blot`);if(this.scroll=new A(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new Dq(this.scroll),this.selection=new Pq(this.scroll,this.emitter),this.composition=new qq(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(lt.events.EDITOR_CHANGE,s=>{s===lt.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(lt.events.SCROLL_UPDATE,(s,a)=>{const o=this.selection.lastRange,[l]=this.selection.getRange(),u=o&&l?{oldRange:o,newRange:l}:void 0;bA.call(this,()=>this.editor.update(null,a,u),s)}),this.emitter.on(lt.events.SCROLL_EMBED_UPDATE,(s,a)=>{const o=this.selection.lastRange,[l]=this.selection.getRange(),u=o&&l?{oldRange:o,newRange:l}:void 0;bA.call(this,()=>{const f=new ct().retain(s.offset(this)).retain({[s.statics.blotName]:a});return this.editor.update(f,[],u)},ke.sources.USER)}),r){const s=this.clipboard.convert({html:`${r}<p><br></p>`,text:`
`});this.setContents(s)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof e=="string"){const r=e;e=document.createElement("div"),e.classList.add(r)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,r){return[e,t,,r]=Bs(e,t,r),bA.call(this,()=>this.editor.deleteText(e,t),r,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lt.sources.API;return bA.call(this,()=>{const i=this.getSelection(!0);let A=new ct;if(i==null)return A;if(this.scroll.query(e,ht.BLOCK))A=this.editor.formatLine(i.index,i.length,{[e]:t});else{if(i.length===0)return this.selection.format(e,t),A;A=this.editor.formatText(i.index,i.length,{[e]:t})}return this.setSelection(i,lt.sources.SILENT),A},r)}formatLine(e,t,r,i,A){let s;return[e,t,s,A]=Bs(e,t,r,i,A),bA.call(this,()=>this.editor.formatLine(e,t,s),A,e,0)}formatText(e,t,r,i,A){let s;return[e,t,s,A]=Bs(e,t,r,i,A),bA.call(this,()=>this.editor.formatText(e,t,s),A,e,0)}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=null;if(typeof e=="number"?r=this.selection.getBounds(e,t):r=this.selection.getBounds(e.index,e.length),!r)return null;const i=this.container.getBoundingClientRect();return{bottom:r.bottom-i.top,height:r.height,left:r.left-i.left,right:r.right-i.left,top:r.top-i.top,width:r.width}}getContents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-e;return[e,t]=Bs(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof e=="number"?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof e!="number"?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=Bs(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=Bs(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ke.sources.API;return bA.call(this,()=>this.editor.insertEmbed(e,t,r),i,e)}insertText(e,t,r,i,A){let s;return[e,,s,A]=Bs(e,0,r,i,A),bA.call(this,()=>this.editor.insertText(e,t,s),A,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,r){return[e,t,,r]=Bs(e,t,r),bA.call(this,()=>this.editor.removeFormat(e,t),r,e)}scrollRectIntoView(e){Vq(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lt.sources.API;return bA.call(this,()=>{e=new ct(e);const r=this.getLength(),i=this.editor.deleteText(0,r),A=this.editor.insertContents(0,e),s=this.editor.deleteText(this.getLength()-1,1);return i.compose(A).compose(s)},t)}setSelection(e,t,r){e==null?this.selection.setRange(null,t||ke.sources.API):([e,t,,r]=Bs(e,t,r),this.selection.setRange(new ao(Math.max(0,e),t),r),r!==lt.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lt.sources.API;const r=new ct().insert(e);return this.setContents(r,t)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lt.sources.USER;const t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lt.sources.API;return bA.call(this,()=>(e=new ct(e),this.editor.applyDelta(e)),t,!0)}}function lx(n){return typeof n=="string"?document.querySelector(n):n}function Hm(n){return Object.entries(n??{}).reduce((e,t)=>{let[r,i]=t;return{...e,[r]:i===!0?{}:i}},{})}function ux(n){return Object.fromEntries(Object.entries(n).filter(e=>e[1]!==void 0))}function Xq(n,e){const t=lx(n);if(!t)throw new Error("Invalid Quill container");const i=!e.theme||e.theme===ke.DEFAULTS.theme?bl:ke.import(`themes/${e.theme}`);if(!i)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:A,...s}=ke.DEFAULTS,{modules:a,...o}=i.DEFAULTS;let l=Hm(e.modules);l!=null&&l.toolbar&&l.toolbar.constructor!==Object&&(l={...l,toolbar:{container:l.toolbar}});const u=fa({},Hm(A),Hm(a),l),f={...s,...ux(o),...ux(e)};let h=e.registry;return h?e.formats&&Bl.warn('Ignoring "formats" option because "registry" is specified'):h=e.formats?Wq(e.formats,f.registry,Bl):f.registry,{...f,registry:h,container:t,theme:i,modules:Object.entries(u).reduce((c,m)=>{let[g,w]=m;if(!w)return c;const p=ke.import(`modules/${g}`);return p==null?(Bl.error(`Cannot load ${g} module. Are you sure you registered it?`),c):{...c,[g]:fa({},p.DEFAULTS||{},w)}},{}),bounds:lx(f.bounds)}}function bA(n,e,t,r){if(!this.isEnabled()&&e===lt.sources.USER&&!this.allowReadOnlyEdits)return new ct;let i=t==null?null:this.getSelection();const A=this.editor.delta,s=n();if(i!=null&&(t===!0&&(t=i.index),r==null?i=cx(i,s,e):r!==0&&(i=cx(i,t,r,e)),this.setSelection(i,lt.sources.SILENT)),s.length()>0){const a=[lt.events.TEXT_CHANGE,s,A,e];this.emitter.emit(lt.events.EDITOR_CHANGE,...a),e!==lt.sources.SILENT&&this.emitter.emit(...a)}return s}function Bs(n,e,t,r,i){let A={};return typeof n.index=="number"&&typeof n.length=="number"?typeof e!="number"?(i=r,r=t,t=e,e=n.length,n=n.index):(e=n.length,n=n.index):typeof e!="number"&&(i=r,r=t,t=e,e=0),typeof t=="object"?(A=t,i=r):typeof t=="string"&&(r!=null?A[t]=r:i=t),i=i||lt.sources.API,[n,e,A,i]}function cx(n,e,t,r){const i=typeof t=="number"?t:0;if(n==null)return null;let A,s;return e&&typeof e.transformPosition=="function"?[A,s]=[n.index,n.index+n.length].map(a=>e.transformPosition(a,r!==lt.sources.USER)):[A,s]=[n.index,n.index+n.length].map(a=>a<e||a===e&&r===lt.sources.USER?a:i>=0?a+i:Math.max(e,a+i)),new ao(A,s-A)}class oo extends vh{}function fx(n){return n instanceof Un||n instanceof Ki}function hx(n){return typeof n.updateContent=="function"}class Yq extends Tm{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=Un;static allowedChildren=[Un,Ki,oo];constructor(e,t,r){let{emitter:i}=r;super(e,t),this.emitter=i,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",A=>this.handleDragStart(A))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const e=this.batch;this.batch=!1,this.update(e)}emitMount(e){this.emitter.emit(lt.events.SCROLL_BLOT_MOUNT,e)}emitUnmount(e){this.emitter.emit(lt.events.SCROLL_BLOT_UNMOUNT,e)}emitEmbedUpdate(e,t){this.emitter.emit(lt.events.SCROLL_EMBED_UPDATE,e,t)}deleteAt(e,t){const[r,i]=this.line(e),[A]=this.line(e+t);if(super.deleteAt(e,t),A!=null&&r!==A&&i>0){if(r instanceof Ki||A instanceof Ki){this.optimize();return}const s=A.children.head instanceof vA?null:A.children.head;r.moveChildren(A,s),r.remove()}this.optimize()}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",e?"true":"false")}formatAt(e,t,r,i){super.formatAt(e,t,r,i),this.optimize()}insertAt(e,t,r){if(e>=this.length())if(r==null||this.scroll.query(t,ht.BLOCK)==null){const i=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(i),r==null&&t.endsWith(`
`)?i.insertAt(0,t.slice(0,-1),r):i.insertAt(0,t,r)}else{const i=this.scroll.create(t,r);this.appendChild(i)}else super.insertAt(e,t,r);this.optimize()}insertBefore(e,t){if(e.statics.scope===ht.INLINE_BLOT){const r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(e),super.insertBefore(r,t)}else super.insertBefore(e,t)}insertContents(e,t){const r=this.deltaToRenderBlocks(t.concat(new ct().insert(`
`))),i=r.pop();if(i==null)return;this.batchStart();const A=r.shift();if(A){const o=A.type==="block"&&(A.delta.length()===0||!this.descendant(Ki,e)[0]&&e<this.length()),l=A.type==="block"?A.delta:new ct().insert({[A.key]:A.value});qm(this,e,l);const u=A.type==="block"?1:0,f=e+l.length()+u;o&&this.insertAt(f-1,`
`);const h=Vi(this.line(e)[0]),c=ji.AttributeMap.diff(h,A.attributes)||{};Object.keys(c).forEach(m=>{this.formatAt(f-1,1,m,c[m])}),e=f}let[s,a]=this.children.find(e);if(r.length&&(s&&(s=s.split(a),a=0),r.forEach(o=>{if(o.type==="block"){const l=this.createBlock(o.attributes,s||void 0);qm(l,0,o.delta)}else{const l=this.create(o.key,o.value);this.insertBefore(l,s||void 0),Object.keys(o.attributes).forEach(u=>{l.format(u,o.attributes[u])})}})),i.type==="block"&&i.delta.length()){const o=s?s.offset(s.scroll)+a:this.length();qm(this,o,i.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(e){const t=this.path(e).pop();if(!t)return[null,-1];const[r,i]=t;return r instanceof Vn?[r,i]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(fx,e)}lines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const r=(i,A,s)=>{let a=[],o=s;return i.children.forEachAt(A,s,(l,u,f)=>{fx(l)?a.push(l):l instanceof vh&&(a=a.concat(r(l,u,o))),o-=f}),a};return r(this,e,t)}optimize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(e,t),e.length>0&&this.emitter.emit(lt.events.SCROLL_OPTIMIZE,e,t))}path(e){return super.path(e).slice(1)}remove(){}update(e){if(this.batch){Array.isArray(e)&&(this.batch=this.batch.concat(e));return}let t=lt.sources.USER;typeof e=="string"&&(t=e),Array.isArray(e)||(e=this.observer.takeRecords()),e=e.filter(r=>{let{target:i}=r;const A=this.find(i,!0);return A&&!hx(A)}),e.length>0&&this.emitter.emit(lt.events.SCROLL_BEFORE_UPDATE,t,e),super.update(e.concat([])),e.length>0&&this.emitter.emit(lt.events.SCROLL_UPDATE,t,e)}updateEmbedAt(e,t,r){const[i]=this.descendant(A=>A instanceof Ki,e);i&&i.statics.blotName===t&&hx(i)&&i.updateContent(r)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){const t=[];let r=new ct;return e.forEach(i=>{const A=i?.insert;if(A)if(typeof A=="string"){const s=A.split(`
`);s.slice(0,-1).forEach(o=>{r.insert(o,i.attributes),t.push({type:"block",delta:r,attributes:i.attributes??{}}),r=new ct});const a=s[s.length-1];a&&r.insert(a,i.attributes)}else{const s=Object.keys(A)[0];if(!s)return;this.query(s,ht.INLINE)?r.push(i):(r.length()&&t.push({type:"block",delta:r,attributes:{}}),r=new ct,t.push({type:"blockEmbed",key:s,value:A[s],attributes:i.attributes??{}}))}}),r.length()&&t.push({type:"block",delta:r,attributes:{}}),t}createBlock(e,t){let r;const i={};Object.entries(e).forEach(a=>{let[o,l]=a;this.query(o,ht.BLOCK&ht.BLOT)!=null?r=o:i[o]=l});const A=this.create(r||this.statics.defaultChild.blotName,r?e[r]:void 0);this.insertBefore(A,t||void 0);const s=A.length();return Object.entries(i).forEach(a=>{let[o,l]=a;A.formatAt(0,s,o,l)}),A}}function qm(n,e,t){t.reduce((r,i)=>{const A=ji.Op.length(i);let s=i.attributes||{};if(i.insert!=null){if(typeof i.insert=="string"){const a=i.insert;n.insertAt(r,a);const[o]=n.descendant(Vn,r),l=Vi(o);s=ji.AttributeMap.diff(l,s)||{}}else if(typeof i.insert=="object"){const a=Object.keys(i.insert)[0];if(a==null)return r;if(n.insertAt(r,a,i.insert[a]),n.scroll.query(a,ht.INLINE)!=null){const[l]=n.descendant(Vn,r),u=Vi(l);s=ji.AttributeMap.diff(u,s)||{}}}}return Object.keys(s).forEach(a=>{n.formatAt(r,A,a,s[a])}),r+A},e)}const jm={scope:ht.BLOCK,whitelist:["right","center","justify"]},$q=new XA("align","align",jm),dx=new gA("align","ql-align",jm),px=new ha("align","text-align",jm);class gx extends ha{value(e){let t=super.value(e);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${t.split(",").map(i=>`00${parseInt(i,10).toString(16)}`.slice(-2)).join("")}`):t}}const Jq=new gA("color","ql-color",{scope:ht.INLINE}),Km=new gx("color","color",{scope:ht.INLINE}),Zq=new gA("background","ql-bg",{scope:ht.INLINE}),Vm=new gx("background","background-color",{scope:ht.INLINE});class lo extends oo{static create(e){const t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(r=>r.length()<=1?"":r.domNode.innerText).join(`
`).slice(e,e+t)}html(e,t){return`<pre>
${Eh(this.code(e,t))}
</pre>`}}class ri extends Un{static TAB=" ";static register(){ke.register(lo)}}class Gm extends ti{}Gm.blotName="code",Gm.tagName="CODE",ri.blotName="code-block",ri.className="ql-code-block",ri.tagName="DIV",lo.blotName="code-block-container",lo.className="ql-code-block-container",lo.tagName="DIV",lo.allowedChildren=[ri],ri.allowedChildren=[wA,vA,yA],ri.requiredContainer=lo;const zm={scope:ht.BLOCK,whitelist:["rtl"]},mx=new XA("direction","dir",zm),vx=new gA("direction","ql-direction",zm),wx=new ha("direction","direction",zm),yx={scope:ht.INLINE,whitelist:["serif","monospace"]},bx=new gA("font","ql-font",yx);class ej extends ha{value(e){return super.value(e).replace(/["']/g,"")}}const Bx=new ej("font","font-family",yx),Cx=new gA("size","ql-size",{scope:ht.INLINE,whitelist:["small","large","huge"]}),Ex=new ha("size","font-size",{scope:ht.INLINE,whitelist:["10px","18px","32px"]}),tj=bs("quill:keyboard"),rj=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class _h extends YA{static match(e,t){return["altKey","ctrlKey","metaKey","shiftKey"].some(r=>!!t[r]!==e[r]&&t[r]!==null)?!1:t.key===e.key||t.key===e.which}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(r=>{this.options.bindings[r]&&this.addBinding(this.options.bindings[r])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=ij(e);if(i==null){tj.warn("Attempted to add invalid keyboard binding",i);return}typeof t=="function"&&(t={handler:t}),typeof r=="function"&&(r={handler:r}),(Array.isArray(i.key)?i.key:[i.key]).forEach(s=>{const a={...i,key:s,...t,...r};this.bindings[a.key]=this.bindings[a.key]||[],this.bindings[a.key].push(a)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||e.keyCode===229&&(e.key==="Enter"||e.key==="Backspace"))return;const i=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(p=>_h.match(e,p));if(i.length===0)return;const A=ke.find(e.target,!0);if(A&&A.scroll!==this.quill.scroll)return;const s=this.quill.getSelection();if(s==null||!this.quill.hasFocus())return;const[a,o]=this.quill.getLine(s.index),[l,u]=this.quill.getLeaf(s.index),[f,h]=s.length===0?[l,u]:this.quill.getLeaf(s.index+s.length),c=l instanceof wh?l.value().slice(0,u):"",m=f instanceof wh?f.value().slice(h):"",g={collapsed:s.length===0,empty:s.length===0&&a.length()<=1,format:this.quill.getFormat(s),line:a,offset:o,prefix:c,suffix:m,event:e};i.some(p=>{if(p.collapsed!=null&&p.collapsed!==g.collapsed||p.empty!=null&&p.empty!==g.empty||p.offset!=null&&p.offset!==g.offset)return!1;if(Array.isArray(p.format)){if(p.format.every(v=>g.format[v]==null))return!1}else if(typeof p.format=="object"&&!Object.keys(p.format).every(v=>p.format[v]===!0?g.format[v]!=null:p.format[v]===!1?g.format[v]==null:ca(p.format[v],g.format[v])))return!1;return p.prefix!=null&&!p.prefix.test(g.prefix)||p.suffix!=null&&!p.suffix.test(g.suffix)?!1:p.handler.call(this,s,g,p)!==!0})&&e.preventDefault()})}handleBackspace(e,t){const r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(e.index===0||this.quill.getLength()<=1)return;let i={};const[A]=this.quill.getLine(e.index);let s=new ct().retain(e.index-r).delete(r);if(t.offset===0){const[a]=this.quill.getLine(e.index-1);if(a&&!(a.statics.blotName==="block"&&a.length()<=1)){const l=A.formats(),u=this.quill.getFormat(e.index-1,1);if(i=ji.AttributeMap.diff(l,u)||{},Object.keys(i).length>0){const f=new ct().retain(e.index+A.length()-2).retain(1,i);s=s.compose(f)}}}this.quill.updateContents(s,ke.sources.USER),this.quill.focus()}handleDelete(e,t){const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-r)return;let i={};const[A]=this.quill.getLine(e.index);let s=new ct().retain(e.index).delete(r);if(t.offset>=A.length()-1){const[a]=this.quill.getLine(e.index+1);if(a){const o=A.formats(),l=this.quill.getFormat(e.index,1);i=ji.AttributeMap.diff(o,l)||{},Object.keys(i).length>0&&(s=s.retain(a.length()-1).retain(1,i))}}this.quill.updateContents(s,ke.sources.USER),this.quill.focus()}handleDeleteRange(e){Xm({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const r=Object.keys(t.format).reduce((A,s)=>(this.quill.scroll.query(s,ht.BLOCK)&&!Array.isArray(t.format[s])&&(A[s]=t.format[s]),A),{}),i=new ct().retain(e.index).delete(e.length).insert(`
`,r);this.quill.updateContents(i,ke.sources.USER),this.quill.setSelection(e.index+1,ke.sources.SILENT),this.quill.focus()}}const nj={bindings:{bold:Wm("bold"),italic:Wm("italic"),underline:Wm("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(n,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","+1",ke.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(n,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","-1",ke.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(n,e){e.format.indent!=null?this.quill.format("indent","-1",ke.sources.USER):e.format.list!=null&&this.quill.format("list",!1,ke.sources.USER)}},"indent code-block":xx(!0),"outdent code-block":xx(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(n){this.quill.deleteText(n.index-1,1,ke.sources.USER)}},tab:{key:"Tab",handler(n,e){if(e.format.table)return!0;this.quill.history.cutoff();const t=new ct().retain(n.index).delete(n.length).insert(" ");return this.quill.updateContents(t,ke.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(n.index+1,ke.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,ke.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(n,e){const t={list:!1};e.format.indent&&(t.indent=!1),this.quill.formatLine(n.index,n.length,t,ke.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(n){const[e,t]=this.quill.getLine(n.index),r={...e.formats(),list:"checked"},i=new ct().retain(n.index).insert(`
`,r).retain(e.length()-t-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,ke.sources.USER),this.quill.setSelection(n.index+1,ke.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(n,e){const[t,r]=this.quill.getLine(n.index),i=new ct().retain(n.index).insert(`
`,e.format).retain(t.length()-r-1).retain(1,{header:null});this.quill.updateContents(i,ke.sources.USER),this.quill.setSelection(n.index+1,ke.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(n){const e=this.quill.getModule("table");if(e){const[t,r,i,A]=e.getTable(n),s=Aj(t,r,i,A);if(s==null)return;let a=t.offset();if(s<0){const o=new ct().retain(a).insert(`
`);this.quill.updateContents(o,ke.sources.USER),this.quill.setSelection(n.index+1,n.length,ke.sources.SILENT)}else if(s>0){a+=t.length();const o=new ct().retain(a).insert(`
`);this.quill.updateContents(o,ke.sources.USER),this.quill.setSelection(a,ke.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(n,e){const{event:t,line:r}=e,i=r.offset(this.quill.scroll);t.shiftKey?this.quill.setSelection(i-1,ke.sources.USER):this.quill.setSelection(i+r.length(),ke.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(n,e){if(this.quill.scroll.query("list")==null)return!0;const{length:t}=e.prefix,[r,i]=this.quill.getLine(n.index);if(i>t)return!0;let A;switch(e.prefix.trim()){case"[]":case"[ ]":A="unchecked";break;case"[x]":A="checked";break;case"-":case"*":A="bullet";break;default:A="ordered"}this.quill.insertText(n.index," ",ke.sources.USER),this.quill.history.cutoff();const s=new ct().retain(n.index-i).delete(t+1).retain(r.length()-2-i).retain(1,{list:A});return this.quill.updateContents(s,ke.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(n.index-t,ke.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(n){const[e,t]=this.quill.getLine(n.index);let r=2,i=e;for(;i!=null&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,r-=1,r<=0){const A=new ct().retain(n.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(A,ke.sources.USER),this.quill.setSelection(n.index-1,ke.sources.SILENT),!1}return!0}},"embed left":Th("ArrowLeft",!1),"embed left shift":Th("ArrowLeft",!0),"embed right":Th("ArrowRight",!1),"embed right shift":Th("ArrowRight",!0),"table down":Sx(!1),"table up":Sx(!0)}};_h.DEFAULTS=nj;function xx(n){return{key:"Tab",shiftKey:!n,format:{"code-block":!0},handler(e,t){let{event:r}=t;const i=this.quill.scroll.query("code-block"),{TAB:A}=i;if(e.length===0&&!r.shiftKey){this.quill.insertText(e.index,A,ke.sources.USER),this.quill.setSelection(e.index+A.length,ke.sources.SILENT);return}const s=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:a,length:o}=e;s.forEach((l,u)=>{n?(l.insertAt(0,A),u===0?a+=A.length:o+=A.length):l.domNode.textContent.startsWith(A)&&(l.deleteAt(0,A.length),u===0?a-=A.length:o-=A.length)}),this.quill.update(ke.sources.USER),this.quill.setSelection(a,o,ke.sources.SILENT)}}}function Th(n,e){return{key:n,shiftKey:e,altKey:null,[n==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(r){let{index:i}=r;n==="ArrowRight"&&(i+=r.length+1);const[A]=this.quill.getLeaf(i);return A instanceof _i?(n==="ArrowLeft"?e?this.quill.setSelection(r.index-1,r.length+1,ke.sources.USER):this.quill.setSelection(r.index-1,ke.sources.USER):e?this.quill.setSelection(r.index,r.length+1,ke.sources.USER):this.quill.setSelection(r.index+r.length+1,ke.sources.USER),!1):!0}}}function Wm(n){return{key:n[0],shortKey:!0,handler(e,t){this.quill.format(n,!t.format[n],ke.sources.USER)}}}function Sx(n){return{key:n?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){const r=n?"prev":"next",i=t.line,A=i.parent[r];if(A!=null){if(A.statics.blotName==="table-row"){let s=A.children.head,a=i;for(;a.prev!=null;)a=a.prev,s=s.next;const o=s.offset(this.quill.scroll)+Math.min(t.offset,s.length()-1);this.quill.setSelection(o,0,ke.sources.USER)}}else{const s=i.table()[r];s!=null&&(n?this.quill.setSelection(s.offset(this.quill.scroll)+s.length()-1,0,ke.sources.USER):this.quill.setSelection(s.offset(this.quill.scroll),0,ke.sources.USER))}return!1}}}function ij(n){if(typeof n=="string"||typeof n=="number")n={key:n};else if(typeof n=="object")n=dl(n);else return null;return n.shortKey&&(n[rj]=n.shortKey,delete n.shortKey),n}function Xm(n){let{quill:e,range:t}=n;const r=e.getLines(t);let i={};if(r.length>1){const A=r[0].formats(),s=r[r.length-1].formats();i=ji.AttributeMap.diff(s,A)||{}}e.deleteText(t,ke.sources.USER),Object.keys(i).length>0&&e.formatLine(t.index,1,i,ke.sources.USER),e.setSelection(t.index,ke.sources.SILENT)}function Aj(n,e,t,r){return e.prev==null&&e.next==null?t.prev==null&&t.next==null?r===0?-1:1:t.prev==null?-1:1:e.prev==null?-1:e.next==null?1:null}const sj=/font-weight:\s*normal/,aj=["P","OL","UL"],Fx=n=>n&&aj.includes(n.tagName),oj=n=>{Array.from(n.querySelectorAll("br")).filter(e=>Fx(e.previousElementSibling)&&Fx(e.nextElementSibling)).forEach(e=>{e.parentNode?.removeChild(e)})},lj=n=>{Array.from(n.querySelectorAll('b[style*="font-weight"]')).filter(e=>e.getAttribute("style")?.match(sj)).forEach(e=>{const t=n.createDocumentFragment();t.append(...e.childNodes),e.parentNode?.replaceChild(t,e)})};function uj(n){n.querySelector('[id^="docs-internal-guid-"]')&&(lj(n),oj(n))}const cj=/\bmso-list:[^;]*ignore/i,fj=/\bmso-list:[^;]*\bl(\d+)/i,hj=/\bmso-list:[^;]*\blevel(\d+)/i,dj=(n,e)=>{const t=n.getAttribute("style"),r=t?.match(fj);if(!r)return null;const i=Number(r[1]),A=t?.match(hj),s=A?Number(A[1]):1,a=new RegExp(`@list l${i}:level${s}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),o=e.match(a),l=o&&o[1]==="bullet"?"bullet":"ordered";return{id:i,indent:s,type:l,element:n}},pj=n=>{const e=Array.from(n.querySelectorAll("[style*=mso-list]")),t=[],r=[];e.forEach(s=>{(s.getAttribute("style")||"").match(cj)?t.push(s):r.push(s)}),t.forEach(s=>s.parentNode?.removeChild(s));const i=n.documentElement.innerHTML,A=r.map(s=>dj(s,i)).filter(s=>s);for(;A.length;){const s=[];let a=A.shift();for(;a;)s.push(a),a=A.length&&A[0]?.element===a.element.nextElementSibling&&A[0].id===a.id?A.shift():null;const o=document.createElement("ul");s.forEach(f=>{const h=document.createElement("li");h.setAttribute("data-list",f.type),f.indent>1&&h.setAttribute("class",`ql-indent-${f.indent-1}`),h.innerHTML=f.element.innerHTML,o.appendChild(h)});const l=s[0]?.element,{parentNode:u}=l??{};l&&u?.replaceChild(o,l),s.slice(1).forEach(f=>{let{element:h}=f;u?.removeChild(h)})}};function gj(n){n.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&pj(n)}const mj=[gj,uj],vj=n=>{n.documentElement&&mj.forEach(e=>{e(n)})},wj=bs("quill:clipboard"),yj=[[Node.TEXT_NODE,Lj],[Node.TEXT_NODE,Ix],["br",Sj],[Node.ELEMENT_NODE,Ix],[Node.ELEMENT_NODE,xj],[Node.ELEMENT_NODE,Ej],[Node.ELEMENT_NODE,Uj],["li",Tj],["ol, ul",Ij],["pre",Fj],["tr",Nj],["b",$m("bold")],["i",$m("italic")],["strike",$m("strike")],["style",_j]],bj=[$q,mx].reduce((n,e)=>(n[e.keyName]=e,n),{}),_x=[px,Vm,Km,wx,Bx,Ex].reduce((n,e)=>(n[e.keyName]=e,n),{});class Bj extends YA{static DEFAULTS={matchers:[]};constructor(e,t){super(e,t),this.quill.root.addEventListener("copy",r=>this.onCaptureCopy(r,!1)),this.quill.root.addEventListener("cut",r=>this.onCaptureCopy(r,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],yj.concat(this.options.matchers??[]).forEach(r=>{let[i,A]=r;this.addMatcher(i,A)})}addMatcher(e,t){this.matchers.push([e,t])}convert(e){let{html:t,text:r}=e,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i[ri.blotName])return new ct().insert(r||"",{[ri.blotName]:i[ri.blotName]});if(!t)return new ct().insert(r||"",i);const A=this.convertHTML(t);return Du(A,`
`)&&(A.ops[A.ops.length-1].attributes==null||i.table)?A.compose(new ct().retain(A.length()-1).delete(1)):A}normalizeHTML(e){vj(e)}convertHTML(e){const t=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(t);const r=t.body,i=new WeakMap,[A,s]=this.prepareMatching(r,i);return Ym(this.quill.scroll,r,A,s,i)}dangerouslyPasteHTML(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ke.sources.API;if(typeof e=="string"){const i=this.convert({html:e,text:""});this.quill.setContents(i,t),this.quill.setSelection(0,ke.sources.SILENT)}else{const i=this.convert({html:t,text:""});this.quill.updateContents(new ct().retain(e).concat(i),r),this.quill.setSelection(e+i.length(),ke.sources.SILENT)}}onCaptureCopy(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.defaultPrevented)return;e.preventDefault();const[r]=this.quill.selection.getRange();if(r==null)return;const{html:i,text:A}=this.onCopy(r,t);e.clipboardData?.setData("text/plain",A),e.clipboardData?.setData("text/html",i),t&&Xm({range:r,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(t=>t[0]!=="#").join(`
`)}onCapturePaste(e){if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(t==null)return;const r=e.clipboardData?.getData("text/html");let i=e.clipboardData?.getData("text/plain");if(!r&&!i){const s=e.clipboardData?.getData("text/uri-list");s&&(i=this.normalizeURIList(s))}const A=Array.from(e.clipboardData?.files||[]);if(!r&&A.length>0){this.quill.uploader.upload(t,A);return}if(r&&A.length>0){const s=new DOMParser().parseFromString(r,"text/html");if(s.body.childElementCount===1&&s.body.firstElementChild?.tagName==="IMG"){this.quill.uploader.upload(t,A);return}}this.onPaste(t,{html:r,text:i})}onCopy(e){const t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:r,html:i}=t;const A=this.quill.getFormat(e.index),s=this.convert({text:r,html:i},A);wj.log("onPaste",s,{text:r,html:i});const a=new ct().retain(e.index).delete(e.length).concat(s);this.quill.updateContents(a,ke.sources.USER),this.quill.setSelection(a.length()-e.length,ke.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const r=[],i=[];return this.matchers.forEach(A=>{const[s,a]=A;switch(s){case Node.TEXT_NODE:i.push(a);break;case Node.ELEMENT_NODE:r.push(a);break;default:Array.from(e.querySelectorAll(s)).forEach(o=>{t.has(o)?t.get(o)?.push(a):t.set(o,[a])});break}}),[r,i]}}function uo(n,e,t,r){return r.query(e)?n.reduce((i,A)=>{if(!A.insert)return i;if(A.attributes&&A.attributes[e])return i.push(A);const s=t?{[e]:t}:{};return i.insert(A.insert,{...s,...A.attributes})},new ct):n}function Du(n,e){let t="";for(let r=n.ops.length-1;r>=0&&t.length<e.length;--r){const i=n.ops[r];if(typeof i.insert!="string")break;t=i.insert+t}return t.slice(-1*e.length)===e}function da(n,e){if(!(n instanceof Element))return!1;const t=e.query(n);return t&&t.prototype instanceof _i?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(n.tagName.toLowerCase())}function Cj(n,e){return n.previousElementSibling&&n.nextElementSibling&&!da(n.previousElementSibling,e)&&!da(n.nextElementSibling,e)}const Ih=new WeakMap;function Tx(n){return n==null?!1:(Ih.has(n)||(n.tagName==="PRE"?Ih.set(n,!0):Ih.set(n,Tx(n.parentNode))),Ih.get(n))}function Ym(n,e,t,r,i){return e.nodeType===e.TEXT_NODE?r.reduce((A,s)=>s(e,A,n),new ct):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((A,s)=>{let a=Ym(n,s,t,r,i);return s.nodeType===e.ELEMENT_NODE&&(a=t.reduce((o,l)=>l(s,o,n),a),a=(i.get(s)||[]).reduce((o,l)=>l(s,o,n),a)),A.concat(a)},new ct):new ct}function $m(n){return(e,t,r)=>uo(t,n,!0,r)}function Ej(n,e,t){const r=XA.keys(n),i=gA.keys(n),A=ha.keys(n),s={};return r.concat(i).concat(A).forEach(a=>{let o=t.query(a,ht.ATTRIBUTE);o!=null&&(s[o.attrName]=o.value(n),s[o.attrName])||(o=bj[a],o!=null&&(o.attrName===a||o.keyName===a)&&(s[o.attrName]=o.value(n)||void 0),o=_x[a],o!=null&&(o.attrName===a||o.keyName===a)&&(o=_x[a],s[o.attrName]=o.value(n)||void 0))}),Object.entries(s).reduce((a,o)=>{let[l,u]=o;return uo(a,l,u,t)},e)}function xj(n,e,t){const r=t.query(n);if(r==null)return e;if(r.prototype instanceof _i){const i={},A=r.value(n);if(A!=null)return i[r.blotName]=A,new ct().insert(i,r.formats(n,t))}else if(r.prototype instanceof Qu&&!Du(e,`
`)&&e.insert(`
`),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return uo(e,r.blotName,r.formats(n,t),t);return e}function Sj(n,e){return Du(e,`
`)||e.insert(`
`),e}function Fj(n,e,t){const r=t.query("code-block"),i=r&&"formats"in r&&typeof r.formats=="function"?r.formats(n,t):!0;return uo(e,"code-block",i,t)}function _j(){return new ct}function Tj(n,e,t){const r=t.query(n);if(r==null||r.blotName!=="list"||!Du(e,`
`))return e;let i=-1,A=n.parentNode;for(;A!=null;)["OL","UL"].includes(A.tagName)&&(i+=1),A=A.parentNode;return i<=0?e:e.reduce((s,a)=>a.insert?a.attributes&&typeof a.attributes.indent=="number"?s.push(a):s.insert(a.insert,{indent:i,...a.attributes||{}}):s,new ct)}function Ij(n,e,t){const r=n;let i=r.tagName==="OL"?"ordered":"bullet";const A=r.getAttribute("data-checked");return A&&(i=A==="true"?"checked":"unchecked"),uo(e,"list",i,t)}function Ix(n,e,t){if(!Du(e,`
`)){if(da(n,t)&&(n.childNodes.length>0||n instanceof HTMLParagraphElement))return e.insert(`
`);if(e.length()>0&&n.nextSibling){let r=n.nextSibling;for(;r!=null;){if(da(r,t))return e.insert(`
`);const i=t.query(r);if(i&&i.prototype instanceof Ki)return e.insert(`
`);r=r.firstChild}}}return e}function Uj(n,e,t){const r={},i=n.style||{};return i.fontStyle==="italic"&&(r.italic=!0),i.textDecoration==="underline"&&(r.underline=!0),i.textDecoration==="line-through"&&(r.strike=!0),(i.fontWeight?.startsWith("bold")||parseInt(i.fontWeight,10)>=700)&&(r.bold=!0),e=Object.entries(r).reduce((A,s)=>{let[a,o]=s;return uo(A,a,o,t)},e),parseFloat(i.textIndent||0)>0?new ct().insert(" ").concat(e):e}function Nj(n,e,t){const r=n.parentElement?.tagName==="TABLE"?n.parentElement:n.parentElement?.parentElement;if(r!=null){const A=Array.from(r.querySelectorAll("tr")).indexOf(n)+1;return uo(e,"table",A,t)}return e}function Lj(n,e,t){let r=n.data;if(n.parentElement?.tagName==="O:P")return e.insert(r.trim());if(!Tx(n)){if(r.trim().length===0&&r.includes(`
`)&&!Cj(n,t))return e;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(n.previousSibling==null&&n.parentElement!=null&&da(n.parentElement,t)||n.previousSibling instanceof Element&&da(n.previousSibling,t))&&(r=r.replace(/^ /,"")),(n.nextSibling==null&&n.parentElement!=null&&da(n.parentElement,t)||n.nextSibling instanceof Element&&da(n.nextSibling,t))&&(r=r.replace(/ $/,"")),r=r.replaceAll(" "," ")}return e.insert(r)}class Oj extends YA{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(e,t){super(e,t),this.quill.on(ke.events.EDITOR_CHANGE,(r,i,A,s)=>{r===ke.events.SELECTION_CHANGE?i&&s!==ke.sources.SILENT&&(this.currentRange=i):r===ke.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||s===ke.sources.USER?this.record(i,A):this.transform(i)),this.currentRange=Jm(this.currentRange,i))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",r=>{r.inputType==="historyUndo"?(this.undo(),r.preventDefault()):r.inputType==="historyRedo"&&(this.redo(),r.preventDefault())})}change(e,t){if(this.stack[e].length===0)return;const r=this.stack[e].pop();if(!r)return;const i=this.quill.getContents(),A=r.delta.invert(i);this.stack[t].push({delta:A,range:Jm(r.range,A)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r.delta,ke.sources.USER),this.ignoreChange=!1,this.restoreSelection(r)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(e,t){if(e.ops.length===0)return;this.stack.redo=[];let r=e.invert(t),i=this.currentRange;const A=Date.now();if(this.lastRecorded+this.options.delay>A&&this.stack.undo.length>0){const s=this.stack.undo.pop();s&&(r=r.compose(s.delta),i=s.range)}else this.lastRecorded=A;r.length()!==0&&(this.stack.undo.push({delta:r,range:i}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(e){Ux(this.stack.undo,e),Ux(this.stack.redo,e)}undo(){this.change("undo","redo")}restoreSelection(e){if(e.range)this.quill.setSelection(e.range,ke.sources.USER);else{const t=Rj(this.quill.scroll,e.delta);this.quill.setSelection(t,ke.sources.USER)}}}function Ux(n,e){let t=e;for(let r=n.length-1;r>=0;r-=1){const i=n[r];n[r]={delta:t.transform(i.delta,!0),range:i.range&&Jm(i.range,t)},t=i.delta.transform(t),n[r].delta.length()===0&&n.splice(r,1)}}function Qj(n,e){const t=e.ops[e.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
`):t.attributes!=null?Object.keys(t.attributes).some(r=>n.query(r,ht.BLOCK)!=null):!1}function Rj(n,e){const t=e.reduce((i,A)=>i+(A.delete||0),0);let r=e.length()-t;return Qj(n,e)&&(r-=1),r}function Jm(n,e){if(!n)return n;const t=e.transformPosition(n.index),r=e.transformPosition(n.index+n.length);return{index:t,length:r-t}}class Nx extends YA{constructor(e,t){super(e,t),e.root.addEventListener("drop",r=>{r.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const s=document.caretPositionFromPoint(r.clientX,r.clientY);i=document.createRange(),i.setStart(s.offsetNode,s.offset),i.setEnd(s.offsetNode,s.offset)}const A=i&&e.selection.normalizeNative(i);if(A){const s=e.selection.normalizedToRange(A);r.dataTransfer?.files&&this.upload(s,r.dataTransfer.files)}})}upload(e,t){const r=[];Array.from(t).forEach(i=>{i&&this.options.mimetypes?.includes(i.type)&&r.push(i)}),r.length>0&&this.options.handler.call(this,e,r)}}Nx.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(n,e){if(!this.quill.scroll.query("image"))return;const t=e.map(r=>new Promise(i=>{const A=new FileReader;A.onload=()=>{i(A.result)},A.readAsDataURL(r)}));Promise.all(t).then(r=>{const i=r.reduce((A,s)=>A.insert({image:s}),new ct().retain(n.index).delete(n.length));this.quill.updateContents(i,lt.sources.USER),this.quill.setSelection(n.index+r.length,lt.sources.SILENT)})}};const Pj=["insertText","insertReplacementText"];class kj extends YA{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||e.on(ke.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){Xm({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(e.length===0)return!1;if(t){const r=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new ct().retain(e.index).insert(t,r),ke.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,ke.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!Pj.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const r=Dj(e);if(r==null)return;const i=this.quill.selection.normalizeNative(t),A=i?this.quill.selection.normalizedToRange(i):null;A&&this.replaceText(A,r)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}}function Dj(n){return typeof n.data=="string"?n.data:n.dataTransfer?.types.includes("text/plain")?n.dataTransfer.getData("text/plain"):null}const Mj=/Mac/i.test(navigator.platform),Hj=100,qj=n=>!!(n.key==="ArrowLeft"||n.key==="ArrowRight"||n.key==="ArrowUp"||n.key==="ArrowDown"||n.key==="Home"||Mj&&n.key==="a"&&n.ctrlKey===!0);class jj extends YA{isListening=!1;selectionChangeDeadline=0;constructor(e,t){super(e,t),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(e,t){let{line:r,event:i}=t;if(!(r instanceof mA)||!r.uiNode)return!0;const A=getComputedStyle(r.domNode).direction==="rtl";return A&&i.key!=="ArrowRight"||!A&&i.key!=="ArrowLeft"?!0:(this.quill.setSelection(e.index-1,e.length+(i.shiftKey?1:0),ke.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",e=>{!e.defaultPrevented&&qj(e)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+Hj,this.isListening)return;this.isListening=!0;const e=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",e,{once:!0})}handleSelectionChange(){const e=document.getSelection();if(!e)return;const t=e.getRangeAt(0);if(t.collapsed!==!0||t.startOffset!==0)return;const r=this.quill.scroll.find(t.startContainer);if(!(r instanceof mA)||!r.uiNode)return;const i=document.createRange();i.setStartAfter(r.uiNode),i.setEndAfter(r.uiNode),e.removeAllRanges(),e.addRange(i)}}ke.register({"blots/block":Un,"blots/block/embed":Ki,"blots/break":vA,"blots/container":oo,"blots/cursor":yA,"blots/embed":Mm,"blots/inline":ti,"blots/scroll":Yq,"blots/text":wA,"modules/clipboard":Bj,"modules/history":Oj,"modules/keyboard":_h,"modules/uploader":Nx,"modules/input":kj,"modules/uiNode":jj});class Kj extends gA{add(e,t){let r=0;if(t==="+1"||t==="-1"){const i=this.value(e)||0;r=t==="+1"?i+1:i-1}else typeof t=="number"&&(r=t);return r===0?(this.remove(e),!0):super.add(e,r.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}const Vj=new Kj("indent","ql-indent",{scope:ht.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class Gj extends Un{static blotName="blockquote";static tagName="blockquote"}class zj extends Un{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(e){return this.tagName.indexOf(e.tagName)+1}}class Mu extends oo{}Mu.blotName="list-container",Mu.tagName="OL";class Hu extends Un{static create(e){const t=super.create();return t.setAttribute("data-list",e),t}static formats(e){return e.getAttribute("data-list")||void 0}static register(){ke.register(Mu)}constructor(e,t){super(e,t);const r=t.ownerDocument.createElement("span"),i=A=>{if(!e.isEnabled())return;const s=this.statics.formats(t,e);s==="checked"?(this.format("list","unchecked"),A.preventDefault()):s==="unchecked"&&(this.format("list","checked"),A.preventDefault())};r.addEventListener("mousedown",i),r.addEventListener("touchstart",i),this.attachUI(r)}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(e,t)}}Hu.blotName="list",Hu.tagName="LI",Mu.allowedChildren=[Hu],Hu.requiredContainer=Mu;class Zm extends ti{static blotName="bold";static tagName=["STRONG","B"];static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}class Wj extends Zm{static blotName="italic";static tagName=["EM","I"]}class Uh extends ti{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(e){const t=super.create(e);return t.setAttribute("href",this.sanitize(e)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(e){return e.getAttribute("href")}static sanitize(e){return Lx(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,t){e!==this.statics.blotName||!t?super.format(e,t):this.domNode.setAttribute("href",this.constructor.sanitize(t))}}function Lx(n,e){const t=document.createElement("a");t.href=n;const r=t.href.slice(0,t.href.indexOf(":"));return e.indexOf(r)>-1}class Xj extends ti{static blotName="script";static tagName=["SUB","SUP"];static create(e){return e==="super"?document.createElement("sup"):e==="sub"?document.createElement("sub"):super.create(e)}static formats(e){if(e.tagName==="SUB")return"sub";if(e.tagName==="SUP")return"super"}}class Yj extends Zm{static blotName="strike";static tagName=["S","STRIKE"]}class $j extends ti{static blotName="underline";static tagName="U"}class Jj extends Mm{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(e){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const t=super.create(e);return typeof e=="string"&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}const Ox=["alt","height","width"];let Zj=class extends _i{static blotName="image";static tagName="IMG";static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return Ox.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return Lx(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){Ox.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}};const Qx=["height","width"];class eK extends Ki{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(e){const t=super.create(e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(e)),t}static formats(e){return Qx.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static sanitize(e){return Uh.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){Qx.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}const qu=new gA("code-token","hljs",{scope:ht.INLINE});class Cs extends ti{static formats(e,t){for(;e!=null&&e!==t.domNode;){if(e.classList&&e.classList.contains(ri.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,r){super(e,t,r),qu.add(this.domNode,r)}format(e,t){e!==Cs.blotName?super.format(e,t):t?qu.add(this.domNode,t):(qu.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),qu.value(this.domNode)||this.unwrap()}}Cs.blotName="code-token",Cs.className="ql-token";class Gi extends ri{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),Cs.blotName,!1),super.replaceWith(e,t)}}class ju extends lo{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===Gi.blotName&&(this.forceNext=!0,this.children.forEach(r=>{r.format(e,t)}))}formatAt(e,t,r,i){r===Gi.blotName&&(this.forceNext=!0),super.formatAt(e,t,r,i)}highlight(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const i=`${Array.from(this.domNode.childNodes).filter(s=>s!==this.uiNode).map(s=>s.textContent).join(`
`)}
`,A=Gi.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==i){if(i.trim().length>0||this.cachedText==null){const s=this.children.reduce((o,l)=>o.concat(nx(l,!1)),new ct),a=e(i,A);s.diff(a).reduce((o,l)=>{let{retain:u,attributes:f}=l;return u?(f&&Object.keys(f).forEach(h=>{[Gi.blotName,Cs.blotName].includes(h)&&this.formatAt(o,u,h,f[h])}),o+u):o},0)}this.cachedText=i,this.forceNext=!1}}html(e,t){const[r]=this.children.find(e);return`<pre data-language="${r?Gi.formats(r.domNode):"plain"}">
${Eh(this.code(e,t))}
</pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const t=Gi.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}ju.allowedChildren=[Gi],Gi.requiredContainer=ju,Gi.allowedChildren=[Cs,yA,wA,vA];const tK=(n,e,t)=>{if(typeof n.versionString=="string"){const r=n.versionString.split(".")[0];if(parseInt(r,10)>=11)return n.highlight(t,{language:e}).value}return n.highlight(e,t).value};class Rx extends YA{static register(){ke.register(Cs,!0),ke.register(Gi,!0),ke.register(ju,!0)}constructor(e,t){if(super(e,t),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((r,i)=>{let{key:A}=i;return r[A]=!0,r},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(ke.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof ju))return;const t=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(r=>{let{key:i,label:A}=r;const s=t.ownerDocument.createElement("option");s.textContent=A,s.setAttribute("value",i),t.appendChild(s)}),t.addEventListener("change",()=>{e.format(Gi.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),e.uiNode==null&&(e.attachUI(t),e.children.head&&(t.value=Gi.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(ke.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(ke.sources.USER);const r=this.quill.getSelection();(e==null?this.quill.scroll.descendants(ju):[e]).forEach(A=>{A.highlight(this.highlightBlot,t)}),this.quill.update(ke.sources.SILENT),r!=null&&this.quill.setSelection(r,ke.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(t=this.languages[t]?t:"plain",t==="plain")return Eh(e).split(`
`).reduce((i,A,s)=>(s!==0&&i.insert(`
`,{[ri.blotName]:t}),i.insert(A)),new ct);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(ri.className),r.innerHTML=tK(this.options.hljs,t,e),Ym(this.quill.scroll,r,[(i,A)=>{const s=qu.value(i);return s?A.compose(new ct().retain(A.length(),{[Cs.blotName]:s})):A}],[(i,A)=>i.data.split(`
`).reduce((s,a,o)=>(o!==0&&s.insert(`
`,{[ri.blotName]:t}),s.insert(a)),A)],new WeakMap)}}Rx.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};class BA extends Un{static blotName="table";static tagName="TD";static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",e1()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===BA.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}class co extends oo{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),t=this.children.tail.formats(),r=this.next.children.head.formats(),i=this.next.children.tail.formats();return e.table===t.table&&e.table===r.table&&e.table===i.table}return!1}optimize(e){super.optimize(e),this.children.forEach(t=>{if(t.next==null)return;const r=t.formats(),i=t.next.formats();if(r.table!==i.table){const A=this.splitAfter(t);A&&A.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}class pa extends oo{static blotName="table-body";static tagName="TBODY"}class Nh extends oo{static blotName="table-container";static tagName="TABLE";balanceCells(){const e=this.descendants(co),t=e.reduce((r,i)=>Math.max(i.children.length,r),0);e.forEach(r=>{new Array(t-r.children.length).fill(0).forEach(()=>{let i;r.children.head!=null&&(i=BA.formats(r.children.head.domNode));const A=this.scroll.create(BA.blotName,i);r.appendChild(A),A.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(pa);t==null||t.children.head==null||t.children.forEach(r=>{const i=r.children.at(e);i?.remove()})}insertColumn(e){const[t]=this.descendant(pa);t==null||t.children.head==null||t.children.forEach(r=>{const i=r.children.at(e),A=BA.formats(r.children.head.domNode),s=this.scroll.create(BA.blotName,A);r.insertBefore(s,i)})}insertRow(e){const[t]=this.descendant(pa);if(t==null||t.children.head==null)return;const r=e1(),i=this.scroll.create(co.blotName);t.children.head.children.forEach(()=>{const s=this.scroll.create(BA.blotName,r);i.appendChild(s)});const A=t.children.at(e);t.insertBefore(i,A)}rows(){const e=this.children.head;return e==null?[]:e.children.map(t=>t)}}Nh.allowedChildren=[pa],pa.requiredContainer=Nh,pa.allowedChildren=[co],co.requiredContainer=pa,co.allowedChildren=[BA],BA.requiredContainer=co;function e1(){return`row-${Math.random().toString(36).slice(2,6)}`}class rK extends YA{static register(){ke.register(BA),ke.register(co),ke.register(pa),ke.register(Nh)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Nh).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();t!=null&&(e.deleteColumn(t.cellOffset()),this.quill.update(ke.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(ke.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const t=e.offset();e.remove(),this.quill.update(ke.sources.USER),this.quill.setSelection(t,ke.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[t,r]=this.quill.getLine(e.index);if(t==null||t.statics.blotName!==BA.blotName)return[null,null,null,-1];const i=t.parent;return[i.parent.parent,i,t,r]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[r,i,A]=this.getTable(t);if(A==null)return;const s=A.cellOffset();r.insertColumn(s+e),this.quill.update(ke.sources.USER);let a=i.rowOffset();e===0&&(a+=1),this.quill.setSelection(t.index+a,t.length,ke.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[r,i,A]=this.getTable(t);if(A==null)return;const s=i.rowOffset();r.insertRow(s+e),this.quill.update(ke.sources.USER),e>0?this.quill.setSelection(t,ke.sources.SILENT):this.quill.setSelection(t.index+i.children.length,t.length,ke.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const r=this.quill.getSelection();if(r==null)return;const i=new Array(e).fill(0).reduce(A=>{const s=new Array(t).fill(`
`).join("");return A.insert(s,{table:e1()})},new ct().retain(r.index));this.quill.updateContents(i,ke.sources.USER),this.quill.setSelection(r.index,ke.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(ke.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(ke.events.TEXT_CHANGE,(r,i,A)=>{A===ke.sources.USER&&this.balanceTables()}),!0):!1)})}}const Px=bs("quill:toolbar");class t1 extends YA{constructor(e,t){if(super(e,t),Array.isArray(this.options.container)){const r=document.createElement("div");r.setAttribute("role","toolbar"),nK(r,this.options.container),e.container?.parentNode?.insertBefore(r,e.container),this.container=r}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){Px.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(r=>{const i=this.options.handlers?.[r];i&&this.addHandler(r,i)}),Array.from(this.container.querySelectorAll("button, select")).forEach(r=>{this.attach(r)}),this.quill.on(ke.events.EDITOR_CHANGE,()=>{const[r]=this.quill.selection.getRange();this.update(r)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(i=>i.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){Px.warn("ignoring attaching to nonexistent format",t,e);return}const r=e.tagName==="SELECT"?"change":"click";e.addEventListener(r,i=>{let A;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const a=e.options[e.selectedIndex];a.hasAttribute("selected")?A=!1:A=a.value||!1}else e.classList.contains("ql-active")?A=!1:A=e.value||!e.hasAttribute("value"),i.preventDefault();this.quill.focus();const[s]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,A);else if(this.quill.scroll.query(t).prototype instanceof _i){if(A=prompt(`Enter ${t}`),!A)return;this.quill.updateContents(new ct().retain(s.index).delete(s.length).insert({[t]:A}),ke.sources.USER)}else this.quill.format(t,A,ke.sources.USER);this.update(s)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(r=>{const[i,A]=r;if(A.tagName==="SELECT"){let s=null;if(e==null)s=null;else if(t[i]==null)s=A.querySelector("option[selected]");else if(!Array.isArray(t[i])){let a=t[i];typeof a=="string"&&(a=a.replace(/"/g,'\\"')),s=A.querySelector(`option[value="${a}"]`)}s==null?(A.value="",A.selectedIndex=-1):s.selected=!0}else if(e==null)A.classList.remove("ql-active"),A.setAttribute("aria-pressed","false");else if(A.hasAttribute("value")){const s=t[i],a=s===A.getAttribute("value")||s!=null&&s.toString()===A.getAttribute("value")||s==null&&!A.getAttribute("value");A.classList.toggle("ql-active",a),A.setAttribute("aria-pressed",a.toString())}else{const s=t[i]!=null;A.classList.toggle("ql-active",s),A.setAttribute("aria-pressed",s.toString())}})}}t1.DEFAULTS={};function kx(n,e,t){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${e}`),r.setAttribute("aria-pressed","false"),t!=null?(r.value=t,r.setAttribute("aria-label",`${e}: ${t}`)):r.setAttribute("aria-label",e),n.appendChild(r)}function nK(n,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const r=document.createElement("span");r.classList.add("ql-formats"),t.forEach(i=>{if(typeof i=="string")kx(r,i);else{const A=Object.keys(i)[0],s=i[A];Array.isArray(s)?iK(r,A,s):kx(r,A,s)}}),n.appendChild(r)})}function iK(n,e,t){const r=document.createElement("select");r.classList.add(`ql-${e}`),t.forEach(i=>{const A=document.createElement("option");i!==!1?A.setAttribute("value",String(i)):A.setAttribute("selected","selected"),r.appendChild(A)}),n.appendChild(r)}t1.DEFAULTS={container:null,handlers:{clean(){const n=this.quill.getSelection();if(n!=null)if(n.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{this.quill.scroll.query(t,ht.INLINE)!=null&&this.quill.format(t,!1,ke.sources.USER)})}else this.quill.removeFormat(n.index,n.length,ke.sources.USER)},direction(n){const{align:e}=this.quill.getFormat();n==="rtl"&&e==null?this.quill.format("align","right",ke.sources.USER):!n&&e==="right"&&this.quill.format("align",!1,ke.sources.USER),this.quill.format("direction",n,ke.sources.USER)},indent(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e),r=parseInt(t.indent||0,10);if(n==="+1"||n==="-1"){let i=n==="+1"?1:-1;t.direction==="rtl"&&(i*=-1),this.quill.format("indent",r+i,ke.sources.USER)}},link(n){n===!0&&(n=prompt("Enter link URL:")),this.quill.format("link",n,ke.sources.USER)},list(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e);n==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,ke.sources.USER):this.quill.format("list","unchecked",ke.sources.USER):this.quill.format("list",n,ke.sources.USER)}}};const AK='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',sK='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',aK='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',oK='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',lK='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',uK='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',cK='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',fK='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',Dx='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',Ku={align:{"":AK,center:sK,right:aK,justify:oK},background:lK,blockquote:uK,bold:cK,clean:fK,code:Dx,"code-block":Dx,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'},hK='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let Mx=0;function Hx(n,e){n.setAttribute(e,`${n.getAttribute(e)!=="true"}`)}class Lh{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Hx(this.label,"aria-expanded"),Hx(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const r=e.getAttribute("value");return r&&t.setAttribute("data-value",r),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(t,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=hK,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${Mx}`,Mx+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const r=this.buildItem(t);e.appendChild(r),t.selected===!0&&this.selectItem(r)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");e!==r&&(r?.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const t=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class qx extends Lh{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const r=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=i:r.style.fill=i)}}class jx extends Lh{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=t[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const r=e||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const dK=n=>{const{overflowY:e}=getComputedStyle(n,null);return e!=="visible"&&e!=="clip"};class Kx{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,dK(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,r=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),A=this.root.getBoundingClientRect();let s=0;if(A.right>i.right&&(s=i.right-A.right,this.root.style.left=`${t+s}px`),A.left<i.left&&(s=i.left-A.left,this.root.style.left=`${t+s}px`),A.bottom>i.bottom){const a=A.bottom-A.top,o=e.bottom-e.top+a;this.root.style.top=`${r-o}px`,this.root.classList.add("ql-flip")}return s}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const pK=[!1,"center","right","justify"],gK=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],mK=[!1,"serif","monospace"],vK=["1","2","3",!1],wK=["small",!1,"large","huge"];class Vu extends bl{constructor(e,t){super(e,t);const r=i=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(A=>{A.container.contains(i.target)||A.close()})};e.emitter.listenDOM("click",document.body,r)}addModule(e){const t=super.addModule(e);return e==="toolbar"&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(A=>{if(A.startsWith("ql-")&&(A=A.slice(3),t[A]!=null))if(A==="direction")r.innerHTML=t[A][""]+t[A].rtl;else if(typeof t[A]=="string")r.innerHTML=t[A];else{const s=r.value||"";s!=null&&t[A][s]&&(r.innerHTML=t[A][s])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&Gu(i,pK),typeof t.align=="object"))return new jx(i,t.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const A=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&Gu(i,gK,A==="background"?"#ffffff":"#000000"),new qx(i,t[A])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?Gu(i,mK):i.classList.contains("ql-header")?Gu(i,vK):i.classList.contains("ql-size")&&Gu(i,wK)),new Lh(i)});const r=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(lt.events.EDITOR_CHANGE,r)}}Vu.DEFAULTS=fa({},bl.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let n=this.container.querySelector("input.ql-image[type=file]");n==null&&(n=document.createElement("input"),n.setAttribute("type","file"),n.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),n.classList.add("ql-image"),n.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,n.files),n.value=""}),this.container.appendChild(n)),n.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Vx extends Kx{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,lt.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,lt.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=yK(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(t!=null){const r=t.index+t.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,lt.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",lt.sources.USER),this.quill.setSelection(r+2,lt.sources.USER)}break}}this.textbox.value="",this.hide()}}function yK(n){let e=n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=n.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:n}function Gu(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(r=>{const i=document.createElement("option");r===t?i.setAttribute("selected","selected"):i.setAttribute("value",String(r)),n.appendChild(i)})}const bK=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class BK extends Vx{static TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join("");constructor(e,t){super(e,t),this.quill.on(lt.events.EDITOR_CHANGE,(r,i,A,s)=>{if(r===lt.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&s===lt.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const a=this.quill.getLines(i.index,i.length);if(a.length===1){const o=this.quill.getBounds(i);o!=null&&this.position(o)}else{const o=a[a.length-1],l=this.quill.getIndex(o),u=Math.min(o.length()-1,i.index+i.length-l),f=this.quill.getBounds(new ao(l,u));f!=null&&this.position(f)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(lt.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const t=this.quill.getBounds(e);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",t!==0&&(r.style.marginLeft=`${-1*t-r.offsetWidth/2}px`),t}}class Gx extends Vu{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=bK),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new BK(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),Ku),this.buildPickers(e.container.querySelectorAll("select"),Ku))}}Gx.DEFAULTS=fa({},Vu.DEFAULTS,{modules:{toolbar:{handlers:{link(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1,ke.sources.USER)}}}}});const CK=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class EK extends Vx{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("");preview=this.root.querySelector("a.ql-preview");listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",e=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",e=>{if(this.linkRange!=null){const t=this.linkRange;this.restoreFocus(),this.quill.formatText(t,"link",!1,lt.sources.USER),delete this.linkRange}e.preventDefault(),this.hide()}),this.quill.on(lt.events.SELECTION_CHANGE,(e,t,r)=>{if(e!=null){if(e.length===0&&r===lt.sources.USER){const[i,A]=this.quill.scroll.descendant(Uh,e.index);if(i!=null){this.linkRange=new ao(e.index-A,i.length());const s=Uh.formats(i.domNode);this.preview.textContent=s,this.preview.setAttribute("href",s),this.show();const a=this.quill.getBounds(this.linkRange);a!=null&&this.position(a);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}class zx extends Vu{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=CK),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),Ku),this.buildPickers(e.container.querySelectorAll("select"),Ku),this.tooltip=new EK(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,r)=>{e.handlers.link.call(e,!r.format.link)}))}}zx.DEFAULTS=fa({},Vu.DEFAULTS,{modules:{toolbar:{handlers:{link(n){if(n){const e=this.quill.getSelection();if(e==null||e.length===0)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);const{tooltip:r}=this.quill.theme;r.edit("link",t)}else this.quill.format("link",!1,ke.sources.USER)}}}}}),ke.register({"attributors/attribute/direction":mx,"attributors/class/align":dx,"attributors/class/background":Zq,"attributors/class/color":Jq,"attributors/class/direction":vx,"attributors/class/font":bx,"attributors/class/size":Cx,"attributors/style/align":px,"attributors/style/background":Vm,"attributors/style/color":Km,"attributors/style/direction":wx,"attributors/style/font":Bx,"attributors/style/size":Ex},!0),ke.register({"formats/align":dx,"formats/direction":vx,"formats/indent":Vj,"formats/background":Vm,"formats/color":Km,"formats/font":bx,"formats/size":Cx,"formats/blockquote":Gj,"formats/code-block":ri,"formats/header":zj,"formats/list":Hu,"formats/bold":Zm,"formats/code":Gm,"formats/italic":Wj,"formats/link":Uh,"formats/script":Xj,"formats/strike":Yj,"formats/underline":$j,"formats/formula":Jj,"formats/image":Zj,"formats/video":eK,"modules/syntax":Rx,"modules/table":rK,"modules/toolbar":t1,"themes/bubble":Gx,"themes/snow":zx,"ui/icons":Ku,"ui/picker":Lh,"ui/icon-picker":jx,"ui/color-picker":qx,"ui/tooltip":Kx},!0);class Oh extends mr.Component{constructor(e){super(e),this.editingAreaRef=mr.createRef(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],this.state={generation:0},this.selection=null,this.onEditorChange=(r,i,A,s)=>{r==="text-change"?this.onEditorChangeText?.(this.editor.root.innerHTML,i,s,this.unprivilegedEditor):r==="selection-change"&&this.onEditorChangeSelection?.(i,s,this.unprivilegedEditor)};const t=this.isControlled()?e.value:e.defaultValue;this.value=t??""}validateProps(e){if(mr.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(mr.Children.count(e.children)&&mr.Children.only(e.children)?.type==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(e,t){if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){const r=this.getEditorContents(),i=e.value??"";this.isEqualValue(i,r)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),[...this.cleanProps,...this.dirtyProps].some(r=>!ca(e[r],this.props[r]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!ca(e[t],this.props[t]))}componentDidMount(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}componentWillUnmount(){this.destroyEditor()}componentDidUpdate(e,t){if(this.editor&&this.shouldComponentRegenerate(e)){const r=this.editor.getContents(),i=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:i},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){const{delta:r,selection:i}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();const A=this.editor;A.setContents(r),Wx(()=>this.setEditorSelection(A,i))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){if(!this.editor)return;this.unhookEditor(this.editor);const e=this.props.modules?.toolbar;if(!(typeof e=="object"&&e&&"container"in e&&typeof e.container=="string"||typeof e=="string")){const r=document.querySelector(".ql-toolbar");r&&r.remove()}delete this.editor}isControlled(){return"value"in this.props}getEditorConfig(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}getEditor(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor}createEditor(e,t){const r=new ke(e,t);return t.tabIndex!=null&&this.setEditorTabIndex(r,t.tabIndex),this.hookEditor(r),r}hookEditor(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)}unhookEditor(e){e.off("editor-change",this.onEditorChange)}getEditorContents(){return this.value}getEditorSelection(){return this.selection}isDelta(e){return e&&e.ops}isEqualValue(e,t){return this.isDelta(e)&&this.isDelta(t)?ca(e.ops,t.ops):ca(e,t)}setEditorContents(e,t){this.value=t;const r=this.getEditorSelection();typeof t=="string"?e.setContents(e.clipboard.convert({html:t})):e.setContents(t),Wx(()=>this.setEditorSelection(e,r))}setEditorSelection(e,t){if(this.selection=t,t){const r=e.getLength();t.index=Math.max(0,Math.min(t.index,r-1)),t.length=Math.max(0,Math.min(t.length,r-1-t.index)),e.setSelection(t)}}setEditorTabIndex(e,t){e?.scroll?.domNode&&(e.scroll.domNode.tabIndex=t)}setEditorReadOnly(e,t){t?e.disable():e.enable()}makeUnprivilegedEditor(e){const t=e;return{getHTML:()=>t.root.innerHTML,getSemanticHTML:t.getSemanticHTML.bind(t),getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}}getEditingArea(){const e=this.editingAreaRef.current;if(!e)throw new Error("Cannot find element for editing area");if(e.nodeType===3)throw new Error("Editing area cannot be a text node");return e}renderEditingArea(){const{children:e,preserveWhitespace:t}=this.props,{generation:r}=this.state,i={key:r,ref:this.editingAreaRef};return mr.Children.count(e)?mr.cloneElement(mr.Children.only(e),i):t?mr.createElement("pre",{...i}):mr.createElement("div",{...i})}render(){return mr.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())}onEditorChangeText(e,t,r,i){if(!this.editor)return;const A=this.isDelta(this.value)?i.getContents():i.getHTML();A!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=A,this.props.onChange?.(e,t,r,i))}onEditorChangeSelection(e,t,r){if(!this.editor)return;const i=this.getEditorSelection(),A=!i&&e,s=i&&!e;ca(e,i)||(this.selection=e,this.props.onChangeSelection?.(e,t,r),A?this.props.onFocus?.(e,t,r):s&&this.props.onBlur?.(i,t,r))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}}Oh.displayName="React Quill",Oh.Quill=ke,Oh.defaultProps={theme:"snow",modules:{},readOnly:!1};function Wx(n){Promise.resolve().then(n)}const r1=ke.import("attributors/class/font");r1.whitelist=["arial","times-new-roman","georgia","verdana","tahoma","comic-sans","roboto","ubuntu"],ke.register(r1,!0);const n1=ke.import("attributors/class/size");n1.whitelist=["small","normal","large","huge"],ke.register(n1,!0);const Xx=({content:n,onChange:e})=>{const t=mr.useRef(null),r={toolbar:[[{font:r1.whitelist}],[{size:n1.whitelist}],[{align:[]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"}],["link"]]};return wt.jsx(Oh,{ref:t,value:n,onChange:e,modules:r,theme:"snow",className:"h-full pb-4"})},i1=mr.forwardRef(({content:n},e)=>wt.jsx("div",{ref:e,className:"bg-white p-2 ",children:wt.jsx("div",{className:"ql-editor",dangerouslySetInnerHTML:{__html:n}})})),Yx=({content:n,onChange:e,previewRef:t,showPreview:r=!1})=>wt.jsxs("div",{className:"flex justify-center items-start min-h-screen pt-15 bg-gray-50",children:[wt.jsx("div",{className:`z-1 h-[85vh] lg:h-[90vh] p-4 ${r?"w-full md:w-4/5 lg:w-4/5 xl:w-1/2 2xl:w-1/2":"w-full md:w-4/5 lg:w-4/5 xl:w-2/3 2xl:w-1/2"} max-w-[1440px]`,children:wt.jsx("div",{className:"h-full",children:wt.jsx(Xx,{content:n,onChange:e})})}),r&&wt.jsx("div",{className:"w-full xl:w-1/2 mt-10 xl:m-0 p-4",children:wt.jsx("div",{className:"h-full overflow-auto",children:wt.jsx(i1,{content:n,ref:t})})}),!r&&wt.jsx("div",{style:{display:"none"},children:wt.jsx(i1,{content:n,ref:t})})]}),xK=({initialContent:n="<p>Your starting content...</p>",logo:e="/logo.png",logoWidth:t="200px",logoHeight:r="40px",onChange:i,className:A="",showExportMenu:s=!0,showPreview:a=!1,...o})=>{const[l,u]=mr.useState(n),f=mr.useRef(),h=c=>{u(c),i&&i(c)};return wt.jsxs("div",{className:`h-screen overflow-hidden flex flex-col ${A}`,...o,children:[s&&wt.jsx("div",{className:"shrink-0",children:wt.jsx(jE,{previewRef:f,logo:e,logoWidth:t,logoHeight:r})}),wt.jsx("div",{className:"flex-1 overflow-hidden",children:wt.jsx(Yx,{content:l,onChange:h,showPreview:a,previewRef:f})})]})};/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:$x,setPrototypeOf:Jx,isFrozen:SK,getPrototypeOf:FK,getOwnPropertyDescriptor:_K}=Object;let{freeze:ni,seal:zi,create:Zx}=Object,{apply:A1,construct:s1}=typeof Reflect<"u"&&Reflect;ni||(ni=function(e){return e}),zi||(zi=function(e){return e}),A1||(A1=function(e,t,r){return e.apply(t,r)}),s1||(s1=function(e,t){return new e(...t)});const Qh=Ai(Array.prototype.forEach),TK=Ai(Array.prototype.lastIndexOf),e3=Ai(Array.prototype.pop),zu=Ai(Array.prototype.push),IK=Ai(Array.prototype.splice),Rh=Ai(String.prototype.toLowerCase),a1=Ai(String.prototype.toString),t3=Ai(String.prototype.match),Wu=Ai(String.prototype.replace),UK=Ai(String.prototype.indexOf),NK=Ai(String.prototype.trim),CA=Ai(Object.prototype.hasOwnProperty),ii=Ai(RegExp.prototype.test),Xu=LK(TypeError);function Ai(n){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return A1(n,e,r)}}function LK(n){return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s1(n,t)}}function Mt(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rh;Jx&&Jx(n,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const A=t(i);A!==i&&(SK(e)||(e[r]=A),i=A)}n[i]=!0}return n}function OK(n){for(let e=0;e<n.length;e++)CA(n,e)||(n[e]=null);return n}function Es(n){const e=Zx(null);for(const[t,r]of $x(n))CA(n,t)&&(Array.isArray(r)?e[t]=OK(r):r&&typeof r=="object"&&r.constructor===Object?e[t]=Es(r):e[t]=r);return e}function Yu(n,e){for(;n!==null;){const r=_K(n,e);if(r){if(r.get)return Ai(r.get);if(typeof r.value=="function")return Ai(r.value)}n=FK(n)}function t(){return null}return t}const r3=ni(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),o1=ni(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),l1=ni(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),QK=ni(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),u1=ni(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),RK=ni(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),n3=ni(["#text"]),i3=ni(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),c1=ni(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),A3=ni(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ph=ni(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),PK=zi(/\{\{[\w\W]*|[\w\W]*\}\}/gm),kK=zi(/<%[\w\W]*|[\w\W]*%>/gm),DK=zi(/\$\{[\w\W]*/gm),MK=zi(/^data-[\-\w.\u00B7-\uFFFF]+$/),HK=zi(/^aria-[\-\w]+$/),s3=zi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qK=zi(/^(?:\w+script|data):/i),jK=zi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),a3=zi(/^html$/i),KK=zi(/^[a-z][.\w]*(-[.\w]+)+$/i);var o3=Object.freeze({__proto__:null,ARIA_ATTR:HK,ATTR_WHITESPACE:jK,CUSTOM_ELEMENT:KK,DATA_ATTR:MK,DOCTYPE_NAME:a3,ERB_EXPR:kK,IS_ALLOWED_URI:s3,IS_SCRIPT_OR_DATA:qK,MUSTACHE_EXPR:PK,TMPLIT_EXPR:DK});const $u={element:1,text:3,progressingInstruction:7,comment:8,document:9},VK=function(){return typeof window>"u"?null:window},GK=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(r=t.getAttribute(i));const A="dompurify"+(r?"#"+r:"");try{return e.createPolicy(A,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+A+" could not be created."),null}},l3=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function u3(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:VK();const e=at=>u3(at);if(e.version="3.2.6",e.removed=[],!n||!n.document||n.document.nodeType!==$u.document||!n.Element)return e.isSupported=!1,e;let{document:t}=n;const r=t,i=r.currentScript,{DocumentFragment:A,HTMLTemplateElement:s,Node:a,Element:o,NodeFilter:l,NamedNodeMap:u=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:c}=n,m=o.prototype,g=Yu(m,"cloneNode"),w=Yu(m,"remove"),p=Yu(m,"nextSibling"),v=Yu(m,"childNodes"),b=Yu(m,"parentNode");if(typeof s=="function"){const at=t.createElement("template");at.content&&at.content.ownerDocument&&(t=at.content.ownerDocument)}let B,T="";const{implementation:M,createNodeIterator:D,createDocumentFragment:j,getElementsByTagName:R}=t,{importNode:ae}=r;let L=l3();e.isSupported=typeof $x=="function"&&typeof b=="function"&&M&&M.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:x,ERB_EXPR:Q,TMPLIT_EXPR:C,DATA_ATTR:z,ARIA_ATTR:Y,IS_SCRIPT_OR_DATA:V,ATTR_WHITESPACE:ie,CUSTOM_ELEMENT:Ae}=o3;let{IS_ALLOWED_URI:$}=o3,te=null;const F=Mt({},[...r3,...o1,...l1,...u1,...n3]);let H=null;const G=Mt({},[...i3,...c1,...A3,...Ph]);let X=Object.seal(Zx(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),J=null,O=null,U=!0,ee=!0,re=!1,W=!0,Z=!1,me=!0,k=!1,pe=!1,I=!1,E=!1,S=!1,P=!1,oe=!0,ge=!1;const ce="user-content-";let Ee=!0,ye=!1,Be={},Ue=null;const Oe=Mt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Me=null;const $e=Mt({},["audio","video","img","source","image","track"]);let tt=null;const Ve=Mt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Tt="http://www.w3.org/1998/Math/MathML",st="http://www.w3.org/2000/svg",kt="http://www.w3.org/1999/xhtml";let yt=kt,St=!1,ur=null;const Ft=Mt({},[Tt,st,kt],a1);let $t=Mt({},["mi","mo","mn","ms","mtext"]),Qt=Mt({},["annotation-xml"]);const yr=Mt({},["title","style","font","a","script"]);let It=null;const Kt=["application/xhtml+xml","text/html"],mt="text/html";let pt=null,on=null;const Fr=t.createElement("form"),jr=function(xe){return xe instanceof RegExp||xe instanceof Function},dn=function(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(on&&on===xe)){if((!xe||typeof xe!="object")&&(xe={}),xe=Es(xe),It=Kt.indexOf(xe.PARSER_MEDIA_TYPE)===-1?mt:xe.PARSER_MEDIA_TYPE,pt=It==="application/xhtml+xml"?a1:Rh,te=CA(xe,"ALLOWED_TAGS")?Mt({},xe.ALLOWED_TAGS,pt):F,H=CA(xe,"ALLOWED_ATTR")?Mt({},xe.ALLOWED_ATTR,pt):G,ur=CA(xe,"ALLOWED_NAMESPACES")?Mt({},xe.ALLOWED_NAMESPACES,a1):Ft,tt=CA(xe,"ADD_URI_SAFE_ATTR")?Mt(Es(Ve),xe.ADD_URI_SAFE_ATTR,pt):Ve,Me=CA(xe,"ADD_DATA_URI_TAGS")?Mt(Es($e),xe.ADD_DATA_URI_TAGS,pt):$e,Ue=CA(xe,"FORBID_CONTENTS")?Mt({},xe.FORBID_CONTENTS,pt):Oe,J=CA(xe,"FORBID_TAGS")?Mt({},xe.FORBID_TAGS,pt):Es({}),O=CA(xe,"FORBID_ATTR")?Mt({},xe.FORBID_ATTR,pt):Es({}),Be=CA(xe,"USE_PROFILES")?xe.USE_PROFILES:!1,U=xe.ALLOW_ARIA_ATTR!==!1,ee=xe.ALLOW_DATA_ATTR!==!1,re=xe.ALLOW_UNKNOWN_PROTOCOLS||!1,W=xe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Z=xe.SAFE_FOR_TEMPLATES||!1,me=xe.SAFE_FOR_XML!==!1,k=xe.WHOLE_DOCUMENT||!1,E=xe.RETURN_DOM||!1,S=xe.RETURN_DOM_FRAGMENT||!1,P=xe.RETURN_TRUSTED_TYPE||!1,I=xe.FORCE_BODY||!1,oe=xe.SANITIZE_DOM!==!1,ge=xe.SANITIZE_NAMED_PROPS||!1,Ee=xe.KEEP_CONTENT!==!1,ye=xe.IN_PLACE||!1,$=xe.ALLOWED_URI_REGEXP||s3,yt=xe.NAMESPACE||kt,$t=xe.MATHML_TEXT_INTEGRATION_POINTS||$t,Qt=xe.HTML_INTEGRATION_POINTS||Qt,X=xe.CUSTOM_ELEMENT_HANDLING||{},xe.CUSTOM_ELEMENT_HANDLING&&jr(xe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(X.tagNameCheck=xe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),xe.CUSTOM_ELEMENT_HANDLING&&jr(xe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(X.attributeNameCheck=xe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),xe.CUSTOM_ELEMENT_HANDLING&&typeof xe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(X.allowCustomizedBuiltInElements=xe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&(ee=!1),S&&(E=!0),Be&&(te=Mt({},n3),H=[],Be.html===!0&&(Mt(te,r3),Mt(H,i3)),Be.svg===!0&&(Mt(te,o1),Mt(H,c1),Mt(H,Ph)),Be.svgFilters===!0&&(Mt(te,l1),Mt(H,c1),Mt(H,Ph)),Be.mathMl===!0&&(Mt(te,u1),Mt(H,A3),Mt(H,Ph))),xe.ADD_TAGS&&(te===F&&(te=Es(te)),Mt(te,xe.ADD_TAGS,pt)),xe.ADD_ATTR&&(H===G&&(H=Es(H)),Mt(H,xe.ADD_ATTR,pt)),xe.ADD_URI_SAFE_ATTR&&Mt(tt,xe.ADD_URI_SAFE_ATTR,pt),xe.FORBID_CONTENTS&&(Ue===Oe&&(Ue=Es(Ue)),Mt(Ue,xe.FORBID_CONTENTS,pt)),Ee&&(te["#text"]=!0),k&&Mt(te,["html","head","body"]),te.table&&(Mt(te,["tbody"]),delete J.tbody),xe.TRUSTED_TYPES_POLICY){if(typeof xe.TRUSTED_TYPES_POLICY.createHTML!="function")throw Xu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof xe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Xu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');B=xe.TRUSTED_TYPES_POLICY,T=B.createHTML("")}else B===void 0&&(B=GK(c,i)),B!==null&&typeof T=="string"&&(T=B.createHTML(""));ni&&ni(xe),on=xe}},ut=Mt({},[...o1,...l1,...QK]),bn=Mt({},[...u1,...RK]),zn=function(xe){let Ye=b(xe);(!Ye||!Ye.tagName)&&(Ye={namespaceURI:yt,tagName:"template"});const Je=Rh(xe.tagName),Vt=Rh(Ye.tagName);return ur[xe.namespaceURI]?xe.namespaceURI===st?Ye.namespaceURI===kt?Je==="svg":Ye.namespaceURI===Tt?Je==="svg"&&(Vt==="annotation-xml"||$t[Vt]):!!ut[Je]:xe.namespaceURI===Tt?Ye.namespaceURI===kt?Je==="math":Ye.namespaceURI===st?Je==="math"&&Qt[Vt]:!!bn[Je]:xe.namespaceURI===kt?Ye.namespaceURI===st&&!Qt[Vt]||Ye.namespaceURI===Tt&&!$t[Vt]?!1:!bn[Je]&&(yr[Je]||!ut[Je]):!!(It==="application/xhtml+xml"&&ur[xe.namespaceURI]):!1},nr=function(xe){zu(e.removed,{element:xe});try{b(xe).removeChild(xe)}catch{w(xe)}},Jt=function(xe,Ye){try{zu(e.removed,{attribute:Ye.getAttributeNode(xe),from:Ye})}catch{zu(e.removed,{attribute:null,from:Ye})}if(Ye.removeAttribute(xe),xe==="is")if(E||S)try{nr(Ye)}catch{}else try{Ye.setAttribute(xe,"")}catch{}},ir=function(xe){let Ye=null,Je=null;if(I)xe="<remove></remove>"+xe;else{const pr=t3(xe,/^[\r\n\t ]+/);Je=pr&&pr[0]}It==="application/xhtml+xml"&&yt===kt&&(xe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+xe+"</body></html>");const Vt=B?B.createHTML(xe):xe;if(yt===kt)try{Ye=new h().parseFromString(Vt,It)}catch{}if(!Ye||!Ye.documentElement){Ye=M.createDocument(yt,"template",null);try{Ye.documentElement.innerHTML=St?T:Vt}catch{}}const Tr=Ye.body||Ye.documentElement;return xe&&Je&&Tr.insertBefore(t.createTextNode(Je),Tr.childNodes[0]||null),yt===kt?R.call(Ye,k?"html":"body")[0]:k?Ye.documentElement:Tr},zt=function(xe){return D.call(xe.ownerDocument||xe,xe,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},vi=function(xe){return xe instanceof f&&(typeof xe.nodeName!="string"||typeof xe.textContent!="string"||typeof xe.removeChild!="function"||!(xe.attributes instanceof u)||typeof xe.removeAttribute!="function"||typeof xe.setAttribute!="function"||typeof xe.namespaceURI!="string"||typeof xe.insertBefore!="function"||typeof xe.hasChildNodes!="function")},Wn=function(xe){return typeof a=="function"&&xe instanceof a};function _r(at,xe,Ye){Qh(at,Je=>{Je.call(e,xe,Ye,on)})}const Bn=function(xe){let Ye=null;if(_r(L.beforeSanitizeElements,xe,null),vi(xe))return nr(xe),!0;const Je=pt(xe.nodeName);if(_r(L.uponSanitizeElement,xe,{tagName:Je,allowedTags:te}),me&&xe.hasChildNodes()&&!Wn(xe.firstElementChild)&&ii(/<[/\w!]/g,xe.innerHTML)&&ii(/<[/\w!]/g,xe.textContent)||xe.nodeType===$u.progressingInstruction||me&&xe.nodeType===$u.comment&&ii(/<[/\w]/g,xe.data))return nr(xe),!0;if(!te[Je]||J[Je]){if(!J[Je]&&rr(Je)&&(X.tagNameCheck instanceof RegExp&&ii(X.tagNameCheck,Je)||X.tagNameCheck instanceof Function&&X.tagNameCheck(Je)))return!1;if(Ee&&!Ue[Je]){const Vt=b(xe)||xe.parentNode,Tr=v(xe)||xe.childNodes;if(Tr&&Vt){const pr=Tr.length;for(let Kr=pr-1;Kr>=0;--Kr){const ln=g(Tr[Kr],!0);ln.__removalCount=(xe.__removalCount||0)+1,Vt.insertBefore(ln,p(xe))}}}return nr(xe),!0}return xe instanceof o&&!zn(xe)||(Je==="noscript"||Je==="noembed"||Je==="noframes")&&ii(/<\/no(script|embed|frames)/i,xe.innerHTML)?(nr(xe),!0):(Z&&xe.nodeType===$u.text&&(Ye=xe.textContent,Qh([x,Q,C],Vt=>{Ye=Wu(Ye,Vt," ")}),xe.textContent!==Ye&&(zu(e.removed,{element:xe.cloneNode()}),xe.textContent=Ye)),_r(L.afterSanitizeElements,xe,null),!1)},Cn=function(xe,Ye,Je){if(oe&&(Ye==="id"||Ye==="name")&&(Je in t||Je in Fr))return!1;if(!(ee&&!O[Ye]&&ii(z,Ye))){if(!(U&&ii(Y,Ye))){if(!H[Ye]||O[Ye]){if(!(rr(xe)&&(X.tagNameCheck instanceof RegExp&&ii(X.tagNameCheck,xe)||X.tagNameCheck instanceof Function&&X.tagNameCheck(xe))&&(X.attributeNameCheck instanceof RegExp&&ii(X.attributeNameCheck,Ye)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(Ye))||Ye==="is"&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&ii(X.tagNameCheck,Je)||X.tagNameCheck instanceof Function&&X.tagNameCheck(Je))))return!1}else if(!tt[Ye]){if(!ii($,Wu(Je,ie,""))){if(!((Ye==="src"||Ye==="xlink:href"||Ye==="href")&&xe!=="script"&&UK(Je,"data:")===0&&Me[xe])){if(!(re&&!ii(V,Wu(Je,ie,"")))){if(Je)return!1}}}}}}return!0},rr=function(xe){return xe!=="annotation-xml"&&t3(xe,Ae)},pn=function(xe){_r(L.beforeSanitizeAttributes,xe,null);const{attributes:Ye}=xe;if(!Ye||vi(xe))return;const Je={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H,forceKeepAttr:void 0};let Vt=Ye.length;for(;Vt--;){const Tr=Ye[Vt],{name:pr,namespaceURI:Kr,value:ln}=Tr,Ln=pt(pr),Xi=ln;let Ar=pr==="value"?Xi:NK(Xi);if(Je.attrName=Ln,Je.attrValue=Ar,Je.keepAttr=!0,Je.forceKeepAttr=void 0,_r(L.uponSanitizeAttribute,xe,Je),Ar=Je.attrValue,ge&&(Ln==="id"||Ln==="name")&&(Jt(pr,xe),Ar=ce+Ar),me&&ii(/((--!?|])>)|<\/(style|title)/i,Ar)){Jt(pr,xe);continue}if(Je.forceKeepAttr)continue;if(!Je.keepAttr){Jt(pr,xe);continue}if(!W&&ii(/\/>/i,Ar)){Jt(pr,xe);continue}Z&&Qh([x,Q,C],Ti=>{Ar=Wu(Ar,Ti," ")});const On=pt(xe.nodeName);if(!Cn(On,Ln,Ar)){Jt(pr,xe);continue}if(B&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!Kr)switch(c.getAttributeType(On,Ln)){case"TrustedHTML":{Ar=B.createHTML(Ar);break}case"TrustedScriptURL":{Ar=B.createScriptURL(Ar);break}}if(Ar!==Xi)try{Kr?xe.setAttributeNS(Kr,pr,Ar):xe.setAttribute(pr,Ar),vi(xe)?nr(xe):e3(e.removed)}catch{Jt(pr,xe)}}_r(L.afterSanitizeAttributes,xe,null)},Xn=function at(xe){let Ye=null;const Je=zt(xe);for(_r(L.beforeSanitizeShadowDOM,xe,null);Ye=Je.nextNode();)_r(L.uponSanitizeShadowNode,Ye,null),Bn(Ye),pn(Ye),Ye.content instanceof A&&at(Ye.content);_r(L.afterSanitizeShadowDOM,xe,null)};return e.sanitize=function(at){let xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=null,Je=null,Vt=null,Tr=null;if(St=!at,St&&(at="<!-->"),typeof at!="string"&&!Wn(at))if(typeof at.toString=="function"){if(at=at.toString(),typeof at!="string")throw Xu("dirty is not a string, aborting")}else throw Xu("toString is not a function");if(!e.isSupported)return at;if(pe||dn(xe),e.removed=[],typeof at=="string"&&(ye=!1),ye){if(at.nodeName){const ln=pt(at.nodeName);if(!te[ln]||J[ln])throw Xu("root node is forbidden and cannot be sanitized in-place")}}else if(at instanceof a)Ye=ir("<!---->"),Je=Ye.ownerDocument.importNode(at,!0),Je.nodeType===$u.element&&Je.nodeName==="BODY"||Je.nodeName==="HTML"?Ye=Je:Ye.appendChild(Je);else{if(!E&&!Z&&!k&&at.indexOf("<")===-1)return B&&P?B.createHTML(at):at;if(Ye=ir(at),!Ye)return E?null:P?T:""}Ye&&I&&nr(Ye.firstChild);const pr=zt(ye?at:Ye);for(;Vt=pr.nextNode();)Bn(Vt),pn(Vt),Vt.content instanceof A&&Xn(Vt.content);if(ye)return at;if(E){if(S)for(Tr=j.call(Ye.ownerDocument);Ye.firstChild;)Tr.appendChild(Ye.firstChild);else Tr=Ye;return(H.shadowroot||H.shadowrootmode)&&(Tr=ae.call(r,Tr,!0)),Tr}let Kr=k?Ye.outerHTML:Ye.innerHTML;return k&&te["!doctype"]&&Ye.ownerDocument&&Ye.ownerDocument.doctype&&Ye.ownerDocument.doctype.name&&ii(a3,Ye.ownerDocument.doctype.name)&&(Kr="<!DOCTYPE "+Ye.ownerDocument.doctype.name+`>
`+Kr),Z&&Qh([x,Q,C],ln=>{Kr=Wu(Kr,ln," ")}),B&&P?B.createHTML(Kr):Kr},e.setConfig=function(){let at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};dn(at),pe=!0},e.clearConfig=function(){on=null,pe=!1},e.isValidAttribute=function(at,xe,Ye){on||dn({});const Je=pt(at),Vt=pt(xe);return Cn(Je,Vt,Ye)},e.addHook=function(at,xe){typeof xe=="function"&&zu(L[at],xe)},e.removeHook=function(at,xe){if(xe!==void 0){const Ye=TK(L[at],xe);return Ye===-1?void 0:IK(L[at],Ye,1)[0]}return e3(L[at])},e.removeHooks=function(at){L[at]=[]},e.removeAllHooks=function(){L=l3()},e}var zK=u3();const WK=Object.freeze(Object.defineProperty({__proto__:null,default:zK},Symbol.toStringTag,{value:"Module"}));var c3={},f3={},Ju,h3;function Lr(){if(h3)return Ju;h3=1;var n=function(e){return e&&e.Math===Math&&e};return Ju=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof Zn=="object"&&Zn)||n(typeof Ju=="object"&&Ju)||function(){return this}()||Function("return this")(),Ju}var f1={},h1,d3;function Mr(){return d3||(d3=1,h1=function(n){try{return!!n()}catch{return!0}}),h1}var d1,p3;function EA(){if(p3)return d1;p3=1;var n=Mr();return d1=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),d1}var p1,g3;function kh(){if(g3)return p1;g3=1;var n=Mr();return p1=!n(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),p1}var g1,m3;function Nn(){if(m3)return g1;m3=1;var n=kh(),e=Function.prototype.call;return g1=n?e.bind(e):function(){return e.apply(e,arguments)},g1}var m1={},v3;function XK(){if(v3)return m1;v3=1;var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,t=e&&!n.call({1:2},1);return m1.f=t?function(i){var A=e(this,i);return!!A&&A.enumerable}:n,m1}var v1,w3;function w1(){return w3||(w3=1,v1=function(n,e){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:e}}),v1}var y1,y3;function Hr(){if(y3)return y1;y3=1;var n=kh(),e=Function.prototype,t=e.call,r=n&&e.bind.bind(t,t);return y1=n?r:function(i){return function(){return t.apply(i,arguments)}},y1}var b1,b3;function fo(){if(b3)return b1;b3=1;var n=Hr(),e=n({}.toString),t=n("".slice);return b1=function(r){return t(e(r),8,-1)},b1}var B1,B3;function C3(){if(B3)return B1;B3=1;var n=Hr(),e=Mr(),t=fo(),r=Object,i=n("".split);return B1=e(function(){return!r("z").propertyIsEnumerable(0)})?function(A){return t(A)==="String"?i(A,""):r(A)}:r,B1}var C1,E3;function Dh(){return E3||(E3=1,C1=function(n){return n==null}),C1}var E1,x3;function xA(){if(x3)return E1;x3=1;var n=Dh(),e=TypeError;return E1=function(t){if(n(t))throw new e("Can't call method on "+t);return t},E1}var x1,S3;function Zu(){if(S3)return x1;S3=1;var n=C3(),e=xA();return x1=function(t){return n(e(t))},x1}var S1,F3;function en(){if(F3)return S1;F3=1;var n=typeof document=="object"&&document.all;return S1=typeof n>"u"&&n!==void 0?function(e){return typeof e=="function"||e===n}:function(e){return typeof e=="function"},S1}var F1,_3;function gi(){if(_3)return F1;_3=1;var n=en();return F1=function(e){return typeof e=="object"?e!==null:n(e)},F1}var _1,T3;function ho(){if(T3)return _1;T3=1;var n=Lr(),e=en(),t=function(r){return e(r)?r:void 0};return _1=function(r,i){return arguments.length<2?t(n[r]):n[r]&&n[r][i]},_1}var T1,I3;function Mh(){if(I3)return T1;I3=1;var n=Hr();return T1=n({}.isPrototypeOf),T1}var I1,U3;function ec(){if(U3)return I1;U3=1;var n=Lr(),e=n.navigator,t=e&&e.userAgent;return I1=t?String(t):"",I1}var U1,N3;function N1(){if(N3)return U1;N3=1;var n=Lr(),e=ec(),t=n.process,r=n.Deno,i=t&&t.versions||r&&r.version,A=i&&i.v8,s,a;return A&&(s=A.split("."),a=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!a&&e&&(s=e.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=e.match(/Chrome\/(\d+)/),s&&(a=+s[1]))),U1=a,U1}var L1,L3;function O3(){if(L3)return L1;L3=1;var n=N1(),e=Mr(),t=Lr(),r=t.String;return L1=!!Object.getOwnPropertySymbols&&!e(function(){var i=Symbol("symbol detection");return!r(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&n&&n<41}),L1}var O1,Q3;function R3(){if(Q3)return O1;Q3=1;var n=O3();return O1=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol",O1}var Q1,P3;function k3(){if(P3)return Q1;P3=1;var n=ho(),e=en(),t=Mh(),r=R3(),i=Object;return Q1=r?function(A){return typeof A=="symbol"}:function(A){var s=n("Symbol");return e(s)&&t(s.prototype,i(A))},Q1}var R1,D3;function Hh(){if(D3)return R1;D3=1;var n=String;return R1=function(e){try{return n(e)}catch{return"Object"}},R1}var P1,M3;function xs(){if(M3)return P1;M3=1;var n=en(),e=Hh(),t=TypeError;return P1=function(r){if(n(r))return r;throw new t(e(r)+" is not a function")},P1}var k1,H3;function Cl(){if(H3)return k1;H3=1;var n=xs(),e=Dh();return k1=function(t,r){var i=t[r];return e(i)?void 0:n(i)},k1}var D1,q3;function YK(){if(q3)return D1;q3=1;var n=Nn(),e=en(),t=gi(),r=TypeError;return D1=function(i,A){var s,a;if(A==="string"&&e(s=i.toString)&&!t(a=n(s,i))||e(s=i.valueOf)&&!t(a=n(s,i))||A!=="string"&&e(s=i.toString)&&!t(a=n(s,i)))return a;throw new r("Can't convert object to primitive value")},D1}var M1={exports:{}},H1,j3;function $A(){return j3||(j3=1,H1=!1),H1}var q1,K3;function j1(){if(K3)return q1;K3=1;var n=Lr(),e=Object.defineProperty;return q1=function(t,r){try{e(n,t,{value:r,configurable:!0,writable:!0})}catch{n[t]=r}return r},q1}var V3;function K1(){if(V3)return M1.exports;V3=1;var n=$A(),e=Lr(),t=j1(),r="__core-js_shared__",i=M1.exports=e[r]||t(r,{});return(i.versions||(i.versions=[])).push({version:"3.44.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),M1.exports}var V1,G3;function G1(){if(G3)return V1;G3=1;var n=K1();return V1=function(e,t){return n[e]||(n[e]=t||{})},V1}var z1,z3;function qh(){if(z3)return z1;z3=1;var n=xA(),e=Object;return z1=function(t){return e(n(t))},z1}var W1,W3;function SA(){if(W3)return W1;W3=1;var n=Hr(),e=qh(),t=n({}.hasOwnProperty);return W1=Object.hasOwn||function(i,A){return t(e(i),A)},W1}var X1,X3;function Y3(){if(X3)return X1;X3=1;var n=Hr(),e=0,t=Math.random(),r=n(1.1.toString);return X1=function(i){return"Symbol("+(i===void 0?"":i)+")_"+r(++e+t,36)},X1}var Y1,$3;function yn(){if($3)return Y1;$3=1;var n=Lr(),e=G1(),t=SA(),r=Y3(),i=O3(),A=R3(),s=n.Symbol,a=e("wks"),o=A?s.for||s:s&&s.withoutSetter||r;return Y1=function(l){return t(a,l)||(a[l]=i&&t(s,l)?s[l]:o("Symbol."+l)),a[l]},Y1}var $1,J3;function $K(){if(J3)return $1;J3=1;var n=Nn(),e=gi(),t=k3(),r=Cl(),i=YK(),A=yn(),s=TypeError,a=A("toPrimitive");return $1=function(o,l){if(!e(o)||t(o))return o;var u=r(o,a),f;if(u){if(l===void 0&&(l="default"),f=n(u,o,l),!e(f)||t(f))return f;throw new s("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(o,l)},$1}var J1,Z3;function eS(){if(Z3)return J1;Z3=1;var n=$K(),e=k3();return J1=function(t){var r=n(t,"string");return e(r)?r:r+""},J1}var Z1,tS;function jh(){if(tS)return Z1;tS=1;var n=Lr(),e=gi(),t=n.document,r=e(t)&&e(t.createElement);return Z1=function(i){return r?t.createElement(i):{}},Z1}var ev,rS;function nS(){if(rS)return ev;rS=1;var n=EA(),e=Mr(),t=jh();return ev=!n&&!e(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!==7}),ev}var iS;function Kh(){if(iS)return f1;iS=1;var n=EA(),e=Nn(),t=XK(),r=w1(),i=Zu(),A=eS(),s=SA(),a=nS(),o=Object.getOwnPropertyDescriptor;return f1.f=n?o:function(u,f){if(u=i(u),f=A(f),a)try{return o(u,f)}catch{}if(s(u,f))return r(!e(t.f,u,f),u[f])},f1}var tv={},rv,AS;function sS(){if(AS)return rv;AS=1;var n=EA(),e=Mr();return rv=n&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),rv}var nv,aS;function si(){if(aS)return nv;aS=1;var n=gi(),e=String,t=TypeError;return nv=function(r){if(n(r))return r;throw new t(e(r)+" is not an object")},nv}var oS;function ga(){if(oS)return tv;oS=1;var n=EA(),e=nS(),t=sS(),r=si(),i=eS(),A=TypeError,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o="enumerable",l="configurable",u="writable";return tv.f=n?t?function(h,c,m){if(r(h),c=i(c),r(m),typeof h=="function"&&c==="prototype"&&"value"in m&&u in m&&!m[u]){var g=a(h,c);g&&g[u]&&(h[c]=m.value,m={configurable:l in m?m[l]:g[l],enumerable:o in m?m[o]:g[o],writable:!1})}return s(h,c,m)}:s:function(h,c,m){if(r(h),c=i(c),r(m),e)try{return s(h,c,m)}catch{}if("get"in m||"set"in m)throw new A("Accessors not supported");return"value"in m&&(h[c]=m.value),h},tv}var iv,lS;function tc(){if(lS)return iv;lS=1;var n=EA(),e=ga(),t=w1();return iv=n?function(r,i,A){return e.f(r,i,t(1,A))}:function(r,i,A){return r[i]=A,r},iv}var Av={exports:{}},sv,uS;function Vh(){if(uS)return sv;uS=1;var n=EA(),e=SA(),t=Function.prototype,r=n&&Object.getOwnPropertyDescriptor,i=e(t,"name"),A=i&&(function(){}).name==="something",s=i&&(!n||n&&r(t,"name").configurable);return sv={EXISTS:i,PROPER:A,CONFIGURABLE:s},sv}var av,cS;function ov(){if(cS)return av;cS=1;var n=Hr(),e=en(),t=K1(),r=n(Function.toString);return e(t.inspectSource)||(t.inspectSource=function(i){return r(i)}),av=t.inspectSource,av}var lv,fS;function JK(){if(fS)return lv;fS=1;var n=Lr(),e=en(),t=n.WeakMap;return lv=e(t)&&/native code/.test(String(t)),lv}var uv,hS;function cv(){if(hS)return uv;hS=1;var n=G1(),e=Y3(),t=n("keys");return uv=function(r){return t[r]||(t[r]=e(r))},uv}var fv,dS;function hv(){return dS||(dS=1,fv={}),fv}var dv,pS;function Gh(){if(pS)return dv;pS=1;var n=JK(),e=Lr(),t=gi(),r=tc(),i=SA(),A=K1(),s=cv(),a=hv(),o="Object already initialized",l=e.TypeError,u=e.WeakMap,f,h,c,m=function(v){return c(v)?h(v):f(v,{})},g=function(v){return function(b){var B;if(!t(b)||(B=h(b)).type!==v)throw new l("Incompatible receiver, "+v+" required");return B}};if(n||A.state){var w=A.state||(A.state=new u);w.get=w.get,w.has=w.has,w.set=w.set,f=function(v,b){if(w.has(v))throw new l(o);return b.facade=v,w.set(v,b),b},h=function(v){return w.get(v)||{}},c=function(v){return w.has(v)}}else{var p=s("state");a[p]=!0,f=function(v,b){if(i(v,p))throw new l(o);return b.facade=v,r(v,p,b),b},h=function(v){return i(v,p)?v[p]:{}},c=function(v){return i(v,p)}}return dv={set:f,get:h,has:c,enforce:m,getterFor:g},dv}var gS;function mS(){if(gS)return Av.exports;gS=1;var n=Hr(),e=Mr(),t=en(),r=SA(),i=EA(),A=Vh().CONFIGURABLE,s=ov(),a=Gh(),o=a.enforce,l=a.get,u=String,f=Object.defineProperty,h=n("".slice),c=n("".replace),m=n([].join),g=i&&!e(function(){return f(function(){},"length",{value:8}).length!==8}),w=String(String).split("String"),p=Av.exports=function(v,b,B){h(u(b),0,7)==="Symbol("&&(b="["+c(u(b),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),B&&B.getter&&(b="get "+b),B&&B.setter&&(b="set "+b),(!r(v,"name")||A&&v.name!==b)&&(i?f(v,"name",{value:b,configurable:!0}):v.name=b),g&&B&&r(B,"arity")&&v.length!==B.arity&&f(v,"length",{value:B.arity});try{B&&r(B,"constructor")&&B.constructor?i&&f(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var T=o(v);return r(T,"source")||(T.source=m(w,typeof b=="string"?b:"")),v};return Function.prototype.toString=p(function(){return t(this)&&l(this).source||s(this)},"toString"),Av.exports}var pv,vS;function po(){if(vS)return pv;vS=1;var n=en(),e=ga(),t=mS(),r=j1();return pv=function(i,A,s,a){a||(a={});var o=a.enumerable,l=a.name!==void 0?a.name:A;if(n(s)&&t(s,l,a),a.global)o?i[A]=s:r(A,s);else{try{a.unsafe?i[A]&&(o=!0):delete i[A]}catch{}o?i[A]=s:e.f(i,A,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return i},pv}var gv={},mv,wS;function ZK(){if(wS)return mv;wS=1;var n=Math.ceil,e=Math.floor;return mv=Math.trunc||function(r){var i=+r;return(i>0?e:n)(i)},mv}var vv,yS;function zh(){if(yS)return vv;yS=1;var n=ZK();return vv=function(e){var t=+e;return t!==t||t===0?0:n(t)},vv}var wv,bS;function eV(){if(bS)return wv;bS=1;var n=zh(),e=Math.max,t=Math.min;return wv=function(r,i){var A=n(r);return A<0?e(A+i,0):t(A,i)},wv}var yv,BS;function El(){if(BS)return yv;BS=1;var n=zh(),e=Math.min;return yv=function(t){var r=n(t);return r>0?e(r,9007199254740991):0},yv}var bv,CS;function Bv(){if(CS)return bv;CS=1;var n=El();return bv=function(e){return n(e.length)},bv}var Cv,ES;function xS(){if(ES)return Cv;ES=1;var n=Zu(),e=eV(),t=Bv(),r=function(i){return function(A,s,a){var o=n(A),l=t(o);if(l===0)return!i&&-1;var u=e(a,l),f;if(i&&s!==s){for(;l>u;)if(f=o[u++],f!==f)return!0}else for(;l>u;u++)if((i||u in o)&&o[u]===s)return i||u||0;return!i&&-1}};return Cv={includes:r(!0),indexOf:r(!1)},Cv}var Ev,SS;function FS(){if(SS)return Ev;SS=1;var n=Hr(),e=SA(),t=Zu(),r=xS().indexOf,i=hv(),A=n([].push);return Ev=function(s,a){var o=t(s),l=0,u=[],f;for(f in o)!e(i,f)&&e(o,f)&&A(u,f);for(;a.length>l;)e(o,f=a[l++])&&(~r(u,f)||A(u,f));return u},Ev}var xv,_S;function Sv(){return _S||(_S=1,xv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),xv}var TS;function tV(){if(TS)return gv;TS=1;var n=FS(),e=Sv(),t=e.concat("length","prototype");return gv.f=Object.getOwnPropertyNames||function(i){return n(i,t)},gv}var Fv={},IS;function rV(){return IS||(IS=1,Fv.f=Object.getOwnPropertySymbols),Fv}var _v,US;function nV(){if(US)return _v;US=1;var n=ho(),e=Hr(),t=tV(),r=rV(),i=si(),A=e([].concat);return _v=n("Reflect","ownKeys")||function(a){var o=t.f(i(a)),l=r.f;return l?A(o,l(a)):o},_v}var Tv,NS;function iV(){if(NS)return Tv;NS=1;var n=SA(),e=nV(),t=Kh(),r=ga();return Tv=function(i,A,s){for(var a=e(A),o=r.f,l=t.f,u=0;u<a.length;u++){var f=a[u];!n(i,f)&&!(s&&n(s,f))&&o(i,f,l(A,f))}},Tv}var Iv,LS;function OS(){if(LS)return Iv;LS=1;var n=Mr(),e=en(),t=/#|\.prototype\./,r=function(o,l){var u=A[i(o)];return u===a?!0:u===s?!1:e(l)?n(l):!!l},i=r.normalize=function(o){return String(o).replace(t,".").toLowerCase()},A=r.data={},s=r.NATIVE="N",a=r.POLYFILL="P";return Iv=r,Iv}var Uv,QS;function ai(){if(QS)return Uv;QS=1;var n=Lr(),e=Kh().f,t=tc(),r=po(),i=j1(),A=iV(),s=OS();return Uv=function(a,o){var l=a.target,u=a.global,f=a.stat,h,c,m,g,w,p;if(u?c=n:f?c=n[l]||i(l,{}):c=n[l]&&n[l].prototype,c)for(m in o){if(w=o[m],a.dontCallGetSet?(p=e(c,m),g=p&&p.value):g=c[m],h=s(u?m:l+(f?".":"#")+m,a.forced),!h&&g!==void 0){if(typeof w==typeof g)continue;A(w,g)}(a.sham||g&&g.sham)&&t(w,"sham",!0),r(c,m,w,a)}},Uv}var Nv,RS;function PS(){if(RS)return Nv;RS=1;var n=Lr(),e=ec(),t=fo(),r=function(i){return e.slice(0,i.length)===i};return Nv=function(){return r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":n.Bun&&typeof Bun.version=="string"?"BUN":n.Deno&&typeof Deno.version=="object"?"DENO":t(n.process)==="process"?"NODE":n.window&&n.document?"BROWSER":"REST"}(),Nv}var Lv,kS;function Wh(){if(kS)return Lv;kS=1;var n=PS();return Lv=n==="NODE",Lv}var Ov,DS;function AV(){if(DS)return Ov;DS=1;var n=Lr();return Ov=n,Ov}var Qv,MS;function sV(){if(MS)return Qv;MS=1;var n=Hr(),e=xs();return Qv=function(t,r,i){try{return n(e(Object.getOwnPropertyDescriptor(t,r)[i]))}catch{}},Qv}var Rv,HS;function aV(){if(HS)return Rv;HS=1;var n=gi();return Rv=function(e){return n(e)||e===null},Rv}var Pv,qS;function oV(){if(qS)return Pv;qS=1;var n=aV(),e=String,t=TypeError;return Pv=function(r){if(n(r))return r;throw new t("Can't set "+e(r)+" as a prototype")},Pv}var kv,jS;function KS(){if(jS)return kv;jS=1;var n=sV(),e=gi(),t=xA(),r=oV();return kv=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,A={},s;try{s=n(Object.prototype,"__proto__","set"),s(A,[]),i=A instanceof Array}catch{}return function(o,l){return t(o),r(l),e(o)&&(i?s(o,l):o.__proto__=l),o}}():void 0),kv}var Dv,VS;function Xh(){if(VS)return Dv;VS=1;var n=ga().f,e=SA(),t=yn(),r=t("toStringTag");return Dv=function(i,A,s){i&&!s&&(i=i.prototype),i&&!e(i,r)&&n(i,r,{configurable:!0,value:A})},Dv}var Mv,GS;function lV(){if(GS)return Mv;GS=1;var n=mS(),e=ga();return Mv=function(t,r,i){return i.get&&n(i.get,r,{getter:!0}),i.set&&n(i.set,r,{setter:!0}),e.f(t,r,i)},Mv}var Hv,zS;function uV(){if(zS)return Hv;zS=1;var n=ho(),e=lV(),t=yn(),r=EA(),i=t("species");return Hv=function(A){var s=n(A);r&&s&&!s[i]&&e(s,i,{configurable:!0,get:function(){return this}})},Hv}var qv,WS;function cV(){if(WS)return qv;WS=1;var n=Mh(),e=TypeError;return qv=function(t,r){if(n(r,t))return t;throw new e("Incorrect invocation")},qv}var jv,XS;function fV(){if(XS)return jv;XS=1;var n=yn(),e=n("toStringTag"),t={};return t[e]="z",jv=String(t)==="[object z]",jv}var Kv,YS;function Vv(){if(YS)return Kv;YS=1;var n=fV(),e=en(),t=fo(),r=yn(),i=r("toStringTag"),A=Object,s=t(function(){return arguments}())==="Arguments",a=function(o,l){try{return o[l]}catch{}};return Kv=n?t:function(o){var l,u,f;return o===void 0?"Undefined":o===null?"Null":typeof(u=a(l=A(o),i))=="string"?u:s?t(l):(f=t(l))==="Object"&&e(l.callee)?"Arguments":f},Kv}var Gv,$S;function hV(){if($S)return Gv;$S=1;var n=Hr(),e=Mr(),t=en(),r=Vv(),i=ho(),A=ov(),s=function(){},a=i("Reflect","construct"),o=/^\s*(?:class|function)\b/,l=n(o.exec),u=!o.test(s),f=function(m){if(!t(m))return!1;try{return a(s,[],m),!0}catch{return!1}},h=function(m){if(!t(m))return!1;switch(r(m)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!l(o,A(m))}catch{return!0}};return h.sham=!0,Gv=!a||e(function(){var c;return f(f.call)||!f(Object)||!f(function(){c=!0})||c})?h:f,Gv}var zv,JS;function dV(){if(JS)return zv;JS=1;var n=hV(),e=Hh(),t=TypeError;return zv=function(r){if(n(r))return r;throw new t(e(r)+" is not a constructor")},zv}var Wv,ZS;function eF(){if(ZS)return Wv;ZS=1;var n=si(),e=dV(),t=Dh(),r=yn(),i=r("species");return Wv=function(A,s){var a=n(A).constructor,o;return a===void 0||t(o=n(a)[i])?s:e(o)},Wv}var Xv,tF;function rF(){if(tF)return Xv;tF=1;var n=kh(),e=Function.prototype,t=e.apply,r=e.call;return Xv=typeof Reflect=="object"&&Reflect.apply||(n?r.bind(t):function(){return r.apply(t,arguments)}),Xv}var Yv,nF;function Yh(){if(nF)return Yv;nF=1;var n=fo(),e=Hr();return Yv=function(t){if(n(t)==="Function")return e(t)},Yv}var $v,iF;function Jv(){if(iF)return $v;iF=1;var n=Yh(),e=xs(),t=kh(),r=n(n.bind);return $v=function(i,A){return e(i),A===void 0?i:t?r(i,A):function(){return i.apply(A,arguments)}},$v}var Zv,AF;function sF(){if(AF)return Zv;AF=1;var n=ho();return Zv=n("document","documentElement"),Zv}var ew,aF;function pV(){if(aF)return ew;aF=1;var n=Hr();return ew=n([].slice),ew}var tw,oF;function gV(){if(oF)return tw;oF=1;var n=TypeError;return tw=function(e,t){if(e<t)throw new n("Not enough arguments");return e},tw}var rw,lF;function uF(){if(lF)return rw;lF=1;var n=ec();return rw=/(?:ipad|iphone|ipod).*applewebkit/i.test(n),rw}var nw,cF;function fF(){if(cF)return nw;cF=1;var n=Lr(),e=rF(),t=Jv(),r=en(),i=SA(),A=Mr(),s=sF(),a=pV(),o=jh(),l=gV(),u=uF(),f=Wh(),h=n.setImmediate,c=n.clearImmediate,m=n.process,g=n.Dispatch,w=n.Function,p=n.MessageChannel,v=n.String,b=0,B={},T="onreadystatechange",M,D,j,R;A(function(){M=n.location});var ae=function(C){if(i(B,C)){var z=B[C];delete B[C],z()}},L=function(C){return function(){ae(C)}},x=function(C){ae(C.data)},Q=function(C){n.postMessage(v(C),M.protocol+"//"+M.host)};return(!h||!c)&&(h=function(z){l(arguments.length,1);var Y=r(z)?z:w(z),V=a(arguments,1);return B[++b]=function(){e(Y,void 0,V)},D(b),b},c=function(z){delete B[z]},f?D=function(C){m.nextTick(L(C))}:g&&g.now?D=function(C){g.now(L(C))}:p&&!u?(j=new p,R=j.port2,j.port1.onmessage=x,D=t(R.postMessage,R)):n.addEventListener&&r(n.postMessage)&&!n.importScripts&&M&&M.protocol!=="file:"&&!A(Q)?(D=Q,n.addEventListener("message",x,!1)):T in o("script")?D=function(C){s.appendChild(o("script"))[T]=function(){s.removeChild(this),ae(C)}}:D=function(C){setTimeout(L(C),0)}),nw={set:h,clear:c},nw}var iw,hF;function mV(){if(hF)return iw;hF=1;var n=Lr(),e=EA(),t=Object.getOwnPropertyDescriptor;return iw=function(r){if(!e)return n[r];var i=t(n,r);return i&&i.value},iw}var Aw,dF;function pF(){if(dF)return Aw;dF=1;var n=function(){this.head=null,this.tail=null};return n.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return t===null&&(this.tail=null),e.item}}},Aw=n,Aw}var sw,gF;function vV(){if(gF)return sw;gF=1;var n=ec();return sw=/ipad|iphone|ipod/i.test(n)&&typeof Pebble<"u",sw}var aw,mF;function wV(){if(mF)return aw;mF=1;var n=ec();return aw=/web0s(?!.*chrome)/i.test(n),aw}var ow,vF;function yV(){if(vF)return ow;vF=1;var n=Lr(),e=mV(),t=Jv(),r=fF().set,i=pF(),A=uF(),s=vV(),a=wV(),o=Wh(),l=n.MutationObserver||n.WebKitMutationObserver,u=n.document,f=n.process,h=n.Promise,c=e("queueMicrotask"),m,g,w,p,v;if(!c){var b=new i,B=function(){var T,M;for(o&&(T=f.domain)&&T.exit();M=b.get();)try{M()}catch(D){throw b.head&&m(),D}T&&T.enter()};!A&&!o&&!a&&l&&u?(g=!0,w=u.createTextNode(""),new l(B).observe(w,{characterData:!0}),m=function(){w.data=g=!g}):!s&&h&&h.resolve?(p=h.resolve(void 0),p.constructor=h,v=t(p.then,p),m=function(){v(B)}):o?m=function(){f.nextTick(B)}:(r=t(r,n),m=function(){r(B)}),c=function(T){b.head||m(),b.add(T)}}return ow=c,ow}var lw,wF;function bV(){return wF||(wF=1,lw=function(n,e){try{arguments.length===1?console.error(n):console.error(n,e)}catch{}}),lw}var uw,yF;function cw(){return yF||(yF=1,uw=function(n){try{return{error:!1,value:n()}}catch(e){return{error:!0,value:e}}}),uw}var fw,bF;function rc(){if(bF)return fw;bF=1;var n=Lr();return fw=n.Promise,fw}var hw,BF;function nc(){if(BF)return hw;BF=1;var n=Lr(),e=rc(),t=en(),r=OS(),i=ov(),A=yn(),s=PS(),a=$A(),o=N1(),l=e&&e.prototype,u=A("species"),f=!1,h=t(n.PromiseRejectionEvent),c=r("Promise",function(){var m=i(e),g=m!==String(e);if(!g&&o===66||a&&!(l.catch&&l.finally))return!0;if(!o||o<51||!/native code/.test(m)){var w=new e(function(b){b(1)}),p=function(b){b(function(){},function(){})},v=w.constructor={};if(v[u]=p,f=w.then(function(){})instanceof p,!f)return!0}return!g&&(s==="BROWSER"||s==="DENO")&&!h});return hw={CONSTRUCTOR:c,REJECTION_EVENT:h,SUBCLASSING:f},hw}var dw={},CF;function ic(){if(CF)return dw;CF=1;var n=xs(),e=TypeError,t=function(r){var i,A;this.promise=new r(function(s,a){if(i!==void 0||A!==void 0)throw new e("Bad Promise constructor");i=s,A=a}),this.resolve=n(i),this.reject=n(A)};return dw.f=function(r){return new t(r)},dw}var EF;function BV(){if(EF)return f3;EF=1;var n=ai(),e=$A(),t=Wh(),r=Lr(),i=AV(),A=Nn(),s=po(),a=KS(),o=Xh(),l=uV(),u=xs(),f=en(),h=gi(),c=cV(),m=eF(),g=fF().set,w=yV(),p=bV(),v=cw(),b=pF(),B=Gh(),T=rc(),M=nc(),D=ic(),j="Promise",R=M.CONSTRUCTOR,ae=M.REJECTION_EVENT,L=M.SUBCLASSING,x=B.getterFor(j),Q=B.set,C=T&&T.prototype,z=T,Y=C,V=r.TypeError,ie=r.document,Ae=r.process,$=D.f,te=$,F=!!(ie&&ie.createEvent&&r.dispatchEvent),H="unhandledrejection",G="rejectionhandled",X=0,J=1,O=2,U=1,ee=2,re,W,Z,me,k=function(ye){var Be;return h(ye)&&f(Be=ye.then)?Be:!1},pe=function(ye,Be){var Ue=Be.value,Oe=Be.state===J,Me=Oe?ye.ok:ye.fail,$e=ye.resolve,tt=ye.reject,Ve=ye.domain,Tt,st,kt;try{Me?(Oe||(Be.rejection===ee&&oe(Be),Be.rejection=U),Me===!0?Tt=Ue:(Ve&&Ve.enter(),Tt=Me(Ue),Ve&&(Ve.exit(),kt=!0)),Tt===ye.promise?tt(new V("Promise-chain cycle")):(st=k(Tt))?A(st,Tt,$e,tt):$e(Tt)):tt(Ue)}catch(yt){Ve&&!kt&&Ve.exit(),tt(yt)}},I=function(ye,Be){ye.notified||(ye.notified=!0,w(function(){for(var Ue=ye.reactions,Oe;Oe=Ue.get();)pe(Oe,ye);ye.notified=!1,Be&&!ye.rejection&&S(ye)}))},E=function(ye,Be,Ue){var Oe,Me;F?(Oe=ie.createEvent("Event"),Oe.promise=Be,Oe.reason=Ue,Oe.initEvent(ye,!1,!0),r.dispatchEvent(Oe)):Oe={promise:Be,reason:Ue},!ae&&(Me=r["on"+ye])?Me(Oe):ye===H&&p("Unhandled promise rejection",Ue)},S=function(ye){A(g,r,function(){var Be=ye.facade,Ue=ye.value,Oe=P(ye),Me;if(Oe&&(Me=v(function(){t?Ae.emit("unhandledRejection",Ue,Be):E(H,Be,Ue)}),ye.rejection=t||P(ye)?ee:U,Me.error))throw Me.value})},P=function(ye){return ye.rejection!==U&&!ye.parent},oe=function(ye){A(g,r,function(){var Be=ye.facade;t?Ae.emit("rejectionHandled",Be):E(G,Be,ye.value)})},ge=function(ye,Be,Ue){return function(Oe){ye(Be,Oe,Ue)}},ce=function(ye,Be,Ue){ye.done||(ye.done=!0,Ue&&(ye=Ue),ye.value=Be,ye.state=O,I(ye,!0))},Ee=function(ye,Be,Ue){if(!ye.done){ye.done=!0,Ue&&(ye=Ue);try{if(ye.facade===Be)throw new V("Promise can't be resolved itself");var Oe=k(Be);Oe?w(function(){var Me={done:!1};try{A(Oe,Be,ge(Ee,Me,ye),ge(ce,Me,ye))}catch($e){ce(Me,$e,ye)}}):(ye.value=Be,ye.state=J,I(ye,!1))}catch(Me){ce({done:!1},Me,ye)}}};if(R&&(z=function(Be){c(this,Y),u(Be),A(re,this);var Ue=x(this);try{Be(ge(Ee,Ue),ge(ce,Ue))}catch(Oe){ce(Ue,Oe)}},Y=z.prototype,re=function(Be){Q(this,{type:j,done:!1,notified:!1,parent:!1,reactions:new b,rejection:!1,state:X,value:null})},re.prototype=s(Y,"then",function(Be,Ue){var Oe=x(this),Me=$(m(this,z));return Oe.parent=!0,Me.ok=f(Be)?Be:!0,Me.fail=f(Ue)&&Ue,Me.domain=t?Ae.domain:void 0,Oe.state===X?Oe.reactions.add(Me):w(function(){pe(Me,Oe)}),Me.promise}),W=function(){var ye=new re,Be=x(ye);this.promise=ye,this.resolve=ge(Ee,Be),this.reject=ge(ce,Be)},D.f=$=function(ye){return ye===z||ye===Z?new W(ye):te(ye)},!e&&f(T)&&C!==Object.prototype)){me=C.then,L||s(C,"then",function(Be,Ue){var Oe=this;return new z(function(Me,$e){A(me,Oe,Me,$e)}).then(Be,Ue)},{unsafe:!0});try{delete C.constructor}catch{}a&&a(C,Y)}return n({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:z}),Z=i.Promise,o(z,j,!1,!0),l(j),f3}var xF={},pw,SF;function Ac(){return SF||(SF=1,pw={}),pw}var gw,FF;function CV(){if(FF)return gw;FF=1;var n=yn(),e=Ac(),t=n("iterator"),r=Array.prototype;return gw=function(i){return i!==void 0&&(e.Array===i||r[t]===i)},gw}var mw,_F;function TF(){if(_F)return mw;_F=1;var n=Vv(),e=Cl(),t=Dh(),r=Ac(),i=yn(),A=i("iterator");return mw=function(s){if(!t(s))return e(s,A)||e(s,"@@iterator")||r[n(s)]},mw}var vw,IF;function EV(){if(IF)return vw;IF=1;var n=Nn(),e=xs(),t=si(),r=Hh(),i=TF(),A=TypeError;return vw=function(s,a){var o=arguments.length<2?i(s):a;if(e(o))return t(n(o,s));throw new A(r(s)+" is not iterable")},vw}var ww,UF;function xV(){if(UF)return ww;UF=1;var n=Nn(),e=si(),t=Cl();return ww=function(r,i,A){var s,a;e(r);try{if(s=t(r,"return"),!s){if(i==="throw")throw A;return A}s=n(s,r)}catch(o){a=!0,s=o}if(i==="throw")throw A;if(a)throw s;return e(s),A},ww}var yw,NF;function LF(){if(NF)return yw;NF=1;var n=Jv(),e=Nn(),t=si(),r=Hh(),i=CV(),A=Bv(),s=Mh(),a=EV(),o=TF(),l=xV(),u=TypeError,f=function(c,m){this.stopped=c,this.result=m},h=f.prototype;return yw=function(c,m,g){var w=g&&g.that,p=!!(g&&g.AS_ENTRIES),v=!!(g&&g.IS_RECORD),b=!!(g&&g.IS_ITERATOR),B=!!(g&&g.INTERRUPTED),T=n(m,w),M,D,j,R,ae,L,x,Q=function(z){return M&&l(M,"normal"),new f(!0,z)},C=function(z){return p?(t(z),B?T(z[0],z[1],Q):T(z[0],z[1])):B?T(z,Q):T(z)};if(v)M=c.iterator;else if(b)M=c;else{if(D=o(c),!D)throw new u(r(c)+" is not iterable");if(i(D)){for(j=0,R=A(c);R>j;j++)if(ae=C(c[j]),ae&&s(h,ae))return ae;return new f(!1)}M=a(c,D)}for(L=v?c.next:M.next;!(x=e(L,M)).done;){try{ae=C(x.value)}catch(z){l(M,"throw",z)}if(typeof ae=="object"&&ae&&s(h,ae))return ae}return new f(!1)},yw}var bw,OF;function SV(){if(OF)return bw;OF=1;var n=yn(),e=n("iterator"),t=!1;try{var r=0,i={next:function(){return{done:!!r++}},return:function(){t=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}return bw=function(A,s){try{if(!s&&!t)return!1}catch{return!1}var a=!1;try{var o={};o[e]=function(){return{next:function(){return{done:a=!0}}}},A(o)}catch{}return a},bw}var Bw,QF;function RF(){if(QF)return Bw;QF=1;var n=rc(),e=SV(),t=nc().CONSTRUCTOR;return Bw=t||!e(function(r){n.all(r).then(void 0,function(){})}),Bw}var PF;function FV(){if(PF)return xF;PF=1;var n=ai(),e=Nn(),t=xs(),r=ic(),i=cw(),A=LF(),s=RF();return n({target:"Promise",stat:!0,forced:s},{all:function(o){var l=this,u=r.f(l),f=u.resolve,h=u.reject,c=i(function(){var m=t(l.resolve),g=[],w=0,p=1;A(o,function(v){var b=w++,B=!1;p++,e(m,l,v).then(function(T){B||(B=!0,g[b]=T,--p||f(g))},h)}),--p||f(g)});return c.error&&h(c.value),u.promise}}),xF}var kF={},DF;function _V(){if(DF)return kF;DF=1;var n=ai(),e=$A(),t=nc().CONSTRUCTOR,r=rc(),i=ho(),A=en(),s=po(),a=r&&r.prototype;if(n({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(l){return this.then(void 0,l)}}),!e&&A(r)){var o=i("Promise").prototype.catch;a.catch!==o&&s(a,"catch",o,{unsafe:!0})}return kF}var MF={},HF;function TV(){if(HF)return MF;HF=1;var n=ai(),e=Nn(),t=xs(),r=ic(),i=cw(),A=LF(),s=RF();return n({target:"Promise",stat:!0,forced:s},{race:function(o){var l=this,u=r.f(l),f=u.reject,h=i(function(){var c=t(l.resolve);A(o,function(m){e(c,l,m).then(u.resolve,f)})});return h.error&&f(h.value),u.promise}}),MF}var qF={},jF;function IV(){if(jF)return qF;jF=1;var n=ai(),e=ic(),t=nc().CONSTRUCTOR;return n({target:"Promise",stat:!0,forced:t},{reject:function(i){var A=e.f(this),s=A.reject;return s(i),A.promise}}),qF}var KF={},Cw,VF;function UV(){if(VF)return Cw;VF=1;var n=si(),e=gi(),t=ic();return Cw=function(r,i){if(n(r),e(i)&&i.constructor===r)return i;var A=t.f(r),s=A.resolve;return s(i),A.promise},Cw}var GF;function NV(){if(GF)return KF;GF=1;var n=ai(),e=ho(),t=$A(),r=rc(),i=nc().CONSTRUCTOR,A=UV(),s=e("Promise"),a=t&&!i;return n({target:"Promise",stat:!0,forced:t||i},{resolve:function(l){return A(a&&this===s?r:this,l)}}),KF}var zF;function LV(){return zF||(zF=1,BV(),FV(),_V(),TV(),IV(),NV()),c3}LV();function WF(n,e,t,r,i,A,s){try{var a=n[A](s),o=a.value}catch(l){return void t(l)}a.done?e(o):Promise.resolve(o).then(r,i)}function Ss(n){return function(){var e=this,t=arguments;return new Promise(function(r,i){var A=n.apply(e,t);function s(o){WF(A,r,i,s,a,"next",o)}function a(o){WF(A,r,i,s,a,"throw",o)}s(void 0)})}}var XF={},YF={},Ew,$F;function JA(){if($F)return Ew;$F=1;var n=Vv(),e=String;return Ew=function(t){if(n(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(t)},Ew}var xw,JF;function ZF(){if(JF)return xw;JF=1;var n=si();return xw=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},xw}var Sw,e_;function t_(){if(e_)return Sw;e_=1;var n=Mr(),e=Lr(),t=e.RegExp,r=n(function(){var s=t("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),i=r||n(function(){return!t("a","y").sticky}),A=r||n(function(){var s=t("^r","gy");return s.lastIndex=2,s.exec("str")!==null});return Sw={BROKEN_CARET:A,MISSED_STICKY:i,UNSUPPORTED_Y:r},Sw}var Fw={},_w,r_;function OV(){if(r_)return _w;r_=1;var n=FS(),e=Sv();return _w=Object.keys||function(r){return n(r,e)},_w}var n_;function QV(){if(n_)return Fw;n_=1;var n=EA(),e=sS(),t=ga(),r=si(),i=Zu(),A=OV();return Fw.f=n&&!e?Object.defineProperties:function(a,o){r(a);for(var l=i(o),u=A(o),f=u.length,h=0,c;f>h;)t.f(a,c=u[h++],l[c]);return a},Fw}var Tw,i_;function $h(){if(i_)return Tw;i_=1;var n=si(),e=QV(),t=Sv(),r=hv(),i=sF(),A=jh(),s=cv(),a=">",o="<",l="prototype",u="script",f=s("IE_PROTO"),h=function(){},c=function(v){return o+u+a+v+o+"/"+u+a},m=function(v){v.write(c("")),v.close();var b=v.parentWindow.Object;return v=null,b},g=function(){var v=A("iframe"),b="java"+u+":",B;return v.style.display="none",i.appendChild(v),v.src=String(b),B=v.contentWindow.document,B.open(),B.write(c("document.F=Object")),B.close(),B.F},w,p=function(){try{w=new ActiveXObject("htmlfile")}catch{}p=typeof document<"u"?document.domain&&w?m(w):g():m(w);for(var v=t.length;v--;)delete p[l][t[v]];return p()};return r[f]=!0,Tw=Object.create||function(b,B){var T;return b!==null?(h[l]=n(b),T=new h,h[l]=null,T[f]=b):T=p(),B===void 0?T:e.f(T,B)},Tw}var Iw,A_;function RV(){if(A_)return Iw;A_=1;var n=Mr(),e=Lr(),t=e.RegExp;return Iw=n(function(){var r=t(".","s");return!(r.dotAll&&r.test(`
`)&&r.flags==="s")}),Iw}var Uw,s_;function PV(){if(s_)return Uw;s_=1;var n=Mr(),e=Lr(),t=e.RegExp;return Uw=n(function(){var r=t("(?<a>b)","g");return r.exec("b").groups.a!=="b"||"b".replace(r,"$<a>c")!=="bc"}),Uw}var Nw,a_;function Lw(){if(a_)return Nw;a_=1;var n=Nn(),e=Hr(),t=JA(),r=ZF(),i=t_(),A=G1(),s=$h(),a=Gh().get,o=RV(),l=PV(),u=A("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,h=f,c=e("".charAt),m=e("".indexOf),g=e("".replace),w=e("".slice),p=function(){var T=/a/,M=/b*/g;return n(f,T,"a"),n(f,M,"a"),T.lastIndex!==0||M.lastIndex!==0}(),v=i.BROKEN_CARET,b=/()??/.exec("")[1]!==void 0,B=p||b||v||o||l;return B&&(h=function(M){var D=this,j=a(D),R=t(M),ae=j.raw,L,x,Q,C,z,Y,V;if(ae)return ae.lastIndex=D.lastIndex,L=n(h,ae,R),D.lastIndex=ae.lastIndex,L;var ie=j.groups,Ae=v&&D.sticky,$=n(r,D),te=D.source,F=0,H=R;if(Ae&&($=g($,"y",""),m($,"g")===-1&&($+="g"),H=w(R,D.lastIndex),D.lastIndex>0&&(!D.multiline||D.multiline&&c(R,D.lastIndex-1)!==`
`)&&(te="(?: "+te+")",H=" "+H,F++),x=new RegExp("^(?:"+te+")",$)),b&&(x=new RegExp("^"+te+"$(?!\\s)",$)),p&&(Q=D.lastIndex),C=n(f,Ae?x:D,H),Ae?C?(C.input=w(C.input,F),C[0]=w(C[0],F),C.index=D.lastIndex,D.lastIndex+=C[0].length):D.lastIndex=0:p&&C&&(D.lastIndex=D.global?C.index+C[0].length:Q),b&&C&&C.length>1&&n(u,C[0],x,function(){for(z=1;z<arguments.length-2;z++)arguments[z]===void 0&&(C[z]=void 0)}),C&&ie)for(C.groups=Y=s(null),z=0;z<ie.length;z++)V=ie[z],Y[V[0]]=C[V[1]];return C}),Nw=h,Nw}var o_;function kV(){if(o_)return YF;o_=1;var n=ai(),e=Lw();return n({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),YF}var Ow,l_;function Qw(){if(l_)return Ow;l_=1,kV();var n=Nn(),e=po(),t=Lw(),r=Mr(),i=yn(),A=tc(),s=i("species"),a=RegExp.prototype;return Ow=function(o,l,u,f){var h=i(o),c=!r(function(){var p={};return p[h]=function(){return 7},""[o](p)!==7}),m=c&&!r(function(){var p=!1,v=/a/;return o==="split"&&(v={},v.constructor={},v.constructor[s]=function(){return v},v.flags="",v[h]=/./[h]),v.exec=function(){return p=!0,null},v[h](""),!p});if(!c||!m||u){var g=/./[h],w=l(h,""[o],function(p,v,b,B,T){var M=v.exec;return M===t||M===a.exec?c&&!T?{done:!0,value:n(g,v,b,B)}:{done:!0,value:n(p,b,v,B)}:{done:!1}});e(String.prototype,o,w[0]),e(a,h,w[1])}f&&A(a[h],"sham",!0)},Ow}var Rw,u_;function DV(){if(u_)return Rw;u_=1;var n=Hr(),e=zh(),t=JA(),r=xA(),i=n("".charAt),A=n("".charCodeAt),s=n("".slice),a=function(o){return function(l,u){var f=t(r(l)),h=e(u),c=f.length,m,g;return h<0||h>=c?o?"":void 0:(m=A(f,h),m<55296||m>56319||h+1===c||(g=A(f,h+1))<56320||g>57343?o?i(f,h):m:o?s(f,h,h+2):(m-55296<<10)+(g-56320)+65536)}};return Rw={codeAt:a(!1),charAt:a(!0)},Rw}var Pw,c_;function kw(){if(c_)return Pw;c_=1;var n=DV().charAt;return Pw=function(e,t,r){return t+(r?n(e,t).length:1)},Pw}var Dw,f_;function MV(){if(f_)return Dw;f_=1;var n=Lr(),e=Mr(),t=n.RegExp,r=!e(function(){var i=!0;try{t(".","d")}catch{i=!1}var A={},s="",a=i?"dgimsy":"gimsy",o=function(h,c){Object.defineProperty(A,h,{get:function(){return s+=c,!0}})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};i&&(l.hasIndices="d");for(var u in l)o(u,l[u]);var f=Object.getOwnPropertyDescriptor(t.prototype,"flags").get.call(A);return f!==a||s!==a});return Dw={correct:r},Dw}var Mw,h_;function Hw(){if(h_)return Mw;h_=1;var n=Nn(),e=SA(),t=Mh(),r=MV(),i=ZF(),A=RegExp.prototype;return Mw=r.correct?function(s){return s.flags}:function(s){return!r.correct&&t(A,s)&&!e(s,"flags")?n(i,s):s.flags},Mw}var qw,d_;function jw(){if(d_)return qw;d_=1;var n=Nn(),e=si(),t=en(),r=fo(),i=Lw(),A=TypeError;return qw=function(s,a){var o=s.exec;if(t(o)){var l=n(o,s,a);return l!==null&&e(l),l}if(r(s)==="RegExp")return n(i,s,a);throw new A("RegExp#exec called on incompatible receiver")},qw}var p_;function HV(){if(p_)return XF;p_=1;var n=Nn(),e=Hr(),t=Qw(),r=si(),i=gi(),A=El(),s=JA(),a=xA(),o=Cl(),l=kw(),u=Hw(),f=jw(),h=e("".indexOf);return t("match",function(c,m,g){return[function(p){var v=a(this),b=i(p)?o(p,c):void 0;return b?n(b,p,v):new RegExp(p)[c](s(v))},function(w){var p=r(this),v=s(w),b=g(m,p,v);if(b.done)return b.value;var B=s(u(p));if(h(B,"g")===-1)return f(p,v);var T=h(B,"u")!==-1;p.lastIndex=0;for(var M=[],D=0,j;(j=f(p,v))!==null;){var R=s(j[0]);M[D]=R,R===""&&(p.lastIndex=l(v,A(p.lastIndex),T)),D++}return D===0?null:M}]}),XF}HV();var g_={},Kw,m_;function qV(){if(m_)return Kw;m_=1;var n=Hr(),e=qh(),t=Math.floor,r=n("".charAt),i=n("".replace),A=n("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return Kw=function(o,l,u,f,h,c){var m=u+o.length,g=f.length,w=a;return h!==void 0&&(h=e(h),w=s),i(c,w,function(p,v){var b;switch(r(v,0)){case"$":return"$";case"&":return o;case"`":return A(l,0,u);case"'":return A(l,m);case"<":b=h[A(v,1,-1)];break;default:var B=+v;if(B===0)return p;if(B>g){var T=t(B/10);return T===0?p:T<=g?f[T-1]===void 0?r(v,1):f[T-1]+r(v,1):p}b=f[B-1]}return b===void 0?"":b})},Kw}var v_;function jV(){if(v_)return g_;v_=1;var n=rF(),e=Nn(),t=Hr(),r=Qw(),i=Mr(),A=si(),s=en(),a=gi(),o=zh(),l=El(),u=JA(),f=xA(),h=kw(),c=Cl(),m=qV(),g=Hw(),w=jw(),p=yn(),v=p("replace"),b=Math.max,B=Math.min,T=t([].concat),M=t([].push),D=t("".indexOf),j=t("".slice),R=function(Q){return Q===void 0?Q:String(Q)},ae=function(){return"a".replace(/./,"$0")==="$0"}(),L=function(){return/./[v]?/./[v]("a","$0")==="":!1}(),x=!i(function(){var Q=/./;return Q.exec=function(){var C=[];return C.groups={a:"7"},C},"".replace(Q,"$<a>")!=="7"});return r("replace",function(Q,C,z){var Y=L?"$":"$0";return[function(ie,Ae){var $=f(this),te=a(ie)?c(ie,v):void 0;return te?e(te,ie,$,Ae):e(C,u($),ie,Ae)},function(V,ie){var Ae=A(this),$=u(V);if(typeof ie=="string"&&D(ie,Y)===-1&&D(ie,"$<")===-1){var te=z(C,Ae,$,ie);if(te.done)return te.value}var F=s(ie);F||(ie=u(ie));var H=u(g(Ae)),G=D(H,"g")!==-1,X;G&&(X=D(H,"u")!==-1,Ae.lastIndex=0);for(var J=[],O;O=w(Ae,$),!(O===null||(M(J,O),!G));){var U=u(O[0]);U===""&&(Ae.lastIndex=h($,l(Ae.lastIndex),X))}for(var ee="",re=0,W=0;W<J.length;W++){O=J[W];for(var Z=u(O[0]),me=b(B(o(O.index),$.length),0),k=[],pe,I=1;I<O.length;I++)M(k,R(O[I]));var E=O.groups;if(F){var S=T([Z],k,me,$);E!==void 0&&M(S,E),pe=u(n(ie,void 0,S))}else pe=m(Z,$,me,k,E,ie);me>=re&&(ee+=j($,re,me)+pe,re=me+Z.length)}return ee+j($,re)}]},!x||!ae||L),g_}jV();var w_={},Vw,y_;function KV(){if(y_)return Vw;y_=1;var n=gi(),e=fo(),t=yn(),r=t("match");return Vw=function(i){var A;return n(i)&&((A=i[r])!==void 0?!!A:e(i)==="RegExp")},Vw}var Gw,b_;function zw(){if(b_)return Gw;b_=1;var n=KV(),e=TypeError;return Gw=function(t){if(n(t))throw new e("The method doesn't accept regular expressions");return t},Gw}var Ww,B_;function Xw(){if(B_)return Ww;B_=1;var n=yn(),e=n("match");return Ww=function(t){var r=/./;try{"/./"[t](r)}catch{try{return r[e]=!1,"/./"[t](r)}catch{}}return!1},Ww}var C_;function VV(){if(C_)return w_;C_=1;var n=ai(),e=Yh(),t=Kh().f,r=El(),i=JA(),A=zw(),s=xA(),a=Xw(),o=$A(),l=e("".slice),u=Math.min,f=a("startsWith"),h=!o&&!f&&!!function(){var c=t(String.prototype,"startsWith");return c&&!c.writable}();return n({target:"String",proto:!0,forced:!h&&!f},{startsWith:function(m){var g=i(s(this));A(m);var w=r(u(arguments.length>1?arguments[1]:void 0,g.length)),p=i(m);return l(g,w,w+p.length)===p}}),w_}VV();var Yw,E_;function GV(){if(E_)return Yw;E_=1;var n=yn(),e=$h(),t=ga().f,r=n("unscopables"),i=Array.prototype;return i[r]===void 0&&t(i,r,{configurable:!0,value:e(null)}),Yw=function(A){i[r][A]=!0},Yw}var $w,x_;function zV(){if(x_)return $w;x_=1;var n=Mr();return $w=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),$w}var Jw,S_;function F_(){if(S_)return Jw;S_=1;var n=SA(),e=en(),t=qh(),r=cv(),i=zV(),A=r("IE_PROTO"),s=Object,a=s.prototype;return Jw=i?s.getPrototypeOf:function(o){var l=t(o);if(n(l,A))return l[A];var u=l.constructor;return e(u)&&l instanceof u?u.prototype:l instanceof s?a:null},Jw}var Zw,__;function T_(){if(__)return Zw;__=1;var n=Mr(),e=en(),t=gi(),r=$h(),i=F_(),A=po(),s=yn(),a=$A(),o=s("iterator"),l=!1,u,f,h;[].keys&&(h=[].keys(),"next"in h?(f=i(i(h)),f!==Object.prototype&&(u=f)):l=!0);var c=!t(u)||n(function(){var m={};return u[o].call(m)!==m});return c?u={}:a&&(u=r(u)),e(u[o])||A(u,o,function(){return this}),Zw={IteratorPrototype:u,BUGGY_SAFARI_ITERATORS:l},Zw}var ey,I_;function WV(){if(I_)return ey;I_=1;var n=T_().IteratorPrototype,e=$h(),t=w1(),r=Xh(),i=Ac(),A=function(){return this};return ey=function(s,a,o,l){var u=a+" Iterator";return s.prototype=e(n,{next:t(+!l,o)}),r(s,u,!1,!0),i[u]=A,s},ey}var ty,U_;function XV(){if(U_)return ty;U_=1;var n=ai(),e=Nn(),t=$A(),r=Vh(),i=en(),A=WV(),s=F_(),a=KS(),o=Xh(),l=tc(),u=po(),f=yn(),h=Ac(),c=T_(),m=r.PROPER,g=r.CONFIGURABLE,w=c.IteratorPrototype,p=c.BUGGY_SAFARI_ITERATORS,v=f("iterator"),b="keys",B="values",T="entries",M=function(){return this};return ty=function(D,j,R,ae,L,x,Q){A(R,j,ae);var C=function(G){if(G===L&&Ae)return Ae;if(!p&&G&&G in V)return V[G];switch(G){case b:return function(){return new R(this,G)};case B:return function(){return new R(this,G)};case T:return function(){return new R(this,G)}}return function(){return new R(this)}},z=j+" Iterator",Y=!1,V=D.prototype,ie=V[v]||V["@@iterator"]||L&&V[L],Ae=!p&&ie||C(L),$=j==="Array"&&V.entries||ie,te,F,H;if($&&(te=s($.call(new D)),te!==Object.prototype&&te.next&&(!t&&s(te)!==w&&(a?a(te,w):i(te[v])||u(te,v,M)),o(te,z,!0,!0),t&&(h[z]=M))),m&&L===B&&ie&&ie.name!==B&&(!t&&g?l(V,"name",B):(Y=!0,Ae=function(){return e(ie,this)})),L)if(F={values:C(B),keys:x?Ae:C(b),entries:C(T)},Q)for(H in F)(p||Y||!(H in V))&&u(V,H,F[H]);else n({target:j,proto:!0,forced:p||Y},F);return(!t||Q)&&V[v]!==Ae&&u(V,v,Ae,{name:L}),h[j]=Ae,F},ty}var ry,N_;function YV(){return N_||(N_=1,ry=function(n,e){return{value:n,done:e}}),ry}var ny,L_;function O_(){if(L_)return ny;L_=1;var n=Zu(),e=GV(),t=Ac(),r=Gh(),i=ga().f,A=XV(),s=YV(),a=$A(),o=EA(),l="Array Iterator",u=r.set,f=r.getterFor(l);ny=A(Array,"Array",function(c,m){u(this,{type:l,target:n(c),index:0,kind:m})},function(){var c=f(this),m=c.target,g=c.index++;if(!m||g>=m.length)return c.target=null,s(void 0,!0);switch(c.kind){case"keys":return s(g,!1);case"values":return s(m[g],!1)}return s([g,m[g]],!1)},"values");var h=t.Arguments=t.Array;if(e("keys"),e("values"),e("entries"),!a&&o&&h.name!=="values")try{i(h,"name",{value:"values"})}catch{}return ny}O_();var Q_={},iy,R_;function $V(){return R_||(R_=1,iy={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}),iy}var Ay,P_;function JV(){if(P_)return Ay;P_=1;var n=jh(),e=n("span").classList,t=e&&e.constructor&&e.constructor.prototype;return Ay=t===Object.prototype?void 0:t,Ay}var k_;function ZV(){if(k_)return Q_;k_=1;var n=Lr(),e=$V(),t=JV(),r=O_(),i=tc(),A=Xh(),s=yn(),a=s("iterator"),o=r.values,l=function(f,h){if(f){if(f[a]!==o)try{i(f,a,o)}catch{f[a]=o}if(A(f,h,!0),e[h]){for(var c in r)if(f[c]!==r[c])try{i(f,c,r[c])}catch{f[c]=r[c]}}}};for(var u in e)l(n[u]&&n[u].prototype,u);return l(t,"DOMTokenList"),Q_}ZV();function eG(n,e){if(Yt(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Yt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function tG(n){var e=eG(n,"string");return Yt(e)=="symbol"?e:e+""}function sy(n,e,t){return(e=tG(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var D_={},ay,M_;function rG(){if(M_)return ay;M_=1;var n=xs(),e=qh(),t=C3(),r=Bv(),i=TypeError,A="Reduce of empty array with no initial value",s=function(a){return function(o,l,u,f){var h=e(o),c=t(h),m=r(h);if(n(l),m===0&&u<2)throw new i(A);var g=a?m-1:0,w=a?-1:1;if(u<2)for(;;){if(g in c){f=c[g],g+=w;break}if(g+=w,a?g<0:m<=g)throw new i(A)}for(;a?g>=0:m>g;g+=w)g in c&&(f=l(f,c[g],g,h));return f}};return ay={left:s(!1),right:s(!0)},ay}var oy,H_;function q_(){if(H_)return oy;H_=1;var n=Mr();return oy=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){return 1},1)})},oy}var j_;function nG(){if(j_)return D_;j_=1;var n=ai(),e=rG().left,t=q_(),r=N1(),i=Wh(),A=!i&&r>79&&r<83,s=A||!t("reduce");return n({target:"Array",proto:!0,forced:s},{reduce:function(o){var l=arguments.length;return e(this,o,l,l>1?arguments[1]:void 0)}}),D_}nG();var K_={},V_;function iG(){if(V_)return K_;V_=1;var n=ai(),e=Yh(),t=Kh().f,r=El(),i=JA(),A=zw(),s=xA(),a=Xw(),o=$A(),l=e("".slice),u=Math.min,f=a("endsWith"),h=!o&&!f&&!!function(){var c=t(String.prototype,"endsWith");return c&&!c.writable}();return n({target:"String",proto:!0,forced:!h&&!f},{endsWith:function(m){var g=i(s(this));A(m);var w=arguments.length>1?arguments[1]:void 0,p=g.length,v=w===void 0?p:u(r(w),p),b=i(m);return l(g,v-b.length,v)===b}}),K_}iG();var G_={},z_;function AG(){if(z_)return G_;z_=1;var n=Nn(),e=Hr(),t=Qw(),r=si(),i=gi(),A=xA(),s=eF(),a=kw(),o=El(),l=JA(),u=Cl(),f=jw(),h=t_(),c=Mr(),m=h.UNSUPPORTED_Y,g=4294967295,w=Math.min,p=e([].push),v=e("".slice),b=!c(function(){var T=/(?:)/,M=T.exec;T.exec=function(){return M.apply(this,arguments)};var D="ab".split(T);return D.length!==2||D[0]!=="a"||D[1]!=="b"}),B="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;return t("split",function(T,M,D){var j="0".split(void 0,0).length?function(R,ae){return R===void 0&&ae===0?[]:n(M,this,R,ae)}:M;return[function(ae,L){var x=A(this),Q=i(ae)?u(ae,T):void 0;return Q?n(Q,ae,x,L):n(j,l(x),ae,L)},function(R,ae){var L=r(this),x=l(R);if(!B){var Q=D(j,L,x,ae,j!==M);if(Q.done)return Q.value}var C=s(L,RegExp),z=L.unicode,Y=(L.ignoreCase?"i":"")+(L.multiline?"m":"")+(L.unicode?"u":"")+(m?"g":"y"),V=new C(m?"^(?:"+L.source+")":L,Y),ie=ae===void 0?g:ae>>>0;if(ie===0)return[];if(x.length===0)return f(V,x)===null?[x]:[];for(var Ae=0,$=0,te=[];$<x.length;){V.lastIndex=m?0:$;var F=f(V,m?v(x,$):x),H;if(F===null||(H=w(o(V.lastIndex+(m?$:0)),x.length))===Ae)$=a(x,$,z);else{if(p(te,v(x,Ae,$)),te.length===ie)return te;for(var G=1;G<=F.length-1;G++)if(p(te,F[G]),te.length===ie)return te;$=Ae=H}}return p(te,v(x,Ae)),te}]},B||!b,m),G_}AG();var sc={exports:{}},go={exports:{}},sG=go.exports,W_;function aG(){return W_||(W_=1,(function(){var n,e,t,r,i,A;typeof performance<"u"&&performance!==null&&performance.now?go.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(go.exports=function(){return(n()-i)/1e6},e=process.hrtime,n=function(){var s;return s=e(),s[0]*1e9+s[1]},r=n(),A=process.uptime()*1e9,i=r-A):Date.now?(go.exports=function(){return Date.now()-t},t=Date.now()):(go.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(sG)),go.exports}var X_;function oG(){if(X_)return sc.exports;X_=1;for(var n=aG(),e=typeof window>"u"?Zn:window,t=["moz","webkit"],r="AnimationFrame",i=e["request"+r],A=e["cancel"+r]||e["cancelRequest"+r],s=0;!i&&s<t.length;s++)i=e[t[s]+"Request"+r],A=e[t[s]+"Cancel"+r]||e[t[s]+"CancelRequest"+r];if(!i||!A){var a=0,o=0,l=[],u=1e3/60;i=function(f){if(l.length===0){var h=n(),c=Math.max(0,u-(h-a));a=c+h,setTimeout(function(){var m=l.slice(0);l.length=0;for(var g=0;g<m.length;g++)if(!m[g].cancelled)try{m[g].callback(a)}catch(w){setTimeout(function(){throw w},0)}},Math.round(c))}return l.push({handle:++o,callback:f,cancelled:!1}),o},A=function(f){for(var h=0;h<l.length;h++)l[h].handle===f&&(l[h].cancelled=!0)}}return sc.exports=function(f){return i.call(e,f)},sc.exports.cancel=function(){A.apply(e,arguments)},sc.exports.polyfill=function(f){f||(f=e),f.requestAnimationFrame=i,f.cancelAnimationFrame=A},sc.exports}var lG=oG();const ly=Uc(lG);var Y_={},uy,$_;function J_(){return $_||($_=1,uy=`
\v\f\r \u2028\u2029\uFEFF`),uy}var cy,Z_;function uG(){if(Z_)return cy;Z_=1;var n=Hr(),e=xA(),t=JA(),r=J_(),i=n("".replace),A=RegExp("^["+r+"]+"),s=RegExp("(^|[^"+r+"])["+r+"]+$"),a=function(o){return function(l){var u=t(e(l));return o&1&&(u=i(u,A,"")),o&2&&(u=i(u,s,"$1")),u}};return cy={start:a(1),end:a(2),trim:a(3)},cy}var fy,eT;function cG(){if(eT)return fy;eT=1;var n=Vh().PROPER,e=Mr(),t=J_(),r="
";return fy=function(i){return e(function(){return!!t[i]()||r[i]()!==r||n&&t[i].name!==i})},fy}var tT;function fG(){if(tT)return Y_;tT=1;var n=ai(),e=uG().trim,t=cG();return n({target:"String",proto:!0,forced:t("trim")},{trim:function(){return e(this)}}),Y_}fG();var hy,rT;function hG(){return rT||(rT=1,hy=function(n){this.ok=!1,this.alpha=1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n=n.replace(/ /g,""),n=n.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:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",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"};n=e[n]||n;for(var t=[{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(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3]),parseFloat(o[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(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],r=0;r<t.length;r++){var i=t[r].re,A=t[r].process,s=i.exec(n);if(s){var a=A(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[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 o=this.r.toString(16),l=this.g.toString(16),u=this.b.toString(16);return o.length==1&&(o="0"+o),l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),"#"+o+l+u},this.getHelpXML=function(){for(var o=new Array,l=0;l<t.length;l++)for(var u=t[l].example,f=0;f<u.length;f++)o[o.length]=u[f];for(var h in e)o[o.length]=h;var c=document.createElement("ul");c.setAttribute("id","rgbcolor-examples");for(var l=0;l<o.length;l++)try{var m=document.createElement("li"),g=new RGBColor(o[l]),w=document.createElement("div");w.style.cssText="margin: 3px; border: 1px solid black; background:"+g.toHex()+"; color:"+g.toHex(),w.appendChild(document.createTextNode("test"));var p=document.createTextNode(" "+o[l]+" -> "+g.toRGB()+" -> "+g.toHex());m.appendChild(w),m.appendChild(p),c.appendChild(m)}catch{}return c}}),hy}var dG=hG();const dy=Uc(dG);var nT={},iT;function pG(){if(iT)return nT;iT=1;var n=ai(),e=Yh(),t=xS().indexOf,r=q_(),i=e([].indexOf),A=!!i&&1/i([1],1,-0)<0,s=A||!r("indexOf");return n({target:"Array",proto:!0,forced:s},{indexOf:function(o){var l=arguments.length>1?arguments[1]:void 0;return A?i(this,o,l)||0:t(this,o,l)}}),nT}pG();var AT={},sT;function gG(){if(sT)return AT;sT=1;var n=ai(),e=Hr(),t=zw(),r=xA(),i=JA(),A=Xw(),s=e("".indexOf);return n({target:"String",proto:!0,forced:!A("includes")},{includes:function(o){return!!~s(i(r(this)),i(t(o)),arguments.length>1?arguments[1]:void 0)}}),AT}gG();var aT={},py,oT;function mG(){if(oT)return py;oT=1;var n=fo();return py=Array.isArray||function(t){return n(t)==="Array"},py}var lT;function vG(){if(lT)return aT;lT=1;var n=ai(),e=Hr(),t=mG(),r=e([].reverse),i=[1,2];return n({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return t(this)&&(this.length=this.length),r(this)}}),aT}vG();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var uT=function(n,e){return(uT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])})(n,e)};function cT(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=n}uT(n,e),n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function wG(n){var e="";Array.isArray(n)||(n=[n]);for(var t=0;t<n.length;t++){var r=n[t];if(r.type===ze.CLOSE_PATH)e+="z";else if(r.type===ze.HORIZ_LINE_TO)e+=(r.relative?"h":"H")+r.x;else if(r.type===ze.VERT_LINE_TO)e+=(r.relative?"v":"V")+r.y;else if(r.type===ze.MOVE_TO)e+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===ze.LINE_TO)e+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===ze.CURVE_TO)e+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===ze.SMOOTH_CURVE_TO)e+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===ze.QUAD_TO)e+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===ze.SMOOTH_QUAD_TO)e+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==ze.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+t+".");e+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return e}function gy(n,e){var t=n[0],r=n[1];return[t*Math.cos(e)-r*Math.sin(e),t*Math.sin(e)+r*Math.cos(e)]}function FA(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=0;t<n.length;t++)if(typeof n[t]!="number")throw new Error("assertNumbers arguments["+t+"] is not a number. "+typeof n[t]+" == typeof "+n[t]);return!0}var ma=Math.PI;function my(n,e,t){n.lArcFlag=n.lArcFlag===0?0:1,n.sweepFlag=n.sweepFlag===0?0:1;var r=n.rX,i=n.rY,A=n.x,s=n.y;r=Math.abs(n.rX),i=Math.abs(n.rY);var a=gy([(e-A)/2,(t-s)/2],-n.xRot/180*ma),o=a[0],l=a[1],u=Math.pow(o,2)/Math.pow(r,2)+Math.pow(l,2)/Math.pow(i,2);1<u&&(r*=Math.sqrt(u),i*=Math.sqrt(u)),n.rX=r,n.rY=i;var f=Math.pow(r,2)*Math.pow(l,2)+Math.pow(i,2)*Math.pow(o,2),h=(n.lArcFlag!==n.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(i,2)-f)/f)),c=r*l/i*h,m=-i*o/r*h,g=gy([c,m],n.xRot/180*ma);n.cX=g[0]+(e+A)/2,n.cY=g[1]+(t+s)/2,n.phi1=Math.atan2((l-m)/i,(o-c)/r),n.phi2=Math.atan2((-l-m)/i,(-o-c)/r),n.sweepFlag===0&&n.phi2>n.phi1&&(n.phi2-=2*ma),n.sweepFlag===1&&n.phi2<n.phi1&&(n.phi2+=2*ma),n.phi1*=180/ma,n.phi2*=180/ma}function fT(n,e,t){FA(n,e,t);var r=n*n+e*e-t*t;if(0>r)return[];if(r===0)return[[n*t/(n*n+e*e),e*t/(n*n+e*e)]];var i=Math.sqrt(r);return[[(n*t+e*i)/(n*n+e*e),(e*t-n*i)/(n*n+e*e)],[(n*t-e*i)/(n*n+e*e),(e*t+n*i)/(n*n+e*e)]]}var sn,Fs=Math.PI/180;function hT(n,e,t){return(1-t)*n+t*e}function dT(n,e,t,r){return n+Math.cos(r/180*ma)*e+Math.sin(r/180*ma)*t}function pT(n,e,t,r){var i=1e-6,A=e-n,s=t-e,a=3*A+3*(r-t)-6*s,o=6*(s-A),l=3*A;return Math.abs(a)<i?[-l/o]:function(u,f,h){var c=u*u/4-f;if(c<-h)return[];if(c<=h)return[-u/2];var m=Math.sqrt(c);return[-u/2-m,-u/2+m]}(o/a,l/a,i)}function gT(n,e,t,r,i){var A=1-i;return n*(A*A*A)+e*(3*A*A*i)+t*(3*A*i*i)+r*(i*i*i)}(function(n){function e(){return i(function(a,o,l){return a.relative&&(a.x1!==void 0&&(a.x1+=o),a.y1!==void 0&&(a.y1+=l),a.x2!==void 0&&(a.x2+=o),a.y2!==void 0&&(a.y2+=l),a.x!==void 0&&(a.x+=o),a.y!==void 0&&(a.y+=l),a.relative=!1),a})}function t(){var a=NaN,o=NaN,l=NaN,u=NaN;return i(function(f,h,c){return f.type&ze.SMOOTH_CURVE_TO&&(f.type=ze.CURVE_TO,a=isNaN(a)?h:a,o=isNaN(o)?c:o,f.x1=f.relative?h-a:2*h-a,f.y1=f.relative?c-o:2*c-o),f.type&ze.CURVE_TO?(a=f.relative?h+f.x2:f.x2,o=f.relative?c+f.y2:f.y2):(a=NaN,o=NaN),f.type&ze.SMOOTH_QUAD_TO&&(f.type=ze.QUAD_TO,l=isNaN(l)?h:l,u=isNaN(u)?c:u,f.x1=f.relative?h-l:2*h-l,f.y1=f.relative?c-u:2*c-u),f.type&ze.QUAD_TO?(l=f.relative?h+f.x1:f.x1,u=f.relative?c+f.y1:f.y1):(l=NaN,u=NaN),f})}function r(){var a=NaN,o=NaN;return i(function(l,u,f){if(l.type&ze.SMOOTH_QUAD_TO&&(l.type=ze.QUAD_TO,a=isNaN(a)?u:a,o=isNaN(o)?f:o,l.x1=l.relative?u-a:2*u-a,l.y1=l.relative?f-o:2*f-o),l.type&ze.QUAD_TO){a=l.relative?u+l.x1:l.x1,o=l.relative?f+l.y1:l.y1;var h=l.x1,c=l.y1;l.type=ze.CURVE_TO,l.x1=((l.relative?0:u)+2*h)/3,l.y1=((l.relative?0:f)+2*c)/3,l.x2=(l.x+2*h)/3,l.y2=(l.y+2*c)/3}else a=NaN,o=NaN;return l})}function i(a){var o=0,l=0,u=NaN,f=NaN;return function(h){if(isNaN(u)&&!(h.type&ze.MOVE_TO))throw new Error("path must start with moveto");var c=a(h,o,l,u,f);return h.type&ze.CLOSE_PATH&&(o=u,l=f),h.x!==void 0&&(o=h.relative?o+h.x:h.x),h.y!==void 0&&(l=h.relative?l+h.y:h.y),h.type&ze.MOVE_TO&&(u=o,f=l),c}}function A(a,o,l,u,f,h){return FA(a,o,l,u,f,h),i(function(c,m,g,w){var p=c.x1,v=c.x2,b=c.relative&&!isNaN(w),B=c.x!==void 0?c.x:b?0:m,T=c.y!==void 0?c.y:b?0:g;function M(F){return F*F}c.type&ze.HORIZ_LINE_TO&&o!==0&&(c.type=ze.LINE_TO,c.y=c.relative?0:g),c.type&ze.VERT_LINE_TO&&l!==0&&(c.type=ze.LINE_TO,c.x=c.relative?0:m),c.x!==void 0&&(c.x=c.x*a+T*l+(b?0:f)),c.y!==void 0&&(c.y=B*o+c.y*u+(b?0:h)),c.x1!==void 0&&(c.x1=c.x1*a+c.y1*l+(b?0:f)),c.y1!==void 0&&(c.y1=p*o+c.y1*u+(b?0:h)),c.x2!==void 0&&(c.x2=c.x2*a+c.y2*l+(b?0:f)),c.y2!==void 0&&(c.y2=v*o+c.y2*u+(b?0:h));var D=a*u-o*l;if(c.xRot!==void 0&&(a!==1||o!==0||l!==0||u!==1))if(D===0)delete c.rX,delete c.rY,delete c.xRot,delete c.lArcFlag,delete c.sweepFlag,c.type=ze.LINE_TO;else{var j=c.xRot*Math.PI/180,R=Math.sin(j),ae=Math.cos(j),L=1/M(c.rX),x=1/M(c.rY),Q=M(ae)*L+M(R)*x,C=2*R*ae*(L-x),z=M(R)*L+M(ae)*x,Y=Q*u*u-C*o*u+z*o*o,V=C*(a*u+o*l)-2*(Q*l*u+z*a*o),ie=Q*l*l-C*a*l+z*a*a,Ae=(Math.atan2(V,Y-ie)+Math.PI)%Math.PI/2,$=Math.sin(Ae),te=Math.cos(Ae);c.rX=Math.abs(D)/Math.sqrt(Y*M(te)+V*$*te+ie*M($)),c.rY=Math.abs(D)/Math.sqrt(Y*M($)-V*$*te+ie*M(te)),c.xRot=180*Ae/Math.PI}return c.sweepFlag!==void 0&&0>D&&(c.sweepFlag=+!c.sweepFlag),c})}function s(){return function(a){var o={};for(var l in a)o[l]=a[l];return o}}n.ROUND=function(a){function o(l){return Math.round(l*a)/a}return a===void 0&&(a=1e13),FA(a),function(l){return l.x1!==void 0&&(l.x1=o(l.x1)),l.y1!==void 0&&(l.y1=o(l.y1)),l.x2!==void 0&&(l.x2=o(l.x2)),l.y2!==void 0&&(l.y2=o(l.y2)),l.x!==void 0&&(l.x=o(l.x)),l.y!==void 0&&(l.y=o(l.y)),l.rX!==void 0&&(l.rX=o(l.rX)),l.rY!==void 0&&(l.rY=o(l.rY)),l}},n.TO_ABS=e,n.TO_REL=function(){return i(function(a,o,l){return a.relative||(a.x1!==void 0&&(a.x1-=o),a.y1!==void 0&&(a.y1-=l),a.x2!==void 0&&(a.x2-=o),a.y2!==void 0&&(a.y2-=l),a.x!==void 0&&(a.x-=o),a.y!==void 0&&(a.y-=l),a.relative=!0),a})},n.NORMALIZE_HVZ=function(a,o,l){return a===void 0&&(a=!0),o===void 0&&(o=!0),l===void 0&&(l=!0),i(function(u,f,h,c,m){if(isNaN(c)&&!(u.type&ze.MOVE_TO))throw new Error("path must start with moveto");return o&&u.type&ze.HORIZ_LINE_TO&&(u.type=ze.LINE_TO,u.y=u.relative?0:h),l&&u.type&ze.VERT_LINE_TO&&(u.type=ze.LINE_TO,u.x=u.relative?0:f),a&&u.type&ze.CLOSE_PATH&&(u.type=ze.LINE_TO,u.x=u.relative?c-f:c,u.y=u.relative?m-h:m),u.type&ze.ARC&&(u.rX===0||u.rY===0)&&(u.type=ze.LINE_TO,delete u.rX,delete u.rY,delete u.xRot,delete u.lArcFlag,delete u.sweepFlag),u})},n.NORMALIZE_ST=t,n.QT_TO_C=r,n.INFO=i,n.SANITIZE=function(a){a===void 0&&(a=0),FA(a);var o=NaN,l=NaN,u=NaN,f=NaN;return i(function(h,c,m,g,w){var p=Math.abs,v=!1,b=0,B=0;if(h.type&ze.SMOOTH_CURVE_TO&&(b=isNaN(o)?0:c-o,B=isNaN(l)?0:m-l),h.type&(ze.CURVE_TO|ze.SMOOTH_CURVE_TO)?(o=h.relative?c+h.x2:h.x2,l=h.relative?m+h.y2:h.y2):(o=NaN,l=NaN),h.type&ze.SMOOTH_QUAD_TO?(u=isNaN(u)?c:2*c-u,f=isNaN(f)?m:2*m-f):h.type&ze.QUAD_TO?(u=h.relative?c+h.x1:h.x1,f=h.relative?m+h.y1:h.y2):(u=NaN,f=NaN),h.type&ze.LINE_COMMANDS||h.type&ze.ARC&&(h.rX===0||h.rY===0||!h.lArcFlag)||h.type&ze.CURVE_TO||h.type&ze.SMOOTH_CURVE_TO||h.type&ze.QUAD_TO||h.type&ze.SMOOTH_QUAD_TO){var T=h.x===void 0?0:h.relative?h.x:h.x-c,M=h.y===void 0?0:h.relative?h.y:h.y-m;b=isNaN(u)?h.x1===void 0?b:h.relative?h.x:h.x1-c:u-c,B=isNaN(f)?h.y1===void 0?B:h.relative?h.y:h.y1-m:f-m;var D=h.x2===void 0?0:h.relative?h.x:h.x2-c,j=h.y2===void 0?0:h.relative?h.y:h.y2-m;p(T)<=a&&p(M)<=a&&p(b)<=a&&p(B)<=a&&p(D)<=a&&p(j)<=a&&(v=!0)}return h.type&ze.CLOSE_PATH&&p(c-g)<=a&&p(m-w)<=a&&(v=!0),v?[]:h})},n.MATRIX=A,n.ROTATE=function(a,o,l){o===void 0&&(o=0),l===void 0&&(l=0),FA(a,o,l);var u=Math.sin(a),f=Math.cos(a);return A(f,u,-u,f,o-o*f+l*u,l-o*u-l*f)},n.TRANSLATE=function(a,o){return o===void 0&&(o=0),FA(a,o),A(1,0,0,1,a,o)},n.SCALE=function(a,o){return o===void 0&&(o=a),FA(a,o),A(a,0,0,o,0,0)},n.SKEW_X=function(a){return FA(a),A(1,0,Math.atan(a),1,0,0)},n.SKEW_Y=function(a){return FA(a),A(1,Math.atan(a),0,1,0,0)},n.X_AXIS_SYMMETRY=function(a){return a===void 0&&(a=0),FA(a),A(-1,0,0,1,a,0)},n.Y_AXIS_SYMMETRY=function(a){return a===void 0&&(a=0),FA(a),A(1,0,0,-1,0,a)},n.A_TO_C=function(){return i(function(a,o,l){return ze.ARC===a.type?function(u,f,h){var c,m,g,w;u.cX||my(u,f,h);for(var p=Math.min(u.phi1,u.phi2),v=Math.max(u.phi1,u.phi2)-p,b=Math.ceil(v/90),B=new Array(b),T=f,M=h,D=0;D<b;D++){var j=hT(u.phi1,u.phi2,D/b),R=hT(u.phi1,u.phi2,(D+1)/b),ae=R-j,L=4/3*Math.tan(ae*Fs/4),x=[Math.cos(j*Fs)-L*Math.sin(j*Fs),Math.sin(j*Fs)+L*Math.cos(j*Fs)],Q=x[0],C=x[1],z=[Math.cos(R*Fs),Math.sin(R*Fs)],Y=z[0],V=z[1],ie=[Y+L*Math.sin(R*Fs),V-L*Math.cos(R*Fs)],Ae=ie[0],$=ie[1];B[D]={relative:u.relative,type:ze.CURVE_TO};var te=function(F,H){var G=gy([F*u.rX,H*u.rY],u.xRot),X=G[0],J=G[1];return[u.cX+X,u.cY+J]};c=te(Q,C),B[D].x1=c[0],B[D].y1=c[1],m=te(Ae,$),B[D].x2=m[0],B[D].y2=m[1],g=te(Y,V),B[D].x=g[0],B[D].y=g[1],u.relative&&(B[D].x1-=T,B[D].y1-=M,B[D].x2-=T,B[D].y2-=M,B[D].x-=T,B[D].y-=M),T=(w=[B[D].x,B[D].y])[0],M=w[1]}return B}(a,a.relative?0:o,a.relative?0:l):a})},n.ANNOTATE_ARCS=function(){return i(function(a,o,l){return a.relative&&(o=0,l=0),ze.ARC===a.type&&my(a,o,l),a})},n.CLONE=s,n.CALCULATE_BOUNDS=function(){var a=function(h){var c={};for(var m in h)c[m]=h[m];return c},o=e(),l=r(),u=t(),f=i(function(h,c,m){var g=u(l(o(a(h))));function w($){$>f.maxX&&(f.maxX=$),$<f.minX&&(f.minX=$)}function p($){$>f.maxY&&(f.maxY=$),$<f.minY&&(f.minY=$)}if(g.type&ze.DRAWING_COMMANDS&&(w(c),p(m)),g.type&ze.HORIZ_LINE_TO&&w(g.x),g.type&ze.VERT_LINE_TO&&p(g.y),g.type&ze.LINE_TO&&(w(g.x),p(g.y)),g.type&ze.CURVE_TO){w(g.x),p(g.y);for(var v=0,b=pT(c,g.x1,g.x2,g.x);v<b.length;v++)0<(Ae=b[v])&&1>Ae&&w(gT(c,g.x1,g.x2,g.x,Ae));for(var B=0,T=pT(m,g.y1,g.y2,g.y);B<T.length;B++)0<(Ae=T[B])&&1>Ae&&p(gT(m,g.y1,g.y2,g.y,Ae))}if(g.type&ze.ARC){w(g.x),p(g.y),my(g,c,m);for(var M=g.xRot/180*Math.PI,D=Math.cos(M)*g.rX,j=Math.sin(M)*g.rX,R=-Math.sin(M)*g.rY,ae=Math.cos(M)*g.rY,L=g.phi1<g.phi2?[g.phi1,g.phi2]:-180>g.phi2?[g.phi2+360,g.phi1+360]:[g.phi2,g.phi1],x=L[0],Q=L[1],C=function($){var te=$[0],F=$[1],H=180*Math.atan2(F,te)/Math.PI;return H<x?H+360:H},z=0,Y=fT(R,-D,0).map(C);z<Y.length;z++)(Ae=Y[z])>x&&Ae<Q&&w(dT(g.cX,D,R,Ae));for(var V=0,ie=fT(ae,-j,0).map(C);V<ie.length;V++){var Ae;(Ae=ie[V])>x&&Ae<Q&&p(dT(g.cY,j,ae,Ae))}}return h});return f.minX=1/0,f.maxX=-1/0,f.minY=1/0,f.maxY=-1/0,f}})(sn||(sn={}));var _A,mT=function(){function n(){}return n.prototype.round=function(e){return this.transform(sn.ROUND(e))},n.prototype.toAbs=function(){return this.transform(sn.TO_ABS())},n.prototype.toRel=function(){return this.transform(sn.TO_REL())},n.prototype.normalizeHVZ=function(e,t,r){return this.transform(sn.NORMALIZE_HVZ(e,t,r))},n.prototype.normalizeST=function(){return this.transform(sn.NORMALIZE_ST())},n.prototype.qtToC=function(){return this.transform(sn.QT_TO_C())},n.prototype.aToC=function(){return this.transform(sn.A_TO_C())},n.prototype.sanitize=function(e){return this.transform(sn.SANITIZE(e))},n.prototype.translate=function(e,t){return this.transform(sn.TRANSLATE(e,t))},n.prototype.scale=function(e,t){return this.transform(sn.SCALE(e,t))},n.prototype.rotate=function(e,t,r){return this.transform(sn.ROTATE(e,t,r))},n.prototype.matrix=function(e,t,r,i,A,s){return this.transform(sn.MATRIX(e,t,r,i,A,s))},n.prototype.skewX=function(e){return this.transform(sn.SKEW_X(e))},n.prototype.skewY=function(e){return this.transform(sn.SKEW_Y(e))},n.prototype.xSymmetry=function(e){return this.transform(sn.X_AXIS_SYMMETRY(e))},n.prototype.ySymmetry=function(e){return this.transform(sn.Y_AXIS_SYMMETRY(e))},n.prototype.annotateArcs=function(){return this.transform(sn.ANNOTATE_ARCS())},n}(),yG=function(n){return n===" "||n===" "||n==="\r"||n===`
`},vT=function(n){return 48<=n.charCodeAt(0)&&n.charCodeAt(0)<=57},bG=function(n){function e(){var t=n.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return cT(e,n),e.prototype.finish=function(t){if(t===void 0&&(t=[]),this.parse(" ",t),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,r){var i=this;r===void 0&&(r=[]);for(var A=function(f){r.push(f),i.curArgs.length=0,i.canParseCommandOrComma=!0},s=0;s<t.length;s++){var a=t[s],o=!(this.curCommandType!==ze.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),l=vT(a)&&(this.curNumber==="0"&&a==="0"||o);if(!vT(a)||l)if(a!=="e"&&a!=="E")if(a!=="-"&&a!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(a!=="."||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&this.curCommandType!==-1){var u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+s);if(this.curCommandType===ze.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>u)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+s+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+s+'"')}this.curArgs.push(u),this.curArgs.length===BG[this.curCommandType]&&(ze.HORIZ_LINE_TO===this.curCommandType?A({type:ze.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):ze.VERT_LINE_TO===this.curCommandType?A({type:ze.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===ze.MOVE_TO||this.curCommandType===ze.LINE_TO||this.curCommandType===ze.SMOOTH_QUAD_TO?(A({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),ze.MOVE_TO===this.curCommandType&&(this.curCommandType=ze.LINE_TO)):this.curCommandType===ze.CURVE_TO?A({type:ze.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===ze.SMOOTH_CURVE_TO?A({type:ze.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===ze.QUAD_TO?A({type:ze.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===ze.ARC&&A({type:ze.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(!yG(a))if(a===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(a!=="+"&&a!=="-"&&a!==".")if(l)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+s+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+s+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,a!=="z"&&a!=="Z")if(a==="h"||a==="H")this.curCommandType=ze.HORIZ_LINE_TO,this.curCommandRelative=a==="h";else if(a==="v"||a==="V")this.curCommandType=ze.VERT_LINE_TO,this.curCommandRelative=a==="v";else if(a==="m"||a==="M")this.curCommandType=ze.MOVE_TO,this.curCommandRelative=a==="m";else if(a==="l"||a==="L")this.curCommandType=ze.LINE_TO,this.curCommandRelative=a==="l";else if(a==="c"||a==="C")this.curCommandType=ze.CURVE_TO,this.curCommandRelative=a==="c";else if(a==="s"||a==="S")this.curCommandType=ze.SMOOTH_CURVE_TO,this.curCommandRelative=a==="s";else if(a==="q"||a==="Q")this.curCommandType=ze.QUAD_TO,this.curCommandRelative=a==="q";else if(a==="t"||a==="T")this.curCommandType=ze.SMOOTH_QUAD_TO,this.curCommandRelative=a==="t";else{if(a!=="a"&&a!=="A")throw new SyntaxError('Unexpected character "'+a+'" at index '+s+".");this.curCommandType=ze.ARC,this.curCommandRelative=a==="a"}else r.push({type:ze.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 r},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(r,i){i===void 0&&(i=[]);for(var A=0,s=Object.getPrototypeOf(this).parse.call(this,r);A<s.length;A++){var a=s[A],o=t(a);Array.isArray(o)?i.push.apply(i,o):i.push(o)}return i}}})},e}(mT),ze=function(n){function e(t){var r=n.call(this)||this;return r.commands=typeof t=="string"?e.parse(t):t,r}return cT(e,n),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=sn.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var r=[],i=0,A=this.commands;i<A.length;i++){var s=t(A[i]);Array.isArray(s)?r.push.apply(r,s):r.push(s)}return this.commands=r,this},e.encode=function(t){return wG(t)},e.parse=function(t){var r=new bG,i=[];return r.parse(t,i),r.finish(i),i},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}(mT),BG=((_A={})[ze.MOVE_TO]=2,_A[ze.LINE_TO]=2,_A[ze.HORIZ_LINE_TO]=1,_A[ze.VERT_LINE_TO]=1,_A[ze.CLOSE_PATH]=0,_A[ze.QUAD_TO]=4,_A[ze.SMOOTH_QUAD_TO]=2,_A[ze.CURVE_TO]=6,_A[ze.SMOOTH_CURVE_TO]=4,_A[ze.ARC]=7,_A),wT={},yT;function CG(){if(yT)return wT;yT=1;var n=Vh().PROPER,e=po(),t=si(),r=JA(),i=Mr(),A=Hw(),s="toString",a=RegExp.prototype,o=a[s],l=i(function(){return o.call({source:"a",flags:"b"})!=="/a/b"}),u=n&&o.name!==s;return(l||u)&&e(a,s,function(){var h=t(this),c=r(h.source),m=r(A(h));return"/"+c+"/"+m},{unsafe:!0}),wT}CG();function Jh(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jh=function(e){return typeof e}:Jh=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jh(n)}function EG(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}var xG=[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],SG=[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 FG(n,e,t,r,i){if(typeof n=="string"&&(n=document.getElementById(n)),!n||Jh(n)!=="object"||!("getContext"in n))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var A=n.getContext("2d");try{return A.getImageData(e,t,r,i)}catch(s){throw new Error("unable to access image data: "+s)}}function _G(n,e,t,r,i,A){if(!(isNaN(A)||A<1)){A|=0;var s=FG(n,e,t,r,i);s=TG(s,e,t,r,i,A),n.getContext("2d").putImageData(s,e,t)}}function TG(n,e,t,r,i,A){for(var s=n.data,a=2*A+1,o=r-1,l=i-1,u=A+1,f=u*(u+1)/2,h=new bT,c=h,m,g=1;g<a;g++)c=c.next=new bT,g===u&&(m=c);c.next=h;for(var w=null,p=null,v=0,b=0,B=xG[A],T=SG[A],M=0;M<i;M++){c=h;for(var D=s[b],j=s[b+1],R=s[b+2],ae=s[b+3],L=0;L<u;L++)c.r=D,c.g=j,c.b=R,c.a=ae,c=c.next;for(var x=0,Q=0,C=0,z=0,Y=u*D,V=u*j,ie=u*R,Ae=u*ae,$=f*D,te=f*j,F=f*R,H=f*ae,G=1;G<u;G++){var X=b+((o<G?o:G)<<2),J=s[X],O=s[X+1],U=s[X+2],ee=s[X+3],re=u-G;$+=(c.r=J)*re,te+=(c.g=O)*re,F+=(c.b=U)*re,H+=(c.a=ee)*re,x+=J,Q+=O,C+=U,z+=ee,c=c.next}w=h,p=m;for(var W=0;W<r;W++){var Z=H*B>>>T;if(s[b+3]=Z,Z!==0){var me=255/Z;s[b]=($*B>>>T)*me,s[b+1]=(te*B>>>T)*me,s[b+2]=(F*B>>>T)*me}else s[b]=s[b+1]=s[b+2]=0;$-=Y,te-=V,F-=ie,H-=Ae,Y-=w.r,V-=w.g,ie-=w.b,Ae-=w.a;var k=W+A+1;k=v+(k<o?k:o)<<2,x+=w.r=s[k],Q+=w.g=s[k+1],C+=w.b=s[k+2],z+=w.a=s[k+3],$+=x,te+=Q,F+=C,H+=z,w=w.next;var pe=p,I=pe.r,E=pe.g,S=pe.b,P=pe.a;Y+=I,V+=E,ie+=S,Ae+=P,x-=I,Q-=E,C-=S,z-=P,p=p.next,b+=4}v+=r}for(var oe=0;oe<r;oe++){b=oe<<2;var ge=s[b],ce=s[b+1],Ee=s[b+2],ye=s[b+3],Be=u*ge,Ue=u*ce,Oe=u*Ee,Me=u*ye,$e=f*ge,tt=f*ce,Ve=f*Ee,Tt=f*ye;c=h;for(var st=0;st<u;st++)c.r=ge,c.g=ce,c.b=Ee,c.a=ye,c=c.next;for(var kt=r,yt=0,St=0,ur=0,Ft=0,$t=1;$t<=A;$t++){b=kt+oe<<2;var Qt=u-$t;$e+=(c.r=ge=s[b])*Qt,tt+=(c.g=ce=s[b+1])*Qt,Ve+=(c.b=Ee=s[b+2])*Qt,Tt+=(c.a=ye=s[b+3])*Qt,Ft+=ge,yt+=ce,St+=Ee,ur+=ye,c=c.next,$t<l&&(kt+=r)}b=oe,w=h,p=m;for(var yr=0;yr<i;yr++){var It=b<<2;s[It+3]=ye=Tt*B>>>T,ye>0?(ye=255/ye,s[It]=($e*B>>>T)*ye,s[It+1]=(tt*B>>>T)*ye,s[It+2]=(Ve*B>>>T)*ye):s[It]=s[It+1]=s[It+2]=0,$e-=Be,tt-=Ue,Ve-=Oe,Tt-=Me,Be-=w.r,Ue-=w.g,Oe-=w.b,Me-=w.a,It=oe+((It=yr+u)<l?It:l)*r<<2,$e+=Ft+=w.r=s[It],tt+=yt+=w.g=s[It+1],Ve+=St+=w.b=s[It+2],Tt+=ur+=w.a=s[It+3],w=w.next,Be+=ge=p.r,Ue+=ce=p.g,Oe+=Ee=p.b,Me+=ye=p.a,Ft-=ge,yt-=ce,St-=Ee,ur-=ye,p=p.next,b+=r}}return n}var bT=function n(){EG(this,n),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function IG(){var{DOMParser:n}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:n,createCanvas(t,r){return new OffscreenCanvas(t,r)},createImage(t){return Ss(function*(){var r=yield fetch(t),i=yield r.blob(),A=yield createImageBitmap(i);return A})()}};return(typeof DOMParser<"u"||typeof n>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function UG(n){var{DOMParser:e,canvas:t,fetch:r}=n;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:r,createCanvas:t.createCanvas,createImage:t.loadImage}}var NG=Object.freeze({__proto__:null,offscreen:IG,node:UG});function mo(n){return n.replace(/(?!\u3000)\s+/gm," ")}function BT(n){return n.replace(/^[\n \t]+/,"")}function CT(n){return n.replace(/[\n \t]+$/,"")}function mi(n){var e=(n||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var LG=/^[A-Z-]+$/;function ET(n){return LG.test(n)?n.toLowerCase():n}function vy(n){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(n)||[];return e[2]||e[3]||e[4]}function xT(n){if(!n.startsWith("rgb"))return n;var e=3,t=n.replace(/\d+(\.\d+)?/g,(r,i)=>e--&&i?String(Math.round(parseFloat(r))):r);return t}var OG=/(\[[^\]]+\])/g,QG=/(#[^\s+>~.[:]+)/g,RG=/(\.[^\s+>~.[:]+)/g,PG=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,kG=/(:[\w-]+\([^)]*\))/gi,DG=/(:[^\s+>~.[:]+)/g,MG=/([^\s+>~.[:]+)/g;function vo(n,e){var t=e.exec(n);return t?[n.replace(e," "),t.length]:[n,0]}function ST(n){var e=[0,0,0],t=n.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[t,r]=vo(t,OG),e[1]+=r,[t,r]=vo(t,QG),e[0]+=r,[t,r]=vo(t,RG),e[1]+=r,[t,r]=vo(t,PG),e[2]+=r,[t,r]=vo(t,kG),e[1]+=r,[t,r]=vo(t,DG),e[1]+=r,t=t.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[t,r]=vo(t,MG),e[2]+=r,e.join("")}var wo=1e-8;function wy(n){return Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2))}function Zh(n,e){return(n[0]*e[0]+n[1]*e[1])/(wy(n)*wy(e))}function yy(n,e){return(n[0]*e[1]<n[1]*e[0]?-1:1)*Math.acos(Zh(n,e))}function by(n){return n*n*n}function By(n){return 3*n*n*(1-n)}function Cy(n){return 3*n*(1-n)*(1-n)}function Ey(n){return(1-n)*(1-n)*(1-n)}function xy(n){return n*n}function Sy(n){return 2*n*(1-n)}function Fy(n){return(1-n)*(1-n)}class dt{constructor(e,t,r){this.document=e,this.name=t,this.value=r,this.isNormalizedColor=!1}static empty(e){return new dt(e,"EMPTY","")}split(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:t,name:r}=this;return mo(this.getString()).trim().split(e).map(i=>new dt(t,r,i))}hasValue(e){var{value:t}=this;return t!==null&&t!==""&&(e||t!==0)&&typeof t<"u"}isString(e){var{value:t}=this,r=typeof t=="string";return!r||!e?r:e.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:t}=this,r=parseFloat(t);return this.isString(/%$/)&&(r/=100),r}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=xT(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,i]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:A}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(A.computeSize("x"),A.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(A.computeSize("x"),A.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*A.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*A.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 this.getNumber()*15;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()*A.computeSize(r);default:{var s=this.getNumber();return t&&s<1?s*A.computeSize(r):s}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3: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 e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,e,t);if(typeof r.createPattern=="function"){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,e,t)}return null}getTextBaseline(){return this.hasValue()?dt.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),r=t.length,i=0,A=0;A<r&&(t[A]===","&&i++,i!==3);A++);if(e.hasValue()&&this.isString()&&i!==3){var s=new dy(t);s.ok&&(s.alpha=e.getNumber(),t=s.toRGBA())}return new dt(this.document,this.name,t)}}dt.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 FT{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,t){this.viewPorts.push({width:e,height:t})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return typeof e=="number"?e:e==="x"?this.width:e==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class qr{constructor(e,t){this.x=e,this.y=t}static parse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[r=t,i=t]=mi(e);return new qr(r,i)}static parseScale(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=t,i=r]=mi(e);return new qr(r,i)}static parsePath(e){for(var t=mi(e),r=t.length,i=[],A=0;A<r;A+=2)i.push(new qr(t[A],t[A+1]));return i}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:t,y:r}=this,i=t*e[0]+r*e[2]+e[4],A=t*e[1]+r*e[3]+e[5];this.x=i,this.y=A}}class _T{constructor(e){this.screen=e,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:e,onClick:t,onMouseMove:r}=this,i=e.ctx.canvas;i.onclick=t,i.onmousemove=r,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:r}=this,{style:i}=e.ctx.canvas;i&&(i.cursor=""),t.forEach((A,s)=>{for(var{run:a}=A,o=r[s];o;)a(o),o=o.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((A,s)=>{var{x:a,y:o}=A;!i[s]&&t.isPointInPath&&t.isPointInPath(a,o)&&(i[s]=e)})}}checkBoundingBox(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((A,s)=>{var{x:a,y:o}=A;!i[s]&&t.isPointInBox(a,o)&&(i[s]=e)})}}mapXY(e,t){for(var{window:r,ctx:i}=this.screen,A=new qr(e,t),s=i.canvas;s;)A.x-=s.offsetLeft,A.y-=s.offsetTop,s=s.offsetParent;return r.scrollX&&(A.x+=r.scrollX),r.scrollY&&(A.y+=r.scrollY),A}onClick(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:r,run(i){i.onClick&&i.onClick()}})}onMouseMove(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:r,run(i){i.onMouseMove&&i.onMouseMove()}})}}var TT=typeof window<"u"?window:null,IT=typeof fetch<"u"?fetch.bind(void 0):null;class ac{constructor(e){var{fetch:t=IT,window:r=TT}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new FT,this.mouse=new _T(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(t=>t());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:r,aspectRatio:i,width:A,desiredWidth:s,height:a,desiredHeight:o,minX:l=0,minY:u=0,refX:f,refY:h,clip:c=!1,clipX:m=0,clipY:g=0}=e,w=mo(i).replace(/^defer\s/,""),[p,v]=w.split(" "),b=p||"xMidYMid",B=v||"meet",T=A/s,M=a/o,D=Math.min(T,M),j=Math.max(T,M),R=s,ae=o;B==="meet"&&(R*=D,ae*=D),B==="slice"&&(R*=j,ae*=j);var L=new dt(t,"refX",f),x=new dt(t,"refY",h),Q=L.hasValue()&&x.hasValue();if(Q&&r.translate(-D*L.getPixels("x"),-D*x.getPixels("y")),c){var C=D*m,z=D*g;r.beginPath(),r.moveTo(C,z),r.lineTo(A,z),r.lineTo(A,a),r.lineTo(C,a),r.closePath(),r.clip()}if(!Q){var Y=B==="meet"&&D===M,V=B==="slice"&&j===M,ie=B==="meet"&&D===T,Ae=B==="slice"&&j===T;b.startsWith("xMid")&&(Y||V)&&r.translate(A/2-R/2,0),b.endsWith("YMid")&&(ie||Ae)&&r.translate(0,a/2-ae/2),b.startsWith("xMax")&&(Y||V)&&r.translate(A-R,0),b.endsWith("YMax")&&(ie||Ae)&&r.translate(0,a-ae)}switch(!0){case b==="none":r.scale(T,M);break;case B==="meet":r.scale(D,D);break;case B==="slice":r.scale(j,j);break}r.translate(-l,-u)}start(e){var{enableRedraw:t=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:A=!1,ignoreClear:s=!1,forceRedraw:a,scaleWidth:o,scaleHeight:l,offsetX:u,offsetY:f}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:h,mouse:c}=this,m=1e3/h;if(this.frameDuration=m,this.readyPromise=new Promise(b=>{this.resolveReady=b}),this.isReady()&&this.render(e,A,s,o,l,u,f),!!t){var g=Date.now(),w=g,p=0,v=()=>{g=Date.now(),p=g-w,p>=m&&(w=g-p%m,this.shouldUpdate(i,a)&&(this.render(e,A,s,o,l,u,f),c.runEvents())),this.intervalId=ly(v)};r||c.start(),this.intervalId=ly(v)}}stop(){this.intervalId&&(ly.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:r}=this,i=this.animations.reduce((A,s)=>s.update(r)||A,!1);if(i)return!0}return!!(typeof t=="function"&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,t,r,i,A,s,a){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:l,viewPort:u,ctx:f,isFirstRender:h}=this,c=f.canvas;u.clear(),c.width&&c.height?u.setCurrent(c.width,c.height):u.setCurrent(o,l);var m=e.getStyle("width"),g=e.getStyle("height");!t&&(h||typeof i!="number"&&typeof A!="number")&&(m.hasValue()&&(c.width=m.getPixels("x"),c.style&&(c.style.width="".concat(c.width,"px"))),g.hasValue()&&(c.height=g.getPixels("y"),c.style&&(c.style.height="".concat(c.height,"px"))));var w=c.clientWidth||c.width,p=c.clientHeight||c.height;if(t&&m.hasValue()&&g.hasValue()&&(w=m.getPixels("x"),p=g.getPixels("y")),u.setCurrent(w,p),typeof s=="number"&&e.getAttribute("x",!0).setValue(s),typeof a=="number"&&e.getAttribute("y",!0).setValue(a),typeof i=="number"||typeof A=="number"){var v=mi(e.getAttribute("viewBox").getString()),b=0,B=0;if(typeof i=="number"){var T=e.getStyle("width");T.hasValue()?b=T.getPixels("x")/i:isNaN(v[2])||(b=v[2]/i)}if(typeof A=="number"){var M=e.getStyle("height");M.hasValue()?B=M.getPixels("y")/A:isNaN(v[3])||(B=v[3]/A)}b||(b=B),B||(B=b),e.getAttribute("width",!0).setValue(i),e.getAttribute("height",!0).setValue(A);var D=e.getStyle("transform",!0,!0);D.setValue("".concat(D.getString()," scale(").concat(1/b,", ").concat(1/B,")"))}r||f.clearRect(0,0,w,p),e.render(f),h&&(this.isFirstRender=!1)}}ac.defaultWindow=TT,ac.defaultFetch=IT;var{defaultFetch:HG}=ac,qG=typeof DOMParser<"u"?DOMParser:null;class ed{constructor(){var{fetch:e=HG,DOMParser:t=qG}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return Ss(function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return Ss(function*(){var r=yield t.fetch(e),i=yield r.text();return t.parseFromString(i)})()}}class UT{constructor(e,t){this.type="translate",this.point=null,this.point=qr.parse(t)}apply(e){var{x:t,y:r}=this.point;e.translate(t||0,r||0)}unapply(e){var{x:t,y:r}=this.point;e.translate(-1*t||0,-1*r||0)}applyToPoint(e){var{x:t,y:r}=this.point;e.applyTransform([1,0,0,1,t||0,r||0])}}class NT{constructor(e,t,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=mi(t);this.angle=new dt(e,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(e){var{cx:t,cy:r,originX:i,originY:A,angle:s}=this,a=t+i.getPixels("x"),o=r+A.getPixels("y");e.translate(a,o),e.rotate(s.getRadians()),e.translate(-a,-o)}unapply(e){var{cx:t,cy:r,originX:i,originY:A,angle:s}=this,a=t+i.getPixels("x"),o=r+A.getPixels("y");e.translate(a,o),e.rotate(-1*s.getRadians()),e.translate(-a,-o)}applyToPoint(e){var{cx:t,cy:r,angle:i}=this,A=i.getRadians();e.applyTransform([1,0,0,1,t||0,r||0]),e.applyTransform([Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0]),e.applyTransform([1,0,0,1,-t||0,-r||0])}}class LT{constructor(e,t,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=qr.parseScale(t);(i.x===0||i.y===0)&&(i.x=wo,i.y=wo),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(e){var{scale:{x:t,y:r},originX:i,originY:A}=this,s=i.getPixels("x"),a=A.getPixels("y");e.translate(s,a),e.scale(t,r||t),e.translate(-s,-a)}unapply(e){var{scale:{x:t,y:r},originX:i,originY:A}=this,s=i.getPixels("x"),a=A.getPixels("y");e.translate(s,a),e.scale(1/t,1/r||t),e.translate(-s,-a)}applyToPoint(e){var{x:t,y:r}=this.scale;e.applyTransform([t||0,0,0,r||0,0,0])}}class _y{constructor(e,t,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=mi(t),this.originX=r[0],this.originY=r[1]}apply(e){var{originX:t,originY:r,matrix:i}=this,A=t.getPixels("x"),s=r.getPixels("y");e.translate(A,s),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),e.translate(-A,-s)}unapply(e){var{originX:t,originY:r,matrix:i}=this,A=i[0],s=i[2],a=i[4],o=i[1],l=i[3],u=i[5],f=0,h=0,c=1,m=1/(A*(l*c-u*h)-s*(o*c-u*f)+a*(o*h-l*f)),g=t.getPixels("x"),w=r.getPixels("y");e.translate(g,w),e.transform(m*(l*c-u*h),m*(u*f-o*c),m*(a*h-s*c),m*(A*c-a*f),m*(s*u-a*l),m*(a*o-A*u)),e.translate(-g,-w)}applyToPoint(e){e.applyTransform(this.matrix)}}class Ty extends _y{constructor(e,t,r){super(e,t,r),this.type="skew",this.angle=null,this.angle=new dt(e,"angle",t)}}class OT extends Ty{constructor(e,t,r){super(e,t,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class QT extends Ty{constructor(e,t,r){super(e,t,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function jG(n){return mo(n).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function KG(n){var[e,t]=n.split("(");return[e.trim(),t.trim().replace(")","")]}class va{constructor(e,t,r){this.document=e,this.transforms=[];var i=jG(t);i.forEach(A=>{if(A!=="none"){var[s,a]=KG(A),o=va.transformTypes[s];typeof o<"u"&&this.transforms.push(new o(this.document,a,r))}})}static fromElement(e,t){var r=t.getStyle("transform",!1,!0),[i,A=i]=t.getStyle("transform-origin",!1,!0).split(),s=[i,A];return r.hasValue()?new va(e,r.getString(),s):null}apply(e){for(var{transforms:t}=this,r=t.length,i=0;i<r;i++)t[i].apply(e)}unapply(e){for(var{transforms:t}=this,r=t.length,i=r-1;i>=0;i--)t[i].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,r=t.length,i=0;i<r;i++)t[i].applyToPoint(e)}}va.transformTypes={translate:UT,rotate:NT,scale:LT,matrix:_y,skewX:OT,skewY:QT};let Or=class i2{constructor(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=t,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=[],!(!t||t.nodeType!==1)){if(Array.from(t.attributes).forEach(a=>{var o=ET(a.nodeName);this.attributes[o]=new dt(e,o,a.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(a=>a.trim());i.forEach(a=>{if(a){var[o,l]=a.split(":").map(u=>u.trim());this.styles[o]=new dt(e,o,l)}})}var{definitions:A}=e,s=this.getAttribute("id");s.hasValue()&&(A[s.getString()]||(A[s.getString()]=this)),Array.from(t.childNodes).forEach(a=>{if(a.nodeType===1)this.addChild(a);else if(r&&(a.nodeType===3||a.nodeType===4)){var o=e.createTextNode(a);o.getText().length>0&&this.addChild(o)}})}}getAttribute(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[e];if(!r&&t){var i=new dt(this.document,e,"");return this.attributes[e]=i,i}return r||dt.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return dt.empty(this.document)}getStyle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[e];if(i)return i;var A=this.getAttribute(e);if(A!=null&&A.hasValue())return this.styles[e]=A,A;if(!r){var{parent:s}=this;if(s){var a=s.getStyle(e);if(a!=null&&a.hasValue())return a}}if(t){var o=new dt(this.document,e,"");return this.styles[e]=o,o}return i||dt.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=va.fromElement(this.document,this);t&&t.apply(e);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(e){var t=e instanceof i2?e:this.document.createElement(e);t.parent=this,i2.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t,{node:r}=this;if(typeof r.matches=="function")return r.matches(e);var i=(t=r.getAttribute)===null||t===void 0?void 0:t.call(r,"class");return!i||i===""?!1:i.split(" ").some(A=>".".concat(A)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var r in e)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=e[r],A=t[r];if(i)for(var s in i){var a=this.stylesSpecificity[s];typeof a>"u"&&(a="000"),A>=a&&(this.styles[s]=i[s],this.stylesSpecificity[s]=A)}}}removeStyles(e,t){var r=t.reduce((i,A)=>{var s=e.getStyle(A);if(!s.hasValue())return i;var a=s.getString();return s.setValue(""),[...i,[A,a]]},[]);return r}restoreStyles(e,t){t.forEach(r=>{var[i,A]=r;e.getStyle(i,!0).setValue(A)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}};Or.ignoreChildTypes=["title"];class RT extends Or{constructor(e,t,r){super(e,t,r)}}function VG(n){var e=n.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function GG(n){return typeof process>"u"?n:n.trim().split(",").map(VG).join(",")}function zG(n){if(!n)return"";var e=n.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 WG(n){if(!n)return"";var e=n.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 Gn{constructor(e,t,r,i,A,s){var a=s?typeof s=="string"?Gn.parse(s):s:{};this.fontFamily=A||a.fontFamily,this.fontSize=i||a.fontSize,this.fontStyle=e||a.fontStyle,this.fontWeight=r||a.fontWeight,this.fontVariant=t||a.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r="",i="",A="",s="",a="",o=mo(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return o.forEach(u=>{switch(!0){case(!l.fontStyle&&Gn.styles.includes(u)):u!=="inherit"&&(r=u),l.fontStyle=!0;break;case(!l.fontVariant&&Gn.variants.includes(u)):u!=="inherit"&&(i=u),l.fontStyle=!0,l.fontVariant=!0;break;case(!l.fontWeight&&Gn.weights.includes(u)):u!=="inherit"&&(A=u),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:u!=="inherit"&&([s]=u.split("/")),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:u!=="inherit"&&(a+=u)}}),new Gn(r,i,A,s,a,t)}toString(){return[zG(this.fontStyle),this.fontVariant,WG(this.fontWeight),this.fontSize,GG(this.fontFamily)].join(" ").trim()}}Gn.styles="normal|italic|oblique|inherit",Gn.variants="normal|small-caps|inherit",Gn.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class Wi{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=r,this.y2=i,this.addPoint(e,t),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(e,t){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof t<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:r,x2:i,y2:A}=e;this.addPoint(t,r),this.addPoint(i,A)}}sumCubic(e,t,r,i,A){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*r+3*(1-e)*Math.pow(e,2)*i+Math.pow(e,3)*A}bezierCurveAdd(e,t,r,i,A){var s=6*t-12*r+6*i,a=-3*t+9*r-9*i+3*A,o=3*r-3*t;if(a===0){if(s===0)return;var l=-o/s;0<l&&l<1&&(e?this.addX(this.sumCubic(l,t,r,i,A)):this.addY(this.sumCubic(l,t,r,i,A)));return}var u=Math.pow(s,2)-4*o*a;if(!(u<0)){var f=(-s+Math.sqrt(u))/(2*a);0<f&&f<1&&(e?this.addX(this.sumCubic(f,t,r,i,A)):this.addY(this.sumCubic(f,t,r,i,A)));var h=(-s-Math.sqrt(u))/(2*a);0<h&&h<1&&(e?this.addX(this.sumCubic(h,t,r,i,A)):this.addY(this.sumCubic(h,t,r,i,A)))}}addBezierCurve(e,t,r,i,A,s,a,o){this.addPoint(e,t),this.addPoint(a,o),this.bezierCurveAdd(!0,e,r,A,a),this.bezierCurveAdd(!1,t,i,s,o)}addQuadraticCurve(e,t,r,i,A,s){var a=e+.6666666666666666*(r-e),o=t+2/3*(i-t),l=a+1/3*(A-e),u=o+1/3*(s-t);this.addBezierCurve(e,t,a,l,o,u,A,s)}isPointInBox(e,t){var{x1:r,y1:i,x2:A,y2:s}=this;return r<=e&&e<=A&&i<=t&&t<=s}}class Nt extends ze{constructor(e){super(e.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 qr(0,0),this.control=new qr(0,0),this.current=new qr(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:t}=this;return e>=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new qr(this.command[e],this.command[t]);return this.makeAbsolute(r)}getAsControlPoint(e,t){var r=this.getPoint(e,t);return this.control=r,r}getAsCurrentPoint(e,t){var r=this.getPoint(e,t);return this.current=r,r}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==ze.CURVE_TO&&e!==ze.SMOOTH_CURVE_TO&&e!==ze.QUAD_TO&&e!==ze.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:r},control:{x:i,y:A}}=this,s=new qr(2*t-i,2*r-A);return s}makeAbsolute(e){if(this.command.relative){var{x:t,y:r}=this.current;e.x+=t,e.y+=r}return e}addMarker(e,t,r){var{points:i,angles:A}=this;r&&A.length>0&&!A[A.length-1]&&(A[A.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,r=0;r<t;r++)if(!e[r]){for(var i=r+1;i<t;i++)if(e[i]){e[r]=e[i];break}}return e}}class wa extends Or{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,t=this;t;){var r=t.getStyle("opacity",!1,!0);r.hasValue(!0)&&(e*=r.getNumber()),t=t.parent}return e}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!t){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),A=this.getStyle("stroke"),s=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var a=r.getFillStyleDefinition(this,i);a&&(e.fillStyle=a)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var o=r.getColor();o!=="inherit"&&(e.fillStyle=o==="none"?"rgba(0,0,0,0)":o)}if(i.hasValue()){var l=new dt(this.document,"fill",e.fillStyle).addOpacity(i).getColor();e.fillStyle=l}if(A.isUrlDefinition()){var u=A.getFillStyleDefinition(this,s);u&&(e.strokeStyle=u)}else if(A.hasValue()){A.getString()==="currentColor"&&A.setValue(this.getStyle("color").getColor());var f=A.getString();f!=="inherit"&&(e.strokeStyle=f==="none"?"rgba(0,0,0,0)":f)}if(s.hasValue()){var h=new dt(this.document,"stroke",e.strokeStyle).addOpacity(s).getString();e.strokeStyle=h}var c=this.getStyle("stroke-width");if(c.hasValue()){var m=c.getPixels();e.lineWidth=m||wo}var g=this.getStyle("stroke-linecap"),w=this.getStyle("stroke-linejoin"),p=this.getStyle("stroke-miterlimit"),v=this.getStyle("stroke-dasharray"),b=this.getStyle("stroke-dashoffset");if(g.hasValue()&&(e.lineCap=g.getString()),w.hasValue()&&(e.lineJoin=w.getString()),p.hasValue()&&(e.miterLimit=p.getNumber()),v.hasValue()&&v.getString()!=="none"){var B=mi(v.getString());typeof e.setLineDash<"u"?e.setLineDash(B):typeof e.webkitLineDash<"u"?e.webkitLineDash=B:typeof e.mozDash<"u"&&!(B.length===1&&B[0]===0)&&(e.mozDash=B);var T=b.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=T:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=T:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=T)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var M=this.getStyle("font"),D=this.getStyle("font-style"),j=this.getStyle("font-variant"),R=this.getStyle("font-weight"),ae=this.getStyle("font-size"),L=this.getStyle("font-family"),x=new Gn(D.getString(),j.getString(),R.getString(),ae.hasValue()?"".concat(ae.getPixels(!0),"px"):"",L.getString(),Gn.parse(M.getString(),e.font));D.setValue(x.fontStyle),j.setValue(x.fontVariant),R.setValue(x.fontWeight),ae.setValue(x.fontSize),L.setValue(x.fontFamily),e.font=x.toString(),ae.isPixels()&&(this.document.emSize=ae.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class tr extends wa{constructor(e,t,r){super(e,t,r),this.type="path",this.pathParser=null,this.pathParser=new Nt(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,r=new Wi;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case Nt.MOVE_TO:this.pathM(e,r);break;case Nt.LINE_TO:this.pathL(e,r);break;case Nt.HORIZ_LINE_TO:this.pathH(e,r);break;case Nt.VERT_LINE_TO:this.pathV(e,r);break;case Nt.CURVE_TO:this.pathC(e,r);break;case Nt.SMOOTH_CURVE_TO:this.pathS(e,r);break;case Nt.QUAD_TO:this.pathQ(e,r);break;case Nt.SMOOTH_QUAD_TO:this.pathT(e,r);break;case Nt.ARC:this.pathA(e,r);break;case Nt.CLOSE_PATH:this.pathZ(e,r);break}return r}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),r=e.getMarkerAngles(),i=t.map((A,s)=>[A,r[s]]);return i}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");e.fillStyle!==""&&(t.getString("inherit")!=="inherit"?e.fill(t.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var r=this.getMarkers();if(r){var i=r.length-1,A=this.getStyle("marker-start"),s=this.getStyle("marker-mid"),a=this.getStyle("marker-end");if(A.isUrlDefinition()){var o=A.getDefinition(),[l,u]=r[0];o.render(e,l,u)}if(s.isUrlDefinition())for(var f=s.getDefinition(),h=1;h<i;h++){var[c,m]=r[h];f.render(e,c,m)}if(a.isUrlDefinition()){var g=a.getDefinition(),[w,p]=r[i];g.render(e,w,p)}}}static pathM(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}pathM(e,t){var{pathParser:r}=this,{point:i}=tr.pathM(r),{x:A,y:s}=i;r.addMarker(i),t.addPoint(A,s),e&&e.moveTo(A,s)}static pathL(e){var{current:t}=e,r=e.getAsCurrentPoint();return{current:t,point:r}}pathL(e,t){var{pathParser:r}=this,{current:i,point:A}=tr.pathL(r),{x:s,y:a}=A;r.addMarker(A,i),t.addPoint(s,a),e&&e.lineTo(s,a)}static pathH(e){var{current:t,command:r}=e,i=new qr((r.relative?t.x:0)+r.x,t.y);return e.current=i,{current:t,point:i}}pathH(e,t){var{pathParser:r}=this,{current:i,point:A}=tr.pathH(r),{x:s,y:a}=A;r.addMarker(A,i),t.addPoint(s,a),e&&e.lineTo(s,a)}static pathV(e){var{current:t,command:r}=e,i=new qr(t.x,(r.relative?t.y:0)+r.y);return e.current=i,{current:t,point:i}}pathV(e,t){var{pathParser:r}=this,{current:i,point:A}=tr.pathV(r),{x:s,y:a}=A;r.addMarker(A,i),t.addPoint(s,a),e&&e.lineTo(s,a)}static pathC(e){var{current:t}=e,r=e.getPoint("x1","y1"),i=e.getAsControlPoint("x2","y2"),A=e.getAsCurrentPoint();return{current:t,point:r,controlPoint:i,currentPoint:A}}pathC(e,t){var{pathParser:r}=this,{current:i,point:A,controlPoint:s,currentPoint:a}=tr.pathC(r);r.addMarker(a,s,A),t.addBezierCurve(i.x,i.y,A.x,A.y,s.x,s.y,a.x,a.y),e&&e.bezierCurveTo(A.x,A.y,s.x,s.y,a.x,a.y)}static pathS(e){var{current:t}=e,r=e.getReflectedControlPoint(),i=e.getAsControlPoint("x2","y2"),A=e.getAsCurrentPoint();return{current:t,point:r,controlPoint:i,currentPoint:A}}pathS(e,t){var{pathParser:r}=this,{current:i,point:A,controlPoint:s,currentPoint:a}=tr.pathS(r);r.addMarker(a,s,A),t.addBezierCurve(i.x,i.y,A.x,A.y,s.x,s.y,a.x,a.y),e&&e.bezierCurveTo(A.x,A.y,s.x,s.y,a.x,a.y)}static pathQ(e){var{current:t}=e,r=e.getAsControlPoint("x1","y1"),i=e.getAsCurrentPoint();return{current:t,controlPoint:r,currentPoint:i}}pathQ(e,t){var{pathParser:r}=this,{current:i,controlPoint:A,currentPoint:s}=tr.pathQ(r);r.addMarker(s,A,A),t.addQuadraticCurve(i.x,i.y,A.x,A.y,s.x,s.y),e&&e.quadraticCurveTo(A.x,A.y,s.x,s.y)}static pathT(e){var{current:t}=e,r=e.getReflectedControlPoint();e.control=r;var i=e.getAsCurrentPoint();return{current:t,controlPoint:r,currentPoint:i}}pathT(e,t){var{pathParser:r}=this,{current:i,controlPoint:A,currentPoint:s}=tr.pathT(r);r.addMarker(s,A,A),t.addQuadraticCurve(i.x,i.y,A.x,A.y,s.x,s.y),e&&e.quadraticCurveTo(A.x,A.y,s.x,s.y)}static pathA(e){var{current:t,command:r}=e,{rX:i,rY:A,xRot:s,lArcFlag:a,sweepFlag:o}=r,l=s*(Math.PI/180),u=e.getAsCurrentPoint(),f=new qr(Math.cos(l)*(t.x-u.x)/2+Math.sin(l)*(t.y-u.y)/2,-Math.sin(l)*(t.x-u.x)/2+Math.cos(l)*(t.y-u.y)/2),h=Math.pow(f.x,2)/Math.pow(i,2)+Math.pow(f.y,2)/Math.pow(A,2);h>1&&(i*=Math.sqrt(h),A*=Math.sqrt(h));var c=(a===o?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(A,2)-Math.pow(i,2)*Math.pow(f.y,2)-Math.pow(A,2)*Math.pow(f.x,2))/(Math.pow(i,2)*Math.pow(f.y,2)+Math.pow(A,2)*Math.pow(f.x,2)));isNaN(c)&&(c=0);var m=new qr(c*i*f.y/A,c*-A*f.x/i),g=new qr((t.x+u.x)/2+Math.cos(l)*m.x-Math.sin(l)*m.y,(t.y+u.y)/2+Math.sin(l)*m.x+Math.cos(l)*m.y),w=yy([1,0],[(f.x-m.x)/i,(f.y-m.y)/A]),p=[(f.x-m.x)/i,(f.y-m.y)/A],v=[(-f.x-m.x)/i,(-f.y-m.y)/A],b=yy(p,v);return Zh(p,v)<=-1&&(b=Math.PI),Zh(p,v)>=1&&(b=0),{currentPoint:u,rX:i,rY:A,sweepFlag:o,xAxisRotation:l,centp:g,a1:w,ad:b}}pathA(e,t){var{pathParser:r}=this,{currentPoint:i,rX:A,rY:s,sweepFlag:a,xAxisRotation:o,centp:l,a1:u,ad:f}=tr.pathA(r),h=1-a?1:-1,c=u+h*(f/2),m=new qr(l.x+A*Math.cos(c),l.y+s*Math.sin(c));if(r.addMarkerAngle(m,c-h*Math.PI/2),r.addMarkerAngle(i,c-h*Math.PI),t.addPoint(i.x,i.y),e&&!isNaN(u)&&!isNaN(f)){var g=A>s?A:s,w=A>s?1:A/s,p=A>s?s/A:1;e.translate(l.x,l.y),e.rotate(o),e.scale(w,p),e.arc(0,0,g,u,u+f,!!(1-a)),e.scale(1/w,1/p),e.rotate(-o),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){tr.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class Iy extends tr{constructor(e,t,r){super(e,t,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 _s extends wa{constructor(e,t,r){super(e,t,new.target===_s?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,t);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.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(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((r,i)=>{var A=this.getChildBoundingBox(e,this,this,i);t?t.addBoundingBox(A):t=A}),t}getFontSize(){var{document:e,parent:t}=this,r=Gn.parse(e.ctx.font).fontSize,i=t.getStyle("font-size").getNumber(r);return i}getTElementBoundingBox(e){var t=this.getFontSize();return new Wi(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,r){var i=t[r],A=null;if(e.isArabic){var s=t.length,a=t[r-1],o=t[r+1],l="isolated";if((r===0||a===" ")&&r<s-1&&o!==" "&&(l="terminal"),r>0&&a!==" "&&r<s-1&&o!==" "&&(l="medial"),r>0&&a!==" "&&(r===s-1||o===" ")&&(l="initial"),typeof e.glyphs[i]<"u"){var u=e.glyphs[i];A=u instanceof Iy?u:u[l]}}else A=e.glyphs[i];return A||(A=e.missingGlyph),A}getText(){return""}getTextFromNode(e){var t=e||this.node,r=Array.from(t.parentNode.childNodes),i=r.indexOf(t),A=r.length-1,s=mo(t.textContent||"");return i===0&&(s=BT(s)),i===A&&(s=CT(s)),s}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((r,i)=>{this.renderChild(e,this,this,i)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:t,parent:r}=this,i=this.getText(),A=r.getStyle("font-family").getDefinition();if(A){for(var{unitsPerEm:s}=A.fontFace,a=Gn.parse(t.ctx.font),o=r.getStyle("font-size").getNumber(a.fontSize),l=r.getStyle("font-style").getString(a.fontStyle),u=o/s,f=A.isRTL?i.split("").reverse().join(""):i,h=mi(r.getAttribute("dx").getString()),c=f.length,m=0;m<c;m++){var g=this.getGlyph(A,f,m);e.translate(this.x,this.y),e.scale(u,-u);var w=e.lineWidth;e.lineWidth=e.lineWidth*s/o,l==="italic"&&e.transform(1,0,.4,1,0,0),g.render(e),l==="italic"&&e.transform(1,0,-.4,1,0,0),e.lineWidth=w,e.scale(1/u,-1/u),e.translate(-this.x,-this.y),this.x+=o*(g.horizAdvX||A.horizAdvX)/s,typeof h[m]<"u"&&!isNaN(h[m])&&(this.x+=h[m])}return}var{x:p,y:v}=this;e.fillStyle&&e.fillText(i,p,v),e.strokeStyle&&e.strokeText(i,p,v)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),r=!1,i=0;t==="start"&&!r||t==="end"&&r?i=e.x-this.minX:t==="end"&&!r||t==="start"&&r?i=e.x-this.maxX:i=e.x-(this.minX+this.maxX)/2;for(var A=this.textChunkStart;A<this.leafTexts.length;A++)this.leafTexts[A].x+=i;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((t,r)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,r,i){var A=r.children[i];A.children.length>0?A.children.forEach((s,a)=>{t.adjustChildCoordinatesRecursiveCore(e,t,A,a)}):this.adjustChildCoordinates(e,t,r,i)}adjustChildCoordinates(e,t,r,i){var A=r.children[i];if(typeof A.measureText!="function")return A;e.save(),A.setContext(e,!0);var s=A.getAttribute("x"),a=A.getAttribute("y"),o=A.getAttribute("dx"),l=A.getAttribute("dy"),u=A.getStyle("font-family").getDefinition(),f=!!u&&u.isRTL;i===0&&(s.hasValue()||s.setValue(A.getInheritedAttribute("x")),a.hasValue()||a.setValue(A.getInheritedAttribute("y")),o.hasValue()||o.setValue(A.getInheritedAttribute("dx")),l.hasValue()||l.setValue(A.getInheritedAttribute("dy")));var h=A.measureText(e);return f&&(t.x-=h),s.hasValue()?(t.applyAnchoring(),A.x=s.getPixels("x"),o.hasValue()&&(A.x+=o.getPixels("x"))):(o.hasValue()&&(t.x+=o.getPixels("x")),A.x=t.x),t.x=A.x,f||(t.x+=h),a.hasValue()?(A.y=a.getPixels("y"),l.hasValue()&&(A.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),A.y=t.y),t.y=A.y,t.leafTexts.push(A),t.minX=Math.min(t.minX,A.x,A.x+h),t.maxX=Math.max(t.maxX,A.x,A.x+h),A.clearContext(e),e.restore(),A}getChildBoundingBox(e,t,r,i){var A=r.children[i];if(typeof A.getBoundingBox!="function")return null;var s=A.getBoundingBox(e);return s?(A.children.forEach((a,o)=>{var l=t.getChildBoundingBox(e,t,A,o);s.addBoundingBox(l)}),s):null}renderChild(e,t,r,i){var A=r.children[i];A.render(e),A.children.forEach((s,a)=>{t.renderChild(e,t,A,a)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var r=this.getText(),i=this.measureTargetText(e,r);return this.measureCache=i,i}measureTargetText(e,t){if(!t.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var A=this.getFontSize(),s=i.isRTL?t.split("").reverse().join(""):t,a=mi(r.getAttribute("dx").getString()),o=s.length,l=0,u=0;u<o;u++){var f=this.getGlyph(i,s,u);l+=(f.horizAdvX||i.horizAdvX)*A/i.fontFace.unitsPerEm,typeof a[u]<"u"&&!isNaN(a[u])&&(l+=a[u])}return l}if(!e.measureText)return t.length*10;e.save(),this.setContext(e,!0);var{width:h}=e.measureText(t);return this.clearContext(e),e.restore(),h}getInheritedAttribute(e){for(var t=this;t instanceof _s&&t.isFirstChild();){var r=t.parent.getAttribute(e);if(r.hasValue(!0))return r.getValue("0");t=t.parent}return null}}class oc extends _s{constructor(e,t,r){super(e,t,new.target===oc?!0:r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class XG extends oc{constructor(){super(...arguments),this.type="textNode"}}class xl extends wa{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:r}=this,{screen:i,window:A}=r,s=e.canvas;if(i.setDefaults(e),s.style&&typeof e.font<"u"&&A&&typeof A.getComputedStyle<"u"){e.font=A.getComputedStyle(s).getPropertyValue("font");var a=new dt(r,"fontSize",Gn.parse(e.font).fontSize);a.hasValue()&&(r.rootEmSize=a.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:l}=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"),f=this.getAttribute("refY"),h=this.getAttribute("viewBox"),c=h.hasValue()?mi(h.getString()):null,m=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",g=0,w=0,p=0,v=0;c&&(g=c[0],w=c[1]),this.root||(o=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),this.type==="marker"&&(p=g,v=w,g=0,w=0)),i.viewPort.setCurrent(o,l),this.node&&(!this.parent||((t=this.node.parentNode)===null||t===void 0?void 0:t.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),c&&(o=c[2],l=c[3]),r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:o,height:i.viewPort.height,desiredHeight:l,minX:g,minY:w,refX:u.getValue(),refY:f.getValue(),clip:m,clipX:p,clipY:v}),c&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(o,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),A=this.getAttribute("height",!0),s=this.getAttribute("viewBox"),a=this.getAttribute("style"),o=i.getNumber(0),l=A.getNumber(0);if(r)if(typeof r=="string")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(e),A.setValue(t),s.hasValue()||s.setValue("0 0 ".concat(o||e," ").concat(l||t)),a.hasValue()){var f=this.getStyle("width"),h=this.getStyle("height");f.hasValue()&&f.setValue("".concat(e,"px")),h.hasValue()&&h.setValue("".concat(t,"px"))}}}class Uy extends tr{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),A=this.getStyle("height",!1,!0).getPixels("y"),s=this.getAttribute("rx"),a=this.getAttribute("ry"),o=s.getPixels("x"),l=a.getPixels("y");if(s.hasValue()&&!a.hasValue()&&(l=o),a.hasValue()&&!s.hasValue()&&(o=l),o=Math.min(o,i/2),l=Math.min(l,A/2),e){var u=4*((Math.sqrt(2)-1)/3);e.beginPath(),A>0&&i>0&&(e.moveTo(t+o,r),e.lineTo(t+i-o,r),e.bezierCurveTo(t+i-o+u*o,r,t+i,r+l-u*l,t+i,r+l),e.lineTo(t+i,r+A-l),e.bezierCurveTo(t+i,r+A-l+u*l,t+i-o+u*o,r+A,t+i-o,r+A),e.lineTo(t+o,r+A),e.bezierCurveTo(t+o-u*o,r+A,t,r+A-l+u*l,t,r+A-l),e.lineTo(t,r+l),e.bezierCurveTo(t,r+l-u*l,t+o-u*o,r,t+o,r),e.closePath())}return new Wi(t,r,t+i,r+A)}getMarkers(){return null}}class PT extends tr{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return e&&i>0&&(e.beginPath(),e.arc(t,r,i,0,Math.PI*2,!1),e.closePath()),new Wi(t-i,r-i,t+i,r+i)}getMarkers(){return null}}class kT extends tr{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),A=this.getAttribute("cx").getPixels("x"),s=this.getAttribute("cy").getPixels("y");return e&&r>0&&i>0&&(e.beginPath(),e.moveTo(A+r,s),e.bezierCurveTo(A+r,s+t*i,A+t*r,s+i,A,s+i),e.bezierCurveTo(A-t*r,s+i,A-r,s+t*i,A-r,s),e.bezierCurveTo(A-r,s-t*i,A-t*r,s-i,A,s-i),e.bezierCurveTo(A+t*r,s-i,A+r,s-t*i,A+r,s),e.closePath()),new Wi(A-r,s-i,A+r,s+i)}getMarkers(){return null}}class DT extends tr{constructor(){super(...arguments),this.type="line"}getPoints(){return[new qr(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new qr(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:r},{x:i,y:A}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,r),e.lineTo(i,A)),new Wi(t,r,i,A)}getMarkers(){var[e,t]=this.getPoints(),r=e.angleTo(t);return[[e,r],[t,r]]}}class Ny extends tr{constructor(e,t,r){super(e,t,r),this.type="polyline",this.points=[],this.points=qr.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:r,y:i}]=t,A=new Wi(r,i);return e&&(e.beginPath(),e.moveTo(r,i)),t.forEach(s=>{var{x:a,y:o}=s;A.addPoint(a,o),e&&e.lineTo(a,o)}),A}getMarkers(){var{points:e}=this,t=e.length-1,r=[];return e.forEach((i,A)=>{A!==t&&r.push([i,i.angleTo(e[A+1])])}),r.length>0&&r.push([e[e.length-1],r[r.length-1][1]]),r}}class MT extends Ny{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:r,y:i}]=this.points;return e&&(e.lineTo(r,i),e.closePath()),t}}class HT extends Or{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,r){var i=this.getStyle("width").getPixels("x",!0),A=this.getStyle("height").getPixels("y",!0),s=new xl(this.document,null);s.attributes.viewBox=new dt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.width=new dt(this.document,"width","".concat(i,"px")),s.attributes.height=new dt(this.document,"height","".concat(A,"px")),s.attributes.transform=new dt(this.document,"transform",this.getAttribute("patternTransform").getValue()),s.children=this.children;var a=this.document.createCanvas(i,A),o=a.getContext("2d"),l=this.getAttribute("x"),u=this.getAttribute("y");l.hasValue()&&u.hasValue()&&o.translate(l.getPixels("x",!0),u.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var f=-1;f<=1;f++)for(var h=-1;h<=1;h++)o.save(),s.attributes.x=new dt(this.document,"x",f*a.width),s.attributes.y=new dt(this.document,"y",h*a.height),s.render(o),o.restore();var c=e.createPattern(a,"repeat");return c}}class qT extends Or{constructor(){super(...arguments),this.type="marker"}render(e,t,r){if(t){var{x:i,y:A}=t,s=this.getAttribute("orient").getString("auto"),a=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(i,A),s==="auto"&&e.rotate(r),a==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var o=new xl(this.document,null);o.type=this.type,o.attributes.viewBox=new dt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new dt(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new dt(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new dt(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new dt(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new dt(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new dt(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new dt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(e),e.restore(),a==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),s==="auto"&&e.rotate(-r),e.translate(-i,-A)}}}class jT extends Or{constructor(){super(...arguments),this.type="defs"}render(){}}class td extends wa{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new Wi;return this.children.forEach(r=>{t.addBoundingBox(r.getBoundingBox(e))}),t}}class Ly extends Or{constructor(e,t,r){super(e,t,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:A}=this;A.forEach(s=>{s.type==="stop"&&i.push(s)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:A}=i,s=this.getGradient(e,t);if(!s)return this.addParentOpacity(r,A[A.length-1].color);if(A.forEach(w=>{s.addColorStop(w.offset,this.addParentOpacity(r,w.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:a}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:l}=a.screen,[u]=l.viewPorts,f=new Uy(a,null);f.attributes.x=new dt(a,"x",-o/3),f.attributes.y=new dt(a,"y",-o/3),f.attributes.width=new dt(a,"width",o),f.attributes.height=new dt(a,"height",o);var h=new td(a,null);h.attributes.transform=new dt(a,"transform",this.getAttribute("gradientTransform").getValue()),h.children=[f];var c=new xl(a,null);c.attributes.x=new dt(a,"x",0),c.attributes.y=new dt(a,"y",0),c.attributes.width=new dt(a,"width",u.width),c.attributes.height=new dt(a,"height",u.height),c.children=[h];var m=a.createCanvas(u.width,u.height),g=m.getContext("2d");return g.fillStyle=s,c.render(g),g.createPattern(m,"no-repeat")}return s}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){if(e.hasValue()){var r=new dt(this.document,"color",t);return r.addOpacity(e).getColor()}return t}}class KT extends Ly{constructor(e,t,r){super(e,t,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=r?t.getBoundingBox(e):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 A=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),s=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),a=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 A===a&&s===o?null:e.createLinearGradient(A,s,a,o)}}class VT extends Ly{constructor(e,t,r){super(e,t,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=t.getBoundingBox(e);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 A=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),s=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=A,o=s;this.getAttribute("fx").hasValue()&&(a=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 l=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return e.createRadialGradient(a,o,u,A,s,l)}}class GT extends Or{constructor(e,t,r){super(e,t,r),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),A=this.getStyle("stop-opacity"),s=this.getStyle("stop-color",!0);s.getString()===""&&s.setValue("#000"),A.hasValue()&&(s=s.addOpacity(A)),this.offset=i,this.color=s.getColor()}}class rd extends Or{constructor(e,t,r){super(e,t,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.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 dt(e,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:r,to:i}=this.getProgress(),A=r.getNumber()+(i.getNumber()-r.getNumber())*t;return e==="%"&&(A*=100),"".concat(A).concat(e)}update(e){var{parent:t}=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(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=r.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,r.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var A=!1;if(this.begin<this.duration){var s=this.calcValue(),a=this.getAttribute("type");if(a.hasValue()){var o=a.getString();s="".concat(o,"(").concat(s,")")}r.setValue(s),A=!0}return A}getProgress(){var{document:e,values:t}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var i=r.progress*(t.getValue().length-1),A=Math.floor(i),s=Math.ceil(i);r.from=new dt(e,"from",parseFloat(t.getValue()[A])),r.to=new dt(e,"to",parseFloat(t.getValue()[s])),r.progress=(i-A)/(s-A)}else r.from=this.from,r.to=this.to;return r}}class zT extends rd{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:t,to:r}=this.getProgress(),i=new dy(t.getColor()),A=new dy(r.getColor());if(i.ok&&A.ok){var s=i.r+(A.r-i.r)*e,a=i.g+(A.g-i.g)*e,o=i.b+(A.b-i.b)*e;return"rgb(".concat(Math.floor(s),", ").concat(Math.floor(a),", ").concat(Math.floor(o),")")}return this.getAttribute("from").getColor()}}class WT extends rd{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:t,to:r}=this.getProgress(),i=mi(t.getString()),A=mi(r.getString()),s=i.map((a,o)=>{var l=A[o];return a+(l-a)*e}).join(" ");return s}}class XT extends Or{constructor(e,t,r){super(e,t,r),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=e,{children:A}=this;for(var s of A)switch(s.type){case"font-face":{this.fontFace=s;var a=s.getStyle("font-family");a.hasValue()&&(i[a.getString()]=this);break}case"missing-glyph":this.missingGlyph=s;break;case"glyph":{var o=s;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[o.unicode]>"u"&&(this.glyphs[o.unicode]=Object.create(null)),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o;break}}}render(){}}class YT extends Or{constructor(e,t,r){super(e,t,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 $T extends tr{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class JT extends _s{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}class ZT extends _s{constructor(e,t,r){super(e,t,r),this.type="a";var{childNodes:i}=t,A=i[0],s=i.length>0&&Array.from(i).every(a=>a.nodeType===3);this.hasText=s,this.text=s?this.getTextFromNode(A):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:r,y:i}=this,{mouse:A}=t.screen,s=new dt(t,"fontSize",Gn.parse(t.ctx.font).fontSize);A.isWorking()&&A.checkBoundingBox(this,new Wi(r,i-s.getPixels("y"),r+this.measureText(e),i))}else if(this.children.length>0){var a=new td(this.document,null);a.children=this.children,a.parent=this,a.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}function eI(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function nd(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?eI(Object(t),!0).forEach(function(r){sy(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):eI(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}class tI extends _s{constructor(e,t,r){super(e,t,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(e){var{dataArray:t}=this;e&&e.beginPath(),t.forEach(r=>{var{type:i,points:A}=r;switch(i){case Nt.LINE_TO:e&&e.lineTo(A[0],A[1]);break;case Nt.MOVE_TO:e&&e.moveTo(A[0],A[1]);break;case Nt.CURVE_TO:e&&e.bezierCurveTo(A[0],A[1],A[2],A[3],A[4],A[5]);break;case Nt.QUAD_TO:e&&e.quadraticCurveTo(A[0],A[1],A[2],A[3]);break;case Nt.ARC:{var[s,a,o,l,u,f,h,c]=A,m=o>l?o:l,g=o>l?1:o/l,w=o>l?l/o:1;e&&(e.translate(s,a),e.rotate(h),e.scale(g,w),e.arc(0,0,m,u,u+f,!!(1-c)),e.scale(1/g,1/w),e.rotate(-h),e.translate(-s,-a));break}case Nt.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,A=e.fillStyle;t==="underline"&&e.beginPath(),i.forEach((s,a)=>{var{p0:o,p1:l,rotation:u,text:f}=s;e.save(),e.translate(o.x,o.y),e.rotate(u),e.fillStyle&&e.fillText(f,0,0),e.strokeStyle&&e.strokeText(f,0,0),e.restore(),t==="underline"&&(a===0&&e.moveTo(o.x,o.y+r/8),e.lineTo(l.x,l.y+r/5))}),t==="underline"&&(e.lineWidth=r/20,e.strokeStyle=A,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,r,i,A,s,a,o,l){var u=s,f=this.measureText(e,o);o===" "&&t==="justify"&&r<i&&(f+=(i-r)/A),l>-1&&(u+=this.getLetterSpacingAt(l));var h=this.textHeight/20,c=this.getEquidistantPointOnPath(u,h,0),m=this.getEquidistantPointOnPath(u+f,h,0),g={p0:c,p1:m},w=c&&m?Math.atan2(m.y-c.y,m.x-c.x):0;if(a){var p=Math.cos(Math.PI/2+w)*a,v=Math.cos(-w)*a;g.p0=nd(nd({},c),{},{x:c.x+p,y:c.y+v}),g.p1=nd(nd({},m),{},{x:m.x+p,y:m.y+v})}return u+=f,{offset:u,segment:g,rotation:w}}measureText(e,t){var{measuresCache:r}=this,i=t||this.getText();if(r.has(i))return r.get(i);var A=this.measureTargetText(e,i);return r.set(i,A),A}setTextData(e){if(!this.glyphInfo){var t=this.getText(),r=t.split(""),i=t.split(" ").length-1,A=this.parent.getAttribute("dx").split().map(B=>B.getPixels("x")),s=this.parent.getAttribute("dy").getPixels("y"),a=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),u=0;!o.hasValue()||o.getValue()==="inherit"?u=l.getPixels():o.hasValue()&&o.getValue()!=="initial"&&o.getValue()!=="unset"&&(u=o.getPixels());var f=[],h=t.length;this.letterSpacingCache=f;for(var c=0;c<h;c++)f.push(typeof A[c]<"u"?A[c]:u);var m=f.reduce((B,T,M)=>M===0?0:B+T||0,0),g=this.measureText(e),w=Math.max(g+m,0);this.textWidth=g,this.textHeight=this.getFontSize(),this.glyphInfo=[];var p=this.getPathLength(),v=this.getStyle("startOffset").getNumber(0)*p,b=0;(a==="middle"||a==="center")&&(b=-w/2),(a==="end"||a==="right")&&(b=-w),b+=v,r.forEach((B,T)=>{var{offset:M,segment:D,rotation:j}=this.findSegmentToFitChar(e,a,w,p,i,b,s,B,T);b=M,!(!D.p0||!D.p1)&&this.glyphInfo.push({text:r[T],p0:D.p0,p1:D.p1,rotation:j})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:r}=e;for(r.reset();!r.isEnd();){var{current:i}=r,A=i?i.x:0,s=i?i.y:0,a=r.next(),o=a.type,l=[];switch(a.type){case Nt.MOVE_TO:this.pathM(r,l);break;case Nt.LINE_TO:o=this.pathL(r,l);break;case Nt.HORIZ_LINE_TO:o=this.pathH(r,l);break;case Nt.VERT_LINE_TO:o=this.pathV(r,l);break;case Nt.CURVE_TO:this.pathC(r,l);break;case Nt.SMOOTH_CURVE_TO:o=this.pathS(r,l);break;case Nt.QUAD_TO:this.pathQ(r,l);break;case Nt.SMOOTH_QUAD_TO:o=this.pathT(r,l);break;case Nt.ARC:l=this.pathA(r);break;case Nt.CLOSE_PATH:tr.pathZ(r);break}a.type!==Nt.CLOSE_PATH?t.push({type:o,points:l,start:{x:A,y:s},pathLength:this.calcLength(A,s,o,l)}):t.push({type:Nt.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:r,y:i}=tr.pathM(e).point;t.push(r,i)}pathL(e,t){var{x:r,y:i}=tr.pathL(e).point;return t.push(r,i),Nt.LINE_TO}pathH(e,t){var{x:r,y:i}=tr.pathH(e).point;return t.push(r,i),Nt.LINE_TO}pathV(e,t){var{x:r,y:i}=tr.pathV(e).point;return t.push(r,i),Nt.LINE_TO}pathC(e,t){var{point:r,controlPoint:i,currentPoint:A}=tr.pathC(e);t.push(r.x,r.y,i.x,i.y,A.x,A.y)}pathS(e,t){var{point:r,controlPoint:i,currentPoint:A}=tr.pathS(e);return t.push(r.x,r.y,i.x,i.y,A.x,A.y),Nt.CURVE_TO}pathQ(e,t){var{controlPoint:r,currentPoint:i}=tr.pathQ(e);t.push(r.x,r.y,i.x,i.y)}pathT(e,t){var{controlPoint:r,currentPoint:i}=tr.pathT(e);return t.push(r.x,r.y,i.x,i.y),Nt.QUAD_TO}pathA(e){var{rX:t,rY:r,sweepFlag:i,xAxisRotation:A,centp:s,a1:a,ad:o}=tr.pathA(e);return i===0&&o>0&&(o-=2*Math.PI),i===1&&o<0&&(o+=2*Math.PI),[s.x,s.y,t,r,a,o,A,i]}calcLength(e,t,r,i){var A=0,s=null,a=null,o=0;switch(r){case Nt.LINE_TO:return this.getLineLength(e,t,i[0],i[1]);case Nt.CURVE_TO:for(A=0,s=this.getPointOnCubicBezier(0,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),o=.01;o<=1;o+=.01)a=this.getPointOnCubicBezier(o,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),A+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return A;case Nt.QUAD_TO:for(A=0,s=this.getPointOnQuadraticBezier(0,e,t,i[0],i[1],i[2],i[3]),o=.01;o<=1;o+=.01)a=this.getPointOnQuadraticBezier(o,e,t,i[0],i[1],i[2],i[3]),A+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return A;case Nt.ARC:{A=0;var l=i[4],u=i[5],f=i[4]+u,h=Math.PI/180;if(Math.abs(l-f)<h&&(h=Math.abs(l-f)),s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),u<0)for(o=l-h;o>f;o-=h)a=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],o,0),A+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;else for(o=l+h;o<f;o+=h)a=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],o,0),A+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return a=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],f,0),A+=this.getLineLength(s.x,s.y,a.x,a.y),A}}return 0}getPointOnLine(e,t,r,i,A){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:t,a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,o=(A-r)/(i-t+wo),l=Math.sqrt(e*e/(1+o*o));i<t&&(l*=-1);var u=o*l,f=null;if(i===t)f={x:s,y:a+u};else if((a-r)/(s-t+wo)===o)f={x:s+l,y:a+u};else{var h=0,c=0,m=this.getLineLength(t,r,i,A);if(m<wo)return null;var g=(s-t)*(i-t)+(a-r)*(A-r);g/=m*m,h=t+g*(i-t),c=r+g*(A-r);var w=this.getLineLength(s,a,h,c),p=Math.sqrt(e*e-w*w);l=Math.sqrt(p*p/(1+o*o)),i<t&&(l*=-1),u=o*l,f={x:h+l,y:c+u}}return f}getPointOnPath(e){var t=this.getPathLength(),r=0,i=null;if(e<-5e-5||e-5e-5>t)return null;var{dataArray:A}=this;for(var s of A){if(s&&(s.pathLength<5e-5||r+s.pathLength+5e-5<e)){r+=s.pathLength;continue}var a=e-r,o=0;switch(s.type){case Nt.LINE_TO:i=this.getPointOnLine(a,s.start.x,s.start.y,s.points[0],s.points[1],s.start.x,s.start.y);break;case Nt.ARC:{var l=s.points[4],u=s.points[5],f=s.points[4]+u;if(o=l+a/s.pathLength*u,u<0&&o<f||u>=0&&o>f)break;i=this.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],o,s.points[6]);break}case Nt.CURVE_TO:o=a/s.pathLength,o>1&&(o=1),i=this.getPointOnCubicBezier(o,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3],s.points[4],s.points[5]);break;case Nt.QUAD_TO:o=a/s.pathLength,o>1&&(o=1),i=this.getPointOnQuadraticBezier(o,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3]);break}if(i)return i;break}return null}getLineLength(e,t,r,i){return Math.sqrt((r-e)*(r-e)+(i-t)*(i-t))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,r,i,A,s,a,o,l){var u=o*by(e)+s*By(e)+i*Cy(e)+t*Ey(e),f=l*by(e)+a*By(e)+A*Cy(e)+r*Ey(e);return{x:u,y:f}}getPointOnQuadraticBezier(e,t,r,i,A,s,a){var o=s*xy(e)+i*Sy(e)+t*Fy(e),l=a*xy(e)+A*Sy(e)+r*Fy(e);return{x:o,y:l}}getPointOnEllipticalArc(e,t,r,i,A,s){var a=Math.cos(s),o=Math.sin(s),l={x:r*Math.cos(A),y:i*Math.sin(A)};return{x:e+(l.x*a-l.y*o),y:t+(l.x*o+l.y*a)}}buildEquidistantCache(e,t){var r=this.getPathLength(),i=t||.25,A=e||r/100;if(!this.equidistantCache||this.equidistantCache.step!==A||this.equidistantCache.precision!==i){this.equidistantCache={step:A,precision:i,points:[]};for(var s=0,a=0;a<=r;a+=i){var o=this.getPointOnPath(a),l=this.getPointOnPath(a+i);!o||!l||(s+=this.getLineLength(o.x,o.y,l.x,l.y),s>=A&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:a}),s-=A))}}}getEquidistantPointOnPath(e,t,r){if(this.buildEquidistantCache(t,r),e<0||e-this.getPathLength()>5e-5)return null;var i=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}var YG=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class rI extends wa{constructor(e,t,r){super(e,t,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var A=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);e.images.push(this),A?this.loadSvg(i):this.loadImage(i),this.isSvg=A}}loadImage(e){var t=this;return Ss(function*(){try{var r=yield t.document.createImage(e);t.image=r}catch(i){console.error('Error while loading image "'.concat(e,'":'),i)}t.loaded=!0})()}loadSvg(e){var t=this;return Ss(function*(){var r=YG.exec(e);if(r){var i=r[5];r[4]==="base64"?t.image=atob(i):t.image=decodeURIComponent(i)}else try{var A=yield t.document.fetch(e),s=yield A.text();t.image=s}catch(a){console.error('Error while loading image "'.concat(e,'":'),a)}t.loaded=!0})()}renderChildren(e){var{document:t,image:r,loaded:i}=this,A=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(!(!i||!r||!a||!o)){if(e.save(),e.translate(A,s),this.isSvg){var l=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:a,scaleHeight:o});l.document.documentElement.parent=this,l.render()}else{var u=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:u.width,height:o,desiredHeight:u.height}),this.loaded&&(typeof u.complete>"u"||u.complete)&&e.drawImage(u,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new Wi(e,t,e+r,t+i)}}class nI extends wa{constructor(){super(...arguments),this.type="symbol"}render(e){}}class iI{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var r=this;return Ss(function*(){try{var{document:i}=r,A=yield i.canvg.parser.load(t),s=A.getElementsByTagName("font");Array.from(s).forEach(a=>{var o=i.createElement(a);i.definitions[e]=o})}catch(a){console.error('Error while loading font "'.concat(t,'":'),a)}r.loaded=!0})()}}class Oy extends Or{constructor(e,t,r){super(e,t,r),this.type="style";var i=mo(Array.from(t.childNodes).map(s=>s.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),A=i.split("}");A.forEach(s=>{var a=s.trim();if(a){var o=a.split("{"),l=o[0].split(","),u=o[1].split(";");l.forEach(f=>{var h=f.trim();if(h){var c=e.styles[h]||{};if(u.forEach(w=>{var p=w.indexOf(":"),v=w.substr(0,p).trim(),b=w.substr(p+1,w.length-p).trim();v&&b&&(c[v]=new dt(e,v,b))}),e.styles[h]=c,e.stylesSpecificity[h]=ST(h),h==="@font-face"){var m=c["font-family"].getString().replace(/"|'/g,""),g=c.src.getString().split(",");g.forEach(w=>{if(w.indexOf('format("svg")')>0){var p=vy(w);p&&new iI(e).load(m,p)}})}}})}})}}Oy.parseExternalUrl=vy;class AI extends wa{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),r=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:r}=this;if(r){var i=r;if(r.type==="symbol"&&(i=new xl(t,null),i.attributes.viewBox=new dt(t,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new dt(t,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new dt(t,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new dt(t,"opacity",this.calculateOpacity())),i.type==="svg"){var A=this.getStyle("width",!1,!0),s=this.getStyle("height",!1,!0);A.hasValue()&&(i.attributes.width=new dt(t,"width",A.getString())),s.hasValue()&&(i.attributes.height=new dt(t,"height",s.getString()))}var a=i.parent;i.parent=this,i.render(e),i.parent=a}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return va.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function id(n,e,t,r,i,A){return n[t*r*4+e*4+A]}function Ad(n,e,t,r,i,A,s){n[t*r*4+e*4+A]=s}function an(n,e,t){var r=n[e];return r*t}function Ts(n,e,t,r){return e+Math.cos(n)*t+Math.sin(n)*r}class Qy extends Or{constructor(e,t,r){super(e,t,r),this.type="feColorMatrix";var i=mi(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var A=i[0];i=[.213+.787*A,.715-.715*A,.072-.072*A,0,0,.213-.213*A,.715+.285*A,.072-.072*A,0,0,.213-.213*A,.715-.715*A,.072+.928*A,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var s=i[0]*Math.PI/180;i=[Ts(s,.213,.787,-.213),Ts(s,.715,-.715,-.715),Ts(s,.072,-.072,.928),0,0,Ts(s,.213,-.213,.143),Ts(s,.715,.285,.14),Ts(s,.072,-.072,-.283),0,0,Ts(s,.213,-.213,-.787),Ts(s,.715,-.715,.715),Ts(s,.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];break}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,r,i,A){for(var{includeOpacity:s,matrix:a}=this,o=e.getImageData(0,0,i,A),l=0;l<A;l++)for(var u=0;u<i;u++){var f=id(o.data,u,l,i,A,0),h=id(o.data,u,l,i,A,1),c=id(o.data,u,l,i,A,2),m=id(o.data,u,l,i,A,3),g=an(a,0,f)+an(a,1,h)+an(a,2,c)+an(a,3,m)+an(a,4,1),w=an(a,5,f)+an(a,6,h)+an(a,7,c)+an(a,8,m)+an(a,9,1),p=an(a,10,f)+an(a,11,h)+an(a,12,c)+an(a,13,m)+an(a,14,1),v=an(a,15,f)+an(a,16,h)+an(a,17,c)+an(a,18,m)+an(a,19,1);s&&(g=0,w=0,p=0,v*=m/255),Ad(o.data,u,l,i,A,0,g),Ad(o.data,u,l,i,A,1,w),Ad(o.data,u,l,i,A,2,p),Ad(o.data,u,l,i,A,3,v)}e.clearRect(0,0,i,A),e.putImageData(o,0,0)}}class lc extends Or{constructor(){super(...arguments),this.type="mask"}apply(e,t){var{document:r}=this,i=this.getAttribute("x").getPixels("x"),A=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");if(!s&&!a){var o=new Wi;this.children.forEach(m=>{o.addBoundingBox(m.getBoundingBox(e))}),i=Math.floor(o.x1),A=Math.floor(o.y1),s=Math.floor(o.width),a=Math.floor(o.height)}var l=this.removeStyles(t,lc.ignoreStyles),u=r.createCanvas(i+s,A+a),f=u.getContext("2d");r.screen.setDefaults(f),this.renderChildren(f),new Qy(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(f,0,0,i+s,A+a);var h=r.createCanvas(i+s,A+a),c=h.getContext("2d");r.screen.setDefaults(c),t.render(c),c.globalCompositeOperation="destination-in",c.fillStyle=f.createPattern(u,"no-repeat"),c.fillRect(0,0,i+s,A+a),e.fillStyle=c.createPattern(h,"no-repeat"),e.fillRect(0,0,i+s,A+a),this.restoreStyles(t,l)}render(e){}}lc.ignoreStyles=["mask","transform","clip-path"];var sI=()=>{};class aI extends Or{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,r=Reflect.getPrototypeOf(e),{beginPath:i,closePath:A}=e;r&&(r.beginPath=sI,r.closePath=sI),Reflect.apply(i,e,[]),this.children.forEach(s=>{if(!(typeof s.path>"u")){var a=typeof s.elementTransform<"u"?s.elementTransform():null;a||(a=va.fromElement(t,s)),a&&a.apply(e),s.path(e),r&&(r.closePath=A),a&&a.unapply(e)}}),Reflect.apply(A,e,[]),e.clip(),r&&(r.beginPath=i,r.closePath=A)}render(e){}}class uc extends Or{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:r,children:i}=this,A=t.getBoundingBox(e);if(A){var s=0,a=0;i.forEach(p=>{var v=p.extraFilterDistance||0;s=Math.max(s,v),a=Math.max(a,v)});var o=Math.floor(A.width),l=Math.floor(A.height),u=o+2*s,f=l+2*a;if(!(u<1||f<1)){var h=Math.floor(A.x),c=Math.floor(A.y),m=this.removeStyles(t,uc.ignoreStyles),g=r.createCanvas(u,f),w=g.getContext("2d");r.screen.setDefaults(w),w.translate(-h+s,-c+a),t.render(w),i.forEach(p=>{typeof p.apply=="function"&&p.apply(w,0,0,u,f)}),e.drawImage(g,0,0,u,f,h-s,c-a,u,f),this.restoreStyles(t,m)}}}render(e){}}uc.ignoreStyles=["filter","transform","clip-path"];class oI extends Or{constructor(e,t,r){super(e,t,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,r,i,A){}}class lI extends Or{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,r,i,A){}}class uI extends Or{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,r,i,A){}}class cI extends Or{constructor(e,t,r){super(e,t,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,r,i,A){var{document:s,blurRadius:a}=this,o=s.window?s.window.document.body:null,l=e.canvas;l.id=s.getUniqueId(),o&&(l.style.display="none",o.appendChild(l)),_G(l,t,r,i,A,a),o&&o.removeChild(l)}}class fI extends Or{constructor(){super(...arguments),this.type="title"}}class hI extends Or{constructor(){super(...arguments),this.type="desc"}}var $G={svg:xl,rect:Uy,circle:PT,ellipse:kT,line:DT,polyline:Ny,polygon:MT,path:tr,pattern:HT,marker:qT,defs:jT,linearGradient:KT,radialGradient:VT,stop:GT,animate:rd,animateColor:zT,animateTransform:WT,font:XT,"font-face":YT,"missing-glyph":$T,glyph:Iy,text:_s,tspan:oc,tref:JT,a:ZT,textPath:tI,image:rI,g:td,symbol:nI,style:Oy,use:AI,mask:lc,clipPath:aI,filter:uc,feDropShadow:oI,feMorphology:lI,feComposite:uI,feColorMatrix:Qy,feGaussianBlur:cI,title:fI,desc:hI};function dI(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function JG(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?dI(Object(t),!0).forEach(function(r){sy(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):dI(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function ZG(n,e){var t=document.createElement("canvas");return t.width=n,t.height=e,t}function ez(n){return Ry.apply(this,arguments)}function Ry(){return Ry=Ss(function*(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=document.createElement("img");return e&&(t.crossOrigin="Anonymous"),new Promise((r,i)=>{t.onload=()=>{r(t)},t.onerror=(A,s,a,o,l)=>{i(l)},t.src=n})}),Ry.apply(this,arguments)}class Is{constructor(e){var{rootEmSize:t=12,emSize:r=12,createCanvas:i=Is.createCanvas,createImage:A=Is.createImage,anonymousCrossOrigin:s}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,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=e.screen,this.rootEmSize=t,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(A,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return typeof t=="boolean"?(r,i)=>e(r,typeof i=="boolean"?i:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),r=Is.elementTypes[t];return typeof r<"u"?new r(this,e):new RT(this,e)}createTextNode(e){return new XG(this,e)}setViewBox(e){this.screen.setViewBox(JG({document:this},e))}}Is.createCanvas=ZG,Is.createImage=ez,Is.elementTypes=$G;function pI(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function yo(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?pI(Object(t),!0).forEach(function(r){sy(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):pI(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}class bo{constructor(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new ed(r),this.screen=new ac(e,r),this.options=r;var i=new Is(this,r),A=i.createDocumentElement(t);this.document=i,this.documentElement=A}static from(e,t){var r=arguments;return Ss(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:{},A=new ed(i),s=yield A.parse(t);return new bo(e,s,i)})()}static fromString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new ed(r),A=i.parseFromString(t);return new bo(e,A,r)}fork(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return bo.from(e,t,yo(yo({},this.options),r))}forkString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return bo.fromString(e,t,yo(yo({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return Ss(function*(){var r=e.length>0&&e[0]!==void 0?e[0]:{};t.start(yo({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:t,screen:r,options:i}=this;r.start(t,yo(yo({enableRedraw:!0},i),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,t,r)}}const tz=Object.freeze(Object.defineProperty({__proto__:null,AElement:ZT,AnimateColorElement:zT,AnimateElement:rd,AnimateTransformElement:WT,BoundingBox:Wi,CB1:by,CB2:By,CB3:Cy,CB4:Ey,Canvg:bo,CircleElement:PT,ClipPathElement:aI,DefsElement:jT,DescElement:hI,Document:Is,Element:Or,EllipseElement:kT,FeColorMatrixElement:Qy,FeCompositeElement:uI,FeDropShadowElement:oI,FeGaussianBlurElement:cI,FeMorphologyElement:lI,FilterElement:uc,Font:Gn,FontElement:XT,FontFaceElement:YT,GElement:td,GlyphElement:Iy,GradientElement:Ly,ImageElement:rI,LineElement:DT,LinearGradientElement:KT,MarkerElement:qT,MaskElement:lc,Matrix:_y,MissingGlyphElement:$T,Mouse:_T,PSEUDO_ZERO:wo,Parser:ed,PathElement:tr,PathParser:Nt,PatternElement:HT,Point:qr,PolygonElement:MT,PolylineElement:Ny,Property:dt,QB1:xy,QB2:Sy,QB3:Fy,RadialGradientElement:VT,RectElement:Uy,RenderedElement:wa,Rotate:NT,SVGElement:xl,SVGFontLoader:iI,Scale:LT,Screen:ac,Skew:Ty,SkewX:OT,SkewY:QT,StopElement:GT,StyleElement:Oy,SymbolElement:nI,TRefElement:JT,TSpanElement:oc,TextElement:_s,TextPathElement:tI,TitleElement:fI,Transform:va,Translate:UT,UnknownElement:RT,UseElement:AI,ViewPort:FT,compressSpaces:mo,default:bo,getSelectorSpecificity:ST,normalizeAttributeName:ET,normalizeColor:xT,parseExternalUrl:vy,presets:NG,toNumbers:mi,trimLeft:BT,trimRight:CT,vectorMagnitude:wy,vectorsAngle:yy,vectorsRatio:Zh},Symbol.toStringTag,{value:"Module"}));Er.EditorPane=Xx,Er.ExportMenu=jE,Er.PreviewPane=i1,Er.SplitView=Yx,Er.TextEditor=xK,Er.exportToDocx=qE,Er.exportToPdf=JB,Object.defineProperty(Er,Symbol.toStringTag,{value:"Module"})});
//# sourceMappingURL=ileaf-text-editor.umd.js.map