vendor: 5,786 bytes, lines 1-3
1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7a6fe186-6fb8-5885-8e5a-6dbf0f694664")}catch(e){}}(); 3import{a as ze,b as Fc,c as Uc,d as qe,e as Rn}from"./chunk-OJGPZEV6.js";import{e as c,g as B}from"./chunk-TIXSKO2Y.js";var O=c((Pt,Nn)=>{"use strict";var $e=function(i){return i&&i.Math===Math&&i};Nn.exports=$e(typeof globalThis=="object"&&globalThis)||$e(typeof window=="object"&&window)||$e(typeof self=="object"&&self)||$e(typeof global=="object"&&global)||$e(typeof Pt=="object"&&Pt)||function(){return this}()||Function("return this")()});var T=c((Fq,Mn)=>{"use strict";Mn.exports=function(i){try{return!!i()}catch{return!0}}});var $=c((Uq,_n)=>{"use strict";var zc=T();_n.exports=!zc(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Ge=c((zq,Vn)=>{"use strict";var $c=T();Vn.exports=!$c(function(){var i=(function(){}).bind();return typeof i!="function"||i.hasOwnProperty("prototype")})});var k=c(($q,Dn)=>{"use strict";var Gc=Ge(),br=Function.prototype.call;Dn.exports=Gc?br.bind(br):function(){return br.apply(br,arguments)}});var jn=c(Ln=>{"use strict";var kn={}.propertyIsEnumerable,Bn=Object.getOwnPropertyDescriptor,Wc=Bn&&!kn.call({1:2},1);Ln.f=Wc?function(e){var r=Bn(this,e);return!!r&&r.enumerable}:kn});var xr=c((Wq,Fn)=>{"use strict";Fn.exports=function(i,e){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:e}}});var E=c((Yq,$n)=>{"use strict";var Un=Ge(),zn=Function.prototype,Ot=zn.call,Yc=Un&&zn.bind.bind(Ot,Ot);$n.exports=Un?Yc:function(i){return function(){return Ot.apply(i,arguments)}}});var ue=c((Xq,Wn)=>{"use strict";var Gn=E(),Xc=Gn({}.toString),Hc=Gn("".slice);Wn.exports=function(i){return Hc(Xc(i),8,-1)}});var Et=c((Hq,Yn)=>{"use strict";var Kc=E(),Qc=T(),Zc=ue(),Tt=Object,Jc=Kc("".split);Yn.exports=Qc(function(){return!Tt("z").propertyIsEnumerable(0)})?function(i){return Zc(i)==="String"?Jc(i,""):Tt(i)}:Tt});var oe=c((Kq,Xn)=>{"use strict";Xn.exports=function(i){return i==null}});var G=c((Qq,Hn)=>{"use strict";var ef=oe(),rf=TypeError;Hn.exports=function(i){if(ef(i))throw new rf("Can't call method on "+i);return i}});var we=c((Zq,Kn)=>{"use strict";var tf=Et(),af=G();Kn.exports=function(i){return tf(af(i))}});var C=c((Jq,Qn)=>{"use strict";var Ct=typeof document=="object"&&document.all;Qn.exports=typeof Ct>"u"&&Ct!==void 0?function(i){return typeof i=="function"||i===Ct}:function(i){return typeof i=="function"}});var W=c((ew,Zn)=>{"use strict";var nf=C();Zn.exports=function(i){return typeof i=="object"?i!==null:nf(i)}});var le=c((rw,Jn)=>{"use strict";var At=O(),sf=C(),uf=function(i){return sf(i)?i:void 0};Jn.exports=function(i,e){return arguments.length<2?uf(At[i]):At[i]&&At[i][e]}});var We=c((tw,es)=>{"use strict";var of=E();es.exports=of({}.isPrototypeOf)});var Ye=c((iw,rs)=>{"use strict";rs.exports=typeof navigator<"u"&&String(navigator.userAgent)||""});var qr=c((aw,us)=>{"use strict";var ss=O(),It=Ye(),ts=ss.process,is=ss.Deno,as=ts&&ts.versions||is&&is.version,ns=as&&as.v8,X,Sr;ns&&(X=ns.split("."),Sr=X[0]>0&&X[0]<4?1:+(X[0]+X[1]));!Sr&&It&&(X=It.match(/Edge\/(\d+)/),(!X||X[1]>=74)&&(X=It.match(/Chrome\/(\d+)/),X&&(Sr=+X[1])));us.exports=Sr});var Rt=c((nw,ls)=>{"use strict";var os=qr(),lf=T(),hf=O(),vf=hf.String;ls.exports=!!Object.getOwnPropertySymbols&&!lf(function(){var i=Symbol("symbol detection");return!vf(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&os&&os<41})});var Nt=c((sw,hs)=>{"use strict";var cf=Rt();hs.exports=cf&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Mt=c((uw,vs)=>{"use strict";var ff=le(),gf=C(),df=We(),pf=Nt(),yf=Object;vs.exports=pf?function(i){return typeof i=="symbol"}:function(i){var e=ff("Symbol");return gf(e)&&df(e.prototype,yf(i))}});var Xe=c((ow,cs)=>{"use strict";var mf=String;cs.exports=function(i){try{return mf(i)}catch{return"Object"}}});var ee=c((lw,fs)=>{"use strict";var bf=C(),xf=Xe(),Sf=TypeError;fs.exports=function(i){if(bf(i))return i;throw new Sf(xf(i)+" is not a function")}});var fe=c((hw,gs)=>{"use strict";var qf=ee(),wf=oe();gs.exports=function(i,e){var r=i[e];return wf(r)?void 0:qf(r)}});var ps=c((vw,ds)=>{"use strict";var _t=k(),Vt=C(),Dt=W(),Pf=TypeError;ds.exports=function(i,e){var r,t;if(e==="string"&&Vt(r=i.toString)&&!Dt(t=_t(r,i))||Vt(r=i.valueOf)&&!Dt(t=_t(r,i))||e!=="string"&&Vt(r=i.toString)&&!Dt(t=_t(r,i)))return t;throw new Pf("Can't convert object to primitive value")}});var H=c((cw,ys)=>{"use strict";ys.exports=!1});var wr=c((fw,bs)=>{"use strict";var ms=O(),Of=Object.defineProperty;bs.exports=function(i,e){try{Of(ms,i,{value:e,configurable:!0,writable:!0})}catch{ms[i]=e}return e}});var Pr=c((gw,qs)=>{"use strict";var Tf=H(),Ef=O(),Cf=wr(),xs="__core-js_shared__",Ss=qs.exports=Ef[xs]||Cf(xs,{});(Ss.versions||(Ss.versions=[])).push({version:"3.36.1",mode:Tf?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})});var Or=c((dw,Ps)=>{"use strict";var ws=Pr();Ps.exports=function(i,e){return ws[i]||(ws[i]=e||{})}});var He=c((pw,Os)=>{"use strict";var Af=G(),If=Object;Os.exports=function(i){return If(Af(i))}});var Y=c((yw,Ts)=>{"use strict";var Rf=E(),Nf=He(),Mf=Rf({}.hasOwnProperty);Ts.exports=Object.hasOwn||function(e,r){return Mf(Nf(e),r)}});var kt=c((mw,Es)=>{"use strict";var _f=E(),Vf=0,Df=Math.random(),kf=_f(1 .toString);Es.exports=function(i){return"Symbol("+(i===void 0?"":i)+")_"+kf(++Vf+Df,36)}});var _=c((bw,As)=>{"use strict";var Bf=O(),Lf=Or(),Cs=Y(),jf=kt(),Ff=Rt(),Uf=Nt(),Pe=Bf.Symbol,Bt=Lf("wks"),zf=Uf?Pe.for||Pe:Pe&&Pe.withoutSetter||jf;
3As.exports=function(i){return Cs(Bt,i)||(Bt[i]=Ff&&Cs(Pe,i)?Pe[i]:zf("Symbol."+i)),Bt[i]}});var Ms=c((xw,Ns)=>{"use strict";var $f=k(),Is=W(),Rs=Mt(),Gf=fe(),Wf=ps(),Yf=_(),Xf=TypeError,Hf=Yf("toPrimitive");Ns.exports=function(i,e){if(!Is(i)||Rs(i))return i;var r=Gf(i,Hf),t;if(r){if(e===void 0&&(e="default"),t=$f(r,i,e),!Is(t)||Rs(t))return t;throw new Xf("Can't convert object to primitive value")}return e===void 0&&(e="number"),Wf(i,e)}});var Lt=c((Sw,_s)=>{"use strict";var Kf=Ms(),Qf=Mt();_s.exports=function(i){var e=Kf(i,"string");return Qf(e)?e:e+""}});var Ke=c((qw,Ds)=>{"use strict";var Zf=O(),Vs=W(),jt=Zf.document,Jf=Vs(jt)&&Vs(jt.createElement);Ds.exports=function(i){return Jf?jt.createElement(i):{}}});var Ft=c((ww,ks)=>{"use strict";var eg=$(),rg=T(),tg=Ke();ks.exports=!eg&&!rg(function(){return Object.defineProperty(tg("div"),"a",{get:function(){return 7}}).a!==7})});var Qe=c(Ls=>{"use strict";var ig=$(),ag=k(),ng=jn(),sg=xr(),ug=we(),og=Lt(),lg=Y(),hg=Ft(),Bs=Object.getOwnPropertyDescriptor;Ls.f=ig?Bs:function(e,r){if(e=ug(e),r=og(r),hg)try{return Bs(e,r)}catch{}if(lg(e,r))return sg(!ag(ng.f,e,r),e[r])}});var Ut=c((Ow,js)=>{"use strict";var vg=$(),cg=T();js.exports=vg&&cg(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var L=c((Tw,Fs)=>{"use strict";var fg=W(),gg=String,dg=TypeError;Fs.exports=function(i){if(fg(i))return i;throw new dg(gg(i)+" is not an object")}});var ie=c(zs=>{"use strict";var pg=$(),yg=Ft(),mg=Ut(),Tr=L(),Us=Lt(),bg=TypeError,zt=Object.defineProperty,xg=Object.getOwnPropertyDescriptor,$t="enumerable",Gt="configurable",Wt="writable";zs.f=pg?mg?function(e,r,t){if(Tr(e),r=Us(r),Tr(t),typeof e=="function"&&r==="prototype"&&"value"in t&&Wt in t&&!t[Wt]){var a=xg(e,r);a&&a[Wt]&&(e[r]=t.value,t={configurable:Gt in t?t[Gt]:a[Gt],enumerable:$t in t?t[$t]:a[$t],writable:!1})}return zt(e,r,t)}:zt:function(e,r,t){if(Tr(e),r=Us(r),Tr(t),yg)try{return zt(e,r,t)}catch{}if("get"in t||"set"in t)throw new bg("Accessors not supported");return"value"in t&&(e[r]=t.value),e}});var Oe=c((Cw,$s)=>{"use strict";var Sg=$(),qg=ie(),wg=xr();$s.exports=Sg?function(i,e,r){return qg.f(i,e,wg(1,r))}:function(i,e,r){return i[e]=r,i}});var Ze=c((Aw,Ws)=>{"use strict";var Yt=$(),Pg=Y(),Gs=Function.prototype,Og=Yt&&Object.getOwnPropertyDescriptor,Xt=Pg(Gs,"name"),Tg=Xt&&(function(){}).name==="something",Eg=Xt&&(!Yt||Yt&&Og(Gs,"name").configurable);Ws.exports={EXISTS:Xt,PROPER:Tg,CONFIGURABLE:Eg}});var Er=c((Iw,Ys)=>{"use strict";var Cg=E(),Ag=C(),Ht=Pr(),Ig=Cg(Function.toString);Ag(Ht.inspectSource)||(Ht.inspectSource=function(i){return Ig(i)});Ys.exports=Ht.inspectSource});var Ks=c((Rw,Hs)=>{"use strict";var Rg=O(),Ng=C(),Xs=Rg.WeakMap;Hs.exports=Ng(Xs)&&/native code/.test(String(Xs))});var Cr=c((Nw,Zs)=>{"use strict";var Mg=Or(),_g=kt(),Qs=Mg("keys");Zs.exports=function(i){return Qs[i]||(Qs[i]=_g(i))}});var Ar=c((Mw,Js)=>{"use strict";Js.exports={}});var er=c((_w,tu)=>{"use strict";var Vg=Ks(),ru=O(),Dg=W(),kg=Oe(),Kt=Y(),Qt=Pr(),Bg=Cr(),Lg=Ar(),eu="Object already initialized",Zt=ru.TypeError,jg=ru.WeakMap,Ir,Je,Rr,Fg=function(i){return Rr(i)?Je(i):Ir(i,{})},Ug=function(i){return function(e){var r;if(!Dg(e)||(r=Je(e)).type!==i)throw new Zt("Incompatible receiver, "+i+" required");return r}};Vg||Qt.state?(K=Qt.state||(Qt.state=new jg),K.get=K.get,K.has=K.has,K.set=K.set,Ir=function(i,e){if(K.has(i))throw new Zt(eu);return e.facade=i,K.set(i,e),e},Je=function(i){return K.get(i)||{}},Rr=function(i){return K.has(i)}):(ge=Bg("state"),Lg[ge]=!0,Ir=function(i,e){if(Kt(i,ge))throw new Zt(eu);return e.facade=i,kg(i,ge,e),e},Je=function(i){return Kt(i,ge)?i[ge]:{}},Rr=function(i){return Kt(i,ge)});var K,ge;tu.exports={set:Ir,get:Je,has:Rr,enforce:Fg,getterFor:Ug}});var ri=c((Vw,nu)=>{"use strict";var ei=E(),zg=T(),$g=C(),Nr=Y(),Jt=$(),Gg=Ze().CONFIGURABLE,Wg=Er(),au=er(),Yg=au.enforce,Xg=au.get,iu=String,Mr=Object.defineProperty,Hg=ei("".slice),Kg=ei("".replace),Qg=ei([].join),Zg=Jt&&!zg(function(){return Mr(function(){},"length",{value:8}).length!==8}),Jg=String(String).split("String"),ed=nu.exports=function(i,e,r){Hg(iu(e),0,7)==="Symbol("&&(e="["+Kg(iu(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Nr(i,"name")||Gg&&i.name!==e)&&(Jt?Mr(i,"name",{value:e,configurable:!0}):i.name=e),Zg&&r&&Nr(r,"arity")&&i.length!==r.arity&&Mr(i,"length",{value:r.arity});try{r&&Nr(r,"constructor")&&r.constructor?Jt&&Mr(i,"prototype",{writable:!1}):i.prototype&&(i.prototype=void 0)}catch{}var t=Yg(i);return Nr(t,"source")||(t.source=Qg(Jg,typeof e=="string"?e:"")),i};Function.prototype.toString=ed(function(){return $g(this)&&Xg(this).source||Wg(this)},"toString")});var he=c((Dw,su)=>{"use strict";var rd=C(),td=ie(),id=ri(),ad=wr();
3su.exports=function(i,e,r,t){t||(t={});var a=t.enumerable,n=t.name!==void 0?t.name:e;if(rd(r)&&id(r,n,t),t.global)a?i[e]=r:ad(e,r);else{try{t.unsafe?i[e]&&(a=!0):delete i[e]}catch{}a?i[e]=r:td.f(i,e,{value:r,enumerable:!1,configurable:!t.nonConfigurable,writable:!t.nonWritable})}return i}});var ou=c((kw,uu)=>{"use strict";var nd=Math.ceil,sd=Math.floor;uu.exports=Math.trunc||function(e){var r=+e;return(r>0?sd:nd)(r)}});var rr=c((Bw,lu)=>{"use strict";var ud=ou();lu.exports=function(i){var e=+i;return e!==e||e===0?0:ud(e)}});var vu=c((Lw,hu)=>{"use strict";var od=rr(),ld=Math.max,hd=Math.min;hu.exports=function(i,e){var r=od(i);return r<0?ld(r+e,0):hd(r,e)}});var de=c((jw,cu)=>{"use strict";var vd=rr(),cd=Math.min;cu.exports=function(i){var e=vd(i);return e>0?cd(e,9007199254740991):0}});var _r=c((Fw,fu)=>{"use strict";var fd=de();fu.exports=function(i){return fd(i.length)}});var ti=c((Uw,du)=>{"use strict";var gd=we(),dd=vu(),pd=_r(),gu=function(i){return function(e,r,t){var a=gd(e),n=pd(a);if(n===0)return!i&&-1;var s=dd(t,n),u;if(i&&r!==r){for(;n>s;)if(u=a[s++],u!==u)return!0}else for(;n>s;s++)if((i||s in a)&&a[s]===r)return i||s||0;return!i&&-1}};du.exports={includes:gu(!0),indexOf:gu(!1)}});var ai=c((zw,yu)=>{"use strict";var yd=E(),ii=Y(),md=we(),bd=ti().indexOf,xd=Ar(),pu=yd([].push);yu.exports=function(i,e){var r=md(i),t=0,a=[],n;for(n in r)!ii(xd,n)&&ii(r,n)&&pu(a,n);for(;e.length>t;)ii(r,n=e[t++])&&(~bd(a,n)||pu(a,n));return a}});var Vr=c(($w,mu)=>{"use strict";mu.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var xu=c(bu=>{"use strict";var Sd=ai(),qd=Vr(),wd=qd.concat("length","prototype");bu.f=Object.getOwnPropertyNames||function(e){return Sd(e,wd)}});var qu=c(Su=>{"use strict";Su.f=Object.getOwnPropertySymbols});var Pu=c((Yw,wu)=>{"use strict";var Pd=le(),Od=E(),Td=xu(),Ed=qu(),Cd=L(),Ad=Od([].concat);wu.exports=Pd("Reflect","ownKeys")||function(e){var r=Td.f(Cd(e)),t=Ed.f;return t?Ad(r,t(e)):r}});var Eu=c((Xw,Tu)=>{"use strict";var Ou=Y(),Id=Pu(),Rd=Qe(),Nd=ie();Tu.exports=function(i,e,r){for(var t=Id(e),a=Nd.f,n=Rd.f,s=0;s<t.length;s++){var u=t[s];!Ou(i,u)&&!(r&&Ou(r,u))&&a(i,u,n(e,u))}}});var ni=c((Hw,Cu)=>{"use strict";var Md=T(),_d=C(),Vd=/#|\.prototype\./,tr=function(i,e){var r=kd[Dd(i)];return r===Ld?!0:r===Bd?!1:_d(e)?Md(e):!!e},Dd=tr.normalize=function(i){return String(i).replace(Vd,".").toLowerCase()},kd=tr.data={},Bd=tr.NATIVE="N",Ld=tr.POLYFILL="P";Cu.exports=tr});var j=c((Kw,Au)=>{"use strict";var Dr=O(),jd=Qe().f,Fd=Oe(),Ud=he(),zd=wr(),$d=Eu(),Gd=ni();Au.exports=function(i,e){var r=i.target,t=i.global,a=i.stat,n,s,u,o,l,h;if(t?s=Dr:a?s=Dr[r]||zd(r,{}):s=Dr[r]&&Dr[r].prototype,s)for(u in e){if(l=e[u],i.dontCallGetSet?(h=jd(s,u),o=h&&h.value):o=s[u],n=Gd(t?u:r+(a?".":"#")+u,i.forced),!n&&o!==void 0){if(typeof l==typeof o)continue;$d(l,o)}(i.sham||o&&o.sham)&&Fd(l,"sham",!0),Ud(s,u,l,i)}}});var Te=c((Qw,Iu)=>{"use strict";var Wd=O(),Yd=ue();Iu.exports=Yd(Wd.process)==="process"});var Nu=c((Zw,Ru)=>{"use strict";var Xd=E(),Hd=ee();Ru.exports=function(i,e,r){try{return Xd(Hd(Object.getOwnPropertyDescriptor(i,e)[r]))}catch{}}});var _u=c((Jw,Mu)=>{"use strict";var Kd=W();Mu.exports=function(i){return Kd(i)||i===null}});var Du=c((eP,Vu)=>{"use strict";var Qd=_u(),Zd=String,Jd=TypeError;Vu.exports=function(i){if(Qd(i))return i;throw new Jd("Can't set "+Zd(i)+" as a prototype")}});var si=c((rP,ku)=>{"use strict";var ep=Nu(),rp=W(),tp=G(),ip=Du();
3ku.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,e={},r;try{r=ep(Object.prototype,"__proto__","set"),r(e,[]),i=e instanceof Array}catch{}return function(a,n){return tp(a),ip(n),rp(a)&&(i?r(a,n):a.__proto__=n),a}}():void 0)});var ir=c((tP,Lu)=>{"use strict";var ap=ie().f,np=Y(),sp=_(),Bu=sp("toStringTag");Lu.exports=function(i,e,r){i&&!r&&(i=i.prototype),i&&!np(i,Bu)&&ap(i,Bu,{configurable:!0,value:e})}});var Uu=c((iP,Fu)=>{"use strict";var ju=ri(),up=ie();Fu.exports=function(i,e,r){return r.get&&ju(r.get,e,{getter:!0}),r.set&&ju(r.set,e,{setter:!0}),up.f(i,e,r)}});var Gu=c((aP,$u)=>{"use strict";var op=le(),lp=Uu(),hp=_(),vp=$(),zu=hp("species");$u.exports=function(i){var e=op(i);vp&&e&&!e[zu]&&lp(e,zu,{configurable:!0,get:function(){return this}})}});var Yu=c((nP,Wu)=>{"use strict";var cp=We(),fp=TypeError;Wu.exports=function(i,e){if(cp(e,i))return i;throw new fp("Incorrect invocation")}});var Ku=c((sP,Hu)=>{"use strict";var gp=_(),dp=gp("toStringTag"),Xu={};Xu[dp]="z";Hu.exports=String(Xu)==="[object z]"});var Br=c((uP,Qu)=>{"use strict";var pp=Ku(),yp=C(),kr=ue(),mp=_(),bp=mp("toStringTag"),xp=Object,Sp=kr(function(){return arguments}())==="Arguments",qp=function(i,e){try{return i[e]}catch{}};Qu.exports=pp?kr:function(i){var e,r,t;return i===void 0?"Undefined":i===null?"Null":typeof(r=qp(e=xp(i),bp))=="string"?r:Sp?kr(e):(t=kr(e))==="Object"&&yp(e.callee)?"Arguments":t}});var io=c((oP,to)=>{"use strict";var wp=E(),Pp=T(),Zu=C(),Op=Br(),Tp=le(),Ep=Er(),Ju=function(){},eo=Tp("Reflect","construct"),ui=/^\s*(?:class|function)\b/,Cp=wp(ui.exec),Ap=!ui.test(Ju),ar=function(e){if(!Zu(e))return!1;try{return eo(Ju,[],e),!0}catch{return!1}},ro=function(e){if(!Zu(e))return!1;switch(Op(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ap||!!Cp(ui,Ep(e))}catch{return!0}};ro.sham=!0;to.exports=!eo||Pp(function(){var i;return ar(ar.call)||!ar(Object)||!ar(function(){i=!0})||i})?ro:ar});var no=c((lP,ao)=>{"use strict";var Ip=io(),Rp=Xe(),Np=TypeError;ao.exports=function(i){if(Ip(i))return i;throw new Np(Rp(i)+" is not a constructor")}});var oi=c((hP,uo)=>{"use strict";var so=L(),Mp=no(),_p=oe(),Vp=_(),Dp=Vp("species");uo.exports=function(i,e){var r=so(i).constructor,t;return r===void 0||_p(t=so(r)[Dp])?e:Mp(t)}});var li=c((vP,vo)=>{"use strict";var kp=Ge(),ho=Function.prototype,oo=ho.apply,lo=ho.call;vo.exports=typeof Reflect=="object"&&Reflect.apply||(kp?lo.bind(oo):function(){return lo.apply(oo,arguments)})});var nr=c((cP,co)=>{"use strict";var Bp=ue(),Lp=E();co.exports=function(i){if(Bp(i)==="Function")return Lp(i)}});var Lr=c((fP,go)=>{"use strict";var fo=nr(),jp=ee(),Fp=Ge(),Up=fo(fo.bind);go.exports=function(i,e){return jp(i),e===void 0?i:Fp?Up(i,e):function(){return i.apply(e,arguments)}}});var hi=c((gP,po)=>{"use strict";var zp=le();po.exports=zp("document","documentElement")});var mo=c((dP,yo)=>{"use strict";var $p=E();yo.exports=$p([].slice)});var xo=c((pP,bo)=>{"use strict";var Gp=TypeError;bo.exports=function(i,e){if(i<e)throw new Gp("Not enough arguments");return i}});var vi=c((yP,So)=>{"use strict";var Wp=Ye();
vendor: 10,525 bytes, line 3
3So.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(Wp)});var xi=c((mP,Io)=>{"use strict";var F=O(),Yp=li(),Xp=Lr(),qo=C(),Hp=Y(),Ao=T(),wo=hi(),Kp=mo(),Po=Ke(),Qp=xo(),Zp=vi(),Jp=Te(),yi=F.setImmediate,mi=F.clearImmediate,ey=F.process,ci=F.Dispatch,ry=F.Function,Oo=F.MessageChannel,ty=F.String,fi=0,sr={},To="onreadystatechange",ur,pe,gi,di;Ao(function(){ur=F.location});var bi=function(i){if(Hp(sr,i)){var e=sr[i];delete sr[i],e()}},pi=function(i){return function(){bi(i)}},Eo=function(i){bi(i.data)},Co=function(i){F.postMessage(ty(i),ur.protocol+"//"+ur.host)};(!yi||!mi)&&(yi=function(e){Qp(arguments.length,1);var r=qo(e)?e:ry(e),t=Kp(arguments,1);return sr[++fi]=function(){Yp(r,void 0,t)},pe(fi),fi},mi=function(e){delete sr[e]},Jp?pe=function(i){ey.nextTick(pi(i))}:ci&&ci.now?pe=function(i){ci.now(pi(i))}:Oo&&!Zp?(gi=new Oo,di=gi.port2,gi.port1.onmessage=Eo,pe=Xp(di.postMessage,di)):F.addEventListener&&qo(F.postMessage)&&!F.importScripts&&ur&&ur.protocol!=="file:"&&!Ao(Co)?(pe=Co,F.addEventListener("message",Eo,!1)):To in Po("script")?pe=function(i){wo.appendChild(Po("script"))[To]=function(){wo.removeChild(this),bi(i)}}:pe=function(i){setTimeout(pi(i),0)});Io.exports={set:yi,clear:mi}});var Mo=c((bP,No)=>{"use strict";var Ro=O(),iy=$(),ay=Object.getOwnPropertyDescriptor;No.exports=function(i){if(!iy)return Ro[i];var e=ay(Ro,i);return e&&e.value}});var Si=c((xP,Vo)=>{"use strict";var _o=function(){this.head=null,this.tail=null};_o.prototype={add:function(i){var e={item:i,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var i=this.head;if(i){var e=this.head=i.next;return e===null&&(this.tail=null),i.item}}};Vo.exports=_o});var ko=c((SP,Do)=>{"use strict";var ny=Ye();Do.exports=/ipad|iphone|ipod/i.test(ny)&&typeof Pebble<"u"});var Lo=c((qP,Bo)=>{"use strict";var sy=Ye();Bo.exports=/web0s(?!.*chrome)/i.test(sy)});var Wo=c((wP,Go)=>{"use strict";var Ce=O(),uy=Mo(),jo=Lr(),qi=xi().set,oy=Si(),ly=vi(),hy=ko(),vy=Lo(),wi=Te(),Fo=Ce.MutationObserver||Ce.WebKitMutationObserver,Uo=Ce.document,zo=Ce.process,jr=Ce.Promise,Ti=uy("queueMicrotask"),Ee,Pi,Oi,Fr,$o;Ti||(or=new oy,lr=function(){var i,e;for(wi&&(i=zo.domain)&&i.exit();e=or.get();)try{e()}catch(r){throw or.head&&Ee(),r}i&&i.enter()},!ly&&!wi&&!vy&&Fo&&Uo?(Pi=!0,Oi=Uo.createTextNode(""),new Fo(lr).observe(Oi,{characterData:!0}),Ee=function(){Oi.data=Pi=!Pi}):!hy&&jr&&jr.resolve?(Fr=jr.resolve(void 0),Fr.constructor=jr,$o=jo(Fr.then,Fr),Ee=function(){$o(lr)}):wi?Ee=function(){zo.nextTick(lr)}:(qi=jo(qi,Ce),Ee=function(){qi(lr)}),Ti=function(i){or.head||Ee(),or.add(i)});var or,lr;Go.exports=Ti});var Xo=c((PP,Yo)=>{"use strict";Yo.exports=function(i,e){try{arguments.length===1?console.error(i):console.error(i,e)}catch{}}});var Ur=c((OP,Ho)=>{"use strict";Ho.exports=function(i){try{return{error:!1,value:i()}}catch(e){return{error:!0,value:e}}}});var Ae=c((TP,Ko)=>{"use strict";var cy=O();Ko.exports=cy.Promise});var Ei=c((EP,Qo)=>{"use strict";Qo.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"});var Jo=c((CP,Zo)=>{"use strict";var fy=Ei(),gy=Te();Zo.exports=!fy&&!gy&&typeof window=="object"&&typeof document=="object"});var Ie=c((AP,tl)=>{"use strict";var dy=O(),hr=Ae(),py=C(),yy=ni(),my=Er(),by=_(),xy=Jo(),Sy=Ei(),qy=H(),Ci=qr(),el=hr&&hr.prototype,wy=by("species"),Ai=!1,rl=py(dy.PromiseRejectionEvent),Py=yy("Promise",function(){var i=my(hr),e=i!==String(hr);if(!e&&Ci===66||qy&&!(el.catch&&el.finally))return!0;if(!Ci||Ci<51||!/native code/.test(i)){var r=new hr(function(n){n(1)}),t=function(n){n(function(){},function(){})},a=r.constructor={};if(a[wy]=t,Ai=r.then(function(){})instanceof t,!Ai)return!0}return!e&&(xy||Sy)&&!rl});tl.exports={CONSTRUCTOR:Py,REJECTION_EVENT:rl,SUBCLASSING:Ai}});var Re=c((IP,al)=>{"use strict";var il=ee(),Oy=TypeError,Ty=function(i){var e,r;this.promise=new i(function(t,a){if(e!==void 0||r!==void 0)throw new Oy("Bad Promise constructor");e=t,r=a}),this.resolve=il(e),this.reject=il(r)};al.exports.f=function(i){return new Ty(i)}});var wl=c(()=>{"use strict";var Ey=j(),Cy=H(),Wr=Te(),ve=O(),Ve=k(),nl=he(),sl=si(),Ay=ir(),Iy=Gu(),Ry=ee(),Gr=C(),Ny=W(),My=Yu(),_y=oi(),vl=xi().set,_i=Wo(),Vy=Xo(),Dy=Ur(),ky=Si(),cl=er(),Yr=Ae(),Vi=Ie(),fl=Re(),Xr="Promise",gl=Vi.CONSTRUCTOR,By=Vi.REJECTION_EVENT,Ly=Vi.SUBCLASSING,Ii=cl.getterFor(Xr),jy=cl.set,Ne=Yr&&Yr.prototype,ye=Yr,zr=Ne,dl=ve.TypeError,Ri=ve.document,Di=ve.process,Ni=fl.f,Fy=Ni,Uy=!!(Ri&&Ri.createEvent&&ve.dispatchEvent),pl="unhandledrejection",zy="rejectionhandled",ul=0,yl=1,$y=2,ki=1,ml=2,$r,ol,Gy,ll,bl=function(i){var e;return Ny(i)&&Gr(e=i.then)?e:!1},xl=function(i,e){var r=e.value,t=e.state===yl,a=t?i.ok:i.fail,n=i.resolve,s=i.reject,u=i.domain,o,l,h;try{a?(t||(e.rejection===ml&&Yy(e),e.rejection=ki),a===!0?o=r:(u&&u.enter(),o=a(r),u&&(u.exit(),h=!0)),o===i.promise?s(new dl("Promise-chain cycle")):(l=bl(o))?Ve(l,o,n,s):n(o)):s(r)}catch(v){u&&!h&&u.exit(),s(v)}},Sl=function(i,e){i.notified||(i.notified=!0,_i(function(){for(var r=i.reactions,t;t=r.get();)xl(t,i);i.notified=!1,e&&!i.rejection&&Wy(i)}))},ql=function(i,e,r){var t,a;Uy?(t=Ri.createEvent("Event"),t.promise=e,t.reason=r,t.initEvent(i,!1,!0),ve.dispatchEvent(t)):t={promise:e,reason:r},!By&&(a=ve["on"+i])?a(t):i===pl&&Vy("Unhandled promise rejection",r)},Wy=function(i){Ve(vl,ve,function(){var e=i.facade,r=i.value,t=hl(i),a;if(t&&(a=Dy(function(){Wr?Di.emit("unhandledRejection",r,e):ql(pl,e,r)}),i.rejection=Wr||hl(i)?ml:ki,a.error))throw a.value})},hl=function(i){return i.rejection!==ki&&!i.parent},Yy=function(i){Ve(vl,ve,function(){var e=i.facade;Wr?Di.emit("rejectionHandled",e):ql(zy,e,i.value)})},Me=function(i,e,r){return function(t){i(e,t,r)}},_e=function(i,e,r){i.done||(i.done=!0,r&&(i=r),i.value=e,i.state=$y,Sl(i,!0))},Mi=function(i,e,r){if(!i.done){i.done=!0,r&&(i=r);try{if(i.facade===e)throw new dl("Promise can't be resolved itself");var t=bl(e);t?_i(function(){var a={done:!1};try{Ve(t,e,Me(Mi,a,i),Me(_e,a,i))}catch(n){_e(a,n,i)}}):(i.value=e,i.state=yl,Sl(i,!1))}catch(a){_e({done:!1},a,i)}}};if(gl&&(ye=function(e){My(this,zr),Ry(e),Ve($r,this);var r=Ii(this);try{e(Me(Mi,r),Me(_e,r))}catch(t){_e(r,t)}},zr=ye.prototype,$r=function(e){jy(this,{type:Xr,done:!1,notified:!1,parent:!1,reactions:new ky,rejection:!1,state:ul,value:void 0})},$r.prototype=nl(zr,"then",function(e,r){var t=Ii(this),a=Ni(_y(this,ye));return t.parent=!0,a.ok=Gr(e)?e:!0,a.fail=Gr(r)&&r,a.domain=Wr?Di.domain:void 0,t.state===ul?t.reactions.add(a):_i(function(){xl(a,t)}),a.promise}),ol=function(){var i=new $r,e=Ii(i);this.promise=i,this.resolve=Me(Mi,e),this.reject=Me(_e,e)},fl.f=Ni=function(i){return i===ye||i===Gy?new ol(i):Fy(i)},!Cy&&Gr(Yr)&&Ne!==Object.prototype)){ll=Ne.then,Ly||nl(Ne,"then",function(e,r){var t=this;return new ye(function(a,n){Ve(ll,t,a,n)}).then(e,r)},{unsafe:!0});try{delete Ne.constructor}catch{}sl&&sl(Ne,zr)}Ey({global:!0,constructor:!0,wrap:!0,forced:gl},{Promise:ye});Ay(ye,Xr,!1,!0);Iy(Xr)});var De=c((MP,Pl)=>{"use strict";Pl.exports={}});var Tl=c((_P,Ol)=>{"use strict";var Xy=_(),Hy=De(),Ky=Xy("iterator"),Qy=Array.prototype;Ol.exports=function(i){return i!==void 0&&(Hy.Array===i||Qy[Ky]===i)}});var Bi=c((VP,Cl)=>{"use strict";var Zy=Br(),El=fe(),Jy=oe(),em=De(),rm=_(),tm=rm("iterator");Cl.exports=function(i){if(!Jy(i))return El(i,tm)||El(i,"@@iterator")||em[Zy(i)]}});var Il=c((DP,Al)=>{"use strict";var im=k(),am=ee(),nm=L(),sm=Xe(),um=Bi(),om=TypeError;Al.exports=function(i,e){var r=arguments.length<2?um(i):e;if(am(r))return nm(im(r,i));throw new om(sm(i)+" is not iterable")}});var Ml=c((kP,Nl)=>{"use strict";var lm=k(),Rl=L(),hm=fe();Nl.exports=function(i,e,r){var t,a;Rl(i);try{if(t=hm(i,"return"),!t){if(e==="throw")throw r;return r}t=lm(t,i)}catch(n){a=!0,t=n}if(e==="throw")throw r;if(a)throw t;return Rl(t),r}});var Li=c((BP,kl)=>{"use strict";var vm=Lr(),cm=k(),fm=L(),gm=Xe(),dm=Tl(),pm=_r(),_l=We(),ym=Il(),mm=Bi(),Vl=Ml(),bm=TypeError,Hr=function(i,e){this.stopped=i,this.result=e},Dl=Hr.prototype;kl.exports=function(i,e,r){var t=r&&r.that,a=!!(r&&r.AS_ENTRIES),n=!!(r&&r.IS_RECORD),s=!!(r&&r.IS_ITERATOR),u=!!(r&&r.INTERRUPTED),o=vm(e,t),l,h,v,f,g,d,p,y=function(b){return l&&Vl(l,"normal",b),new Hr(!0,b)},m=function(b){return a?(fm(b),u?o(b[0],b[1],y):o(b[0],b[1])):u?o(b,y):o(b)};if(n)l=i.iterator;else if(s)l=i;else{if(h=mm(i),!h)throw new bm(gm(i)+" is not iterable");if(dm(h)){for(v=0,f=pm(i);f>v;v++)if(g=m(i[v]),g&&_l(Dl,g))return g;return new Hr(!1)}l=ym(i,h)}for(d=n?i.next:l.next;!(p=cm(d,l)).done;){try{g=m(p.value)}catch(b){Vl(l,"throw",b)}if(typeof g=="object"&&g&&_l(Dl,g))return g}return new Hr(!1)}});var Ul=c((LP,Fl)=>{"use strict";var xm=_(),Ll=xm("iterator"),jl=!1;try{Bl=0,ji={next:function(){return{done:!!Bl++}},return:function(){jl=!0}},ji[Ll]=function(){return this},Array.from(ji,function(){throw 2})}catch{}var Bl,ji;Fl.exports=function(i,e){try{if(!e&&!jl)return!1}catch{return!1}var r=!1;try{var t={};t[Ll]=function(){return{next:function(){return{done:r=!0}}}},i(t)}catch{}return r}});var Fi=c((jP,zl)=>{"use strict";var Sm=Ae(),qm=Ul(),wm=Ie().CONSTRUCTOR;zl.exports=wm||!qm(function(i){Sm.all(i).then(void 0,function(){})})});var $l=c(()=>{"use strict";var Pm=j(),Om=k(),Tm=ee(),Em=Re(),Cm=Ur(),Am=Li(),Im=Fi();Pm({target:"Promise",stat:!0,forced:Im},{all:function(e){var r=this,t=Em.f(r),a=t.resolve,n=t.reject,s=Cm(function(){var u=Tm(r.resolve),o=[],l=0,h=1;Am(e,function(v){var f=l++,g=!1;h++,Om(u,r,v).then(function(d){g||(g=!0,o[f]=d,--h||a(o))},n)}),--h||a(o)});return s.error&&n(s.value),t.promise}})});var Wl=c(()=>{"use strict";var Rm=j(),Nm=H(),Mm=Ie().CONSTRUCTOR,zi=Ae(),_m=le(),Vm=C(),Dm=he(),Gl=zi&&zi.prototype;Rm({target:"Promise",proto:!0,forced:Mm,real:!0},{catch:function(i){return this.then(void 0,i)}});!Nm&&Vm(zi)&&(Ui=_m("Promise").prototype.catch,Gl.catch!==Ui&&Dm(Gl,"catch",Ui,{unsafe:!0}));var Ui});var Yl=c(()=>{"use strict";var km=j(),Bm=k(),Lm=ee(),jm=Re(),Fm=Ur(),Um=Li(),zm=Fi();km({target:"Promise",stat:!0,forced:zm},{race:function(e){var r=this,t=jm.f(r),a=t.reject,n=Fm(function(){var s=Lm(r.resolve);Um(e,function(u){Bm(s,r,u).then(t.resolve,a)})});return n.error&&a(n.value),t.promise}})});var Xl=c(()=>{"use strict";var $m=j(),Gm=Re(),Wm=Ie().CONSTRUCTOR;$m({target:"Promise",stat:!0,forced:Wm},{reject:function(e){var r=Gm.f(this),t=r.reject;return t(e),r.promise}})});var Kl=c((HP,Hl)=>{"use strict";var Ym=L(),Xm=W(),Hm=Re();Hl.exports=function(i,e){if(Ym(i),Xm(e)&&e.constructor===i)return e;var r=Hm.f(i),t=r.resolve;return t(e),r.promise}});var Jl=c(()=>{"use strict";
3var Km=j(),Qm=le(),Ql=H(),Zm=Ae(),Zl=Ie().CONSTRUCTOR,Jm=Kl(),eb=Qm("Promise"),rb=Ql&&!Zl;Km({target:"Promise",stat:!0,forced:Ql||Zl},{resolve:function(e){return Jm(rb&&this===eb?Zm:this,e)}})});var eh=c(()=>{"use strict";wl();$l();Wl();Yl();Xl();Jl()});var Z=c((rO,th)=>{"use strict";var tb=Br(),ib=String;th.exports=function(i){if(tb(i)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return ib(i)}});var $i=c((tO,ih)=>{"use strict";var ab=L();ih.exports=function(){var i=ab(this),e="";return i.hasIndices&&(e+="d"),i.global&&(e+="g"),i.ignoreCase&&(e+="i"),i.multiline&&(e+="m"),i.dotAll&&(e+="s"),i.unicode&&(e+="u"),i.unicodeSets&&(e+="v"),i.sticky&&(e+="y"),e}});var Xi=c((iO,ah)=>{"use strict";var Gi=T(),nb=O(),Wi=nb.RegExp,Yi=Gi(function(){var i=Wi("a","y");return i.lastIndex=2,i.exec("abcd")!==null}),sb=Yi||Gi(function(){return!Wi("a","y").sticky}),ub=Yi||Gi(function(){var i=Wi("^r","gy");return i.lastIndex=2,i.exec("str")!==null});ah.exports={BROKEN_CARET:ub,MISSED_STICKY:sb,UNSUPPORTED_Y:Yi}});var sh=c((aO,nh)=>{"use strict";var ob=ai(),lb=Vr();nh.exports=Object.keys||function(e){return ob(e,lb)}});var oh=c(uh=>{"use strict";var hb=$(),vb=Ut(),cb=ie(),fb=L(),gb=we(),db=sh();uh.f=hb&&!vb?Object.defineProperties:function(e,r){fb(e);for(var t=gb(r),a=db(r),n=a.length,s=0,u;n>s;)cb.f(e,u=a[s++],t[u]);return e}});var vr=c((sO,dh)=>{"use strict";var pb=L(),yb=oh(),lh=Vr(),mb=Ar(),bb=hi(),xb=Ke(),Sb=Cr(),hh=">",vh="<",Ki="prototype",Qi="script",fh=Sb("IE_PROTO"),Hi=function(){},gh=function(i){return vh+Qi+hh+i+vh+"/"+Qi+hh},ch=function(i){i.write(gh("")),i.close();var e=i.parentWindow.Object;return i=null,e},qb=function(){var i=xb("iframe"),e="java"+Qi+":",r;return i.style.display="none",bb.appendChild(i),i.src=String(e),r=i.contentWindow.document,r.open(),r.write(gh("document.F=Object")),r.close(),r.F},Kr,Qr=function(){try{Kr=new ActiveXObject("htmlfile")}catch{}Qr=typeof document<"u"?document.domain&&Kr?ch(Kr):qb():ch(Kr);for(var i=lh.length;i--;)delete Qr[Ki][lh[i]];return Qr()};mb[fh]=!0;dh.exports=Object.create||function(e,r){var t;return e!==null?(Hi[Ki]=pb(e),t=new Hi,Hi[Ki]=null,t[fh]=e):t=Qr(),r===void 0?t:yb.f(t,r)}});var yh=c((uO,ph)=>{"use strict";var wb=T(),Pb=O(),Ob=Pb.RegExp;ph.exports=wb(function(){var i=Ob(".","s");return!(i.dotAll&&i.test(` 4`)&&i.flags==="s")})});var bh=c((oO,mh)=>{"use strict";var Tb=T(),Eb=O(),Cb=Eb.RegExp;mh.exports=Tb(function(){var i=Cb("(?<a>b)","g");return i.exec("b").groups.a!=="b"||"b".replace(i,"$<a>c")!=="bc"})});var et=c((lO,Sh)=>{"use strict";var ke=k(),Jr=E(),Ab=Z(),Ib=$i(),Rb=Xi(),Nb=Or(),Mb=vr(),_b=er().get,Vb=yh(),Db=bh(),kb=Nb("native-string-replace",String.prototype.replace),Zr=RegExp.prototype.exec,Ji=Zr,Bb=Jr("".charAt),Lb=Jr("".indexOf),jb=Jr("".replace),Zi=Jr("".slice),ea=function(){var i=/a/,e=/b*/g;return ke(Zr,i,"a"),ke(Zr,e,"a"),i.lastIndex!==0||e.lastIndex!==0}(),xh=Rb.BROKEN_CARET,ra=/()??/.exec("")[1]!==void 0,Fb=ea||ra||xh||Vb||Db;Fb&&(Ji=function(e){var r=this,t=_b(r),a=Ab(e),n=t.raw,s,u,o,l,h,v,f;if(n)return n.lastIndex=r.lastIndex,s=ke(Ji,n,a),r.lastIndex=n.lastIndex,s;var g=t.groups,d=xh&&r.sticky,p=ke(Ib,r),y=r.source,m=0,b=a;if(d&&(p=jb(p,"y",""),Lb(p,"g")===-1&&(p+="g"),b=Zi(a,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&Bb(a,r.lastIndex-1)!==` 5`)&&(y="(?: "+y+")",b=" "+b,m++),u=new RegExp("^(?:"+y+")",p)),ra&&(u=new RegExp("^"+y+"$(?!\\s)",p)),ea&&(o=r.lastIndex),l=ke(Zr,d?u:r,b),d?l?(l.input=Zi(l.input,m),l[0]=Zi(l[0],m),l.index=r.lastIndex,r.lastIndex+=l[0].length):r.lastIndex=0:ea&&l&&(r.lastIndex=r.global?l.index+l[0].length:o),ra&&l&&l.length>1&&ke(kb,l[0],u,function(){for(h=1;h<arguments.length-2;h++)arguments[h]===void 0&&(l[h]=void 0)}),l&&g)for(l.groups=v=Mb(null),h=0;h<g.length;h++)f=g[h],v[f[0]]=l[f[1]];return l});Sh.exports=Ji});var wh=c(()=>{"use strict";var Ub=j(),qh=et();Ub({target:"RegExp",proto:!0,forced:/./.exec!==qh},{exec:qh})});var rt=c((cO,Ch)=>{"use strict";wh();var Ph=k(),Oh=he(),zb=et(),Th=T(),Eh=_(),$b=Oe(),Gb=Eh("species"),ta=RegExp.prototype;Ch.exports=function(i,e,r,t){var a=Eh(i),n=!Th(function(){var l={};return l[a]=function(){return 7},""[i](l)!==7}),s=n&&!Th(function(){var l=!1,h=/a/;return i==="split"&&(h={},h.constructor={},h.constructor[Gb]=function(){return h},h.flags="",h[a]=/./[a]),h.exec=function(){return l=!0,null},h[a](""),!l});if(!n||!s||r){var u=/./[a],o=e(a,""[i],function(l,h,v,f,g){var d=h.exec;return d===zb||d===ta.exec?n&&!g?{done:!0,value:Ph(u,h,v,f)}:{done:!0,value:Ph(l,v,h,f)}:{done:!1}});Oh(String.prototype,i,o[0]),Oh(ta,a,o[1])}t&&$b(ta[a],"sham",!0)}});var Nh=c((fO,Rh)=>{"use strict";var ia=E(),Wb=rr(),Yb=Z(),Xb=G(),Hb=ia("".charAt),Ah=ia("".charCodeAt),Kb=ia("".slice),Ih=function(i){return function(e,r){var t=Yb(Xb(e)),a=Wb(r),n=t.length,s,u;return a<0||a>=n?i?"":void 0:(s=Ah(t,a),s<55296||s>56319||a+1===n||(u=Ah(t,a+1))<56320||u>57343?i?Hb(t,a):s:i?Kb(t,a,a+2):(s-55296<<10)+(u-56320)+65536)}};Rh.exports={codeAt:Ih(!1),charAt:Ih(!0)}});var tt=c((gO,Mh)=>{"use strict";var Qb=Nh().charAt;Mh.exports=function(i,e,r){return e+(r?Qb(i,e).length:1)}});var it=c((dO,Vh)=>{"use strict";var _h=k(),Zb=L(),Jb=C(),e0=ue(),r0=et(),t0=TypeError;Vh.exports=function(i,e){var r=i.exec;if(Jb(r)){var t=_h(r,i,e);return t!==null&&Zb(t),t}if(e0(i)==="RegExp")return _h(r0,i,e);throw new t0("RegExp#exec called on incompatible receiver")}});var kh=c(()=>{"use strict";var i0=k(),a0=rt(),n0=L(),s0=oe(),u0=de(),aa=Z(),o0=G(),l0=fe(),h0=tt(),Dh=it();a0("match",function(i,e,r){return[function(a){var n=o0(this),s=s0(a)?void 0:l0(a,i);return s?i0(s,a,n):new RegExp(a)[i](aa(n))},function(t){var a=n0(this),n=aa(t),s=r(e,a,n);if(s.done)return s.value;if(!a.global)return Dh(a,n);var u=a.unicode;a.lastIndex=0;for(var o=[],l=0,h;(h=Dh(a,n))!==null;){var v=aa(h[0]);o[l]=v,v===""&&(a.lastIndex=h0(n,u0(a.lastIndex),u)),l++}return l===0?null:o}]})});var Lh=c((mO,Bh)=>{"use strict";var ua=E(),v0=He(),c0=Math.floor,na=ua("".charAt),f0=ua("".replace),sa=ua("".slice),g0=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,d0=/\$([$&'`]|\d{1,2})/g;Bh.exports=function(i,e,r,t,a,n){var s=r+i.length,u=t.length,o=d0;return a!==void 0&&(a=v0(a),o=g0),f0(n,o,function(l,h){var v;switch(na(h,0)){case"$":return"$";case"&":return i;case"`":return sa(e,0,r);case"'":return sa(e,s);case"<":v=a[sa(h,1,-1)];break;default:var f=+h;if(f===0)return l;if(f>u){var g=c0(f/10);return g===0?l:g<=u?t[g-1]===void 0?na(h,1):t[g-1]+na(h,1):l}v=t[f-1]}return v===void 0?"":v})}});var $h=c(()=>{"use strict";var p0=li(),jh=k(),at=E(),y0=rt(),m0=T(),b0=L(),x0=C(),S0=oe(),q0=rr(),w0=de(),Be=Z(),P0=G(),O0=tt(),T0=fe(),E0=Lh(),C0=it(),A0=_(),la=A0("replace"),I0=Math.max,R0=Math.min,N0=at([].
5concat),oa=at([].push),Fh=at("".indexOf),Uh=at("".slice),M0=function(i){return i===void 0?i:String(i)},_0=function(){return"a".replace(/./,"$0")==="$0"}(),zh=function(){return/./[la]?/./[la]("a","$0")==="":!1}(),V0=!m0(function(){var i=/./;return i.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(i,"$<a>")!=="7"});y0("replace",function(i,e,r){var t=zh?"$":"$0";return[function(n,s){var u=P0(this),o=S0(n)?void 0:T0(n,la);return o?jh(o,n,u,s):jh(e,Be(u),n,s)},function(a,n){var s=b0(this),u=Be(a);if(typeof n=="string"&&Fh(n,t)===-1&&Fh(n,"$<")===-1){var o=r(e,s,u,n);if(o.done)return o.value}var l=x0(n);l||(n=Be(n));var h=s.global,v;h&&(v=s.unicode,s.lastIndex=0);for(var f=[],g;g=C0(s,u),!(g===null||(oa(f,g),!h));){var d=Be(g[0]);d===""&&(s.lastIndex=O0(u,w0(s.lastIndex),v))}for(var p="",y=0,m=0;m<f.length;m++){g=f[m];for(var b=Be(g[0]),q=I0(R0(q0(g.index),u.length),0),w=[],P,D=1;D<g.length;D++)oa(w,M0(g[D]));var R=g.groups;if(l){var A=N0([b],w,q,u);R!==void 0&&oa(A,R),P=Be(p0(n,void 0,A))}else P=E0(b,u,q,w,R,n);q>=y&&(p+=Uh(u,y,q)+P,y=q+b.length)}return p+Uh(u,y)}]},!V0||!_0||zh)});var Wh=c((SO,Gh)=>{"use strict";var D0=W(),k0=ue(),B0=_(),L0=B0("match");Gh.exports=function(i){var e;return D0(i)&&((e=i[L0])!==void 0?!!e:k0(i)==="RegExp")}});var nt=c((qO,Yh)=>{"use strict";var j0=Wh(),F0=TypeError;Yh.exports=function(i){if(j0(i))throw new F0("The method doesn't accept regular expressions");return i}});var st=c((wO,Xh)=>{"use strict";var U0=_(),z0=U0("match");Xh.exports=function(i){var e=/./;try{"/./"[i](e)}catch{try{return e[z0]=!1,"/./"[i](e)}catch{}}return!1}});var Qh=c(()=>{"use strict";var $0=j(),G0=nr(),W0=Qe().f,Y0=de(),Hh=Z(),X0=nt(),H0=G(),K0=st(),Q0=H(),Z0=G0("".slice),J0=Math.min,Kh=K0("startsWith"),ex=!Q0&&!Kh&&!!function(){var i=W0(String.prototype,"startsWith");return i&&!i.writable}();$0({target:"String",proto:!0,forced:!ex&&!Kh},{startsWith:function(e){var r=Hh(H0(this));X0(e);var t=Y0(J0(arguments.length>1?arguments[1]:void 0,r.length)),a=Hh(e);return Z0(r,t,t+a.length)===a}})});var Jh=c((TO,Zh)=>{"use strict";var rx=_(),tx=vr(),ix=ie().f,ha=rx("unscopables"),va=Array.prototype;va[ha]===void 0&&ix(va,ha,{configurable:!0,value:tx(null)});Zh.exports=function(i){va[ha][i]=!0}});var rv=c((EO,ev)=>{"use strict";var ax=T();ev.exports=!ax(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})});var fa=c((CO,iv)=>{"use strict";var nx=Y(),sx=C(),ux=He(),ox=Cr(),lx=rv(),tv=ox("IE_PROTO"),ca=Object,hx=ca.prototype;iv.exports=lx?ca.getPrototypeOf:function(i){var e=ux(i);if(nx(e,tv))return e[tv];var r=e.constructor;return sx(r)&&e instanceof r?r.prototype:e instanceof ca?hx:null}});var ya=c((AO,sv)=>{"use strict";var vx=T(),cx=C(),fx=W(),gx=vr(),av=fa(),dx=he(),px=_(),yx=H(),pa=px("iterator"),nv=!1,ae,ga,da;[].keys&&(da=[].keys(),"next"in da?(ga=av(av(da)),ga!==Object.prototype&&(ae=ga)):nv=!0);var mx=!fx(ae)||vx(function(){var i={};return ae[pa].call(i)!==i});mx?ae={}:yx&&(ae=gx(ae));cx(ae[pa])||dx(ae,pa,function(){return this});sv.exports={IteratorPrototype:ae,BUGGY_SAFARI_ITERATORS:nv}});var ov=c((IO,uv)=>{"use strict";var bx=ya().IteratorPrototype,xx=vr(),Sx=xr(),qx=ir(),wx=De(),Px=function(){return this};uv.exports=function(i,e,r,t){var a=e+" Iterator";return i.prototype=xx(bx,{next:Sx(+!t,r)}),qx(i,a,!1,!0),wx[a]=Px,i}});var bv=c((RO,mv)=>{"use strict";var Ox=j(),Tx=k(),ut=H(),pv=Ze(),Ex=C(),Cx=ov(),lv=fa(),hv=si(),Ax=ir(),Ix=Oe(),ma=he(),Rx=_(),vv=De(),yv=ya(),Nx=pv.PROPER,Mx=pv.CONFIGURABLE,cv=yv.IteratorPrototype,ot=yv.BUGGY_SAFARI_ITERATORS,cr=Rx("iterator"),fv="keys",fr="values",gv="entries",dv=function(){return this};mv.exports=function(i,e,r,t,a,n,s){Cx(r,e,t);var u=function(m){if(m===a&&f)return f;if(!ot&&m&&m in h)return h[m];switch(m){case fv:return function(){return new r(this,m)};case fr:return function(){return new r(this,m)};case gv:return function(){return new r(this,m)}}return function(){return new r(this)}},o=e+" Iterator",l=!1,h=i.prototype,v=h[cr]||h["@@iterator"]||a&&h[a],f=!ot&&v||u(a),g=e==="Array"&&h.entries||v,d,p,y;if(g&&(d=lv(g.call(new i)),d!==Object.prototype&&d.next&&(!ut&&lv(d)!==cv&&(hv?hv(d,cv):Ex(d[cr])||ma(d,cr,dv)),Ax(d,o,!0,!0),ut&&(vv[o]=dv))),Nx&&a===fr&&v&&v.name!==fr&&(!ut&&Mx?Ix(h,"name",fr):(l=!0,f=function(){return Tx(v,this)})),a)if(p={values:u(fr),keys:n?f:u(fv),entries:u(gv)},s)for(y in p)(ot||l||!(y in h))&&ma(h,y,p[y]);else Ox({target:e,proto:!0,forced:ot||l},p);return(!ut||s)&&h[cr]!==f&&ma(h,cr,f,{name:a}),vv[e]=f,p}});var Sv=c((NO,xv)=>{"use strict";xv.exports=function(i,e){return{value:i,done:e}}});var xa=c((MO,Tv)=>{"use strict";var _x=we(),ba=Jh(),qv=De(),Pv=er(),Vx=ie().f,Dx=bv(),lt=Sv(),kx=H(),Bx=$(),Ov="Array Iterator",Lx=Pv.set,jx=Pv.getterFor(Ov);Tv.exports=Dx(Array,"Array",function(i,e){Lx(this,{type:Ov,target:_x(i),index:0,kind:e})},function(){var i=jx(this),e=i.target,r=i.index++;if(!e||r>=e.length)return i.target=void 0,lt(void 0,!0);switch(i.kind){case"keys":return lt(r,!1);case"values":return lt(e[r],!1)}return lt([r,e[r]],!1)},"values");var wv=qv.Arguments=qv.Array;ba("keys");ba("values");ba("entries");if(!kx&&Bx&&wv.name!=="values")try{Vx(wv,"name",{value:"values"})}catch{}});var Cv=c((_O,Ev)=>{"use strict";Ev.exports={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}});var Rv=c((VO,Iv)=>{"use strict";var Fx=Ke(),Sa=Fx("span").classList,Av=Sa&&Sa.constructor&&Sa.constructor.prototype;Iv.exports=Av===Object.prototype?void 0:Av});var Dv=c(()=>{"use strict";var Nv=O(),_v=Cv(),Ux=Rv(),gr=xa(),Mv=Oe(),zx=ir(),$x=_(),qa=$x("iterator"),wa=gr.values,Vv=function(i,e){if(i){if(i[qa]!==wa)try{Mv(i,qa,wa)}catch{i[qa]=wa}if(zx(i,e,!0),_v[e]){for(var r in gr)if(i[r]!==gr[r])try{Mv(i,r,gr[r])}catch{i[r]=gr[r]}}}};for(ht in _v)Vv(Nv[ht]&&Nv[ht].prototype,ht);var ht;Vv(Ux,"DOMTokenList")});var Fv=c((GO,jv)=>{"use strict";var Gx=ee(),Wx=He(),Yx=Et(),Xx=_r(),kv=TypeError,Bv="Reduce of empty array with
5no initial value",Lv=function(i){return function(e,r,t,a){var n=Wx(e),s=Yx(n),u=Xx(n);if(Gx(r),u===0&&t<2)throw new kv(Bv);var o=i?u-1:0,l=i?-1:1;if(t<2)for(;;){if(o in s){a=s[o],o+=l;break}if(o+=l,i?o<0:u<=o)throw new kv(Bv)}for(;i?o>=0:u>o;o+=l)o in s&&(a=r(a,s[o],o,n));return a}};jv.exports={left:Lv(!1),right:Lv(!0)}});var Ta=c((WO,Uv)=>{"use strict";var Hx=T();Uv.exports=function(i,e){var r=[][i];return!!r&&Hx(function(){r.call(null,e||function(){return 1},1)})}});var $v=c(()=>{"use strict";var Kx=j(),Qx=Fv().left,Zx=Ta(),zv=qr(),Jx=Te(),eS=!Jx&&zv>79&&zv<83,rS=eS||!Zx("reduce");Kx({target:"Array",proto:!0,forced:rS},{reduce:function(e){var r=arguments.length;return Qx(this,e,r,r>1?arguments[1]:void 0)}})});var Yv=c(()=>{"use strict";var tS=j(),iS=nr(),aS=Qe().f,nS=de(),Gv=Z(),sS=nt(),uS=G(),oS=st(),lS=H(),hS=iS("".slice),vS=Math.min,Wv=oS("endsWith"),cS=!lS&&!Wv&&!!function(){var i=aS(String.prototype,"endsWith");return i&&!i.writable}();tS({target:"String",proto:!0,forced:!cS&&!Wv},{endsWith:function(e){var r=Gv(uS(this));sS(e);var t=arguments.length>1?arguments[1]:void 0,a=r.length,n=t===void 0?a:vS(nS(t),a),s=Gv(e);return hS(r,n-s.length,n)===s}})});var Zv=c(()=>{"use strict";var Ea=k(),Qv=E(),fS=rt(),gS=L(),dS=oe(),pS=G(),yS=oi(),mS=tt(),bS=de(),Xv=Z(),xS=fe(),Hv=it(),SS=Xi(),qS=T(),Le=SS.UNSUPPORTED_Y,wS=4294967295,PS=Math.min,Ca=Qv([].push),Aa=Qv("".slice),OS=!qS(function(){var i=/(?:)/,e=i.exec;i.exec=function(){return e.apply(this,arguments)};var r="ab".split(i);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Kv="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;fS("split",function(i,e,r){var t="0".split(void 0,0).length?function(a,n){return a===void 0&&n===0?[]:Ea(e,this,a,n)}:e;return[function(n,s){var u=pS(this),o=dS(n)?void 0:xS(n,i);return o?Ea(o,n,u,s):Ea(t,Xv(u),n,s)},function(a,n){var s=gS(this),u=Xv(a);if(!Kv){var o=r(t,s,u,n,t!==e);if(o.done)return o.value}var l=yS(s,RegExp),h=s.unicode,v=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(Le?"g":"y"),f=new l(Le?"^(?:"+s.source+")":s,v),g=n===void 0?wS:n>>>0;if(g===0)return[];if(u.length===0)return Hv(f,u)===null?[u]:[];for(var d=0,p=0,y=[];p<u.length;){f.lastIndex=Le?0:p;var m=Hv(f,Le?Aa(u,p):u),b;if(m===null||(b=PS(bS(f.lastIndex+(Le?p:0)),u.length))===d)p=mS(u,p,h);else{if(Ca(y,Aa(u,d,p)),y.length===g)return y;for(var q=1;q<=m.length-1;q++)if(Ca(y,m[q]),y.length===g)return y;p=d=b}}return Ca(y,Aa(u,d)),y}]},Kv||!OS,Le)});var Ia=c((JO,Jv)=>{"use strict";Jv.exports=` 6\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var tc=c((eT,rc)=>{"use strict";var TS=E(),ES=G(),CS=Z(),Na=Ia(),ec=TS("".replace),AS=RegExp("^["+Na+"]+"),IS=RegExp("(^|[^"+Na+"])["+Na+"]+$"),Ra=function(i){return function(e){var r=CS(ES(e));return i&1&&(r=ec(r,AS,"")),i&2&&(r=ec(r,IS,"$1")),r}};rc.exports={start:Ra(1),end:Ra(2),trim:Ra(3)}});var sc=c((rT,nc)=>{"use strict";var RS=Ze().PROPER,NS=T(),ic=Ia(),ac="\u200B\x85\u180E";nc.exports=function(i){return NS(function(){return!!ic[i]()||ac[i]()!==ac||RS&&ic[i].name!==i})}});var uc=c(()=>{"use strict";var MS=j(),_S=tc().trim,VS=sc();MS({target:"String",proto:!0,forced:VS("trim")},{trim:function(){return _S(this)}})});var lc=c(()=>{"use strict";var DS=j(),kS=nr(),BS=ti().indexOf,LS=Ta(),Ma=kS([].indexOf),oc=!!Ma&&1/Ma([1],1,-0)<0,jS=oc||!LS("indexOf");DS({target:"Array",proto:!0,forced:jS},{indexOf:function(e){var r=arguments.length>1?arguments[1]:void 0;return oc?Ma(this,e,r)||0:BS(this,e,r)}})});var vc=c(()=>{"use strict";var FS=j(),US=E(),zS=nt(),$S=G(),hc=Z(),GS=st(),WS=US("".indexOf);FS({target:"String",proto:!0,forced:!GS("includes")},{includes:function(e){return!!~WS(hc($S(this)),hc(zS(e)),arguments.length>1?arguments[1]:void 0)}})});var fc=c((oT,cc)=>{"use strict";var YS=ue();cc.exports=Array.isArray||function(e){return YS(e)==="Array"}});var dc=c(()=>{"use strict";var XS=j(),HS=E(),KS=fc(),QS=HS([].reverse),gc=[1,2];XS({target:"Array",proto:!0,forced:String(gc)===String(gc.reverse())},{reverse:function(){return KS(this)&&(this.length=this.length),QS(this)}})});var mc=c((vT,yc)=>{"use strict";var ZS=k(),JS=Y(),eq=We(),rq=$i(),pc=RegExp.prototype;yc.exports=function(i){var e=i.flags;return e===void 0&&!("flags"in pc)&&!JS(i,"flags")&&eq(pc,i)?ZS(rq,i):e}});var qc=c(()=>{"use strict";var tq=Ze().PROPER,iq=he(),aq=L(),bc=Z(),nq=T(),sq=mc(),_a="toString",xc=RegExp.prototype,Sc=xc[_a],uq=nq(function(){return Sc.call({source:"a",flags:"b"})!=="/a/b"}),oq=tq&&Sc.name!==_a;(uq||oq)&&iq(xc,_a,function(){var e=aq(this),r=bc(e.source),t=bc(sq(e));return"/"+r+"/"+t},{unsafe:!0})});var gT=B(eh(),1);function rh(i,e,r,t,a,n,s){try{var u=i[n](s),o=u.value}catch(l){r(l);return}u.done?e(o):Promise.resolve(o).then(t,a)}function Q(i){return function(){var e=this,r=arguments;return new Promise(function(t,a){var n=i.apply(e,r);function s(o){rh(n,t,a,s,u,"next",o)}function u(o){rh(n,t,a,s,u,"throw",o)}s(void 0)})}}var pT=B(kh(),1),yT=B($h(),1),mT=B(Qh(),1),bT=B(xa(),1),xT=B(Dv(),1);function Pa(i,e){if(ze(i)!="object"||!i)return i;var r=i[Symbol.toPrimitive];if(r!==void 0){var t=r.call(i,e||"default");if(ze(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Oa(i){var e=Pa(i,"string");return ze(e)=="symbol"?e:e+""}function dr(i,e,r){return e=Oa(e),e in i?Object.defineProperty(i,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[e]=r,i}var qT=B($v(),1),wT=B(Yv(),1),PT=B(Zv(),1),gt=B(Fc(),1),OT=B(uc(),1),dt=B(Uc(),1),TT=B(lc(),1),ET=B(vc(),1),CT=B(dc(),1);var IT=B(qc(),1);function lq(){var{DOMParser:i}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:i,createCanvas(r,t){return new OffscreenCanvas(r,t)},createImage(r){return Q(function*(){var t=yield fetch(r),a=yield t.blob(),n=yield createImageBitmap(a);return n})()}};return(typeof DOMParser<"u"||typeof i>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function hq(i){var{DOMParser:e,canvas:r,fetch:t}=i;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:t,createCanvas:r.createCanvas,createImage:r.loadImage}}var NT=Object.freeze({__proto__:null,offscreen:lq,node:hq});function Ue(i){return i.replace(/(?!\u3000)\s+/gm," ")}function vq(i){return i.replace(/^[\n \t]+/,"")}function cq(i){return i.replace(/[\n \t]+$/,"")}function U(i){var e=(i||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var fq=/^[A-Z-]+$/;function gq(i){return fq.test(i)?i.toLowerCase():i}function wc(i){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(i)||[];return e[2]||e[3]||e[4]}function dq(i){if(!i.startsWith("rgb"))return i;var e=3,r=i.replace(/\d+(\.\d+)?/g,(t,a)=>e--&&a?String(Math.round(parseFloat(t))):t);return r}var pq=/(\[[^\]]+\])/g,yq=/(#[^\s+>~.[:]+)/g,mq=/(\.[^\s+>~.[:]+)/g,bq=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,xq=/(:[\w-]+\([^)]*\))/gi,Sq=/(:[^\s+>~.[:]+)/g,qq=/([^\s+>~.[:]+)/g;function me(i,e){var r=e.exec(i);return r?[i.replace(e," "),r.length]:[i,0]}function wq(i){var e=[0,0,0],r=i.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),t=0;return[r,t]=me(r,pq),e[1]+=t,[r,t]=me(r,yq),e[0]+=t,[r,t]=me(r,mq),e[1]+=t,[r,t]=me(r,bq),e[2]+=t,[r,t]=me(r,xq),e[1]+=t,[r,t]=me(r,Sq),e[1]+=t,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[r,t]=me(r,qq),e[2]+=t,e.join("")}var je=1e-8;function Pc(i){return Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2))}function Va(i,e){return(i[0]*e[0]+i[1]*e[1])/(Pc(i)*Pc(e))}function Oc(i,e){return(i[0]*e[1]<i[1]*e[0]?-1:1)*Math.acos(Va(i,e))}function Tc(i){return i*i*i}function Ec(i){return 3*i*i*(1-i)}function Cc(i){return 3*i*(1-i)*(1-i)}function Ac(i){return(1-i)*(1-i)*(1-i)}function Ic(i){return i*i}function Rc(i){return 2*i*(1-i)}function Nc(i){return(1-i)*(1-i)}var x=(()=>{class i{constructor(r,t,a){this.document=r,this.name=t,this.value=a,this.isNormalizedColor=!1}static empty(r){return new i(r,"EMPTY","")}split(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:t,name:a}=this;return Ue(this.getString()).trim().split(r).map(n=>new i(t,a,n))}hasValue(r){var{value:t}=this;return t!==null&&t!==""&&(r||t!==0)&&typeof t<"u"}isString(r){var{value:t}=this,a=typeof t=="string";return!a||!r?a:r.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var r=this.getString();switch(!0){case r.endsWith("px"):case/^[0-9]+$/.test(r):return!0;default:return!1}}setValue(r){return this.value=r,this}getValue(r){return typeof r>"u"||this.hasValue()?this.value:r}getNumber(r){if(!this.hasValue())return typeof r>"u"?0:parseFloat(r);var{value:t}=this,a=parseFloat(t);return this.isString(/%$/)&&(a/=100),a}getString(r){return typeof r>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(r)}getColor(r){var t=this.getString(r);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=dq(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}
vendor: 10,423 bytes, line 6
6getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[a,n]=typeof r=="boolean"?[void 0,r]:[r],{viewPort:s}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(s.computeSize("x"),s.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(s.computeSize("x"),s.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*s.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*s.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(/%$/)&&n):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(a);default:{var u=this.getNumber();return t&&u<1?u*s.computeSize(a):u}}}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 r=this.getString(),t=/#([^)'"]+)/.exec(r);return t&&(t=t[1]),t||(t=r),this.document.definitions[t]}getFillStyleDefinition(r,t){var a=this.getDefinition();if(!a)return null;if(typeof a.createGradient=="function")return a.createGradient(this.document.ctx,r,t);if(typeof a.createPattern=="function"){if(a.getHrefAttribute().hasValue()){var n=a.getAttribute("patternTransform");a=a.getHrefAttribute().getDefinition(),n.hasValue()&&a.getAttribute("patternTransform",!0).setValue(n.value)}return a.createPattern(this.document.ctx,r,t)}return null}getTextBaseline(){return this.hasValue()?i.textBaselineMapping[this.getString()]:null}addOpacity(r){for(var t=this.getColor(),a=t.length,n=0,s=0;s<a&&(t[s]===","&&n++,n!==3);s++);if(r.hasValue()&&this.isString()&&n!==3){var u=new dt.default(t);u.ok&&(u.alpha=r.getNumber(),t=u.toRGBA())}return new i(this.document,this.name,t)}}return i.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"},i})(),Da=class{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,r){this.viewPorts.push({width:e,height:r})}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)}},V=class i{constructor(e,r){this.x=e,this.y=r}static parse(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[t=r,a=r]=U(e);return new i(t,a)}static parseScale(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[t=r,a=t]=U(e);return new i(t,a)}static parsePath(e){for(var r=U(e),t=r.length,a=[],n=0;n<t;n+=2)a.push(new i(r[n],r[n+1]));return a}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:r,y:t}=this,a=r*e[0]+t*e[2]+e[4],n=r*e[1]+t*e[3]+e[5];this.x=a,this.y=n}},ka=class{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:r,onMouseMove:t}=this,a=e.ctx.canvas;a.onclick=r,a.onmousemove=t,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:r,eventElements:t}=this,{style:a}=e.ctx.canvas;a&&(a.cursor=""),r.forEach((n,s)=>{for(var{run:u}=n,o=t[s];o;)u(o),o=o.parent}),this.events=[],this.eventElements=[]}}checkPath(e,r){if(!(!this.working||!r)){var{events:t,eventElements:a}=this;t.forEach((n,s)=>{var{x:u,y:o}=n;!a[s]&&r.isPointInPath&&r.isPointInPath(u,o)&&(a[s]=e)})}}checkBoundingBox(e,r){if(!(!this.working||!r)){var{events:t,eventElements:a}=this;t.forEach((n,s)=>{var{x:u,y:o}=n;!a[s]&&r.isPointInBox(u,o)&&(a[s]=e)})}}mapXY(e,r){for(var{window:t,ctx:a}=this.screen,n=new V(e,r),s=a.canvas;s;)n.x-=s.offsetLeft,n.y-=s.offsetTop,s=s.offsetParent;return t.scrollX&&(n.x+=t.scrollX),t.scrollY&&(n.y+=t.scrollY),n}onClick(e){var{x:r,y:t}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:r,y:t,run(a){a.onClick&&a.onClick()}})}onMouseMove(e){var{x:r,y:t}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:r,y:t,run(a){a.onMouseMove&&a.onMouseMove()}})}},Mc=typeof window<"u"?window:null,_c=typeof fetch<"u"?fetch.bind(void 0):null,jc=(()=>{class i{constructor(r){var{fetch:t=_c,window:a=Mc}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=r,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Da,this.mouse=new ka(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=a,this.fetch=t}wait(r){this.waits.push(r)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var r=this.waits.every(t=>t());return r&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=r,r}setDefaults(r){r.strokeStyle="rgba(0,0,0,0)",r.lineCap="butt",r.lineJoin="miter",r.miterLimit=4}setViewBox(r){var{document:t,ctx:a,aspectRatio:n,width:s,desiredWidth:u,height:o,desiredHeight:l,minX:h=0,minY:v=0,refX:f,refY:g,clip:d=!1,clipX:p=0,clipY:y=0}=r,m=Ue(n).replace(/^defer\s/,""),[b,q]=m.split(" "),w=b||"xMidYMid",P=q||"meet",D=s/u,R=o/l,A=Math.min(D,R),re=Math.max(D,R),J=u,ce=l;P==="meet"&&(J*=A,ce*=A),P==="slice"&&(J*=re,ce*=re);var te=new x(t,"refX",f),wn=new x(t,"refY",g),Pn=te.hasValue()&&wn.hasValue();if(Pn&&a.translate(-A*te.getPixels("x"),-A*wn.getPixels("y")),d){var On=A*p,Tn=A*y;a.beginPath(),a.moveTo(On,Tn),a.lineTo(s,Tn),a.lineTo(s,o),a.lineTo(On,o),a.closePath(),a.clip()}if(!Pn){var En=P==="meet"&&A===R,Cn=P==="slice"&&re===R,An=P==="meet"&&A===D,In=P==="slice"&&re===D;w.startsWith("xMid")&&(En||Cn)&&a.translate(s/2-J/2,0),w.endsWith("YMid")&&(An||In)&&a.translate(0,o/2-ce/2),w.startsWith("xMax")&&(En||Cn)&&a.translate(s-J,0),w.endsWith("YMax")&&(An||In)&&a.translate(0,o-ce)}switch(!0){case w==="none":a.scale(D,R);break;case P==="meet":a.scale(A,A);break;case P==="slice":a.scale(re,re);break}a.translate(-h,-v)}start(r){var{enableRedraw:t=!1,ignoreMouse:a=!1,ignoreAnimation:n=!1,ignoreDimensions:s=!1,ignoreClear:u=!1,forceRedraw:o,scaleWidth:l,scaleHeight:h,offsetX:v,offsetY:f}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:g,mouse:d}=this,p=1e3/g;if(this.frameDuration=p,this.readyPromise=new Promise(w=>{this.resolveReady=w}),this.isReady()&&this.render(r,s,u,l,h,v,f),!!t){var y=Date.now(),m=y,b=0,q=()=>{y=Date.now(),b=y-m,b>=p&&(m=y-b%p,this.shouldUpdate(n,o)&&(this.render(r,s,u,l,h,v,f),d.runEvents())),this.intervalId=(0,gt.default)(q)};a||d.start(),this.intervalId=(0,gt.default)(q)}}stop(){this.intervalId&&(gt.default.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(r,t){if(!r){var{frameDuration:a}=this,n=this.animations.reduce((s,u)=>u.update(a)||s,!1);if(n)return!0}return!!(typeof t=="function"&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(r,t,a,n,s,u,o){var{CLIENT_WIDTH:l,CLIENT_HEIGHT:h,viewPort:v,ctx:f,isFirstRender:g}=this,d=f.canvas;v.clear(),d.width&&d.height?v.setCurrent(d.width,d.height):v.setCurrent(l,h);var p=r.getStyle("width"),y=r.getStyle("height");!t&&(g||typeof n!="number"&&typeof s!="number")&&(p.hasValue()&&(d.width=p.getPixels("x"),d.style&&(d.style.width="".concat(d.width,"px"))),y.hasValue()&&(d.height=y.getPixels("y"),d.style&&(d.style.height="".concat(d.height,"px"))));var m=d.clientWidth||d.width,b=d.clientHeight||d.height;if(t&&p.hasValue()&&y.hasValue()&&(m=p.getPixels("x"),b=y.getPixels("y")),v.setCurrent(m,b),typeof u=="number"&&r.getAttribute("x",!0).setValue(u),typeof o=="number"&&r.getAttribute("y",!0).setValue(o),typeof n=="number"||typeof s=="number"){var q=U(r.getAttribute("viewBox").getString()),w=0,P=0;if(typeof n=="number"){var D=r.getStyle("width");D.hasValue()?w=D.getPixels("x")/n:isNaN(q[2])||(w=q[2]/n)}if(typeof s=="number"){var R=r.getStyle("height");R.hasValue()?P=R.getPixels("y")/s:isNaN(q[3])||(P=q[3]/s)}w||(w=P),P||(P=w),r.getAttribute("width",!0).setValue(n),r.getAttribute("height",!0).setValue(s);var A=r.getStyle("transform",!0,!0);A.setValue("".concat(A.getString()," scale(").concat(1/w,", ").concat(1/P,")"))}a||f.clearRect(0,0,m,b),r.render(f),g&&(this.isFirstRender=!1)}}return i.defaultWindow=Mc,i.defaultFetch=_c,i})(),{defaultFetch:Pq}=jc,Oq=typeof DOMParser<"u"?DOMParser:null,pr=class{constructor(){var{fetch:e=Pq,DOMParser:r=Oq}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=r}parse(e){var r=this;return Q(function*(){return e.startsWith("<")?r.parseFromString(e):r.load(e)})()}parseFromString(e){var r=new this.DOMParser;try{return this.checkDocument(r.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(r.parseFromString(e,"text/xml"))}}checkDocument(e){var r=e.getElementsByTagName("parsererror")[0];if(r)throw new Error(r.textContent);return e}load(e){var r=this;return Q(function*(){var t=yield r.fetch(e),a=yield t.text();return r.parseFromString(a)})()}},Ba=class{constructor(e,r){this.type="translate",this.point=null,this.point=V.parse(r)}apply(e){var{x:r,y:t}=this.point;e.translate(r||0,t||0)}
6unapply(e){var{x:r,y:t}=this.point;e.translate(-1*r||0,-1*t||0)}applyToPoint(e){var{x:r,y:t}=this.point;e.applyTransform([1,0,0,1,r||0,t||0])}},La=class{constructor(e,r,t){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var a=U(r);this.angle=new x(e,"angle",a[0]),this.originX=t[0],this.originY=t[1],this.cx=a[1]||0,this.cy=a[2]||0}apply(e){var{cx:r,cy:t,originX:a,originY:n,angle:s}=this,u=r+a.getPixels("x"),o=t+n.getPixels("y");e.translate(u,o),e.rotate(s.getRadians()),e.translate(-u,-o)}unapply(e){var{cx:r,cy:t,originX:a,originY:n,angle:s}=this,u=r+a.getPixels("x"),o=t+n.getPixels("y");e.translate(u,o),e.rotate(-1*s.getRadians()),e.translate(-u,-o)}applyToPoint(e){var{cx:r,cy:t,angle:a}=this,n=a.getRadians();e.applyTransform([1,0,0,1,r||0,t||0]),e.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),e.applyTransform([1,0,0,1,-r||0,-t||0])}},ja=class{constructor(e,r,t){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var a=V.parseScale(r);(a.x===0||a.y===0)&&(a.x=je,a.y=je),this.scale=a,this.originX=t[0],this.originY=t[1]}apply(e){var{scale:{x:r,y:t},originX:a,originY:n}=this,s=a.getPixels("x"),u=n.getPixels("y");e.translate(s,u),e.scale(r,t||r),e.translate(-s,-u)}unapply(e){var{scale:{x:r,y:t},originX:a,originY:n}=this,s=a.getPixels("x"),u=n.getPixels("y");e.translate(s,u),e.scale(1/r,1/t||r),e.translate(-s,-u)}applyToPoint(e){var{x:r,y:t}=this.scale;e.applyTransform([r||0,0,0,t||0,0,0])}},pt=class{constructor(e,r,t){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=U(r),this.originX=t[0],this.originY=t[1]}apply(e){var{originX:r,originY:t,matrix:a}=this,n=r.getPixels("x"),s=t.getPixels("y");e.translate(n,s),e.transform(a[0],a[1],a[2],a[3],a[4],a[5]),e.translate(-n,-s)}unapply(e){var{originX:r,originY:t,matrix:a}=this,n=a[0],s=a[2],u=a[4],o=a[1],l=a[3],h=a[5],v=0,f=0,g=1,d=1/(n*(l*g-h*f)-s*(o*g-h*v)+u*(o*f-l*v)),p=r.getPixels("x"),y=t.getPixels("y");e.translate(p,y),e.transform(d*(l*g-h*f),d*(h*v-o*g),d*(u*f-s*g),d*(n*g-u*v),d*(s*h-u*l),d*(u*o-n*h)),e.translate(-p,-y)}applyToPoint(e){e.applyTransform(this.matrix)}},yt=class extends pt{constructor(e,r,t){super(e,r,t),this.type="skew",this.angle=null,this.angle=new x(e,"angle",r)}},Fa=class extends yt{constructor(e,r,t){super(e,r,t),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}},Ua=class extends yt{constructor(e,r,t){super(e,r,t),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}};function Tq(i){return Ue(i).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Eq(i){var[e,r]=i.split("(");return[e.trim(),r.trim().replace(")","")]}var qn=(()=>{class i{constructor(r,t,a){this.document=r,this.transforms=[];var n=Tq(t);n.forEach(s=>{if(s!=="none"){var[u,o]=Eq(s),l=i.transformTypes[u];typeof l<"u"&&this.transforms.push(new l(this.document,o,a))}})}static fromElement(r,t){var a=t.getStyle("transform",!1,!0),[n,s=n]=t.getStyle("transform-origin",!1,!0).split(),u=[n,s];return a.hasValue()?new i(r,a.getString(),u):null}apply(r){for(var{transforms:t}=this,a=t.length,n=0;n<a;n++)t[n].apply(r)}unapply(r){for(var{transforms:t}=this,a=t.length,n=a-1;n>=0;n--)t[n].unapply(r)}applyToPoint(r){for(var{transforms:t}=this,a=t.length,n=0;n<a;n++)t[n].applyToPoint(r)}}return i.transformTypes={translate:Ba,rotate:La,scale:ja,matrix:pt,skewX:Fa,skewY:Ua},i})(),I=(()=>{class i{constructor(r,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=r,this.node=t,this.captureTextNodes=a,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!t||t.nodeType!==1)){if(Array.from(t.attributes).forEach(o=>{var l=gq(o.nodeName);this.attributes[l]=new x(r,l,o.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var n=this.getAttribute("style").getString().split(";").map(o=>o.trim());n.forEach(o=>{if(o){var[l,h]=o.split(":").map(v=>v.trim());this.styles[l]=new x(r,l,h)}})}var{definitions:s}=r,u=this.getAttribute("id");u.hasValue()&&(s[u.getString()]||(s[u.getString()]=this)),Array.from(t.childNodes).forEac
vendor: 60,229 bytes, line 6
6h(o=>{if(o.nodeType===1)this.addChild(o);else if(a&&(o.nodeType===3||o.nodeType===4)){var l=r.createTextNode(o);l.getText().length>0&&this.addChild(l)}})}}getAttribute(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=this.attributes[r];if(!a&&t){var n=new x(this.document,r,"");return this.attributes[r]=n,n}return a||x.empty(this.document)}getHrefAttribute(){for(var r in this.attributes)if(r==="href"||r.endsWith(":href"))return this.attributes[r];return x.empty(this.document)}getStyle(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.styles[r];if(n)return n;var s=this.getAttribute(r);if(s!=null&&s.hasValue())return this.styles[r]=s,s;if(!a){var{parent:u}=this;if(u){var o=u.getStyle(r);if(o!=null&&o.hasValue())return o}}if(t){var l=new x(this.document,r,"");return this.styles[r]=l,l}return n||x.empty(this.document)}render(r){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(r.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(r),t.apply(r,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var a=this.getStyle("filter").getDefinition();a&&(this.applyEffects(r),a.apply(r,this))}else this.setContext(r),this.renderChildren(r),this.clearContext(r);r.restore()}}setContext(r){}applyEffects(r){var t=qn.fromElement(this.document,this);t&&t.apply(r);var a=this.getStyle("clip-path",!1,!0);if(a.hasValue()){var n=a.getDefinition();n&&n.apply(r)}}clearContext(r){}renderChildren(r){this.children.forEach(t=>{t.render(r)})}addChild(r){var t=r instanceof i?r:this.document.createElement(r);t.parent=this,i.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(r){var t,{node:a}=this;if(typeof a.matches=="function")return a.matches(r);var n=(t=a.getAttribute)===null||t===void 0?void 0:t.call(a,"class");return!n||n===""?!1:n.split(" ").some(s=>".".concat(s)===r)}addStylesFromStyleDefinition(){var{styles:r,stylesSpecificity:t}=this.document;for(var a in r)if(!a.startsWith("@")&&this.matchesSelector(a)){var n=r[a],s=t[a];if(n)for(var u in n){var o=this.stylesSpecificity[u];typeof o>"u"&&(o="000"),s>=o&&(this.styles[u]=n[u],this.stylesSpecificity[u]=s)}}}removeStyles(r,t){var a=t.reduce((n,s)=>{var u=r.getStyle(s);if(!u.hasValue())return n;var o=u.getString();return u.setValue(""),[...n,[s,o]]},[]);return a}restoreStyles(r,t){t.forEach(a=>{var[n,s]=a;r.getStyle(n,!0).setValue(s)})}isFirstChild(){var r;return((r=this.parent)===null||r===void 0?void 0:r.children.indexOf(this))===0}}return i.ignoreChildTypes=["title"],i})(),za=class extends I{constructor(e,r,t){super(e,r,t)}};function Cq(i){var e=i.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function Aq(i){return typeof process>"u"?i:i.trim().split(",").map(Cq).join(",")}function Iq(i){if(!i)return"";var e=i.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 Rq(i){if(!i)return"";var e=i.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:""}}var Fe=(()=>{class i{constructor(r,t,a,n,s,u){var o=u?typeof u=="string"?i.parse(u):u:{};this.fontFamily=s||o.fontFamily,this.fontSize=n||o.fontSize,this.fontStyle=r||o.fontStyle,this.fontWeight=a||o.fontWeight,this.fontVariant=t||o.fontVariant}static parse(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,a="",n="",s="",u="",o="",l=Ue(r).trim().split(" "),h={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(v=>{switch(!0){case(!h.fontStyle&&i.styles.includes(v)):v!=="inherit"&&(a=v),h.fontStyle=!0;break;case(!h.fontVariant&&i.variants.includes(v)):v!=="inherit"&&(n=v),h.fontStyle=!0,h.fontVariant=!0;break;case(!h.fontWeight&&i.weights.includes(v)):v!=="inherit"&&(s=v),h.fontStyle=!0,h.fontVariant=!0,h.fontWeight=!0;break;case!h.fontSize:v!=="inherit"&&([u]=v.split("/")),h.fontStyle=!0,h.fontVariant=!0,h.fontWeight=!0,h.fontSize=!0;break;default:v!=="inherit"&&(o+=v)}}),new i(a,n,s,u,o,t)}toString(){return[Iq(this.fontStyle),this.fontVariant,Rq(this.fontWeight),this.fontSize,Aq(this.fontFamily)].join(" ").trim()}}return i.styles="normal|italic|oblique|inherit",i.variants="normal|small-caps|inherit",i.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",i})(),z=class{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=r,this.x2=t,this.y2=a,this.addPoint(e,r),this.addPoint(t,a)}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,r){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 r<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=r,this.y2=r),r<this.y1&&(this.y1=r),r>this.y2&&(this.y2=r))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:r,y1:t,x2:a,y2:n}=e;this.addPoint(r,t),this.addPoint(a,n)}}sumCubic(e,r,t,a,n){return Math.pow(1-e,3)*r+3*Math.pow(1-e,2)*e*t+3*(1-e)*Math.pow(e,2)*a+Math.pow(e,3)*n}bezierCurveAdd(e,r,t,a,n){var s=6*r-12*t+6*a,u=-3*r+9*t-9*a+3*n,o=3*t-3*r;if(u===0){if(s===0)return;var l=-o/s;0<l&&l<1&&(e?this.addX(this.sumCubic(l,r,t,a,n)):this.addY(this.sumCubic(l,r,t,a,n)));return}var h=Math.pow(s,2)-4*o*u;if(!(h<0)){var v=(-s+Math.sqrt(h))/(2*u);0<v&&v<1&&(e?this.addX(this.sumCubic(v,r,t,a,n)):this.addY(this.sumCubic(v,r,t,a,n)));var f=(-s-Math.sqrt(h))/(2*u);0<f&&f<1&&(e?this.addX(this.sumCubic(f,r,t,a,n)):this.addY(this.sumCubic(f,r,t,a,n)))}}addBezierCurve(e,r,t,a,n,s,u,o){this.addPoint(e,r),this.addPoint(u,o),this.bezierCurveAdd(!0,e,t,n,u),this.bezierCurveAdd(!1,r,a,s,o)}addQuadraticCurve(e,r,t,a,n,s){var u=e+.6666666666666666*(t-e),o=r+2/3*(a-r),l=u+1/3*(n-e),h=o+1/3*(s-r);this.addBezierCurve(e,r,u,l,o,h,n,s)}isPointInBox(e,r){var{x1:t,y1:a,x2:n,y2:s}=this;return t<=e&&e<=n&&a<=r&&r<=s}},S=class extends qe{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 V(0,0),this.control=new V(0,0),this.current=new V(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:r}=this;return e>=r.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",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",t=new V(this.command[e],this.command[r]);return this.makeAbsolute(t)}getAsControlPoint(e,r){var t=this.getPoint(e,r);return this.control=t,t}getAsCurrentPoint(e,r){var t=this.getPoint(e,r);return this.current=t,t}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==qe.CURVE_TO&&e!==qe.SMOOTH_CURVE_TO&&e!==qe.QUAD_TO&&e!==qe.SMOOTH_QUAD_TO)return this.current;var{current:{x:r,y:t},control:{x:a,y:n}}=this,s=new V(2*r-a,2*t-n);return s}makeAbsolute(e){if(this.command.relative){var{x:r,y:t}=this.current;e.x+=r,e.y+=t}return e}addMarker(e,r,t){var{points:a,angles:n}=this;t&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=a[a.length-1].angleTo(t)),this.addMarkerAngle(e,r?r.angleTo(e):null)}addMarkerAngle(e,r){this.points.push(e),this.angles.push(r)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,r=e.length,t=0;t<r;t++)if(!e[t]){for(var a=t+1;a<r;a++)if(e[a]){e[t]=e[a];break}}return e}},se=class extends I{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,r=this;r;){var t=r.getStyle("opacity",!1,!0);t.hasValue(!0)&&(e*=t.getNumber()),r=r.parent}return e}setContext(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!r){var t=this.getStyle("fill"),a=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),s=this.getStyle("stroke-opacity");if(t.isUrlDefinition()){var u=t.getFillStyleDefinition(this,a);u&&(e.fillStyle=u)}else if(t.hasValue()){t.getString()==="currentColor"&&t.setValue(this.getStyle("color").getColor());var o=t.getColor();o!=="inherit"&&(e.fillStyle=o==="none"?"rgba(0,0,0,0)":o)}if(a.hasValue()){var l=new x(this.document,"fill",e.fillStyle).addOpacity(a).getColor();e.fillStyle=l}if(n.isUrlDefinition()){var h=n.getFillStyleDefinition(this,s);h&&(e.strokeStyle=h)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var v=n.getString();v!=="inherit"&&(e.strokeStyle=v==="none"?"rgba(0,0,0,0)":v)}if(s.hasValue()){var f=new x(this.document,"stroke",e.strokeStyle).addOpacity(s).getString();e.strokeStyle=f}var g=this.getStyle("stroke-width");if(g.hasValue()){var d=g.getPixels();e.lineWidth=d||je}var p=this.getStyle("stroke-linecap"),y=this.getStyle("stroke-linejoin"),m=this.getStyle("stroke-miterlimit"),b=this.getStyle("stroke-dasharray"),q=this.getStyle("stroke-dashoffset");if(p.hasValue()&&(e.lineCap=p.getString()),y.hasValue()&&(e.lineJoin=y.getString()),m.hasValue()&&(e.miterLimit=m.getNumber()),b.hasValue()&&b.getString()!=="none"){var w=U(b.getString());typeof e.setLineDash<"u"?e.setLineDash(w):typeof e.webkitLineDash<"u"?e.webkitLineDash=w:typeof e.mozDash<"u"&&!(w.length===1&&w[0]===0)&&(e.mozDash=w);var P=q.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=P:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=P:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=P)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var D=this.getStyle("font"),R=this.getStyle("font-style"),A=this.getStyle("font-variant"),re=this.getStyle("font-weight"),J=this.getStyle("font-size"),ce=this.getStyle("font-family"),te=new Fe(R.getString(),A.getString(),re.getString(),J.hasValue()?"".concat(J.getPixels(!0),"px"):"",ce.getString(),Fe.parse(D.getString(),e.font));R.setValue(te.fontStyle),A.setValue(te.fontVariant),re.setValue(te.fontWeight),J.setValue(te.fontSize),ce.setValue(te.fontFamily),e.font=te.toString(),J.isPixels()&&(this.document.emSize=J.getPixels(),this.modifiedEmSizeStack=!0)}r||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}},M=class i extends se{constructor(e,r,t){super(e,r,t),this.type="path",this.pathParser=null,this.pathParser=new S(this.getAttribute("d").getString())}path(e){var{pathParser:r}=this,t=new z;for(r.reset(),e&&e.beginPath();!r.isEnd();)switch(r.next().type){case S.MOVE_TO:this.pathM(e,t);break;case S.LINE_TO:this.pathL(e,t);break;case S.HORIZ_LINE_TO:this.pathH(e,t);break;case S.VERT_LINE_TO:this.pathV(e,t);break;case S.CURVE_TO:this.pathC(e,t);break;case S.SMOOTH_CURVE_TO:this.pathS(e,t);break;case S.QUAD_TO:this.pathQ(e,t);break;case S.SMOOTH_QUAD_TO:this.pathT(e,t);break;case S.ARC:this.pathA(e,t);break;case S.CLOSE_PATH:this.pathZ(e,t);break}return t}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,r=e.getMarkerPoints(),t=e.getMarkerAngles(),a=r.map((n,s)=>[n,t[s]]);return a}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var r=this.getStyle("fill-rule");e.fillStyle!==""&&(r.getString("inherit")!=="inherit"?e.fill(r.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 t=this.getMarkers();if(t){var a=t.length-1,n=this.getStyle("marker-start"),s=this.getStyle("marker-mid"),u=this.getStyle("marker-end");if(n.isUrlDefinition()){var o=n.getDefinition(),[l,h]=t[0];o.render(e,l,h)}if(s.isUrlDefinition())for(var v=s.getDefinition(),f=1;f<a;f++){var[g,d]=t[f];v.render(e,g,d)}if(u.isUrlDefinition()){var p=u.getDefinition(),[y,m]=t[a];p.render(e,y,m)}}}static pathM(e){var r=e.getAsCurrentPoint();return e.start=e.current,{point:r}}pathM(e,r){var{pathParser:t}=this,{point:a}=i.pathM(t),{x:n,y:s}=a;t.addMarker(a),r.addPoint(n,s),e&&e.moveTo(n,s)}static pathL(e){var{current:r}=e,t=e.getAsCurrentPoint();return{current:r,point:t}}pathL(e,r){var{pathParser:t}=this,{current:a,point:n}=i.pathL(t),{x:s,y:u}=n;t.addMarker(n,a),r.addPoint(s,u),e&&e.lineTo(s,u)}static pathH(e){var{current:r,command:t}=e,a=new V((t.relative?r.x:0)+t.x,r.y);return e.current=a,{current:r,point:a}}pathH(e,r){var{pathParser:t}=this,{current:a,point:n}=i.pathH(t),{x:s,y:u}=n;t.addMarker(n,a),r.addPoint(s,u),e&&e.lineTo(s,u)}static pathV(e){var{current:r,command:t}=e,a=new V(r.x,(t.relative?r.y:0)+t.y);return e.current=a,{current:r,point:a}}pathV(e,r){var{pathParser:t}=this,{current:a,point:n}=i.pathV(t),{x:s,y:u}=n;t.addMarker(n,a),r.addPoint(s,u),e&&e.lineTo(s,u)}static pathC(e){var{current:r}=e,t=e.getPoint("x1","y1"),a=e.getAsControlPoint("x2","y2"),n=e.getAsCurrentPoint();return{current:r,point:t,controlPoint:a,currentPoint:n}}pathC(e,r){var{pathParser:t}=this,{current:a,point:n,controlPoint:s,currentPoint:u}=i.pathC(t);t.addMarker(u,s,n),r.addBezierCurve(a.x,a.y,n.x,n.y,s.x,s.y,u.x,u.y),e&&e.bezierCurveTo(n.x,n.y,s.x,s.y,u.x,u.y)}static pathS(e){var{current:r}=e,t=e.getReflectedControlPoint(),a=e.getAsControlPoint("x2","y2"),n=e.getAsCurrentPoint();return{current:r,point:t,controlPoint:a,currentPoint:n}}pathS(e,r){var{pathParser:t}=this,{current:a,point:n,controlPoint:s,currentPoint:u}=i.pathS(t);t.addMarker(u,s,n),r.addBezierCurve(a.x,a.y,n.x,n.y,s.x,s.y,u.x,u.y),e&&e.bezierCurveTo(n.x,n.y,s.x,s.y,u.x,u.y)}static pathQ(e){var{current:r}=e,t=e.getAsControlPoint("x1","y1"),a=e.getAsCurrentPoint();return{current:r,controlPoint:t,currentPoint:a}}pathQ(e,r){var{pathParser:t}=this,{current:a,controlPoint:n,currentPoint:s}=i.pathQ(t);t.addMarker(s,n,n),r.addQuadraticCurve(a.x,a.y,n.x,n.y,s.x,s.y),e&&e.quadraticCurveTo(n.x,n.y,s.x,s.y)}static pathT(e){var{current:r}=e,t=e.getReflectedControlPoint();e.control=t;var a=e.getAsCurrentPoint();return{current:r,controlPoint:t,currentPoint:a}}pathT(e,r){var{pathParser:t}=this,{current:a,controlPoint:n,currentPoint:s}=i.pathT(t);t.addMarker(s,n,n),r.addQuadraticCurve(a.x,a.y,n.x,n.y,s.x,s.y),e&&e.quadraticCurveTo(n.x,n.y,s.x,s.y)}static pathA(e){var{current:r,command:t}=e,{rX:a,rY:n,xRot:s,lArcFlag:u,sweepFlag:o}=t,l=s*(Math.PI/180),h=e.getAsCurrentPoint(),v=new V(Math.cos(l)*(r.x-h.x)/2+Math.sin(l)*(r.y-h.y)/2,-Math.sin(l)*(r.x-h.x)/2+Math.cos(l)*(r.y-h.y)/2),f=Math.pow(v.x,2)/Math.pow(a,2)+Math.pow(v.y,2)/Math.pow(n,2);f>1&&(a*=Math.sqrt(f),n*=Math.sqrt(f));var g=(u===o?-1:1)*Math.sqrt((Math.pow(a,2)*Math.pow(n,2)-Math.pow(a,2)*Math.pow(v.y,2)-Math.pow(n,2)*Math.pow(v.x,2))/(Math.pow(a,2)*Math.pow(v.y,2)+Math.pow(n,2)*Math.pow(v.x,2)));isNaN(g)&&(g=0);var d=new V(g*a*v.y/n,g*-n*v.x/a),p=new V((r.x+h.x)/2+Math.cos(l)*d.x-Math.sin(l)*d.y,(r.y+h.y)/2+Math.sin(l)*d.x+Math.cos(l)*d.y),y=Oc([1,0],[(v.x-d.x)/a,(v.y-d.y)/n]),m=[(v.x-d.x)/a,(v.y-d.y)/n],b=[(-v.x-d.x)/a,(-v.y-d.y)/n],q=Oc(m,b);return Va(m,b)<=-1&&(q=Math.PI),Va(m,b)>=1&&(q=0),{currentPoint:h,rX:a,rY:n,sweepFlag:o,xAxisRotation:l,centp:p,a1:y,ad:q}}pathA(e,r){var{pathParser:t}=this,{currentPoint:a,rX:n,rY:s,sweepFlag:u,xAxisRotation:o,centp:l,a1:h,ad:v}=i.pathA(t),f=1-u?1:-1,g=h+f*(v/2),d=new V(l.x+n*Math.cos(g),l.y+s*Math.sin(g));if(t.addMarkerAngle(d,g-f*Math.PI/2),t.addMarkerAngle(a,g-f*Math.PI),r.addPoint(a.x,a.y),e&&!isNaN(h)&&!isNaN(v)){var p=n>s?n:s,y=n>s?1:n/s,m=n>s?s/n:1;e.translate(l.x,l.y),e.rotate(o),e.scale(y,m),e.arc(0,0,p,h,h+v,!!(1-u)),e.scale(1/y,1/m),e.rotate(-o),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,r){i.pathZ(this.pathParser),e&&r.x1!==r.x2&&r.y1!==r.y2&&e.closePath()}},mt=class extends M{constructor(e,r,t){super(e,r,t),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}},xe=class i extends se{constructor(e,r,t){super(e,r,new.target===i?!0:t),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,r);var t=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();t&&(e.textBaseline=t)}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 r=null;return this.children.forEach((t,a)=>{var n=this.getChildBoundingBox(e,this,this,a);r?r.addBoundingBox(n):r=n}),r}getFontSize(){var{document:e,parent:r}=this,t=Fe.parse(e.ctx.font).fontSize,a=r.getStyle("font-size").getNumber(t);return a}getTElementBoundingBox(e){var r=this.getFontSize();return new z(this.x,this.y-r,this.x+this.measureText(e),this.y)}getGlyph(e,r,t){var a=r[t],n=null;if(e.isArabic){var s=r.length,u=r[t-1],o=r[t+1],l="isolated";if((t===0||u===" ")&&t<s-1&&o!==" "&&(l="terminal"),t>0&&u!==" "&&t<s-1&&o!==" "&&(l="medial"),t>0&&u!==" "&&(t===s-1||o===" ")&&(l="initial"),typeof e.glyphs[a]<"u"){var h=e.glyphs[a];n=h instanceof mt?h:h[l]}}else n=e.glyphs[a];return n||(n=e.missingGlyph),n}getText(){return""}getTextFromNode(e){var r=e||this.node,t=Array.from(r.parentNode.childNodes),a=t.indexOf(r),n=t.length-1,s=Ue(r.textContent||"");return a===0&&(s=vq(s)),a===n&&(s=cq(s)),s}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((t,a)=>{this.renderChild(e,this,this,a)});var{mouse:r}=this.document.screen;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:r,parent:t}=this,a=this.getText(),n=t.getStyle("font-family").getDefinition();if(n){for(var{unitsPerEm:s}=n.fontFace,u=Fe.parse(r.ctx.font),o=t.getStyle("font-size").getNumber(u.fontSize),l=t.getStyle("font-style").getString(u.fontStyle),h=o/s,v=n.isRTL?a.split("").reverse().join(""):a,f=U(t.getAttribute("dx").getString()),g=v.length,d=0;d<g;d++){var p=this.getGlyph(n,v,d);e.translate(this.x,this.y),e.scale(h,-h);var y=e.lineWidth;e.lineWidth=e.lineWidth*s/o,l==="italic"&&e.transform(1,0,.4,1,0,0),p.render(e),l==="italic"&&e.transform(1,0,-.4,1,0,0),e.lineWidth=y,e.scale(1/h,-1/h),e.translate(-this.x,-this.y),this.x+=o*(p.horizAdvX||n.horizAdvX)/s,typeof f[d]<"u"&&!isNaN(f[d])&&(this.x+=f[d])}return}var{x:m,y:b}=this;e.fillStyle&&e.fillText(a,m,b),e.strokeStyle&&e.strokeText(a,m,b)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],r=e.getStyle("text-anchor").getString("start"),t=!1,a=0;r==="start"&&!t||r==="end"&&t?a=e.x-this.minX:r==="end"&&!t||r==="start"&&t?a=e.x-this.maxX:a=e.x-(this.minX+this.maxX)/2;for(var n=this.textChunkStart;n<this.leafTexts.length;n++)this.leafTexts[n].x+=a;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((r,t)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,t)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,r,t,a){var n=t.children[a];n.children.length>0?n.children.forEach((s,u)=>{r.adjustChildCoordinatesRecursiveCore(e,r,n,u)}):this.adjustChildCoordinates(e,r,t,a)}adjustChildCoordinates(e,r,t,a){var n=t.children[a];if(typeof n.measureText!="function")return n;e.save(),n.setContext(e,!0);var s=n.getAttribute("x"),u=n.getAttribute("y"),o=n.getAttribute("dx"),l=n.getAttribute("dy"),h=n.getStyle("font-family").getDefinition(),v=!!h&&h.isRTL;a===0&&(s.hasValue()||s.setValue(n.getInheritedAttribute("x")),u.hasValue()||u.setValue(n.getInheritedAttribute("y")),o.hasValue()||o.setValue(n.getInheritedAttribute("dx")),l.hasValue()||l.setValue(n.getInheritedAttribute("dy")));var f=n.measureText(e);return v&&(r.x-=f),s.hasValue()?(r.applyAnchoring(),n.x=s.getPixels("x"),o.hasValue()&&(n.x+=o.getPixels("x"))):(o.hasValue()&&(r.x+=o.getPixels("x")),n.x=r.x),r.x=n.x,v||(r.x+=f),u.hasValue()?(n.y=u.getPixels("y"),l.hasValue()&&(n.y+=l.getPixels("y"))):(l.hasValue()&&(r.y+=l.getPixels("y")),n.y=r.y),r.y=n.y,r.leafTexts.push(n),r.minX=Math.min(r.minX,n.x,n.x+f),r.maxX=Math.max(r.maxX,n.x,n.x+f),n.clearContext(e),e.restore(),n}getChildBoundingBox(e,r,t,a){var n=t.children[a];if(typeof n.getBoundingBox!="function")return null;var s=n.getBoundingBox(e);return s?(n.children.forEach((u,o)=>{var l=r.getChildBoundingBox(e,r,n,o);s.addBoundingBox(l)}),s):null}renderChild(e,r,t,a){var n=t.children[a];n.render(e),n.children.forEach((s,u)=>{r.renderChild(e,r,n,u)})}measureText(e){var{measureCache:r}=this;if(~r)return r;var t=this.getText(),a=this.measureTargetText(e,t);return this.measureCache=a,a}measureTargetText(e,r){if(!r.length)return 0;var{parent:t}=this,a=t.getStyle("font-family").getDefinition();if(a){for(var n=this.getFontSize(),s=a.isRTL?r.split("").reverse().join(""):r,u=U(t.getAttribute("dx").getString()),o=s.length,l=0,h=0;h<o;h++){var v=this.getGlyph(a,s,h);l+=(v.horizAdvX||a.horizAdvX)*n/a.fontFace.unitsPerEm,typeof u[h]<"u"&&!isNaN(u[h])&&(l+=u[h])}return l}if(!e.measureText)return r.length*10;e.save(),this.setContext(e,!0);var{width:f}=e.measureText(r);return this.clearContext(e),e.restore(),f}getInheritedAttribute(e){for(var r=this;r instanceof i&&r.isFirstChild();){var t=r.parent.getAttribute(e);if(t.hasValue(!0))return t.getValue("0");r=r.parent}return null}},bt=class i extends xe{constructor(e,r,t){super(e,r,new.target===i?!0:t),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}},$a=class extends bt{constructor(){super(...arguments),this.type="textNode"}},Se=class extends se{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var r,{document:t}=this,{screen:a,window:n}=t,s=e.canvas;if(a.setDefaults(e),s.style&&typeof e.font<"u"&&n&&typeof n.getComputedStyle<"u"){e.font=n.getComputedStyle(s).getPropertyValue("font");var u=new x(t,"fontSize",Fe.parse(e.font).fontSize);u.hasValue()&&(t.rootEmSize=u.getPixels("y"),t.emSize=t.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}=a.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 h=this.getAttribute("refX"),v=this.getAttribute("refY"),f=this.getAttribute("viewBox"),g=f.hasValue()?U(f.getString()):null,d=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",p=0,y=0,m=0,b=0;g&&(p=g[0],y=g[1]),this.root||(o=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),this.type==="marker"&&(m=p,b=y,p=0,y=0)),a.viewPort.setCurrent(o,l),this.node&&(!this.parent||((r=this.node.parentNode)===null||r===void 0?void 0:r.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")),g&&(o=g[2],l=g[3]),t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a.viewPort.width,desiredWidth:o,height:a.viewPort.height,desiredHeight:l,minX:p,minY:y,refX:h.getValue(),refY:v.getValue(),clip:d,clipX:m,clipY:b}),g&&(a.viewPort.removeCurrent(),a.viewPort.setCurrent(o,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=this.getAttribute("width",!0),n=this.getAttribute("height",!0),s=this.getAttribute("viewBox"),u=this.getAttribute("style"),o=a.getNumber(0),l=n.getNumber(0);if(t)if(typeof t=="string")this.getAttribute("preserveAspectRatio",!0).setValue(t);else{var h=this.getAttribute("preserveAspectRatio");h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(a.setValue(e),n.setValue(r),s.hasValue()||s.setValue("0 0 ".concat(o||e," ").concat(l||r)),u.hasValue()){var v=this.getStyle("width"),f=this.getStyle("height");v.hasValue()&&v.setValue("".concat(e,"px")),f.hasValue()&&f.setValue("".concat(r,"px"))}}},xt=class extends M{constructor(){super(...arguments),this.type="rect"}path(e){var r=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),a=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),s=this.getAttribute("rx"),u=this.getAttribute("ry"),o=s.getPixels("x"),l=u.getPixels("y");if(s.hasValue()&&!u.hasValue()&&(l=o),u.hasValue()&&!s.hasValue()&&(o=l),o=Math.min(o,a/2),l=Math.min(l,n/2),e){var h=4*((Math.sqrt(2)-1)/3);e.beginPath(),n>0&&a>0&&(e.moveTo(r+o,t),e.lineTo(r+a-o,t),e.bezierCurveTo(r+a-o+h*o,t,r+a,t+l-h*l,r+a,t+l),e.lineTo(r+a,t+n-l),e.bezierCurveTo(r+a,t+n-l+h*l,r+a-o+h*o,t+n,r+a-o,t+n),e.lineTo(r+o,t+n),e.bezierCurveTo(r+o-h*o,t+n,r,t+n-l+h*l,r,t+n-l),e.lineTo(r,t+l),e.bezierCurveTo(r,t+l-h*l,r+o-h*o,t,r+o,t),e.closePath())}return new z(r,t,r+a,t+n)}getMarkers(){return null}},Ga=class extends M{constructor(){super(...arguments),this.type="circle"}path(e){var r=this.getAttribute("cx").getPixels("x"),t=this.getAttribute("cy").getPixels("y"),a=this.getAttribute("r").getPixels();return e&&a>0&&(e.beginPath(),e.arc(r,t,a,0,Math.PI*2,!1),e.closePath()),new z(r-a,t-a,r+a,t+a)}getMarkers(){return null}},Wa=class extends M{constructor(){super(...arguments),this.type="ellipse"}path(e){var r=4*((Math.sqrt(2)-1)/3),t=this.getAttribute("rx").getPixels("x"),a=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),s=this.getAttribute("cy").getPixels("y");return e&&t>0&&a>0&&(e.beginPath(),e.moveTo(n+t,s),e.bezierCurveTo(n+t,s+r*a,n+r*t,s+a,n,s+a),e.bezierCurveTo(n-r*t,s+a,n-t,s+r*a,n-t,s),e.bezierCurveTo(n-t,s-r*a,n-r*t,s-a,n,s-a),e.bezierCurveTo(n+r*t,s-a,n+t,s-r*a,n+t,s),e.closePath()),new z(n-t,s-a,n+t,s+a)}getMarkers(){return null}},Ya=class extends M{constructor(){super(...arguments),this.type="line"}getPoints(){return[new V(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new V(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:r,y:t},{x:a,y:n}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(r,t),e.lineTo(a,n)),new z(r,t,a,n)}getMarkers(){var[e,r]=this.getPoints(),t=e.angleTo(r);return[[e,t],[r,t]]}},St=class extends M{constructor(e,r,t){super(e,r,t),this.type="polyline",this.points=[],this.points=V.parsePath(this.getAttribute("points").getString())}path(e){var{points:r}=this,[{x:t,y:a}]=r,n=new z(t,a);return e&&(e.beginPath(),e.moveTo(t,a)),r.forEach(s=>{var{x:u,y:o}=s;n.addPoint(u,o),e&&e.lineTo(u,o)}),n}getMarkers(){var{points:e}=this,r=e.length-1,t=[];return e.forEach((a,n)=>{n!==r&&t.push([a,a.angleTo(e[n+1])])}),t.length>0&&t.push([e[e.length-1],t[t.length-1][1]]),t}},Xa=class extends St{constructor(){super(...arguments),this.type="polygon"}path(e){var r=super.path(e),[{x:t,y:a}]=this.points;return e&&(e.lineTo(t,a),e.closePath()),r}},Ha=class extends I{constructor(){super(...arguments),this.type="pattern"}createPattern(e,r,t){var a=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),s=new Se(this.document,null);s.attributes.viewBox=new x(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.width=new x(this.document,"width","".concat(a,"px")),s.attributes.height=new x(this.document,"height","".concat(n,"px")),s.attributes.transform=new x(this.document,"transform",this.getAttribute("patternTransform").getValue()),s.children=this.children;var u=this.document.createCanvas(a,n),o=u.getContext("2d"),l=this.getAttribute("x"),h=this.getAttribute("y");l.hasValue()&&h.hasValue()&&o.translate(l.getPixels("x",!0),h.getPixels("y",!0)),t.hasValue()?this.styles["fill-opacity"]=t:Reflect.deleteProperty(this.styles,"fill-opacity");for(var v=-1;v<=1;v++)for(var f=-1;f<=1;f++)o.save(),s.attributes.x=new x(this.document,"x",v*u.width),s.attributes.y=new x(this.document,"y",f*u.height),s.render(o),o.restore();var g=e.createPattern(u,"repeat");return g}},Ka=class extends I{constructor(){super(...arguments),this.type="marker"}render(e,r,t){if(r){var{x:a,y:n}=r,s=this.getAttribute("orient").getString("auto"),u=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(a,n),s==="auto"&&e.rotate(t),u==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var o=new Se(this.document,null);o.type=this.type,o.attributes.viewBox=new x(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new x(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new x(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new x(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new x(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new x(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new x(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new x(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(e),e.restore(),u==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),s==="auto"&&e.rotate(-t),e.translate(-a,-n)}}},Qa=class extends I{constructor(){super(...arguments),this.type="defs"}render(){}},yr=class extends se{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var r=new z;return this.children.forEach(t=>{r.addBoundingBox(t.getBoundingBox(e))}),r}},qt=class extends I{constructor(e,r,t){super(e,r,t),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:a,children:n}=this;n.forEach(s=>{s.type==="stop"&&a.push(s)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,r,t){var a=this;this.getHrefAttribute().hasValue()&&(a=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(a));var{stops:n}=a,s=this.getGradient(e,r);if(!s)return this.addParentOpacity(t,n[n.length-1].color);if(n.forEach(y=>{s.addColorStop(y.offset,this.addParentOpacity(t,y.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:u}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:l}=u.screen,[h]=l.viewPorts,v=new xt(u,null);v.attributes.x=new x(u,"x",-o/3),v.attributes.y=new x(u,"y",-o/3),v.attributes.width=new x(u,"width",o),v.attributes.height=new x(u,"height",o);var f=new yr(u,null);f.attributes.transform=new x(u,"transform",this.getAttribute("gradientTransform").getValue()),f.children=[v];var g=new Se(u,null);g.attributes.x=new x(u,"x",0),g.attributes.y=new x(u,"y",0),g.attributes.width=new x(u,"width",h.width),g.attributes.height=new x(u,"height",h.height),g.children=[f];var d=u.createCanvas(h.width,h.height),p=d.getContext("2d");return p.fillStyle=s,g.render(p),p.createPattern(d,"no-repeat")}return s}inheritStopContainer(e){this.attributesToInherit.forEach(r=>{!this.getAttribute(r).hasValue()&&e.getAttribute(r).hasValue()&&this.getAttribute(r,!0).setValue(e.getAttribute(r).getValue())})}addParentOpacity(e,r){if(e.hasValue()){var t=new x(this.document,"color",r);return t.addOpacity(e).getColor()}return r}},Za=class extends qt{constructor(e,r,t){super(e,r,t),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,r){var t=this.getGradientUnits()==="objectBoundingBox",a=t?r.getBoundingBox(e):null;if(t&&!a)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=t?a.x+a.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),s=t?a.y+a.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),u=t?a.x+a.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=t?a.y+a.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===u&&s===o?null:e.createLinearGradient(n,s,u,o)}},Ja=class extends qt{constructor(e,r,t){super(e,r,t),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,r){var t=this.getGradientUnits()==="objectBoundingBox",a=r.getBoundingBox(e);if(t&&!a)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=t?a.x+a.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),s=t?a.y+a.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),u=n,o=s;this.getAttribute("fx").hasValue()&&(u=t?a.x+a.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=t?a.y+a.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=t?(a.width+a.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),h=this.getAttribute("fr").getPixels();return e.createRadialGradient(u,o,h,n,s,l)}},en=class extends I{constructor(e,r,t){super(e,r,t),this.type="stop";var a=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),s=this.getStyle("stop-color",!0);s.getString()===""&&s.setValue("#000"),n.hasValue()&&(s=s.addOpacity(n)),this.offset=a,this.color=s.getColor()}},mr=class extends I{constructor(e,r,t){super(e,r,t),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 x(e,"values",null);var a=this.getAttribute("values");a.hasValue()&&this.values.setValue(a.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),r=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(r,!0):this.parent.getAttribute(r,!0)}calcValue(){var{initialUnits:e}=this,{progress:r,from:t,to:a}=this.getProgress(),n=t.getNumber()+(a.getNumber()-t.getNumber())*r;return e==="%"&&(n*=100),"".concat(n).concat(e)}update(e){var{parent:r}=this,t=this.getProperty();if(this.initialValue||(this.initialValue=t.getString(),this.initialUnits=t.getUnits()),this.duration>this.maxDuration){var a=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(a==="freeze"&&!this.frozen)this.frozen=!0,r.animationFrozen=!0,r.animationFrozenValue=t.getString();else if(a==="remove"&&!this.removed)return this.removed=!0,t.setValue(r.animationFrozen?r.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var n=!1;if(this.begin<this.duration){var s=this.calcValue(),u=this.getAttribute("type");if(u.hasValue()){var o=u.getString();s="".concat(o,"(").concat(s,")")}t.setValue(s),n=!0}return n}getProgress(){var{document:e,values:r}=this,t={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(r.hasValue()){var a=t.progress*(r.getValue().length-1),n=Math.floor(a),s=Math.ceil(a);t.from=new x(e,"from",parseFloat(r.getValue()[n])),t.to=new x(e,"to",parseFloat(r.getValue()[s])),t.progress=(a-n)/(s-n)}else t.from=this.from,t.to=this.to;return t}},rn=class extends mr{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:r,to:t}=this.getProgress(),a=new dt.default(r.getColor()),n=new dt.default(t.getColor());if(a.ok&&n.ok){var s=a.r+(n.r-a.r)*e,u=a.g+(n.g-a.g)*e,o=a.b+(n.b-a.b)*e;return"rgb(".concat(Math.floor(s),", ").concat(Math.floor(u),", ").concat(Math.floor(o),")")}return this.getAttribute("from").getColor()}},tn=class extends mr{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:r,to:t}=this.getProgress(),a=U(r.getString()),n=U(t.getString()),s=a.map((u,o)=>{var l=n[o];return u+(l-u)*e}).join(" ");return s}},an=class extends I{constructor(e,r,t){super(e,r,t),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:a}=e,{children:n}=this;for(var s of n)switch(s.type){case"font-face":{this.fontFace=s;var u=s.getStyle("font-family");u.hasValue()&&(a[u.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]={}),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o;break}}}render(){}},nn=class extends I{constructor(e,r,t){super(e,r,t),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}},sn=class extends M{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}},un=class extends xe{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var r=e.children[0];if(r)return r.getText()}return""}},on=class extends xe{constructor(e,r,t){super(e,r,t),this.type="a";var{childNodes:a}=r,n=a[0],s=a.length>0&&Array.from(a).every(u=>u.nodeType===3);this.hasText=s,this.text=s?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:r,x:t,y:a}=this,{mouse:n}=r.screen,s=new x(r,"fontSize",Fe.parse(r.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new z(t,a-s.getPixels("y"),t+this.measureText(e),a))}else if(this.children.length>0){var u=new yr(this.document,null);u.children=this.children,u.parent=this,u.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 Vc(i,e){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(i);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),r.push.apply(r,t)}return r}function vt(i){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Vc(Object(r),!0).forEach(function(t){dr(i,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):Vc(Object(r)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))})}return i}var ln=class extends xe{constructor(e,r,t){super(e,r,t),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var a=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(a)}getText(){return this.text}path(e){var{dataArray:r}=this;e&&e.beginPath(),r.forEach(t=>{var{type:a,points:n}=t;switch(a){case S.LINE_TO:e&&e.lineTo(n[0],n[1]);break;case S.MOVE_TO:e&&e.moveTo(n[0],n[1]);break;case S.CURVE_TO:e&&e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case S.QUAD_TO:e&&e.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case S.ARC:{var[s,u,o,l,h,v,f,g]=n,d=o>l?o:l,p=o>l?1:o/l,y=o>l?l/o:1;e&&(e.translate(s,u),e.rotate(f),e.scale(p,y),e.arc(0,0,d,h,h+v,!!(1-g)),e.scale(1/p,1/y),e.rotate(-f),e.translate(-s,-u));break}case S.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var r=this.parent.getStyle("text-decoration").getString(),t=this.getFontSize(),{glyphInfo:a}=this,n=e.fillStyle;r==="underline"&&e.beginPath(),a.forEach((s,u)=>{var{p0:o,p1:l,rotation:h,text:v}=s;e.save(),e.translate(o.x,o.y),e.rotate(h),e.fillStyle&&e.fillText(v,0,0),e.strokeStyle&&e.strokeText(v,0,0),e.restore(),r==="underline"&&(u===0&&e.moveTo(o.x,o.y+t/8),e.lineTo(l.x,l.y+t/5))}),r==="underline"&&(e.lineWidth=t/20,e.strokeStyle=n,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,r,t,a,n,s,u,o,l){var h=s,v=this.measureText(e,o);o===" "&&r==="justify"&&t<a&&(v+=(a-t)/n),l>-1&&(h+=this.getLetterSpacingAt(l));var f=this.textHeight/20,g=this.getEquidistantPointOnPath(h,f,0),d=this.getEquidistantPointOnPath(h+v,f,0),p={p0:g,p1:d},y=g&&d?Math.atan2(d.y-g.y,d.x-g.x):0;if(u){var m=Math.cos(Math.PI/2+y)*u,b=Math.cos(-y)*u;p.p0=vt(vt({},g),{},{x:g.x+m,y:g.y+b}),p.p1=vt(vt({},d),{},{x:d.x+m,y:d.y+b})}return h+=v,{offset:h,segment:p,rotation:y}}measureText(e,r){var{measuresCache:t}=this,a=r||this.getText();if(t.has(a))return t.get(a);var n=this.measureTargetText(e,a);return t.set(a,n),n}setTextData(e){if(!this.glyphInfo){var r=this.getText(),t=r.split(""),a=r.split(" ").length-1,n=this.parent.getAttribute("dx").split().map(w=>w.getPixels("x")),s=this.parent.getAttribute("dy").getPixels("y"),u=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),h=0;!o.hasValue()||o.getValue()==="inherit"?h=l.getPixels():o.hasValue()&&o.getValue()!=="initial"&&o.getValue()!=="unset"&&(h=o.getPixels());var v=[],f=r.length;this.letterSpacingCache=v;for(var g=0;g<f;g++)v.push(typeof n[g]<"u"?n[g]:h);var d=v.reduce((w,P,D)=>D===0?0:w+P||0,0),p=this.measureText(e),y=Math.max(p+d,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var m=this.getPathLength(),b=this.getStyle("startOffset").getNumber(0)*m,q=0;(u==="middle"||u==="center")&&(q=-y/2),(u==="end"||u==="right")&&(q=-y),q+=b,t.forEach((w,P)=>{var{offset:D,segment:R,rotation:A}=this.findSegmentToFitChar(e,u,y,m,a,q,s,w,P);q=D,!(!R.p0||!R.p1)&&this.glyphInfo.push({text:t[P],p0:R.p0,p1:R.p1,rotation:A})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var r=[],{pathParser:t}=e;for(t.reset();!t.isEnd();){var{current:a}=t,n=a?a.x:0,s=a?a.y:0,u=t.next(),o=u.type,l=[];switch(u.type){case S.MOVE_TO:this.pathM(t,l);break;case S.LINE_TO:o=this.pathL(t,l);break;case S.HORIZ_LINE_TO:o=this.pathH(t,l);break;case S.VERT_LINE_TO:o=this.pathV(t,l);break;case S.CURVE_TO:this.pathC(t,l);break;case S.SMOOTH_CURVE_TO:o=this.pathS(t,l);break;case S.QUAD_TO:this.pathQ(t,l);break;case S.SMOOTH_QUAD_TO:o=this.pathT(t,l);break;case S.ARC:l=this.pathA(t);break;case S.CLOSE_PATH:M.pathZ(t);break}u.type!==S.CLOSE_PATH?r.push({type:o,points:l,start:{x:n,y:s},pathLength:this.calcLength(n,s,o,l)}):r.push({type:S.CLOSE_PATH,points:[],pathLength:0})}return r}pathM(e,r){var{x:t,y:a}=M.pathM(e).point;r.push(t,a)}pathL(e,r){var{x:t,y:a}=M.pathL(e).point;return r.push(t,a),S.LINE_TO}pathH(e,r){var{x:t,y:a}=M.pathH(e).point;return r.push(t,a),S.LINE_TO}pathV(e,r){var{x:t,y:a}=M.pathV(e).point;return r.push(t,a),S.LINE_TO}pathC(e,r){var{point:t,controlPoint:a,currentPoint:n}=M.pathC(e);r.push(t.x,t.y,a.x,a.y,n.x,n.y)}pathS(e,r){var{point:t,controlPoint:a,currentPoint:n}=M.pathS(e);return r.push(t.x,t.y,a.x,a.y,n.x,n.y),S.CURVE_TO}pathQ(e,r){var{controlPoint:t,currentPoint:a}=M.pathQ(e);r.push(t.x,t.y,a.x,a.y)}pathT(e,r){var{controlPoint:t,currentPoint:a}=M.pathT(e);return r.push(t.x,t.y,a.x,a.y),S.QUAD_TO}pathA(e){var{rX:r,rY:t,sweepFlag:a,xAxisRotation:n,centp:s,a1:u,ad:o}=M.pathA(e);return a===0&&o>0&&(o-=2*Math.PI),a===1&&o<0&&(o+=2*Math.PI),[s.x,s.y,r,t,u,o,n,a]}calcLength(e,r,t,a){var n=0,s=null,u=null,o=0;switch(t){case S.LINE_TO:return this.getLineLength(e,r,a[0],a[1]);case S.CURVE_TO:for(n=0,s=this.getPointOnCubicBezier(0,e,r,a[0],a[1],a[2],a[3],a[4],a[5]),o=.01;o<=1;o+=.01)u=this.getPointOnCubicBezier(o,e,r,a[0],a[1],a[2],a[3],a[4],a[5]),n+=this.getLineLength(s.x,s.y,u.x,u.y),s=u;return n;case S.QUAD_TO:for(n=0,s=this.getPointOnQuadraticBezier(0,e,r,a[0],a[1],a[2],a[3]),o=.01;o<=1;o+=.01)u=this.getPointOnQuadraticBezier(o,e,r,a[0],a[1],a[2],a[3]),n+=this.getLineLength(s.x,s.y,u.x,u.y),s=u;return n;case S.ARC:{n=0;var l=a[4],h=a[5],v=a[4]+h,f=Math.PI/180;if(Math.abs(l-v)<f&&(f=Math.abs(l-v)),s=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],l,0),h<0)for(o=l-f;o>v;o-=f)u=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],o,0),n+=this.getLineLength(s.x,s.y,u.x,u.y),s=u;else for(o=l+f;o<v;o+=f)u=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],o,0),n+=this.getLineLength(s.x,s.y,u.x,u.y),s=u;return u=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],v,0),n+=this.getLineLength(s.x,s.y,u.x,u.y),n}}return 0}getPointOnLine(e,r,t,a,n){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:r,u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:t,o=(n-t)/(a-r+je),l=Math.sqrt(e*e/(1+o*o));a<r&&(l*=-1);var h=o*l,v=null;if(a===r)v={x:s,y:u+h};else if((u-t)/(s-r+je)===o)v={x:s+l,y:u+h};else{var f=0,g=0,d=this.getLineLength(r,t,a,n);if(d<je)return null;var p=(s-r)*(a-r)+(u-t)*(n-t);p/=d*d,f=r+p*(a-r),g=t+p*(n-t);var y=this.getLineLength(s,u,f,g),m=Math.sqrt(e*e-y*y);l=Math.sqrt(m*m/(1+o*o)),a<r&&(l*=-1),h=o*l,v={x:f+l,y:g+h}}return v}getPointOnPath(e){var r=this.getPathLength(),t=0,a=null;if(e<-5e-5||e-5e-5>r)return null;var{dataArray:n}=this;for(var s of n){if(s&&(s.pathLength<5e-5||t+s.pathLength+5e-5<e)){t+=s.pathLength;continue}var u=e-t,o=0;switch(s.type){case S.LINE_TO:a=this.getPointOnLine(u,s.start.x,s.start.y,s.points[0],s.points[1],s.start.x,s.start.y);break;case S.ARC:{var l=s.points[4],h=s.points[5],v=s.points[4]+h;if(o=l+u/s.pathLength*h,h<0&&o<v||h>=0&&o>v)break;a=this.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],o,s.points[6]);break}case S.CURVE_TO:o=u/s.pathLength,o>1&&(o=1),a=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 S.QUAD_TO:o=u/s.pathLength,o>1&&(o=1),a=this.getPointOnQuadraticBezier(o,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3]);break}if(a)return a;break}return null}getLineLength(e,r,t,a){return Math.sqrt((t-e)*(t-e)+(a-r)*(a-r))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,r)=>r.pathLength>0?e+r.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,r,t,a,n,s,u,o,l){var h=o*Tc(e)+s*Ec(e)+a*Cc(e)+r*Ac(e),v=l*Tc(e)+u*Ec(e)+n*Cc(e)+t*Ac(e);return{x:h,y:v}}getPointOnQuadraticBezier(e,r,t,a,n,s,u){var o=s*Ic(e)+a*Rc(e)+r*Nc(e),l=u*Ic(e)+n*Rc(e)+t*Nc(e);return{x:o,y:l}}getPointOnEllipticalArc(e,r,t,a,n,s){var u=Math.cos(s),o=Math.sin(s),l={x:t*Math.cos(n),y:a*Math.sin(n)};return{x:e+(l.x*u-l.y*o),y:r+(l.x*o+l.y*u)}}buildEquidistantCache(e,r){var t=this.getPathLength(),a=r||.25,n=e||t/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==a){this.equidistantCache={step:n,precision:a,points:[]};for(var s=0,u=0;u<=t;u+=a){var o=this.getPointOnPath(u),l=this.getPointOnPath(u+a);!o||!l||(s+=this.getLineLength(o.x,o.y,l.x,l.y),s>=n&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:u}),s-=n))}}}getEquidistantPointOnPath(e,r,t){if(this.buildEquidistantCache(r,t),e<0||e-this.getPathLength()>5e-5)return null;var a=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[a]||null}},Nq=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,hn=class extends se{constructor(e,r,t){super(e,r,t),this.type="image",this.loaded=!1;var a=this.getHrefAttribute().getString();if(a){var n=a.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(a);e.images.push(this),n?this.loadSvg(a):this.loadImage(a),this.isSvg=n}}loadImage(e){var r=this;return Q(function*(){try{var t=yield r.document.createImage(e);r.image=t}catch(a){console.error('Error while loading image "'.concat(e,'":'),a)}r.loaded=!0})()}loadSvg(e){var r=this;return Q(function*(){var t=Nq.exec(e);if(t){var a=t[5];t[4]==="base64"?r.image=atob(a):r.image=decodeURIComponent(a)}else try{var n=yield r.document.fetch(e),s=yield n.text();r.image=s}catch(u){console.error('Error while loading image "'.concat(e,'":'),u)}r.loaded=!0})()}renderChildren(e){var{document:r,image:t,loaded:a}=this,n=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),u=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(!(!a||!t||!u||!o)){if(e.save(),e.translate(n,s),this.isSvg){var l=r.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:u,scaleHeight:o});l.document.documentElement.parent=this,l.render()}else{var h=this.image;r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:u,desiredWidth:h.width,height:o,desiredHeight:h.height}),this.loaded&&(typeof h.complete>"u"||h.complete)&&e.drawImage(h,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),t=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");return new z(e,r,e+t,r+a)}},vn=class extends se{constructor(){super(...arguments),this.type="symbol"}render(e){}},cn=class{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,r){var t=this;return Q(function*(){try{var{document:a}=t,n=yield a.canvg.parser.load(r),s=n.getElementsByTagName("font");Array.from(s).forEach(u=>{var o=a.createElement(u);a.definitions[e]=o})}catch(u){console.error('Error while loading font "'.concat(r,'":'),u)}t.loaded=!0})()}},Mq=(()=>{class i extends I{constructor(r,t,a){super(r,t,a),this.type="style";var n=Ue(Array.from(t.childNodes).map(u=>u.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),s=n.split("}");s.forEach(u=>{var o=u.trim();if(o){var l=o.split("{"),h=l[0].split(","),v=l[1].split(";");h.forEach(f=>{var g=f.trim();if(g){var d=r.styles[g]||{};if(v.forEach(m=>{var b=m.indexOf(":"),q=m.substr(0,b).trim(),w=m.substr(b+1,m.length-b).trim();q&&w&&(d[q]=new x(r,q,w))}),r.styles[g]=d,r.stylesSpecificity[g]=wq(g),g==="@font-face"){var p=d["font-family"].getString().replace(/"|'/g,""),y=d.src.getString().split(",");y.forEach(m=>{if(m.indexOf('format("svg")')>0){var b=wc(m);b&&new cn(r).load(p,b)}})}}})}})}}return i.parseExternalUrl=wc,i})(),fn=class extends se{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var r=this.getAttribute("x"),t=this.getAttribute("y");r.hasValue()&&e.translate(r.getPixels("x"),0),t.hasValue()&&e.translate(0,t.getPixels("y"))}path(e){var{element:r}=this;r&&r.path(e)}renderChildren(e){var{document:r,element:t}=this;if(t){var a=t;if(t.type==="symbol"&&(a=new Se(r,null),a.attributes.viewBox=new x(r,"viewBox",t.getAttribute("viewBox").getString()),a.attributes.preserveAspectRatio=new x(r,"preserveAspectRatio",t.getAttribute("preserveAspectRatio").getString()),a.attributes.overflow=new x(r,"overflow",t.getAttribute("overflow").getString()),a.children=t.children,t.styles.opacity=new x(r,"opacity",this.calculateOpacity())),a.type==="svg"){var n=this.getStyle("width",!1,!0),s=this.getStyle("height",!1,!0);n.hasValue()&&(a.attributes.width=new x(r,"width",n.getString())),s.hasValue()&&(a.attributes.height=new x(r,"height",s.getString()))}var u=a.parent;a.parent=this,a.render(e),a.parent=u}}getBoundingBox(e){var{element:r}=this;return r?r.getBoundingBox(e):null}elementTransform(){var{document:e,element:r}=this;return qn.fromElement(e,r)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}};function ct(i,e,r,t,a,n){return i[r*t*4+e*4+n]}function ft(i,e,r,t,a,n,s){i[r*t*4+e*4+n]=s}function N(i,e,r){var t=i[e];return t*r}function ne(i,e,r,t){return e+Math.cos(i)*r+Math.sin(i)*t}var wt=class extends I{constructor(e,r,t){super(e,r,t),this.type="feColorMatrix";var a=U(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var n=a[0];a=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var s=a[0]*Math.PI/180;a=[ne(s,.213,.787,-.213),ne(s,.715,-.715,-.715),ne(s,.072,-.072,.928),0,0,ne(s,.213,-.213,.143),ne(s,.715,.285,.14),ne(s,.072,-.072,-.283),0,0,ne(s,.213,-.213,-.787),ne(s,.715,-.715,.715),ne(s,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":a=[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=a,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,r,t,a,n){for(var{includeOpacity:s,matrix:u}=this,o=e.getImageData(0,0,a,n),l=0;l<n;l++)for(var h=0;h<a;h++){var v=ct(o.data,h,l,a,n,0),f=ct(o.data,h,l,a,n,1),g=ct(o.data,h,l,a,n,2),d=ct(o.data,h,l,a,n,3),p=N(u,0,v)+N(u,1,f)+N(u,2,g)+N(u,3,d)+N(u,4,1),y=N(u,5,v)+N(u,6,f)+N(u,7,g)+N(u,8,d)+N(u,9,1),m=N(u,10,v)+N(u,11,f)+N(u,12,g)+N(u,13,d)+N(u,14,1),b=N(u,15,v)+N(u,16,f)+N(u,17,g)+N(u,18,d)+N(u,19,1);s&&(p=0,y=0,m=0,b*=d/255),ft(o.data,h,l,a,n,0,p),ft(o.data,h,l,a,n,1,y),ft(o.data,h,l,a,n,2,m),ft(o.data,h,l,a,n,3,b)}e.clearRect(0,0,a,n),e.putImageData(o,0,0)}},_q=(()=>{class i extends I{constructor(){super(...arguments),this.type="mask"}apply(r,t){var{document:a}=this,n=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),u=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(!u&&!o){var l=new z;this.children.forEach(p=>{l.addBoundingBox(p.getBoundingBox(r))}),n=Math.floor(l.x1),s=Math.floor(l.y1),u=Math.floor(l.width),o=Math.floor(l.height)}var h=this.removeStyles(t,i.ignoreStyles),v=a.createCanvas(n+u,s+o),f=v.getContext("2d");a.screen.setDefaults(f),this.renderChildren(f),new wt(a,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(f,0,0,n+u,s+o);var g=a.createCanvas(n+u,s+o),d=g.getContext("2d");a.screen.setDefaults(d),t.render(d),d.globalCompositeOperation="destination-in",d.fillStyle=f.createPattern(v,"no-repeat"),d.fillRect(0,0,n+u,s+o),r.fillStyle=d.createPattern(g,"no-repeat"),r.fillRect(0,0,n+u,s+o),this.restoreStyles(t,h)}render(r){}}return i.ignoreStyles=["mask","transform","clip-path"],i})(),Dc=()=>{},gn=class extends I{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:r}=this,t=Reflect.getPrototypeOf(e),{beginPath:a,closePath:n}=e;t&&(t.beginPath=Dc,t.closePath=Dc),Reflect.apply(a,e,[]),this.children.forEach(s=>{if(!(typeof s.path>"u")){var u=typeof s.elementTransform<"u"?s.elementTransform():null;u||(u=qn.fromElement(r,s)),u&&u.apply(e),s.path(e),t&&(t.closePath=n),u&&u.unapply(e)}}),Reflect.apply(n,e,[]),e.clip(),t&&(t.beginPath=a,t.closePath=n)}render(e){}},Vq=(()=>{class i extends I{constructor(){super(...arguments),this.type="filter"}apply(r,t){var{document:a,children:n}=this,s=t.getBoundingBox(r);if(s){var u=0,o=0;n.forEach(b=>{var q=b.extraFilterDistance||0;u=Math.max(u,q),o=Math.max(o,q)});var l=Math.floor(s.width),h=Math.floor(s.height),v=l+2*u,f=h+2*o;if(!(v<1||f<1)){var g=Math.floor(s.x),d=Math.floor(s.y),p=this.removeStyles(t,i.ignoreStyles),y=a.createCanvas(v,f),m=y.getContext("2d");a.screen.setDefaults(m),m.translate(-g+u,-d+o),t.render(m),n.forEach(b=>{typeof b.apply=="function"&&b.apply(m,0,0,v,f)}),r.drawImage(y,0,0,v,f,g-u,d-o,v,f),this.restoreStyles(t,p)}}}render(r){}}return i.ignoreStyles=["filter","transform","clip-path"],i})(),dn=class extends I{constructor(e,r,t){super(e,r,t),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,r,t,a,n){}},pn=class extends I{constructor(){super(...arguments),this.type="feMorphology"}apply(e,r,t,a,n){}},yn=class extends I{constructor(){super(...arguments),this.type="feComposite"}apply(e,r,t,a,n){}},mn=class extends I{constructor(e,r,t){super(e,r,t),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,r,t,a,n){var{document:s,blurRadius:u}=this,o=s.window?s.window.document.body:null,l=e.canvas;l.id=s.getUniqueId(),o&&(l.style.display="none",o.appendChild(l)),Rn(l,r,t,a,n,u),o&&o.removeChild(l)}},bn=class extends I{constructor(){super(...arguments),this.type="title"}},xn=class extends I{constructor(){super(...arguments),this.type="desc"}},Dq={svg:Se,rect:xt,circle:Ga,ellipse:Wa,line:Ya,polyline:St,polygon:Xa,path:M,pattern:Ha,marker:Ka,defs:Qa,linearGradient:Za,radialGradient:Ja,stop:en,animate:mr,animateColor:rn,animateTransform:tn,font:an,"font-face":nn,"missing-glyph":sn,glyph:mt,text:xe,tspan:bt,tref:un,a:on,textPath:ln,image:hn,g:yr,symbol:vn,style:Mq,use:fn,mask:_q,clipPath:gn,filter:Vq,feDropShadow:dn,feMorphology:pn,feComposite:yn,feColorMatrix:wt,feGaussianBlur:mn,title:bn,desc:xn};function kc(i,e){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(i);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),r.push.apply(r,t)}return r}function kq(i){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?kc(Object(r),!0).forEach(function(t){dr(i,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):kc(Object(r)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))})}return i}function Bq(i,e){var r=document.createElement("canvas");return r.width=i,r.height=e,r}function Lq(i){return Sn.apply(this,arguments)}function Sn(){return Sn=Q(function*(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=document.createElement("img");return e&&(r.crossOrigin="Anonymous"),new Promise((t,a)=>{r.onload=()=>{t(r)},r.onerror=(n,s,u,o,l)=>{a(l)},r.src=i})}),Sn.apply(this,arguments)}var jq=(()=>{class i{constructor(r){var{rootEmSize:t=12,emSize:a=12,createCanvas:n=i.createCanvas,createImage:s=i.createImage,anonymousCrossOrigin:u}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=r,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=r.screen,this.rootEmSize=t,this.emSize=a,this.createCanvas=n,this.createImage=this.bindCreateImage(s,u),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(r,t){return typeof t=="boolean"?(a,n)=>r(a,typeof n=="boolean"?n:t):r}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:r}=this;return r[r.length-1]}set emSize(r){var{emSizeStack:t}=this;t.push(r)}popEmSize(){var{emSizeStack:r}=this;r.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(r=>r.loaded)}isFontsLoaded(){return this.fonts.every(r=>r.loaded)}createDocumentElement(r){var t=this.createElement(r.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(r){var t=r.nodeName.replace(/^[^:]+:/,""),a=i.elementTypes[t];return typeof a<"u"?new a(this,r):new za(this,r)}createTextNode(r){return new $a(this,r)}
6setViewBox(r){this.screen.setViewBox(kq({document:this},r))}}return i.createCanvas=Bq,i.createImage=Lq,i.elementTypes=Dq,i})();function Bc(i,e){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(i);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),r.push.apply(r,t)}return r}function be(i){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Bc(Object(r),!0).forEach(function(t){dr(i,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):Bc(Object(r)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))})}return i}var Lc=class i{constructor(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new pr(t),this.screen=new jc(e,t),this.options=t;var a=new jq(this,t),n=a.createDocumentElement(r);this.document=a,this.documentElement=n}static from(e,r){var t=arguments;return Q(function*(){var a=t.length>2&&t[2]!==void 0?t[2]:{},n=new pr(a),s=yield n.parse(r);return new i(e,s,a)})()}static fromString(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=new pr(t),n=a.parseFromString(r);return new i(e,n,t)}fork(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return i.from(e,r,be(be({},this.options),t))}forkString(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return i.fromString(e,r,be(be({},this.options),t))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,r=this;return Q(function*(){var t=e.length>0&&e[0]!==void 0?e[0]:{};r.start(be({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},t)),yield r.ready(),r.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:r,screen:t,options:a}=this;t.start(r,be(be({enableRedraw:!0},a),e))}stop(){this.screen.stop()}resize(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,r,t)}};export{on as AElement,rn as AnimateColorElement,mr as AnimateElement,tn as AnimateTransformElement,z as BoundingBox,Tc as CB1,Ec as CB2,Cc as CB3,Ac as CB4,Lc as Canvg,Ga as CircleElement,gn as ClipPathElement,Qa as DefsElement,xn as DescElement,jq as Document,I as Element,Wa as EllipseElement,wt as FeColorMatrixElement,yn as FeCompositeElement,dn as FeDropShadowElement,mn as FeGaussianBlurElement,pn as FeMorphologyElement,Vq as FilterElement,Fe as Font,an as FontElement,nn as FontFaceElement,yr as GElement,mt as GlyphElement,qt as GradientElement,hn as ImageElement,Ya as LineElement,Za as LinearGradientElement,Ka as MarkerElement,_q as MaskElement,pt as Matrix,sn as MissingGlyphElement,ka as Mouse,je as PSEUDO_ZERO,pr as Parser,M as PathElement,S as PathParser,Ha as PatternElement,V as Point,Xa as PolygonElement,St as PolylineElement,x as Property,Ic as QB1,Rc as QB2,Nc as QB3,Ja as RadialGradientElement,xt as RectElement,se as RenderedElement,La as Rotate,Se as SVGElement,cn as SVGFontLoader,ja as Scale,jc as Screen,yt as Skew,Fa as SkewX,Ua as SkewY,en as StopElement,Mq as StyleElement,vn as SymbolElement,un as TRefElement,bt as TSpanElement,xe as TextElement,ln as TextPathElement,bn as TitleElement,qn as Transform,Ba as Translate,za as UnknownElement,fn as UseElement,Da as ViewPort,Ue as compressSpaces,Lc as default,wq as getSelectorSpecificity,gq as normalizeAttributeName,dq as normalizeColor,wc as parseExternalUrl,NT as presets,U as toNumbers,vq as trimLeft,cq as trimRight,Pc as vectorMagnitude,Oc as vectorsAngle,Va as vectorsRatio}; 7/**i18n:8a2905f1056cd1b388787f79590d02daabee6f85c13594afab3522e2ada2a8a5*/ 8//# sourceMappingURL=index.es-BITIJTYX.js.map 9 10//# debugId=7a6fe186-6fb8-5885-8e5a-6dbf0f694664
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.