vue-data-ui 2.2.97 → 2.2.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -232,7 +232,7 @@ endobj\r
232
232
  * http://opensource.org/licenses/mit-license
233
233
  */function oa(t,o){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!o,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function rf(t){function o(b){if(!b)throw Error("assert :P")}function a(b,V,te){for(var I=0;4>I;I++)if(b[V+I]!=te.charCodeAt(I))return!0;return!1}function n(b,V,te,I,S){for(var j=0;j<S;j++)b[V+j]=te[I+j]}function r(b,V,te,I){for(var S=0;S<I;S++)b[V+S]=te}function l(b){return new Int32Array(b)}function s(b,V){for(var te=[],I=0;I<b;I++)te.push(new V);return te}function u(b,V){var te=[];return function I(S,j,ee){for(var le=ee[j],he=0;he<le&&(S.push(ee.length>j+1?[]:new V),!(ee.length<j+1));he++)I(S[he],j+1,ee)}(te,0,b),te}var h=function(){var b=this;function V(g,C){for(var E=1<<C-1>>>0;g&E;)E>>>=1;return E?(g&E-1)+E:g}function te(g,C,E,H,ue){o(!(H%E));do g[C+(H-=E)]=ue;while(0<H)}function I(g,C,E,H,ue){if(o(2328>=ue),512>=ue)var pe=l(512);else if((pe=l(ue))==null)return 0;return function(ye,be,ke,we,Ne,Ie){var $e,Le,He=be,Qe=1<<ke,_e=l(16),Se=l(16);for(o(Ne!=0),o(we!=null),o(ye!=null),o(0<ke),Le=0;Le<Ne;++Le){if(15<we[Le])return 0;++_e[we[Le]]}if(_e[0]==Ne)return 0;for(Se[1]=0,$e=1;15>$e;++$e){if(_e[$e]>1<<$e)return 0;Se[$e+1]=Se[$e]+_e[$e]}for(Le=0;Le<Ne;++Le)$e=we[Le],0<we[Le]&&(Ie[Se[$e]++]=Le);if(Se[15]==1)return(we=new S).g=0,we.value=Ie[0],te(ye,He,1,Qe,we),Qe;var De,Re=-1,Pe=Qe-1,lt=0,Ze=1,gt=1,et=1<<ke;for(Le=0,$e=1,Ne=2;$e<=ke;++$e,Ne<<=1){if(Ze+=gt<<=1,0>(gt-=_e[$e]))return 0;for(;0<_e[$e];--_e[$e])(we=new S).g=$e,we.value=Ie[Le++],te(ye,He+lt,Ne,et,we),lt=V(lt,$e)}for($e=ke+1,Ne=2;15>=$e;++$e,Ne<<=1){if(Ze+=gt<<=1,0>(gt-=_e[$e]))return 0;for(;0<_e[$e];--_e[$e]){if(we=new S,(lt&Pe)!=Re){for(He+=et,De=1<<(Re=$e)-ke;15>Re&&!(0>=(De-=_e[Re]));)++Re,De<<=1;Qe+=et=1<<(De=Re-ke),ye[be+(Re=lt&Pe)].g=De+ke,ye[be+Re].value=He-be-Re}we.g=$e-ke,we.value=Ie[Le++],te(ye,He+(lt>>ke),Ne,et,we),lt=V(lt,$e)}}return Ze!=2*Se[15]-1?0:Qe}(g,C,E,H,ue,pe)}function S(){this.value=this.g=0}function j(){this.value=this.g=0}function ee(){this.G=s(5,S),this.H=l(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(vl,j)}function le(g,C,E,H){o(g!=null),o(C!=null),o(2147483648>H),g.Ca=254,g.I=0,g.b=-8,g.Ka=0,g.oa=C,g.pa=E,g.Jd=C,g.Yc=E+H,g.Zc=4<=H?E+H-4+1:E,me(g)}function he(g,C){for(var E=0;0<C--;)E|=fe(g,128)<<C;return E}function oe(g,C){var E=he(g,C);return ne(g)?-E:E}function R(g,C,E,H){var ue,pe=0;for(o(g!=null),o(C!=null),o(4294967288>H),g.Sb=H,g.Ra=0,g.u=0,g.h=0,4<H&&(H=4),ue=0;ue<H;++ue)pe+=C[E+ue]<<8*ue;g.Ra=pe,g.bb=H,g.oa=C,g.pa=E}function D(g){for(;8<=g.u&&g.bb<g.Sb;)g.Ra>>>=8,g.Ra+=g.oa[g.pa+g.bb]<<an-8>>>0,++g.bb,g.u-=8;x(g)&&(g.h=1,g.u=0)}function K(g,C){if(o(0<=C),!g.h&&C<=ln){var E=N(g)&on[C];return g.u+=C,D(g),E}return g.h=1,g.u=0}function q(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function m(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function N(g){return g.Ra>>>(g.u&an-1)>>>0}function x(g){return o(g.bb<=g.Sb),g.h||g.bb==g.Sb&&g.u>an}function Q(g,C){g.u=C,g.h=x(g)}function Y(g){g.u>=os&&(o(g.u>=os),D(g))}function me(g){o(g!=null&&g.oa!=null),g.pa<g.Zc?(g.I=(g.oa[g.pa++]|g.I<<8)>>>0,g.b+=8):(o(g!=null&&g.oa!=null),g.pa<g.Yc?(g.b+=8,g.I=g.oa[g.pa++]|g.I<<8):g.Ka?g.b=0:(g.I<<=8,g.b+=8,g.Ka=1))}function ne(g){return he(g,1)}function fe(g,C){var E=g.Ca;0>g.b&&me(g);var H=g.b,ue=E*C>>>8,pe=(g.I>>>H>ue)+0;for(pe?(E-=ue,g.I-=ue+1<<H>>>0):E=ue+1,H=E,ue=0;256<=H;)ue+=8,H>>=8;return H=7^ue+gl[H],g.b-=H,g.Ca=(E<<H)-1,pe}function Z(g,C,E){g[C+0]=E>>24&255,g[C+1]=E>>16&255,g[C+2]=E>>8&255,g[C+3]=E>>0&255}function J(g,C){return g[C+0]<<0|g[C+1]<<8}function z(g,C){return J(g,C)|g[C+2]<<16}function P(g,C){return J(g,C)|J(g,C+2)<<16}function ge(g,C){var E=1<<C;return o(g!=null),o(0<C),g.X=l(E),g.X==null?0:(g.Mb=32-C,g.Xa=C,1)}function M(g,C){o(g!=null),o(C!=null),o(g.Xa==C.Xa),n(C.X,0,g.X,0,1<<C.Xa)}function _(){this.X=[],this.Xa=this.Mb=0}function X(g,C,E,H){o(E!=null),o(H!=null);var ue=E[0],pe=H[0];return ue==0&&(ue=(g*pe+C/2)/C),pe==0&&(pe=(C*ue+g/2)/g),0>=ue||0>=pe?0:(E[0]=ue,H[0]=pe,1)}function O(g,C){return g+(1<<C)-1>>>C}function ce(g,C){return((4278255360&g)+(4278255360&C)>>>0&4278255360)+((16711935&g)+(16711935&C)>>>0&16711935)>>>0}function ae(g,C){b[C]=function(E,H,ue,pe,ye,be,ke){var we;for(we=0;we<ye;++we){var Ne=b[g](be[ke+we-1],ue,pe+we);be[ke+we]=ce(E[H+we],Ne)}}}function ie(){this.ud=this.hd=this.jd=0}function G(g,C){return((4278124286&(g^C))>>>1)+(g&C)>>>0}function re(g){return 0<=g&&256>g?g:0>g?0:255<g?255:void 0}function Ae(g,C){return re(g+(g-C+.5>>1))}function se(g,C,E){return Math.abs(C-E)-Math.abs(g-E)}function ve(g,C,E,H,ue,pe,ye){for(H=pe[ye-1],E=0;E<ue;++E)pe[ye+E]=H=ce(g[C+E],H)}function Ce(g,C,E,H,ue){var pe;for(pe=0;pe<E;++pe){var ye=g[C+pe],be=ye>>8&255,ke=16711935&(ke=(ke=16711935&ye)+((be<<16)+be));H[ue+pe]=(4278255360&ye)+ke>>>0}}function Ue(g,C){C.jd=g>>0&255,C.hd=g>>8&255,C.ud=g>>16&255}function Ve(g,C,E,H,ue,pe){var ye;for(ye=0;ye<H;++ye){var be=C[E+ye],ke=be>>>8,we=be,Ne=255&(Ne=(Ne=be>>>16)+((g.jd<<24>>24)*(ke<<24>>24)>>>5));we=255&(we=(we=we+((g.hd<<24>>24)*(ke<<24>>24)>>>5))+((g.ud<<24>>24)*(Ne<<24>>24)>>>5)),ue[pe+ye]=(4278255360&be)+(Ne<<16)+we}}function Ye(g,C,E,H,ue){b[C]=function(pe,ye,be,ke,we,Ne,Ie,$e,Le){for(ke=Ie;ke<$e;++ke)for(Ie=0;Ie<Le;++Ie)we[Ne++]=ue(be[H(pe[ye++])])},b[g]=function(pe,ye,be,ke,we,Ne,Ie){var $e=8>>pe.b,Le=pe.Ea,He=pe.K[0],Qe=pe.w;if(8>$e)for(pe=(1<<pe.b)-1,Qe=(1<<$e)-1;ye<be;++ye){var _e,Se=0;for(_e=0;_e<Le;++_e)_e&pe||(Se=H(ke[we++])),Ne[Ie++]=ue(He[Se&Qe]),Se>>=$e}else b["VP8LMapColor"+E](ke,we,He,Qe,Ne,Ie,ye,be,Le)}}function ze(g,C,E,H,ue){for(E=C+E;C<E;){var pe=g[C++];H[ue++]=pe>>16&255,H[ue++]=pe>>8&255,H[ue++]=pe>>0&255}}function It(g,C,E,H,ue){for(E=C+E;C<E;){var pe=g[C++];H[ue++]=pe>>16&255,H[ue++]=pe>>8&255,H[ue++]=pe>>0&255,H[ue++]=pe>>24&255}}function kt(g,C,E,H,ue){for(E=C+E;C<E;){var pe=(ye=g[C++])>>16&240|ye>>12&15,ye=ye>>0&240|ye>>28&15;H[ue++]=pe,H[ue++]=ye}}function Ko(g,C,E,H,ue){for(E=C+E;C<E;){var pe=(ye=g[C++])>>16&248|ye>>13&7,ye=ye>>5&224|ye>>3&31;H[ue++]=pe,H[ue++]=ye}}function St(g,C,E,H,ue){for(E=C+E;C<E;){var pe=g[C++];H[ue++]=pe>>0&255,H[ue++]=pe>>8&255,H[ue++]=pe>>16&255}}function Dt(g,C,E,H,ue,pe){if(pe==0)for(E=C+E;C<E;)Z(H,((pe=g[C++])[0]>>24|pe[1]>>8&65280|pe[2]<<8&16711680|pe[3]<<24)>>>0),ue+=32;else n(H,ue,g,C,E)}function Al(g,C){b[C][0]=b[g+"0"],b[C][1]=b[g+"1"],b[C][2]=b[g+"2"],b[C][3]=b[g+"3"],b[C][4]=b[g+"4"],b[C][5]=b[g+"5"],b[C][6]=b[g+"6"],b[C][7]=b[g+"7"],b[C][8]=b[g+"8"],b[C][9]=b[g+"9"],b[C][10]=b[g+"10"],b[C][11]=b[g+"11"],b[C][12]=b[g+"12"],b[C][13]=b[g+"13"],b[C][14]=b[g+"0"],b[C][15]=b[g+"0"]}function Ut(g){return g==vA||g==gA||g==pi||g==pA}function xe(){this.eb=[],this.size=this.A=this.fb=0}function Oe(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function qe(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new xe,this.f.kb=new Oe,this.sd=null}function mt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function dt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function nt(g){return alert("todo:WebPSamplerProcessPlane"),g.T}function rt(g,C){var E=g.T,H=C.ba.f.RGBA,ue=H.eb,pe=H.fb+g.ka*H.A,ye=Vl[C.ba.S],be=g.y,ke=g.O,we=g.f,Ne=g.N,Ie=g.ea,$e=g.W,Le=C.cc,He=C.dc,Qe=C.Mc,_e=C.Nc,Se=g.ka,De=g.ka+g.T,Re=g.U,Pe=Re+1>>1;for(Se==0?ye(be,ke,null,null,we,Ne,Ie,$e,we,Ne,Ie,$e,ue,pe,null,null,Re):(ye(C.ec,C.fc,be,ke,Le,He,Qe,_e,we,Ne,Ie,$e,ue,pe-H.A,ue,pe,Re),++E);Se+2<De;Se+=2)Le=we,He=Ne,Qe=Ie,_e=$e,Ne+=g.Rc,$e+=g.Rc,pe+=2*H.A,ye(be,(ke+=2*g.fa)-g.fa,be,ke,Le,He,Qe,_e,we,Ne,Ie,$e,ue,pe-H.A,ue,pe,Re);return ke+=g.fa,g.j+De<g.o?(n(C.ec,C.fc,be,ke,Re),n(C.cc,C.dc,we,Ne,Pe),n(C.Mc,C.Nc,Ie,$e,Pe),E--):1&De||ye(be,ke,null,null,we,Ne,Ie,$e,we,Ne,Ie,$e,ue,pe+H.A,null,null,Re),E}function qt(g,C,E){var H=g.F,ue=[g.J];if(H!=null){var pe=g.U,ye=C.ba.S,be=ye==gi||ye==pi;C=C.ba.f.RGBA;var ke=[0],we=g.ka;ke[0]=g.T,g.Kb&&(we==0?--ke[0]:(--we,ue[0]-=g.width),g.j+g.ka+g.T==g.o&&(ke[0]=g.o-g.j-we));var Ne=C.eb;we=C.fb+we*C.A,g=ci(H,ue[0],g.width,pe,ke,Ne,we+(be?0:3),C.A),o(E==ke),g&&Ut(ye)&&qa(Ne,we,be,pe,ke,C.A)}return 0}function Vt(g){var C=g.ma,E=C.ba.S,H=11>E,ue=E==fi||E==vi||E==gi||E==fA||E==12||Ut(E);if(C.memory=null,C.Ib=null,C.Jb=null,C.Nd=null,!es(C.Oa,g,ue?11:12))return 0;if(ue&&Ut(E)&&Ke(),g.da)alert("todo:use_scaling");else{if(H){if(C.Ib=nt,g.Kb){if(E=g.U+1>>1,C.memory=l(g.U+2*E),C.memory==null)return 0;C.ec=C.memory,C.fc=0,C.cc=C.ec,C.dc=C.fc+g.U,C.Mc=C.cc,C.Nc=C.dc+E,C.Ib=rt,Ke()}}else alert("todo:EmitYUV");ue&&(C.Jb=qt,H&&Ee())}if(H&&!Bd){for(g=0;256>g;++g)u1[g]=89858*(g-128)+mi>>yi,d1[g]=-22014*(g-128)+mi,c1[g]=-45773*(g-128),A1[g]=113618*(g-128)+mi>>yi;for(g=is;g<bA;++g)C=76283*(g-16)+mi>>yi,h1[g-is]=Bl(C,255),f1[g-is]=Bl(C+8>>4,15);Bd=1}return 1}function Xo(g){var C=g.ma,E=g.U,H=g.T;return o(!(1&g.ka)),0>=E||0>=H?0:(E=C.Ib(g,C),C.Jb!=null&&C.Jb(g,C,E),C.Dc+=E,1)}function go(g){g.ma.memory=null}function ut(g,C,E,H){return K(g,8)!=47?0:(C[0]=K(g,14)+1,E[0]=K(g,14)+1,H[0]=K(g,1),K(g,3)!=0?0:!g.h)}function Ht(g,C){if(4>g)return g+1;var E=g-2>>1;return(2+(1&g)<<E)+K(C,E)+1}function el(g,C){return 120<C?C-120:1<=(E=((E=Xg[C-1])>>4)*g+(8-(15&E)))?E:1;var E}function $o(g,C,E){var H=N(E),ue=g[C+=255&H].g-8;return 0<ue&&(Q(E,E.u+8),H=N(E),C+=g[C].value,C+=H&(1<<ue)-1),Q(E,E.u+g[C].g),g[C].value}function ho(g,C,E){return E.g+=g.g,E.value+=g.value<<C>>>0,o(8>=E.g),g.g}function mo(g,C,E){var H=g.xc;return o((C=H==0?0:g.vc[g.md*(E>>H)+(C>>H)])<g.Wb),g.Ya[C]}function wl(g,C,E,H){var ue=g.ab,pe=g.c*C,ye=g.C;C=ye+C;var be=E,ke=H;for(H=g.Ta,E=g.Ua;0<ue--;){var we=g.gc[ue],Ne=ye,Ie=C,$e=be,Le=ke,He=(ke=H,be=E,we.Ea);switch(o(Ne<Ie),o(Ie<=we.nc),we.hc){case 2:Ai($e,Le,(Ie-Ne)*He,ke,be);break;case 0:var Qe=Ne,_e=Ie,Se=ke,De=be,Re=(et=we).Ea;Qe==0&&(AA($e,Le,null,null,1,Se,De),ve($e,Le+1,0,0,Re-1,Se,De+1),Le+=Re,De+=Re,++Qe);for(var Pe=1<<et.b,lt=Pe-1,Ze=O(Re,et.b),gt=et.K,et=et.w+(Qe>>et.b)*Ze;Qe<_e;){var Rt=gt,Yt=et,Ot=1;for(ls($e,Le,Se,De-Re,1,Se,De);Ot<Re;){var $t=(Ot&~lt)+Pe;$t>Re&&($t=Re),(0,Wa[Rt[Yt++]>>8&15])($e,Le+ +Ot,Se,De+Ot-Re,$t-Ot,Se,De+Ot),Ot=$t}Le+=Re,De+=Re,++Qe&lt||(et+=Ze)}Ie!=we.nc&&n(ke,be-He,ke,be+(Ie-Ne-1)*He,He);break;case 1:for(He=$e,_e=Le,Re=($e=we.Ea)-(De=$e&~(Se=(Le=1<<we.b)-1)),Qe=O($e,we.b),Pe=we.K,we=we.w+(Ne>>we.b)*Qe;Ne<Ie;){for(lt=Pe,Ze=we,gt=new ie,et=_e+De,Rt=_e+$e;_e<et;)Ue(lt[Ze++],gt),$l(gt,He,_e,Le,ke,be),_e+=Le,be+=Le;_e<Rt&&(Ue(lt[Ze++],gt),$l(gt,He,_e,Re,ke,be),_e+=Re,be+=Re),++Ne&Se||(we+=Qe)}break;case 3:if($e==ke&&Le==be&&0<we.b){for(_e=ke,$e=He=be+(Ie-Ne)*He-(De=(Ie-Ne)*O(we.Ea,we.b)),Le=ke,Se=be,Qe=[],De=(Re=De)-1;0<=De;--De)Qe[De]=Le[Se+De];for(De=Re-1;0<=De;--De)_e[$e+De]=Qe[De];Xl(we,Ne,Ie,ke,He,ke,be)}else Xl(we,Ne,Ie,$e,Le,ke,be)}be=H,ke=E}ke!=E&&n(H,E,be,ke,pe)}function Or(g,C){var E=g.V,H=g.Ba+g.c*g.C,ue=C-g.C;if(o(C<=g.l.o),o(16>=ue),0<ue){var pe=g.l,ye=g.Ta,be=g.Ua,ke=pe.width;if(wl(g,ue,E,H),ue=be=[be],o((E=g.C)<(H=C)),o(pe.v<pe.va),H>pe.o&&(H=pe.o),E<pe.j){var we=pe.j-E;E=pe.j,ue[0]+=we*ke}if(E>=H?E=0:(ue[0]+=4*pe.v,pe.ka=E-pe.j,pe.U=pe.va-pe.v,pe.T=H-E,E=1),E){if(be=be[0],11>(E=g.ca).S){var Ne=E.f.RGBA,Ie=(H=E.S,ue=pe.U,pe=pe.T,we=Ne.eb,Ne.A),$e=pe;for(Ne=Ne.fb+g.Ma*Ne.A;0<$e--;){var Le=ye,He=be,Qe=ue,_e=we,Se=Ne;switch(H){case hi:ql(Le,He,Qe,_e,Se);break;case fi:ja(Le,He,Qe,_e,Se);break;case vA:ja(Le,He,Qe,_e,Se),qa(_e,Se,0,Qe,1,0);break;case fd:rn(Le,He,Qe,_e,Se);break;case vi:Dt(Le,He,Qe,_e,Se,1);break;case gA:Dt(Le,He,Qe,_e,Se,1),qa(_e,Se,0,Qe,1,0);break;case gi:Dt(Le,He,Qe,_e,Se,0);break;case pi:Dt(Le,He,Qe,_e,Se,0),qa(_e,Se,1,Qe,1,0);break;case fA:fa(Le,He,Qe,_e,Se);break;case pA:fa(Le,He,Qe,_e,Se),un(_e,Se,Qe,1,0);break;case vd:_a(Le,He,Qe,_e,Se);break;default:o(0)}be+=ke,Ne+=Ie}g.Ma+=pe}else alert("todo:EmitRescaledRowsYUVA");o(g.Ma<=E.height)}}g.C=C,o(g.C<=g.i)}function Ba(g){var C;if(0<g.ua)return 0;for(C=0;C<g.Wb;++C){var E=g.Ya[C].G,H=g.Ya[C].H;if(0<E[1][H[1]+0].g||0<E[2][H[2]+0].g||0<E[3][H[3]+0].g)return 0}return 1}function Hl(g,C,E,H,ue,pe){if(g.Z!=0){var ye=g.qd,be=g.rd;for(o(Ja[g.Z]!=null);C<E;++C)Ja[g.Z](ye,be,H,ue,H,ue,pe),ye=H,be=ue,ue+=pe;g.qd=ye,g.rd=be}}function Rl(g,C){var E=g.l.ma,H=E.Z==0||E.Z==1?g.l.j:g.C;if(H=g.C<H?H:g.C,o(C<=g.l.o),C>H){var ue=g.l.width,pe=E.ca,ye=E.tb+ue*H,be=g.V,ke=g.Ba+g.c*H,we=g.gc;o(g.ab==1),o(we[0].hc==3),cA(we[0],H,C,be,ke,pe,ye),Hl(E,H,C,pe,ye,ue)}g.C=g.Ma=C}function Gl(g,C,E,H,ue,pe,ye){var be=g.$/H,ke=g.$%H,we=g.m,Ne=g.s,Ie=E+g.$,$e=Ie;ue=E+H*ue;var Le=E+H*pe,He=280+Ne.ua,Qe=g.Pb?be:16777216,_e=0<Ne.ua?Ne.Wa:null,Se=Ne.wc,De=Ie<Le?mo(Ne,ke,be):null;o(g.C<pe),o(Le<=ue);var Re=!1;e:for(;;){for(;Re||Ie<Le;){var Pe=0;if(be>=Qe){var lt=Ie-E;o((Qe=g).Pb),Qe.wd=Qe.m,Qe.xd=lt,0<Qe.s.ua&&M(Qe.s.Wa,Qe.s.vb),Qe=be+Yg}if(ke&Se||(De=mo(Ne,ke,be)),o(De!=null),De.Qb&&(C[Ie]=De.qb,Re=!0),!Re)if(Y(we),De.jc){Pe=we,lt=C;var Ze=Ie,gt=De.pd[N(Pe)&vl-1];o(De.jc),256>gt.g?(Q(Pe,Pe.u+gt.g),lt[Ze]=gt.value,Pe=0):(Q(Pe,Pe.u+gt.g-256),o(256<=gt.value),Pe=gt.value),Pe==0&&(Re=!0)}else Pe=$o(De.G[0],De.H[0],we);if(we.h)break;if(Re||256>Pe){if(!Re)if(De.nd)C[Ie]=(De.qb|Pe<<8)>>>0;else{if(Y(we),Re=$o(De.G[1],De.H[1],we),Y(we),lt=$o(De.G[2],De.H[2],we),Ze=$o(De.G[3],De.H[3],we),we.h)break;C[Ie]=(Ze<<24|Re<<16|Pe<<8|lt)>>>0}if(Re=!1,++Ie,++ke>=H&&(ke=0,++be,ye!=null&&be<=pe&&!(be%16)&&ye(g,be),_e!=null))for(;$e<Ie;)Pe=C[$e++],_e.X[(506832829*Pe&4294967295)>>>_e.Mb]=Pe}else if(280>Pe){if(Pe=Ht(Pe-256,we),lt=$o(De.G[4],De.H[4],we),Y(we),lt=el(H,lt=Ht(lt,we)),we.h)break;if(Ie-E<lt||ue-Ie<Pe)break e;for(Ze=0;Ze<Pe;++Ze)C[Ie+Ze]=C[Ie+Ze-lt];for(Ie+=Pe,ke+=Pe;ke>=H;)ke-=H,++be,ye!=null&&be<=pe&&!(be%16)&&ye(g,be);if(o(Ie<=ue),ke&Se&&(De=mo(Ne,ke,be)),_e!=null)for(;$e<Ie;)Pe=C[$e++],_e.X[(506832829*Pe&4294967295)>>>_e.Mb]=Pe}else{if(!(Pe<He))break e;for(Re=Pe-280,o(_e!=null);$e<Ie;)Pe=C[$e++],_e.X[(506832829*Pe&4294967295)>>>_e.Mb]=Pe;Pe=Ie,o(!(Re>>>(lt=_e).Xa)),C[Pe]=lt.X[Re],Re=!0}Re||o(we.h==x(we))}if(g.Pb&&we.h&&Ie<ue)o(g.m.h),g.a=5,g.m=g.wd,g.$=g.xd,0<g.s.ua&&M(g.s.vb,g.s.Wa);else{if(we.h)break e;ye!=null&&ye(g,be>pe?pe:be),g.a=0,g.$=Ie-E}return 1}return g.a=3,0}function ca(g){o(g!=null),g.vc=null,g.yc=null,g.Ya=null;var C=g.Wa;C!=null&&(C.X=null),g.vb=null,o(g!=null)}function Il(){var g=new uA;return g==null?null:(g.a=0,g.xb=yd,Al("Predictor","VP8LPredictors"),Al("Predictor","VP8LPredictors_C"),Al("PredictorAdd","VP8LPredictorsAdd"),Al("PredictorAdd","VP8LPredictorsAdd_C"),Ai=Ce,$l=Ve,ql=ze,ja=It,fa=kt,_a=Ko,rn=St,b.VP8LMapColor32b=as,b.VP8LMapColor8b=dA,g)}function da(g,C,E,H,ue){var pe=1,ye=[g],be=[C],ke=H.m,we=H.s,Ne=null,Ie=0;e:for(;;){if(E)for(;pe&&K(ke,1);){var $e=ye,Le=be,He=H,Qe=1,_e=He.m,Se=He.gc[He.ab],De=K(_e,2);if(He.Oc&1<<De)pe=0;else{switch(He.Oc|=1<<De,Se.hc=De,Se.Ea=$e[0],Se.nc=Le[0],Se.K=[null],++He.ab,o(4>=He.ab),De){case 0:case 1:Se.b=K(_e,3)+2,Qe=da(O(Se.Ea,Se.b),O(Se.nc,Se.b),0,He,Se.K),Se.K=Se.K[0];break;case 3:var Re,Pe=K(_e,8)+1,lt=16<Pe?0:4<Pe?1:2<Pe?2:3;if($e[0]=O(Se.Ea,lt),Se.b=lt,Re=Qe=da(Pe,1,0,He,Se.K)){var Ze,gt=Pe,et=Se,Rt=1<<(8>>et.b),Yt=l(Rt);if(Yt==null)Re=0;else{var Ot=et.K[0],$t=et.w;for(Yt[0]=et.K[0][0],Ze=1;Ze<1*gt;++Ze)Yt[Ze]=ce(Ot[$t+Ze],Yt[Ze-1]);for(;Ze<4*Rt;++Ze)Yt[Ze]=0;et.K[0]=null,et.K[0]=Yt,Re=1}}Qe=Re;break;case 2:break;default:o(0)}pe=Qe}}if(ye=ye[0],be=be[0],pe&&K(ke,1)&&!(pe=1<=(Ie=K(ke,4))&&11>=Ie)){H.a=3;break e}var ao;if(ao=pe)t:{var to,Ft,Uo,pl=H,Vo=ye,yl=be,Jt=Ie,Fl=E,Nl=pl.m,Ho=pl.s,qo=[null],cl=1,Ql=0,va=qg[Jt];o:for(;;){if(Fl&&K(Nl,1)){var Ro=K(Nl,3)+2,$a=O(Vo,Ro),Fr=O(yl,Ro),An=$a*Fr;if(!da($a,Fr,0,pl,qo))break o;for(qo=qo[0],Ho.xc=Ro,to=0;to<An;++to){var Za=qo[to]>>8&65535;qo[to]=Za,Za>=cl&&(cl=Za+1)}}if(Nl.h)break o;for(Ft=0;5>Ft;++Ft){var ko=gd[Ft];!Ft&&0<Jt&&(ko+=1<<Jt),Ql<ko&&(Ql=ko)}var kA=s(cl*va,S),Nd=cl,_d=s(Nd,ee);if(_d==null)var ki=null;else o(65536>=Nd),ki=_d;var us=l(Ql);if(ki==null||us==null||kA==null){pl.a=1;break o}var Ci=kA;for(to=Uo=0;to<cl;++to){var ea=ki[to],cn=ea.G,dn=ea.H,Sd=0,wi=1,Ld=0;for(Ft=0;5>Ft;++Ft){ko=gd[Ft],cn[Ft]=Ci,dn[Ft]=Uo,!Ft&&0<Jt&&(ko+=1<<Jt);a:{var Bi,CA=ko,xi=pl,As=us,p1=Ci,y1=Uo,wA=0,er=xi.m,m1=K(er,1);if(r(As,0,0,CA),m1){var b1=K(er,1)+1,k1=K(er,1),Ed=K(er,k1==0?1:8);As[Ed]=1,b1==2&&(As[Ed=K(er,8)]=1);var Fi=1}else{var Id=l(19),$d=K(er,4)+4;if(19<$d){xi.a=3;var Ni=0;break a}for(Bi=0;Bi<$d;++Bi)Id[Kg[Bi]]=K(er,3);var BA=void 0,cs=void 0,Md=xi,C1=Id,_i=CA,Ud=As,xA=0,tr=Md.m,Vd=8,Qd=s(128,S);l:for(;I(Qd,0,7,C1,19);){if(K(tr,1)){var w1=2+2*K(tr,3);if((BA=2+K(tr,w1))>_i)break l}else BA=_i;for(cs=0;cs<_i&&BA--;){Y(tr);var Td=Qd[0+(127&N(tr))];Q(tr,tr.u+Td.g);var hn=Td.value;if(16>hn)Ud[cs++]=hn,hn!=0&&(Vd=hn);else{var B1=hn==16,Od=hn-16,x1=Wg[Od],zd=K(tr,Gg[Od])+x1;if(cs+zd>_i)break l;for(var F1=B1?Vd:0;0<zd--;)Ud[cs++]=F1}}xA=1;break l}xA||(Md.a=3),Fi=xA}(Fi=Fi&&!er.h)&&(wA=I(p1,y1,8,As,CA)),Fi&&wA!=0?Ni=wA:(xi.a=3,Ni=0)}if(Ni==0)break o;if(wi&&jg[Ft]==1&&(wi=Ci[Uo].g==0),Sd+=Ci[Uo].g,Uo+=Ni,3>=Ft){var ds,FA=us[0];for(ds=1;ds<ko;++ds)us[ds]>FA&&(FA=us[ds]);Ld+=FA}}if(ea.nd=wi,ea.Qb=0,wi&&(ea.qb=(cn[3][dn[3]+0].value<<24|cn[1][dn[1]+0].value<<16|cn[2][dn[2]+0].value)>>>0,Sd==0&&256>cn[0][dn[0]+0].value&&(ea.Qb=1,ea.qb+=cn[0][dn[0]+0].value<<8)),ea.jc=!ea.Qb&&6>Ld,ea.jc){var Si,Ma=ea;for(Si=0;Si<vl;++Si){var or=Si,lr=Ma.pd[or],Li=Ma.G[0][Ma.H[0]+or];256<=Li.value?(lr.g=Li.g+256,lr.value=Li.value):(lr.g=0,lr.value=0,or>>=ho(Li,8,lr),or>>=ho(Ma.G[1][Ma.H[1]+or],16,lr),or>>=ho(Ma.G[2][Ma.H[2]+or],0,lr),ho(Ma.G[3][Ma.H[3]+or],24,lr))}}}Ho.vc=qo,Ho.Wb=cl,Ho.Ya=ki,Ho.yc=kA,ao=1;break t}ao=0}if(!(pe=ao)){H.a=3;break e}if(0<Ie){if(we.ua=1<<Ie,!ge(we.Wa,Ie)){H.a=1,pe=0;break e}}else we.ua=0;var NA=H,Dd=ye,N1=be,_A=NA.s,SA=_A.xc;if(NA.c=Dd,NA.i=N1,_A.md=O(Dd,SA),_A.wc=SA==0?-1:(1<<SA)-1,E){H.xb=a1;break e}if((Ne=l(ye*be))==null){H.a=1,pe=0;break e}pe=(pe=Gl(H,Ne,0,ye,be,be,null))&&!ke.h;break e}return pe?(ue!=null?ue[0]=Ne:(o(Ne==null),o(E)),H.$=0,E||ca(we)):ca(we),pe}function mr(g,C){var E=g.c*g.i,H=E+C+16*C;return o(g.c<=C),g.V=l(H),g.V==null?(g.Ta=null,g.Ua=0,g.a=1,0):(g.Ta=g.V,g.Ua=g.Ba+E+C,1)}function zr(g,C){var E=g.C,H=C-E,ue=g.V,pe=g.Ba+g.c*E;for(o(C<=g.l.o);0<H;){var ye=16<H?16:H,be=g.l.ma,ke=g.l.width,we=ke*ye,Ne=be.ca,Ie=be.tb+ke*E,$e=g.Ta,Le=g.Ua;wl(g,ye,ue,pe),id($e,Le,Ne,Ie,we),Hl(be,E,E+ye,Ne,Ie,ke),H-=ye,ue+=ye*g.c,E+=ye}o(E==C),g.C=g.Ma=C}function Dr(){this.ub=this.yd=this.td=this.Rb=0}function Pr(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Hr(){this.Fb=this.Bb=this.Cb=0,this.Zb=l(4),this.Lb=l(4)}function Rs(){this.Yb=function(){var g=[];return function C(E,H,ue){for(var pe=ue[H],ye=0;ye<pe&&(E.push(ue.length>H+1?[]:0),!(ue.length<H+1));ye++)C(E[ye],H+1,ue)}(g,0,[3,11]),g}()}function zu(){this.jb=l(3),this.Wc=u([4,8],Rs),this.Xc=u([4,17],Rs)}function Du(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new l(4),this.od=new l(4)}function Rr(){this.ld=this.La=this.dd=this.tc=0}function Gs(){this.Na=this.la=0}function Pu(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Tn(){this.ad=l(384),this.Za=0,this.Ob=l(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Hu(){this.uc=this.M=this.Nb=0,this.wa=Array(new Rr),this.Y=0,this.ya=Array(new Tn),this.aa=0,this.l=new Gr}function Ws(){this.y=l(16),this.f=l(8),this.ea=l(8)}function Ru(){this.cb=this.a=0,this.sc="",this.m=new q,this.Od=new Dr,this.Kc=new Pr,this.ed=new Du,this.Qa=new Hr,this.Ic=this.$c=this.Aa=0,this.D=new Hu,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,q),this.ia=0,this.pb=s(4,Pu),this.Pa=new zu,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ws),this.Hd=0,this.rb=Array(new Gs),this.sb=0,this.wa=Array(new Rr),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Tn),this.L=this.aa=0,this.gd=u([4,2],Rr),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Gr(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Gu(){var g=new Ru;return g!=null&&(g.a=0,g.sc="OK",g.cb=0,g.Xb=0,ss||(ss=Xs)),g}function Fo(g,C,E){return g.a==0&&(g.a=C,g.sc=E,g.cb=0),0}function js(g,C,E){return 3<=E&&g[C+0]==157&&g[C+1]==1&&g[C+2]==42}function Ks(g,C){if(g==null)return 0;if(g.a=0,g.sc="OK",C==null)return Fo(g,2,"null VP8Io passed to VP8GetHeaders()");var E=C.data,H=C.w,ue=C.ha;if(4>ue)return Fo(g,7,"Truncated header.");var pe=E[H+0]|E[H+1]<<8|E[H+2]<<16,ye=g.Od;if(ye.Rb=!(1&pe),ye.td=pe>>1&7,ye.yd=pe>>4&1,ye.ub=pe>>5,3<ye.td)return Fo(g,3,"Incorrect keyframe parameters.");if(!ye.yd)return Fo(g,4,"Frame not displayable.");H+=3,ue-=3;var be=g.Kc;if(ye.Rb){if(7>ue)return Fo(g,7,"cannot parse picture header");if(!js(E,H,ue))return Fo(g,3,"Bad code word");be.c=16383&(E[H+4]<<8|E[H+3]),be.Td=E[H+4]>>6,be.i=16383&(E[H+6]<<8|E[H+5]),be.Ud=E[H+6]>>6,H+=7,ue-=7,g.za=be.c+15>>4,g.Ub=be.i+15>>4,C.width=be.c,C.height=be.i,C.Da=0,C.j=0,C.v=0,C.va=C.width,C.o=C.height,C.da=0,C.ib=C.width,C.hb=C.height,C.U=C.width,C.T=C.height,r((pe=g.Pa).jb,0,255,pe.jb.length),o((pe=g.Qa)!=null),pe.Cb=0,pe.Bb=0,pe.Fb=1,r(pe.Zb,0,0,pe.Zb.length),r(pe.Lb,0,0,pe.Lb)}if(ye.ub>ue)return Fo(g,7,"bad partition length");le(pe=g.m,E,H,ye.ub),H+=ye.ub,ue-=ye.ub,ye.Rb&&(be.Ld=ne(pe),be.Kd=ne(pe)),be=g.Qa;var ke,we=g.Pa;if(o(pe!=null),o(be!=null),be.Cb=ne(pe),be.Cb){if(be.Bb=ne(pe),ne(pe)){for(be.Fb=ne(pe),ke=0;4>ke;++ke)be.Zb[ke]=ne(pe)?oe(pe,7):0;for(ke=0;4>ke;++ke)be.Lb[ke]=ne(pe)?oe(pe,6):0}if(be.Bb)for(ke=0;3>ke;++ke)we.jb[ke]=ne(pe)?he(pe,8):255}else be.Bb=0;if(pe.Ka)return Fo(g,3,"cannot parse segment header");if((be=g.ed).zd=ne(pe),be.Tb=he(pe,6),be.wb=he(pe,3),be.Pc=ne(pe),be.Pc&&ne(pe)){for(we=0;4>we;++we)ne(pe)&&(be.vd[we]=oe(pe,6));for(we=0;4>we;++we)ne(pe)&&(be.od[we]=oe(pe,6))}if(g.L=be.Tb==0?0:be.zd?1:2,pe.Ka)return Fo(g,3,"cannot parse filter header");var Ne=ue;if(ue=ke=H,H=ke+Ne,be=Ne,g.Xb=(1<<he(g.m,2))-1,Ne<3*(we=g.Xb))E=7;else{for(ke+=3*we,be-=3*we,Ne=0;Ne<we;++Ne){var Ie=E[ue+0]|E[ue+1]<<8|E[ue+2]<<16;Ie>be&&(Ie=be),le(g.Jc[+Ne],E,ke,Ie),ke+=Ie,be-=Ie,ue+=3}le(g.Jc[+we],E,ke,be),E=ke<H?0:5}if(E!=0)return Fo(g,E,"cannot parse partitions");for(E=he(ke=g.m,7),ue=ne(ke)?oe(ke,4):0,H=ne(ke)?oe(ke,4):0,be=ne(ke)?oe(ke,4):0,we=ne(ke)?oe(ke,4):0,ke=ne(ke)?oe(ke,4):0,Ne=g.Qa,Ie=0;4>Ie;++Ie){if(Ne.Cb){var $e=Ne.Zb[Ie];Ne.Fb||($e+=E)}else{if(0<Ie){g.pb[Ie]=g.pb[0];continue}$e=E}var Le=g.pb[Ie];Le.Sc[0]=yA[Bl($e+ue,127)],Le.Sc[1]=mA[Bl($e+0,127)],Le.Eb[0]=2*yA[Bl($e+H,127)],Le.Eb[1]=101581*mA[Bl($e+be,127)]>>16,8>Le.Eb[1]&&(Le.Eb[1]=8),Le.Qc[0]=yA[Bl($e+we,117)],Le.Qc[1]=mA[Bl($e+ke,127)],Le.lc=$e+ke}if(!ye.Rb)return Fo(g,4,"Not a key frame.");for(ne(pe),ye=g.Pa,E=0;4>E;++E){for(ue=0;8>ue;++ue)for(H=0;3>H;++H)for(be=0;11>be;++be)we=fe(pe,o1[E][ue][H][be])?he(pe,8):e1[E][ue][H][be],ye.Wc[E][ue].Yb[H][be]=we;for(ue=0;17>ue;++ue)ye.Xc[E][ue]=ye.Wc[E][l1[ue]]}return g.kc=ne(pe),g.kc&&(g.Bd=he(pe,8)),g.cb=1}function Xs(g,C,E,H,ue,pe,ye){var be=C[ue].Yb[E];for(E=0;16>ue;++ue){if(!fe(g,be[E+0]))return ue;for(;!fe(g,be[E+1]);)if(be=C[++ue].Yb[0],E=0,ue==16)return 16;var ke=C[ue+1].Yb;if(fe(g,be[E+2])){var we=g,Ne=0;if(fe(we,($e=be)[(Ie=E)+3]))if(fe(we,$e[Ie+6])){for(be=0,Ie=2*(Ne=fe(we,$e[Ie+8]))+($e=fe(we,$e[Ie+9+Ne])),Ne=0,$e=Jg[Ie];$e[be];++be)Ne+=Ne+fe(we,$e[be]);Ne+=3+(8<<Ie)}else fe(we,$e[Ie+7])?(Ne=7+2*fe(we,165),Ne+=fe(we,145)):Ne=5+fe(we,159);else Ne=fe(we,$e[Ie+4])?3+fe(we,$e[Ie+5]):2;be=ke[2]}else Ne=1,be=ke[1];ke=ye+Zg[ue],0>(we=g).b&&me(we);var Ie,$e=we.b,Le=(Ie=we.Ca>>1)-(we.I>>$e)>>31;--we.b,we.Ca+=Le,we.Ca|=1,we.I-=(Ie+1&Le)<<$e,pe[ke]=((Ne^Le)-Le)*H[(0<ue)+0]}return 16}function On(g){var C=g.rb[g.sb-1];C.la=0,C.Na=0,r(g.zc,0,0,g.zc.length),g.ja=0}function Wu(g,C){if(g==null)return 0;if(C==null)return Fo(g,2,"NULL VP8Io parameter in VP8Decode().");if(!g.cb&&!Ks(g,C))return 0;if(o(g.cb),C.ac==null||C.ac(C)){C.ob&&(g.L=0);var E=bi[g.L];if(g.L==2?(g.yb=0,g.zb=0):(g.yb=C.v-E>>4,g.zb=C.j-E>>4,0>g.yb&&(g.yb=0),0>g.zb&&(g.zb=0)),g.Va=C.o+15+E>>4,g.Hb=C.va+15+E>>4,g.Hb>g.za&&(g.Hb=g.za),g.Va>g.Ub&&(g.Va=g.Ub),0<g.L){var H=g.ed;for(E=0;4>E;++E){var ue;if(g.Qa.Cb){var pe=g.Qa.Lb[E];g.Qa.Fb||(pe+=H.Tb)}else pe=H.Tb;for(ue=0;1>=ue;++ue){var ye=g.gd[E][ue],be=pe;if(H.Pc&&(be+=H.vd[0],ue&&(be+=H.od[0])),0<(be=0>be?0:63<be?63:be)){var ke=be;0<H.wb&&(ke=4<H.wb?ke>>2:ke>>1)>9-H.wb&&(ke=9-H.wb),1>ke&&(ke=1),ye.dd=ke,ye.tc=2*be+ke,ye.ld=40<=be?2:15<=be?1:0}else ye.tc=0;ye.La=ue}}}E=0}else Fo(g,6,"Frame setup failed"),E=g.a;if(E=E==0){if(E){g.$c=0,0<g.Aa||(g.Ic=g1);e:{E=g.Ic,H=4*(ke=g.za);var we=32*ke,Ne=ke+1,Ie=0<g.L?ke*(0<g.Aa?2:1):0,$e=(g.Aa==2?2:1)*ke;if((ye=H+832+(ue=3*(16*E+bi[g.L])/2*we)+(pe=g.Fa!=null&&0<g.Fa.length?g.Kc.c*g.Kc.i:0))!=ye)E=0;else{if(ye>g.Vb){if(g.Vb=0,g.Ec=l(ye),g.Fc=0,g.Ec==null){E=Fo(g,1,"no memory during frame initialization.");break e}g.Vb=ye}ye=g.Ec,be=g.Fc,g.Ac=ye,g.Bc=be,be+=H,g.Gd=s(we,Ws),g.Hd=0,g.rb=s(Ne+1,Gs),g.sb=1,g.wa=Ie?s(Ie,Rr):null,g.Y=0,g.D.Nb=0,g.D.wa=g.wa,g.D.Y=g.Y,0<g.Aa&&(g.D.Y+=ke),o(!0),g.oc=ye,g.pc=be,be+=832,g.ya=s($e,Tn),g.aa=0,g.D.ya=g.ya,g.D.aa=g.aa,g.Aa==2&&(g.D.aa+=ke),g.R=16*ke,g.B=8*ke,ke=(we=bi[g.L])*g.R,we=we/2*g.B,g.sa=ye,g.ta=be+ke,g.qa=g.sa,g.ra=g.ta+16*E*g.R+we,g.Ha=g.qa,g.Ia=g.ra+8*E*g.B+we,g.$c=0,be+=ue,g.mb=pe?ye:null,g.nb=pe?be:null,o(be+pe<=g.Fc+g.Vb),On(g),r(g.Ac,g.Bc,0,H),E=1}}if(E){if(C.ka=0,C.y=g.sa,C.O=g.ta,C.f=g.qa,C.N=g.ra,C.ea=g.Ha,C.Vd=g.Ia,C.fa=g.R,C.Rc=g.B,C.F=null,C.J=0,!hd){for(E=-255;255>=E;++E)ud[255+E]=0>E?-E:E;for(E=-1020;1020>=E;++E)Ad[1020+E]=-128>E?-128:127<E?127:E;for(E=-112;112>=E;++E)cd[112+E]=-16>E?-16:15<E?15:E;for(E=-255;510>=E;++E)dd[255+E]=0>E?0:255<E?255:E;hd=1}Yl=Xu,nn=ju,Ka=Ys,Jl=Ku,Sa=Js,rs=qs,Br=Gn,sn=Cr,xr=iA,Xa=Wn,ns=sA,Ml=Yr,La=jn,io=si,uo=ni,No=Fa,zo=Ha,Ea=nA,Zl[0]=ha,Zl[1]=qu,Zl[2]=eA,Zl[3]=tA,Zl[4]=ti,Zl[5]=Xr,Zl[6]=oi,Zl[7]=Pn,Zl[8]=lA,Zl[9]=oA,Ya[0]=Zs,Ya[1]=Ju,Ya[2]=xa,Ya[3]=jr,Ya[4]=tl,Ya[5]=Zu,Ya[6]=ei,Ia[0]=Pa,Ia[1]=Yu,Ia[2]=aA,Ia[3]=Hn,Ia[4]=kr,Ia[5]=rA,Ia[6]=Rn,E=1}else E=0}E&&(E=function(Le,He){for(Le.M=0;Le.M<Le.Va;++Le.M){var Qe,_e=Le.Jc[Le.M&Le.Xb],Se=Le.m,De=Le;for(Qe=0;Qe<De.za;++Qe){var Re=Se,Pe=De,lt=Pe.Ac,Ze=Pe.Bc+4*Qe,gt=Pe.zc,et=Pe.ya[Pe.aa+Qe];if(Pe.Qa.Bb?et.$b=fe(Re,Pe.Pa.jb[0])?2+fe(Re,Pe.Pa.jb[2]):fe(Re,Pe.Pa.jb[1]):et.$b=0,Pe.kc&&(et.Ad=fe(Re,Pe.Bd)),et.Za=!fe(Re,145)+0,et.Za){var Rt=et.Ob,Yt=0;for(Pe=0;4>Pe;++Pe){var Ot,$t=gt[0+Pe];for(Ot=0;4>Ot;++Ot){$t=t1[lt[Ze+Ot]][$t];for(var ao=pd[fe(Re,$t[0])];0<ao;)ao=pd[2*ao+fe(Re,$t[ao])];$t=-ao,lt[Ze+Ot]=$t}n(Rt,Yt,lt,Ze,4),Yt+=4,gt[0+Pe]=$t}}else $t=fe(Re,156)?fe(Re,128)?1:3:fe(Re,163)?2:0,et.Ob[0]=$t,r(lt,Ze,$t,4),r(gt,0,$t,4);et.Dd=fe(Re,142)?fe(Re,114)?fe(Re,183)?1:3:2:0}if(De.m.Ka)return Fo(Le,7,"Premature end-of-partition0 encountered.");for(;Le.ja<Le.za;++Le.ja){if(De=_e,Re=(Se=Le).rb[Se.sb-1],lt=Se.rb[Se.sb+Se.ja],Qe=Se.ya[Se.aa+Se.ja],Ze=Se.kc?Qe.Ad:0)Re.la=lt.la=0,Qe.Za||(Re.Na=lt.Na=0),Qe.Hc=0,Qe.Gc=0,Qe.ia=0;else{var to,Ft;if(Re=lt,lt=De,Ze=Se.Pa.Xc,gt=Se.ya[Se.aa+Se.ja],et=Se.pb[gt.$b],Pe=gt.ad,Rt=0,Yt=Se.rb[Se.sb-1],$t=Ot=0,r(Pe,Rt,0,384),gt.Za)var Uo=0,pl=Ze[3];else{ao=l(16);var Vo=Re.Na+Yt.Na;if(Vo=ss(lt,Ze[1],Vo,et.Eb,0,ao,0),Re.Na=Yt.Na=(0<Vo)+0,1<Vo)Yl(ao,0,Pe,Rt);else{var yl=ao[0]+3>>3;for(ao=0;256>ao;ao+=16)Pe[Rt+ao]=yl}Uo=1,pl=Ze[0]}var Jt=15&Re.la,Fl=15&Yt.la;for(ao=0;4>ao;++ao){var Nl=1&Fl;for(yl=Ft=0;4>yl;++yl)Jt=Jt>>1|(Nl=(Vo=ss(lt,pl,Vo=Nl+(1&Jt),et.Sc,Uo,Pe,Rt))>Uo)<<7,Ft=Ft<<2|(3<Vo?3:1<Vo?2:Pe[Rt+0]!=0),Rt+=16;Jt>>=4,Fl=Fl>>1|Nl<<7,Ot=(Ot<<8|Ft)>>>0}for(pl=Jt,Uo=Fl>>4,to=0;4>to;to+=2){for(Ft=0,Jt=Re.la>>4+to,Fl=Yt.la>>4+to,ao=0;2>ao;++ao){for(Nl=1&Fl,yl=0;2>yl;++yl)Vo=Nl+(1&Jt),Jt=Jt>>1|(Nl=0<(Vo=ss(lt,Ze[2],Vo,et.Qc,0,Pe,Rt)))<<3,Ft=Ft<<2|(3<Vo?3:1<Vo?2:Pe[Rt+0]!=0),Rt+=16;Jt>>=2,Fl=Fl>>1|Nl<<5}$t|=Ft<<4*to,pl|=Jt<<4<<to,Uo|=(240&Fl)<<to}Re.la=pl,Yt.la=Uo,gt.Hc=Ot,gt.Gc=$t,gt.ia=43690&$t?0:et.ia,Ze=!(Ot|$t)}if(0<Se.L&&(Se.wa[Se.Y+Se.ja]=Se.gd[Qe.$b][Qe.Za],Se.wa[Se.Y+Se.ja].La|=!Ze),De.Ka)return Fo(Le,7,"Premature end-of-file encountered.")}if(On(Le),Se=He,De=1,Qe=(_e=Le).D,Re=0<_e.L&&_e.M>=_e.zb&&_e.M<=_e.Va,_e.Aa==0)e:{if(Qe.M=_e.M,Qe.uc=Re,Zn(_e,Qe),De=1,Qe=(Ft=_e.D).Nb,Re=($t=bi[_e.L])*_e.R,lt=$t/2*_e.B,ao=16*Qe*_e.R,yl=8*Qe*_e.B,Ze=_e.sa,gt=_e.ta-Re+ao,et=_e.qa,Pe=_e.ra-lt+yl,Rt=_e.Ha,Yt=_e.Ia-lt+yl,Fl=(Jt=Ft.M)==0,Ot=Jt>=_e.Va-1,_e.Aa==2&&Zn(_e,Ft),Ft.uc)for(Nl=(Vo=_e).D.M,o(Vo.D.uc),Ft=Vo.yb;Ft<Vo.Hb;++Ft){Uo=Ft,pl=Nl;var Ho=(qo=(ko=Vo).D).Nb;to=ko.R;var qo=qo.wa[qo.Y+Uo],cl=ko.sa,Ql=ko.ta+16*Ho*to+16*Uo,va=qo.dd,Ro=qo.tc;if(Ro!=0)if(o(3<=Ro),ko.L==1)0<Uo&&No(cl,Ql,to,Ro+4),qo.La&&Ea(cl,Ql,to,Ro),0<pl&&uo(cl,Ql,to,Ro+4),qo.La&&zo(cl,Ql,to,Ro);else{var $a=ko.B,Fr=ko.qa,An=ko.ra+8*Ho*$a+8*Uo,Za=ko.Ha,ko=ko.Ia+8*Ho*$a+8*Uo;Ho=qo.ld,0<Uo&&(sn(cl,Ql,to,Ro+4,va,Ho),Xa(Fr,An,Za,ko,$a,Ro+4,va,Ho)),qo.La&&(Ml(cl,Ql,to,Ro,va,Ho),io(Fr,An,Za,ko,$a,Ro,va,Ho)),0<pl&&(Br(cl,Ql,to,Ro+4,va,Ho),xr(Fr,An,Za,ko,$a,Ro+4,va,Ho)),qo.La&&(ns(cl,Ql,to,Ro,va,Ho),La(Fr,An,Za,ko,$a,Ro,va,Ho))}}if(_e.ia&&alert("todo:DitherRow"),Se.put!=null){if(Ft=16*Jt,Jt=16*(Jt+1),Fl?(Se.y=_e.sa,Se.O=_e.ta+ao,Se.f=_e.qa,Se.N=_e.ra+yl,Se.ea=_e.Ha,Se.W=_e.Ia+yl):(Ft-=$t,Se.y=Ze,Se.O=gt,Se.f=et,Se.N=Pe,Se.ea=Rt,Se.W=Yt),Ot||(Jt-=$t),Jt>Se.o&&(Jt=Se.o),Se.F=null,Se.J=null,_e.Fa!=null&&0<_e.Fa.length&&Ft<Jt&&(Se.J=Yn(_e,Se,Ft,Jt-Ft),Se.F=_e.mb,Se.F==null&&Se.F.length==0)){De=Fo(_e,3,"Could not decode alpha data.");break e}Ft<Se.j&&($t=Se.j-Ft,Ft=Se.j,o(!(1&$t)),Se.O+=_e.R*$t,Se.N+=_e.B*($t>>1),Se.W+=_e.B*($t>>1),Se.F!=null&&(Se.J+=Se.width*$t)),Ft<Jt&&(Se.O+=Se.v,Se.N+=Se.v>>1,Se.W+=Se.v>>1,Se.F!=null&&(Se.J+=Se.v),Se.ka=Ft-Se.j,Se.U=Se.va-Se.v,Se.T=Jt-Ft,De=Se.put(Se))}Qe+1!=_e.Ic||Ot||(n(_e.sa,_e.ta-Re,Ze,gt+16*_e.R,Re),n(_e.qa,_e.ra-lt,et,Pe+8*_e.B,lt),n(_e.Ha,_e.Ia-lt,Rt,Yt+8*_e.B,lt))}if(!De)return Fo(Le,6,"Output aborted.")}return 1}(g,C)),C.bc!=null&&C.bc(C),E&=1}return E?(g.cb=0,E):0}function Wl(g,C,E,H,ue){ue=g[C+E+32*H]+(ue>>3),g[C+E+32*H]=-256&ue?0>ue?0:255:ue}function Wr(g,C,E,H,ue,pe){Wl(g,C,0,E,H+ue),Wl(g,C,1,E,H+pe),Wl(g,C,2,E,H-pe),Wl(g,C,3,E,H-ue)}function fl(g){return(20091*g>>16)+g}function zn(g,C,E,H){var ue,pe=0,ye=l(16);for(ue=0;4>ue;++ue){var be=g[C+0]+g[C+8],ke=g[C+0]-g[C+8],we=(35468*g[C+4]>>16)-fl(g[C+12]),Ne=fl(g[C+4])+(35468*g[C+12]>>16);ye[pe+0]=be+Ne,ye[pe+1]=ke+we,ye[pe+2]=ke-we,ye[pe+3]=be-Ne,pe+=4,C++}for(ue=pe=0;4>ue;++ue)be=(g=ye[pe+0]+4)+ye[pe+8],ke=g-ye[pe+8],we=(35468*ye[pe+4]>>16)-fl(ye[pe+12]),Wl(E,H,0,0,be+(Ne=fl(ye[pe+4])+(35468*ye[pe+12]>>16))),Wl(E,H,1,0,ke+we),Wl(E,H,2,0,ke-we),Wl(E,H,3,0,be-Ne),pe++,H+=32}function qs(g,C,E,H){var ue=g[C+0]+4,pe=35468*g[C+4]>>16,ye=fl(g[C+4]),be=35468*g[C+1]>>16;Wr(E,H,0,ue+ye,g=fl(g[C+1]),be),Wr(E,H,1,ue+pe,g,be),Wr(E,H,2,ue-pe,g,be),Wr(E,H,3,ue-ye,g,be)}function ju(g,C,E,H,ue){zn(g,C,E,H),ue&&zn(g,C+16,E,H+4)}function Ys(g,C,E,H){nn(g,C+0,E,H,1),nn(g,C+32,E,H+128,1)}function Ku(g,C,E,H){var ue;for(g=g[C+0]+4,ue=0;4>ue;++ue)for(C=0;4>C;++C)Wl(E,H,C,ue,g)}function Js(g,C,E,H){g[C+0]&&Jl(g,C+0,E,H),g[C+16]&&Jl(g,C+16,E,H+4),g[C+32]&&Jl(g,C+32,E,H+128),g[C+48]&&Jl(g,C+48,E,H+128+4)}function Xu(g,C,E,H){var ue,pe=l(16);for(ue=0;4>ue;++ue){var ye=g[C+0+ue]+g[C+12+ue],be=g[C+4+ue]+g[C+8+ue],ke=g[C+4+ue]-g[C+8+ue],we=g[C+0+ue]-g[C+12+ue];pe[0+ue]=ye+be,pe[8+ue]=ye-be,pe[4+ue]=we+ke,pe[12+ue]=we-ke}for(ue=0;4>ue;++ue)ye=(g=pe[0+4*ue]+3)+pe[3+4*ue],be=pe[1+4*ue]+pe[2+4*ue],ke=pe[1+4*ue]-pe[2+4*ue],we=g-pe[3+4*ue],E[H+0]=ye+be>>3,E[H+16]=we+ke>>3,E[H+32]=ye-be>>3,E[H+48]=we-ke>>3,H+=64}function Dn(g,C,E){var H,ue=C-32,pe=xl,ye=255-g[ue-1];for(H=0;H<E;++H){var be,ke=pe,we=ye+g[C-1];for(be=0;be<E;++be)g[C+be]=ke[we+g[ue+be]];C+=32}}function qu(g,C){Dn(g,C,4)}function Yu(g,C){Dn(g,C,8)}function Ju(g,C){Dn(g,C,16)}function xa(g,C){var E;for(E=0;16>E;++E)n(g,C+32*E,g,C-32,16)}function jr(g,C){var E;for(E=16;0<E;--E)r(g,C,g[C-1],16),C+=32}function Kr(g,C,E){var H;for(H=0;16>H;++H)r(C,E+32*H,g,16)}function Zs(g,C){var E,H=16;for(E=0;16>E;++E)H+=g[C-1+32*E]+g[C+E-32];Kr(H>>5,g,C)}function tl(g,C){var E,H=8;for(E=0;16>E;++E)H+=g[C-1+32*E];Kr(H>>4,g,C)}function Zu(g,C){var E,H=8;for(E=0;16>E;++E)H+=g[C+E-32];Kr(H>>4,g,C)}function ei(g,C){Kr(128,g,C)}function Ct(g,C,E){return g+2*C+E+2>>2}function eA(g,C){var E,H=C-32;for(H=new Uint8Array([Ct(g[H-1],g[H+0],g[H+1]),Ct(g[H+0],g[H+1],g[H+2]),Ct(g[H+1],g[H+2],g[H+3]),Ct(g[H+2],g[H+3],g[H+4])]),E=0;4>E;++E)n(g,C+32*E,H,0,H.length)}function tA(g,C){var E=g[C-1],H=g[C-1+32],ue=g[C-1+64],pe=g[C-1+96];Z(g,C+0,16843009*Ct(g[C-1-32],E,H)),Z(g,C+32,16843009*Ct(E,H,ue)),Z(g,C+64,16843009*Ct(H,ue,pe)),Z(g,C+96,16843009*Ct(ue,pe,pe))}function ha(g,C){var E,H=4;for(E=0;4>E;++E)H+=g[C+E-32]+g[C-1+32*E];for(H>>=3,E=0;4>E;++E)r(g,C+32*E,H,4)}function ti(g,C){var E=g[C-1+0],H=g[C-1+32],ue=g[C-1+64],pe=g[C-1-32],ye=g[C+0-32],be=g[C+1-32],ke=g[C+2-32],we=g[C+3-32];g[C+0+96]=Ct(H,ue,g[C-1+96]),g[C+1+96]=g[C+0+64]=Ct(E,H,ue),g[C+2+96]=g[C+1+64]=g[C+0+32]=Ct(pe,E,H),g[C+3+96]=g[C+2+64]=g[C+1+32]=g[C+0+0]=Ct(ye,pe,E),g[C+3+64]=g[C+2+32]=g[C+1+0]=Ct(be,ye,pe),g[C+3+32]=g[C+2+0]=Ct(ke,be,ye),g[C+3+0]=Ct(we,ke,be)}function oi(g,C){var E=g[C+1-32],H=g[C+2-32],ue=g[C+3-32],pe=g[C+4-32],ye=g[C+5-32],be=g[C+6-32],ke=g[C+7-32];g[C+0+0]=Ct(g[C+0-32],E,H),g[C+1+0]=g[C+0+32]=Ct(E,H,ue),g[C+2+0]=g[C+1+32]=g[C+0+64]=Ct(H,ue,pe),g[C+3+0]=g[C+2+32]=g[C+1+64]=g[C+0+96]=Ct(ue,pe,ye),g[C+3+32]=g[C+2+64]=g[C+1+96]=Ct(pe,ye,be),g[C+3+64]=g[C+2+96]=Ct(ye,be,ke),g[C+3+96]=Ct(be,ke,ke)}function Xr(g,C){var E=g[C-1+0],H=g[C-1+32],ue=g[C-1+64],pe=g[C-1-32],ye=g[C+0-32],be=g[C+1-32],ke=g[C+2-32],we=g[C+3-32];g[C+0+0]=g[C+1+64]=pe+ye+1>>1,g[C+1+0]=g[C+2+64]=ye+be+1>>1,g[C+2+0]=g[C+3+64]=be+ke+1>>1,g[C+3+0]=ke+we+1>>1,g[C+0+96]=Ct(ue,H,E),g[C+0+64]=Ct(H,E,pe),g[C+0+32]=g[C+1+96]=Ct(E,pe,ye),g[C+1+32]=g[C+2+96]=Ct(pe,ye,be),g[C+2+32]=g[C+3+96]=Ct(ye,be,ke),g[C+3+32]=Ct(be,ke,we)}function Pn(g,C){var E=g[C+0-32],H=g[C+1-32],ue=g[C+2-32],pe=g[C+3-32],ye=g[C+4-32],be=g[C+5-32],ke=g[C+6-32],we=g[C+7-32];g[C+0+0]=E+H+1>>1,g[C+1+0]=g[C+0+64]=H+ue+1>>1,g[C+2+0]=g[C+1+64]=ue+pe+1>>1,g[C+3+0]=g[C+2+64]=pe+ye+1>>1,g[C+0+32]=Ct(E,H,ue),g[C+1+32]=g[C+0+96]=Ct(H,ue,pe),g[C+2+32]=g[C+1+96]=Ct(ue,pe,ye),g[C+3+32]=g[C+2+96]=Ct(pe,ye,be),g[C+3+64]=Ct(ye,be,ke),g[C+3+96]=Ct(be,ke,we)}function oA(g,C){var E=g[C-1+0],H=g[C-1+32],ue=g[C-1+64],pe=g[C-1+96];g[C+0+0]=E+H+1>>1,g[C+2+0]=g[C+0+32]=H+ue+1>>1,g[C+2+32]=g[C+0+64]=ue+pe+1>>1,g[C+1+0]=Ct(E,H,ue),g[C+3+0]=g[C+1+32]=Ct(H,ue,pe),g[C+3+32]=g[C+1+64]=Ct(ue,pe,pe),g[C+3+64]=g[C+2+64]=g[C+0+96]=g[C+1+96]=g[C+2+96]=g[C+3+96]=pe}function lA(g,C){var E=g[C-1+0],H=g[C-1+32],ue=g[C-1+64],pe=g[C-1+96],ye=g[C-1-32],be=g[C+0-32],ke=g[C+1-32],we=g[C+2-32];g[C+0+0]=g[C+2+32]=E+ye+1>>1,g[C+0+32]=g[C+2+64]=H+E+1>>1,g[C+0+64]=g[C+2+96]=ue+H+1>>1,g[C+0+96]=pe+ue+1>>1,g[C+3+0]=Ct(be,ke,we),g[C+2+0]=Ct(ye,be,ke),g[C+1+0]=g[C+3+32]=Ct(E,ye,be),g[C+1+32]=g[C+3+64]=Ct(H,E,ye),g[C+1+64]=g[C+3+96]=Ct(ue,H,E),g[C+1+96]=Ct(pe,ue,H)}function aA(g,C){var E;for(E=0;8>E;++E)n(g,C+32*E,g,C-32,8)}function Hn(g,C){var E;for(E=0;8>E;++E)r(g,C,g[C-1],8),C+=32}function br(g,C,E){var H;for(H=0;8>H;++H)r(C,E+32*H,g,8)}function Pa(g,C){var E,H=8;for(E=0;8>E;++E)H+=g[C+E-32]+g[C-1+32*E];br(H>>4,g,C)}function rA(g,C){var E,H=4;for(E=0;8>E;++E)H+=g[C+E-32];br(H>>3,g,C)}function kr(g,C){var E,H=4;for(E=0;8>E;++E)H+=g[C-1+32*E];br(H>>3,g,C)}function Rn(g,C){br(128,g,C)}function qr(g,C,E){var H=g[C-E],ue=g[C+0],pe=3*(ue-H)+hA[1020+g[C-2*E]-g[C+E]],ye=di[112+(pe+4>>3)];g[C-E]=xl[255+H+di[112+(pe+3>>3)]],g[C+0]=xl[255+ue-ye]}function li(g,C,E,H){var ue=g[C+0],pe=g[C+E];return Ul[255+g[C-2*E]-g[C-E]]>H||Ul[255+pe-ue]>H}function ai(g,C,E,H){return 4*Ul[255+g[C-E]-g[C+0]]+Ul[255+g[C-2*E]-g[C+E]]<=H}function ri(g,C,E,H,ue){var pe=g[C-3*E],ye=g[C-2*E],be=g[C-E],ke=g[C+0],we=g[C+E],Ne=g[C+2*E],Ie=g[C+3*E];return 4*Ul[255+be-ke]+Ul[255+ye-we]>H?0:Ul[255+g[C-4*E]-pe]<=ue&&Ul[255+pe-ye]<=ue&&Ul[255+ye-be]<=ue&&Ul[255+Ie-Ne]<=ue&&Ul[255+Ne-we]<=ue&&Ul[255+we-ke]<=ue}function ni(g,C,E,H){var ue=2*H+1;for(H=0;16>H;++H)ai(g,C+H,E,ue)&&qr(g,C+H,E)}function Fa(g,C,E,H){var ue=2*H+1;for(H=0;16>H;++H)ai(g,C+H*E,1,ue)&&qr(g,C+H*E,1)}function Ha(g,C,E,H){var ue;for(ue=3;0<ue;--ue)ni(g,C+=4*E,E,H)}function nA(g,C,E,H){var ue;for(ue=3;0<ue;--ue)Fa(g,C+=4,E,H)}function Ra(g,C,E,H,ue,pe,ye,be){for(pe=2*pe+1;0<ue--;){if(ri(g,C,E,pe,ye))if(li(g,C,E,be))qr(g,C,E);else{var ke=g,we=C,Ne=E,Ie=ke[we-2*Ne],$e=ke[we-Ne],Le=ke[we+0],He=ke[we+Ne],Qe=ke[we+2*Ne],_e=27*(De=hA[1020+3*(Le-$e)+hA[1020+Ie-He]])+63>>7,Se=18*De+63>>7,De=9*De+63>>7;ke[we-3*Ne]=xl[255+ke[we-3*Ne]+De],ke[we-2*Ne]=xl[255+Ie+Se],ke[we-Ne]=xl[255+$e+_e],ke[we+0]=xl[255+Le-_e],ke[we+Ne]=xl[255+He-Se],ke[we+2*Ne]=xl[255+Qe-De]}C+=H}}function jl(g,C,E,H,ue,pe,ye,be){for(pe=2*pe+1;0<ue--;){if(ri(g,C,E,pe,ye))if(li(g,C,E,be))qr(g,C,E);else{var ke=g,we=C,Ne=E,Ie=ke[we-Ne],$e=ke[we+0],Le=ke[we+Ne],He=di[112+((Qe=3*($e-Ie))+4>>3)],Qe=di[112+(Qe+3>>3)],_e=He+1>>1;ke[we-2*Ne]=xl[255+ke[we-2*Ne]+_e],ke[we-Ne]=xl[255+Ie+Qe],ke[we+0]=xl[255+$e-He],ke[we+Ne]=xl[255+Le-_e]}C+=H}}function Gn(g,C,E,H,ue,pe){Ra(g,C,E,1,16,H,ue,pe)}function Cr(g,C,E,H,ue,pe){Ra(g,C,1,E,16,H,ue,pe)}function sA(g,C,E,H,ue,pe){var ye;for(ye=3;0<ye;--ye)jl(g,C+=4*E,E,1,16,H,ue,pe)}function Yr(g,C,E,H,ue,pe){var ye;for(ye=3;0<ye;--ye)jl(g,C+=4,1,E,16,H,ue,pe)}function iA(g,C,E,H,ue,pe,ye,be){Ra(g,C,ue,1,8,pe,ye,be),Ra(E,H,ue,1,8,pe,ye,be)}function Wn(g,C,E,H,ue,pe,ye,be){Ra(g,C,1,ue,8,pe,ye,be),Ra(E,H,1,ue,8,pe,ye,be)}function jn(g,C,E,H,ue,pe,ye,be){jl(g,C+4*ue,ue,1,8,pe,ye,be),jl(E,H+4*ue,ue,1,8,pe,ye,be)}function si(g,C,E,H,ue,pe,ye,be){jl(g,C+4,1,ue,8,pe,ye,be),jl(E,H+4,1,ue,8,pe,ye,be)}function Jr(){this.ba=new qe,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new dt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Kn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Xn(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ii(){this.ua=0,this.Wa=new _,this.vb=new _,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new ee,this.yc=new S}function uA(){this.xb=this.a=0,this.l=new Gr,this.ca=new qe,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new m,this.Pb=0,this.wd=new m,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ii,this.ab=0,this.gc=s(4,Xn),this.Oc=0}function Zr(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Gr,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function wr(g,C,E,H,ue,pe,ye){for(g=g==null?0:g[C+0],C=0;C<ye;++C)ue[pe+C]=g+E[H+C]&255,g=ue[pe+C]}function qn(g,C,E,H,ue,pe,ye){var be;if(g==null)wr(null,null,E,H,ue,pe,ye);else for(be=0;be<ye;++be)ue[pe+be]=g[C+be]+E[H+be]&255}function Ga(g,C,E,H,ue,pe,ye){if(g==null)wr(null,null,E,H,ue,pe,ye);else{var be,ke=g[C+0],we=ke,Ne=ke;for(be=0;be<ye;++be)we=Ne+(ke=g[C+be])-we,Ne=E[H+be]+(-256&we?0>we?0:255:we)&255,we=ke,ue[pe+be]=Ne}}function Yn(g,C,E,H){var ue=C.width,pe=C.o;if(o(g!=null&&C!=null),0>E||0>=H||E+H>pe)return null;if(!g.Cc){if(g.ga==null){var ye;if(g.ga=new Zr,(ye=g.ga==null)||(ye=C.width*C.o,o(g.Gb.length==0),g.Gb=l(ye),g.Uc=0,g.Gb==null?ye=0:(g.mb=g.Gb,g.nb=g.Uc,g.rc=null,ye=1),ye=!ye),!ye){ye=g.ga;var be=g.Fa,ke=g.P,we=g.qc,Ne=g.mb,Ie=g.nb,$e=ke+1,Le=we-1,He=ye.l;if(o(be!=null&&Ne!=null&&C!=null),Ja[0]=null,Ja[1]=wr,Ja[2]=qn,Ja[3]=Ga,ye.ca=Ne,ye.tb=Ie,ye.c=C.width,ye.i=C.height,o(0<ye.c&&0<ye.i),1>=we)C=0;else if(ye.$a=be[ke+0]>>0&3,ye.Z=be[ke+0]>>2&3,ye.Lc=be[ke+0]>>4&3,ke=be[ke+0]>>6&3,0>ye.$a||1<ye.$a||4<=ye.Z||1<ye.Lc||ke)C=0;else if(He.put=Xo,He.ac=Vt,He.bc=go,He.ma=ye,He.width=C.width,He.height=C.height,He.Da=C.Da,He.v=C.v,He.va=C.va,He.j=C.j,He.o=C.o,ye.$a)e:{o(ye.$a==1),C=Il();t:for(;;){if(C==null){C=0;break e}if(o(ye!=null),ye.mc=C,C.c=ye.c,C.i=ye.i,C.l=ye.l,C.l.ma=ye,C.l.width=ye.c,C.l.height=ye.i,C.a=0,R(C.m,be,$e,Le),!da(ye.c,ye.i,1,C,null)||(C.ab==1&&C.gc[0].hc==3&&Ba(C.s)?(ye.ic=1,be=C.c*C.i,C.Ta=null,C.Ua=0,C.V=l(be),C.Ba=0,C.V==null?(C.a=1,C=0):C=1):(ye.ic=0,C=mr(C,ye.c)),!C))break t;C=1;break e}ye.mc=null,C=0}else C=Le>=ye.c*ye.i;ye=!C}if(ye)return null;g.ga.Lc!=1?g.Ga=0:H=pe-E}o(g.ga!=null),o(E+H<=pe);e:{if(C=(be=g.ga).c,pe=be.l.o,be.$a==0){if($e=g.rc,Le=g.Vc,He=g.Fa,ke=g.P+1+E*C,we=g.mb,Ne=g.nb+E*C,o(ke<=g.P+g.qc),be.Z!=0)for(o(Ja[be.Z]!=null),ye=0;ye<H;++ye)Ja[be.Z]($e,Le,He,ke,we,Ne,C),$e=we,Le=Ne,Ne+=C,ke+=C;else for(ye=0;ye<H;++ye)n(we,Ne,He,ke,C),$e=we,Le=Ne,Ne+=C,ke+=C;g.rc=$e,g.Vc=Le}else{if(o(be.mc!=null),C=E+H,o((ye=be.mc)!=null),o(C<=ye.i),ye.C>=C)C=1;else if(be.ic||Ee(),be.ic){be=ye.V,$e=ye.Ba,Le=ye.c;var Qe=ye.i,_e=(He=1,ke=ye.$/Le,we=ye.$%Le,Ne=ye.m,Ie=ye.s,ye.$),Se=Le*Qe,De=Le*C,Re=Ie.wc,Pe=_e<De?mo(Ie,we,ke):null;o(_e<=Se),o(C<=Qe),o(Ba(Ie));t:for(;;){for(;!Ne.h&&_e<De;){if(we&Re||(Pe=mo(Ie,we,ke)),o(Pe!=null),Y(Ne),256>(Qe=$o(Pe.G[0],Pe.H[0],Ne)))be[$e+_e]=Qe,++_e,++we>=Le&&(we=0,++ke<=C&&!(ke%16)&&Rl(ye,ke));else{if(!(280>Qe)){He=0;break t}Qe=Ht(Qe-256,Ne);var lt,Ze=$o(Pe.G[4],Pe.H[4],Ne);if(Y(Ne),!(_e>=(Ze=el(Le,Ze=Ht(Ze,Ne)))&&Se-_e>=Qe)){He=0;break t}for(lt=0;lt<Qe;++lt)be[$e+_e+lt]=be[$e+_e+lt-Ze];for(_e+=Qe,we+=Qe;we>=Le;)we-=Le,++ke<=C&&!(ke%16)&&Rl(ye,ke);_e<De&&we&Re&&(Pe=mo(Ie,we,ke))}o(Ne.h==x(Ne))}Rl(ye,ke>C?C:ke);break t}!He||Ne.h&&_e<Se?(He=0,ye.a=Ne.h?5:3):ye.$=_e,C=He}else C=Gl(ye,ye.V,ye.Ba,ye.c,ye.i,C,zr);if(!C){H=0;break e}}E+H>=pe&&(g.Cc=1),H=1}if(!H)return null;if(g.Cc&&((H=g.ga)!=null&&(H.mc=null),g.ga=null,0<g.Ga))return alert("todo:WebPDequantizeLevels"),null}return g.nb+E*ue}function F(g,C,E,H,ue,pe){for(;0<ue--;){var ye,be=g,ke=C+(E?1:0),we=g,Ne=C+(E?0:3);for(ye=0;ye<H;++ye){var Ie=we[Ne+4*ye];Ie!=255&&(Ie*=32897,be[ke+4*ye+0]=be[ke+4*ye+0]*Ie>>23,be[ke+4*ye+1]=be[ke+4*ye+1]*Ie>>23,be[ke+4*ye+2]=be[ke+4*ye+2]*Ie>>23)}C+=pe}}function de(g,C,E,H,ue){for(;0<H--;){var pe;for(pe=0;pe<E;++pe){var ye=g[C+2*pe+0],be=15&(we=g[C+2*pe+1]),ke=4369*be,we=(240&we|we>>4)*ke>>16;g[C+2*pe+0]=(240&ye|ye>>4)*ke>>16&240|(15&ye|ye<<4)*ke>>16>>4&15,g[C+2*pe+1]=240&we|be}C+=ue}}function Be(g,C,E,H,ue,pe,ye,be){var ke,we,Ne=255;for(we=0;we<ue;++we){for(ke=0;ke<H;++ke){var Ie=g[C+ke];pe[ye+4*ke]=Ie,Ne&=Ie}C+=E,ye+=be}return Ne!=255}function Fe(g,C,E,H,ue){var pe;for(pe=0;pe<ue;++pe)E[H+pe]=g[C+pe]>>8}function Ee(){qa=F,un=de,ci=Be,id=Fe}function Te(g,C,E){b[g]=function(H,ue,pe,ye,be,ke,we,Ne,Ie,$e,Le,He,Qe,_e,Se,De,Re){var Pe,lt=Re-1>>1,Ze=be[ke+0]|we[Ne+0]<<16,gt=Ie[$e+0]|Le[He+0]<<16;o(H!=null);var et=3*Ze+gt+131074>>2;for(C(H[ue+0],255&et,et>>16,Qe,_e),pe!=null&&(et=3*gt+Ze+131074>>2,C(pe[ye+0],255&et,et>>16,Se,De)),Pe=1;Pe<=lt;++Pe){var Rt=be[ke+Pe]|we[Ne+Pe]<<16,Yt=Ie[$e+Pe]|Le[He+Pe]<<16,Ot=Ze+Rt+gt+Yt+524296,$t=Ot+2*(Rt+gt)>>3;et=$t+Ze>>1,Ze=(Ot=Ot+2*(Ze+Yt)>>3)+Rt>>1,C(H[ue+2*Pe-1],255&et,et>>16,Qe,_e+(2*Pe-1)*E),C(H[ue+2*Pe-0],255&Ze,Ze>>16,Qe,_e+(2*Pe-0)*E),pe!=null&&(et=Ot+gt>>1,Ze=$t+Yt>>1,C(pe[ye+2*Pe-1],255&et,et>>16,Se,De+(2*Pe-1)*E),C(pe[ye+2*Pe+0],255&Ze,Ze>>16,Se,De+(2*Pe+0)*E)),Ze=Rt,gt=Yt}1&Re||(et=3*Ze+gt+131074>>2,C(H[ue+Re-1],255&et,et>>16,Qe,_e+(Re-1)*E),pe!=null&&(et=3*gt+Ze+131074>>2,C(pe[ye+Re-1],255&et,et>>16,Se,De+(Re-1)*E)))}}function Ke(){Vl[hi]=r1,Vl[fi]=md,Vl[fd]=n1,Vl[vi]=bd,Vl[gi]=kd,Vl[fA]=Cd,Vl[vd]=s1,Vl[vA]=md,Vl[gA]=bd,Vl[pi]=kd,Vl[pA]=Cd}function ot(g){return g&~i1?0>g?0:255:g>>wd}function ht(g,C){return ot((19077*g>>8)+(26149*C>>8)-14234)}function Bt(g,C,E){return ot((19077*g>>8)-(6419*C>>8)-(13320*E>>8)+8708)}function _t(g,C){return ot((19077*g>>8)+(33050*C>>8)-17685)}function Qt(g,C,E,H,ue){H[ue+0]=ht(g,E),H[ue+1]=Bt(g,C,E),H[ue+2]=_t(g,C)}function po(g,C,E,H,ue){H[ue+0]=_t(g,C),H[ue+1]=Bt(g,C,E),H[ue+2]=ht(g,E)}function bo(g,C,E,H,ue){var pe=Bt(g,C,E);C=pe<<3&224|_t(g,C)>>3,H[ue+0]=248&ht(g,E)|pe>>5,H[ue+1]=C}function Mo(g,C,E,H,ue){var pe=240&_t(g,C)|15;H[ue+0]=240&ht(g,E)|Bt(g,C,E)>>4,H[ue+1]=pe}function ol(g,C,E,H,ue){H[ue+0]=255,Qt(g,C,E,H,ue+1)}function Po(g,C,E,H,ue){po(g,C,E,H,ue),H[ue+3]=255}function Kl(g,C,E,H,ue){Qt(g,C,E,H,ue),H[ue+3]=255}function Bl(g,C){return 0>g?0:g>C?C:g}function Na(g,C,E){b[g]=function(H,ue,pe,ye,be,ke,we,Ne,Ie){for(var $e=Ne+(-2&Ie)*E;Ne!=$e;)C(H[ue+0],pe[ye+0],be[ke+0],we,Ne),C(H[ue+1],pe[ye+0],be[ke+0],we,Ne+E),ue+=2,++ye,++ke,Ne+=2*E;1&Ie&&C(H[ue+0],pe[ye+0],be[ke+0],we,Ne)}}function ui(g,C,E){return E==0?g==0?C==0?6:5:C==0?4:0:E}function Jn(g,C,E,H,ue){switch(g>>>30){case 3:nn(C,E,H,ue,0);break;case 2:rs(C,E,H,ue);break;case 1:Jl(C,E,H,ue)}}function Zn(g,C){var E,H,ue=C.M,pe=C.Nb,ye=g.oc,be=g.pc+40,ke=g.oc,we=g.pc+584,Ne=g.oc,Ie=g.pc+600;for(E=0;16>E;++E)ye[be+32*E-1]=129;for(E=0;8>E;++E)ke[we+32*E-1]=129,Ne[Ie+32*E-1]=129;for(0<ue?ye[be-1-32]=ke[we-1-32]=Ne[Ie-1-32]=129:(r(ye,be-32-1,127,21),r(ke,we-32-1,127,9),r(Ne,Ie-32-1,127,9)),H=0;H<g.za;++H){var $e=C.ya[C.aa+H];if(0<H){for(E=-1;16>E;++E)n(ye,be+32*E-4,ye,be+32*E+12,4);for(E=-1;8>E;++E)n(ke,we+32*E-4,ke,we+32*E+4,4),n(Ne,Ie+32*E-4,Ne,Ie+32*E+4,4)}var Le=g.Gd,He=g.Hd+H,Qe=$e.ad,_e=$e.Hc;if(0<ue&&(n(ye,be-32,Le[He].y,0,16),n(ke,we-32,Le[He].f,0,8),n(Ne,Ie-32,Le[He].ea,0,8)),$e.Za){var Se=ye,De=be-32+16;for(0<ue&&(H>=g.za-1?r(Se,De,Le[He].y[15],4):n(Se,De,Le[He+1].y,0,4)),E=0;4>E;E++)Se[De+128+E]=Se[De+256+E]=Se[De+384+E]=Se[De+0+E];for(E=0;16>E;++E,_e<<=2)Se=ye,De=be+xd[E],Zl[$e.Ob[E]](Se,De),Jn(_e,Qe,16*+E,Se,De)}else if(Se=ui(H,ue,$e.Ob[0]),Ya[Se](ye,be),_e!=0)for(E=0;16>E;++E,_e<<=2)Jn(_e,Qe,16*+E,ye,be+xd[E]);for(E=$e.Gc,Se=ui(H,ue,$e.Dd),Ia[Se](ke,we),Ia[Se](Ne,Ie),_e=Qe,Se=ke,De=we,255&($e=E>>0)&&(170&$e?Ka(_e,256,Se,De):Sa(_e,256,Se,De)),$e=Ne,_e=Ie,255&(E>>=8)&&(170&E?Ka(Qe,320,$e,_e):Sa(Qe,320,$e,_e)),ue<g.Ub-1&&(n(Le[He].y,0,ye,be+480,16),n(Le[He].f,0,ke,we+224,8),n(Le[He].ea,0,Ne,Ie+224,8)),E=8*pe*g.B,Le=g.sa,He=g.ta+16*H+16*pe*g.R,Qe=g.qa,$e=g.ra+8*H+E,_e=g.Ha,Se=g.Ia+8*H+E,E=0;16>E;++E)n(Le,He+E*g.R,ye,be+32*E,16);for(E=0;8>E;++E)n(Qe,$e+E*g.B,ke,we+32*E,8),n(_e,Se+E*g.B,Ne,Ie+32*E,8)}}function en(g,C,E,H,ue,pe,ye,be,ke){var we=[0],Ne=[0],Ie=0,$e=ke!=null?ke.kd:0,Le=ke??new Kn;if(g==null||12>E)return 7;Le.data=g,Le.w=C,Le.ha=E,C=[C],E=[E],Le.gb=[Le.gb];e:{var He=C,Qe=E,_e=Le.gb;if(o(g!=null),o(Qe!=null),o(_e!=null),_e[0]=0,12<=Qe[0]&&!a(g,He[0],"RIFF")){if(a(g,He[0]+8,"WEBP")){_e=3;break e}var Se=P(g,He[0]+4);if(12>Se||4294967286<Se){_e=3;break e}if($e&&Se>Qe[0]-8){_e=7;break e}_e[0]=Se,He[0]+=12,Qe[0]-=12}_e=0}if(_e!=0)return _e;for(Se=0<Le.gb[0],E=E[0];;){e:{var De=g;Qe=C,_e=E;var Re=we,Pe=Ne,lt=He=[0];if((et=Ie=[Ie])[0]=0,8>_e[0])_e=7;else{if(!a(De,Qe[0],"VP8X")){if(P(De,Qe[0]+4)!=10){_e=3;break e}if(18>_e[0]){_e=7;break e}var Ze=P(De,Qe[0]+8),gt=1+z(De,Qe[0]+12);if(2147483648<=gt*(De=1+z(De,Qe[0]+15))){_e=3;break e}lt!=null&&(lt[0]=Ze),Re!=null&&(Re[0]=gt),Pe!=null&&(Pe[0]=De),Qe[0]+=18,_e[0]-=18,et[0]=1}_e=0}}if(Ie=Ie[0],He=He[0],_e!=0)return _e;if(Qe=!!(2&He),!Se&&Ie)return 3;if(pe!=null&&(pe[0]=!!(16&He)),ye!=null&&(ye[0]=Qe),be!=null&&(be[0]=0),ye=we[0],He=Ne[0],Ie&&Qe&&ke==null){_e=0;break}if(4>E){_e=7;break}if(Se&&Ie||!Se&&!Ie&&!a(g,C[0],"ALPH")){E=[E],Le.na=[Le.na],Le.P=[Le.P],Le.Sa=[Le.Sa];e:{Ze=g,_e=C,Se=E;var et=Le.gb;Re=Le.na,Pe=Le.P,lt=Le.Sa,gt=22,o(Ze!=null),o(Se!=null),De=_e[0];var Rt=Se[0];for(o(Re!=null),o(lt!=null),Re[0]=null,Pe[0]=null,lt[0]=0;;){if(_e[0]=De,Se[0]=Rt,8>Rt){_e=7;break e}var Yt=P(Ze,De+4);if(4294967286<Yt){_e=3;break e}var Ot=8+Yt+1&-2;if(gt+=Ot,0<et&&gt>et){_e=3;break e}if(!a(Ze,De,"VP8 ")||!a(Ze,De,"VP8L")){_e=0;break e}if(Rt[0]<Ot){_e=7;break e}a(Ze,De,"ALPH")||(Re[0]=Ze,Pe[0]=De+8,lt[0]=Yt),De+=Ot,Rt-=Ot}}if(E=E[0],Le.na=Le.na[0],Le.P=Le.P[0],Le.Sa=Le.Sa[0],_e!=0)break}E=[E],Le.Ja=[Le.Ja],Le.xa=[Le.xa];e:if(et=g,_e=C,Se=E,Re=Le.gb[0],Pe=Le.Ja,lt=Le.xa,Ze=_e[0],De=!a(et,Ze,"VP8 "),gt=!a(et,Ze,"VP8L"),o(et!=null),o(Se!=null),o(Pe!=null),o(lt!=null),8>Se[0])_e=7;else{if(De||gt){if(et=P(et,Ze+4),12<=Re&&et>Re-12){_e=3;break e}if($e&&et>Se[0]-8){_e=7;break e}Pe[0]=et,_e[0]+=8,Se[0]-=8,lt[0]=gt}else lt[0]=5<=Se[0]&&et[Ze+0]==47&&!(et[Ze+4]>>5),Pe[0]=Se[0];_e=0}if(E=E[0],Le.Ja=Le.Ja[0],Le.xa=Le.xa[0],C=C[0],_e!=0)break;if(4294967286<Le.Ja)return 3;if(be==null||Qe||(be[0]=Le.xa?2:1),ye=[ye],He=[He],Le.xa){if(5>E){_e=7;break}be=ye,$e=He,Qe=pe,g==null||5>E?g=0:5<=E&&g[C+0]==47&&!(g[C+4]>>5)?(Se=[0],et=[0],Re=[0],R(Pe=new m,g,C,E),ut(Pe,Se,et,Re)?(be!=null&&(be[0]=Se[0]),$e!=null&&($e[0]=et[0]),Qe!=null&&(Qe[0]=Re[0]),g=1):g=0):g=0}else{if(10>E){_e=7;break}be=He,g==null||10>E||!js(g,C+3,E-3)?g=0:($e=g[C+0]|g[C+1]<<8|g[C+2]<<16,Qe=16383&(g[C+7]<<8|g[C+6]),g=16383&(g[C+9]<<8|g[C+8]),1&$e||3<($e>>1&7)||!($e>>4&1)||$e>>5>=Le.Ja||!Qe||!g?g=0:(ye&&(ye[0]=Qe),be&&(be[0]=g),g=1))}if(!g||(ye=ye[0],He=He[0],Ie&&(we[0]!=ye||Ne[0]!=He)))return 3;ke!=null&&(ke[0]=Le,ke.offset=C-ke.w,o(4294967286>C-ke.w),o(ke.offset==ke.ha-E));break}return _e==0||_e==7&&Ie&&ke==null?(pe!=null&&(pe[0]|=Le.na!=null&&0<Le.na.length),H!=null&&(H[0]=ye),ue!=null&&(ue[0]=He),0):_e}function es(g,C,E){var H=C.width,ue=C.height,pe=0,ye=0,be=H,ke=ue;if(C.Da=g!=null&&0<g.Da,C.Da&&(be=g.cd,ke=g.bd,pe=g.v,ye=g.j,11>E||(pe&=-2,ye&=-2),0>pe||0>ye||0>=be||0>=ke||pe+be>H||ye+ke>ue))return 0;if(C.v=pe,C.j=ye,C.va=pe+be,C.o=ye+ke,C.U=be,C.T=ke,C.da=g!=null&&0<g.da,C.da){if(!X(be,ke,E=[g.ib],pe=[g.hb]))return 0;C.ib=E[0],C.hb=pe[0]}return C.ob=g!=null&&g.ob,C.Kb=g==null||!g.Sd,C.da&&(C.ob=C.ib<3*H/4&&C.hb<3*ue/4,C.Kb=0),1}function ts(g){if(g==null)return 2;if(11>g.S){var C=g.f.RGBA;C.fb+=(g.height-1)*C.A,C.A=-C.A}else C=g.f.kb,g=g.height,C.O+=(g-1)*C.fa,C.fa=-C.fa,C.N+=(g-1>>1)*C.Ab,C.Ab=-C.Ab,C.W+=(g-1>>1)*C.Db,C.Db=-C.Db,C.F!=null&&(C.J+=(g-1)*C.lb,C.lb=-C.lb);return 0}function tn(g,C,E,H){if(H==null||0>=g||0>=C)return 2;if(E!=null){if(E.Da){var ue=E.cd,pe=E.bd,ye=-2&E.v,be=-2&E.j;if(0>ye||0>be||0>=ue||0>=pe||ye+ue>g||be+pe>C)return 2;g=ue,C=pe}if(E.da){if(!X(g,C,ue=[E.ib],pe=[E.hb]))return 2;g=ue[0],C=pe[0]}}H.width=g,H.height=C;e:{var ke=H.width,we=H.height;if(g=H.S,0>=ke||0>=we||!(g>=hi&&13>g))g=2;else{if(0>=H.Rd&&H.sd==null){ye=pe=ue=C=0;var Ne=(be=ke*Fd[g])*we;if(11>g||(pe=(we+1)/2*(C=(ke+1)/2),g==12&&(ye=(ue=ke)*we)),(we=l(Ne+2*pe+ye))==null){g=1;break e}H.sd=we,11>g?((ke=H.f.RGBA).eb=we,ke.fb=0,ke.A=be,ke.size=Ne):((ke=H.f.kb).y=we,ke.O=0,ke.fa=be,ke.Fd=Ne,ke.f=we,ke.N=0+Ne,ke.Ab=C,ke.Cd=pe,ke.ea=we,ke.W=0+Ne+pe,ke.Db=C,ke.Ed=pe,g==12&&(ke.F=we,ke.J=0+Ne+2*pe),ke.Tc=ye,ke.lb=ue)}if(C=1,ue=H.S,pe=H.width,ye=H.height,ue>=hi&&13>ue)if(11>ue)g=H.f.RGBA,C&=(be=Math.abs(g.A))*(ye-1)+pe<=g.size,C&=be>=pe*Fd[ue],C&=g.eb!=null;else{g=H.f.kb,be=(pe+1)/2,Ne=(ye+1)/2,ke=Math.abs(g.fa),we=Math.abs(g.Ab);var Ie=Math.abs(g.Db),$e=Math.abs(g.lb),Le=$e*(ye-1)+pe;C&=ke*(ye-1)+pe<=g.Fd,C&=we*(Ne-1)+be<=g.Cd,C=(C&=Ie*(Ne-1)+be<=g.Ed)&ke>=pe&we>=be&Ie>=be,C&=g.y!=null,C&=g.f!=null,C&=g.ea!=null,ue==12&&(C&=$e>=pe,C&=Le<=g.Tc,C&=g.F!=null)}else C=0;g=C?0:2}}return g!=0||E!=null&&E.fd&&(g=ts(H)),g}var vl=64,on=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],ln=24,an=32,os=8,gl=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];ae("Predictor0","PredictorAdd0"),b.Predictor0=function(){return 4278190080},b.Predictor1=function(g){return g},b.Predictor2=function(g,C,E){return C[E+0]},b.Predictor3=function(g,C,E){return C[E+1]},b.Predictor4=function(g,C,E){return C[E-1]},b.Predictor5=function(g,C,E){return G(G(g,C[E+1]),C[E+0])},b.Predictor6=function(g,C,E){return G(g,C[E-1])},b.Predictor7=function(g,C,E){return G(g,C[E+0])},b.Predictor8=function(g,C,E){return G(C[E-1],C[E+0])},b.Predictor9=function(g,C,E){return G(C[E+0],C[E+1])},b.Predictor10=function(g,C,E){return G(G(g,C[E-1]),G(C[E+0],C[E+1]))},b.Predictor11=function(g,C,E){var H=C[E+0];return 0>=se(H>>24&255,g>>24&255,(C=C[E-1])>>24&255)+se(H>>16&255,g>>16&255,C>>16&255)+se(H>>8&255,g>>8&255,C>>8&255)+se(255&H,255&g,255&C)?H:g},b.Predictor12=function(g,C,E){var H=C[E+0];return(re((g>>24&255)+(H>>24&255)-((C=C[E-1])>>24&255))<<24|re((g>>16&255)+(H>>16&255)-(C>>16&255))<<16|re((g>>8&255)+(H>>8&255)-(C>>8&255))<<8|re((255&g)+(255&H)-(255&C)))>>>0},b.Predictor13=function(g,C,E){var H=C[E-1];return(Ae((g=G(g,C[E+0]))>>24&255,H>>24&255)<<24|Ae(g>>16&255,H>>16&255)<<16|Ae(g>>8&255,H>>8&255)<<8|Ae(g>>0&255,H>>0&255))>>>0};var AA=b.PredictorAdd0;b.PredictorAdd1=ve,ae("Predictor2","PredictorAdd2"),ae("Predictor3","PredictorAdd3"),ae("Predictor4","PredictorAdd4"),ae("Predictor5","PredictorAdd5"),ae("Predictor6","PredictorAdd6"),ae("Predictor7","PredictorAdd7"),ae("Predictor8","PredictorAdd8"),ae("Predictor9","PredictorAdd9"),ae("Predictor10","PredictorAdd10"),ae("Predictor11","PredictorAdd11"),ae("Predictor12","PredictorAdd12"),ae("Predictor13","PredictorAdd13");var ls=b.PredictorAdd2;Ye("ColorIndexInverseTransform","MapARGB","32b",function(g){return g>>8&255},function(g){return g}),Ye("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(g){return g},function(g){return g>>8&255});var Ai,Xl=b.ColorIndexInverseTransform,as=b.MapARGB,cA=b.VP8LColorIndexInverseTransformAlpha,dA=b.MapAlpha,Wa=b.VP8LPredictorsAdd=[];Wa.length=16,(b.VP8LPredictors=[]).length=16,(b.VP8LPredictorsAdd_C=[]).length=16,(b.VP8LPredictors_C=[]).length=16;var $l,ql,ja,fa,_a,rn,Yl,nn,rs,Ka,Jl,Sa,Br,sn,xr,Xa,ns,Ml,La,io,uo,No,zo,Ea,qa,un,ci,id,ud=l(511),Ad=l(2041),cd=l(225),dd=l(767),hd=0,hA=Ad,di=cd,xl=dd,Ul=ud,hi=0,fi=1,fd=2,vi=3,gi=4,fA=5,vd=6,vA=7,gA=8,pi=9,pA=10,Gg=[2,3,7],Wg=[3,3,11],gd=[280,256,256,256,40],jg=[0,1,1,1,0],Kg=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Xg=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],qg=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Yg=8,yA=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],mA=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ss=null,Jg=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Zg=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],pd=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],e1=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],t1=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],o1=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],l1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Ya=[],Zl=[],Ia=[],a1=1,yd=2,Ja=[],Vl=[];Te("UpsampleRgbLinePair",Qt,3),Te("UpsampleBgrLinePair",po,3),Te("UpsampleRgbaLinePair",Kl,4),Te("UpsampleBgraLinePair",Po,4),Te("UpsampleArgbLinePair",ol,4),Te("UpsampleRgba4444LinePair",Mo,2),Te("UpsampleRgb565LinePair",bo,2);var r1=b.UpsampleRgbLinePair,n1=b.UpsampleBgrLinePair,md=b.UpsampleRgbaLinePair,bd=b.UpsampleBgraLinePair,kd=b.UpsampleArgbLinePair,Cd=b.UpsampleRgba4444LinePair,s1=b.UpsampleRgb565LinePair,yi=16,mi=1<<yi-1,is=-227,bA=482,wd=6,i1=(256<<wd)-1,Bd=0,u1=l(256),A1=l(256),c1=l(256),d1=l(256),h1=l(bA-is),f1=l(bA-is);Na("YuvToRgbRow",Qt,3),Na("YuvToBgrRow",po,3),Na("YuvToRgbaRow",Kl,4),Na("YuvToBgraRow",Po,4),Na("YuvToArgbRow",ol,4),Na("YuvToRgba4444Row",Mo,2),Na("YuvToRgb565Row",bo,2);var xd=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],bi=[0,2,8],v1=[8,7,6,4,4,2,2,2,1,1,1,1],g1=1;this.WebPDecodeRGBA=function(g,C,E,H,ue){var pe=fi,ye=new Jr,be=new qe;ye.ba=be,be.S=pe,be.width=[be.width],be.height=[be.height];var ke=be.width,we=be.height,Ne=new mt;if(Ne==null||g==null)var Ie=2;else o(Ne!=null),Ie=en(g,C,E,Ne.width,Ne.height,Ne.Pd,Ne.Qd,Ne.format,null);if(Ie!=0?ke=0:(ke!=null&&(ke[0]=Ne.width[0]),we!=null&&(we[0]=Ne.height[0]),ke=1),ke){be.width=be.width[0],be.height=be.height[0],H!=null&&(H[0]=be.width),ue!=null&&(ue[0]=be.height);e:{if(H=new Gr,(ue=new Kn).data=g,ue.w=C,ue.ha=E,ue.kd=1,C=[0],o(ue!=null),((g=en(ue.data,ue.w,ue.ha,null,null,null,C,null,ue))==0||g==7)&&C[0]&&(g=4),(C=g)==0){if(o(ye!=null),H.data=ue.data,H.w=ue.w+ue.offset,H.ha=ue.ha-ue.offset,H.put=Xo,H.ac=Vt,H.bc=go,H.ma=ye,ue.xa){if((g=Il())==null){ye=1;break e}if(function($e,Le){var He=[0],Qe=[0],_e=[0];t:for(;;){if($e==null)return 0;if(Le==null)return $e.a=2,0;if($e.l=Le,$e.a=0,R($e.m,Le.data,Le.w,Le.ha),!ut($e.m,He,Qe,_e)){$e.a=3;break t}if($e.xb=yd,Le.width=He[0],Le.height=Qe[0],!da(He[0],Qe[0],1,$e,null))break t;return 1}return o($e.a!=0),0}(g,H)){if(H=(C=tn(H.width,H.height,ye.Oa,ye.ba))==0){t:{H=g;o:for(;;){if(H==null){H=0;break t}if(o(H.s.yc!=null),o(H.s.Ya!=null),o(0<H.s.Wb),o((E=H.l)!=null),o((ue=E.ma)!=null),H.xb!=0){if(H.ca=ue.ba,H.tb=ue.tb,o(H.ca!=null),!es(ue.Oa,E,vi)){H.a=2;break o}if(!mr(H,E.width)||E.da)break o;if((E.da||Ut(H.ca.S))&&Ee(),11>H.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),H.ca.f.kb.F!=null&&Ee()),H.Pb&&0<H.s.ua&&H.s.vb.X==null&&!ge(H.s.vb,H.s.Wa.Xa)){H.a=1;break o}H.xb=0}if(!Gl(H,H.V,H.Ba,H.c,H.i,E.o,Or))break o;ue.Dc=H.Ma,H=1;break t}o(H.a!=0),H=0}H=!H}H&&(C=g.a)}else C=g.a}else{if((g=new Gu)==null){ye=1;break e}if(g.Fa=ue.na,g.P=ue.P,g.qc=ue.Sa,Ks(g,H)){if((C=tn(H.width,H.height,ye.Oa,ye.ba))==0){if(g.Aa=0,E=ye.Oa,o((ue=g)!=null),E!=null){if(0<(ke=0>(ke=E.Md)?0:100<ke?255:255*ke/100)){for(we=Ne=0;4>we;++we)12>(Ie=ue.pb[we]).lc&&(Ie.ia=ke*v1[0>Ie.lc?0:Ie.lc]>>3),Ne|=Ie.ia;Ne&&(alert("todo:VP8InitRandom"),ue.ia=1)}ue.Ga=E.Id,100<ue.Ga?ue.Ga=100:0>ue.Ga&&(ue.Ga=0)}Wu(g,H)||(C=g.a)}}else C=g.a}C==0&&ye.Oa!=null&&ye.Oa.fd&&(C=ts(ye.ba))}ye=C}pe=ye!=0?null:11>pe?be.f.RGBA.eb:be.f.kb.y}else pe=null;return pe};var Fd=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function f(b,V){for(var te="",I=0;I<4;I++)te+=String.fromCharCode(b[V++]);return te}function c(b,V){return(b[V+0]<<0|b[V+1]<<8|b[V+2]<<16)>>>0}function p(b,V){return(b[V+0]<<0|b[V+1]<<8|b[V+2]<<16|b[V+3]<<24)>>>0}new h;var w=[0],A=[0],k=[],y=new h,i=t,v=function(b,V){var te={},I=0,S=!1,j=0,ee=0;if(te.frames=[],!function(N,x,Q,Y){for(var me=0;me<Y;me++)if(N[x+me]!=Q.charCodeAt(me))return!0;return!1}(b,V,"RIFF",4)){var le,he;for(p(b,V+=4),V+=8;V<b.length;){var oe=f(b,V),R=p(b,V+=4);V+=4;var D=R+(1&R);switch(oe){case"VP8 ":case"VP8L":te.frames[I]===void 0&&(te.frames[I]={}),(m=te.frames[I]).src_off=S?ee:V-8,m.src_size=j+R+8,I++,S&&(S=!1,j=0,ee=0);break;case"VP8X":(m=te.header={}).feature_flags=b[V];var K=V+4;m.canvas_width=1+c(b,K),K+=3,m.canvas_height=1+c(b,K),K+=3;break;case"ALPH":S=!0,j=D+8,ee=V-8;break;case"ANIM":(m=te.header).bgcolor=p(b,V),K=V+4,m.loop_count=(le=b)[(he=K)+0]<<0|le[he+1]<<8,K+=2;break;case"ANMF":var q,m;(m=te.frames[I]={}).offset_x=2*c(b,V),V+=3,m.offset_y=2*c(b,V),V+=3,m.width=1+c(b,V),V+=3,m.height=1+c(b,V),V+=3,m.duration=c(b,V),V+=3,q=b[V++],m.dispose=1&q,m.blend=q>>1&1}oe!="ANMF"&&(V+=D)}return te}}(i,0);v.response=i,v.rgbaoutput=!0,v.dataurl=!1;var B=v.header?v.header:null,U=v.frames?v.frames:null;if(B){B.loop_counter=B.loop_count,w=[B.canvas_height],A=[B.canvas_width];for(var $=0;$<U.length&&U[$].blend!=0;$++);}var T=U[0],W=y.WebPDecodeRGBA(i,T.src_off,T.src_size,A,w);T.rgba=W,T.imgwidth=A[0],T.imgheight=w[0];for(var L=0;L<A[0]*w[0]*4;L++)k[L]=W[L];return this.width=A,this.height=w,this.data=k,this}(function(t){var o=function(){return typeof Vc=="function"},a=function(w,A,k,y){var i=4,v=s;switch(y){case t.image_compression.FAST:i=1,v=l;break;case t.image_compression.MEDIUM:i=6,v=u;break;case t.image_compression.SLOW:i=9,v=h}w=n(w,A,k,v);var B=Vc(w,{level:i});return t.__addimage__.arrayBufferToBinaryString(B)},n=function(w,A,k,y){for(var i,v,B,U=w.length/A,$=new Uint8Array(w.length+U),T=c(),W=0;W<U;W+=1){if(B=W*A,i=w.subarray(B,B+A),y)$.set(y(i,k,v),B+W);else{for(var L,b=T.length,V=[];L<b;L+=1)V[L]=T[L](i,k,v);var te=p(V.concat());$.set(V[te],B+W)}v=i}return $},r=function(w){var A=Array.apply([],w);return A.unshift(0),A},l=function(w,A){var k,y=[],i=w.length;y[0]=1;for(var v=0;v<i;v+=1)k=w[v-A]||0,y[v+1]=w[v]-k+256&255;return y},s=function(w,A,k){var y,i=[],v=w.length;i[0]=2;for(var B=0;B<v;B+=1)y=k&&k[B]||0,i[B+1]=w[B]-y+256&255;return i},u=function(w,A,k){var y,i,v=[],B=w.length;v[0]=3;for(var U=0;U<B;U+=1)y=w[U-A]||0,i=k&&k[U]||0,v[U+1]=w[U]+256-(y+i>>>1)&255;return v},h=function(w,A,k){var y,i,v,B,U=[],$=w.length;U[0]=4;for(var T=0;T<$;T+=1)y=w[T-A]||0,i=k&&k[T]||0,v=k&&k[T-A]||0,B=f(y,i,v),U[T+1]=w[T]-B+256&255;return U},f=function(w,A,k){if(w===A&&A===k)return w;var y=Math.abs(A-k),i=Math.abs(w-k),v=Math.abs(w+A-k-k);return y<=i&&y<=v?w:i<=v?A:k},c=function(){return[r,l,s,u,h]},p=function(w){var A=w.map(function(k){return k.reduce(function(y,i){return y+Math.abs(i)},0)});return A.indexOf(Math.min.apply(null,A))};t.processPNG=function(w,A,k,y){var i,v,B,U,$,T,W,L,b,V,te,I,S,j,ee,le=this.decode.FLATE_DECODE,he="";if(this.__addimage__.isArrayBuffer(w)&&(w=new Uint8Array(w)),this.__addimage__.isArrayBufferView(w)){if(w=(B=new Ik(w)).imgData,v=B.bits,i=B.colorSpace,$=B.colors,[4,6].indexOf(B.colorType)!==-1){if(B.bits===8){b=(L=B.pixelBitlength==32?new Uint32Array(B.decodePixels().buffer):B.pixelBitlength==16?new Uint16Array(B.decodePixels().buffer):new Uint8Array(B.decodePixels().buffer)).length,te=new Uint8Array(b*B.colors),V=new Uint8Array(b);var oe,R=B.pixelBitlength-B.bits;for(j=0,ee=0;j<b;j++){for(S=L[j],oe=0;oe<R;)te[ee++]=S>>>oe&255,oe+=B.bits;V[j]=S>>>oe&255}}if(B.bits===16){b=(L=new Uint32Array(B.decodePixels().buffer)).length,te=new Uint8Array(b*(32/B.pixelBitlength)*B.colors),V=new Uint8Array(b*(32/B.pixelBitlength)),I=B.colors>1,j=0,ee=0;for(var D=0;j<b;)S=L[j++],te[ee++]=S>>>0&255,I&&(te[ee++]=S>>>16&255,S=L[j++],te[ee++]=S>>>0&255),V[D++]=S>>>16&255;v=8}y!==t.image_compression.NONE&&o()?(w=a(te,B.width*B.colors,B.colors,y),W=a(V,B.width,1,y)):(w=te,W=V,le=void 0)}if(B.colorType===3&&(i=this.color_spaces.INDEXED,T=B.palette,B.transparency.indexed)){var K=B.transparency.indexed,q=0;for(j=0,b=K.length;j<b;++j)q+=K[j];if((q/=255)===b-1&&K.indexOf(0)!==-1)U=[K.indexOf(0)];else if(q!==b){for(L=B.decodePixels(),V=new Uint8Array(L.length),j=0,b=L.length;j<b;j++)V[j]=K[L[j]];W=a(V,B.width,1)}}var m=function(N){var x;switch(N){case t.image_compression.FAST:x=11;break;case t.image_compression.MEDIUM:x=13;break;case t.image_compression.SLOW:x=14;break;default:x=12}return x}(y);return le===this.decode.FLATE_DECODE&&(he="/Predictor "+m+" "),he+="/Colors "+$+" /BitsPerComponent "+v+" /Columns "+B.width,(this.__addimage__.isArrayBuffer(w)||this.__addimage__.isArrayBufferView(w))&&(w=this.__addimage__.arrayBufferToBinaryString(w)),(W&&this.__addimage__.isArrayBuffer(W)||this.__addimage__.isArrayBufferView(W))&&(W=this.__addimage__.arrayBufferToBinaryString(W)),{alias:k,data:w,index:A,filter:le,decodeParameters:he,transparency:U,palette:T,sMask:W,predictor:m,width:B.width,height:B.height,bitsPerComponent:v,colorSpace:i}}}})(pt.API),function(t){t.processGIF89A=function(o,a,n,r){var l=new $k(o),s=l.width,u=l.height,h=[];l.decodeAndBlitFrameRGBA(0,h);var f={data:h,width:s,height:u},c=new rc(100).encode(f,100);return t.processJPEG.call(this,c,a,n,r)},t.processGIF87A=t.processGIF89A}(pt.API),oa.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var o=0;o<t;o++){var a=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0);this.palette[o]={red:r,green:n,blue:a,quad:l}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},oa.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,o=this.width*this.height*4;this.data=new Uint8Array(o),this[t]()}catch(a){no.log("bit decode error:"+a)}},oa.prototype.bit1=function(){var t,o=Math.ceil(this.width/8),a=o%4;for(t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<o;r++)for(var l=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+8*r*4,u=0;u<8&&8*r+u<this.width;u++){var h=this.palette[l>>7-u&1];this.data[s+4*u]=h.blue,this.data[s+4*u+1]=h.green,this.data[s+4*u+2]=h.red,this.data[s+4*u+3]=255}a!==0&&(this.pos+=4-a)}},oa.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),o=t%4,a=this.height-1;a>=0;a--){for(var n=this.bottom_up?a:this.height-1-a,r=0;r<t;r++){var l=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+2*r*4,u=l>>4,h=15&l,f=this.palette[u];if(this.data[s]=f.blue,this.data[s+1]=f.green,this.data[s+2]=f.red,this.data[s+3]=255,2*r+1>=this.width)break;f=this.palette[h],this.data[s+4]=f.blue,this.data[s+4+1]=f.green,this.data[s+4+2]=f.red,this.data[s+4+3]=255}o!==0&&(this.pos+=4-o)}},oa.prototype.bit8=function(){for(var t=this.width%4,o=this.height-1;o>=0;o--){for(var a=this.bottom_up?o:this.height-1-o,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),l=a*this.width*4+4*n;if(r<this.palette.length){var s=this.palette[r];this.data[l]=s.red,this.data[l+1]=s.green,this.data[l+2]=s.blue,this.data[l+3]=255}else this.data[l]=255,this.data[l+1]=255,this.data[l+2]=255,this.data[l+3]=255}t!==0&&(this.pos+=4-t)}},oa.prototype.bit15=function(){for(var t=this.width%3,o=parseInt("11111",2),a=this.height-1;a>=0;a--){for(var n=this.bottom_up?a:this.height-1-a,r=0;r<this.width;r++){var l=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(l&o)/o*255|0,u=(l>>5&o)/o*255|0,h=(l>>10&o)/o*255|0,f=l>>15?255:0,c=n*this.width*4+4*r;this.data[c]=h,this.data[c+1]=u,this.data[c+2]=s,this.data[c+3]=f}this.pos+=t}},oa.prototype.bit16=function(){for(var t=this.width%3,o=parseInt("11111",2),a=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,l=0;l<this.width;l++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var u=(s&o)/o*255|0,h=(s>>5&a)/a*255|0,f=(s>>11)/o*255|0,c=r*this.width*4+4*l;this.data[c]=f,this.data[c+1]=h,this.data[c+2]=u,this.data[c+3]=255}this.pos+=t}},oa.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var o=this.bottom_up?t:this.height-1-t,a=0;a<this.width;a++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0),s=o*this.width*4+4*a;this.data[s]=l,this.data[s+1]=r,this.data[s+2]=n,this.data[s+3]=255}this.pos+=this.width%4}},oa.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var o=this.bottom_up?t:this.height-1-t,a=0;a<this.width;a++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),u=o*this.width*4+4*a;this.data[u]=l,this.data[u+1]=r,this.data[u+2]=n,this.data[u+3]=s}},oa.prototype.getData=function(){return this.data},function(t){t.processBMP=function(o,a,n,r){var l=new oa(o,!1),s=l.width,u=l.height,h={data:l.getData(),width:s,height:u},f=new rc(100).encode(h,100);return t.processJPEG.call(this,f,a,n,r)}}(pt.API),rf.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(o,a,n,r){var l=new rf(o),s=l.width,u=l.height,h={data:l.getData(),width:s,height:u},f=new rc(100).encode(h,100);return t.processJPEG.call(this,f,a,n,r)}}(pt.API),pt.API.processRGBA=function(t,o,a){for(var n=t.data,r=n.length,l=new Uint8Array(r/4*3),s=new Uint8Array(r/4),u=0,h=0,f=0;f<r;f+=4){var c=n[f],p=n[f+1],w=n[f+2],A=n[f+3];l[u++]=c,l[u++]=p,l[u++]=w,s[h++]=A}var k=this.__addimage__.arrayBufferToBinaryString(l);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:k,index:o,alias:a,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},pt.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},kn=pt.API,lu=kn.getCharWidthsArray=function(t,o){var a,n,r=(o=o||{}).font||this.internal.getFont(),l=o.fontSize||this.internal.getFontSize(),s=o.charSpace||this.internal.getCharSpace(),u=o.widths?o.widths:r.metadata.Unicode.widths,h=u.fof?u.fof:1,f=o.kerning?o.kerning:r.metadata.Unicode.kerning,c=f.fof?f.fof:1,p=o.doKerning!==!1,w=0,A=t.length,k=0,y=u[0]||h,i=[];for(a=0;a<A;a++)n=t.charCodeAt(a),typeof r.metadata.widthOfString=="function"?i.push((r.metadata.widthOfGlyph(r.metadata.characterToGlyph(n))+s*(1e3/l)||0)/1e3):(w=p&&Kt(f[n])==="object"&&!isNaN(parseInt(f[n][k],10))?f[n][k]/c:0,i.push((u[n]||y)/h+w)),k=n;return i},tf=kn.getStringUnitWidth=function(t,o){var a=(o=o||{}).fontSize||this.internal.getFontSize(),n=o.font||this.internal.getFont(),r=o.charSpace||this.internal.getCharSpace();return kn.processArabic&&(t=kn.processArabic(t)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(t,a,r)/a:lu.apply(this,arguments).reduce(function(l,s){return l+s},0)},of=function(t,o,a,n){for(var r=[],l=0,s=t.length,u=0;l!==s&&u+o[l]<a;)u+=o[l],l++;r.push(t.slice(0,l));var h=l;for(u=0;l!==s;)u+o[l]>n&&(r.push(t.slice(h,l)),u=0,h=l),u+=o[l],l++;return h!==l&&r.push(t.slice(h,l)),r},lf=function(t,o,a){a||(a={});var n,r,l,s,u,h,f,c=[],p=[c],w=a.textIndent||0,A=0,k=0,y=t.split(" "),i=lu.apply(this,[" ",a])[0];if(h=a.lineIndent===-1?y[0].length+2:a.lineIndent||0){var v=Array(h).join(" "),B=[];y.map(function($){($=$.split(/\s*\n/)).length>1?B=B.concat($.map(function(T,W){return(W&&T.length?`
234
234
  `:"")+T})):B.push($[0])}),y=B,h=tf.apply(this,[v,a])}for(l=0,s=y.length;l<s;l++){var U=0;if(n=y[l],h&&n[0]==`
235
- `&&(n=n.substr(1),U=1),w+A+(k=(r=lu.apply(this,[n,a])).reduce(function($,T){return $+T},0))>o||U){if(k>o){for(u=of.apply(this,[n,r,o-(w+A),o]),c.push(u.shift()),c=[u.pop()];u.length;)p.push([u.shift()]);k=r.slice(n.length-(c[0]?c[0].length:0)).reduce(function($,T){return $+T},0)}else c=[n];p.push(c),w=k+h,A=i}else c.push(n),w+=A+k,A=i}return f=h?function($,T){return(T?v:"")+$.join(" ")}:function($){return $.join(" ")},p.map(f)},kn.splitTextToSize=function(t,o,a){var n,r=(a=a||{}).fontSize||this.internal.getFontSize(),l=(function(c){if(c.widths&&c.kerning)return{widths:c.widths,kerning:c.kerning};var p=this.internal.getFont(c.fontName,c.fontStyle);return p.metadata.Unicode?{widths:p.metadata.Unicode.widths||{0:1},kerning:p.metadata.Unicode.kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,a);n=Array.isArray(t)?t:String(t).split(/\r?\n/);var s=1*this.internal.scaleFactor*o/r;l.textIndent=a.textIndent?1*a.textIndent*this.internal.scaleFactor/r:0,l.lineIndent=a.lineIndent;var u,h,f=[];for(u=0,h=n.length;u<h;u++)f=f.concat(lf.apply(this,[n[u],s,l]));return f},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var o="klmnopqrstuvwxyz",a={},n={},r=0;r<o.length;r++)a[o[r]]="0123456789abcdef"[r],n["0123456789abcdef"[r]]=o[r];var l=function(p){return"0x"+parseInt(p,10).toString(16)},s=t.__fontmetrics__.compress=function(p){var w,A,k,y,i=["{"];for(var v in p){if(w=p[v],isNaN(parseInt(v,10))?A="'"+v+"'":(v=parseInt(v,10),A=(A=l(v).slice(2)).slice(0,-1)+n[A.slice(-1)]),typeof w=="number")w<0?(k=l(w).slice(3),y="-"):(k=l(w).slice(2),y=""),k=y+k.slice(0,-1)+n[k.slice(-1)];else{if(Kt(w)!=="object")throw new Error("Don't know what to do with value type "+Kt(w)+".");k=s(w)}i.push(A+k)}return i.push("}"),i.join("")},u=t.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var w,A,k,y,i={},v=1,B=i,U=[],$="",T="",W=p.length-1,L=1;L<W;L+=1)(y=p[L])=="'"?w?(k=w.join(""),w=void 0):w=[]:w?w.push(y):y=="{"?(U.push([B,k]),B={},k=void 0):y=="}"?((A=U.pop())[0][A[1]]=B,k=void 0,B=A[0]):y=="-"?v=-1:k===void 0?a.hasOwnProperty(y)?($+=a[y],k=parseInt($,16)*v,v=1,$=""):$+=y:a.hasOwnProperty(y)?(T+=a[y],B[k]=parseInt(T,16)*v,v=1,k=void 0,T=""):T+=y;return i},h={codePages:["WinAnsiEncoding"],WinAnsiEncoding:u("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},f={Unicode:{Courier:h,"Courier-Bold":h,"Courier-BoldOblique":h,"Courier-Oblique":h,Helvetica:h,"Helvetica-Bold":h,"Helvetica-BoldOblique":h,"Helvetica-Oblique":h,"Times-Roman":h,"Times-Bold":h,"Times-BoldItalic":h,"Times-Italic":h}},c={Unicode:{"Courier-Oblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":u("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":u("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:u("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:u("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":u("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":u("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(p){var w=p.font,A=c.Unicode[w.postScriptName];A&&(w.metadata.Unicode={},w.metadata.Unicode.widths=A.widths,w.metadata.Unicode.kerning=A.kerning);var k=f.Unicode[w.postScriptName];k&&(w.metadata.Unicode.encoding=k,w.encoding=k.codePages[0])}])}(pt.API),function(t){var o=function(a){for(var n=a.length,r=new Uint8Array(n),l=0;l<n;l++)r[l]=a.charCodeAt(l);return r};t.API.events.push(["addFont",function(a){var n=void 0,r=a.font,l=a.instance;if(!r.isStandardFont){if(l===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");if(typeof(n=l.existsFileInVFS(r.postScriptName)===!1?l.loadFile(r.postScriptName):l.getFileFromVFS(r.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");(function(s,u){u=/^\x00\x01\x00\x00/.test(u)?o(u):o(Is(u)),s.metadata=t.API.TTFFont.open(u),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(r,n)}}])}(pt),function(t){function o(){return(yt.canvg?Promise.resolve(yt.canvg):Promise.resolve().then(()=>require("./index.es-BV7f0Mvj.cjs"))).catch(function(a){return Promise.reject(new Error("Could not load canvg: "+a))}).then(function(a){return a.default?a.default:a})}pt.API.addSvgAsImage=function(a,n,r,l,s,u,h,f){if(isNaN(n)||isNaN(r))throw no.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(l)||isNaN(s))throw no.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=l,c.height=s;var p=c.getContext("2d");p.fillStyle="#fff",p.fillRect(0,0,c.width,c.height);var w={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},A=this;return o().then(function(k){return k.fromString(p,a,w)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(k){return k.render(w)}).then(function(){A.addImage(c.toDataURL("image/jpeg",1),n,r,l,s,h,f)})}}(),pt.API.putTotalPages=function(t){var o,a=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(o=new RegExp(t,"g"),a=this.internal.getNumberOfPages()):(o=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),a=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var r=0;r<this.internal.pages[n].length;r++)this.internal.pages[n][r]=this.internal.pages[n][r].replace(o,a);return this},pt.API.viewerPreferences=function(t,o){var a;t=t||{},o=o||!1;var n,r,l,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},u=Object.keys(s),h=[],f=0,c=0,p=0;function w(k,y){var i,v=!1;for(i=0;i<k.length;i+=1)k[i]===y&&(v=!0);return v}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),a=this.internal.viewerpreferences.configuration,t==="reset"||o===!0){var A=u.length;for(p=0;p<A;p+=1)a[u[p]].value=a[u[p]].defaultValue,a[u[p]].explicitSet=!1}if(Kt(t)==="object"){for(r in t)if(l=t[r],w(u,r)&&l!==void 0){if(a[r].type==="boolean"&&typeof l=="boolean")a[r].value=l;else if(a[r].type==="name"&&w(a[r].valueSet,l))a[r].value=l;else if(a[r].type==="integer"&&Number.isInteger(l))a[r].value=l;else if(a[r].type==="array"){for(f=0;f<l.length;f+=1)if(n=!0,l[f].length===1&&typeof l[f][0]=="number")h.push(String(l[f]-1));else if(l[f].length>1){for(c=0;c<l[f].length;c+=1)typeof l[f][c]!="number"&&(n=!1);n===!0&&h.push([l[f][0]-1,l[f][1]-1].join(" "))}a[r].value="["+h.join(" ")+"]"}else a[r].value=a[r].defaultValue;a[r].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var k,y=[];for(k in a)a[k].explicitSet===!0&&(a[k].type==="name"?y.push("/"+k+" /"+a[k].value):y.push("/"+k+" "+a[k].value));y.length!==0&&this.internal.write(`/ViewerPreferences
235
+ `&&(n=n.substr(1),U=1),w+A+(k=(r=lu.apply(this,[n,a])).reduce(function($,T){return $+T},0))>o||U){if(k>o){for(u=of.apply(this,[n,r,o-(w+A),o]),c.push(u.shift()),c=[u.pop()];u.length;)p.push([u.shift()]);k=r.slice(n.length-(c[0]?c[0].length:0)).reduce(function($,T){return $+T},0)}else c=[n];p.push(c),w=k+h,A=i}else c.push(n),w+=A+k,A=i}return f=h?function($,T){return(T?v:"")+$.join(" ")}:function($){return $.join(" ")},p.map(f)},kn.splitTextToSize=function(t,o,a){var n,r=(a=a||{}).fontSize||this.internal.getFontSize(),l=(function(c){if(c.widths&&c.kerning)return{widths:c.widths,kerning:c.kerning};var p=this.internal.getFont(c.fontName,c.fontStyle);return p.metadata.Unicode?{widths:p.metadata.Unicode.widths||{0:1},kerning:p.metadata.Unicode.kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,a);n=Array.isArray(t)?t:String(t).split(/\r?\n/);var s=1*this.internal.scaleFactor*o/r;l.textIndent=a.textIndent?1*a.textIndent*this.internal.scaleFactor/r:0,l.lineIndent=a.lineIndent;var u,h,f=[];for(u=0,h=n.length;u<h;u++)f=f.concat(lf.apply(this,[n[u],s,l]));return f},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var o="klmnopqrstuvwxyz",a={},n={},r=0;r<o.length;r++)a[o[r]]="0123456789abcdef"[r],n["0123456789abcdef"[r]]=o[r];var l=function(p){return"0x"+parseInt(p,10).toString(16)},s=t.__fontmetrics__.compress=function(p){var w,A,k,y,i=["{"];for(var v in p){if(w=p[v],isNaN(parseInt(v,10))?A="'"+v+"'":(v=parseInt(v,10),A=(A=l(v).slice(2)).slice(0,-1)+n[A.slice(-1)]),typeof w=="number")w<0?(k=l(w).slice(3),y="-"):(k=l(w).slice(2),y=""),k=y+k.slice(0,-1)+n[k.slice(-1)];else{if(Kt(w)!=="object")throw new Error("Don't know what to do with value type "+Kt(w)+".");k=s(w)}i.push(A+k)}return i.push("}"),i.join("")},u=t.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var w,A,k,y,i={},v=1,B=i,U=[],$="",T="",W=p.length-1,L=1;L<W;L+=1)(y=p[L])=="'"?w?(k=w.join(""),w=void 0):w=[]:w?w.push(y):y=="{"?(U.push([B,k]),B={},k=void 0):y=="}"?((A=U.pop())[0][A[1]]=B,k=void 0,B=A[0]):y=="-"?v=-1:k===void 0?a.hasOwnProperty(y)?($+=a[y],k=parseInt($,16)*v,v=1,$=""):$+=y:a.hasOwnProperty(y)?(T+=a[y],B[k]=parseInt(T,16)*v,v=1,k=void 0,T=""):T+=y;return i},h={codePages:["WinAnsiEncoding"],WinAnsiEncoding:u("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},f={Unicode:{Courier:h,"Courier-Bold":h,"Courier-BoldOblique":h,"Courier-Oblique":h,Helvetica:h,"Helvetica-Bold":h,"Helvetica-BoldOblique":h,"Helvetica-Oblique":h,"Times-Roman":h,"Times-Bold":h,"Times-BoldItalic":h,"Times-Italic":h}},c={Unicode:{"Courier-Oblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":u("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":u("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:u("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:u("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":u("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":u("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(p){var w=p.font,A=c.Unicode[w.postScriptName];A&&(w.metadata.Unicode={},w.metadata.Unicode.widths=A.widths,w.metadata.Unicode.kerning=A.kerning);var k=f.Unicode[w.postScriptName];k&&(w.metadata.Unicode.encoding=k,w.encoding=k.codePages[0])}])}(pt.API),function(t){var o=function(a){for(var n=a.length,r=new Uint8Array(n),l=0;l<n;l++)r[l]=a.charCodeAt(l);return r};t.API.events.push(["addFont",function(a){var n=void 0,r=a.font,l=a.instance;if(!r.isStandardFont){if(l===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");if(typeof(n=l.existsFileInVFS(r.postScriptName)===!1?l.loadFile(r.postScriptName):l.getFileFromVFS(r.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");(function(s,u){u=/^\x00\x01\x00\x00/.test(u)?o(u):o(Is(u)),s.metadata=t.API.TTFFont.open(u),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(r,n)}}])}(pt),function(t){function o(){return(yt.canvg?Promise.resolve(yt.canvg):Promise.resolve().then(()=>require("./index.es-D8IGwfCW.cjs"))).catch(function(a){return Promise.reject(new Error("Could not load canvg: "+a))}).then(function(a){return a.default?a.default:a})}pt.API.addSvgAsImage=function(a,n,r,l,s,u,h,f){if(isNaN(n)||isNaN(r))throw no.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(l)||isNaN(s))throw no.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=l,c.height=s;var p=c.getContext("2d");p.fillStyle="#fff",p.fillRect(0,0,c.width,c.height);var w={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},A=this;return o().then(function(k){return k.fromString(p,a,w)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(k){return k.render(w)}).then(function(){A.addImage(c.toDataURL("image/jpeg",1),n,r,l,s,h,f)})}}(),pt.API.putTotalPages=function(t){var o,a=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(o=new RegExp(t,"g"),a=this.internal.getNumberOfPages()):(o=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),a=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var r=0;r<this.internal.pages[n].length;r++)this.internal.pages[n][r]=this.internal.pages[n][r].replace(o,a);return this},pt.API.viewerPreferences=function(t,o){var a;t=t||{},o=o||!1;var n,r,l,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},u=Object.keys(s),h=[],f=0,c=0,p=0;function w(k,y){var i,v=!1;for(i=0;i<k.length;i+=1)k[i]===y&&(v=!0);return v}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),a=this.internal.viewerpreferences.configuration,t==="reset"||o===!0){var A=u.length;for(p=0;p<A;p+=1)a[u[p]].value=a[u[p]].defaultValue,a[u[p]].explicitSet=!1}if(Kt(t)==="object"){for(r in t)if(l=t[r],w(u,r)&&l!==void 0){if(a[r].type==="boolean"&&typeof l=="boolean")a[r].value=l;else if(a[r].type==="name"&&w(a[r].valueSet,l))a[r].value=l;else if(a[r].type==="integer"&&Number.isInteger(l))a[r].value=l;else if(a[r].type==="array"){for(f=0;f<l.length;f+=1)if(n=!0,l[f].length===1&&typeof l[f][0]=="number")h.push(String(l[f]-1));else if(l[f].length>1){for(c=0;c<l[f].length;c+=1)typeof l[f][c]!="number"&&(n=!1);n===!0&&h.push([l[f][0]-1,l[f][1]-1].join(" "))}a[r].value="["+h.join(" ")+"]"}else a[r].value=a[r].defaultValue;a[r].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var k,y=[];for(k in a)a[k].explicitSet===!0&&(a[k].type==="name"?y.push("/"+k+" /"+a[k].value):y.push("/"+k+" "+a[k].value));y.length!==0&&this.internal.write(`/ViewerPreferences
236
236
  <<
237
237
  `+y.join(`
238
238
  `)+`
@@ -701,7 +701,7 @@ Provide an array of objects of type:
701
701
  ${this.includeDeleteButton(t)}
702
702
  </g>
703
703
  `;default:return""}},copy(t){return JSON.parse(JSON.stringify(t))},clickShape(t){const o=t.target.id;switch(!0){case this.isDeleteMode:this.shapes=[...this.shapes].filter(a=>a.id!==o),this.lastSelectedShape=void 0;break;default:this.lastSelectedShape=this.shapes.find(a=>a.id===o);break}},deleteEmptyTextElement(){!this.lastSelectedShape||!this.lastSelectedShape.id.includes("text")||this.lastSelectedShape.textContent===""&&(this.shapes=this.shapes.filter(t=>t.id!==this.lastSelectedShape.id),this.lastSelectedShape=this.shapes.at(-1))},drawUp(t=!1){if(!this.activeShape||!this.isDrawing)return;this.currentPointer.end={x:this.pointerPosition.x,y:this.pointerPosition.y};let o;this.shapes.length>0&&this.currentTarget&&(o=[...this.shapes].find(u=>u.id===this.currentTarget.id));let a,n,r;o&&(a=o.x-this.currentPointer.end.x,n=o.y-this.currentPointer.end.y,r=Math.sqrt(a*a+n*n));let l,s;t?(l=Math.max(this.currentPointer.end.x,o.x),s=Math.min(this.currentPointer.end.x,o.x),Math.max(this.currentPointer.end.y,o.y),Math.min(this.currentPointer.end.y,o.y)):(l=Math.max(this.currentPointer.end.x,this.currentPointer.start.x),s=Math.min(this.currentPointer.end.x,this.currentPointer.start.x),Math.max(this.currentPointer.end.y,this.currentPointer.start.y),Math.min(this.currentPointer.end.y,this.currentPointer.start.y)),this.$nextTick(()=>{switch(!0){case this.activeShape==="arrow":this.shapes.at(-1).endX=this.currentPointer.end.x,this.shapes.at(-1).endY=this.currentPointer.end.y;break;case this.activeShape==="circle":const u=20;this.shapes.at(-1).circleRadius=this.isDrawingNewShape?this.copy(l-s)+u:r+u;break;case this.activeShape==="line":this.shapes.at(-1).path+=` ${this.pointerPosition.x} ${this.pointerPosition.y} `;break;case["rect","group"].includes(this.activeShape):const h=20;this.shapes.at(-1).rectWidth=this.copy(this.currentPointer.end.x-this.shapes.at(-1).x)>0?this.copy(this.currentPointer.end.x-this.shapes.at(-1).x):h,this.shapes.at(-1).rectHeight=this.copy(this.currentPointer.end.y-this.shapes.at(-1).y)>0?this.copy(this.currentPointer.end.y-this.shapes.at(-1).y):h}})},drawDown(){if(this.isDrawing=!0,!this.activeShape&&!this.isSelectMode||!this.isDrawing)return;this.isDrawingNewShape=!0,this.currentPointer.start={x:this.pointerPosition.x,y:this.pointerPosition.y};let t=`${this.isSelectMode?"group":this.activeShape}_${Math.random()*1e4}_${Date.now()}`;switch(!0){case this.activeShape==="arrow":this.shapes.push({id:t,x:this.pointerPosition.x,y:this.pointerPosition.y,endX:this.pointerPosition.x,endY:this.pointerPosition.y,type:this.activeShape,color:this.copy(this.selectedColor),strokeWidth:this.copy(Math.abs(this.strokeSize)),isDash:this.copy(this.isDash)}),this.lastSelectedShape=this.shapes.at(-1);break;case this.activeShape==="circle":this.shapes.push({alpha:this.options.circle.filled?this.colorTransparency:"",id:t,color:this.copy(this.selectedColor),isFilled:this.copy(this.options.circle.filled),circleRadius:this.copy(this.options.circle.radius),circleStrokeWidth:this.copy(this.options.circle.strokeWidth),type:this.activeShape,x:this.pointerPosition.x,y:this.pointerPosition.y,strokeWidth:this.copy(Math.abs(this.strokeSize)),isDash:this.copy(this.isDash)}),this.lastSelectedShape=this.shapes.at(-1);break;case this.activeShape==="line":this.shapes.push({alpha:this.copy(this.colorTransparency),id:t,x:this.pointerPosition.x,y:this.pointerPosition.y,type:this.activeShape,color:this.copy(this.selectedColor),strokeWidth:this.copy(Math.abs(this.strokeSize)),isDash:this.copy(this.isDash),path:`${this.pointerPosition.x} ${this.pointerPosition.y}`}),this.lastSelectedShape=this.shapes.at(-1);break;case this.activeShape==="rect":this.shapes.push({alpha:this.options.rect.filled?this.colorTransparency:"",id:t,color:this.copy(this.selectedColor),isFilled:this.copy(this.options.rect.filled),rectStrokeWidth:this.copy(this.options.rect.strokeWidth),rectHeight:this.copy(this.options.rect.height),rectWidth:this.copy(this.options.rect.width),type:this.activeShape,x:this.pointerPosition.x,y:this.pointerPosition.y,strokeWidth:this.copy(Math.abs(this.strokeSize)),isDash:this.copy(this.isDash)}),this.lastSelectedShape=this.shapes.at(-1);break;case this.activeShape==="group":this.shapes.push({alpha:1,id:`group_${Math.random()*1e4}_${Date.now()}`,x:this.pointerPosition.x,y:this.pointerPosition.y,isFilled:!1,rectHeight:this.copy(this.options.rect.height),rectWidth:this.copy(this.options.rect.width),rectStrokeWidth:1,type:"group",color:"grey",strokeWidth:1,isDash:!0,content:""});break}if((this.pointerDownId!==-1||!this.isDrawing)&&(clearInterval(this.pointerDownId),this.pointerDownId=-1),this.pointerDownId===-1&&this.isDrawing){this.pointerDownId=setInterval(this.drawUp,1);return}},move(t){if(!(!t||!t.id||t.type==="line"))switch(this.lastSelectedShape=t,!0){case t.type==="arrow":t.x=this.copy(this.pointerPosition.x),t.y=this.copy(this.pointerPosition.y);break;case t.type==="circle":t.x=this.copy(this.pointerPosition.x),t.y=this.copy(this.pointerPosition.y);break;case t.type==="group":this.moveGroup(t);break;case t.type==="rect":t.x=this.copy(this.pointerPosition.x-t.rectWidth/2),t.y=this.copy(this.pointerPosition.y-t.rectHeight/2);break;case t.type==="text":const o=Array.from(document.getElementsByTagName("text")).find(s=>s.id===t.id);if(!o)return;const{x:a,y:n,width:r,height:l}=o.getBBox();t.textAlign==="start"&&(t.x=this.copy(this.pointerPosition.x-r/2)),t.textAlign==="middle"&&(t.x=this.copy(this.pointerPosition.x)),t.textAlign==="end"&&(t.x=this.copy(this.pointerPosition.x+r/2)),t.lines>1?t.y=this.copy(this.pointerPosition.y-l/3):t.y=this.copy(this.pointerPosition.y+t.fontSize/2);break}},moveDown(){if(!this.currentTarget||!this.currentTarget.id)return;const t=this.currentTarget.id,o=this.shapes.find(a=>a.id===t);this.shapes=this.shapes.filter(a=>a.id!==t),this.shapes.push(o),this.pointerDownId===-1&&t&&this.move(o)},print(){this.isPrinting=!0,this.isDeleteMode=!1,this.isMoveMode=!1,this.isResizeMode=!1,this.isTextMode=!1,this.isWriting=!1,this.isSelectMode=!1,this.activeShape=void 0,this.showCaret=!1,this.$nextTick(()=>{const t=this.$refs.drawSvgContainer,o={height:851.89,width:595.28};this.walkTheDOM(t,a=>{a&&a.nodeType===1&&(a.setAttribute("font-family","Helvetica"),a.style.fontFamily="Helvetica",a.replaceWith(a))}),Ps(t).then(a=>{const n=a.width,r=a.height,l=n/o.width*o.height;let s=r,u=0;const h=o.width,f=582.28/n*r,c=a.toDataURL("image/png",1),p=new pt("","pt","a4");if(s<l)p.addImage(c,"PNG",0,0,h,f,"","FAST");else for(;s>0;)p.addImage(c,"PNG",0,u,h,f,"","FAST"),s-=l,u-=o.height-24,s>0&&p.addPage();p.save(`${new Date().toLocaleDateString()}_annotations.pdf`)}).finally(()=>{this.isPrinting=!1,this.walkTheDOM(t,a=>{a&&a.nodeType===1&&(a.setAttribute("font-family",this.FINAL_CONFIG.style.fontFamily),a.style.fontFamily=this.FINAL_CONFIG.style.fontFamily,a.replaceWith(a))})})})},resetDraw(){this.isDrawing=!1,this.isMouseDown=!1,this.pointerDownId=-1,this.isSelectMode&&this.groupShapes(),clearInterval(this.pointerDownId)},resize(){this.isDrawingNewShape=!1;const t=this.currentTarget.id;if(!t)return;this.isDrawing=!0;const o=this.shapes.find(a=>a.id===t);this.activeShape=o.type,this.shapes=this.shapes.filter(a=>a.id!==t),this.shapes.push(o),this.drawUp(!0)},setFillOfSelectedRect(){!this.lastSelectedShape||!this.lastSelectedShape.id.includes("rect")||(this.lastSelectedShape.isFilled=!this.lastSelectedShape.isFilled)},setFillOfSelectedCircle(){!this.lastSelectedShape||!this.lastSelectedShape.id.includes("circle")||(this.lastSelectedShape.isFilled=!this.lastSelectedShape.isFilled)},setColorOfSelectedShape(){this.lastSelectedShape&&(this.lastSelectedShape.color=this.copy(this.selectedColor),!["arrow","text"].includes(this.lastSelectedShape.id)&&(this.lastSelectedShape.alpha=this.copy(this.colorTransparency)))},setSelectedShapeToDash(){!this.lastSelectedShape||this.lastSelectedShape.type==="text"||(this.lastSelectedShape.isDash=this.copy(this.isDash))},setTransparencyOfSelectedShape(){!this.lastSelectedShape||["arrow","text"].includes(this.lastSelectedShape.id)||(this.lastSelectedShape.alpha=this.copy(this.colorTransparency))},setStrokeWidthOfSelectedShape(){!this.lastSelectedShape||!["arrow","circle","rect","line"].includes(this.lastSelectedShape.type)||(this.lastSelectedShape.strokeWidth=this.copy(Math.abs(this.strokeSize)))},setCurrentStyleOfSelectedText(){!this.lastSelectedShape||this.lastSelectedShape.type!=="text"||(this.lastSelectedShape.isBold=this.copy(this.isBold),this.lastSelectedShape.isItalic=this.copy(this.isItalic),this.lastSelectedShape.isUnderline=this.copy(this.isUnderline),this.lastSelectedShape.fontSize=this.copy(this.textFont),this.lastSelectedShape.isBulletTextMode=this.copy(this.isBulletTextMode))},setPointer(t){t.preventDefault();const a=this.$refs.mainSvg.getBoundingClientRect();let n,r;t.touches&&t.touches.length>0?(n=t.touches[0].clientX,r=t.touches[0].clientY):(n=t.clientX,r=t.clientY),this.pointerPosition.x=(n-a.left)/a.width*this.svgWidth,this.pointerPosition.y=(r-a.top)/a.height*this.svgHeight},setShapeTo(t){if(this.showCaret=!1,this.deleteEmptyTextElement(),t===this.activeShape){this.activeShape=void 0,this.isDrawMode=!1;return}this.isDrawMode=!0,this.isDeleteMode=!1,this.isMoveMode=!1,this.isResizeMode=!1,this.isTextMode=!1,this.activeShape=t},toggleSummary(){this.isSummaryOpen=!this.isSummaryOpen,this.isSummaryOpen||(this.isMoveMode=!1,this.isResizeMode=!1,this.isTextMode=!1,this.isWriting=!1,this.activeShape=void 0,this.showCaret=!1,this.isDeleteMode=!1,this.isWriting=!1),this.$emit("toggleOpenState",{isOpen:this.isSummaryOpen})},walkTheDOM(t,o){for(o(t),t=t.firstChild;t;)this.walkTheDOM(t,o),t=t.nextSibling},save(){this.$emit("saveAnnotations",{shapes:this.shapes,lastSelectedShape:this.lastSelectedShape})}}},Aa=t=>(e.pushScopeId("data-v-3611298e"),t=t(),e.popScopeId(),t),t7={class:"vue-ui-annotator"},o7={"data-html2canvas-ignore":""},l7={class:"tool-selection",style:{"margin-top":"24px"}},a7=["disabled"],r7=e.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M18 9l3 3l-3 3" data-v-3611298e></path><path d="M15 12h6" data-v-3611298e></path><path d="M6 9l-3 3l3 3" data-v-3611298e></path><path d="M3 12h6" data-v-3611298e></path><path d="M9 18l3 3l3 -3" data-v-3611298e></path><path d="M12 15v6" data-v-3611298e></path><path d="M15 6l-3 -3l-3 3" data-v-3611298e></path><path d="M12 3v6" data-v-3611298e></path></svg>',1),n7=["disabled"],s7=Aa(()=>e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"80%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),e.createElementVNode("path",{d:"M4 11v8a1 1 0 0 0 1 1h8m-9 -14v-1a1 1 0 0 1 1 -1h1m5 0h2m5 0h1a1 1 0 0 1 1 1v1m0 5v2m0 5v1a1 1 0 0 1 -1 1h-1"}),e.createElementVNode("path",{d:"M4 12h7a1 1 0 0 1 1 1v7"})],-1)),i7=["disabled"],u7=e.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M4 7l16 0" data-v-3611298e></path><path d="M10 11l0 6" data-v-3611298e></path><path d="M14 11l0 6" data-v-3611298e></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" data-v-3611298e></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" data-v-3611298e></path></svg>',1),A7=["disabled"],c7={style:{width:"80%"},viewBox:"0 0 24 24"},d7=Aa(()=>e.createElementVNode("path",{fill:"currentColor",d:"M1,1V5H2V19H1V23H5V22H19V23H23V19H22V5H23V1H19V2H5V1M5,4H19V5H20V19H19V20H5V19H4V5H5M6,6V14H9V18H18V9H14V6M8,8H12V12H8M14,11H16V16H11V14H14"},null,-1)),h7=[d7],f7=["disabled"],v7={style:{width:"80%"},viewBox:"0 0 24 24"},g7=Aa(()=>e.createElementVNode("path",{fill:"currentColor",d:"M2,2H11V6H9V4H4V9H6V11H2V2M22,13V22H13V18H15V20H20V15H18V13H22M8,8H16V16H8V8Z"},null,-1)),p7=[g7],y7=["disabled"],m7={style:{width:"80%"},viewBox:"0 0 24 24"},b7=Aa(()=>e.createElementVNode("path",{fill:"currentColor",d:"M2,2H11V11H2V2M9,4H4V9H9V4M22,13V22H13V13H22M15,20H20V15H15V20M16,8V11H13V8H16M11,16H8V13H11V16Z"},null,-1)),k7=[b7],C7=["disabled"],w7=Aa(()=>e.createElementVNode("svg",{width:"80%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),e.createElementVNode("path",{d:"M7 3m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z"}),e.createElementVNode("path",{d:"M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2"})],-1)),B7=["disabled"],x7=Aa(()=>e.createElementVNode("svg",{width:"80%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),e.createElementVNode("path",{d:"M9 14l-4 -4l4 -4"}),e.createElementVNode("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})],-1)),F7=e.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2" data-v-3611298e></path><path d="M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4" data-v-3611298e></path><path d="M7 13m0 2a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2z" data-v-3611298e></path></svg>',1),N7=e.createStaticVNode('<svg width="100%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2" data-v-3611298e></path><path d="M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" data-v-3611298e></path><path d="M14 4l0 4l-6 0l0 -4" data-v-3611298e></path></svg>',1),_7={class:"tool-selection",style:{"margin-top":"6px"}},S7={viewBox:"0 0 12 12",style:{width:"100%"}},L7=["fill"],E7={key:0,class:"tool-input"},I7={for:"circleFill"},$7=["checked"],M7={viewBox:"0 0 12 12",style:{width:"100%"}},U7=["fill"],V7={key:1,class:"tool-input"},Q7={for:"rectFill"},T7=["checked"],O7={viewBox:"0 0 24 24",style:{width:"100%"}},z7=["stroke"],D7=Aa(()=>e.createElementVNode("svg",{width:"80%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),e.createElementVNode("path",{d:"M3 15c2 3 4 4 7 4s7 -3 7 -7s-3 -7 -6 -7s-5 1.5 -5 4s2 5 6 5s8.408 -2.453 10 -5"})],-1)),P7={key:2},H7={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},R7={for:"textFont",style:{"font-size":"0.7em"}},G7={key:3},W7={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},j7={for:"dashStyle",style:{"font-size":"0.7em"}},K7={viewBox:"0 0 24 24",height:"24",width:"24",style:{"margin-bottom":"-5px","margin-top":"-10px"}},X7=Aa(()=>e.createElementVNode("line",{x1:"0",x2:"24",y1:"12",y2:"12","stroke-width":"2",stroke:"black","stroke-dasharray":"3"},null,-1)),q7=[X7],Y7=["checked"],J7={style:{width:"80%"},viewBox:"0 0 24 24",fill:"currentColor"},Z7=Aa(()=>e.createElementVNode("path",{d:"M18.5,4L19.66,8.35L18.7,8.61C18.25,7.74 17.79,6.87 17.26,6.43C16.73,6 16.11,6 15.5,6H13V16.5C13,17 13,17.5 13.33,17.75C13.67,18 14.33,18 15,18V19H9V18C9.67,18 10.33,18 10.67,17.75C11,17.5 11,17 11,16.5V6H8.5C7.89,6 7.27,6 6.74,6.43C6.21,6.87 5.75,7.74 5.3,8.61L4.34,8.35L5.5,4H18.5Z"},null,-1)),eV=[Z7],tV={key:4},oV={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},lV={for:"textFont",style:{"font-size":"0.7em"}},aV={key:5},rV=e.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M4 6l16 0" data-v-3611298e></path><path d="M4 12l10 0" data-v-3611298e></path><path d="M4 18l14 0" data-v-3611298e></path></svg>',1),nV={key:6},sV=["disabled"],iV=e.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M4 6l16 0" data-v-3611298e></path><path d="M8 12l8 0" data-v-3611298e></path><path d="M6 18l12 0" data-v-3611298e></path></svg>',1),uV={key:7},AV=["disabled"],cV=e.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M4 6l16 0" data-v-3611298e></path><path d="M10 12l10 0" data-v-3611298e></path><path d="M6 18l14 0" data-v-3611298e></path></svg>',1),dV={key:8},hV=e.createStaticVNode('<svg width="100%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M9 6l11 0" data-v-3611298e></path><path d="M9 12l11 0" data-v-3611298e></path><path d="M9 18l11 0" data-v-3611298e></path><path d="M5 6l0 .01" data-v-3611298e></path><path d="M5 12l0 .01" data-v-3611298e></path><path d="M5 18l0 .01" data-v-3611298e></path></svg>',1),fV={key:9},vV=Aa(()=>e.createElementVNode("svg",{width:"100%",viewBox:"0 0 24 24","stroke-width":"3",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),e.createElementVNode("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),e.createElementVNode("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})],-1)),gV={key:10},pV=e.createStaticVNode('<svg width="100%" height="44" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M11 5l6 0" data-v-3611298e></path><path d="M7 19l6 0" data-v-3611298e></path><path d="M14 5l-4 14" data-v-3611298e></path></svg>',1),yV={key:11},mV=Aa(()=>e.createElementVNode("svg",{width:"100%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),e.createElementVNode("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),e.createElementVNode("path",{d:"M5 19h14"})],-1)),bV={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"},class:"tooltip"},kV={style:{display:"flex","flex-direction":"column","align-items":"start","justify-content":"center"}},CV={for:"colorTransparency",style:{"font-size":"0.7em"}},wV={class:"annotator annotator__wrapper",ref:"drawSvgContainer",style:{position:"relative"}},BV=["viewBox","width","height"],xV=["id","innerHTML"],FV=["height","viewBox","width"],NV=["cx","cy"];function _V(t,o,a,n,r,l){return e.openBlock(),e.createElementBlock("div",t7,[e.createElementVNode("div",o7,[e.createElementVNode("details",{class:"vue-ui-annotator-summary",onToggle:o[36]||(o[36]=(...s)=>l.toggleSummary&&l.toggleSummary(...s)),style:e.normalizeStyle(`${r.isSummaryOpen?"padding-bottom: 12px":""}; background: ${l.FINAL_CONFIG.style.backgroundColor}; color:${l.FINAL_CONFIG.style.color}; ${l.FINAL_CONFIG.style.fixedTools&&r.isSummaryOpen?"position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;":""}`)},[e.createElementVNode("summary",null,e.toDisplayString(l.FINAL_CONFIG.translations.title),1),e.createElementVNode("div",l7,[e.createElementVNode("button",{disabled:r.shapes.length===0,style:e.normalizeStyle({background:r.isMoveMode?l.FINAL_CONFIG.style.buttons.controls.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:r.isMoveMode?l.FINAL_CONFIG.style.buttons.controls.selected.border:l.FINAL_CONFIG.style.buttons.controls.border,color:r.isMoveMode?l.FINAL_CONFIG.style.buttons.controls.selected.color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isMoveMode,tooltip:!0}),onClick:o[0]||(o[0]=s=>{l.deleteEmptyTextElement(),r.isMoveMode=!r.isMoveMode,r.activeShape=void 0,r.isDeleteMode=!1,r.isDrawMode=!1,r.isResizeMode=!1,r.isSelectMode=!1,r.isTextMode=!1,r.isWriting=!1,r.showCaret=!1})},[r7,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipMove),5)):e.createCommentVNode("",!0)],14,a7),e.createElementVNode("button",{disabled:r.shapes.length===0||r.activeShape==="line",style:e.normalizeStyle({background:r.isResizeMode?l.FINAL_CONFIG.style.buttons.controls.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:r.isResizeMode?l.FINAL_CONFIG.style.buttons.controls.selected.border:l.FINAL_CONFIG.style.buttons.controls.border,color:r.isResizeMode?l.FINAL_CONFIG.style.buttons.controls.selected.color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isResizeMode,tooltip:!0}),onClick:o[1]||(o[1]=s=>{l.deleteEmptyTextElement(),r.isResizeMode=!r.isResizeMode,r.isMoveMode=!1,r.isDeleteMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.isTextMode=!1,r.isWriting=!1,r.activeShape=void 0,r.showCaret=!1})},[s7,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipResize),5)):e.createCommentVNode("",!0)],14,n7),e.createElementVNode("button",{disabled:r.shapes.length===0,style:e.normalizeStyle({background:r.isDeleteMode?l.FINAL_CONFIG.style.buttons.controls.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:r.isDeleteMode?l.FINAL_CONFIG.style.buttons.controls.selected.border:l.FINAL_CONFIG.style.buttons.controls.border,color:r.isDeleteMode?l.FINAL_CONFIG.style.buttons.controls.selected.color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isDeleteMode,tooltip:!0}),onClick:o[2]||(o[2]=s=>{l.deleteEmptyTextElement(),r.isDeleteMode=!r.isDeleteMode,r.isMoveMode=!1,r.isResizeMode=!1,r.isSelectMode=!1,r.isTextMode=!1,r.isWriting=!1,r.activeShape=void 0,r.showCaret=!1})},[u7,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipDelete),5)):e.createCommentVNode("",!0)],14,i7),e.createElementVNode("button",{disabled:!l.canSelect,style:e.normalizeStyle({background:r.isSelectMode?l.FINAL_CONFIG.style.buttons.controls.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:r.isSelectMode?l.FINAL_CONFIG.style.buttons.controls.selected.border:l.FINAL_CONFIG.style.buttons.controls.border,color:r.isSelectMode?l.FINAL_CONFIG.style.buttons.controls.selected.color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isSelectMode,tooltip:!0}),onClick:o[3]||(o[3]=s=>{l.deleteEmptyTextElement(),l.setShapeTo("group"),r.isSelectMode=!r.isSelectMode,r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isTextMode=!1,r.isWriting=!1,r.activeShape="group",r.showCaret=!1})},[(e.openBlock(),e.createElementBlock("svg",c7,h7)),l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipGroup),5)):e.createCommentVNode("",!0)],14,A7),e.createElementVNode("button",{disabled:r.shapes.length===0,style:e.normalizeStyle({background:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:l.FINAL_CONFIG.style.buttons.controls.border,color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:o[4]||(o[4]=s=>{r.isResizeMode=!1,r.isMoveMode=!0,r.isDeleteMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.isTextMode=!1,r.isWriting=!1,r.showCaret=!1,l.bringShapeTo("front")})},[(e.openBlock(),e.createElementBlock("svg",v7,p7)),l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipBringToFront),5)):e.createCommentVNode("",!0)],12,f7),e.createElementVNode("button",{disabled:r.shapes.length===0,style:e.normalizeStyle({background:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:l.FINAL_CONFIG.style.buttons.controls.border,color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:o[5]||(o[5]=s=>{r.isResizeMode=!1,r.isMoveMode=!0,r.isDeleteMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.isTextMode=!1,r.isWriting=!1,r.showCaret=!1,l.bringShapeTo("back")})},[(e.openBlock(),e.createElementBlock("svg",m7,k7)),l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipBringToBack),5)):e.createCommentVNode("",!0)],12,y7),e.createElementVNode("button",{disabled:r.shapes.length===0||r.activeShape==="line",style:e.normalizeStyle({background:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:l.FINAL_CONFIG.style.buttons.controls.border,color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:o[6]||(o[6]=s=>{l.deleteEmptyTextElement(),r.isResizeMode=!1,r.isMoveMode=!0,r.isDeleteMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.isTextMode=!1,r.isWriting=!1,r.showCaret=!1,l.copyPaste()})},[w7,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipDuplicate),5)):e.createCommentVNode("",!0)],12,C7),e.createElementVNode("button",{disabled:r.shapes.length===0,style:e.normalizeStyle({background:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:l.FINAL_CONFIG.style.buttons.controls.border,color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,"button-tool--one-shot":!0,tooltip:!0}),onClick:o[7]||(o[7]=s=>{r.isResizeMode=!1,r.isMoveMode=!1,r.isDeleteMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.isTextMode=!1,r.isWriting=!1,r.activeShape=void 0,r.showCaret=!1,l.undoLastShape()})},[x7,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipUndo),5)):e.createCommentVNode("",!0)],12,B7),l.FINAL_CONFIG.style.showPrint?(e.openBlock(),e.createElementBlock("button",{key:0,style:e.normalizeStyle({background:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:l.FINAL_CONFIG.style.buttons.controls.border,color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:o[8]||(o[8]=(...s)=>l.print&&l.print(...s))},[F7,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipPdf),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),l.FINAL_CONFIG.style.showSave?(e.openBlock(),e.createElementBlock("button",{key:1,style:e.normalizeStyle({background:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:l.FINAL_CONFIG.style.buttons.controls.border,color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:o[9]||(o[9]=(...s)=>l.save&&l.save(...s))},[N7,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipSave),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)]),e.createElementVNode("div",_7,[e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.activeShape==="circle",tooltip:!0}),style:e.normalizeStyle({background:r.activeShape==="circle"?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.activeShape==="circle"?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.activeShape==="circle"?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[10]||(o[10]=s=>{l.setShapeTo("circle"),r.isSelectMode=!1})},[(e.openBlock(),e.createElementBlock("svg",S7,[e.createElementVNode("circle",{cx:6,cy:6,r:"4",fill:r.options.circle.filled?(r.activeShape==="circle",r.selectedColor+l.colorTransparency):"none",stroke:"currentColor"},null,8,L7)])),l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeCircle),5)):e.createCommentVNode("",!0)],6),r.activeShape==="circle"?(e.openBlock(),e.createElementBlock("div",E7,[e.createElementVNode("label",I7,e.toDisplayString(l.FINAL_CONFIG.translations.filled),1),e.withDirectives(e.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":o[11]||(o[11]=s=>r.options.circle.filled=s),onChange:o[12]||(o[12]=(...s)=>l.setFillOfSelectedCircle&&l.setFillOfSelectedCircle(...s)),checked:r.options.circle.filled},null,40,$7),[[e.vModelCheckbox,r.options.circle.filled]])])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.activeShape==="rect",tooltip:!0}),style:e.normalizeStyle({background:r.activeShape==="rect"?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.activeShape==="rect"?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.activeShape==="rect"?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[13]||(o[13]=s=>{l.setShapeTo("rect"),r.isSelectMode=!1})},[(e.openBlock(),e.createElementBlock("svg",M7,[e.createElementVNode("rect",{x:"3",y:"3",style:{rx:"0 !important",ry:"0 !important"},height:"6",width:"6",fill:r.options.rect.filled?(r.activeShape==="rect",r.selectedColor+l.colorTransparency):"none",stroke:"currentColor"},null,8,U7)])),l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeRect),5)):e.createCommentVNode("",!0)],6),r.activeShape==="rect"?(e.openBlock(),e.createElementBlock("div",V7,[e.createElementVNode("label",Q7,e.toDisplayString(l.FINAL_CONFIG.translations.filled),1),e.withDirectives(e.createElementVNode("input",{id:"rectFill",type:"checkbox","onUpdate:modelValue":o[14]||(o[14]=s=>r.options.rect.filled=s),onChange:o[15]||(o[15]=(...s)=>l.setFillOfSelectedRect&&l.setFillOfSelectedRect(...s)),checked:r.options.rect.filled},null,40,T7),[[e.vModelCheckbox,r.options.rect.filled]])])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.activeShape==="arrow",tooltip:!0}),style:e.normalizeStyle({background:r.activeShape==="arrow"?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.activeShape==="arrow"?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.activeShape==="arrow"?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[16]||(o[16]=s=>{l.setShapeTo("arrow"),r.isSelectMode=!1})},[(e.openBlock(),e.createElementBlock("svg",O7,[e.createElementVNode("path",{stroke:r.options.arrow.filled?r.activeShape==="arrow"?"white":"grey":"none","stroke-width":"2",d:"M5,19 19,5 14,5 19,10.5 19,5",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,8,z7)])),l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeArrow),5)):e.createCommentVNode("",!0)],6),e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.activeShape==="line",tooltip:!0}),style:e.normalizeStyle({background:r.activeShape==="line"?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.activeShape==="line"?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.activeShape==="line"?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[17]||(o[17]=s=>{l.setShapeTo("line"),r.isSelectMode=!1})},[D7,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeFreehand),5)):e.createCommentVNode("",!0)],6),["arrow","circle","rect","line"].includes(r.activeShape)?(e.openBlock(),e.createElementBlock("div",P7,[e.createElementVNode("div",H7,[e.createElementVNode("label",R7,e.toDisplayString(l.FINAL_CONFIG.translations.thickness),1),e.withDirectives(e.createElementVNode("input",{id:"textFont",type:"number","onUpdate:modelValue":o[18]||(o[18]=s=>r.strokeSize=s),onInput:o[19]||(o[19]=(...s)=>l.setStrokeWidthOfSelectedShape&&l.setStrokeWidthOfSelectedShape(...s)),style:{padding:"0 4px",width:"40px",border:"1px solid #dadada","border-radius":"3px"}},null,544),[[e.vModelText,r.strokeSize]])])])):e.createCommentVNode("",!0),["arrow","circle","rect"].includes(r.activeShape)?(e.openBlock(),e.createElementBlock("div",G7,[e.createElementVNode("div",W7,[e.createElementVNode("label",j7,e.toDisplayString(l.FINAL_CONFIG.translations.dashedLines),1),(e.openBlock(),e.createElementBlock("svg",K7,q7)),e.withDirectives(e.createElementVNode("input",{id:"dashStyle",name:"dashStyle",type:"checkbox","onUpdate:modelValue":o[20]||(o[20]=s=>r.isDash=s),onChange:o[21]||(o[21]=(...s)=>l.setSelectedShapeToDash&&l.setSelectedShapeToDash(...s)),checked:r.isDash},null,40,Y7),[[e.vModelCheckbox,r.isDash]])])])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isTextMode,tooltip:!0}),style:e.normalizeStyle({background:r.isTextMode?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.isTextMode?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.isTextMode?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[22]||(o[22]=s=>{l.deleteEmptyTextElement(),r.isTextMode=!r.isTextMode,r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isSelectMode=!1,r.isDrawMode=!1,r.activeShape=void 0})},[(e.openBlock(),e.createElementBlock("svg",J7,eV)),l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeText),5)):e.createCommentVNode("",!0)],6),r.isTextMode?(e.openBlock(),e.createElementBlock("div",tV,[e.createElementVNode("div",oV,[e.createElementVNode("label",lV,e.toDisplayString(l.FINAL_CONFIG.translations.fontSize),1),e.withDirectives(e.createElementVNode("input",{id:"textFont",type:"number","onUpdate:modelValue":o[23]||(o[23]=s=>r.textFont=s),onInput:o[24]||(o[24]=(...s)=>l.setCurrentStyleOfSelectedText&&l.setCurrentStyleOfSelectedText(...s)),style:{padding:"0 4px",width:"40px",border:"1px solid #dadada","border-radius":"3px"}},null,544),[[e.vModelText,r.textFont]])])])):e.createCommentVNode("",!0),r.isTextMode?(e.openBlock(),e.createElementBlock("div",aV,[e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.textAlign==="start",tooltip:!0}),style:e.normalizeStyle({background:r.textAlign==="start"?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.textAlign==="start"?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.textAlign==="start"?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[25]||(o[25]=s=>{r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.activeShape=void 0,r.textAlign="start",l.setSelectedTextAlignTo("start")})},[rV,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeTextLeft),5)):e.createCommentVNode("",!0)],6)])):e.createCommentVNode("",!0),r.isTextMode?(e.openBlock(),e.createElementBlock("div",nV,[e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.textAlign==="middle",tooltip:!0}),style:e.normalizeStyle({background:r.textAlign==="middle"?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.textAlign==="middle"?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.textAlign==="middle"?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),disabled:r.isBulletTextMode,onClick:o[26]||(o[26]=s=>{r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.activeShape=void 0,r.textAlign="middle",l.setSelectedTextAlignTo("middle")})},[iV,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeTextCenter),5)):e.createCommentVNode("",!0)],14,sV)])):e.createCommentVNode("",!0),r.isTextMode?(e.openBlock(),e.createElementBlock("div",uV,[e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.textAlign==="end",tooltip:!0}),style:e.normalizeStyle({background:r.textAlign==="end"?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.textAlign==="end"?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.textAlign==="end"?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),disabled:r.isBulletTextMode,onClick:o[27]||(o[27]=s=>{r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.activeShape=void 0,r.textAlign="end",l.setSelectedTextAlignTo("end")})},[cV,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeTextRight),5)):e.createCommentVNode("",!0)],14,AV)])):e.createCommentVNode("",!0),r.isTextMode?(e.openBlock(),e.createElementBlock("div",dV,[e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isBulletTextMode,tooltip:!0}),style:e.normalizeStyle({background:r.isBulletTextMode?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.isBulletTextMode?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.isBulletTextMode?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[28]||(o[28]=s=>{r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.activeShape=void 0,r.isBulletTextMode=!r.isBulletTextMode,r.textAlign="start",l.setSelectedTextAlignTo("start"),l.setCurrentStyleOfSelectedText()})},[hV,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeTextBullet),5)):e.createCommentVNode("",!0)],6)])):e.createCommentVNode("",!0),r.isTextMode?(e.openBlock(),e.createElementBlock("div",fV,[e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isBold,tooltip:!0}),style:e.normalizeStyle({background:r.isBold?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.isBold?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.isBold?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[29]||(o[29]=s=>{r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.activeShape=void 0,r.isBold=!r.isBold,l.setCurrentStyleOfSelectedText()})},[vV,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeTextBold),5)):e.createCommentVNode("",!0)],6)])):e.createCommentVNode("",!0),r.isTextMode?(e.openBlock(),e.createElementBlock("div",gV,[e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isItalic,tooltip:!0}),style:e.normalizeStyle({background:r.isItalic?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.isItalic?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.isItalic?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[30]||(o[30]=s=>{r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.activeShape=void 0,r.isItalic=!r.isItalic,l.setCurrentStyleOfSelectedText()})},[pV,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeTextItalic),5)):e.createCommentVNode("",!0)],6)])):e.createCommentVNode("",!0),r.isTextMode?(e.openBlock(),e.createElementBlock("div",yV,[e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isUnderline,tooltip:!0}),style:e.normalizeStyle({background:r.isUnderline?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.isUnderline?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.isUnderline?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[31]||(o[31]=s=>{r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.activeShape=void 0,r.isUnderline=!r.isUnderline,l.setCurrentStyleOfSelectedText()})},[mV,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeTextUnderline),5)):e.createCommentVNode("",!0)],6)])):e.createCommentVNode("",!0),e.createElementVNode("div",bV,[e.withDirectives(e.createElementVNode("input",{type:"color",id:"colorPicker",name:"colorPicker","onUpdate:modelValue":o[32]||(o[32]=s=>r.selectedColor=s),onInput:o[33]||(o[33]=(...s)=>l.setColorOfSelectedShape&&l.setColorOfSelectedShape(...s)),style:e.normalizeStyle(`height: 30px; width: 30px; border-radius: ${l.FINAL_CONFIG.style.buttons.borderRadius}px; cursor: pointer`)},null,36),[[e.vModelText,r.selectedColor]]),l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeColor),5)):e.createCommentVNode("",!0)]),e.createElementVNode("div",kV,[e.createElementVNode("label",CV,e.toDisplayString(l.FINAL_CONFIG.translations.colorAlpha)+": "+e.toDisplayString(r.transparency>98?100:r.transparency)+" % ",1),e.withDirectives(e.createElementVNode("input",{id:"colorTransparency",name:"colorTransparency",type:"range","onUpdate:modelValue":o[34]||(o[34]=s=>r.transparency=s),onInput:o[35]||(o[35]=(...s)=>l.setTransparencyOfSelectedShape&&l.setTransparencyOfSelectedShape(...s)),min:0,max:100,style:{width:"100px"}},null,544),[[e.vModelText,r.transparency]])])])],36)]),e.createElementVNode("div",wV,[e.renderSlot(t.$slots,"default",{},void 0,!0),r.isSummaryOpen?(e.openBlock(),e.createElementBlock("svg",{id:"annotatorSvg",key:r.step,ref:"mainSvg",class:e.normalizeClass({draw:!0,"draw--free":r.activeShape==="line"}),style:e.normalizeStyle([`cursor:${l.cursorClass}; font-family: Helvetica; z-index: 100000000;`,{position:"absolute",top:"0",left:"0"}]),viewBox:`0 0 ${r.svgWidth} ${r.svgHeight}`,width:r.sourceWidth,height:r.sourceHeight,onPointerdown:o[38]||(o[38]=s=>l.chooseAction(s)),onPointerup:o[39]||(o[39]=(...s)=>l.resetDraw&&l.resetDraw(...s)),onTouchend:o[40]||(o[40]=(...s)=>l.resetDraw&&l.resetDraw(...s)),onTouchstart:o[41]||(o[41]=s=>{l.setPointer(s),l.clickSvg(s)}),onPointermove:o[42]||(o[42]=s=>{l.setPointer(s),l.chooseMove(s)}),onPointerout:o[43]||(o[43]=s=>{r.preventEdit=!0,r.hoveredShapeId=void 0}),onPointerover:o[44]||(o[44]=s=>l.allowEditAndHoverShapes(s)),onClick:o[45]||(o[45]=s=>l.clickSvg(s))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.userShapes,(s,u)=>(e.openBlock(),e.createElementBlock("g",{key:`shape_${u}`,id:s.id,innerHTML:s,onClick:o[37]||(o[37]=h=>{l.clickShape(h),r.isMoveMode=!1})},null,8,xV))),128))],46,BV)):e.createCommentVNode("",!0),r.isPrinting?(e.openBlock(),e.createElementBlock("svg",{key:1,style:{position:"absolute",top:"0",left:"0"},height:r.sourceHeight,viewBox:`0 0 ${r.svgWidth} ${r.svgHeight}`,width:r.sourceWidth},[e.createElementVNode("circle",{class:"animated-circle-print",cx:r.svgWidth/2,cy:r.svgHeight/2,r:"50",stroke:"#6376DD","stroke-width":"10",fill:"none"},null,8,NV)],8,FV)):e.createCommentVNode("",!0)],512)])}const Ag=vt(e7,[["render",_V],["__scopeId","data-v-3611298e"]]),SV=Object.freeze(Object.defineProperty({__proto__:null,default:Ag},Symbol.toStringTag,{value:"Module"})),jo=t=>(e.pushScopeId("data-v-3e41118a"),t=t(),e.popScopeId(),t),LV={key:0,class:"vue-ui-rating-title",style:{width:"100%"}},EV=["xmlns","stroke"],IV={id:"vueUiSmiley0"},$V=["stop-color"],MV=["stop-color"],UV=jo(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),VV=["fill"],QV=["stroke"],TV=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-3e41118a></path>',5),OV=[TV],zV=["xmlns","viewBox","stroke"],DV={id:"vueUiSmiley0"},PV=["stop-color"],HV=["stop-color"],RV=jo(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),GV=["fill"],WV=["viewBox","stroke"],jV=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-3e41118a></path>',5),KV=[jV],XV=["xmlns","stroke"],qV={id:"vueUiSmiley1"},YV=["stop-color"],JV=["stop-color"],ZV=jo(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),eQ=["fill"],tQ=["xmlns","stroke"],oQ=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9 15l6 0" data-v-3e41118a></path>',5),lQ=[oQ],aQ=["xmlns","viewBox","stroke"],rQ={id:"vueUiSmiley1"},nQ=["stop-color"],sQ=["stop-color"],iQ=jo(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),uQ=["fill"],AQ=["viewBox","stroke"],cQ=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9 15l6 0" data-v-3e41118a></path>',5),dQ=[cQ],hQ=["xmlns","stroke"],fQ={id:"vueUiSmiley2"},vQ=["stop-color"],gQ=["stop-color"],pQ=jo(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),yQ=["fill"],mQ=["xmlns","stroke"],bQ=jo(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),kQ=jo(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),CQ=jo(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),wQ=jo(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),BQ=[bQ,kQ,CQ,wQ],xQ=["xmlns","viewBox","stroke"],FQ=jo(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),NQ={id:"vueUiSmiley2"},_Q=["stop-color"],SQ=["stop-color"],LQ=["fill"],EQ=["xmlns","viewBox","stroke"],IQ=jo(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),$Q=jo(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),MQ=jo(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),UQ=jo(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),VQ=[IQ,$Q,MQ,UQ],QQ=["xmlns","stroke"],TQ={id:"vueUiSmiley3"},OQ=["stop-color"],zQ=["stop-color"],DQ=jo(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),PQ=["fill"],HQ=["xmlns","stroke"],RQ=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-3e41118a></path>',5),GQ=[RQ],WQ=["xmlns","viewBox","stroke"],jQ=jo(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),KQ={id:"vueUiSmiley3"},XQ=["stop-color"],qQ=["stop-color"],YQ=["fill"],JQ=["xmlns","viewBox","stroke"],ZQ=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-3e41118a></path>',5),eT=[ZQ],tT=["xmlns","stroke"],oT={id:"vueUiSmiley4"},lT=["stop-color"],aT=["stop-color"],rT=jo(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),nT=["fill"],sT=["xmlns","stroke"],iT=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 9l.01 0" data-v-3e41118a></path><path d="M15 9l.01 0" data-v-3e41118a></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-3e41118a></path>',5),uT=[iT],AT=["xmlns","viewBox","stroke"],cT=jo(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),dT={id:"vueUiSmiley4"},hT=["stop-color"],fT=["stop-color"],vT=["fill"],gT=["xmlns","viewBox","stroke"],pT=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 9l.01 0" data-v-3e41118a></path><path d="M15 9l.01 0" data-v-3e41118a></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-3e41118a></path>',5),yT=[pT],mT={__name:"vue-ui-smiley",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["rate"],setup(t,{expose:o,emit:a}){const n=t,{vue_ui_smiley:r}=ft();e.onMounted(()=>{xt(n.dataset)&&je({componentName:"VueUiSmiley",type:"dataset"})});const l=e.ref(!1),s=e.ref(void 0),u=e.computed(()=>Je({userConfig:n.config,defaultConfig:r})),h=e.computed(()=>typeof n.dataset.rating=="object"&&!Array.isArray(n.dataset.rating)?w(n.dataset.rating):n.dataset.rating||null),f=e.computed(()=>typeof n.dataset.rating=="object"&&!Array.isArray(n.dataset.rating)),c=e.ref(h.value),p=e.ref(u.value.readonly);function w(B){if(B===null)return null;let U=0,$=0;for(const W in B){const L=parseInt(W),b=B[W];U+=L*b,$+=b}return $===0?0:U/$}function A(B){const U=c.value-B,$=24;switch(!0){case U<0:return 0;case U>1:return 1*$;default:return U*$}}function k(B){p.value||(c.value=B,a("rate",B))}function y(){return c.value}function i(B=!0){p.value=B}o({getData:y,toggleReadonly:i});function v(B){return u.value.readonly?u.value.style.colors.inactive[B]:c.value===B+1?u.value.style.icons.useGradient&&u.value.style.icons.filled?`url(#vueUiSmiley${B})`:u.value.style.colors.active[B]:s.value!==void 0&&s.value===B?u.value.style.icons.useGradient&&u.value.style.icons.filled?`url(#vueUiSmiley${B})`:u.value.style.colors.active[B]:u.value.style.colors.inactive[B]}return(B,U)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`background:${u.value.style.backgroundColor};font-family:${u.value.style.fontFamily};width:100%;`),onMouseover:U[20]||(U[20]=$=>l.value=!0),onMouseleave:U[21]||(U[21]=$=>{l.value=!1,s.value=void 0})},[u.value.style.title.text?(e.openBlock(),e.createElementBlock("div",LV,[e.createElementVNode("div",{style:e.normalizeStyle(`color:${u.value.style.title.color};font-weight:${u.value.style.title.bold?"bold":"normal"};text-align:${u.value.style.title.textAlign};margin-bottom:${u.value.style.title.offsetY}px;font-size:${u.value.style.title.fontSize}px`)},e.toDisplayString(u.value.style.title.text),5),u.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`color:${u.value.style.title.subtitle.color};font-size:${u.value.style.title.subtitle.fontSize}px;text-align:${u.value.style.title.textAlign};margin-bottom:${u.value.style.title.subtitle.offsetY}px;font-weight:${u.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(u.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.value.style.rating.show&&u.value.style.rating.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:100%;text-align:center;margin-bottom:${u.value.style.rating.offsetY}px;font-size:${u.value.style.rating.fontSize}px;font-weight:${u.value.style.rating.bold?"bold":"normal"};margin-left:${u.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(c.value)?"":c.value.toFixed(u.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"vue-ui-smiley-wrapper",style:e.normalizeStyle(`overflow:visible;height:${u.value.style.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)},[u.value.style.rating.show&&u.value.style.rating.position==="left"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${u.value.style.rating.offsetY}px;font-size:${u.value.style.rating.fontSize}px;font-weight:${u.value.style.rating.bold?"bold":"normal"};padding-right:${u.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(c.value)?"":c.value.toFixed(u.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===1}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;
704
- position:relative`),onMouseenter:U[0]||(U[0]=$=>s.value=0),onMouseleave:U[1]||(U[1]=$=>s.value=void 0),onClick:U[2]||(U[2]=$=>k(1)),onKeyup:U[3]||(U[3]=e.withKeys($=>k(1),["enter"]))},[u.value.style.tooltip.show&&f.value&&p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===0?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"1",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[1]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{transition:"all 0.1s ease-in-out",position:"absolute",top:"0",left:"0"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(0),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",IV,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.active[0],.05)},null,8,$V),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.active[0]},null,8,MV)])]),UV,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:v(0)},null,8,VV)],8,EV)):(e.openBlock(),e.createElementBlock("svg",{key:2,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(0),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},OV,8,QV)),u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{transition:"all 0.1s ease-in-out",position:"absolute",top:"0",left:"0"},height:"100%",viewBox:`0 0 ${A(0)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[0],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",DV,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[0],.05)},null,8,PV),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[0]},null,8,HV)])]),RV,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley0)":u.value.style.colors.activeReadonly[0]},null,8,GV)],8,zV)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(0)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[0],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},KV,8,WV)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===2}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:U[4]||(U[4]=$=>s.value=1),onMouseleave:U[5]||(U[5]=$=>s.value=void 0),onClick:U[6]||(U[6]=$=>k(2)),onKeyup:U[7]||(U[7]=e.withKeys($=>k(2),["enter"]))},[u.value.style.tooltip.show&&f.value&&p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===1?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"2",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[2]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(1),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",qV,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.active[1],.05)},null,8,YV),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.active[1]},null,8,JV)])]),ZV,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:v(1)},null,8,eQ)],8,XV)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(1),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},lQ,8,tQ)),u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(1)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[1],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",rQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[1],.05)},null,8,nQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[1]},null,8,sQ)])]),iQ,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley1)":u.value.style.colors.activeReadonly[1]},null,8,uQ)],8,aQ)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(1)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[1],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},dQ,8,AQ)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===3}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:U[8]||(U[8]=$=>s.value=2),onMouseleave:U[9]||(U[9]=$=>s.value=void 0),onClick:U[10]||(U[10]=$=>k(3)),onKeyup:U[11]||(U[11]=e.withKeys($=>k(3),["enter"]))},[u.value.style.tooltip.show&&f.value&&p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===2?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"3",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[3]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(2),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",fQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[2],.05)},null,8,vQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[2]},null,8,gQ)])]),pQ,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:v(2)},null,8,yQ)],8,hQ)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(2),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},BQ,8,mQ)),u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(2)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[2],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[FQ,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",NQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[2],.05)},null,8,_Q),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[2]},null,8,SQ)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley2)":u.value.style.colors.activeReadonly[2]},null,8,LQ)],8,xQ)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(2)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[2],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},VQ,8,EQ)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===4}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:U[12]||(U[12]=$=>s.value=3),onMouseleave:U[13]||(U[13]=$=>s.value=void 0),onClick:U[14]||(U[14]=$=>k(4)),onKeyup:U[15]||(U[15]=e.withKeys($=>k(4),["enter"]))},[u.value.style.tooltip.show&&f.value&&p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===3?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"4",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[4]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(3),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",TQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[3],.95)},null,8,OQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[3]},null,8,zQ)])]),DQ,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:v(3)},null,8,PQ)],8,QQ)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(3),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},GQ,8,HQ)),u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(3)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[3],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[jQ,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",KQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[3],.95)},null,8,XQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[3]},null,8,qQ)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley3)":u.value.style.colors.activeReadonly[3]},null,8,YQ)],8,WQ)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(3)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[3],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},eT,8,JQ)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===5}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:U[16]||(U[16]=$=>s.value=4),onMouseleave:U[17]||(U[17]=$=>s.value=void 0),onClick:U[18]||(U[18]=$=>k(5)),onKeyup:U[19]||(U[19]=e.withKeys($=>k(5),["enter"]))},[u.value.style.tooltip.show&&f.value&&p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===4?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"5",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[5]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(4),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",oT,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[4],.9)},null,8,lT),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[4]},null,8,aT)])]),rT,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:v(4)},null,8,nT)],8,tT)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(4),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},uT,8,sT)),u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(4)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[4],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[cT,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",dT,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[4],.9)},null,8,hT),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[4]},null,8,fT)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley4)":u.value.style.colors.activeReadonly[4]},null,8,vT)],8,AT)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(4)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[4],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},yT,8,gT)):e.createCommentVNode("",!0)],38),u.value.style.rating.show&&u.value.style.rating.position==="right"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${u.value.style.rating.offsetY}px;font-size:${u.value.style.rating.fontSize}px;font-weight:${u.value.style.rating.bold?"bold":"normal"};padding-left:${u.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(c.value)?"":c.value.toFixed(u.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0)],4),u.value.style.rating.show&&u.value.style.rating.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(`width:100%;text-align:center;margin-top:${u.value.style.rating.offsetY}px;font-size:${u.value.style.rating.fontSize}px;font-weight:${u.value.style.rating.bold?"bold":"normal"};margin-left:${u.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(c.value)?"":c.value.toFixed(u.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0)],36))}},cg=vt(mT,[["__scopeId","data-v-3e41118a"]]),bT=Object.freeze(Object.defineProperty({__proto__:null,default:cg},Symbol.toStringTag,{value:"Module"})),kT=["id"],CT=["xmlns","viewBox"],wT=["cx","cy","r","stroke","stroke-width"],BT={key:0},xT=["stroke","d","stroke-width"],FT={key:1},NT=["stroke","x1","x2","y1","y2"],_T=["text-anchor","transform","x","y","onClick","font-weight","font-size","fill"],ST=["cx","cy","fill","onClick","r"],LT={__name:"vue-ui-relation-circle",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t;e.useCssVars(ne=>({"69fb0529":te.value,"3158da88":V.value,"2b571f2c":I.value}));const{vue_ui_relation_circle:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length),l=e.ref(it()),s=e.ref(0),u=e.ref(null),h=e.ref(null),f=e.computed(()=>{const ne=Je({userConfig:a.config,defaultConfig:n});return ne.theme?{...Je({userConfig:Nt.vue_ui_relation_circle[ne.theme]||a.config,defaultConfig:ne}),customPalette:Pt[ne.theme]||Me}:ne}),{isPrinting:c,isImaging:p,generatePdf:w,generateImage:A}=zt({elementId:`relation_circle_${l.value}`,fileName:f.value.style.title.text||"vue-ui-relation-circle"}),k=e.computed(()=>so(f.value.customPalette)),y=e.ref([]),i=e.ref([]),v=e.ref({}),B=e.ref([]),U=e.ref(0),$=e.computed(()=>a.dataset.slice(0,f.value.style.limit)),T=e.ref(f.value.style.size),W=e.ref({height:f.value.style.size,width:f.value.style.size}),L=e.computed({get(){return T.value*f.value.style.circle.radiusProportion},set(ne){return ne}}),b=e.computed(()=>f.value.style.links.curved),V=e.computed(()=>`${f.value.style.animation.speedMs}ms`),te=e.computed(()=>L.value*2),I=e.computed(()=>L.value*4),S=e.ref(null);e.onMounted(()=>{if(xt(a.dataset)?je({componentName:"VueUiRelationCircle",type:"dataset"}):a.dataset.forEach((fe,Z)=>{Wt({datasetObject:fe,requiredAttributes:["id","label","relations","weights"]}).forEach(J=>{je({componentName:"VueUiRelationCircle",type:"datasetSerieAttribute",property:J,index:Z})})}),f.value.responsive){const fe=Bo(()=>{const{width:Z,height:J}=xo({chart:u.value,title:f.value.style.title.text?h.value:null});T.value=Math.min(Z,J),W.value.width=Z,W.value.height=J,L.value=T.value*f.value.style.circle.radiusProportion,y.value=[],i.value=[],ee(),le()});S.value=new ResizeObserver(fe),S.value.observe(u.value.parentNode)}else ee(),le();document.getElementById(`relation_circle_${l.value}`).addEventListener("click",j)}),e.onBeforeUnmount(()=>{document.getElementById(`relation_circle_${l.value}`).removeEventListener("click",j),S.value&&S.value.disconnect()});function j(ne){const fe=ne.target;fe&&Array.from(fe.classList).includes("vue-ui-user-options")||fe&&Array.from(fe.classList).includes("vue-ui-user-options-summary")||fe&&Array.from(fe.classList).includes("vue-data-ui-button")||fe&&Array.from(fe.classList).includes("vue-ui-relation-circle-legend")||(v.value={},B.value=[])}function ee(){const ne=6.28319/$.value.length,fe=360/$.value.length;let Z=0,J=0;$.value.forEach((z,P)=>{const ge=L.value*Math.cos(Z)+W.value.width/2,M=L.value*Math.sin(Z)+W.value.height/2+f.value.style.circle.offsetY;y.value.push({x:ge,y:M,...z,color:z.color?z.color:k.value[P]?k.value[P]:Me[P],regAngle:J}),Z+=ne,J+=fe})}function le(){y.value.forEach(ne=>{y.value.filter(Z=>Z.relations.includes(ne.id)).forEach((Z,J)=>{i.value.push({weight:ne.weights&&ne.weights[J]?ne.weights[J]:1,relationId:`${ne.id}_${Z.id}`,x1:ne.x,y1:ne.y,x2:Z.x,y2:Z.y,colorSource:ne.color,colorTarget:Z.color,...ne})})})}const he=e.computed(()=>Math.max(...i.value.map(ne=>ne.weight)));function oe(ne){return Object.hasOwn(v.value,"x")?B.value.includes(ne.id)?"opacity:1":"opacity:0.1":"opacity:1"}function R(ne){return Object.hasOwn(v.value,"x")?ne.colorTarget:ne.colorSource}function D(ne){return Object.hasOwn(v.value,"x")?B.value.includes(ne.id)&&ne.relationId===`${ne.id}_${v.value.id}`||ne.relationId===`${v.value.id}_${ne.id}`?`opacity:1;stroke-width:${Q(ne)}`:"opacity: 0":"opacity: 1"}function K(ne){return ne.regAngle>90&&ne.regAngle<270?"end":"start"}function q(ne){return ne.regAngle>90&&ne.regAngle<270?ne.x-5:ne.x+5}function m(ne){return Object.hasOwn(v.value,"x")?v.value.id===ne.id||B.value.includes(ne.id)?"opacity:1":"opacity:0.2":"opacity:1"}function N(ne){return ne.regAngle>90&&ne.regAngle<270?`rotate(${ne.regAngle+180},${ne.x},${ne.y})`:`rotate(${ne.regAngle},${ne.x},${ne.y})`}function x(ne){U.value=360-ne.regAngle,v.value.id&&ne.id===v.value.id?(v.value={},B.value=[]):(v.value=ne,B.value=[...ne.relations])}function Q(ne){return ne.weight/he.value*f.value.style.links.maxWidth}const Y=e.ref(!1);function me(ne){Y.value=ne,s.value+=1}return o({generatePdf:w,generateImage:A}),(ne,fe)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"relationCircleChart",ref:u,class:"vue-ui-relation-circle",style:e.normalizeStyle(`width:100%;background:${f.value.style.backgroundColor};text-align:center;${f.value.responsive?"height: 100%":""}`),id:`relation_circle_${l.value}`},[f.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:h,style:e.normalizeStyle(`width:100%;background:${f.value.style.backgroundColor}`)},[e.createVNode(Xt,{config:{title:{cy:"relation-div-title",...f.value.style.title},subtitle:{cy:"relation-div-subtitle",...f.value.style.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),f.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{ref:"details",key:`user_options_${s.value}`,backgroundColor:f.value.style.backgroundColor,color:f.value.style.color,isPrinting:e.unref(c),isImaging:e.unref(p),uid:l.value,hasPdf:f.value.userOptions.buttons.pdf,hasImg:f.value.userOptions.buttons.img,hasFullscreen:f.value.userOptions.buttons.img,hasXls:!1,isFullscreen:Y.value,titles:{...f.value.userOptions.buttonTitles},chartElement:u.value,onToggleFullscreen:me,onGeneratePdf:e.unref(w),onGenerateImage:e.unref(A)},e.createSlots({_:2},[ne.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(ne.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,ne.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(ne.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,ne.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:Z,isFullscreen:J})=>[e.renderSlot(ne.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:Z,isFullscreen:J})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass([{"vue-data-ui-fullscreen--on":Y.value,"vue-data-ui-fulscreen--off":!Y.value},"relation-circle"]),viewBox:`0 0 ${W.value.width<=0?10:W.value.width} ${W.value.height<=0?10:W.value.height}`,width:"100%",style:e.normalizeStyle(`user-select:none; background:${f.value.style.backgroundColor}`)},[e.createElementVNode("circle",{cx:(W.value.width<=0?1e-4:W.value.width)/2,cy:(W.value.height<=0?1e-4:W.value.height)/2+f.value.style.circle.offsetY,r:L.value<=0?1e-4:L.value,stroke:f.value.style.circle.stroke,"stroke-width":f.value.style.circle.strokeWidth,fill:"transparent",class:"main-circle"},null,8,wT),b.value?(e.openBlock(),e.createElementBlock("g",BT,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(Z,J)=>(e.openBlock(),e.createElementBlock("path",{key:`relation_${J}`,style:e.normalizeStyle(D(Z)),stroke:R(Z),class:e.normalizeClass(["relation",{"vue-ui-relation-circle-selected":v.value.hasOwnProperty("id")&&B.value.includes(Z.id)}]),d:`M${Z.x1},${Z.y1} C${Z.x1},${Z.y1} ${W.value.width/2},${W.value.height/2+f.value.style.circle.offsetY} ${Z.x2},${Z.y2}`,fill:"none","stroke-width":Q(Z),"stroke-linecap":"round"},null,14,xT))),128))])):(e.openBlock(),e.createElementBlock("g",FT,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(Z,J)=>(e.openBlock(),e.createElementBlock("line",{key:`relation_${J}`,stroke:R(Z),style:e.normalizeStyle(D(Z)),x1:Z.x1,x2:Z.x2,y1:Z.y1,y2:Z.y2,class:e.normalizeClass({"vue-ui-relation-circle-selected":v.value.hasOwnProperty("id")&&B.value.includes(Z.id)}),"stroke-linecap":"round"},null,14,NT))),128))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(Z,J)=>(e.openBlock(),e.createElementBlock("text",{key:`plot_text_${J}`,"text-anchor":K(Z),transform:N(Z),x:q(Z),y:Z.y+5,onClick:z=>x(Z),class:"vue-ui-relation-circle-legend","transform-origin":"start","font-weight":v.value.id===Z.id?"900":"400",style:e.normalizeStyle(`font-family:${f.value.style.fontFamily};${m(Z)}`),"font-size":f.value.style.labels.fontSize,fill:f.value.style.labels.color},e.toDisplayString(Z.label),13,_T))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(Z,J)=>(e.openBlock(),e.createElementBlock("circle",{cx:Z.x,cy:Z.y,key:`plot_${J}`,style:e.normalizeStyle(oe(Z)),class:"vue-ui-relation-circle-plot",fill:f.value.style.plot.color,onClick:z=>x(Z),r:f.value.style.plot.radius},null,12,ST))),128)),e.renderSlot(ne.$slots,"svg",{svg:W.value},void 0,!0)],14,CT)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"relationCircle",style:{backgroundColor:f.value.style.backgroundColor,relationCircle:{color:"#CCCCCC"}}}},null,8,["config"]))],12,kT))}},dg=vt(LT,[["__scopeId","data-v-44982e30"]]),ET=Object.freeze(Object.defineProperty({__proto__:null,default:dg},Symbol.toStringTag,{value:"Module"})),IT=["id"],$T={key:0,style:"width:100%"},MT=["xmlns","viewBox"],UT={id:"vueUiPill",clipPathUnits:"objectBoundingBox"},VT=["fill"],QT=["id"],TT=["stop-color"],OT=["stop-color"],zT=["stop-color"],DT={"clip-path":"url(#vueUiPill)"},PT=["x","y","height","width"],HT=["x","y","height","width","fill"],RT=["x1","x2","y1","y2","stroke-width","stroke"],GT=["x1","x2","y1","y2","stroke-width","stroke"],WT=["x1","x2","y1","y2","stroke-width","stroke"],jT=["x1","x2","y1","y2","stroke-width","stroke"],KT=["x1","x2","y1","y2","stroke-width","stroke"],XT=["x1","x2","y1","y2","stroke-width","stroke"],qT=["x1","x2","y1","y2","stroke-width","stroke"],YT=["x1","x2","y1","y2","stroke-width","stroke"],JT=["x","y","height","width"],ZT=["y","x","fill","font-size","font-weight"],eO={__name:"vue-ui-thermometer",props:{dataset:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t;e.useCssVars(le=>({efcaaea8:te.value,"67dbf562":V.value,bd690a62:b.value}));const{vue_ui_thermometer:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length);e.onMounted(()=>{xt(a.dataset)?je({componentName:"VueUiThermometer",type:"dataset"}):Wt({datasetObject:a.dataset,requiredAttributes:["value","from","to"]}).forEach(le=>{je({componentName:"VueUiThermometer",type:"datasetAttribute",property:le})})});const l=e.ref(it()),s=e.ref(null),u=e.ref(0),h=e.computed(()=>{const le=Je({userConfig:a.config,defaultConfig:n});return le.theme?{...Je({userConfig:Nt.vue_ui_thermometer[le.theme]||a.config,defaultConfig:le}),customPalette:Pt[le.theme]||Me}:le}),{isPrinting:f,isImaging:c,generatePdf:p,generateImage:w}=zt({elementId:`thermometer__${l.value}`,fileName:h.value.style.title.text||"vue-ui-thermometer"}),A=e.computed(()=>so(h.value.customPalette)),k=e.computed(()=>h.value.style.chart.thermometer.width),y=e.computed(()=>a.dataset.steps||10),i=e.ref({top:h.value.style.chart.padding.top,left:h.value.style.chart.padding.left,right:h.value.style.chart.padding.right,bottom:h.value.style.chart.padding.bottom});function v(le,he,oe){const R=[],D=B(le),K=B(he);for(let q=0;q<oe;q++){const m=U(D.red,K.red,q,oe),N=U(D.green,K.green,q,oe),x=U(D.blue,K.blue,q,oe),Q=`#${$(m)}${$(N)}${$(x)}`;R.push(Q)}return R}function B(le){const he=le.slice(1);return{red:parseInt(he.slice(0,2),16),green:parseInt(he.slice(2,4),16),blue:parseInt(he.slice(4,6),16)}}function U(le,he,oe,R){return Math.round(le+(he-le)*oe/R)}function $(le){return le.toString(16).padStart(2,"0")}const T=e.computed(()=>{const le=k.value+i.value.left+i.value.right,he=h.value.style.chart.height;return{width:le,left:i.value.left,right:le-i.value.right,top:i.value.top,bottom:he-i.value.bottom,height:he}}),W=e.computed(()=>T.value),L=e.computed(()=>{const le=a.dataset.from<0?Math.abs(a.dataset.from):a.dataset.from,he=a.dataset.to<0?Math.abs(a.dataset.to):a.dataset.to;let oe=0;return a.dataset.to>0?oe=le+he:le>he?oe=le-he:oe=he-le,(1-(Math.abs(a.dataset.from)+a.dataset.value)/oe)*(T.value.height-i.value.top-i.value.bottom)}),b=e.computed(()=>`${L.value}px`),V=e.computed(()=>`${T.value.height-h.value.style.chart.padding.bottom-i.value.top}px`),te=e.computed(()=>`${h.value.style.chart.animation.speedMs}ms`),I=e.computed(()=>{if(a.dataset.colors){if(!a.dataset.colors.from)return v(A.value[0]||Me[0],At(a.dataset.colors.to),y.value||10);if(!a.dataset.colors.to)return v(At(a.dataset.colors.from),A.value[1]||Me[1],y.value||10)}else return v(A.value[1]||Me[1],A.value[0]||Me[0],y.value||10);return v(At(a.dataset.colors.from),At(a.dataset.colors.to),y.value||10)}),S=e.computed(()=>{const le=[];let he=0;const oe=T.value.height-i.value.top-i.value.bottom;for(let R=0;R<oe-1;R+=oe/y.value)le.push({x:T.value.left,y:T.value.top+R,qYLess:T.value.top+R+oe/y.value/4,halfY:T.value.top+R+oe/y.value/2,qYMore:T.value.top+R+oe/y.value/4*3,color:I.value[he],height:oe/y.value}),he+=1;return le}),j=e.ref(!1);function ee(le){j.value=le,u.value+=1}return o({generatePdf:p,generateImage:w}),(le,he)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"thermoChart",ref:s,class:e.normalizeClass(`vue-ui-thermometer ${j.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`width:100%;background:${h.value.style.chart.backgroundColor};color:${h.value.style.chart.color};font-family:${h.value.style.fontFamily}`),id:`thermometer__${l.value}`},[h.value.style.title.text?(e.openBlock(),e.createElementBlock("div",$T,[e.createVNode(Xt,{config:{title:{cy:"thermometer-div-title",...h.value.style.title},subtitle:{cy:"thermometer-div-subtitle",...h.value.style.title.subtitle}}},null,8,["config"])])):e.createCommentVNode("",!0),h.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{ref:"details",key:`user_options_${u.value}`,backgroundColor:h.value.style.chart.backgroundColor,color:h.value.style.chart.color,isImaging:e.unref(c),isPrinting:e.unref(f),uid:l.value,hasPdf:h.value.userOptions.buttons.pdf,hasImg:h.value.userOptions.buttons.img,hasFullscreen:h.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:j.value,titles:{...h.value.userOptions.buttonTitles},chartElement:s.value,onToggleFullscreen:ee,onGeneratePdf:e.unref(p),onGenerateImage:e.unref(w)},e.createSlots({_:2},[le.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(le.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,le.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(le.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,le.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:oe,isFullscreen:R})=>[e.renderSlot(le.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:oe,isFullscreen:R})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":j.value,"vue-data-ui-fulscreen--off":!j.value}),width:"100%",viewBox:`0 0 ${T.value.width} ${T.value.height}`,style:e.normalizeStyle(`background:${h.value.style.chart.backgroundColor}`)},[e.createElementVNode("defs",null,[e.createElementVNode("clipPath",UT,[e.createElementVNode("rect",{x:"0",y:"0",width:"1",height:"1",rx:"0.5",ry:"0.07",fill:h.value.style.chart.backgroundColor},null,8,VT)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(oe,R)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`vueUiThermometerGradient_${R}_${l.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":oe.color},null,8,TT),e.createElementVNode("stop",{offset:"50%","stop-color":`${oe.color}${e.unref(Xe)[100-h.value.style.chart.graduations.gradient.intensity]}`},null,8,OT),e.createElementVNode("stop",{offset:"100%","stop-color":oe.color},null,8,zT)],8,QT))),256))]),e.createElementVNode("g",DT,[e.createElementVNode("rect",{x:T.value.left,y:T.value.top,height:T.value.height-i.value.top-i.value.bottom,width:T.value.width-i.value.left-i.value.right,fill:"#FFFFFF"},null,8,PT),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(oe,R)=>(e.openBlock(),e.createElementBlock("g",{key:`graduation_${R}`},[e.createElementVNode("rect",{x:oe.x,y:oe.y,height:oe.height,width:T.value.width-h.value.style.chart.padding.left-h.value.style.chart.padding.right,fill:h.value.style.chart.graduations.gradient.show?`url(#vueUiThermometerGradient_${R}_${l.value})`:oe.color,"shape-rendering":"crispEdges"},null,8,HT),h.value.style.chart.graduations.show&&["both","left"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:oe.x,x2:oe.x+10,y1:oe.y,y2:oe.y,"stroke-width":h.value.style.chart.graduations.strokeWidth,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,RT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[h.value.style.chart.graduations.show&&["both","left"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:oe.x,x2:oe.x+5,y1:oe.halfY,y2:oe.halfY,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,GT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","left"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:oe.x,x2:oe.x+2.5,y1:oe.qYLess,y2:oe.qYLess,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,WT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","left"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:oe.x,x2:oe.x+2.5,y1:oe.qYMore,y2:oe.qYMore,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,jT)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","right"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:T.value.right,x2:T.value.right-10,y1:oe.y,y2:oe.y,"stroke-width":h.value.style.chart.graduations.strokeWidth,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,KT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[h.value.style.chart.graduations.show&&["both","right"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:T.value.right,x2:T.value.right-5,y1:oe.halfY,y2:oe.halfY,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,XT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","right"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:T.value.right,x2:T.value.right-2.5,y1:oe.qYLess,y2:oe.qYLess,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,qT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","right"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:T.value.right,x2:T.value.right-2.5,y1:oe.qYMore,y2:oe.qYMore,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,YT)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("rect",{class:e.normalizeClass({"vue-ui-thermometer-temperature":h.value.style.chart.animation.use}),x:T.value.left,y:T.value.top,height:L.value,width:T.value.width-h.value.style.chart.padding.left-h.value.style.chart.padding.right,fill:"#FFFFFF66"},null,10,JT)]),e.createElementVNode("text",{class:e.normalizeClass({"vue-ui-thermometer-temperature-value":h.value.style.chart.animation.use}),y:L.value+T.value.top+h.value.style.chart.label.fontSize/3,x:T.value.left-10,"text-anchor":"end",fill:h.value.style.chart.label.color,"font-size":h.value.style.chart.label.fontSize,"font-weight":h.value.style.chart.label.bold?"bold":"normal"},e.toDisplayString(e.unref(Ge)({p:h.value.style.chart.label.prefix,v:t.dataset.value,s:h.value.style.chart.label.suffix,r:h.value.style.chart.label.rounding})),11,ZT),e.renderSlot(le.$slots,"svg",{svg:W.value},void 0,!0)],14,MT)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"thermometer",style:{backgroundColor:h.value.style.chart.backgroundColor,thermometer:{color:"#CCCCCC"}}}},null,8,["config"]))],14,IT))}},hg=vt(eO,[["__scopeId","data-v-eef95fe3"]]),tO=Object.freeze(Object.defineProperty({__proto__:null,default:hg},Symbol.toStringTag,{value:"Module"})),oO=["xmlns","viewBox"],lO=["id"],aO=["stop-color"],rO=["stop-color"],nO=["stop-color"],sO={id:"stackPill",clipPathUnits:"objectBoundingBox"},iO=["fill"],uO={"clip-path":"url(#stackPill)"},AO=["height","width","fill"],cO=["onClick","x","width","height","fill","stroke"],dO=["onClick"],hO={style:{display:"flex","flex-direction":"row","align-items":"center",gap:"4px","justify-content":"center"}},fO=["height","width"],vO=["fill"],gO={__name:"vue-ui-sparkstackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(t,{emit:o}){const a=t,{vue_ui_sparkstackbar:n}=ft(),r=e.computed(()=>!!a.dataset&&a.dataset.length),l=e.ref(it()),s=e.computed(()=>{const B=Je({userConfig:a.config,defaultConfig:n});return B.theme?{...Je({userConfig:Nt.vue_ui_sparkstackbar[B.theme]||a.config,defaultConfig:B}),customPalette:Pt[B.theme]||Me}:B}),u=e.computed(()=>so(s.value.customPalette)),h=e.ref(a.dataset.map((B,U)=>({...B,value:s.value.style.animation.show?0:B.value||0,color:B.color?At(B.color):u.value[U]||Me[U]||Me[U%Me.length]}))),f=e.ref(!0);e.onMounted(()=>{if(xt(a.dataset)?je({componentName:"VueUiSparkStackbar",type:"dataset"}):a.dataset.forEach((B,U)=>{Wt({datasetObject:B,requiredAttributes:["name","value"]}).forEach($=>{je({componentName:"VueUiSparkStackbar",type:"datasetSerieAttribute",property:$,index:U})})}),s.value.style.animation.show){let W=function(){T+=$/B,T<$?(h.value=h.value.map((L,b)=>({...L,value:L.value+=U[b],color:L.color?At(L.color):u.value[b]||Me[b]||Me[b%Me.length]})),requestAnimationFrame(W)):(f.value=!1,h.value=a.dataset.map((L,b)=>({...L,value:L.value||0,color:L.color?At(L.color):u.value[b]||Me[b]||Me[b%Me.length],id:it()})))};const B=s.value.style.animation.animationFrames,U=a.dataset.map((L,b)=>L.value/B),$=a.dataset.map(L=>L.value||0).reduce((L,b)=>L+b,0);let T=0;f.value=!0,W()}});const c=e.ref({width:500,height:16}),p=e.ref([]),w=e.computed(()=>a.dataset.map(B=>B.value||0).filter((B,U)=>!p.value.includes(U)).reduce((B,U)=>B+U,0)),A=e.computed(()=>h.value.map((B,U)=>({...B,value:B.value||0,proportion:(B.value||0)/w.value,width:(B.value||0)/w.value*c.value.width,proportionLabel:Ge({v:(B.value||0)/w.value*100,s:"%",r:s.value.style.legend.percentage.rounding})}))),k=e.computed(()=>A.value.filter((B,U)=>!p.value.includes(U)));function y(B){p.value.includes(B)?p.value=p.value.filter(U=>U!==B):p.value.length<h.value.length-1&&p.value.push(B)}const i=e.computed(()=>{let B=0;const U=[];for(let $=0;$<k.value.length;$+=1)U.push({...k.value[$],start:B}),B+=k.value[$].width;return U});function v(B,U){o("selectDatapoint",{datapoint:B,index:U})}return(B,U)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`width:100%; background:${s.value.style.backgroundColor}`)},[s.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:${s.value.style.backgroundColor};margin:0 auto;margin:${s.value.style.title.margin};padding: 0 6px;text-align:${s.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${s.value.style.title.fontSize}px;color:${s.value.style.title.color};font-weight:${s.value.style.title.bold?"bold":"normal"}`)},e.toDisplayString(s.value.style.title.text),5),s.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${s.value.style.title.subtitle.fontSize}px;color:${s.value.style.title.subtitle.color};font-weight:${s.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(s.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),width:"100%",viewBox:`0 0 ${c.value.width} ${c.value.height}`},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,($,T)=>(e.openBlock(),e.createElementBlock("linearGradient",{key:`stack_gradient_${T}`,gradientTransform:"rotate(90)",id:`stack_gradient_${T}_${l.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":$.color},null,8,aO),e.createElementVNode("stop",{offset:"50%","stop-color":`${e.unref(Lt)($.color,.05)}${e.unref(Xe)[100-s.value.style.bar.gradient.intensity]}`},null,8,rO),e.createElementVNode("stop",{offset:"100%","stop-color":$.color},null,8,nO)],8,lO))),128)),e.createElementVNode("clipPath",sO,[e.createElementVNode("rect",{x:"0.005",y:"-2",width:"0.99",height:"5",rx:"3",ry:"3",fill:s.value.style.backgroundColor},null,8,iO)])]),e.createElementVNode("g",uO,[e.createElementVNode("rect",{x:0,y:0,height:c.value.height,width:i.value.map($=>$.width).reduce(($,T)=>$+T,0),fill:s.value.style.bar.gradient.underlayerColor,class:e.normalizeClass({animated:!f.value})},null,10,AO),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,($,T)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_${T}`,onClick:()=>v($,T),x:$.start,y:0,width:$.width,height:c.value.height,fill:s.value.style.bar.gradient.show?`url(#stack_gradient_${T}_${l.value})`:$.color,stroke:s.value.style.backgroundColor,"stroke-linecap":"round",class:e.normalizeClass({animated:!f.value})},null,10,cO))),128))])],8,oO)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:2,config:{type:"sparkStackbar",style:{backgroundColor:s.value.style.backgroundColor,sparkStackbar:{color:"#CCCCCC"}}}},null,8,["config"])),s.value.style.legend.show?(e.openBlock(),e.createElementBlock("div",{key:3,style:e.normalizeStyle(`background:${s.value.style.backgroundColor};margin:0 auto;margin:${s.value.style.legend.margin};justify-content:${s.value.style.legend.textAlign==="left"?"flex-start":s.value.style.legend.textAlign==="right"?"flex-end":"center"}`),class:"vue-ui-sparkstackbar-legend"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,($,T)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`font-size:${s.value.style.legend.fontSize}px;`),class:e.normalizeClass({"vue-ui-sparkstackbar-legend-item":!0,"vue-ui-sparkstackbar-legend-item-unselected":p.value.includes(T)}),onClick:W=>{y(T),v($,T)}},[e.createElementVNode("div",hO,[(e.openBlock(),e.createElementBlock("svg",{height:`${s.value.style.legend.fontSize}px`,width:`${s.value.style.legend.fontSize}px`,viewBox:"0 0 10 10"},[e.createElementVNode("circle",{cx:5,cy:5,r:5,fill:$.color},null,8,vO)],8,fO)),e.createElementVNode("span",{style:e.normalizeStyle(`color:${s.value.style.legend.name.color}; font-weight:${s.value.style.legend.name.bold?"bold":"normal"}`)},e.toDisplayString($.name),5),s.value.style.legend.percentage.show?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-weight:${s.value.style.legend.percentage.bold?"bold":"normal"};color:${s.value.style.legend.percentage.color}`)},e.toDisplayString(p.value.includes(T)?" - ":$.proportionLabel),5)):e.createCommentVNode("",!0),s.value.style.legend.value.show?(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(`font-weight:${s.value.style.legend.value.bold?"bold":"normal"};color:${s.value.style.legend.value.color}`)}," ("+e.toDisplayString(e.unref(Ge)({p:s.value.style.legend.value.prefix,v:$.value,s:s.value.style.legend.value.suffix,r:s.value.style.legend.value.rounding}))+") ",5)):e.createCommentVNode("",!0)])],14,dO))),256))],4)):e.createCommentVNode("",!0)],4))}},fg=vt(gO,[["__scopeId","data-v-2006741b"]]),pO=Object.freeze(Object.defineProperty({__proto__:null,default:fg},Symbol.toStringTag,{value:"Module"})),yO={key:0},mO={key:1},bO=["xmlns","viewBox"],kO=["id"],CO=["stop-color"],wO=["stop-color"],BO=["id"],xO=["stop-color"],FO=["stop-color"],NO={key:0},_O=["x","y","height","width","fill","stroke","stroke-width","rx"],SO={key:1},LO=["x","y","font-size","font-weight","fill"],EO=["x","y","font-size","fill"],IO=["x","y","font-size","fill"],$O=["height","width","x","onMouseover","stroke","stroke-width","rx","stroke-dasharray","onClick"],MO={__name:"vue-ui-sparkhistogram",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(t,{emit:o}){const a=t;e.useCssVars(k=>({"34a5ebe4":A.value}));const{vue_ui_sparkhistogram:n}=ft(),r=e.computed(()=>!!a.dataset&&a.dataset.length);e.onMounted(()=>{xt(a.dataset)?je({componentName:"VueUiSparkHistogram",type:"dataset"}):a.dataset.forEach((k,y)=>{Wt({datasetObject:k,requiredAttributes:["value"]}).forEach(i=>{je({componentName:"VueUiSparkHistogram",type:"datasetSerieAttribute",property:i,index:y})})})});const l=e.ref(it()),s=e.computed(()=>{const k=Je({userConfig:a.config,defaultConfig:n});return k.theme?{...Je({userConfig:Nt.vue_ui_sparkhistogram[k.theme]||a.config,defaultConfig:k})}:k}),u=e.computed(()=>{const k=s.value.style.layout.height,y=s.value.style.layout.width,i=s.value.style.layout.padding.top,v=k-s.value.style.layout.padding.bottom,B=s.value.style.layout.padding.left,U=y-s.value.style.layout.padding.right,$=i+(k-i-s.value.style.layout.padding.bottom)/2,T=k-s.value.style.layout.padding.top-s.value.style.layout.padding.bottom,W=y-s.value.style.layout.padding.left-s.value.style.layout.padding.right;return{bottom:v,centerY:$,drawingHeight:T,drawingWidth:W,height:k,left:B,right:U,top:i,width:y}}),h=e.computed(()=>Math.max(...a.dataset.map(k=>Math.abs(k.value||0))));function f(k){return Math.abs(k)/h.value}const c=e.computed(()=>a.dataset.map((k,y)=>{const i=f(k.value||0),v=u.value.drawingHeight*i,B=u.value.drawingWidth/a.dataset.length,U=B*(s.value.style.bars.gap/100),$=B-U,T=u.value.centerY-v/2,W=u.value.left+(U/2+y*B),L=u.value.left+y*B,b=typeof k.intensity>"u"?100:Math.round(k.intensity*100),V=k.value>=0?`${s.value.style.bars.colors.positive}${Xe[b]}`:`${s.value.style.bars.colors.negative}${Xe[b]}`,te=k.value>=0?s.value.style.bars.colors.positive:s.value.style.bars.colors.negative,I=k.value>=0?`url(#gradient_positive_${y}_${l.value})`:`url(#gradient_negative_${y}_${l.value})`,S=W+$/2;return{...k,color:V,gradient:I,height:v,intensity:b,proportion:i,stroke:te,textAnchor:S,trapX:L,unitWidth:B,width:$,x:W,y:T}})),p=e.ref(null);function w(k,y){o("selectDatapoint",{datapoint:k,index:y})}const A=e.computed(()=>`${s.value.style.animation.speedMs}ms`);return(k,y)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`width:100%;background:${s.value.style.backgroundColor};font-family:${s.value.style.fontFamily}`),onMouseleave:y[1]||(y[1]=i=>p.value=null)},[s.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:${s.value.style.backgroundColor};margin:0 auto;margin:${s.value.style.title.margin};padding: 0 6px;text-align:${s.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${s.value.style.title.fontSize}px;color:${s.value.style.title.color};font-weight:${s.value.style.title.bold?"bold":"normal"}`)},[e.createTextVNode(e.toDisplayString(s.value.style.title.text)+" ",1),p.value!==null?(e.openBlock(),e.createElementBlock("span",yO,"- "+e.toDisplayString(c.value[p.value].timeLabel||"")+" "+e.toDisplayString(s.value.style.labels.value.prefix)+e.toDisplayString(isNaN(c.value[p.value].value)?"":": "+Number(c.value[p.value].value.toFixed(s.value.style.labels.value.rounding)).toLocaleString())+e.toDisplayString(s.value.style.labels.value.suffix),1)):e.createCommentVNode("",!0),e.createTextVNode(),![void 0,null].includes(p.value)&&![null,void 0].includes(c.value[p.value].valueLabel)?(e.openBlock(),e.createElementBlock("span",mO,"("+e.toDisplayString(c.value[p.value].valueLabel||0)+")",1)):e.createCommentVNode("",!0)],4),s.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${s.value.style.title.subtitle.fontSize}px;color:${s.value.style.title.subtitle.color};font-weight:${s.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(s.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),viewBox:`0 0 ${u.value.width} ${u.value.height}`,style:{overflow:"visible"}},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,v)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_positive_${v}_${l.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(Lt)(s.value.style.bars.colors.positive,.05)}${e.unref(Xe)[i.intensity]}`},null,8,CO),e.createElementVNode("stop",{offset:"100%","stop-color":`${s.value.style.bars.colors.positive}${e.unref(Xe)[i.intensity]}`},null,8,wO)],8,kO))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,v)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_negative_${v}_${l.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(Lt)(s.value.style.bars.colors.negative,.05)}${e.unref(Xe)[i.intensity]}`},null,8,xO),e.createElementVNode("stop",{offset:"100%","stop-color":`${s.value.style.bars.colors.negative}${e.unref(Xe)[i.intensity]}`},null,8,FO)],8,BO))),256))]),!s.value.style.bars.shape||s.value.style.bars.shape==="square"?(e.openBlock(),e.createElementBlock("g",NO,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,v)=>(e.openBlock(),e.createElementBlock("rect",{x:i.x,y:i.y,height:i.height,width:i.width,fill:s.value.style.bars.colors.gradient.show?i.gradient:i.color,stroke:i.stroke,"stroke-width":s.value.style.bars.strokeWidth,rx:`${s.value.style.bars.borderRadius*i.proportion/12}%`,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":s.value.style.animation.show})},null,10,_O))),256))])):(e.openBlock(),e.createElementBlock("g",SO,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,v)=>(e.openBlock(),e.createBlock(ra,{plot:{x:i.x+i.width/2,y:i.y+i.height/2},color:s.value.style.bars.colors.gradient.show?i.gradient:i.color,shape:s.value.style.bars.shape,radius:i.height*.4,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":s.value.style.animation.show})},null,8,["plot","color","shape","radius","class"]))),256))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,v)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":"middle",x:i.textAnchor,y:i.y-s.value.style.labels.value.fontSize/3+s.value.style.labels.value.offsetY,"font-size":s.value.style.labels.value.fontSize,"font-weight":s.value.style.labels.value.bold?"bold":"normal",fill:s.value.style.labels.value.color},e.toDisplayString(s.value.style.labels.value.prefix)+e.toDisplayString(isNaN(i.value)?"":Number(i.value.toFixed(s.value.style.labels.value.rounding)).toLocaleString())+e.toDisplayString(s.value.style.labels.value.suffix),9,LO))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,v)=>(e.openBlock(),e.createElementBlock("g",null,[i.valueLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.textAnchor,y:i.y+i.height+s.value.style.labels.valueLabel.fontSize,"font-size":s.value.style.labels.valueLabel.fontSize,"text-anchor":"middle",fill:s.value.style.labels.valueLabel.color},e.toDisplayString(i.valueLabel),9,EO)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,v)=>(e.openBlock(),e.createElementBlock("g",null,[i.timeLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.textAnchor,y:u.value.height-s.value.style.labels.timeLabel.fontSize/2,"font-size":s.value.style.labels.timeLabel.fontSize,fill:s.value.style.labels.timeLabel.color,"text-anchor":"middle"},e.toDisplayString(i.timeLabel),9,IO)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,v)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{height:u.value.height,width:i.unitWidth,fill:"transparent",x:i.trapX,y:0,onMouseover:B=>p.value=v,onMouseleave:y[0]||(y[0]=B=>p.value=null),stroke:p.value!==null&&p.value===v?s.value.style.selector.stroke:"","stroke-width":p.value!==null&&p.value===v?s.value.style.selector.strokeWidth:0,rx:s.value.style.selector.borderRadius,"stroke-dasharray":s.value.style.selector.strokeDasharray,onClick:()=>w(i,v)},null,40,$O)]))),256))],8,bO)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:2,config:{type:"sparkHistogram",style:{backgroundColor:s.value.style.backgroundColor,sparkHistogram:{color:"#CCCCCC"}}}},null,8,["config"]))],36))}},vg=vt(MO,[["__scopeId","data-v-7aed7086"]]),UO=Object.freeze(Object.defineProperty({__proto__:null,default:vg},Symbol.toStringTag,{value:"Module"})),VO=["id"],QO=["xmlns","viewBox"],TO=["id"],OO=["stop-color"],zO=["stop-color"],DO=["stroke","cx","cy","r","fill"],PO=["stroke-width","cx","cy","r","fill"],HO=["cx","cy","r","onMouseenter"],RO=["onClick"],GO={key:0},WO={key:1},jO=["innerHTML"],KO={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(t,{expose:o,emit:a}){const n=t,{vue_ui_rings:r}=ft(),l=e.ref(!1),s=e.computed(()=>!!n.dataset&&n.dataset.length),u=e.ref(it()),h=e.ref(null),f=e.ref(!1),c=e.ref(""),p=e.ref(null),w=e.ref(0),A=e.ref(null),k=e.ref(null),y=e.ref(null),i=e.computed(()=>{const Z=Je({userConfig:n.config,defaultConfig:r});return Z.theme?{...Je({userConfig:Nt.vue_ui_rings[Z.theme]||n.config,defaultConfig:Z}),customPalette:Pt[Z.theme]||Me}:Z}),v=e.ref(null);e.onMounted(()=>{if(xt(n.dataset)?je({componentName:"VueUiRings",type:"dataset"}):n.dataset.forEach((Z,J)=>{Wt({datasetObject:Z,requiredAttributes:["name","values"]}).forEach(z=>{je({componentName:"VueUiRings",type:"datasetSerieAttribute",property:z,index:J})})}),i.value.responsive){const Z=Bo(()=>{const{width:J,height:z}=xo({chart:A.value,title:i.value.style.chart.title.text?k.value:null,legend:i.value.style.chart.legend.show?y.value:null});b.value.width=J,b.value.height=z});v.value=new ResizeObserver(Z),v.value.observe(A.value.parentNode)}setTimeout(()=>{l.value=!0},600)}),e.onBeforeUnmount(()=>{v.value&&v.value.disconnect()});const{isPrinting:B,isImaging:U,generatePdf:$,generateImage:T}=zt({elementId:`rings_${u.value}`,fileName:i.value.style.chart.title.text||"vue-ui-rings"}),W=e.computed(()=>so(i.value.customPalette)),L=e.ref({showTable:i.value.table.show,showTooltip:i.value.style.chart.tooltip.show}),b=e.ref({height:360,width:360}),V=e.computed(()=>Math.min(b.value.height,b.value.width)),te=e.ref([]);function I(Z){te.value.includes(Z)?te.value=te.value.filter(J=>J!==Z):te.value.push(Z),a("selectLegend",R.value.map(J=>({name:J.name,color:J.color,value:J.value})))}const S=e.computed(()=>Math.max(...ee.value.filter(Z=>!te.value.includes(Z.uid)).map(({value:Z})=>Z)));function j(Z){return Z/S.value}const ee=e.computed(()=>n.dataset.map(({values:Z,name:J,color:z=null},P)=>{const ge=(Z||[]).reduce((M,_)=>M+_,0);return{name:J,color:z||At(z)||W.value[P]||Me[P]||Me[P%Me.length],value:ge,proportion:ge/n.dataset.map(M=>(M.values||[]).reduce((_,X)=>_+X,0)).reduce((M,_)=>M+_,0),uid:it()}})),le=e.computed(()=>ee.value.map(Z=>({...Z,shape:"circle",opacity:te.value.includes(Z.uid)?.5:1,segregate:()=>I(Z.uid),isSegregated:te.value.includes(Z.uid)})).toSorted((Z,J)=>J.value-Z.value)),he=e.computed(()=>({cy:"rings-div-legend",backgroundColor:i.value.style.chart.legend.backgroundColor,color:i.value.style.chart.legend.color,fontSize:i.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:i.value.style.chart.legend.bold?"bold":""})),oe=e.computed(()=>ee.value.filter(Z=>!te.value.includes(Z.uid)).map(({value:Z})=>Z).reduce((Z,J)=>Z+J,0)),R=e.computed(()=>ee.value.filter(Z=>!te.value.includes(Z.uid)).map(({name:Z,value:J,color:z=null,uid:P},ge)=>({uid:P,name:Z,color:z||At(z)||W.value[ge]||Me[ge]||Me[ge%Me.length],value:J,proportion:j(J),percentage:J/oe.value*100,strokeWidth:i.value.style.chart.layout.rings.strokeWidth*j(J)})).toSorted((Z,J)=>J.value-Z.value));function D(){return R.value.map(({name:Z,color:J,value:z,absoluteValues:P,percentage:ge})=>({name:Z,color:J,value:z,absoluteValues:P,percentage:ge}))}const K=e.computed(()=>V.value-i.value.style.chart.layout.rings.strokeWidth*2),q=e.ref(null);function m(Z,J){if(te.value.length===n.dataset.length)return;q.value={datapoint:J,seriesIndex:Z,series:R.value,config:i.value},p.value=Z;const z=R.value[Z],P=i.value.style.chart.tooltip.customFormat;if(Gt(P)&&wo(()=>P({seriesIndex:Z,datapoint:J,series:R.value,config:i.value})))c.value=P({seriesIndex:Z,datapoint:J,series:R.value,config:i.value});else{let ge="";ge+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${i.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${z.name}</div>`,ge+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${z.color}" /></svg>`,i.value.style.chart.tooltip.showValue&&(ge+=`<b>${Ge({p:i.value.style.chart.layout.labels.dataLabels.prefix,v:z.value,s:i.value.style.chart.layout.labels.dataLabels.suffix,r:i.value.style.chart.tooltip.roundingValue})}</b>`),i.value.style.chart.tooltip.showPercentage&&(i.value.style.chart.tooltip.showValue?ge+=`<span>(${(z.value/oe.value*100).toFixed(i.value.style.chart.tooltip.roundingPercentage)}%)</span></div>`:ge+=`<b>${(z.value/oe.value*100).toFixed(i.value.style.chart.tooltip.roundingPercentage)}%</b></div>`),c.value=ge}f.value=!0}const N=e.computed(()=>{const Z=R.value.map(z=>({name:z.name,color:z.color})),J=R.value.map(z=>z.value);return{head:Z,body:J}}),x=e.computed(()=>{const Z=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',Ge({p:i.value.style.chart.layout.labels.dataLabels.prefix,v:oe.value,s:i.value.style.chart.layout.labels.dataLabels.suffix,r:i.value.table.td.roundingValue}),"100%"],J=N.value.head.map((ge,M)=>[{color:ge.color,name:ge.name},Ge({p:i.value.style.chart.layout.labels.dataLabels.prefix,v:N.value.body[M],s:i.value.style.chart.layout.labels.dataLabels.suffix,r:i.value.table.td.roundingValue}),isNaN(N.value.body[M]/oe.value)?"-":(N.value.body[M]/oe.value*100).toFixed(i.value.table.td.roundingPercentage)+"%"]),z={th:{backgroundColor:i.value.table.th.backgroundColor,color:i.value.table.th.color,outline:i.value.table.th.outline},td:{backgroundColor:i.value.table.td.backgroundColor,color:i.value.table.td.color,outline:i.value.table.td.outline},breakpoint:i.value.table.responsiveBreakpoint},P=[i.value.table.columnNames.series,i.value.table.columnNames.value,i.value.table.columnNames.percentage];return{head:Z,body:J,config:z,colNames:P}});function Q(){e.nextTick(()=>{const Z=N.value.head.map((P,ge)=>[[P.name],[N.value.body[ge]],[isNaN(N.value.body[ge]/oe.value)?"-":N.value.body[ge]/oe.value*100]]),J=[[i.value.style.chart.title.text],[i.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(Z),z=eo(J);Zt({csvContent:z,title:i.value.style.chart.title.text||"vue-ui-rings"})})}const Y=e.ref(!1);function me(Z){Y.value=Z,w.value+=1}function ne(){L.value.showTable=!L.value.showTable}function fe(){L.value.showTooltip=!L.value.showTooltip}return o({getData:D,generatePdf:$,generateCsv:Q,generateImage:T,toggleTable:ne,toggleTooltip:fe}),(Z,J)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:A,class:e.normalizeClass(`vue-ui-rings ${Y.value?"vue-data-ui-wrapper-fullscreen":""} ${i.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${i.value.style.fontFamily};text-align:center;width:100%;background:${i.value.style.chart.backgroundColor};${i.value.responsive?"height: 100%":""}`),id:`rings_${u.value}`,onMouseleave:J[3]||(J[3]=z=>{p.value=null,f.value=!1})},[i.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:k,style:e.normalizeStyle(`width:100%;background:${i.value.style.chart.backgroundColor}`)},[e.createVNode(Xt,{config:{title:{cy:"rings-div-title",...i.value.style.chart.title},subtitle:{cy:"rings-div-subtitle",...i.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),i.value.userOptions.show&&s.value?(e.openBlock(),e.createBlock(Tt,{ref_key:"details",ref:h,key:`user_options_${w.value}`,backgroundColor:i.value.style.chart.backgroundColor,color:i.value.style.chart.color,isPrinting:e.unref(B),isImaging:e.unref(U),uid:u.value,hasTooltip:i.value.userOptions.buttons.tooltip&&i.value.style.chart.tooltip.show,hasPdf:i.value.userOptions.buttons.pdf,hasXls:i.value.userOptions.buttons.csv,hasImg:i.value.userOptions.buttons.img,hasTable:i.value.userOptions.buttons.table,hasFullscreen:i.value.userOptions.buttons.fullscreen,isTooltip:L.value.showTooltip,isFullscreen:Y.value,titles:{...i.value.userOptions.buttonTitles},chartElement:A.value,onToggleFullscreen:me,onGeneratePdf:e.unref($),onGenerateCsv:Q,onGenerateImage:e.unref(T),onToggleTable:ne,onToggleTooltip:fe},e.createSlots({_:2},[Z.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,Z.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,Z.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,Z.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,Z.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,Z.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:z,isFullscreen:P})=>[e.renderSlot(Z.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:z,isFullscreen:P})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":Y.value,"vue-data-ui-fulscreen--off":!Y.value}),viewBox:`0 0 ${b.value.width<=0?10:b.value.width} ${b.value.height<=0?10:b.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${i.value.style.chart.backgroundColor};color:${i.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(z,P)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${u.value}_${P}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(Lt)(z.color,.05)}${e.unref(Xe)[100-i.value.style.chart.layout.rings.gradient.intensity]}`},null,8,OO),e.createElementVNode("stop",{offset:"100%","stop-color":z.color},null,8,zO)],8,TO))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(z,P)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":l.value&&i.value.useCssAnimation,"vue-rings-item-onload":!l.value&&i.value.useCssAnimation,"vue-ui-rings-opacity":p.value!==null&&p.value!==P}),style:e.normalizeStyle(`animation-delay:${P*100}ms`),stroke:i.value.style.chart.layout.rings.stroke,cx:b.value.width/2,cy:P===0?b.value.height/2:b.value.height/2+K.value*R.value[0].proportion/2-K.value*z.proportion/2-2*(P+1),r:K.value*z.proportion/2*.9<=0?1e-4:K.value*z.proportion/2*.9,fill:i.value.style.chart.layout.rings.gradient.underlayerColor},null,14,DO),e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":l.value&&i.value.useCssAnimation,"vue-rings-item-onload":!l.value&&i.value.useCssAnimation,"vue-ui-rings-shadow":i.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":p.value!==null&&p.value!==P}),style:e.normalizeStyle(`animation-delay:${P*100}ms`),stroke:"none","stroke-width":z.strokeWidth<.5?.5:z.strokeWidth,cx:b.value.width/2,cy:P===0?b.value.height/2:b.value.height/2+K.value*R.value[0].proportion/2-K.value*z.proportion/2-2*(P+1),r:K.value*z.proportion/2*.9<=0?1e-4:K.value*z.proportion/2*.9,fill:i.value.style.chart.layout.rings.gradient.show?`url(#gradient_${u.value}_${P})`:z.color},null,14,PO),e.createElementVNode("circle",{"data-cy-trap":"",stroke:"none",cx:b.value.width/2,cy:P===0?b.value.height/2:b.value.height/2+K.value*R.value[0].proportion/2-K.value*z.proportion/2-2*(P+1),r:K.value*z.proportion/2*.9<=0?1e-4:K.value*z.proportion/2*.9,fill:"transparent",onMouseenter:ge=>m(P,z),onMouseleave:J[0]||(J[0]=ge=>{p.value=null,f.value=!1})},null,40,HO)]))),256)),e.renderSlot(Z.$slots,"svg",{svg:b.value},void 0,!0)],14,QO)):e.createCommentVNode("",!0),s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"rings",style:{backgroundColor:i.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:y},[i.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Zo,{key:0,legendSet:le.value,config:he.value,onClickMarker:J[1]||(J[1]=({legend:z})=>I(z.uid))},{item:e.withCtx(({legend:z})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:P=>I(z.uid),style:e.normalizeStyle(`opacity:${te.value.includes(z.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(z.name)+": "+e.toDisplayString(e.unref(Ge)({p:i.value.style.chart.layout.labels.dataLabels.prefix,v:z.value,s:i.value.style.chart.layout.labels.dataLabels.suffix,r:i.value.style.chart.legend.roundingValue}))+" ",1),te.value.includes(z.uid)?(e.openBlock(),e.createElementBlock("span",WO," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",GO," ("+e.toDisplayString(isNaN(z.value/oe.value)?"-":(z.value/oe.value*100).toFixed(i.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,RO)]),_:1},8,["legendSet","config"])):e.renderSlot(Z.$slots,"legend",{key:1,legend:le.value},void 0,!0)],512),e.createVNode(Oo,{show:L.value.showTooltip&&f.value&&te.value.length<n.dataset.length,backgroundColor:i.value.style.chart.tooltip.backgroundColor,color:i.value.style.chart.tooltip.color,borderRadius:i.value.style.chart.tooltip.borderRadius,borderColor:i.value.style.chart.tooltip.borderColor,borderWidth:i.value.style.chart.tooltip.borderWidth,fontSize:i.value.style.chart.tooltip.fontSize,backgroundOpacity:i.value.style.chart.tooltip.backgroundOpacity,parent:A.value,content:c.value,isCustom:i.value.style.chart.tooltip.customFormat&&typeof i.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(Z.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...q.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(Z.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...q.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","parent","content","isCustom"]),s.value?(e.openBlock(),e.createBlock(lo,{key:4,hideDetails:"",config:{open:L.value.showTable,maxHeight:1e4,body:{backgroundColor:i.value.style.chart.backgroundColor,color:i.value.style.chart.color},head:{backgroundColor:i.value.style.chart.backgroundColor,color:i.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(yo,{colNames:x.value.colNames,head:x.value.head,body:x.value.body,config:x.value.config,title:`${i.value.style.chart.title.text}${i.value.style.chart.title.subtitle.text?` : ${i.value.style.chart.title.subtitle.text}`:""}`,onClose:J[2]||(J[2]=z=>L.value.showTable=!1)},{th:e.withCtx(({th:z})=>[e.createElementVNode("div",{innerHTML:z,style:{display:"flex","align-items":"center"}},null,8,jO)]),td:e.withCtx(({td:z})=>[e.createTextVNode(e.toDisplayString(z.name||z),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,VO))}},gg=vt(KO,[["__scopeId","data-v-956d6194"]]),XO=Object.freeze(Object.defineProperty({__proto__:null,default:gg},Symbol.toStringTag,{value:"Module"})),qO=["id"],YO=["xmlns","viewBox"],JO=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],ZO=["cx","cy","r","stroke","stroke-width"],ez=["x","y","font-size","fill","font-weight"],tz={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t,{vue_ui_wheel:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length),l=e.ref(it()),s=e.ref(null),u=e.ref(0),h=e.ref(null),f=e.ref(null),c=e.computed(()=>{const V=Je({userConfig:a.config,defaultConfig:n});return V.theme?{...Je({userConfig:Nt.vue_ui_wheel[V.theme]||a.config,defaultConfig:V})}:V}),{isPrinting:p,isImaging:w,generatePdf:A,generateImage:k}=zt({elementId:l.value,fileName:c.value.style.chart.title.text||"vue-ui-wheel"}),y=e.ref({size:360,height:360,width:360}),i=e.ref(c.value.style.chart.layout.percentage.fontSize),v=e.computed(()=>({radius:Math.min(y.value.width,y.value.height)*.9/2,centerX:y.value.width/2,centerY:y.value.height/2}));function B(V,te=1){return{x:v.value.centerX+v.value.radius*Math.cos(29.85+V*Math.PI/180)*te,y:v.value.centerY+v.value.radius*Math.sin(29.85+V*Math.PI/180)*te}}const U=e.ref(c.value.style.chart.animation.use?0:a.dataset.percentage||0);e.watch(()=>a.dataset.percentage,()=>{U.value=e.ref(c.value.style.chart.animation.use?0:a.dataset.percentage||0),T()});const $=e.ref(null);e.onMounted(()=>{if(xt(a.dataset)&&je({componentName:"VueUiWheel",type:"dataset"}),T(),c.value.responsive){const V=Bo(()=>{const{width:te,height:I}=xo({chart:h.value,title:c.value.style.chart.title.text?f.value:null});y.value.width=te,y.value.height=I,i.value=c.value.style.chart.layout.percentage.fontSize/360*Math.min(te,I)});$.value=new ResizeObserver(V),$.value.observe(h.value.parentNode)}}),e.onBeforeUnmount(()=>{$.value&&$.value.disconnect()});function T(){let V=0,te=c.value.style.chart.animation.speed,I=.005*c.value.style.chart.animation.acceleration;function S(){U.value+=te+V,V+=I,U.value<(a.dataset.percentage||0)?requestAnimationFrame(S):U.value=a.dataset.percentage||0}c.value.style.chart.animation.use&&(U.value=0,S())}const W=e.computed(()=>{const V=[];for(let I=0;I<100;I+=1){const S=U.value>I?c.value.style.chart.layout.wheel.ticks.activeColor:c.value.style.chart.layout.wheel.ticks.inactiveColor,{x:j,y:ee}=B(y.value.size/100*I),{x:le,y:he}=B(y.value.size/100*I,.9);V.push({x1:j,y1:ee,x2:le,y2:he,color:c.value.style.chart.layout.wheel.ticks.gradient.show?Lt(S,I/100*(c.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):S})}return V}),L=e.ref(!1);function b(V){L.value=V,u.value+=1}return o({generatePdf:A,generateImage:k}),(V,te)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:h,id:l.value,style:e.normalizeStyle(`font-family:${c.value.style.fontFamily};width:100%; text-align:center;background:${c.value.style.chart.backgroundColor};${c.value.responsive?"height:100%":""}`)},[c.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:f,style:e.normalizeStyle(`width:100%;background:${c.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(Xt,{config:{title:{cy:"wheel-title",...c.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...c.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),c.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{ref_key:"details",ref:s,key:`user_options_${u.value}`,backgroundColor:c.value.style.chart.backgroundColor,color:c.value.style.chart.color,isPrinting:e.unref(p),isImaging:e.unref(w),uid:l.value,hasPdf:c.value.userOptions.buttons.pdf,hasImg:c.value.userOptions.buttons.img,hasFullscreen:c.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:L.value,titles:{...c.value.userOptions.buttonTitles},chartElement:h.value,onToggleFullscreen:b,onGeneratePdf:e.unref(A),onGenerateImage:e.unref(k)},e.createSlots({_:2},[V.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(V.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,V.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(V.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,V.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:I,isFullscreen:S})=>[e.renderSlot(V.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:I,isFullscreen:S})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":L.value,"vue-data-ui-fulscreen--off":!L.value}),viewBox:`0 0 ${y.value.width<=0?10:y.value.width} ${y.value.height<=0?10:y.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(W.value,(I,S)=>(e.openBlock(),e.createElementBlock("line",{x1:I.x1,x2:I.x2,y1:I.y1,y2:I.y2,stroke:I.color,"stroke-width":5/360*Math.min(y.value.width,y.value.height),"stroke-linecap":c.value.style.chart.layout.wheel.ticks.rounded?"round":"butt",class:e.normalizeClass({"vue-ui-tick-animated":c.value.style.chart.animation.use&&S<=U.value})},null,10,JO))),256)),c.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:v.value.centerX,cy:v.value.centerY,r:v.value.radius*.8<=0?1e-4:v.value.radius*.8,stroke:c.value.style.chart.layout.innerCircle.stroke,"stroke-width":c.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,ZO)):e.createCommentVNode("",!0),c.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:v.value.centerX,y:v.value.centerY+i.value/3,"font-size":i.value,fill:c.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(Lt)(c.value.style.chart.layout.wheel.ticks.activeColor,U.value/100*(c.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):c.value.style.chart.layout.wheel.ticks.activeColor,"text-anchor":"middle","font-weight":c.value.style.chart.layout.percentage.bold?"bold":"normal",style:{"font-variant-numeric":"tabluar-nums"}},e.toDisplayString(Number(U.value.toFixed(c.value.style.chart.layout.percentage.rounding)).toLocaleString())+"% ",9,ez)):e.createCommentVNode("",!0),e.renderSlot(V.$slots,"svg",{svg:y.value},void 0,!0)],14,YO)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"wheel",style:{backgroundColor:c.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],12,qO))}},pg=vt(tz,[["__scopeId","data-v-9e158d61"]]),oz=Object.freeze(Object.defineProperty({__proto__:null,default:pg},Symbol.toStringTag,{value:"Module"})),lz=["id"],az=["xmlns","viewBox"],rz={key:0},nz=["d","stroke-width","stroke"],sz={key:1},iz=["x1","y1","x2","y2","stroke-width","stroke"],uz=["x","y","font-size","fill","font-weight","text-anchor"],Az={__name:"vue-ui-tiremarks",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t,{vue_ui_tiremarks:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length),l=e.ref(it()),s=e.ref(null),u=e.ref(0),h=e.computed(()=>{const V=Je({userConfig:a.config,defaultConfig:n});return V.theme?{...Je({userConfig:Nt.vue_ui_tiremarks[V.theme]||a.config,defaultConfig:V})}:V}),{isPrinting:f,isImaging:c,generatePdf:p,generateImage:w}=zt({elementId:l.value,fileName:h.value.style.chart.title.text||"vue-ui-tiremarks"}),A=e.ref(h.value.style.chart.animation.use?0:a.dataset.percentage);e.watch(()=>a.dataset.percentage,()=>{A.value=e.ref(h.value.style.chart.animation.use?0:a.dataset.percentage),k()}),e.onMounted(()=>{xt(a.dataset)&&je({componentName:"VueUiTiremarks",type:"dataset"}),k()});function k(){let V=0,te=h.value.style.chart.animation.speed,I=.005*h.value.style.chart.animation.acceleration;function S(){A.value+=te+V,V+=I,A.value<a.dataset.percentage?requestAnimationFrame(S):A.value=a.dataset.percentage}h.value.style.chart.animation.use&&(A.value=0,S())}const y=e.computed(()=>h.value.style.chart.layout.display==="vertical"),i=e.computed(()=>{const V={top:48,left:64,right:64,bottom:48};return y.value?{top:h.value.style.chart.percentage.verticalPosition==="top"?V.top:3,left:3,right:3,bottom:h.value.style.chart.percentage.verticalPosition==="bottom"?V.bottom:3}:{top:0,bottom:0,left:h.value.style.chart.percentage.horizontalPosition==="left"?V.left:3,right:h.value.style.chart.percentage.horizontalPosition==="right"?V.right:10}}),v=e.computed(()=>Object.values(i.value).reduce((V,te)=>V+te,0)),B=e.computed(()=>({height:y.value?312:56,width:y.value?56:312})),U=e.ref(100);e.computed(()=>a.dataset.percentage/U.value);const $=e.computed(()=>y.value?{mark:(B.value.height-v.value)/100*.5,space:(B.value.height-v.value)/100*.5}:{mark:(B.value.width-v.value)/100*.5,space:(B.value.width-v.value)/100*.5}),T=e.computed(()=>{const V=[];for(let I=0;I<100;I+=1){const S=h.value.style.chart.layout.ticks.gradient.show?Lt(h.value.style.chart.layout.activeColor,I/100*(h.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):h.value.style.chart.layout.activeColor;if(y.value){const j=h.value.style.chart.layout.crescendo?(100-I)*(B.value.width-i.value.left-i.value.right)/100/3:0,ee=i.value.left+4+j,le=B.value.width-i.value.right-4-j,he=B.value.height-i.value.bottom-I*$.value.mark-I*$.value.space-$.value.mark,oe=B.value.height-i.value.bottom-I*$.value.mark-I*$.value.space-$.value.mark,R=(le-ee)/h.value.style.chart.layout.curveAngleX,D=h.value.style.chart.layout.curveAngleY*((1+I)/100);V.push({x1:ee,x2:le,y1:he,y2:oe,curve:`M ${ee} ${he} C ${ee+R} ${he-D}, ${le-R} ${oe-D}, ${le} ${oe}`,color:S})}else{const j=h.value.style.chart.layout.crescendo?(100-I)*(B.value.height-i.value.top-i.value.bottom)/100/3:0,ee=i.value.left+I*$.value.mark+I*$.value.space-$.value.mark,le=ee,he=i.value.top+4+j,oe=B.value.height-i.value.bottom-4-j,R=h.value.style.chart.layout.curveAngleY*((1+I)/100),D=(oe-he)/h.value.style.chart.layout.curveAngleX;V.push({x1:ee,x2:le,y1:he,y2:oe,curve:`M ${ee} ${he} C ${ee+R} ${he+D}, ${le+R} ${oe-D}, ${le} ${oe}`,color:S})}}return V}),W=e.computed(()=>{let V,te,I;const S=h.value.style.chart.percentage.fontSize/3;return y.value?h.value.style.chart.percentage.verticalPosition==="top"?(V=B.value.width/2,te=i.value.top/2,I="middle"):h.value.style.chart.percentage.verticalPosition==="bottom"&&(V=B.value.width/2,te=B.value.height-i.value.bottom/2+S,I="middle"):h.value.style.chart.percentage.horizontalPosition==="left"?(V=4,te=B.value.height/2+S,I="start"):h.value.style.chart.percentage.horizontalPosition==="right"&&(V=B.value.width-i.value.right+8,te=B.value.height/2+S,I="start"),{x:V,y:te,textAnchor:I,bold:h.value.style.chart.percentage.bold,fontSize:h.value.style.chart.percentage.fontSize,fill:h.value.style.chart.percentage.color}}),L=e.ref(!1);function b(V){L.value=V,u.value+=1}return o({generatePdf:p,generateImage:w}),(V,te)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tiremarksChart",ref:s,class:e.normalizeClass(`vue-ui-tiremarks ${h.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${h.value.style.fontFamily};width:100%; text-align:center;${h.value.style.chart.title.text?"":"padding-top:36px"};background:${h.value.style.chart.backgroundColor}`),id:l.value},[h.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${h.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(Xt,{config:{title:{cy:"wheel-title",...h.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...h.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),h.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{ref:"details",key:`user_options_${u.value}`,backgroundColor:h.value.style.chart.backgroundColor,color:h.value.style.chart.color,isPrinting:e.unref(f),isImaging:e.unref(c),uid:l.value,hasPdf:h.value.userOptions.buttons.pdf,hasImg:h.value.userOptions.buttons.img,hasFullscreen:h.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:L.value,titles:{...h.value.userOptions.buttonTitles},chartElement:s.value,onToggleFullscreen:b,onGeneratePdf:e.unref(p),onGenerateImage:e.unref(w)},e.createSlots({_:2},[V.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(V.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,V.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(V.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,V.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:I,isFullscreen:S})=>[e.renderSlot(V.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:I,isFullscreen:S})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":L.value,"vue-data-ui-fulscreen--off":!L.value}),viewBox:`0 0 ${B.value.width} ${B.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${h.value.style.chart.backgroundColor};color:${h.value.style.chart.color}`)},[h.value.style.chart.layout.curved?(e.openBlock(),e.createElementBlock("g",rz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(I,S)=>(e.openBlock(),e.createElementBlock("path",{d:I.curve,"stroke-width":$.value.mark,stroke:A.value>=S?I.color:h.value.style.chart.layout.inactiveColor,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"vue-ui-tick-animated":h.value.style.chart.animation.use&&S<=A.value})},null,10,nz))),256))])):(e.openBlock(),e.createElementBlock("g",sz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(I,S)=>(e.openBlock(),e.createElementBlock("line",{x1:I.x1,y1:I.y1,x2:I.x2,y2:I.y2,"stroke-width":$.value.mark,stroke:A.value>=S?I.color:h.value.style.chart.layout.inactiveColor,"stroke-linecap":"round"},null,8,iz))),256))])),h.value.style.chart.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:W.value.x,y:W.value.y,"font-size":W.value.fontSize,fill:h.value.style.chart.layout.ticks.gradient.show&&h.value.style.chart.percentage.useGradientColor?e.unref(Lt)(h.value.style.chart.layout.activeColor,A.value/100*(h.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):h.value.style.chart.percentage.color,"font-weight":W.value.bold?"bold":"normal","text-anchor":W.value.textAnchor},e.toDisplayString(A.value.toFixed(h.value.style.chart.percentage.rounding)+"%"),9,uz)):e.createCommentVNode("",!0),e.renderSlot(V.$slots,"svg",{svg:B.value},void 0,!0)],14,az)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"tiremarks",style:{backgroundColor:h.value.style.chart.backgroundColor,tiremarks:{color:"#CCCCCC"}}}},null,8,["config"]))],14,lz))}},yg=vt(Az,[["__scopeId","data-v-1bbd1baf"]]),cz=Object.freeze(Object.defineProperty({__proto__:null,default:yg},Symbol.toStringTag,{value:"Module"})),dz=["id"],hz=["xmlns","viewBox"],fz=["id"],vz=["stop-color"],gz=["stop-color"],pz=["id"],yz=["stop-color"],mz=["stop-color"],bz=["stop-color"],kz={key:0},Cz=["x1","x2","y1","y2","stroke","stroke-width"],wz=["x1","x2","y1","y2","stroke","stroke-width"],Bz={key:0},xz=["x1","x2","y1","y2","stroke","stroke-width"],Fz=["x1","x2","y1","y2","stroke","stroke-width"],Nz=["x","y","font-size","fill","font-weight"],_z=["text-anchor","font-size","fill","transform"],Sz=["x1","y1","x2","y2","stroke","stroke-width"],Lz={key:1},Ez=["cx","cy","r","fill"],Iz={key:0},$z={key:0},Mz=["d","stroke"],Uz=["text-anchor","x","y","fill"],Vz=["cx","cy","r","fill"],Qz={key:0},Tz=["cx","cy","fill"],Oz={key:1},zz=["d","fill","stroke"],Dz={key:2},Pz=["d","fill","stroke"],Hz=["x","y","font-size","fill"],Rz=["x","y","width","fill","onClick"],Gz=["x","y","width","height","onMouseenter","onClick"],Wz={key:3,"data-cy-zoom":"",class:"vue-ui-donut-evolution-dialog"},jz=["x","y","width","height","fill"],Kz=["x1","y1","x2","y2","stroke"],Xz=["x1","y2","x2","y1","stroke"],qz=["onKeypress","cx","cy","r"],Yz=["d","stroke"],Jz=["cx","cy","r","fill"],Zz=["d","fill","stroke"],eD={class:"vue-ui-donut-evolution-focus"},tD=["text-anchor","x","y","fill"],oD=["cx","cy","r","fill"],lD=["cx","cy","r","fill"],aD=["x","y","fill"],rD=["x","y","font-size","fill"],nD=["onClick"],sD={key:0},iD={key:1},uD={key:0},AD={key:1},cD={__name:"vue-ui-donut-evolution",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(t,{expose:o,emit:a}){const n=t,{vue_ui_donut_evolution:r}=ft(),l=e.computed(()=>!!n.dataset&&n.dataset.length),s=e.ref({start:0,end:Math.max(...n.dataset.map(_=>_.values.length))});function u(){s.value={start:0,end:S.value},i.value+=1}e.onMounted(()=>{xt(n.dataset)?je({componentName:"VueUiDonutEvolution",type:"dataset"}):n.dataset.length&&n.dataset.forEach((_,X)=>{Wt({datasetObject:_,requiredAttributes:["name","values"]}).forEach(O=>{je({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:O,index:X})})})});const h=e.ref(it()),f=e.ref([]),c=e.ref(null),p=e.ref(null),w=e.ref(!1),A=e.ref(null),k=e.ref(null),y=e.ref(0),i=e.ref(0),v=e.computed(()=>{const _=Je({userConfig:n.config,defaultConfig:r});return _.theme?{...Je({userConfig:Nt.vue_ui_donut_evolution[_.theme]||n.config,defaultConfig:_}),customPalette:Pt[_.theme]||Me}:_}),{isPrinting:B,isImaging:U,generatePdf:$,generateImage:T}=zt({elementId:h.value,fileName:v.value.style.chart.title.text||"vue-ui-donut-evolution"}),W=e.computed(()=>so(v.value.customPalette)),L=e.ref({showTable:v.value.table.show}),b=e.computed(()=>({top:v.value.style.chart.layout.padding.top,right:v.value.style.chart.layout.padding.right,bottom:v.value.style.chart.layout.padding.bottom,left:v.value.style.chart.layout.padding.left})),V=e.computed(()=>{const _=v.value.style.chart.layout.height,X=v.value.style.chart.layout.width,O=_-b.value.top-b.value.bottom,ce=X-b.value.left-b.value.right;return{absoluteHeight:_,absoluteWidth:X,centerX:b.value.left+ce/2,centerY:b.value.top+O/2,height:O,width:ce}}),te=e.computed(()=>(n.dataset.forEach((_,X)=>{[null,void 0].includes(_.name)&&je({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"name",index:X}),[null,void 0].includes(_.values)&&je({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"values",index:X})}),n.dataset.map((_,X)=>({..._,values:_.values||[],color:At(_.color)||W.value[X]||Me[X]||Me[X%Me.length],length:(_.values||[]).length,uid:it()})))),I=e.computed(()=>te.value.filter(_=>!f.value.includes(_.uid)).map(_=>({..._,values:_.values.filter((X,O)=>O>=s.value.start&&O<=s.value.end)}))),S=e.computed(()=>Math.max(...I.value.map(_=>_.length))),j=e.computed(()=>V.value.width/(s.value.end-s.value.start)),ee=e.computed(()=>{const _=[];for(let ae=0;ae<s.value.end-s.value.start;ae+=1){const ie=I.value.map(ve=>ve.values[ae]??null),G=ie.filter(ve=>[void 0,null].includes(ve)).length===ie.length,re=ie.reduce((ve,Ce)=>ve+Ce,0),Ae=ie.map(ve=>ve/re),se=b.value.left+j.value*ae+j.value/2;_.push({index:ae,percentages:Ae,subtotal:G||re<0?null:re,values:ie,x:se})}const X=0,O=Math.max(..._.map(ae=>ae.subtotal)),ce=_.length===1?O*2:O;return _.map((ae,ie)=>{const G=j.value/2*.7,re=G>V.value.width/16?V.value.width/16:G,Ae=c.value===ae.index?V.value.width/16:re,se=_.length>4?G*2:G*2>j.value/2*.7?j.value/2*.7:G*2,ve=V.value.absoluteHeight-b.value.bottom-V.value.height*ae.subtotal/Pl(X,ce,v.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;return{...ae,y:ve,radius:re,activeRadius:Ae,hoverRadius:se,donut:kl({series:I.value.map((Ce,Ue)=>({color:Ce.color,name:Ce.name,value:Ce.values[ie]??0}))},ae.x,ve,re,re,1.99999,2,1,360,105.25,re/2),donutHover:kl({series:I.value.map((Ce,Ue)=>({color:Ce.color,name:Ce.name,value:Ce.values[ie]??0}))},ae.x,ve,se,se,1.99999,2,1,360,105.25,se/2),donutFocus:kl({series:I.value.map((Ce,Ue)=>({color:Ce.color,name:Ce.name,value:Ce.values[ie]??0}))},V.value.centerX,V.value.centerY,V.value.height/3.6,V.value.height/3.6,1.99999,2,1,360,105.25,V.value.height/6)}})});function le(_){return`${v.value.style.chart.layout.dataLabels.prefix}${isNaN(_)?"-":Number(_.toFixed(v.value.style.chart.layout.dataLabels.rounding)).toLocaleString()}${v.value.style.chart.layout.dataLabels.suffix}`}const he=e.computed(()=>({max:Math.max(...ee.value.map(_=>_.subtotal)),min:0})),oe=e.computed(()=>{const _=ee.value.length===1?he.value.max*2:he.value.max;return Pl(he.value.min,_,v.value.style.chart.layout.grid.yAxis.dataLabels.steps)});function R(_){return _/oe.value.max}const D=e.computed(()=>oe.value.ticks.map(_=>({y:V.value.absoluteHeight-b.value.bottom-V.value.height*R(_),value:_})));function K(_,X){return isNaN(_.value/Af(X,"value"))?0:(_.value/Af(X,"value")*100).toFixed(0)+"%"}function q(){w.value||(c.value=null,p.value=null)}function m(_){w.value||(c.value=_.index,p.value=_)}const N=e.ref(null);function x(_,X){_.subtotal&&(p.value=null,c.value=null,w.value=!0,A.value=_,[null,void 0].includes(X)||(N.value=X))}function Q(){A.value=null,w.value=!1,N.value=null}const Y=e.computed(()=>te.value.map((_,X)=>({name:_.name,value:_.values.reduce((O,ce)=>O+ce,0),shape:"circle",uid:_.uid,color:_.color})).sort((_,X)=>X.value-_.value).map(_=>({..._,opacity:f.value.includes(_.uid)?.5:1,segregate:()=>fe(_.uid),isSegregated:f.value.includes(_.uid)}))),me=e.computed(()=>ee.value.map(_=>_.subtotal).reduce((_,X)=>_+X,0)),ne=e.computed(()=>({cy:"donut-div-legend",backgroundColor:v.value.style.chart.legend.backgroundColor,color:v.value.style.chart.legend.color,fontSize:v.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:v.value.style.chart.legend.bold?"bold":""}));function fe(_){if(f.value.includes(_))f.value=f.value.filter(X=>X!==_),a("selectLegend",null);else{if(f.value.length===te.value.length-1)return;f.value.push(_),a("selectLegend",te.value.find(X=>X.uid===_))}A.value&&x(ee.value.find((X,O)=>O===N.value))}const Z=e.computed(()=>{const _=[""].concat(te.value.filter(ae=>!f.value.includes(ae.uid)).map(ae=>({name:ae.name,color:ae.color}))).concat(["Σ"]);let X=[];for(let ae=0;ae<S.value;ae+=1){const ie=te.value.filter(G=>!f.value.includes(G.uid)).map(G=>G.values[ae]??0).reduce((G,re)=>G+re,0);X.push([v.value.style.chart.layout.grid.xAxis.dataLabels.values[ae]??"-"].concat(te.value.filter(G=>!f.value.includes(G.uid)).map(G=>({value:G.values[ae]??0,percentage:G.values[ae]?G.values[ae]/ie*100:0}))).concat([`${v.value.style.chart.layout.dataLabels.prefix}${Number(ie.toFixed(v.value.table.td.roundingValue))}${v.value.style.chart.layout.dataLabels.suffix}`]))}const O={th:{backgroundColor:v.value.table.th.backgroundColor,color:v.value.table.th.color,outline:v.value.table.th.outline},td:{backgroundColor:v.value.table.td.backgroundColor,color:v.value.table.td.color,outline:v.value.table.td.outline},breakpoint:v.value.table.responsiveBreakpoint},ce=[v.value.table.columnNames.period].concat(te.value.filter(ae=>!f.value.includes(ae.uid)).map(ae=>ae.name)).concat(v.value.table.columnNames.total);return{head:_,body:X,config:O,colNames:ce}});function J(){return te.value}function z(){e.nextTick(()=>{const _=[[v.value.style.chart.title.text],[v.value.style.chart.title.subtitle.text],[""]],X=[...Z.value.head.map(ie=>ie.name??ie)],O=[...Z.value.body.map(ie=>ie.map(G=>G.value??G))],ce=_.concat([X]).concat(O),ae=eo(ce);Zt({csvContent:ae,title:v.value.style.chart.title.text||"vue-ui-donut-evolution"})})}const P=e.ref(!1);function ge(_){P.value=_,y.value+=1}function M(){L.value.showTable=!L.value.showTable}return o({getData:J,generatePdf:$,generateCsv:z,generateImage:T,toggleTable:M}),(_,X)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutEvolutionChart",ref:k,class:e.normalizeClass(`vue-ui-donut-evolution ${P.value?"vue-data-ui-wrapper-fullscreen":""} ${v.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${v.value.style.fontFamily};width:100%; text-align:center;${v.value.style.chart.title.text?"":"padding-top:36px"};background:${v.value.style.chart.backgroundColor}`),id:h.value},[v.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${v.value.style.chart.backgroundColor};padding-bottom:24px`),onMouseleave:q},[e.createVNode(Xt,{config:{title:{cy:"donut-evolution-div-title",...v.value.style.chart.title},subtitle:{cy:"donut-evolution-div-subtitle",...v.value.style.chart.title.subtitle}}},null,8,["config"])],36)):e.createCommentVNode("",!0),v.value.userOptions.show&&l.value?(e.openBlock(),e.createBlock(Tt,{ref:"details",key:`user_options_${y.value}`,backgroundColor:v.value.style.chart.backgroundColor,color:v.value.style.chart.color,isPrinting:e.unref(B),isImaging:e.unref(U),uid:h.value,hasPdf:v.value.userOptions.buttons.pdf,hasImg:v.value.userOptions.buttons.img,hasXls:v.value.userOptions.buttons.csv,hasTable:v.value.userOptions.buttons.table,hasFullscreen:v.value.userOptions.buttons.fullscreen,isFullscreen:P.value,titles:{...v.value.userOptions.buttonTitles},chartElement:k.value,onToggleFullscreen:ge,onGeneratePdf:e.unref($),onGenerateCsv:z,onGenerateImage:e.unref(T),onToggleTable:M},e.createSlots({_:2},[_.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,_.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,_.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,_.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,_.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:O,isFullscreen:ce})=>[e.renderSlot(_.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:O,isFullscreen:ce})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":P.value,"vue-data-ui-fulscreen--off":!P.value}),viewBox:`0 0 ${V.value.absoluteWidth} ${V.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${v.value.style.chart.backgroundColor};color:${v.value.style.chart.color}`)},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`hover_${h.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${v.value.style.chart.backgroundColor}${e.unref(Xe)[v.value.style.chart.layout.highlighter.opacity]}`},null,8,vz),e.createElementVNode("stop",{offset:"100%","stop-color":`${v.value.style.chart.layout.highlighter.color}${e.unref(Xe)[v.value.style.chart.layout.highlighter.opacity]}`},null,8,gz)],8,fz),e.createElementVNode("radialGradient",{id:`focus_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(At)(v.value.style.chart.backgroundColor)}00`},null,8,yz),e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF"+e.unref(Xe)[30]},null,8,mz),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(At)(v.value.style.chart.backgroundColor)}00`},null,8,bz)],8,pz)]),v.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",kz,[e.createElementVNode("line",{x1:b.value.left,x2:b.value.left,y1:b.value.top,y2:b.value.top+V.value.height,stroke:v.value.style.chart.layout.grid.stroke,"stroke-width":v.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Cz),e.createElementVNode("line",{x1:b.value.left,x2:V.value.absoluteWidth-b.value.right,y1:V.value.absoluteHeight-b.value.bottom,y2:V.value.absoluteHeight-b.value.bottom,stroke:v.value.style.chart.layout.grid.stroke,"stroke-width":v.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,wz),v.value.style.chart.layout.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",Bz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.end-s.value.start,(O,ce)=>(e.openBlock(),e.createElementBlock("line",{x1:b.value.left+(ce+1)*j.value,x2:b.value.left+(ce+1)*j.value,y1:b.value.top,y2:V.value.absoluteHeight-b.value.bottom,stroke:v.value.style.chart.layout.grid.stroke,"stroke-width":v.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,xz))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),v.value.style.chart.layout.grid.yAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:1,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":c.value!==null||w.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",null,[O.value>=oe.value.min&&O.value<=oe.value.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:b.value.left,x2:b.value.left-5,y1:O.y,y2:O.y,stroke:v.value.style.chart.layout.grid.stroke,"stroke-width":v.value.style.chart.layout.grid.strokeWidth},null,8,Fz)):e.createCommentVNode("",!0),O.value>=oe.value.min&&O.value<=oe.value.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:b.value.left-8+v.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,y:O.y+v.value.style.chart.layout.grid.yAxis.dataLabels.fontSize/3,"font-size":v.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,"text-anchor":"end",fill:v.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-weight":v.value.style.chart.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(v.value.style.chart.layout.dataLabels.prefix)+" "+e.toDisplayString(e.unref(Pv)(O.value)?O.value.toFixed(v.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue):"")+" "+e.toDisplayString(v.value.style.chart.layout.dataLabels.suffix),9,Nz)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),v.value.style.chart.layout.grid.xAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:2,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":w.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.end-s.value.start,(O,ce)=>(e.openBlock(),e.createElementBlock("g",null,[v.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast&&(ce===0||ce===S.value-1)||!v.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":v.value.style.chart.layout.grid.xAxis.dataLabels.rotation>0?"start":v.value.style.chart.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":v.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,fill:v.value.style.chart.layout.grid.xAxis.dataLabels.color,transform:`translate(${b.value.left+j.value*ce+j.value/2}, ${v.value.style.chart.layout.grid.xAxis.dataLabels.offsetY+V.value.absoluteHeight-b.value.bottom+v.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2}), rotate(${v.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`},e.toDisplayString(v.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(ce)+Number(s.value.start)]??""),9,_z)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ee.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",null,[v.value.style.chart.layout.line.show&&ce<ee.value.length-1&&![O.subtotal,ee.value[ce+1].subtotal].includes(null)?(e.openBlock(),e.createElementBlock("line",{key:0,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":c.value!==null||w.value}),x1:O.x,y1:O.y,x2:ee.value[ce+1].x,y2:ee.value[ce+1].y,stroke:v.value.style.chart.layout.line.stroke,"stroke-width":v.value.style.chart.layout.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,10,Sz)):e.createCommentVNode("",!0),O.subtotal!==null?(e.openBlock(),e.createElementBlock("g",Lz,[O.subtotal?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:O.x,cy:O.y,r:O.activeRadius,fill:v.value.style.chart.backgroundColor},null,8,Ez)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ee.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":ce!==c.value&&c.value!==null||w.value})},[O.subtotal?(e.openBlock(),e.createElementBlock("g",Iz,[c.value!==null&&c.value===ce?(e.openBlock(),e.createElementBlock("g",$z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.donutHover,ae=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{d:e.unref(Qr)(ae,{x:ae.center.endX,y:ae.center.endY},12,12,{x:O.x,y:O.y},!0),stroke:ae.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Mz)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.donutHover,(ae,ie)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("text",{"data-cy-hover-label":"","text-anchor":e.unref(ct)(ae,!0,0).anchor,x:e.unref(ct)(ae,!0,3).x,y:e.unref(co)(ae),fill:v.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":8,"font-weight":"bold"},e.toDisplayString(ae.name)+": "+e.toDisplayString(K(ae,O.donut))+" ("+e.toDisplayString(ae.value===null?"-":le(ae.value))+") ",9,Uz)]))),256)),e.createElementVNode("g",null,[e.createElementVNode("circle",{cx:O.x,cy:O.y,r:O.hoverRadius,fill:v.value.style.chart.backgroundColor},null,8,Vz)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ee.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":ce!==c.value&&c.value!==null||w.value})},[O.subtotal!==null?(e.openBlock(),e.createElementBlock("g",Qz,[O.subtotal===0?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:O.x,cy:O.y,r:3,fill:v.value.style.chart.color},null,8,Tz)):c.value!==null&&c.value===ce?(e.openBlock(),e.createElementBlock("g",Oz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.donutHover,(ae,ie)=>(e.openBlock(),e.createElementBlock("path",{d:ae.arcSlice,fill:`${ae.color}`,"stroke-width":1,stroke:v.value.style.chart.backgroundColor},null,8,zz))),256))])):(e.openBlock(),e.createElementBlock("g",Dz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.donut,(ae,ie)=>(e.openBlock(),e.createElementBlock("path",{d:ae.arcSlice,fill:`${ae.color}`,"stroke-width":.5,stroke:v.value.style.chart.backgroundColor},null,8,Pz))),256))]))])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ee.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":ce!==c.value&&c.value!==null||w.value})},[O.subtotal!==null&&v.value.style.chart.layout.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:O.x,y:c.value===O.index&&O.subtotal?O.y+v.value.style.chart.layout.dataLabels.fontSize/3:O.y-O.radius-v.value.style.chart.layout.dataLabels.fontSize+v.value.style.chart.layout.dataLabels.offsetY,"font-size":v.value.style.chart.layout.dataLabels.fontSize,"font-weight":"bold",fill:v.value.style.chart.layout.dataLabels.color},e.toDisplayString(le(O.subtotal)),9,Hz)):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ee.value,(O,ce)=>(e.openBlock(),e.createElementBlock("rect",{x:b.value.left+ce*j.value,y:V.value.absoluteHeight-b.value.bottom-10,width:j.value,height:10,fill:c.value===O.index?`url(#hover_${h.value})`:"transparent",onClick:ae=>x(O,ce),class:e.normalizeClass({"donut-hover":c.value===O.index&&O.subtotal})},null,10,Rz))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ee.value,(O,ce)=>(e.openBlock(),e.createElementBlock("rect",{"data-cy-trap":"",x:b.value.left+ce*j.value,y:b.value.top,width:j.value,height:V.value.height,fill:"transparent",onMouseenter:ae=>m(O),onMouseleave:q,onClick:ae=>x(O,ce),class:e.normalizeClass({"donut-hover":c.value===O.index&&O.subtotal})},null,42,Gz))),256)),w.value?(e.openBlock(),e.createElementBlock("g",Wz,[e.createElementVNode("rect",{rx:4,x:b.value.left,y:b.value.top,width:V.value.width,height:V.value.height,fill:v.value.style.chart.backgroundColor,style:{filter:"drop-shadow(0 12px 12px rgba(0,0,0,0.3))"}},null,8,jz),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:V.value.absoluteWidth-b.value.right-15,y1:b.value.top+5,x2:V.value.absoluteWidth-b.value.right-4,y2:b.value.top+15.5,"stroke-linecap":"round",stroke:v.value.style.chart.color,"stroke-width":"1.5"},null,8,Kz),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:V.value.absoluteWidth-b.value.right-15,y2:b.value.top+5,x2:V.value.absoluteWidth-b.value.right-4,y1:b.value.top+15.5,"stroke-linecap":"round",stroke:v.value.style.chart.color,"stroke-width":"1.5"},null,8,Xz),e.createElementVNode("circle",{"data-cy-close":"",onClick:Q,onKeypress:e.withKeys(Q,["enter"]),cx:V.value.absoluteWidth-b.value.right-V.value.width/40,cy:b.value.top+V.value.height/30,r:V.value.height/12,fill:"transparent",style:{cursor:"pointer"},tabindex:"0"},null,40,qz),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value.donutFocus,O=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{"data-cy-zoom-donut":"",d:e.unref(Qr)(O,{x:V.value.centerX,y:V.value.centerY},12,12,!1,!1,1),stroke:O.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:"vue-ui-donut-evolution-focus"},null,8,Yz)]))),256)),e.createElementVNode("circle",{cx:b.value.left+V.value.width/2,cy:b.value.top+V.value.height/2,r:V.value.height/7,fill:v.value.style.chart.backgroundColor},null,8,Jz),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value.donutFocus,(O,ce)=>(e.openBlock(),e.createElementBlock("path",{d:O.arcSlice,fill:`${O.color}`,"stroke-width":1,stroke:v.value.style.chart.backgroundColor,class:"vue-ui-donut-evolution-focus"},null,8,Zz))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value.donutFocus,(O,ce)=>(e.openBlock(),e.createElementBlock("g",eD,[e.createElementVNode("text",{"text-anchor":e.unref(ct)(O,!0,20).anchor,x:e.unref(ct)(O,!0,10).x,y:e.unref(co)(O),fill:v.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":10,"font-weight":"bold"},e.toDisplayString(O.name)+": "+e.toDisplayString(K(O,A.value.donutFocus))+" ("+e.toDisplayString(O.value===null?"-":le(O.value))+") ",9,tD)]))),256)),e.createElementVNode("circle",{cx:b.value.left+V.value.width/2,cy:b.value.top+V.value.height/2,r:V.value.height/3.8,fill:`url(#focus_${h.value})`},null,8,oD),e.createElementVNode("circle",{cx:b.value.left+V.value.width/2,cy:b.value.top+V.value.height/2,r:V.value.height/7.7,fill:v.value.style.chart.backgroundColor},null,8,lD),e.createElementVNode("text",{"text-anchor":"middle",x:b.value.left+V.value.width/2,y:b.value.top+V.value.height/2+14/3,"font-size":14,"font-weight":"bold",fill:v.value.style.chart.layout.dataLabels.color,class:"vue-ui-donut-evolution-focus"},e.toDisplayString(le(A.value.subtotal)),9,aD),v.value.style.chart.layout.grid.xAxis.dataLabels.values[A.value.index]?(e.openBlock(),e.createElementBlock("text",{key:0,x:b.value.left+6,y:b.value.top+v.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2,"font-size":v.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*1.6,fill:v.value.style.chart.layout.dataLabels.color},e.toDisplayString(v.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(A.value.index)+Number(s.value.start)]),9,rD)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(_.$slots,"svg",{svg:V.value},void 0,!0)],14,hz)):e.createCommentVNode("",!0),l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"donutEvolution",style:{backgroundColor:v.value.style.chart.backgroundColor,donutEvolution:{axis:{color:"#CCCCCC"},donuts:{color:"#CCCCCC"}}}}},null,8,["config"])),S.value>1&&v.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Hs,{key:`slicer_${i.value}`,background:v.value.style.chart.zoom.color,borderColor:v.value.style.chart.backgroundColor,fontSize:v.value.style.chart.zoom.fontSize,useResetSlot:v.value.style.chart.zoom.useResetSlot,labelLeft:v.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(s.value.start)]||"",labelRight:v.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(s.value.end)-1]||"",textColor:v.value.style.chart.color,inputColor:v.value.style.chart.zoom.color,selectColor:v.value.style.chart.zoom.highlightColor,max:S.value,min:0,valueStart:s.value.start,valueEnd:s.value.end,start:s.value.start,"onUpdate:start":X[0]||(X[0]=O=>s.value.start=O),end:s.value.end,"onUpdate:end":X[1]||(X[1]=O=>s.value.end=O),onReset:u},{"reset-action":e.withCtx(({reset:O})=>[e.renderSlot(_.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:O})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end"])):e.createCommentVNode("",!0),v.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Zo,{key:5,legendSet:Y.value,config:ne.value,onClickMarker:X[2]||(X[2]=({legend:O})=>fe(O.uid))},{item:e.withCtx(({legend:O,index:ce})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:ae=>fe(O.uid),style:e.normalizeStyle(`opacity:${f.value.includes(O.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(O.name)+": "+e.toDisplayString(Number(O.value.toFixed(v.value.style.chart.legend.roundingValue)).toLocaleString())+" ",1),f.value.includes(O.uid)?(e.openBlock(),e.createElementBlock("span",iD," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",sD," ("+e.toDisplayString(isNaN(O.value/me.value)?"-":(O.value/me.value*100).toFixed(v.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,nD)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(_.$slots,"legend",{legend:Y.value},void 0,!0),l.value?(e.openBlock(),e.createBlock(lo,{key:6,hideDetails:"",config:{open:L.value.showTable,maxHeight:1e4,body:{backgroundColor:v.value.style.chart.backgroundColor,color:v.value.style.chart.color},head:{backgroundColor:v.value.style.chart.backgroundColor,color:v.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(yo,{colNames:Z.value.colNames,head:Z.value.head,body:Z.value.body,config:Z.value.config,title:`${v.value.style.chart.title.text}${v.value.style.chart.title.subtitle.text?` : ${v.value.style.chart.title.subtitle.text}`:""}`,onClose:X[3]||(X[3]=O=>L.value.showTable=!1)},{th:e.withCtx(({th:O})=>[e.createTextVNode(e.toDisplayString(O.name??O),1)]),td:e.withCtx(({td:O})=>[O.value===null?(e.openBlock(),e.createElementBlock("span",uD,"-")):(e.openBlock(),e.createElementBlock("b",AD,e.toDisplayString(isNaN(O.value)?"":v.value.style.chart.layout.dataLabels.prefix)+e.toDisplayString(!isNaN(O.value)&&O.value!==null?Number(O.value.toFixed(v.value.table.td.roundingValue)).toLocaleString():O)+e.toDisplayString(isNaN(O.value)?"":v.value.style.chart.layout.dataLabels.suffix),1)),e.createElementVNode("span",null,e.toDisplayString(O.percentage&&!isNaN(O.percentage)?`(${Number(O.percentage.toFixed(v.value.table.td.roundingPercentage)).toLocaleString()}%)`:""),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,dz))}},mg=vt(cD,[["__scopeId","data-v-1b8abb9d"]]),dD=Object.freeze(Object.defineProperty({__proto__:null,default:mg},Symbol.toStringTag,{value:"Module"})),hD=["id"],fD=["xmlns","viewBox"],vD=["id"],gD=["stop-color"],pD=["stop-color"],yD=["x1","y1","x2","y2","stroke","stroke-width"],mD=["d","stroke","stroke-width"],bD=["stroke"],kD=["fill"],CD=["stroke"],wD=["fill"],BD=["stroke"],xD=["fill"],FD=["stroke"],ND=["fill"],_D=["stroke"],SD=["fill"],LD=["d","stroke","stroke-width","fill"],ED=["x1","y1","stroke"],ID=["cx","cy","fill","stroke"],$D=["fill","stroke"],MD=["y","fill","font-weight"],UD=["y","fill"],VD=["onClick"],QD={style:{"font-weight":"bold"}},TD=["innerHTML"],OD={__name:"vue-ui-mood-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t,{vue_ui_mood_radar:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length);e.onMounted(()=>{xt(a.dataset)&&je({componentName:"VueUiMoodRadar",type:"dataset"})});const l=e.ref(it()),s=e.ref(null),u=e.ref(null),h=e.ref(null),f=e.computed(()=>{const le=Je({userConfig:a.config,defaultConfig:n});return le.theme?{...Je({userConfig:Nt.vue_ui_mood_radar[le.theme]||a.config,defaultConfig:le})}:le}),{isPrinting:c,isImaging:p,generatePdf:w,generateImage:A}=zt({elementId:l.value,fileName:f.value.style.chart.title.text||"vue-ui-mood-radar"}),k=e.ref({showTable:f.value.table.show}),y=e.computed(()=>({height:256,width:256})),i=e.computed(()=>Qo({plot:{x:128,y:y.value.height/2},radius:90,sides:5,rotation:11}));function v({centerX:le,centerY:he,apexX:oe,apexY:R,proportion:D,key:K,value:q}){return{x:le+(oe-le)*D,y:he+(R-he)*D,key:K,value:q}}const B=e.computed(()=>Math.max(...Object.values(a.dataset).map(le=>isNaN(le)?0:le))),U=e.computed(()=>Object.values(a.dataset).reduce((le,he)=>(isNaN(le)?0:le)+(isNaN(he)?0:he),0)),$=e.computed(()=>Object.keys(a.dataset).map((le,he)=>{const oe=typeof a.dataset[le]!="number"||isNaN(a.dataset[le])?0:a.dataset[le];return{index:he,key:le,value:oe,proportion:oe/U.value,color:f.value.style.chart.layout.smileys.colors[le]}}).sort((le,he)=>he.key-le.key)),T=e.computed(()=>r.value?(["1","2","3","4","5"].forEach(le=>{[null,void 0].includes(a.dataset[le])&&je({componentName:"VueUiMoodRadar",type:"datasetAttribute",property:le})}),i.value.coordinates.map((le,he)=>{const oe=v({centerX:y.value.width/2,centerY:y.value.height/2,apexX:le.x,apexY:le.y,proportion:$.value[he].value/B.value,key:$.value[he].key,value:$.value[he].value});return{...le,plots:oe,key:$.value[he].key}})):[]),W=e.computed(()=>({cy:"mood-radar-legend",backgroundColor:f.value.style.chart.legend.backgroundColor,color:f.value.style.chart.legend.color,fontSize:f.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:f.value.style.chart.legend.bold?"bold":""}));function L(le){le===h.value?h.value=null:h.value=le}const b=e.computed(()=>{const le=$.value.map(oe=>({name:oe.key,color:oe.color})),he=$.value.map(oe=>isNaN(oe.value)?0:oe.value);return{head:le,body:he}});function V(){e.nextTick(()=>{const le=b.value.head.map((R,D)=>[[R.name],[b.value.body[D]],[isNaN(b.value.body[D]/U.value)?"-":b.value.body[D]/U.value*100]]),he=[[f.value.style.chart.title.text],[f.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(le),oe=eo(he);Zt({csvContent:oe,title:f.value.style.chart.title.text||"vue-ui-mood-radar"})})}const te=e.computed(()=>{const le=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',Number(U.value.toFixed(f.value.table.td.roundingValue)).toLocaleString(),"100%"],he=b.value.head.map((D,K)=>[{color:D.color,name:D.name},b.value.body[K].toFixed(f.value.table.td.roundingValue),isNaN(b.value.body[K]/U.value)?"-":(b.value.body[K]/U.value*100).toFixed(f.value.table.td.roundingPercentage)+"%"]),oe={th:{backgroundColor:f.value.table.th.backgroundColor,color:f.value.table.th.color,outline:f.value.table.th.outline},td:{backgroundColor:f.value.table.td.backgroundColor,color:f.value.table.td.color,outline:f.value.table.td.outline},breakpoint:f.value.table.responsiveBreakpoint},R=[f.value.table.columnNames.series,f.value.table.columnNames.value,f.value.table.columnNames.percentage];return{head:le,body:he,config:oe,colNames:R}});function I(){return $.value}function S(){k.value.showTable=!k.value.showTable}const j=e.ref(!1);function ee(le){j.value=le}return o({getData:I,generatePdf:w,generateCsv:V,generateImage:A,toggleTable:S}),(le,he)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-mood-radar ${j.value?"vue-data-ui-wrapper-fullscreen":""} ${f.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"moodRadarChart",ref:s,id:`${l.value}`,style:e.normalizeStyle(`font-family:${f.value.style.fontFamily};width:100%; text-align:center;${f.value.style.chart.title.text?"":"padding-top:36px"};background:${f.value.style.chart.backgroundColor}`)},[f.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${f.value.style.chart.backgroundColor}`)},[e.createVNode(Xt,{config:{title:{cy:"mood-radar-title",...f.value.style.chart.title},subtitle:{cy:"mood-radar-subtitle",...f.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),f.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{key:1,ref_key:"details",ref:u,backgroundColor:f.value.style.chart.backgroundColor,color:f.value.style.chart.color,isPrinting:e.unref(c),isImaging:e.unref(p),uid:l.value,hasPdf:f.value.userOptions.buttons.pdf,hasXls:f.value.userOptions.buttons.csv,hasImg:f.value.userOptions.buttons.img,hasTable:f.value.userOptions.buttons.table,hasFullscreen:f.value.userOptions.buttons.fullscreen,titles:{...f.value.userOptions.buttonTitles},chartElement:s.value,onToggleFullscreen:ee,onGeneratePdf:e.unref(w),onGenerateCsv:V,onGenerateImage:e.unref(A),onToggleTable:S},e.createSlots({_:2},[le.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(le.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,le.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(le.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,le.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(le.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,le.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(le.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,le.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:oe,isFullscreen:R})=>[e.renderSlot(le.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:oe,isFullscreen:R})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),viewBox:`0 0 ${y.value.width} ${y.value.height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":j.value,"vue-data-ui-fulscreen--off":!j.value}),style:e.normalizeStyle(`overflow:visible;background:${f.value.style.chart.backgroundColor};color:${f.value.style.chart.color}`)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`mood_radar_gradient_${l.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":f.value.style.chart.layout.dataPolygon.color+e.unref(Xe)[f.value.style.chart.layout.dataPolygon.opacity]},null,8,gD),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(Lt)(f.value.style.chart.layout.dataPolygon.color,f.value.style.chart.layout.dataPolygon.gradient.intensity/100)}${e.unref(Xe)[f.value.style.chart.layout.dataPolygon.opacity]}`},null,8,pD)],8,vD)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.coordinates,oe=>(e.openBlock(),e.createElementBlock("line",{x1:y.value.width/2,y1:y.value.height/2,x2:oe.x,y2:oe.y,stroke:f.value.style.chart.layout.grid.stroke,"stroke-width":f.value.style.chart.layout.grid.strokeWidth},null,8,yD))),256)),e.createElementVNode("path",{d:i.value.path,fill:"none",stroke:f.value.style.chart.layout.outerPolygon.stroke,"stroke-width":f.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,mD),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[5],"stroke-width":"1","stroke-linecap":"round",d:"M119 25A1 1 0 00137 25 1 1 0 00119 25M123 26C124 33 132 33 133 26L123 26M123 22A1 1 0 00126 22 1 1 0 00123 22M130 22A1 1 0 00133 22 1 1 0 00130 22"},null,8,bD),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[0]||(he[0]=oe=>h.value=5),onMouseleave:he[1]||(he[1]=oe=>h.value=null),cx:"128",cy:"25",r:"20",fill:h.value===5?f.value.style.chart.layout.smileys.colors[5]+"33":"transparent"},null,40,kD),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[4],"stroke-width":"1","stroke-linecap":"round",d:"M218 95A1 1 0 00236 95 1 1 0 00218 95M222 97C225 99 229 99 232 97M222 92A1 1 0 00225 92 1 1 0 00222 92M229 92A1 1 0 00232 92 1 1 0 00229 92"},null,8,CD),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[2]||(he[2]=oe=>h.value=4),onMouseleave:he[3]||(he[3]=oe=>h.value=null),cx:"227",cy:"95.5",r:"20",fill:h.value===4?f.value.style.chart.layout.smileys.colors[4]+"33":"transparent"},null,40,wD),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[3],"stroke-width":"1","stroke-linecap":"round",d:"M181 213A1 1 0 00199 213 1 1 0 00181 213M185 210A1 1 0 00188 210 1 1 0 00185 210M192 210A1 1 0 00195 210 1 1 0 00192 210M185 215 195 215"},null,8,BD),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[4]||(he[4]=oe=>h.value=3),onMouseleave:he[5]||(he[5]=oe=>h.value=null),cx:"190",cy:"213.5",r:"20",fill:h.value===3?f.value.style.chart.layout.smileys.colors[3]+"33":"transparent"},null,40,xD),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[2],"stroke-width":"1","stroke-linecap":"round",d:"M56 213A1 1 0 0074 213 1 1 0 0056 213M60 216C63 214 67 214 70 216M60 210A1 1 0 0063 210 1 1 0 0060 210M67 210A1 1 0 0070 210 1 1 0 0067 210"},null,8,FD),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[6]||(he[6]=oe=>h.value=2),onMouseleave:he[7]||(he[7]=oe=>h.value=null),cx:"65",cy:"213.5",r:"20",fill:h.value===2?f.value.style.chart.layout.smileys.colors[2]+"33":"transparent"},null,40,ND),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[1],"stroke-width":"1","stroke-linecap":"round",d:"M20 96A1 1 0 0038 96 1 1 0 0020 96M24 100C25 95 33 95 34 100L24 100M24 93A1 1 0 0027 93 1 1 0 0024 93M31 93A1 1 0 0034 93 1 1 0 0031 93"},null,8,_D),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[8]||(he[8]=oe=>h.value=1),onMouseleave:he[9]||(he[9]=oe=>h.value=null),cx:"29",cy:"95.5",r:"20",fill:h.value===1?f.value.style.chart.layout.smileys.colors[1]+"33":"transparent"},null,40,SD),e.createElementVNode("path",{d:e.unref(Hc)(T.value.map(oe=>oe.plots)),stroke:f.value.style.chart.layout.dataPolygon.stroke,"stroke-width":f.value.style.chart.layout.dataPolygon.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:f.value.style.chart.layout.dataPolygon.gradient.show?`url(#mood_radar_gradient_${l.value})`:f.value.style.chart.layout.dataPolygon.color+e.unref(Xe)[f.value.style.chart.layout.dataPolygon.opacity]},null,8,LD),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value.map(oe=>oe.plots),(oe,R)=>(e.openBlock(),e.createElementBlock("g",{class:"vue-ui-mood-radar-trap",style:e.normalizeStyle(`opacity:${h.value==oe.key?"1":"0"}`)},[e.createElementVNode("line",{x1:oe.x,y1:oe.y,x2:128,y2:128,stroke:f.value.style.chart.layout.smileys.colors[oe.key]},null,8,ED),e.createElementVNode("circle",{cx:oe.x,cy:oe.y,fill:f.value.style.chart.layout.smileys.colors[oe.key],r:"3",stroke:f.value.style.chart.backgroundColor,"stroke-width":.5},null,8,ID),e.createElementVNode("circle",{cx:128,cy:128,fill:f.value.style.chart.layout.smileys.colors[oe.key],r:"3",stroke:f.value.style.chart.backgroundColor,"stroke-width":.5},null,8,$D),e.createElementVNode("text",{x:128,y:["5",5].includes(oe.key)?145:120,fill:f.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle","font-weight":f.value.style.chart.layout.dataLabel.bold?"bold":"normal"},e.toDisplayString(Number(oe.value.toFixed(f.value.style.chart.layout.dataLabel.roundingValue)).toLocaleString()),9,MD),e.createElementVNode("text",{x:128,y:["5",5].includes(oe.key)?163:102,fill:f.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle"}," ("+e.toDisplayString(Number((oe.value/U.value*100).toFixed(f.value.style.chart.layout.dataLabel.roundingPercentage)).toLocaleString())+"%) ",9,UD)],4))),256)),e.renderSlot(le.$slots,"svg",{svg:y.value},void 0,!0)],14,fD)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"radar",style:{backgroundColor:f.value.style.chart.backgroundColor,radar:{grid:{color:"#CCCCCC"},shapes:{color:"#CCCCCC"}}}}},null,8,["config"])),f.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Zo,{key:4,legendSet:$.value,config:W.value,style:{display:"flex","row-gap":"6px"}},{item:e.withCtx(({legend:oe,index:R})=>[e.createElementVNode("div",{onClick:()=>L(oe.key),style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center",margin:"3px 0"}},[oe.key==1?(e.openBlock(),e.createBlock(bt,{key:0,strokeWidth:1,name:"moodSad",stroke:f.value.style.chart.layout.smileys.colors[oe.key]},null,8,["stroke"])):e.createCommentVNode("",!0),oe.key==2?(e.openBlock(),e.createBlock(bt,{key:1,strokeWidth:1,name:"moodFlat",stroke:f.value.style.chart.layout.smileys.colors[oe.key]},null,8,["stroke"])):e.createCommentVNode("",!0),oe.key==3?(e.openBlock(),e.createBlock(bt,{key:2,strokeWidth:1,name:"moodNeutral",stroke:f.value.style.chart.layout.smileys.colors[oe.key]},null,8,["stroke"])):e.createCommentVNode("",!0),oe.key==4?(e.openBlock(),e.createBlock(bt,{key:3,strokeWidth:1,name:"smiley",stroke:f.value.style.chart.layout.smileys.colors[oe.key]},null,8,["stroke"])):e.createCommentVNode("",!0),oe.key==5?(e.openBlock(),e.createBlock(bt,{key:4,strokeWidth:1,name:"moodHappy",stroke:f.value.style.chart.layout.smileys.colors[oe.key]},null,8,["stroke"])):e.createCommentVNode("",!0),e.createElementVNode("span",QD,e.toDisplayString(oe.value),1),e.createTextVNode(" ("+e.toDisplayString((isNaN(oe.proportion)?0:oe.proportion*100).toFixed(f.value.style.chart.legend.roundingPercentage))+"%) ",1)],8,VD)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(le.$slots,"legend",{legend:$.value},void 0,!0),r.value?(e.openBlock(),e.createBlock(lo,{key:5,hideDetails:"",config:{open:k.value.showTable,maxHeight:1e4,body:{backgroundColor:f.value.style.chart.backgroundColor,color:f.value.style.chart.color},head:{backgroundColor:f.value.style.chart.backgroundColor,color:f.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(yo,{colNames:te.value.colNames,head:te.value.head,body:te.value.body,config:te.value.config,title:`${f.value.style.chart.title.text}${f.value.style.chart.title.subtitle.text?` : ${f.value.style.chart.title.subtitle.text}`:""}`,onClose:he[10]||(he[10]=oe=>k.value.showTable=!1)},{th:e.withCtx(({th:oe})=>[e.createElementVNode("div",{innerHTML:oe,style:{display:"flex","align-items":"center"}},null,8,TD)]),td:e.withCtx(({td:oe})=>[e.createTextVNode(e.toDisplayString(oe.name||oe),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,hD))}},bg=vt(OD,[["__scopeId","data-v-81cc3908"]]),zD=Object.freeze(Object.defineProperty({__proto__:null,default:bg},Symbol.toStringTag,{value:"Module"})),Ou=t=>(e.pushScopeId("data-v-30081550"),t=t(),e.popScopeId(),t),DD=["id"],PD=["xmlns","viewBox"],HD=["id"],RD=["stop-color"],GD=["stop-color"],WD=["id"],jD=["stop-color"],KD=["stop-color"],XD=["id"],qD=["stop-color"],YD=["stop-color"],JD=["id"],ZD=["stop-color"],eP=["stop-color"],tP=["stop-color"],oP={key:0},lP=["id"],aP=["stop-color"],rP=["stop-color"],nP=["id"],sP=["stop-color"],iP=["stop-color"],uP=["id"],AP=["stop-color"],cP=["stop-color"],dP=["id"],hP=Ou(()=>e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF"},null,-1)),fP=Ou(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF33"},null,-1)),vP=[hP,fP],gP=["x","y","font-size","font-weight","fill"],pP=["x","y"],yP=["d","stroke"],mP=["d","stroke"],bP={key:3},kP={key:0},CP=["stroke-dasharray","d","stroke","stroke-width"],wP=["stroke-dasharray","d","stroke","stroke-width"],BP=["stroke-dasharray","d","stroke","stroke-width"],xP=["stroke-dasharray","d","stroke","stroke-width"],FP={key:1},NP=["d","stroke","stroke-width","fill"],_P=["d","stroke","stroke-width","fill"],SP=["d","stroke","stroke-width","fill"],LP={key:2},EP=["d","fill","onMouseenter","onClick"],IP=["d","fill","onMouseenter","onClick"],$P=["d","fill","onMouseenter","onClick"],MP=["d","onMouseenter","onClick"],UP=["d"],VP=["d","stroke"],QP=["onClick"],TP=["stroke","d"],OP=["cx","cy","fill","stroke"],zP=["x","y","width","height"],DP={key:1},PP=["d","stroke"],HP=["d","fill","stroke"],RP=["id"],GP=["stop-color"],WP=Ou(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),jP=["stop-color"],KP=["cx","cy","fill"],XP=["cx","cy","fill"],qP={key:0},YP=["text-anchor","x","y","fill","font-size"],JP=["text-anchor","x","y","fill","font-size"],ZP={key:2},eH=["d","fill","stroke"],tH={key:4},oH={key:0},lH=["stroke-dasharray","d","stroke","stroke-width"],aH=["stroke-dasharray","d","stroke","stroke-width"],rH=["stroke-dasharray","d","stroke","stroke-width"],nH=["stroke-dasharray","d","stroke","stroke-width"],sH=["d","stroke","stroke-width","fill"],iH=["d","stroke","stroke-width","fill"],uH={key:1},AH=["onClick"],cH=["id"],dH=["stop-color"],hH=["stop-color"],fH=["id"],vH=["stop-color"],gH=["stop-color"],pH=["stop-color"],yH=["stop-color"],mH=["stop-color"],bH=["onMouseenter","onClick","d","fill"],kH=["onMouseenter","onClick","d"],CH=["onMouseenter","onClick","d","fill"],wH=["onClick"],BH=["stroke","d"],xH=["cx","cy","fill","stroke"],FH=["x","y","width","height"],NH={key:1},_H=["d","stroke"],SH=["d","fill","stroke"],LH=["id"],EH=["stop-color"],IH=Ou(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),$H=["stop-color"],MH=["cx","cy","fill"],UH=["cx","cy","fill"],VH={key:0},QH=["text-anchor","x","y","fill","font-size"],TH=["text-anchor","x","y","fill","font-size"],OH={key:2},zH=["d","fill","stroke"],DH=["innerHTML"],PH={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(t,{expose:o,emit:a}){const n=t,{vue_ui_3d_bar:r}=ft(),l=e.computed(()=>!!n.dataset&&Object.keys(n.dataset).length),s=e.ref(it()),u=e.ref(null),h=e.ref(null),f=e.ref(!1),c=e.computed(()=>{const K=Je({userConfig:n.config,defaultConfig:r});return K.theme?{...Je({userConfig:Nt.vue_ui_3d_bar[K.theme]||n.config,defaultConfig:K}),customPalette:Pt[K.theme]||Me}:K}),{isPrinting:p,isImaging:w,generatePdf:A,generateImage:k}=zt({elementId:`3d_bar_${s.value}`,fileName:c.value.style.chart.title.text||"vue-ui-3d-bar"}),y=e.computed(()=>so(c.value.customPalette)),i=e.ref({showTable:c.value.table.show}),v=e.computed(()=>n.dataset.series&&n.dataset.series.length),B=e.computed(()=>({height:c.value.style.chart.box.dimensions.height,width:c.value.style.chart.box.dimensions.width,absoluteWidth:c.value.style.chart.box.dimensions.width*(v.value?2:1),top:c.value.style.chart.box.dimensions.top,bottom:c.value.style.chart.box.dimensions.bottom,left:c.value.style.chart.box.dimensions.left,right:c.value.style.chart.box.dimensions.right,perspective:c.value.style.chart.box.dimensions.perspective})),U=e.computed(()=>{if(v.value){const K=n.dataset.series.map(x=>x.value||0).reduce((x,Q)=>x+Q,0),q=n.dataset.series.map((x,Q)=>({...x,id:it(),proportion:(x.value||0)/K,color:At(x.color)||y.value[Q]||Me[Q]||Me[Q%Me.length],breakdown:x.breakdown?x.breakdown.sort((Y,me)=>me.value-Y.value):null})).sort((x,Q)=>Q.value-x.value),m=[];let N=0;for(let x=0;x<q.length;x+=1)m.push({...q[x],fill:W(N,q[x].proportion,q[x].breakdown,q[x].color)}),N+=q[x].proportion;return m}return null}),$=e.computed(()=>({right:`M${B.value.width/2},${B.value.top} ${B.value.width-B.value.right}, ${B.value.top+B.value.perspective} ${B.value.width-B.value.right},${B.value.height-B.value.bottom-B.value.perspective} ${B.value.width/2},${B.value.height-B.value.bottom}`,left:`M${B.value.width/2},${B.value.top} ${B.value.left},${B.value.top+B.value.perspective} ${B.value.left},${B.value.height-B.value.bottom-B.value.perspective} ${B.value.width/2},${B.value.height-B.value.bottom}`,side:`M${B.value.width/2},${B.value.height-B.value.bottom} ${B.value.width/2},${B.value.top+B.value.perspective*2}`,topSides:`M${B.value.left},${B.value.top+B.value.perspective} ${B.value.width/2},${B.value.top+B.value.perspective*2} ${B.value.width-B.value.right},${B.value.top+B.value.perspective}`,tubeTop:`M${B.value.left},${B.value.top+B.value.perspective} C ${B.value.left},${B.value.top-B.value.perspective/3} ${B.value.width-B.value.right},${B.value.top-B.value.perspective/3} ${B.value.width-B.value.right},${B.value.top+B.value.perspective} C ${B.value.width-B.value.right},${B.value.top+B.value.perspective*2.3} ${B.value.left},${B.value.top+B.value.perspective*2.3} ${B.value.left},${B.value.top+B.value.perspective}`,tubeLeft:`M${B.value.left},${B.value.top+B.value.perspective} ${B.value.left},${B.value.height-B.value.bottom-B.value.perspective}`,tubeRight:`M${B.value.width-B.value.right},${B.value.top+B.value.perspective} ${B.value.width-B.value.right},${B.value.height-B.value.bottom-B.value.perspective}`,tubeBottom:`M${B.value.width-B.value.right},${B.value.height-B.value.bottom-B.value.perspective} C ${B.value.width-B.value.right},${B.value.height} ${B.value.left},${B.value.height} ${B.value.left},${B.value.height-B.value.bottom-B.value.perspective}`})),T=e.ref(c.value.style.chart.animation.use?0:n.dataset.percentage);e.onMounted(()=>{xt(n.dataset)?je({componentName:"VueUi3dBar",type:"dataset"}):n.dataset.series?n.dataset.series.forEach((x,Q)=>{Wt({datasetObject:x,requiredAttributes:["name","value"]}).forEach(Y=>{je({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:Y,index:Q})}),x.breakdown&&x.breakdown.forEach((Y,me)=>{Wt({datasetObject:Y,requiredAttributes:["name","value"]}).forEach(ne=>{je({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:ne,index:`${Q} - ${me}`})})})}):Wt({datasetObject:n.dataset,requiredAttributes:["percentage"]}).forEach(x=>{je({componentName:"VueUi3dBar",type:"datasetAttribute",property:x})});let K=0,q=c.value.style.chart.animation.speed,m=.005*c.value.style.chart.animation.acceleration;function N(){T.value+=q+K,K+=m,T.value<n.dataset.percentage?requestAnimationFrame(N):T.value=n.dataset.percentage}c.value.style.chart.animation.use&&(T.value=0,N())});function W(K,q,m,N){const x=B.value.height-B.value.bottom-B.value.top-B.value.perspective*2,{width:Q,height:Y,bottom:me,right:ne,left:fe,perspective:Z}=B.value,J=me+x*K,z=Y-J-Z-x*q/2,P=z>B.value.height/2?"top":"bottom",ge=64,M=!!m;let _=null,X=null;return M&&(m=m.map((O,ce)=>({...O,value:O.value||0,color:Ll(N,ce/m.length)})),_=kl({series:m},Q+B.value.absoluteWidth/4-14,P==="top"?z-ge:z+ge,28,28,1.99999,2,1,360,105.25,14),X=kl({series:m},Q-ne+20,Y-J-Z-x*q/2,6,6,1.99999,2,1,360,105.25,6)),{donut:_,miniDonut:X,sidePointer:{x:Q-ne,y:Y-J-Z-x*q/2,topY:Y-J-Z-x*q,height:x*q},apexBottom:{y:Y-J,x:Q/2},apexTop:{y:Y-J-x*q,x:Q/2},right:`M${Q/2},${Y-J} ${Q/2},${Y-J-x*q} ${Q-ne},${Y-J-Z-x*q} ${Q-ne},${Y-J-Z}Z`,left:`M${Q/2},${Y-J} ${Q/2},${Y-J-x*q} ${fe}, ${Y-J-Z-x*q} ${fe},${Y-J-Z}Z`,liningTop:`M${fe},${Y-J-Z-x*q} ${Q/2},${Y-J-x*q} ${Q-ne},${Y-J-Z-x*q}`,liningTopShade:`M${fe},${Y-J-Z-x*q-.5} ${Q/2},${Y-J-x*q-.5} ${Q-ne},${Y-J-Z-x*q-.5}`,top:`M${Q/2},${Y-J-x*q} ${fe},${Y-J-Z-x*q} ${Q/2},${Y-J-Z*2-x*q} ${Q-ne},${Y-J-Z-x*q} Z`,tubeTop:`M${fe},${Y-J-x*q-Z} C ${fe},${Y-J-x*q-Z*2.5} ${Q-ne},${Y-J-x*q-Z*2.5} ${Q-ne},${Y-J-x*q-Z} C ${Q-ne},${Y-J-x*q+Z/2} ${fe},${Y-J-x*q+Z/2} ${fe},${Y-J-x*q-Z}`,bottomTubeTop:`M ${Q-ne-.5},${Y-J-Z} C ${Q-ne-.5},${Y-J+Z/2} ${fe},${Y-J+Z/2} ${fe+.5},${Y-J-Z}`,tubeBody:`M
704
+ position:relative`),onMouseenter:U[0]||(U[0]=$=>s.value=0),onMouseleave:U[1]||(U[1]=$=>s.value=void 0),onClick:U[2]||(U[2]=$=>k(1)),onKeyup:U[3]||(U[3]=e.withKeys($=>k(1),["enter"]))},[u.value.style.tooltip.show&&f.value&&p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===0?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"1",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[1]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{transition:"all 0.1s ease-in-out",position:"absolute",top:"0",left:"0"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(0),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",IV,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.active[0],.05)},null,8,$V),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.active[0]},null,8,MV)])]),UV,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:v(0)},null,8,VV)],8,EV)):(e.openBlock(),e.createElementBlock("svg",{key:2,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(0),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},OV,8,QV)),u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{transition:"all 0.1s ease-in-out",position:"absolute",top:"0",left:"0"},height:"100%",viewBox:`0 0 ${A(0)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[0],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",DV,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[0],.05)},null,8,PV),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[0]},null,8,HV)])]),RV,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley0)":u.value.style.colors.activeReadonly[0]},null,8,GV)],8,zV)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(0)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[0],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},KV,8,WV)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===2}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:U[4]||(U[4]=$=>s.value=1),onMouseleave:U[5]||(U[5]=$=>s.value=void 0),onClick:U[6]||(U[6]=$=>k(2)),onKeyup:U[7]||(U[7]=e.withKeys($=>k(2),["enter"]))},[u.value.style.tooltip.show&&f.value&&p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===1?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"2",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[2]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(1),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",qV,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.active[1],.05)},null,8,YV),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.active[1]},null,8,JV)])]),ZV,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:v(1)},null,8,eQ)],8,XV)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(1),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},lQ,8,tQ)),u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(1)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[1],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",rQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[1],.05)},null,8,nQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[1]},null,8,sQ)])]),iQ,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley1)":u.value.style.colors.activeReadonly[1]},null,8,uQ)],8,aQ)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(1)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[1],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},dQ,8,AQ)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===3}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:U[8]||(U[8]=$=>s.value=2),onMouseleave:U[9]||(U[9]=$=>s.value=void 0),onClick:U[10]||(U[10]=$=>k(3)),onKeyup:U[11]||(U[11]=e.withKeys($=>k(3),["enter"]))},[u.value.style.tooltip.show&&f.value&&p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===2?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"3",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[3]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(2),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",fQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[2],.05)},null,8,vQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[2]},null,8,gQ)])]),pQ,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:v(2)},null,8,yQ)],8,hQ)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(2),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},BQ,8,mQ)),u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(2)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[2],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[FQ,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",NQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[2],.05)},null,8,_Q),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[2]},null,8,SQ)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley2)":u.value.style.colors.activeReadonly[2]},null,8,LQ)],8,xQ)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(2)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[2],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},VQ,8,EQ)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===4}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:U[12]||(U[12]=$=>s.value=3),onMouseleave:U[13]||(U[13]=$=>s.value=void 0),onClick:U[14]||(U[14]=$=>k(4)),onKeyup:U[15]||(U[15]=e.withKeys($=>k(4),["enter"]))},[u.value.style.tooltip.show&&f.value&&p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===3?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"4",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[4]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(3),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",TQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[3],.95)},null,8,OQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[3]},null,8,zQ)])]),DQ,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:v(3)},null,8,PQ)],8,QQ)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(3),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},GQ,8,HQ)),u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(3)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[3],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[jQ,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",KQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[3],.95)},null,8,XQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[3]},null,8,qQ)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley3)":u.value.style.colors.activeReadonly[3]},null,8,YQ)],8,WQ)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(3)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[3],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},eT,8,JQ)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===5}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:U[16]||(U[16]=$=>s.value=4),onMouseleave:U[17]||(U[17]=$=>s.value=void 0),onClick:U[18]||(U[18]=$=>k(5)),onKeyup:U[19]||(U[19]=e.withKeys($=>k(5),["enter"]))},[u.value.style.tooltip.show&&f.value&&p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===4?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"5",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[5]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(4),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",oT,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[4],.9)},null,8,lT),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[4]},null,8,aT)])]),rT,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:v(4)},null,8,nT)],8,tT)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:v(4),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},uT,8,sT)),u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(4)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[4],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[cT,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",dT,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[4],.9)},null,8,hT),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[4]},null,8,fT)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley4)":u.value.style.colors.activeReadonly[4]},null,8,vT)],8,AT)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(4)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[4],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},yT,8,gT)):e.createCommentVNode("",!0)],38),u.value.style.rating.show&&u.value.style.rating.position==="right"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${u.value.style.rating.offsetY}px;font-size:${u.value.style.rating.fontSize}px;font-weight:${u.value.style.rating.bold?"bold":"normal"};padding-left:${u.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(c.value)?"":c.value.toFixed(u.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0)],4),u.value.style.rating.show&&u.value.style.rating.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(`width:100%;text-align:center;margin-top:${u.value.style.rating.offsetY}px;font-size:${u.value.style.rating.fontSize}px;font-weight:${u.value.style.rating.bold?"bold":"normal"};margin-left:${u.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(c.value)?"":c.value.toFixed(u.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0)],36))}},cg=vt(mT,[["__scopeId","data-v-3e41118a"]]),bT=Object.freeze(Object.defineProperty({__proto__:null,default:cg},Symbol.toStringTag,{value:"Module"})),kT=["id"],CT=["xmlns","viewBox"],wT=["cx","cy","r","stroke","stroke-width"],BT={key:0},xT=["stroke","d","stroke-width"],FT={key:1},NT=["stroke","x1","x2","y1","y2"],_T=["text-anchor","transform","x","y","onClick","font-weight","font-size","fill"],ST=["cx","cy","fill","onClick","r"],LT={__name:"vue-ui-relation-circle",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t;e.useCssVars(ne=>({"69fb0529":te.value,"3158da88":V.value,"2b571f2c":I.value}));const{vue_ui_relation_circle:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length),l=e.ref(it()),s=e.ref(0),u=e.ref(null),h=e.ref(null),f=e.computed(()=>{const ne=Je({userConfig:a.config,defaultConfig:n});return ne.theme?{...Je({userConfig:Nt.vue_ui_relation_circle[ne.theme]||a.config,defaultConfig:ne}),customPalette:Pt[ne.theme]||Me}:ne}),{isPrinting:c,isImaging:p,generatePdf:w,generateImage:A}=zt({elementId:`relation_circle_${l.value}`,fileName:f.value.style.title.text||"vue-ui-relation-circle"}),k=e.computed(()=>so(f.value.customPalette)),y=e.ref([]),i=e.ref([]),v=e.ref({}),B=e.ref([]),U=e.ref(0),$=e.computed(()=>a.dataset.slice(0,f.value.style.limit)),T=e.ref(f.value.style.size),W=e.ref({height:f.value.style.size,width:f.value.style.size}),L=e.computed({get(){return T.value*f.value.style.circle.radiusProportion},set(ne){return ne}}),b=e.computed(()=>f.value.style.links.curved),V=e.computed(()=>`${f.value.style.animation.speedMs}ms`),te=e.computed(()=>L.value*2),I=e.computed(()=>L.value*4),S=e.ref(null);e.onMounted(()=>{if(xt(a.dataset)?je({componentName:"VueUiRelationCircle",type:"dataset"}):a.dataset.forEach((fe,Z)=>{Wt({datasetObject:fe,requiredAttributes:["id","label","relations","weights"]}).forEach(J=>{je({componentName:"VueUiRelationCircle",type:"datasetSerieAttribute",property:J,index:Z})})}),f.value.responsive){const fe=Bo(()=>{const{width:Z,height:J}=xo({chart:u.value,title:f.value.style.title.text?h.value:null});T.value=Math.min(Z,J),W.value.width=Z,W.value.height=J,L.value=T.value*f.value.style.circle.radiusProportion,y.value=[],i.value=[],ee(),le()});S.value=new ResizeObserver(fe),S.value.observe(u.value.parentNode)}else ee(),le();document.getElementById(`relation_circle_${l.value}`).addEventListener("click",j)}),e.onBeforeUnmount(()=>{document.getElementById(`relation_circle_${l.value}`).removeEventListener("click",j),S.value&&S.value.disconnect()});function j(ne){const fe=ne.target;fe&&Array.from(fe.classList).includes("vue-ui-user-options")||fe&&Array.from(fe.classList).includes("vue-ui-user-options-summary")||fe&&Array.from(fe.classList).includes("vue-data-ui-button")||fe&&Array.from(fe.classList).includes("vue-ui-relation-circle-legend")||(v.value={},B.value=[])}function ee(){const ne=6.28319/$.value.length,fe=360/$.value.length;let Z=0,J=0;$.value.forEach((z,P)=>{const ge=L.value*Math.cos(Z)+W.value.width/2,M=L.value*Math.sin(Z)+W.value.height/2+f.value.style.circle.offsetY;y.value.push({x:ge,y:M,...z,color:z.color?z.color:k.value[P]?k.value[P]:Me[P],regAngle:J}),Z+=ne,J+=fe})}function le(){y.value.forEach(ne=>{y.value.filter(Z=>Z.relations.includes(ne.id)).forEach((Z,J)=>{i.value.push({weight:ne.weights&&ne.weights[J]?ne.weights[J]:1,relationId:`${ne.id}_${Z.id}`,x1:ne.x,y1:ne.y,x2:Z.x,y2:Z.y,colorSource:ne.color,colorTarget:Z.color,...ne})})})}const he=e.computed(()=>Math.max(...i.value.map(ne=>ne.weight)));function oe(ne){return Object.hasOwn(v.value,"x")?B.value.includes(ne.id)?"opacity:1":"opacity:0.1":"opacity:1"}function R(ne){return Object.hasOwn(v.value,"x")?ne.colorTarget:ne.colorSource}function D(ne){return Object.hasOwn(v.value,"x")?B.value.includes(ne.id)&&ne.relationId===`${ne.id}_${v.value.id}`||ne.relationId===`${v.value.id}_${ne.id}`?`opacity:1;stroke-width:${Q(ne)}`:"opacity: 0":"opacity: 1"}function K(ne){return ne.regAngle>90&&ne.regAngle<270?"end":"start"}function q(ne){return ne.regAngle>90&&ne.regAngle<270?ne.x-5:ne.x+5}function m(ne){return Object.hasOwn(v.value,"x")?v.value.id===ne.id||B.value.includes(ne.id)?"opacity:1":"opacity:0.2":"opacity:1"}function N(ne){return ne.regAngle>90&&ne.regAngle<270?`rotate(${ne.regAngle+180},${ne.x},${ne.y})`:`rotate(${ne.regAngle},${ne.x},${ne.y})`}function x(ne){U.value=360-ne.regAngle,v.value.id&&ne.id===v.value.id?(v.value={},B.value=[]):(v.value=ne,B.value=[...ne.relations])}function Q(ne){return ne.weight/he.value*f.value.style.links.maxWidth}const Y=e.ref(!1);function me(ne){Y.value=ne,s.value+=1}return o({generatePdf:w,generateImage:A}),(ne,fe)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"relationCircleChart",ref:u,class:"vue-ui-relation-circle",style:e.normalizeStyle(`width:100%;background:${f.value.style.backgroundColor};text-align:center;${f.value.responsive?"height: 100%":""}`),id:`relation_circle_${l.value}`},[f.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:h,style:e.normalizeStyle(`width:100%;background:${f.value.style.backgroundColor}`)},[e.createVNode(Xt,{config:{title:{cy:"relation-div-title",...f.value.style.title},subtitle:{cy:"relation-div-subtitle",...f.value.style.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),f.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{ref:"details",key:`user_options_${s.value}`,backgroundColor:f.value.style.backgroundColor,color:f.value.style.color,isPrinting:e.unref(c),isImaging:e.unref(p),uid:l.value,hasPdf:f.value.userOptions.buttons.pdf,hasImg:f.value.userOptions.buttons.img,hasFullscreen:f.value.userOptions.buttons.img,hasXls:!1,isFullscreen:Y.value,titles:{...f.value.userOptions.buttonTitles},chartElement:u.value,onToggleFullscreen:me,onGeneratePdf:e.unref(w),onGenerateImage:e.unref(A)},e.createSlots({_:2},[ne.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(ne.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,ne.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(ne.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,ne.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:Z,isFullscreen:J})=>[e.renderSlot(ne.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:Z,isFullscreen:J})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass([{"vue-data-ui-fullscreen--on":Y.value,"vue-data-ui-fulscreen--off":!Y.value},"relation-circle"]),viewBox:`0 0 ${W.value.width<=0?10:W.value.width} ${W.value.height<=0?10:W.value.height}`,width:"100%",style:e.normalizeStyle(`user-select:none; background:${f.value.style.backgroundColor}`)},[e.createElementVNode("circle",{cx:(W.value.width<=0?1e-4:W.value.width)/2,cy:(W.value.height<=0?1e-4:W.value.height)/2+f.value.style.circle.offsetY,r:L.value<=0?1e-4:L.value,stroke:f.value.style.circle.stroke,"stroke-width":f.value.style.circle.strokeWidth,fill:"transparent",class:"main-circle"},null,8,wT),b.value?(e.openBlock(),e.createElementBlock("g",BT,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(Z,J)=>(e.openBlock(),e.createElementBlock("path",{key:`relation_${J}`,style:e.normalizeStyle(D(Z)),stroke:R(Z),class:e.normalizeClass(["relation",{"vue-ui-relation-circle-selected":v.value.hasOwnProperty("id")&&B.value.includes(Z.id)}]),d:`M${Z.x1},${Z.y1} C${Z.x1},${Z.y1} ${W.value.width/2},${W.value.height/2+f.value.style.circle.offsetY} ${Z.x2},${Z.y2}`,fill:"none","stroke-width":Q(Z),"stroke-linecap":"round"},null,14,xT))),128))])):(e.openBlock(),e.createElementBlock("g",FT,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(Z,J)=>(e.openBlock(),e.createElementBlock("line",{key:`relation_${J}`,stroke:R(Z),style:e.normalizeStyle(D(Z)),x1:Z.x1,x2:Z.x2,y1:Z.y1,y2:Z.y2,class:e.normalizeClass({"vue-ui-relation-circle-selected":v.value.hasOwnProperty("id")&&B.value.includes(Z.id)}),"stroke-linecap":"round"},null,14,NT))),128))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(Z,J)=>(e.openBlock(),e.createElementBlock("text",{key:`plot_text_${J}`,"text-anchor":K(Z),transform:N(Z),x:q(Z),y:Z.y+5,onClick:z=>x(Z),class:"vue-ui-relation-circle-legend","transform-origin":"start","font-weight":v.value.id===Z.id?"900":"400",style:e.normalizeStyle(`font-family:${f.value.style.fontFamily};${m(Z)}`),"font-size":f.value.style.labels.fontSize,fill:f.value.style.labels.color},e.toDisplayString(Z.label),13,_T))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(Z,J)=>(e.openBlock(),e.createElementBlock("circle",{cx:Z.x,cy:Z.y,key:`plot_${J}`,style:e.normalizeStyle(oe(Z)),class:"vue-ui-relation-circle-plot",fill:f.value.style.plot.color,onClick:z=>x(Z),r:f.value.style.plot.radius},null,12,ST))),128)),e.renderSlot(ne.$slots,"svg",{svg:W.value},void 0,!0)],14,CT)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"relationCircle",style:{backgroundColor:f.value.style.backgroundColor,relationCircle:{color:"#CCCCCC"}}}},null,8,["config"]))],12,kT))}},dg=vt(LT,[["__scopeId","data-v-44982e30"]]),ET=Object.freeze(Object.defineProperty({__proto__:null,default:dg},Symbol.toStringTag,{value:"Module"})),IT=["id"],$T={key:0,style:"width:100%"},MT=["xmlns","viewBox"],UT={id:"vueUiPill",clipPathUnits:"objectBoundingBox"},VT=["fill"],QT=["id"],TT=["stop-color"],OT=["stop-color"],zT=["stop-color"],DT={"clip-path":"url(#vueUiPill)"},PT=["x","y","height","width"],HT=["x","y","height","width","fill"],RT=["x1","x2","y1","y2","stroke-width","stroke"],GT=["x1","x2","y1","y2","stroke-width","stroke"],WT=["x1","x2","y1","y2","stroke-width","stroke"],jT=["x1","x2","y1","y2","stroke-width","stroke"],KT=["x1","x2","y1","y2","stroke-width","stroke"],XT=["x1","x2","y1","y2","stroke-width","stroke"],qT=["x1","x2","y1","y2","stroke-width","stroke"],YT=["x1","x2","y1","y2","stroke-width","stroke"],JT=["x","y","height","width"],ZT=["y","x","fill","font-size","font-weight"],eO={__name:"vue-ui-thermometer",props:{dataset:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t;e.useCssVars(le=>({efcaaea8:te.value,"67dbf562":V.value,bd690a62:b.value}));const{vue_ui_thermometer:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length);e.onMounted(()=>{xt(a.dataset)?je({componentName:"VueUiThermometer",type:"dataset"}):Wt({datasetObject:a.dataset,requiredAttributes:["value","from","to"]}).forEach(le=>{je({componentName:"VueUiThermometer",type:"datasetAttribute",property:le})})});const l=e.ref(it()),s=e.ref(null),u=e.ref(0),h=e.computed(()=>{const le=Je({userConfig:a.config,defaultConfig:n});return le.theme?{...Je({userConfig:Nt.vue_ui_thermometer[le.theme]||a.config,defaultConfig:le}),customPalette:Pt[le.theme]||Me}:le}),{isPrinting:f,isImaging:c,generatePdf:p,generateImage:w}=zt({elementId:`thermometer__${l.value}`,fileName:h.value.style.title.text||"vue-ui-thermometer"}),A=e.computed(()=>so(h.value.customPalette)),k=e.computed(()=>h.value.style.chart.thermometer.width),y=e.computed(()=>a.dataset.steps||10),i=e.ref({top:h.value.style.chart.padding.top,left:h.value.style.chart.padding.left,right:h.value.style.chart.padding.right,bottom:h.value.style.chart.padding.bottom});function v(le,he,oe){const R=[],D=B(le),K=B(he);for(let q=0;q<oe;q++){const m=U(D.red,K.red,q,oe),N=U(D.green,K.green,q,oe),x=U(D.blue,K.blue,q,oe),Q=`#${$(m)}${$(N)}${$(x)}`;R.push(Q)}return R}function B(le){const he=le.slice(1);return{red:parseInt(he.slice(0,2),16),green:parseInt(he.slice(2,4),16),blue:parseInt(he.slice(4,6),16)}}function U(le,he,oe,R){return Math.round(le+(he-le)*oe/R)}function $(le){return le.toString(16).padStart(2,"0")}const T=e.computed(()=>{const le=k.value+i.value.left+i.value.right,he=h.value.style.chart.height;return{width:le,left:i.value.left,right:le-i.value.right,top:i.value.top,bottom:he-i.value.bottom,height:he}}),W=e.computed(()=>T.value),L=e.computed(()=>{const le=a.dataset.from<0?Math.abs(a.dataset.from):a.dataset.from,he=a.dataset.to<0?Math.abs(a.dataset.to):a.dataset.to;let oe=0;return a.dataset.to>0?oe=le+he:le>he?oe=le-he:oe=he-le,(1-(Math.abs(a.dataset.from)+a.dataset.value)/oe)*(T.value.height-i.value.top-i.value.bottom)}),b=e.computed(()=>`${L.value}px`),V=e.computed(()=>`${T.value.height-h.value.style.chart.padding.bottom-i.value.top}px`),te=e.computed(()=>`${h.value.style.chart.animation.speedMs}ms`),I=e.computed(()=>{if(a.dataset.colors){if(!a.dataset.colors.from)return v(A.value[0]||Me[0],At(a.dataset.colors.to),y.value||10);if(!a.dataset.colors.to)return v(At(a.dataset.colors.from),A.value[1]||Me[1],y.value||10)}else return v(A.value[1]||Me[1],A.value[0]||Me[0],y.value||10);return v(At(a.dataset.colors.from),At(a.dataset.colors.to),y.value||10)}),S=e.computed(()=>{const le=[];let he=0;const oe=T.value.height-i.value.top-i.value.bottom;for(let R=0;R<oe-1;R+=oe/y.value)le.push({x:T.value.left,y:T.value.top+R,qYLess:T.value.top+R+oe/y.value/4,halfY:T.value.top+R+oe/y.value/2,qYMore:T.value.top+R+oe/y.value/4*3,color:I.value[he],height:oe/y.value}),he+=1;return le}),j=e.ref(!1);function ee(le){j.value=le,u.value+=1}return o({generatePdf:p,generateImage:w}),(le,he)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"thermoChart",ref:s,class:e.normalizeClass(`vue-ui-thermometer ${j.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`width:100%;background:${h.value.style.chart.backgroundColor};color:${h.value.style.chart.color};font-family:${h.value.style.fontFamily}`),id:`thermometer__${l.value}`},[h.value.style.title.text?(e.openBlock(),e.createElementBlock("div",$T,[e.createVNode(Xt,{config:{title:{cy:"thermometer-div-title",...h.value.style.title},subtitle:{cy:"thermometer-div-subtitle",...h.value.style.title.subtitle}}},null,8,["config"])])):e.createCommentVNode("",!0),h.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{ref:"details",key:`user_options_${u.value}`,backgroundColor:h.value.style.chart.backgroundColor,color:h.value.style.chart.color,isImaging:e.unref(c),isPrinting:e.unref(f),uid:l.value,hasPdf:h.value.userOptions.buttons.pdf,hasImg:h.value.userOptions.buttons.img,hasFullscreen:h.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:j.value,titles:{...h.value.userOptions.buttonTitles},chartElement:s.value,onToggleFullscreen:ee,onGeneratePdf:e.unref(p),onGenerateImage:e.unref(w)},e.createSlots({_:2},[le.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(le.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,le.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(le.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,le.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:oe,isFullscreen:R})=>[e.renderSlot(le.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:oe,isFullscreen:R})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":j.value,"vue-data-ui-fulscreen--off":!j.value}),width:"100%",viewBox:`0 0 ${T.value.width} ${T.value.height}`,style:e.normalizeStyle(`background:${h.value.style.chart.backgroundColor}`)},[e.createElementVNode("defs",null,[e.createElementVNode("clipPath",UT,[e.createElementVNode("rect",{x:"0",y:"0",width:"1",height:"1",rx:"0.5",ry:"0.07",fill:h.value.style.chart.backgroundColor},null,8,VT)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(oe,R)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`vueUiThermometerGradient_${R}_${l.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":oe.color},null,8,TT),e.createElementVNode("stop",{offset:"50%","stop-color":`${oe.color}${e.unref(Xe)[100-h.value.style.chart.graduations.gradient.intensity]}`},null,8,OT),e.createElementVNode("stop",{offset:"100%","stop-color":oe.color},null,8,zT)],8,QT))),256))]),e.createElementVNode("g",DT,[e.createElementVNode("rect",{x:T.value.left,y:T.value.top,height:T.value.height-i.value.top-i.value.bottom,width:T.value.width-i.value.left-i.value.right,fill:"#FFFFFF"},null,8,PT),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(oe,R)=>(e.openBlock(),e.createElementBlock("g",{key:`graduation_${R}`},[e.createElementVNode("rect",{x:oe.x,y:oe.y,height:oe.height,width:T.value.width-h.value.style.chart.padding.left-h.value.style.chart.padding.right,fill:h.value.style.chart.graduations.gradient.show?`url(#vueUiThermometerGradient_${R}_${l.value})`:oe.color,"shape-rendering":"crispEdges"},null,8,HT),h.value.style.chart.graduations.show&&["both","left"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:oe.x,x2:oe.x+10,y1:oe.y,y2:oe.y,"stroke-width":h.value.style.chart.graduations.strokeWidth,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,RT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[h.value.style.chart.graduations.show&&["both","left"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:oe.x,x2:oe.x+5,y1:oe.halfY,y2:oe.halfY,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,GT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","left"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:oe.x,x2:oe.x+2.5,y1:oe.qYLess,y2:oe.qYLess,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,WT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","left"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:oe.x,x2:oe.x+2.5,y1:oe.qYMore,y2:oe.qYMore,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,jT)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","right"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:T.value.right,x2:T.value.right-10,y1:oe.y,y2:oe.y,"stroke-width":h.value.style.chart.graduations.strokeWidth,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,KT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[h.value.style.chart.graduations.show&&["both","right"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:T.value.right,x2:T.value.right-5,y1:oe.halfY,y2:oe.halfY,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,XT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","right"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:T.value.right,x2:T.value.right-2.5,y1:oe.qYLess,y2:oe.qYLess,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,qT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","right"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:T.value.right,x2:T.value.right-2.5,y1:oe.qYMore,y2:oe.qYMore,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,YT)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("rect",{class:e.normalizeClass({"vue-ui-thermometer-temperature":h.value.style.chart.animation.use}),x:T.value.left,y:T.value.top,height:L.value,width:T.value.width-h.value.style.chart.padding.left-h.value.style.chart.padding.right,fill:"#FFFFFF66"},null,10,JT)]),e.createElementVNode("text",{class:e.normalizeClass({"vue-ui-thermometer-temperature-value":h.value.style.chart.animation.use}),y:L.value+T.value.top+h.value.style.chart.label.fontSize/3,x:T.value.left-10,"text-anchor":"end",fill:h.value.style.chart.label.color,"font-size":h.value.style.chart.label.fontSize,"font-weight":h.value.style.chart.label.bold?"bold":"normal"},e.toDisplayString(e.unref(Ge)({p:h.value.style.chart.label.prefix,v:t.dataset.value,s:h.value.style.chart.label.suffix,r:h.value.style.chart.label.rounding})),11,ZT),e.renderSlot(le.$slots,"svg",{svg:W.value},void 0,!0)],14,MT)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"thermometer",style:{backgroundColor:h.value.style.chart.backgroundColor,thermometer:{color:"#CCCCCC"}}}},null,8,["config"]))],14,IT))}},hg=vt(eO,[["__scopeId","data-v-eef95fe3"]]),tO=Object.freeze(Object.defineProperty({__proto__:null,default:hg},Symbol.toStringTag,{value:"Module"})),oO=["xmlns","viewBox"],lO=["id"],aO=["stop-color"],rO=["stop-color"],nO=["stop-color"],sO={id:"stackPill",clipPathUnits:"objectBoundingBox"},iO=["fill"],uO={"clip-path":"url(#stackPill)"},AO=["height","width","fill"],cO=["onClick","x","width","height","fill","stroke"],dO=["onClick"],hO={style:{display:"flex","flex-direction":"row","align-items":"center",gap:"4px","justify-content":"center"}},fO=["height","width"],vO=["fill"],gO={__name:"vue-ui-sparkstackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(t,{emit:o}){const a=t,{vue_ui_sparkstackbar:n}=ft(),r=e.computed(()=>!!a.dataset&&a.dataset.length),l=e.ref(it()),s=e.computed(()=>{const B=Je({userConfig:a.config,defaultConfig:n});return B.theme?{...Je({userConfig:Nt.vue_ui_sparkstackbar[B.theme]||a.config,defaultConfig:B}),customPalette:Pt[B.theme]||Me}:B}),u=e.computed(()=>so(s.value.customPalette)),h=e.ref(a.dataset.map((B,U)=>({...B,value:s.value.style.animation.show?0:B.value||0,color:B.color?At(B.color):u.value[U]||Me[U]||Me[U%Me.length]}))),f=e.ref(!0);e.onMounted(()=>{if(xt(a.dataset)?je({componentName:"VueUiSparkStackbar",type:"dataset"}):a.dataset.forEach((B,U)=>{Wt({datasetObject:B,requiredAttributes:["name","value"]}).forEach($=>{je({componentName:"VueUiSparkStackbar",type:"datasetSerieAttribute",property:$,index:U})})}),s.value.style.animation.show){let W=function(){T+=$/B,T<$?(h.value=h.value.map((L,b)=>({...L,value:L.value+=U[b],color:L.color?At(L.color):u.value[b]||Me[b]||Me[b%Me.length]})),requestAnimationFrame(W)):(f.value=!1,h.value=a.dataset.map((L,b)=>({...L,value:L.value||0,color:L.color?At(L.color):u.value[b]||Me[b]||Me[b%Me.length],id:it()})))};const B=s.value.style.animation.animationFrames,U=a.dataset.map((L,b)=>L.value/B),$=a.dataset.map(L=>L.value||0).reduce((L,b)=>L+b,0);let T=0;f.value=!0,W()}});const c=e.ref({width:500,height:16}),p=e.ref([]),w=e.computed(()=>a.dataset.map(B=>B.value||0).filter((B,U)=>!p.value.includes(U)).reduce((B,U)=>B+U,0)),A=e.computed(()=>h.value.map((B,U)=>({...B,value:B.value||0,proportion:(B.value||0)/w.value,width:(B.value||0)/w.value*c.value.width,proportionLabel:Ge({v:(B.value||0)/w.value*100,s:"%",r:s.value.style.legend.percentage.rounding})}))),k=e.computed(()=>A.value.filter((B,U)=>!p.value.includes(U)));function y(B){p.value.includes(B)?p.value=p.value.filter(U=>U!==B):p.value.length<h.value.length-1&&p.value.push(B)}const i=e.computed(()=>{let B=0;const U=[];for(let $=0;$<k.value.length;$+=1)U.push({...k.value[$],start:B}),B+=k.value[$].width;return U});function v(B,U){o("selectDatapoint",{datapoint:B,index:U})}return(B,U)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`width:100%; background:${s.value.style.backgroundColor}`)},[s.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:${s.value.style.backgroundColor};margin:0 auto;margin:${s.value.style.title.margin};padding: 0 6px;text-align:${s.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${s.value.style.title.fontSize}px;color:${s.value.style.title.color};font-weight:${s.value.style.title.bold?"bold":"normal"}`)},e.toDisplayString(s.value.style.title.text),5),s.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${s.value.style.title.subtitle.fontSize}px;color:${s.value.style.title.subtitle.color};font-weight:${s.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(s.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),width:"100%",viewBox:`0 0 ${c.value.width} ${c.value.height}`},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,($,T)=>(e.openBlock(),e.createElementBlock("linearGradient",{key:`stack_gradient_${T}`,gradientTransform:"rotate(90)",id:`stack_gradient_${T}_${l.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":$.color},null,8,aO),e.createElementVNode("stop",{offset:"50%","stop-color":`${e.unref(Lt)($.color,.05)}${e.unref(Xe)[100-s.value.style.bar.gradient.intensity]}`},null,8,rO),e.createElementVNode("stop",{offset:"100%","stop-color":$.color},null,8,nO)],8,lO))),128)),e.createElementVNode("clipPath",sO,[e.createElementVNode("rect",{x:"0.005",y:"-2",width:"0.99",height:"5",rx:"3",ry:"3",fill:s.value.style.backgroundColor},null,8,iO)])]),e.createElementVNode("g",uO,[e.createElementVNode("rect",{x:0,y:0,height:c.value.height,width:i.value.map($=>$.width).reduce(($,T)=>$+T,0),fill:s.value.style.bar.gradient.underlayerColor,class:e.normalizeClass({animated:!f.value})},null,10,AO),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,($,T)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_${T}`,onClick:()=>v($,T),x:$.start,y:0,width:$.width,height:c.value.height,fill:s.value.style.bar.gradient.show?`url(#stack_gradient_${T}_${l.value})`:$.color,stroke:s.value.style.backgroundColor,"stroke-linecap":"round",class:e.normalizeClass({animated:!f.value})},null,10,cO))),128))])],8,oO)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:2,config:{type:"sparkStackbar",style:{backgroundColor:s.value.style.backgroundColor,sparkStackbar:{color:"#CCCCCC"}}}},null,8,["config"])),s.value.style.legend.show?(e.openBlock(),e.createElementBlock("div",{key:3,style:e.normalizeStyle(`background:${s.value.style.backgroundColor};margin:0 auto;margin:${s.value.style.legend.margin};justify-content:${s.value.style.legend.textAlign==="left"?"flex-start":s.value.style.legend.textAlign==="right"?"flex-end":"center"}`),class:"vue-ui-sparkstackbar-legend"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,($,T)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`font-size:${s.value.style.legend.fontSize}px;`),class:e.normalizeClass({"vue-ui-sparkstackbar-legend-item":!0,"vue-ui-sparkstackbar-legend-item-unselected":p.value.includes(T)}),onClick:W=>{y(T),v($,T)}},[e.createElementVNode("div",hO,[(e.openBlock(),e.createElementBlock("svg",{height:`${s.value.style.legend.fontSize}px`,width:`${s.value.style.legend.fontSize}px`,viewBox:"0 0 10 10"},[e.createElementVNode("circle",{cx:5,cy:5,r:5,fill:$.color},null,8,vO)],8,fO)),e.createElementVNode("span",{style:e.normalizeStyle(`color:${s.value.style.legend.name.color}; font-weight:${s.value.style.legend.name.bold?"bold":"normal"}`)},e.toDisplayString($.name),5),s.value.style.legend.percentage.show?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-weight:${s.value.style.legend.percentage.bold?"bold":"normal"};color:${s.value.style.legend.percentage.color}`)},e.toDisplayString(p.value.includes(T)?" - ":$.proportionLabel),5)):e.createCommentVNode("",!0),s.value.style.legend.value.show?(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(`font-weight:${s.value.style.legend.value.bold?"bold":"normal"};color:${s.value.style.legend.value.color}`)}," ("+e.toDisplayString(e.unref(Ge)({p:s.value.style.legend.value.prefix,v:$.value,s:s.value.style.legend.value.suffix,r:s.value.style.legend.value.rounding}))+") ",5)):e.createCommentVNode("",!0)])],14,dO))),256))],4)):e.createCommentVNode("",!0)],4))}},fg=vt(gO,[["__scopeId","data-v-2006741b"]]),pO=Object.freeze(Object.defineProperty({__proto__:null,default:fg},Symbol.toStringTag,{value:"Module"})),yO={key:0},mO={key:1},bO=["xmlns","viewBox"],kO=["id"],CO=["stop-color"],wO=["stop-color"],BO=["id"],xO=["stop-color"],FO=["stop-color"],NO={key:0},_O=["x","y","height","width","fill","stroke","stroke-width","rx"],SO={key:1},LO=["x","y","font-size","font-weight","fill"],EO=["x","y","font-size","fill"],IO=["x","y","font-size","fill"],$O=["height","width","x","onMouseover","stroke","stroke-width","rx","stroke-dasharray","onClick"],MO={__name:"vue-ui-sparkhistogram",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(t,{emit:o}){const a=t;e.useCssVars(k=>({"34a5ebe4":A.value}));const{vue_ui_sparkhistogram:n}=ft(),r=e.computed(()=>!!a.dataset&&a.dataset.length);e.onMounted(()=>{xt(a.dataset)?je({componentName:"VueUiSparkHistogram",type:"dataset"}):a.dataset.forEach((k,y)=>{Wt({datasetObject:k,requiredAttributes:["value"]}).forEach(i=>{je({componentName:"VueUiSparkHistogram",type:"datasetSerieAttribute",property:i,index:y})})})});const l=e.ref(it()),s=e.computed(()=>{const k=Je({userConfig:a.config,defaultConfig:n});return k.theme?{...Je({userConfig:Nt.vue_ui_sparkhistogram[k.theme]||a.config,defaultConfig:k})}:k}),u=e.computed(()=>{const k=s.value.style.layout.height,y=s.value.style.layout.width,i=s.value.style.layout.padding.top,v=k-s.value.style.layout.padding.bottom,B=s.value.style.layout.padding.left,U=y-s.value.style.layout.padding.right,$=i+(k-i-s.value.style.layout.padding.bottom)/2,T=k-s.value.style.layout.padding.top-s.value.style.layout.padding.bottom,W=y-s.value.style.layout.padding.left-s.value.style.layout.padding.right;return{bottom:v,centerY:$,drawingHeight:T,drawingWidth:W,height:k,left:B,right:U,top:i,width:y}}),h=e.computed(()=>Math.max(...a.dataset.map(k=>Math.abs(k.value||0))));function f(k){return Math.abs(k)/h.value}const c=e.computed(()=>a.dataset.map((k,y)=>{const i=f(k.value||0),v=u.value.drawingHeight*i,B=u.value.drawingWidth/a.dataset.length,U=B*(s.value.style.bars.gap/100),$=B-U,T=u.value.centerY-v/2,W=u.value.left+(U/2+y*B),L=u.value.left+y*B,b=typeof k.intensity>"u"?100:Math.round(k.intensity*100),V=k.value>=0?`${s.value.style.bars.colors.positive}${Xe[b]}`:`${s.value.style.bars.colors.negative}${Xe[b]}`,te=k.value>=0?s.value.style.bars.colors.positive:s.value.style.bars.colors.negative,I=k.value>=0?`url(#gradient_positive_${y}_${l.value})`:`url(#gradient_negative_${y}_${l.value})`,S=W+$/2;return{...k,color:V,gradient:I,height:v,intensity:b,proportion:i,stroke:te,textAnchor:S,trapX:L,unitWidth:B,width:$,x:W,y:T}})),p=e.ref(null);function w(k,y){o("selectDatapoint",{datapoint:k,index:y})}const A=e.computed(()=>`${s.value.style.animation.speedMs}ms`);return(k,y)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`width:100%;background:${s.value.style.backgroundColor};font-family:${s.value.style.fontFamily}`),onMouseleave:y[1]||(y[1]=i=>p.value=null)},[s.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:${s.value.style.backgroundColor};margin:0 auto;margin:${s.value.style.title.margin};padding: 0 6px;text-align:${s.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${s.value.style.title.fontSize}px;color:${s.value.style.title.color};font-weight:${s.value.style.title.bold?"bold":"normal"}`)},[e.createTextVNode(e.toDisplayString(s.value.style.title.text)+" ",1),p.value!==null?(e.openBlock(),e.createElementBlock("span",yO,"- "+e.toDisplayString(c.value[p.value].timeLabel||"")+" "+e.toDisplayString(s.value.style.labels.value.prefix)+e.toDisplayString(isNaN(c.value[p.value].value)?"":": "+Number(c.value[p.value].value.toFixed(s.value.style.labels.value.rounding)).toLocaleString())+e.toDisplayString(s.value.style.labels.value.suffix),1)):e.createCommentVNode("",!0),e.createTextVNode(),![void 0,null].includes(p.value)&&![null,void 0].includes(c.value[p.value].valueLabel)?(e.openBlock(),e.createElementBlock("span",mO,"("+e.toDisplayString(c.value[p.value].valueLabel||0)+")",1)):e.createCommentVNode("",!0)],4),s.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${s.value.style.title.subtitle.fontSize}px;color:${s.value.style.title.subtitle.color};font-weight:${s.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(s.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),viewBox:`0 0 ${u.value.width} ${u.value.height}`,style:{overflow:"visible"}},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,v)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_positive_${v}_${l.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(Lt)(s.value.style.bars.colors.positive,.05)}${e.unref(Xe)[i.intensity]}`},null,8,CO),e.createElementVNode("stop",{offset:"100%","stop-color":`${s.value.style.bars.colors.positive}${e.unref(Xe)[i.intensity]}`},null,8,wO)],8,kO))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,v)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_negative_${v}_${l.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(Lt)(s.value.style.bars.colors.negative,.05)}${e.unref(Xe)[i.intensity]}`},null,8,xO),e.createElementVNode("stop",{offset:"100%","stop-color":`${s.value.style.bars.colors.negative}${e.unref(Xe)[i.intensity]}`},null,8,FO)],8,BO))),256))]),!s.value.style.bars.shape||s.value.style.bars.shape==="square"?(e.openBlock(),e.createElementBlock("g",NO,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,v)=>(e.openBlock(),e.createElementBlock("rect",{x:i.x,y:i.y,height:i.height,width:i.width,fill:s.value.style.bars.colors.gradient.show?i.gradient:i.color,stroke:i.stroke,"stroke-width":s.value.style.bars.strokeWidth,rx:`${s.value.style.bars.borderRadius*i.proportion/12}%`,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":s.value.style.animation.show})},null,10,_O))),256))])):(e.openBlock(),e.createElementBlock("g",SO,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,v)=>(e.openBlock(),e.createBlock(ra,{plot:{x:i.x+i.width/2,y:i.y+i.height/2},color:s.value.style.bars.colors.gradient.show?i.gradient:i.color,shape:s.value.style.bars.shape,radius:i.height*.4,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":s.value.style.animation.show})},null,8,["plot","color","shape","radius","class"]))),256))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,v)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":"middle",x:i.textAnchor,y:i.y-s.value.style.labels.value.fontSize/3+s.value.style.labels.value.offsetY,"font-size":s.value.style.labels.value.fontSize,"font-weight":s.value.style.labels.value.bold?"bold":"normal",fill:s.value.style.labels.value.color},e.toDisplayString(s.value.style.labels.value.prefix)+e.toDisplayString(isNaN(i.value)?"":Number(i.value.toFixed(s.value.style.labels.value.rounding)).toLocaleString())+e.toDisplayString(s.value.style.labels.value.suffix),9,LO))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,v)=>(e.openBlock(),e.createElementBlock("g",null,[i.valueLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.textAnchor,y:i.y+i.height+s.value.style.labels.valueLabel.fontSize,"font-size":s.value.style.labels.valueLabel.fontSize,"text-anchor":"middle",fill:s.value.style.labels.valueLabel.color},e.toDisplayString(i.valueLabel),9,EO)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,v)=>(e.openBlock(),e.createElementBlock("g",null,[i.timeLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.textAnchor,y:u.value.height-s.value.style.labels.timeLabel.fontSize/2,"font-size":s.value.style.labels.timeLabel.fontSize,fill:s.value.style.labels.timeLabel.color,"text-anchor":"middle"},e.toDisplayString(i.timeLabel),9,IO)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,v)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{height:u.value.height,width:i.unitWidth,fill:"transparent",x:i.trapX,y:0,onMouseover:B=>p.value=v,onMouseleave:y[0]||(y[0]=B=>p.value=null),stroke:p.value!==null&&p.value===v?s.value.style.selector.stroke:"","stroke-width":p.value!==null&&p.value===v?s.value.style.selector.strokeWidth:0,rx:s.value.style.selector.borderRadius,"stroke-dasharray":s.value.style.selector.strokeDasharray,onClick:()=>w(i,v)},null,40,$O)]))),256))],8,bO)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:2,config:{type:"sparkHistogram",style:{backgroundColor:s.value.style.backgroundColor,sparkHistogram:{color:"#CCCCCC"}}}},null,8,["config"]))],36))}},vg=vt(MO,[["__scopeId","data-v-7aed7086"]]),UO=Object.freeze(Object.defineProperty({__proto__:null,default:vg},Symbol.toStringTag,{value:"Module"})),VO=["id"],QO=["xmlns","viewBox"],TO=["id"],OO=["stop-color"],zO=["stop-color"],DO=["stroke","cx","cy","r","fill"],PO=["stroke-width","cx","cy","r","fill"],HO=["cx","cy","r","onMouseenter"],RO=["onClick"],GO={key:0},WO={key:1},jO=["innerHTML"],KO={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(t,{expose:o,emit:a}){const n=t,{vue_ui_rings:r}=ft(),l=e.ref(!1),s=e.computed(()=>!!n.dataset&&n.dataset.length),u=e.ref(it()),h=e.ref(null),f=e.ref(!1),c=e.ref(""),p=e.ref(null),w=e.ref(0),A=e.ref(null),k=e.ref(null),y=e.ref(null),i=e.computed(()=>{const Z=Je({userConfig:n.config,defaultConfig:r});return Z.theme?{...Je({userConfig:Nt.vue_ui_rings[Z.theme]||n.config,defaultConfig:Z}),customPalette:Pt[Z.theme]||Me}:Z}),v=e.ref(null);e.onMounted(()=>{if(xt(n.dataset)?je({componentName:"VueUiRings",type:"dataset"}):n.dataset.forEach((Z,J)=>{Wt({datasetObject:Z,requiredAttributes:["name","values"]}).forEach(z=>{je({componentName:"VueUiRings",type:"datasetSerieAttribute",property:z,index:J})})}),i.value.responsive){const Z=Bo(()=>{const{width:J,height:z}=xo({chart:A.value,title:i.value.style.chart.title.text?k.value:null,legend:i.value.style.chart.legend.show?y.value:null});b.value.width=J,b.value.height=z});v.value=new ResizeObserver(Z),v.value.observe(A.value.parentNode)}setTimeout(()=>{l.value=!0},600)}),e.onBeforeUnmount(()=>{v.value&&v.value.disconnect()});const{isPrinting:B,isImaging:U,generatePdf:$,generateImage:T}=zt({elementId:`rings_${u.value}`,fileName:i.value.style.chart.title.text||"vue-ui-rings"}),W=e.computed(()=>so(i.value.customPalette)),L=e.ref({showTable:i.value.table.show,showTooltip:i.value.style.chart.tooltip.show}),b=e.ref({height:360,width:360}),V=e.computed(()=>Math.min(b.value.height,b.value.width)),te=e.ref([]);function I(Z){te.value.includes(Z)?te.value=te.value.filter(J=>J!==Z):te.value.push(Z),a("selectLegend",R.value.map(J=>({name:J.name,color:J.color,value:J.value})))}const S=e.computed(()=>Math.max(...ee.value.filter(Z=>!te.value.includes(Z.uid)).map(({value:Z})=>Z)));function j(Z){return Z/S.value}const ee=e.computed(()=>n.dataset.map(({values:Z,name:J,color:z=null},P)=>{const ge=(Z||[]).reduce((M,_)=>M+_,0);return{name:J,color:z||At(z)||W.value[P]||Me[P]||Me[P%Me.length],value:ge,proportion:ge/n.dataset.map(M=>(M.values||[]).reduce((_,X)=>_+X,0)).reduce((M,_)=>M+_,0),uid:it()}})),le=e.computed(()=>ee.value.map(Z=>({...Z,shape:"circle",opacity:te.value.includes(Z.uid)?.5:1,segregate:()=>I(Z.uid),isSegregated:te.value.includes(Z.uid)})).toSorted((Z,J)=>J.value-Z.value)),he=e.computed(()=>({cy:"rings-div-legend",backgroundColor:i.value.style.chart.legend.backgroundColor,color:i.value.style.chart.legend.color,fontSize:i.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:i.value.style.chart.legend.bold?"bold":""})),oe=e.computed(()=>ee.value.filter(Z=>!te.value.includes(Z.uid)).map(({value:Z})=>Z).reduce((Z,J)=>Z+J,0)),R=e.computed(()=>ee.value.filter(Z=>!te.value.includes(Z.uid)).map(({name:Z,value:J,color:z=null,uid:P},ge)=>({uid:P,name:Z,color:z||At(z)||W.value[ge]||Me[ge]||Me[ge%Me.length],value:J,proportion:j(J),percentage:J/oe.value*100,strokeWidth:i.value.style.chart.layout.rings.strokeWidth*j(J)})).toSorted((Z,J)=>J.value-Z.value));function D(){return R.value.map(({name:Z,color:J,value:z,absoluteValues:P,percentage:ge})=>({name:Z,color:J,value:z,absoluteValues:P,percentage:ge}))}const K=e.computed(()=>V.value-i.value.style.chart.layout.rings.strokeWidth*2),q=e.ref(null);function m(Z,J){if(te.value.length===n.dataset.length)return;q.value={datapoint:J,seriesIndex:Z,series:R.value,config:i.value},p.value=Z;const z=R.value[Z],P=i.value.style.chart.tooltip.customFormat;if(Gt(P)&&wo(()=>P({seriesIndex:Z,datapoint:J,series:R.value,config:i.value})))c.value=P({seriesIndex:Z,datapoint:J,series:R.value,config:i.value});else{let ge="";ge+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${i.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${z.name}</div>`,ge+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${z.color}" /></svg>`,i.value.style.chart.tooltip.showValue&&(ge+=`<b>${Ge({p:i.value.style.chart.layout.labels.dataLabels.prefix,v:z.value,s:i.value.style.chart.layout.labels.dataLabels.suffix,r:i.value.style.chart.tooltip.roundingValue})}</b>`),i.value.style.chart.tooltip.showPercentage&&(i.value.style.chart.tooltip.showValue?ge+=`<span>(${(z.value/oe.value*100).toFixed(i.value.style.chart.tooltip.roundingPercentage)}%)</span></div>`:ge+=`<b>${(z.value/oe.value*100).toFixed(i.value.style.chart.tooltip.roundingPercentage)}%</b></div>`),c.value=ge}f.value=!0}const N=e.computed(()=>{const Z=R.value.map(z=>({name:z.name,color:z.color})),J=R.value.map(z=>z.value);return{head:Z,body:J}}),x=e.computed(()=>{const Z=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',Ge({p:i.value.style.chart.layout.labels.dataLabels.prefix,v:oe.value,s:i.value.style.chart.layout.labels.dataLabels.suffix,r:i.value.table.td.roundingValue}),"100%"],J=N.value.head.map((ge,M)=>[{color:ge.color,name:ge.name},Ge({p:i.value.style.chart.layout.labels.dataLabels.prefix,v:N.value.body[M],s:i.value.style.chart.layout.labels.dataLabels.suffix,r:i.value.table.td.roundingValue}),isNaN(N.value.body[M]/oe.value)?"-":(N.value.body[M]/oe.value*100).toFixed(i.value.table.td.roundingPercentage)+"%"]),z={th:{backgroundColor:i.value.table.th.backgroundColor,color:i.value.table.th.color,outline:i.value.table.th.outline},td:{backgroundColor:i.value.table.td.backgroundColor,color:i.value.table.td.color,outline:i.value.table.td.outline},breakpoint:i.value.table.responsiveBreakpoint},P=[i.value.table.columnNames.series,i.value.table.columnNames.value,i.value.table.columnNames.percentage];return{head:Z,body:J,config:z,colNames:P}});function Q(){e.nextTick(()=>{const Z=N.value.head.map((P,ge)=>[[P.name],[N.value.body[ge]],[isNaN(N.value.body[ge]/oe.value)?"-":N.value.body[ge]/oe.value*100]]),J=[[i.value.style.chart.title.text],[i.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(Z),z=eo(J);Zt({csvContent:z,title:i.value.style.chart.title.text||"vue-ui-rings"})})}const Y=e.ref(!1);function me(Z){Y.value=Z,w.value+=1}function ne(){L.value.showTable=!L.value.showTable}function fe(){L.value.showTooltip=!L.value.showTooltip}return o({getData:D,generatePdf:$,generateCsv:Q,generateImage:T,toggleTable:ne,toggleTooltip:fe}),(Z,J)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:A,class:e.normalizeClass(`vue-ui-rings ${Y.value?"vue-data-ui-wrapper-fullscreen":""} ${i.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${i.value.style.fontFamily};text-align:center;width:100%;background:${i.value.style.chart.backgroundColor};${i.value.responsive?"height: 100%":""}`),id:`rings_${u.value}`,onMouseleave:J[3]||(J[3]=z=>{p.value=null,f.value=!1})},[i.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:k,style:e.normalizeStyle(`width:100%;background:${i.value.style.chart.backgroundColor}`)},[e.createVNode(Xt,{config:{title:{cy:"rings-div-title",...i.value.style.chart.title},subtitle:{cy:"rings-div-subtitle",...i.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),i.value.userOptions.show&&s.value?(e.openBlock(),e.createBlock(Tt,{ref_key:"details",ref:h,key:`user_options_${w.value}`,backgroundColor:i.value.style.chart.backgroundColor,color:i.value.style.chart.color,isPrinting:e.unref(B),isImaging:e.unref(U),uid:u.value,hasTooltip:i.value.userOptions.buttons.tooltip&&i.value.style.chart.tooltip.show,hasPdf:i.value.userOptions.buttons.pdf,hasXls:i.value.userOptions.buttons.csv,hasImg:i.value.userOptions.buttons.img,hasTable:i.value.userOptions.buttons.table,hasFullscreen:i.value.userOptions.buttons.fullscreen,isTooltip:L.value.showTooltip,isFullscreen:Y.value,titles:{...i.value.userOptions.buttonTitles},chartElement:A.value,onToggleFullscreen:me,onGeneratePdf:e.unref($),onGenerateCsv:Q,onGenerateImage:e.unref(T),onToggleTable:ne,onToggleTooltip:fe},e.createSlots({_:2},[Z.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,Z.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,Z.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,Z.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,Z.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,Z.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:z,isFullscreen:P})=>[e.renderSlot(Z.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:z,isFullscreen:P})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":Y.value,"vue-data-ui-fulscreen--off":!Y.value}),viewBox:`0 0 ${b.value.width<=0?10:b.value.width} ${b.value.height<=0?10:b.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${i.value.style.chart.backgroundColor};color:${i.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(z,P)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${u.value}_${P}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(Lt)(z.color,.05)}${e.unref(Xe)[100-i.value.style.chart.layout.rings.gradient.intensity]}`},null,8,OO),e.createElementVNode("stop",{offset:"100%","stop-color":z.color},null,8,zO)],8,TO))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(z,P)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":l.value&&i.value.useCssAnimation,"vue-rings-item-onload":!l.value&&i.value.useCssAnimation,"vue-ui-rings-opacity":p.value!==null&&p.value!==P}),style:e.normalizeStyle(`animation-delay:${P*100}ms`),stroke:i.value.style.chart.layout.rings.stroke,cx:b.value.width/2,cy:P===0?b.value.height/2:b.value.height/2+K.value*R.value[0].proportion/2-K.value*z.proportion/2-2*(P+1),r:K.value*z.proportion/2*.9<=0?1e-4:K.value*z.proportion/2*.9,fill:i.value.style.chart.layout.rings.gradient.underlayerColor},null,14,DO),e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":l.value&&i.value.useCssAnimation,"vue-rings-item-onload":!l.value&&i.value.useCssAnimation,"vue-ui-rings-shadow":i.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":p.value!==null&&p.value!==P}),style:e.normalizeStyle(`animation-delay:${P*100}ms`),stroke:"none","stroke-width":z.strokeWidth<.5?.5:z.strokeWidth,cx:b.value.width/2,cy:P===0?b.value.height/2:b.value.height/2+K.value*R.value[0].proportion/2-K.value*z.proportion/2-2*(P+1),r:K.value*z.proportion/2*.9<=0?1e-4:K.value*z.proportion/2*.9,fill:i.value.style.chart.layout.rings.gradient.show?`url(#gradient_${u.value}_${P})`:z.color},null,14,PO),e.createElementVNode("circle",{"data-cy-trap":"",stroke:"none",cx:b.value.width/2,cy:P===0?b.value.height/2:b.value.height/2+K.value*R.value[0].proportion/2-K.value*z.proportion/2-2*(P+1),r:K.value*z.proportion/2*.9<=0?1e-4:K.value*z.proportion/2*.9,fill:"transparent",onMouseenter:ge=>m(P,z),onMouseleave:J[0]||(J[0]=ge=>{p.value=null,f.value=!1})},null,40,HO)]))),256)),e.renderSlot(Z.$slots,"svg",{svg:b.value},void 0,!0)],14,QO)):e.createCommentVNode("",!0),s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"rings",style:{backgroundColor:i.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:y},[i.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Zo,{key:0,legendSet:le.value,config:he.value,onClickMarker:J[1]||(J[1]=({legend:z})=>I(z.uid))},{item:e.withCtx(({legend:z})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:P=>I(z.uid),style:e.normalizeStyle(`opacity:${te.value.includes(z.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(z.name)+": "+e.toDisplayString(e.unref(Ge)({p:i.value.style.chart.layout.labels.dataLabels.prefix,v:z.value,s:i.value.style.chart.layout.labels.dataLabels.suffix,r:i.value.style.chart.legend.roundingValue}))+" ",1),te.value.includes(z.uid)?(e.openBlock(),e.createElementBlock("span",WO," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",GO," ("+e.toDisplayString(isNaN(z.value/oe.value)?"-":(z.value/oe.value*100).toFixed(i.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,RO)]),_:1},8,["legendSet","config"])):e.renderSlot(Z.$slots,"legend",{key:1,legend:le.value},void 0,!0)],512),e.createVNode(Oo,{show:L.value.showTooltip&&f.value&&te.value.length<n.dataset.length,backgroundColor:i.value.style.chart.tooltip.backgroundColor,color:i.value.style.chart.tooltip.color,borderRadius:i.value.style.chart.tooltip.borderRadius,borderColor:i.value.style.chart.tooltip.borderColor,borderWidth:i.value.style.chart.tooltip.borderWidth,fontSize:i.value.style.chart.tooltip.fontSize,backgroundOpacity:i.value.style.chart.tooltip.backgroundOpacity,parent:A.value,content:c.value,isCustom:i.value.style.chart.tooltip.customFormat&&typeof i.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(Z.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...q.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(Z.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...q.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","parent","content","isCustom"]),s.value?(e.openBlock(),e.createBlock(lo,{key:4,hideDetails:"",config:{open:L.value.showTable,maxHeight:1e4,body:{backgroundColor:i.value.style.chart.backgroundColor,color:i.value.style.chart.color},head:{backgroundColor:i.value.style.chart.backgroundColor,color:i.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(yo,{colNames:x.value.colNames,head:x.value.head,body:x.value.body,config:x.value.config,title:`${i.value.style.chart.title.text}${i.value.style.chart.title.subtitle.text?` : ${i.value.style.chart.title.subtitle.text}`:""}`,onClose:J[2]||(J[2]=z=>L.value.showTable=!1)},{th:e.withCtx(({th:z})=>[e.createElementVNode("div",{innerHTML:z,style:{display:"flex","align-items":"center"}},null,8,jO)]),td:e.withCtx(({td:z})=>[e.createTextVNode(e.toDisplayString(z.name||z),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,VO))}},gg=vt(KO,[["__scopeId","data-v-956d6194"]]),XO=Object.freeze(Object.defineProperty({__proto__:null,default:gg},Symbol.toStringTag,{value:"Module"})),qO=["id"],YO=["xmlns","viewBox"],JO=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],ZO=["cx","cy","r","stroke","stroke-width"],ez=["x","y","font-size","fill","font-weight"],tz={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t,{vue_ui_wheel:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length),l=e.ref(it()),s=e.ref(null),u=e.ref(0),h=e.ref(null),f=e.ref(null),c=e.computed(()=>{const V=Je({userConfig:a.config,defaultConfig:n});return V.theme?{...Je({userConfig:Nt.vue_ui_wheel[V.theme]||a.config,defaultConfig:V})}:V}),{isPrinting:p,isImaging:w,generatePdf:A,generateImage:k}=zt({elementId:l.value,fileName:c.value.style.chart.title.text||"vue-ui-wheel"}),y=e.ref({size:360,height:360,width:360}),i=e.ref(c.value.style.chart.layout.percentage.fontSize),v=e.computed(()=>({radius:Math.min(y.value.width,y.value.height)*.9/2,centerX:y.value.width/2,centerY:y.value.height/2}));function B(V,te=1){return{x:v.value.centerX+v.value.radius*Math.cos(29.85+V*Math.PI/180)*te,y:v.value.centerY+v.value.radius*Math.sin(29.85+V*Math.PI/180)*te}}const U=e.ref(c.value.style.chart.animation.use?0:a.dataset.percentage||0);e.watch(()=>a.dataset.percentage,()=>{U.value=e.ref(c.value.style.chart.animation.use?0:a.dataset.percentage||0),T()});const $=e.ref(null);e.onMounted(()=>{if(xt(a.dataset)&&je({componentName:"VueUiWheel",type:"dataset"}),T(),c.value.responsive){const V=Bo(()=>{const{width:te,height:I}=xo({chart:h.value,title:c.value.style.chart.title.text?f.value:null});y.value.width=te,y.value.height=I,i.value=c.value.style.chart.layout.percentage.fontSize/360*Math.min(te,I)});$.value=new ResizeObserver(V),$.value.observe(h.value.parentNode)}}),e.onBeforeUnmount(()=>{$.value&&$.value.disconnect()});function T(){let V=0,te=c.value.style.chart.animation.speed,I=.005*c.value.style.chart.animation.acceleration;function S(){U.value+=te+V,V+=I,U.value<(a.dataset.percentage||0)?requestAnimationFrame(S):U.value=a.dataset.percentage||0}c.value.style.chart.animation.use&&(U.value=0,S())}const W=e.computed(()=>{const V=[];for(let I=0;I<100;I+=1){const S=U.value>I?c.value.style.chart.layout.wheel.ticks.activeColor:c.value.style.chart.layout.wheel.ticks.inactiveColor,{x:j,y:ee}=B(y.value.size/100*I),{x:le,y:he}=B(y.value.size/100*I,.9);V.push({x1:j,y1:ee,x2:le,y2:he,color:c.value.style.chart.layout.wheel.ticks.gradient.show?Lt(S,I/100*(c.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):S})}return V}),L=e.ref(!1);function b(V){L.value=V,u.value+=1}return o({generatePdf:A,generateImage:k}),(V,te)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:h,id:l.value,style:e.normalizeStyle(`font-family:${c.value.style.fontFamily};width:100%; text-align:center;background:${c.value.style.chart.backgroundColor};${c.value.responsive?"height:100%":""}`)},[c.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:f,style:e.normalizeStyle(`width:100%;background:${c.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(Xt,{config:{title:{cy:"wheel-title",...c.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...c.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),c.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{ref_key:"details",ref:s,key:`user_options_${u.value}`,backgroundColor:c.value.style.chart.backgroundColor,color:c.value.style.chart.color,isPrinting:e.unref(p),isImaging:e.unref(w),uid:l.value,hasPdf:c.value.userOptions.buttons.pdf,hasImg:c.value.userOptions.buttons.img,hasFullscreen:c.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:L.value,titles:{...c.value.userOptions.buttonTitles},chartElement:h.value,onToggleFullscreen:b,onGeneratePdf:e.unref(A),onGenerateImage:e.unref(k)},e.createSlots({_:2},[V.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(V.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,V.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(V.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,V.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:I,isFullscreen:S})=>[e.renderSlot(V.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:I,isFullscreen:S})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":L.value,"vue-data-ui-fulscreen--off":!L.value}),viewBox:`0 0 ${y.value.width<=0?10:y.value.width} ${y.value.height<=0?10:y.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(W.value,(I,S)=>(e.openBlock(),e.createElementBlock("line",{x1:I.x1,x2:I.x2,y1:I.y1,y2:I.y2,stroke:I.color,"stroke-width":5/360*Math.min(y.value.width,y.value.height),"stroke-linecap":c.value.style.chart.layout.wheel.ticks.rounded?"round":"butt",class:e.normalizeClass({"vue-ui-tick-animated":c.value.style.chart.animation.use&&S<=U.value})},null,10,JO))),256)),c.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:v.value.centerX,cy:v.value.centerY,r:v.value.radius*.8<=0?1e-4:v.value.radius*.8,stroke:c.value.style.chart.layout.innerCircle.stroke,"stroke-width":c.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,ZO)):e.createCommentVNode("",!0),c.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:v.value.centerX,y:v.value.centerY+i.value/3,"font-size":i.value,fill:c.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(Lt)(c.value.style.chart.layout.wheel.ticks.activeColor,U.value/100*(c.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):c.value.style.chart.layout.wheel.ticks.activeColor,"text-anchor":"middle","font-weight":c.value.style.chart.layout.percentage.bold?"bold":"normal",style:{"font-variant-numeric":"tabluar-nums"}},e.toDisplayString(Number(U.value.toFixed(c.value.style.chart.layout.percentage.rounding)).toLocaleString())+"% ",9,ez)):e.createCommentVNode("",!0),e.renderSlot(V.$slots,"svg",{svg:y.value},void 0,!0)],14,YO)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"wheel",style:{backgroundColor:c.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],12,qO))}},pg=vt(tz,[["__scopeId","data-v-9e158d61"]]),oz=Object.freeze(Object.defineProperty({__proto__:null,default:pg},Symbol.toStringTag,{value:"Module"})),lz=["id"],az=["xmlns","viewBox"],rz={key:0},nz=["d","stroke-width","stroke"],sz={key:1},iz=["x1","y1","x2","y2","stroke-width","stroke"],uz=["x","y","font-size","fill","font-weight","text-anchor"],Az={__name:"vue-ui-tiremarks",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t,{vue_ui_tiremarks:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length),l=e.ref(it()),s=e.ref(null),u=e.ref(0),h=e.computed(()=>{const V=Je({userConfig:a.config,defaultConfig:n});return V.theme?{...Je({userConfig:Nt.vue_ui_tiremarks[V.theme]||a.config,defaultConfig:V})}:V}),{isPrinting:f,isImaging:c,generatePdf:p,generateImage:w}=zt({elementId:l.value,fileName:h.value.style.chart.title.text||"vue-ui-tiremarks"}),A=e.ref(h.value.style.chart.animation.use?0:a.dataset.percentage);e.watch(()=>a.dataset.percentage,()=>{A.value=e.ref(h.value.style.chart.animation.use?0:a.dataset.percentage),k()}),e.onMounted(()=>{xt(a.dataset)&&je({componentName:"VueUiTiremarks",type:"dataset"}),k()});function k(){let V=0,te=h.value.style.chart.animation.speed,I=.005*h.value.style.chart.animation.acceleration;function S(){A.value+=te+V,V+=I,A.value<a.dataset.percentage?requestAnimationFrame(S):A.value=a.dataset.percentage}h.value.style.chart.animation.use&&(A.value=0,S())}const y=e.computed(()=>h.value.style.chart.layout.display==="vertical"),i=e.computed(()=>{const V={top:48,left:64,right:64,bottom:48};return y.value?{top:h.value.style.chart.percentage.verticalPosition==="top"?V.top:3,left:3,right:3,bottom:h.value.style.chart.percentage.verticalPosition==="bottom"?V.bottom:3}:{top:0,bottom:0,left:h.value.style.chart.percentage.horizontalPosition==="left"?V.left:3,right:h.value.style.chart.percentage.horizontalPosition==="right"?V.right:10}}),v=e.computed(()=>Object.values(i.value).reduce((V,te)=>V+te,0)),B=e.computed(()=>({height:y.value?312:56,width:y.value?56:312})),U=e.ref(100);e.computed(()=>a.dataset.percentage/U.value);const $=e.computed(()=>y.value?{mark:(B.value.height-v.value)/100*.5,space:(B.value.height-v.value)/100*.5}:{mark:(B.value.width-v.value)/100*.5,space:(B.value.width-v.value)/100*.5}),T=e.computed(()=>{const V=[];for(let I=0;I<100;I+=1){const S=h.value.style.chart.layout.ticks.gradient.show?Lt(h.value.style.chart.layout.activeColor,I/100*(h.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):h.value.style.chart.layout.activeColor;if(y.value){const j=h.value.style.chart.layout.crescendo?(100-I)*(B.value.width-i.value.left-i.value.right)/100/3:0,ee=i.value.left+4+j,le=B.value.width-i.value.right-4-j,he=B.value.height-i.value.bottom-I*$.value.mark-I*$.value.space-$.value.mark,oe=B.value.height-i.value.bottom-I*$.value.mark-I*$.value.space-$.value.mark,R=(le-ee)/h.value.style.chart.layout.curveAngleX,D=h.value.style.chart.layout.curveAngleY*((1+I)/100);V.push({x1:ee,x2:le,y1:he,y2:oe,curve:`M ${ee} ${he} C ${ee+R} ${he-D}, ${le-R} ${oe-D}, ${le} ${oe}`,color:S})}else{const j=h.value.style.chart.layout.crescendo?(100-I)*(B.value.height-i.value.top-i.value.bottom)/100/3:0,ee=i.value.left+I*$.value.mark+I*$.value.space-$.value.mark,le=ee,he=i.value.top+4+j,oe=B.value.height-i.value.bottom-4-j,R=h.value.style.chart.layout.curveAngleY*((1+I)/100),D=(oe-he)/h.value.style.chart.layout.curveAngleX;V.push({x1:ee,x2:le,y1:he,y2:oe,curve:`M ${ee} ${he} C ${ee+R} ${he+D}, ${le+R} ${oe-D}, ${le} ${oe}`,color:S})}}return V}),W=e.computed(()=>{let V,te,I;const S=h.value.style.chart.percentage.fontSize/3;return y.value?h.value.style.chart.percentage.verticalPosition==="top"?(V=B.value.width/2,te=i.value.top/2,I="middle"):h.value.style.chart.percentage.verticalPosition==="bottom"&&(V=B.value.width/2,te=B.value.height-i.value.bottom/2+S,I="middle"):h.value.style.chart.percentage.horizontalPosition==="left"?(V=4,te=B.value.height/2+S,I="start"):h.value.style.chart.percentage.horizontalPosition==="right"&&(V=B.value.width-i.value.right+8,te=B.value.height/2+S,I="start"),{x:V,y:te,textAnchor:I,bold:h.value.style.chart.percentage.bold,fontSize:h.value.style.chart.percentage.fontSize,fill:h.value.style.chart.percentage.color}}),L=e.ref(!1);function b(V){L.value=V,u.value+=1}return o({generatePdf:p,generateImage:w}),(V,te)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tiremarksChart",ref:s,class:e.normalizeClass(`vue-ui-tiremarks ${h.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${h.value.style.fontFamily};width:100%; text-align:center;${h.value.style.chart.title.text?"":"padding-top:36px"};background:${h.value.style.chart.backgroundColor}`),id:l.value},[h.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${h.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(Xt,{config:{title:{cy:"wheel-title",...h.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...h.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),h.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{ref:"details",key:`user_options_${u.value}`,backgroundColor:h.value.style.chart.backgroundColor,color:h.value.style.chart.color,isPrinting:e.unref(f),isImaging:e.unref(c),uid:l.value,hasPdf:h.value.userOptions.buttons.pdf,hasImg:h.value.userOptions.buttons.img,hasFullscreen:h.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:L.value,titles:{...h.value.userOptions.buttonTitles},chartElement:s.value,onToggleFullscreen:b,onGeneratePdf:e.unref(p),onGenerateImage:e.unref(w)},e.createSlots({_:2},[V.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(V.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,V.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(V.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,V.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:I,isFullscreen:S})=>[e.renderSlot(V.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:I,isFullscreen:S})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":L.value,"vue-data-ui-fulscreen--off":!L.value}),viewBox:`0 0 ${B.value.width} ${B.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${h.value.style.chart.backgroundColor};color:${h.value.style.chart.color}`)},[h.value.style.chart.layout.curved?(e.openBlock(),e.createElementBlock("g",rz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(I,S)=>(e.openBlock(),e.createElementBlock("path",{d:I.curve,"stroke-width":$.value.mark,stroke:A.value>=S?I.color:h.value.style.chart.layout.inactiveColor,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"vue-ui-tick-animated":h.value.style.chart.animation.use&&S<=A.value})},null,10,nz))),256))])):(e.openBlock(),e.createElementBlock("g",sz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(I,S)=>(e.openBlock(),e.createElementBlock("line",{x1:I.x1,y1:I.y1,x2:I.x2,y2:I.y2,"stroke-width":$.value.mark,stroke:A.value>=S?I.color:h.value.style.chart.layout.inactiveColor,"stroke-linecap":"round"},null,8,iz))),256))])),h.value.style.chart.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:W.value.x,y:W.value.y,"font-size":W.value.fontSize,fill:h.value.style.chart.layout.ticks.gradient.show&&h.value.style.chart.percentage.useGradientColor?e.unref(Lt)(h.value.style.chart.layout.activeColor,A.value/100*(h.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):h.value.style.chart.percentage.color,"font-weight":W.value.bold?"bold":"normal","text-anchor":W.value.textAnchor},e.toDisplayString(A.value.toFixed(h.value.style.chart.percentage.rounding)+"%"),9,uz)):e.createCommentVNode("",!0),e.renderSlot(V.$slots,"svg",{svg:B.value},void 0,!0)],14,az)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"tiremarks",style:{backgroundColor:h.value.style.chart.backgroundColor,tiremarks:{color:"#CCCCCC"}}}},null,8,["config"]))],14,lz))}},yg=vt(Az,[["__scopeId","data-v-1bbd1baf"]]),cz=Object.freeze(Object.defineProperty({__proto__:null,default:yg},Symbol.toStringTag,{value:"Module"})),dz=["id"],hz=["xmlns","viewBox"],fz=["id"],vz=["stop-color"],gz=["stop-color"],pz=["id"],yz=["stop-color"],mz=["stop-color"],bz=["stop-color"],kz={key:0},Cz=["x1","x2","y1","y2","stroke","stroke-width"],wz=["x1","x2","y1","y2","stroke","stroke-width"],Bz={key:0},xz=["x1","x2","y1","y2","stroke","stroke-width"],Fz=["x1","x2","y1","y2","stroke","stroke-width"],Nz=["x","y","font-size","fill","font-weight"],_z=["text-anchor","font-size","fill","transform"],Sz=["x1","y1","x2","y2","stroke","stroke-width"],Lz={key:1},Ez=["cx","cy","r","fill"],Iz={key:0},$z={key:0},Mz=["d","stroke"],Uz=["text-anchor","x","y","fill"],Vz=["cx","cy","r","fill"],Qz={key:0},Tz=["cx","cy","fill"],Oz={key:1},zz=["d","fill","stroke"],Dz={key:2},Pz=["d","fill","stroke"],Hz=["x","y","font-size","fill"],Rz=["x","y","width","fill","onClick"],Gz=["x","y","width","height","onMouseenter","onClick"],Wz={key:3,"data-cy-zoom":"",class:"vue-ui-donut-evolution-dialog"},jz=["x","y","width","height","fill"],Kz=["x1","y1","x2","y2","stroke"],Xz=["x1","y2","x2","y1","stroke"],qz=["onKeypress","cx","cy","r"],Yz=["d","stroke"],Jz=["cx","cy","r","fill"],Zz=["d","fill","stroke"],eD={class:"vue-ui-donut-evolution-focus"},tD=["text-anchor","x","y","fill"],oD=["cx","cy","r","fill"],lD=["cx","cy","r","fill"],aD=["x","y","fill"],rD=["x","y","font-size","fill"],nD=["onClick"],sD={key:0},iD={key:1},uD={key:0},AD={key:1},cD={__name:"vue-ui-donut-evolution",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(t,{expose:o,emit:a}){const n=t,{vue_ui_donut_evolution:r}=ft(),l=e.computed(()=>!!n.dataset&&n.dataset.length),s=e.ref({start:0,end:Math.max(...n.dataset.map(_=>_.values.length))});function u(){s.value={start:0,end:S.value},i.value+=1}e.onMounted(()=>{xt(n.dataset)?je({componentName:"VueUiDonutEvolution",type:"dataset"}):n.dataset.length&&n.dataset.forEach((_,X)=>{Wt({datasetObject:_,requiredAttributes:["name","values"]}).forEach(O=>{je({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:O,index:X})})})});const h=e.ref(it()),f=e.ref([]),c=e.ref(null),p=e.ref(null),w=e.ref(!1),A=e.ref(null),k=e.ref(null),y=e.ref(0),i=e.ref(0),v=e.computed(()=>{const _=Je({userConfig:n.config,defaultConfig:r});return _.theme?{...Je({userConfig:Nt.vue_ui_donut_evolution[_.theme]||n.config,defaultConfig:_}),customPalette:Pt[_.theme]||Me}:_}),{isPrinting:B,isImaging:U,generatePdf:$,generateImage:T}=zt({elementId:h.value,fileName:v.value.style.chart.title.text||"vue-ui-donut-evolution"}),W=e.computed(()=>so(v.value.customPalette)),L=e.ref({showTable:v.value.table.show}),b=e.computed(()=>({top:v.value.style.chart.layout.padding.top,right:v.value.style.chart.layout.padding.right,bottom:v.value.style.chart.layout.padding.bottom,left:v.value.style.chart.layout.padding.left})),V=e.computed(()=>{const _=v.value.style.chart.layout.height,X=v.value.style.chart.layout.width,O=_-b.value.top-b.value.bottom,ce=X-b.value.left-b.value.right;return{absoluteHeight:_,absoluteWidth:X,centerX:b.value.left+ce/2,centerY:b.value.top+O/2,height:O,width:ce}}),te=e.computed(()=>(n.dataset.forEach((_,X)=>{[null,void 0].includes(_.name)&&je({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"name",index:X}),[null,void 0].includes(_.values)&&je({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"values",index:X})}),n.dataset.map((_,X)=>({..._,values:_.values||[],color:At(_.color)||W.value[X]||Me[X]||Me[X%Me.length],length:(_.values||[]).length,uid:it()})))),I=e.computed(()=>te.value.filter(_=>!f.value.includes(_.uid)).map(_=>({..._,values:_.values.filter((X,O)=>O>=s.value.start&&O<=s.value.end)}))),S=e.computed(()=>Math.max(...I.value.map(_=>_.length))),j=e.computed(()=>V.value.width/(s.value.end-s.value.start)),ee=e.computed(()=>{const _=[];for(let ae=0;ae<s.value.end-s.value.start;ae+=1){const ie=I.value.map(ve=>ve.values[ae]??null),G=ie.filter(ve=>[void 0,null].includes(ve)).length===ie.length,re=ie.reduce((ve,Ce)=>ve+Ce,0),Ae=ie.map(ve=>ve/re),se=b.value.left+j.value*ae+j.value/2;_.push({index:ae,percentages:Ae,subtotal:G||re<0?null:re,values:ie,x:se})}const X=0,O=Math.max(..._.map(ae=>ae.subtotal)),ce=_.length===1?O*2:O;return _.map((ae,ie)=>{const G=j.value/2*.7,re=G>V.value.width/16?V.value.width/16:G,Ae=c.value===ae.index?V.value.width/16:re,se=_.length>4?G*2:G*2>j.value/2*.7?j.value/2*.7:G*2,ve=V.value.absoluteHeight-b.value.bottom-V.value.height*ae.subtotal/Pl(X,ce,v.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;return{...ae,y:ve,radius:re,activeRadius:Ae,hoverRadius:se,donut:kl({series:I.value.map((Ce,Ue)=>({color:Ce.color,name:Ce.name,value:Ce.values[ie]??0}))},ae.x,ve,re,re,1.99999,2,1,360,105.25,re/2),donutHover:kl({series:I.value.map((Ce,Ue)=>({color:Ce.color,name:Ce.name,value:Ce.values[ie]??0}))},ae.x,ve,se,se,1.99999,2,1,360,105.25,se/2),donutFocus:kl({series:I.value.map((Ce,Ue)=>({color:Ce.color,name:Ce.name,value:Ce.values[ie]??0}))},V.value.centerX,V.value.centerY,V.value.height/3.6,V.value.height/3.6,1.99999,2,1,360,105.25,V.value.height/6)}})});function le(_){return`${v.value.style.chart.layout.dataLabels.prefix}${isNaN(_)?"-":Number(_.toFixed(v.value.style.chart.layout.dataLabels.rounding)).toLocaleString()}${v.value.style.chart.layout.dataLabels.suffix}`}const he=e.computed(()=>({max:Math.max(...ee.value.map(_=>_.subtotal)),min:0})),oe=e.computed(()=>{const _=ee.value.length===1?he.value.max*2:he.value.max;return Pl(he.value.min,_,v.value.style.chart.layout.grid.yAxis.dataLabels.steps)});function R(_){return _/oe.value.max}const D=e.computed(()=>oe.value.ticks.map(_=>({y:V.value.absoluteHeight-b.value.bottom-V.value.height*R(_),value:_})));function K(_,X){return isNaN(_.value/Af(X,"value"))?0:(_.value/Af(X,"value")*100).toFixed(0)+"%"}function q(){w.value||(c.value=null,p.value=null)}function m(_){w.value||(c.value=_.index,p.value=_)}const N=e.ref(null);function x(_,X){_.subtotal&&(p.value=null,c.value=null,w.value=!0,A.value=_,[null,void 0].includes(X)||(N.value=X))}function Q(){A.value=null,w.value=!1,N.value=null}const Y=e.computed(()=>te.value.map((_,X)=>({name:_.name,value:_.values.slice(s.value.start,s.value.end).reduce((O,ce)=>O+ce,0),shape:"circle",uid:_.uid,color:_.color})).sort((_,X)=>X.value-_.value).map(_=>({..._,opacity:f.value.includes(_.uid)?.5:1,segregate:()=>fe(_.uid),isSegregated:f.value.includes(_.uid)}))),me=e.computed(()=>ee.value.map(_=>_.subtotal).reduce((_,X)=>_+X,0)),ne=e.computed(()=>({cy:"donut-div-legend",backgroundColor:v.value.style.chart.legend.backgroundColor,color:v.value.style.chart.legend.color,fontSize:v.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:v.value.style.chart.legend.bold?"bold":""}));function fe(_){if(f.value.includes(_))f.value=f.value.filter(X=>X!==_),a("selectLegend",null);else{if(f.value.length===te.value.length-1)return;f.value.push(_),a("selectLegend",te.value.find(X=>X.uid===_))}A.value&&x(ee.value.find((X,O)=>O===N.value))}const Z=e.computed(()=>{const _=[""].concat(te.value.filter(ae=>!f.value.includes(ae.uid)).map(ae=>({name:ae.name,color:ae.color}))).concat(["Σ"]);let X=[];for(let ae=0;ae<S.value;ae+=1){const ie=te.value.filter(G=>!f.value.includes(G.uid)).map(G=>G.values[ae]??0).reduce((G,re)=>G+re,0);X.push([v.value.style.chart.layout.grid.xAxis.dataLabels.values[ae]??"-"].concat(te.value.filter(G=>!f.value.includes(G.uid)).map(G=>({value:G.values[ae]??0,percentage:G.values[ae]?G.values[ae]/ie*100:0}))).concat([`${v.value.style.chart.layout.dataLabels.prefix}${Number(ie.toFixed(v.value.table.td.roundingValue))}${v.value.style.chart.layout.dataLabels.suffix}`]))}const O={th:{backgroundColor:v.value.table.th.backgroundColor,color:v.value.table.th.color,outline:v.value.table.th.outline},td:{backgroundColor:v.value.table.td.backgroundColor,color:v.value.table.td.color,outline:v.value.table.td.outline},breakpoint:v.value.table.responsiveBreakpoint},ce=[v.value.table.columnNames.period].concat(te.value.filter(ae=>!f.value.includes(ae.uid)).map(ae=>ae.name)).concat(v.value.table.columnNames.total);return{head:_,body:X,config:O,colNames:ce}});function J(){return te.value}function z(){e.nextTick(()=>{const _=[[v.value.style.chart.title.text],[v.value.style.chart.title.subtitle.text],[""]],X=[...Z.value.head.map(ie=>ie.name??ie)],O=[...Z.value.body.map(ie=>ie.map(G=>G.value??G))],ce=_.concat([X]).concat(O),ae=eo(ce);Zt({csvContent:ae,title:v.value.style.chart.title.text||"vue-ui-donut-evolution"})})}const P=e.ref(!1);function ge(_){P.value=_,y.value+=1}function M(){L.value.showTable=!L.value.showTable}return o({getData:J,generatePdf:$,generateCsv:z,generateImage:T,toggleTable:M}),(_,X)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutEvolutionChart",ref:k,class:e.normalizeClass(`vue-ui-donut-evolution ${P.value?"vue-data-ui-wrapper-fullscreen":""} ${v.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${v.value.style.fontFamily};width:100%; text-align:center;${v.value.style.chart.title.text?"":"padding-top:36px"};background:${v.value.style.chart.backgroundColor}`),id:h.value},[v.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${v.value.style.chart.backgroundColor};padding-bottom:24px`),onMouseleave:q},[e.createVNode(Xt,{config:{title:{cy:"donut-evolution-div-title",...v.value.style.chart.title},subtitle:{cy:"donut-evolution-div-subtitle",...v.value.style.chart.title.subtitle}}},null,8,["config"])],36)):e.createCommentVNode("",!0),v.value.userOptions.show&&l.value?(e.openBlock(),e.createBlock(Tt,{ref:"details",key:`user_options_${y.value}`,backgroundColor:v.value.style.chart.backgroundColor,color:v.value.style.chart.color,isPrinting:e.unref(B),isImaging:e.unref(U),uid:h.value,hasPdf:v.value.userOptions.buttons.pdf,hasImg:v.value.userOptions.buttons.img,hasXls:v.value.userOptions.buttons.csv,hasTable:v.value.userOptions.buttons.table,hasFullscreen:v.value.userOptions.buttons.fullscreen,isFullscreen:P.value,titles:{...v.value.userOptions.buttonTitles},chartElement:k.value,onToggleFullscreen:ge,onGeneratePdf:e.unref($),onGenerateCsv:z,onGenerateImage:e.unref(T),onToggleTable:M},e.createSlots({_:2},[_.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,_.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,_.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,_.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,_.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:O,isFullscreen:ce})=>[e.renderSlot(_.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:O,isFullscreen:ce})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":P.value,"vue-data-ui-fulscreen--off":!P.value}),viewBox:`0 0 ${V.value.absoluteWidth} ${V.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${v.value.style.chart.backgroundColor};color:${v.value.style.chart.color}`)},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`hover_${h.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${v.value.style.chart.backgroundColor}${e.unref(Xe)[v.value.style.chart.layout.highlighter.opacity]}`},null,8,vz),e.createElementVNode("stop",{offset:"100%","stop-color":`${v.value.style.chart.layout.highlighter.color}${e.unref(Xe)[v.value.style.chart.layout.highlighter.opacity]}`},null,8,gz)],8,fz),e.createElementVNode("radialGradient",{id:`focus_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(At)(v.value.style.chart.backgroundColor)}00`},null,8,yz),e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF"+e.unref(Xe)[30]},null,8,mz),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(At)(v.value.style.chart.backgroundColor)}00`},null,8,bz)],8,pz)]),v.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",kz,[e.createElementVNode("line",{x1:b.value.left,x2:b.value.left,y1:b.value.top,y2:b.value.top+V.value.height,stroke:v.value.style.chart.layout.grid.stroke,"stroke-width":v.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Cz),e.createElementVNode("line",{x1:b.value.left,x2:V.value.absoluteWidth-b.value.right,y1:V.value.absoluteHeight-b.value.bottom,y2:V.value.absoluteHeight-b.value.bottom,stroke:v.value.style.chart.layout.grid.stroke,"stroke-width":v.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,wz),v.value.style.chart.layout.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",Bz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.end-s.value.start,(O,ce)=>(e.openBlock(),e.createElementBlock("line",{x1:b.value.left+(ce+1)*j.value,x2:b.value.left+(ce+1)*j.value,y1:b.value.top,y2:V.value.absoluteHeight-b.value.bottom,stroke:v.value.style.chart.layout.grid.stroke,"stroke-width":v.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,xz))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),v.value.style.chart.layout.grid.yAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:1,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":c.value!==null||w.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",null,[O.value>=oe.value.min&&O.value<=oe.value.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:b.value.left,x2:b.value.left-5,y1:O.y,y2:O.y,stroke:v.value.style.chart.layout.grid.stroke,"stroke-width":v.value.style.chart.layout.grid.strokeWidth},null,8,Fz)):e.createCommentVNode("",!0),O.value>=oe.value.min&&O.value<=oe.value.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:b.value.left-8+v.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,y:O.y+v.value.style.chart.layout.grid.yAxis.dataLabels.fontSize/3,"font-size":v.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,"text-anchor":"end",fill:v.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-weight":v.value.style.chart.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(v.value.style.chart.layout.dataLabels.prefix)+" "+e.toDisplayString(e.unref(Pv)(O.value)?O.value.toFixed(v.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue):"")+" "+e.toDisplayString(v.value.style.chart.layout.dataLabels.suffix),9,Nz)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),v.value.style.chart.layout.grid.xAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:2,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":w.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.end-s.value.start,(O,ce)=>(e.openBlock(),e.createElementBlock("g",null,[v.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast&&(ce===0||ce===S.value-1)||!v.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":v.value.style.chart.layout.grid.xAxis.dataLabels.rotation>0?"start":v.value.style.chart.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":v.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,fill:v.value.style.chart.layout.grid.xAxis.dataLabels.color,transform:`translate(${b.value.left+j.value*ce+j.value/2}, ${v.value.style.chart.layout.grid.xAxis.dataLabels.offsetY+V.value.absoluteHeight-b.value.bottom+v.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2}), rotate(${v.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`},e.toDisplayString(v.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(ce)+Number(s.value.start)]??""),9,_z)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ee.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",null,[v.value.style.chart.layout.line.show&&ce<ee.value.length-1&&![O.subtotal,ee.value[ce+1].subtotal].includes(null)?(e.openBlock(),e.createElementBlock("line",{key:0,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":c.value!==null||w.value}),x1:O.x,y1:O.y,x2:ee.value[ce+1].x,y2:ee.value[ce+1].y,stroke:v.value.style.chart.layout.line.stroke,"stroke-width":v.value.style.chart.layout.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,10,Sz)):e.createCommentVNode("",!0),O.subtotal!==null?(e.openBlock(),e.createElementBlock("g",Lz,[O.subtotal?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:O.x,cy:O.y,r:O.activeRadius,fill:v.value.style.chart.backgroundColor},null,8,Ez)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ee.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":ce!==c.value&&c.value!==null||w.value})},[O.subtotal?(e.openBlock(),e.createElementBlock("g",Iz,[c.value!==null&&c.value===ce?(e.openBlock(),e.createElementBlock("g",$z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.donutHover,ae=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{d:e.unref(Qr)(ae,{x:ae.center.endX,y:ae.center.endY},12,12,{x:O.x,y:O.y},!0),stroke:ae.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Mz)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.donutHover,(ae,ie)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("text",{"data-cy-hover-label":"","text-anchor":e.unref(ct)(ae,!0,0).anchor,x:e.unref(ct)(ae,!0,3).x,y:e.unref(co)(ae),fill:v.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":8,"font-weight":"bold"},e.toDisplayString(ae.name)+": "+e.toDisplayString(K(ae,O.donut))+" ("+e.toDisplayString(ae.value===null?"-":le(ae.value))+") ",9,Uz)]))),256)),e.createElementVNode("g",null,[e.createElementVNode("circle",{cx:O.x,cy:O.y,r:O.hoverRadius,fill:v.value.style.chart.backgroundColor},null,8,Vz)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ee.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":ce!==c.value&&c.value!==null||w.value})},[O.subtotal!==null?(e.openBlock(),e.createElementBlock("g",Qz,[O.subtotal===0?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:O.x,cy:O.y,r:3,fill:v.value.style.chart.color},null,8,Tz)):c.value!==null&&c.value===ce?(e.openBlock(),e.createElementBlock("g",Oz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.donutHover,(ae,ie)=>(e.openBlock(),e.createElementBlock("path",{d:ae.arcSlice,fill:`${ae.color}`,"stroke-width":1,stroke:v.value.style.chart.backgroundColor},null,8,zz))),256))])):(e.openBlock(),e.createElementBlock("g",Dz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.donut,(ae,ie)=>(e.openBlock(),e.createElementBlock("path",{d:ae.arcSlice,fill:`${ae.color}`,"stroke-width":.5,stroke:v.value.style.chart.backgroundColor},null,8,Pz))),256))]))])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ee.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":ce!==c.value&&c.value!==null||w.value})},[O.subtotal!==null&&v.value.style.chart.layout.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:O.x,y:c.value===O.index&&O.subtotal?O.y+v.value.style.chart.layout.dataLabels.fontSize/3:O.y-O.radius-v.value.style.chart.layout.dataLabels.fontSize+v.value.style.chart.layout.dataLabels.offsetY,"font-size":v.value.style.chart.layout.dataLabels.fontSize,"font-weight":"bold",fill:v.value.style.chart.layout.dataLabels.color},e.toDisplayString(le(O.subtotal)),9,Hz)):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ee.value,(O,ce)=>(e.openBlock(),e.createElementBlock("rect",{x:b.value.left+ce*j.value,y:V.value.absoluteHeight-b.value.bottom-10,width:j.value,height:10,fill:c.value===O.index?`url(#hover_${h.value})`:"transparent",onClick:ae=>x(O,ce),class:e.normalizeClass({"donut-hover":c.value===O.index&&O.subtotal})},null,10,Rz))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ee.value,(O,ce)=>(e.openBlock(),e.createElementBlock("rect",{"data-cy-trap":"",x:b.value.left+ce*j.value,y:b.value.top,width:j.value,height:V.value.height,fill:"transparent",onMouseenter:ae=>m(O),onMouseleave:q,onClick:ae=>x(O,ce),class:e.normalizeClass({"donut-hover":c.value===O.index&&O.subtotal})},null,42,Gz))),256)),w.value?(e.openBlock(),e.createElementBlock("g",Wz,[e.createElementVNode("rect",{rx:4,x:b.value.left,y:b.value.top,width:V.value.width,height:V.value.height,fill:v.value.style.chart.backgroundColor,style:{filter:"drop-shadow(0 12px 12px rgba(0,0,0,0.3))"}},null,8,jz),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:V.value.absoluteWidth-b.value.right-15,y1:b.value.top+5,x2:V.value.absoluteWidth-b.value.right-4,y2:b.value.top+15.5,"stroke-linecap":"round",stroke:v.value.style.chart.color,"stroke-width":"1.5"},null,8,Kz),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:V.value.absoluteWidth-b.value.right-15,y2:b.value.top+5,x2:V.value.absoluteWidth-b.value.right-4,y1:b.value.top+15.5,"stroke-linecap":"round",stroke:v.value.style.chart.color,"stroke-width":"1.5"},null,8,Xz),e.createElementVNode("circle",{"data-cy-close":"",onClick:Q,onKeypress:e.withKeys(Q,["enter"]),cx:V.value.absoluteWidth-b.value.right-V.value.width/40,cy:b.value.top+V.value.height/30,r:V.value.height/12,fill:"transparent",style:{cursor:"pointer"},tabindex:"0"},null,40,qz),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value.donutFocus,O=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{"data-cy-zoom-donut":"",d:e.unref(Qr)(O,{x:V.value.centerX,y:V.value.centerY},12,12,!1,!1,1),stroke:O.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:"vue-ui-donut-evolution-focus"},null,8,Yz)]))),256)),e.createElementVNode("circle",{cx:b.value.left+V.value.width/2,cy:b.value.top+V.value.height/2,r:V.value.height/7,fill:v.value.style.chart.backgroundColor},null,8,Jz),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value.donutFocus,(O,ce)=>(e.openBlock(),e.createElementBlock("path",{d:O.arcSlice,fill:`${O.color}`,"stroke-width":1,stroke:v.value.style.chart.backgroundColor,class:"vue-ui-donut-evolution-focus"},null,8,Zz))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value.donutFocus,(O,ce)=>(e.openBlock(),e.createElementBlock("g",eD,[e.createElementVNode("text",{"text-anchor":e.unref(ct)(O,!0,20).anchor,x:e.unref(ct)(O,!0,10).x,y:e.unref(co)(O),fill:v.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":10,"font-weight":"bold"},e.toDisplayString(O.name)+": "+e.toDisplayString(K(O,A.value.donutFocus))+" ("+e.toDisplayString(O.value===null?"-":le(O.value))+") ",9,tD)]))),256)),e.createElementVNode("circle",{cx:b.value.left+V.value.width/2,cy:b.value.top+V.value.height/2,r:V.value.height/3.8,fill:`url(#focus_${h.value})`},null,8,oD),e.createElementVNode("circle",{cx:b.value.left+V.value.width/2,cy:b.value.top+V.value.height/2,r:V.value.height/7.7,fill:v.value.style.chart.backgroundColor},null,8,lD),e.createElementVNode("text",{"text-anchor":"middle",x:b.value.left+V.value.width/2,y:b.value.top+V.value.height/2+14/3,"font-size":14,"font-weight":"bold",fill:v.value.style.chart.layout.dataLabels.color,class:"vue-ui-donut-evolution-focus"},e.toDisplayString(le(A.value.subtotal)),9,aD),v.value.style.chart.layout.grid.xAxis.dataLabels.values[A.value.index]?(e.openBlock(),e.createElementBlock("text",{key:0,x:b.value.left+6,y:b.value.top+v.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2,"font-size":v.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*1.6,fill:v.value.style.chart.layout.dataLabels.color},e.toDisplayString(v.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(A.value.index)+Number(s.value.start)]),9,rD)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(_.$slots,"svg",{svg:V.value},void 0,!0)],14,hz)):e.createCommentVNode("",!0),l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"donutEvolution",style:{backgroundColor:v.value.style.chart.backgroundColor,donutEvolution:{axis:{color:"#CCCCCC"},donuts:{color:"#CCCCCC"}}}}},null,8,["config"])),S.value>1&&v.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Hs,{key:`slicer_${i.value}`,background:v.value.style.chart.zoom.color,borderColor:v.value.style.chart.backgroundColor,fontSize:v.value.style.chart.zoom.fontSize,useResetSlot:v.value.style.chart.zoom.useResetSlot,labelLeft:v.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(s.value.start)]||"",labelRight:v.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(s.value.end)-1]||"",textColor:v.value.style.chart.color,inputColor:v.value.style.chart.zoom.color,selectColor:v.value.style.chart.zoom.highlightColor,max:S.value,min:0,valueStart:s.value.start,valueEnd:s.value.end,start:s.value.start,"onUpdate:start":X[0]||(X[0]=O=>s.value.start=O),end:s.value.end,"onUpdate:end":X[1]||(X[1]=O=>s.value.end=O),onReset:u},{"reset-action":e.withCtx(({reset:O})=>[e.renderSlot(_.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:O})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end"])):e.createCommentVNode("",!0),v.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Zo,{key:5,legendSet:Y.value,config:ne.value,onClickMarker:X[2]||(X[2]=({legend:O})=>fe(O.uid))},{item:e.withCtx(({legend:O,index:ce})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:ae=>fe(O.uid),style:e.normalizeStyle(`opacity:${f.value.includes(O.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(O.name)+": "+e.toDisplayString(Number(O.value.toFixed(v.value.style.chart.legend.roundingValue)).toLocaleString())+" ",1),f.value.includes(O.uid)?(e.openBlock(),e.createElementBlock("span",iD," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",sD," ("+e.toDisplayString(isNaN(O.value/me.value)?"-":(O.value/me.value*100).toFixed(v.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,nD)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(_.$slots,"legend",{legend:Y.value},void 0,!0),l.value?(e.openBlock(),e.createBlock(lo,{key:6,hideDetails:"",config:{open:L.value.showTable,maxHeight:1e4,body:{backgroundColor:v.value.style.chart.backgroundColor,color:v.value.style.chart.color},head:{backgroundColor:v.value.style.chart.backgroundColor,color:v.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(yo,{colNames:Z.value.colNames,head:Z.value.head,body:Z.value.body,config:Z.value.config,title:`${v.value.style.chart.title.text}${v.value.style.chart.title.subtitle.text?` : ${v.value.style.chart.title.subtitle.text}`:""}`,onClose:X[3]||(X[3]=O=>L.value.showTable=!1)},{th:e.withCtx(({th:O})=>[e.createTextVNode(e.toDisplayString(O.name??O),1)]),td:e.withCtx(({td:O})=>[O.value===null?(e.openBlock(),e.createElementBlock("span",uD,"-")):(e.openBlock(),e.createElementBlock("b",AD,e.toDisplayString(isNaN(O.value)?"":v.value.style.chart.layout.dataLabels.prefix)+e.toDisplayString(!isNaN(O.value)&&O.value!==null?Number(O.value.toFixed(v.value.table.td.roundingValue)).toLocaleString():O)+e.toDisplayString(isNaN(O.value)?"":v.value.style.chart.layout.dataLabels.suffix),1)),e.createElementVNode("span",null,e.toDisplayString(O.percentage&&!isNaN(O.percentage)?`(${Number(O.percentage.toFixed(v.value.table.td.roundingPercentage)).toLocaleString()}%)`:""),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,dz))}},mg=vt(cD,[["__scopeId","data-v-d8dbd0c8"]]),dD=Object.freeze(Object.defineProperty({__proto__:null,default:mg},Symbol.toStringTag,{value:"Module"})),hD=["id"],fD=["xmlns","viewBox"],vD=["id"],gD=["stop-color"],pD=["stop-color"],yD=["x1","y1","x2","y2","stroke","stroke-width"],mD=["d","stroke","stroke-width"],bD=["stroke"],kD=["fill"],CD=["stroke"],wD=["fill"],BD=["stroke"],xD=["fill"],FD=["stroke"],ND=["fill"],_D=["stroke"],SD=["fill"],LD=["d","stroke","stroke-width","fill"],ED=["x1","y1","stroke"],ID=["cx","cy","fill","stroke"],$D=["fill","stroke"],MD=["y","fill","font-weight"],UD=["y","fill"],VD=["onClick"],QD={style:{"font-weight":"bold"}},TD=["innerHTML"],OD={__name:"vue-ui-mood-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t,{vue_ui_mood_radar:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length);e.onMounted(()=>{xt(a.dataset)&&je({componentName:"VueUiMoodRadar",type:"dataset"})});const l=e.ref(it()),s=e.ref(null),u=e.ref(null),h=e.ref(null),f=e.computed(()=>{const le=Je({userConfig:a.config,defaultConfig:n});return le.theme?{...Je({userConfig:Nt.vue_ui_mood_radar[le.theme]||a.config,defaultConfig:le})}:le}),{isPrinting:c,isImaging:p,generatePdf:w,generateImage:A}=zt({elementId:l.value,fileName:f.value.style.chart.title.text||"vue-ui-mood-radar"}),k=e.ref({showTable:f.value.table.show}),y=e.computed(()=>({height:256,width:256})),i=e.computed(()=>Qo({plot:{x:128,y:y.value.height/2},radius:90,sides:5,rotation:11}));function v({centerX:le,centerY:he,apexX:oe,apexY:R,proportion:D,key:K,value:q}){return{x:le+(oe-le)*D,y:he+(R-he)*D,key:K,value:q}}const B=e.computed(()=>Math.max(...Object.values(a.dataset).map(le=>isNaN(le)?0:le))),U=e.computed(()=>Object.values(a.dataset).reduce((le,he)=>(isNaN(le)?0:le)+(isNaN(he)?0:he),0)),$=e.computed(()=>Object.keys(a.dataset).map((le,he)=>{const oe=typeof a.dataset[le]!="number"||isNaN(a.dataset[le])?0:a.dataset[le];return{index:he,key:le,value:oe,proportion:oe/U.value,color:f.value.style.chart.layout.smileys.colors[le]}}).sort((le,he)=>he.key-le.key)),T=e.computed(()=>r.value?(["1","2","3","4","5"].forEach(le=>{[null,void 0].includes(a.dataset[le])&&je({componentName:"VueUiMoodRadar",type:"datasetAttribute",property:le})}),i.value.coordinates.map((le,he)=>{const oe=v({centerX:y.value.width/2,centerY:y.value.height/2,apexX:le.x,apexY:le.y,proportion:$.value[he].value/B.value,key:$.value[he].key,value:$.value[he].value});return{...le,plots:oe,key:$.value[he].key}})):[]),W=e.computed(()=>({cy:"mood-radar-legend",backgroundColor:f.value.style.chart.legend.backgroundColor,color:f.value.style.chart.legend.color,fontSize:f.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:f.value.style.chart.legend.bold?"bold":""}));function L(le){le===h.value?h.value=null:h.value=le}const b=e.computed(()=>{const le=$.value.map(oe=>({name:oe.key,color:oe.color})),he=$.value.map(oe=>isNaN(oe.value)?0:oe.value);return{head:le,body:he}});function V(){e.nextTick(()=>{const le=b.value.head.map((R,D)=>[[R.name],[b.value.body[D]],[isNaN(b.value.body[D]/U.value)?"-":b.value.body[D]/U.value*100]]),he=[[f.value.style.chart.title.text],[f.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(le),oe=eo(he);Zt({csvContent:oe,title:f.value.style.chart.title.text||"vue-ui-mood-radar"})})}const te=e.computed(()=>{const le=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',Number(U.value.toFixed(f.value.table.td.roundingValue)).toLocaleString(),"100%"],he=b.value.head.map((D,K)=>[{color:D.color,name:D.name},b.value.body[K].toFixed(f.value.table.td.roundingValue),isNaN(b.value.body[K]/U.value)?"-":(b.value.body[K]/U.value*100).toFixed(f.value.table.td.roundingPercentage)+"%"]),oe={th:{backgroundColor:f.value.table.th.backgroundColor,color:f.value.table.th.color,outline:f.value.table.th.outline},td:{backgroundColor:f.value.table.td.backgroundColor,color:f.value.table.td.color,outline:f.value.table.td.outline},breakpoint:f.value.table.responsiveBreakpoint},R=[f.value.table.columnNames.series,f.value.table.columnNames.value,f.value.table.columnNames.percentage];return{head:le,body:he,config:oe,colNames:R}});function I(){return $.value}function S(){k.value.showTable=!k.value.showTable}const j=e.ref(!1);function ee(le){j.value=le}return o({getData:I,generatePdf:w,generateCsv:V,generateImage:A,toggleTable:S}),(le,he)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-mood-radar ${j.value?"vue-data-ui-wrapper-fullscreen":""} ${f.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"moodRadarChart",ref:s,id:`${l.value}`,style:e.normalizeStyle(`font-family:${f.value.style.fontFamily};width:100%; text-align:center;${f.value.style.chart.title.text?"":"padding-top:36px"};background:${f.value.style.chart.backgroundColor}`)},[f.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${f.value.style.chart.backgroundColor}`)},[e.createVNode(Xt,{config:{title:{cy:"mood-radar-title",...f.value.style.chart.title},subtitle:{cy:"mood-radar-subtitle",...f.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),f.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{key:1,ref_key:"details",ref:u,backgroundColor:f.value.style.chart.backgroundColor,color:f.value.style.chart.color,isPrinting:e.unref(c),isImaging:e.unref(p),uid:l.value,hasPdf:f.value.userOptions.buttons.pdf,hasXls:f.value.userOptions.buttons.csv,hasImg:f.value.userOptions.buttons.img,hasTable:f.value.userOptions.buttons.table,hasFullscreen:f.value.userOptions.buttons.fullscreen,titles:{...f.value.userOptions.buttonTitles},chartElement:s.value,onToggleFullscreen:ee,onGeneratePdf:e.unref(w),onGenerateCsv:V,onGenerateImage:e.unref(A),onToggleTable:S},e.createSlots({_:2},[le.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(le.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,le.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(le.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,le.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(le.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,le.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(le.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,le.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:oe,isFullscreen:R})=>[e.renderSlot(le.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:oe,isFullscreen:R})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),viewBox:`0 0 ${y.value.width} ${y.value.height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":j.value,"vue-data-ui-fulscreen--off":!j.value}),style:e.normalizeStyle(`overflow:visible;background:${f.value.style.chart.backgroundColor};color:${f.value.style.chart.color}`)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`mood_radar_gradient_${l.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":f.value.style.chart.layout.dataPolygon.color+e.unref(Xe)[f.value.style.chart.layout.dataPolygon.opacity]},null,8,gD),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(Lt)(f.value.style.chart.layout.dataPolygon.color,f.value.style.chart.layout.dataPolygon.gradient.intensity/100)}${e.unref(Xe)[f.value.style.chart.layout.dataPolygon.opacity]}`},null,8,pD)],8,vD)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.coordinates,oe=>(e.openBlock(),e.createElementBlock("line",{x1:y.value.width/2,y1:y.value.height/2,x2:oe.x,y2:oe.y,stroke:f.value.style.chart.layout.grid.stroke,"stroke-width":f.value.style.chart.layout.grid.strokeWidth},null,8,yD))),256)),e.createElementVNode("path",{d:i.value.path,fill:"none",stroke:f.value.style.chart.layout.outerPolygon.stroke,"stroke-width":f.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,mD),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[5],"stroke-width":"1","stroke-linecap":"round",d:"M119 25A1 1 0 00137 25 1 1 0 00119 25M123 26C124 33 132 33 133 26L123 26M123 22A1 1 0 00126 22 1 1 0 00123 22M130 22A1 1 0 00133 22 1 1 0 00130 22"},null,8,bD),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[0]||(he[0]=oe=>h.value=5),onMouseleave:he[1]||(he[1]=oe=>h.value=null),cx:"128",cy:"25",r:"20",fill:h.value===5?f.value.style.chart.layout.smileys.colors[5]+"33":"transparent"},null,40,kD),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[4],"stroke-width":"1","stroke-linecap":"round",d:"M218 95A1 1 0 00236 95 1 1 0 00218 95M222 97C225 99 229 99 232 97M222 92A1 1 0 00225 92 1 1 0 00222 92M229 92A1 1 0 00232 92 1 1 0 00229 92"},null,8,CD),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[2]||(he[2]=oe=>h.value=4),onMouseleave:he[3]||(he[3]=oe=>h.value=null),cx:"227",cy:"95.5",r:"20",fill:h.value===4?f.value.style.chart.layout.smileys.colors[4]+"33":"transparent"},null,40,wD),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[3],"stroke-width":"1","stroke-linecap":"round",d:"M181 213A1 1 0 00199 213 1 1 0 00181 213M185 210A1 1 0 00188 210 1 1 0 00185 210M192 210A1 1 0 00195 210 1 1 0 00192 210M185 215 195 215"},null,8,BD),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[4]||(he[4]=oe=>h.value=3),onMouseleave:he[5]||(he[5]=oe=>h.value=null),cx:"190",cy:"213.5",r:"20",fill:h.value===3?f.value.style.chart.layout.smileys.colors[3]+"33":"transparent"},null,40,xD),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[2],"stroke-width":"1","stroke-linecap":"round",d:"M56 213A1 1 0 0074 213 1 1 0 0056 213M60 216C63 214 67 214 70 216M60 210A1 1 0 0063 210 1 1 0 0060 210M67 210A1 1 0 0070 210 1 1 0 0067 210"},null,8,FD),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[6]||(he[6]=oe=>h.value=2),onMouseleave:he[7]||(he[7]=oe=>h.value=null),cx:"65",cy:"213.5",r:"20",fill:h.value===2?f.value.style.chart.layout.smileys.colors[2]+"33":"transparent"},null,40,ND),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[1],"stroke-width":"1","stroke-linecap":"round",d:"M20 96A1 1 0 0038 96 1 1 0 0020 96M24 100C25 95 33 95 34 100L24 100M24 93A1 1 0 0027 93 1 1 0 0024 93M31 93A1 1 0 0034 93 1 1 0 0031 93"},null,8,_D),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[8]||(he[8]=oe=>h.value=1),onMouseleave:he[9]||(he[9]=oe=>h.value=null),cx:"29",cy:"95.5",r:"20",fill:h.value===1?f.value.style.chart.layout.smileys.colors[1]+"33":"transparent"},null,40,SD),e.createElementVNode("path",{d:e.unref(Hc)(T.value.map(oe=>oe.plots)),stroke:f.value.style.chart.layout.dataPolygon.stroke,"stroke-width":f.value.style.chart.layout.dataPolygon.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:f.value.style.chart.layout.dataPolygon.gradient.show?`url(#mood_radar_gradient_${l.value})`:f.value.style.chart.layout.dataPolygon.color+e.unref(Xe)[f.value.style.chart.layout.dataPolygon.opacity]},null,8,LD),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value.map(oe=>oe.plots),(oe,R)=>(e.openBlock(),e.createElementBlock("g",{class:"vue-ui-mood-radar-trap",style:e.normalizeStyle(`opacity:${h.value==oe.key?"1":"0"}`)},[e.createElementVNode("line",{x1:oe.x,y1:oe.y,x2:128,y2:128,stroke:f.value.style.chart.layout.smileys.colors[oe.key]},null,8,ED),e.createElementVNode("circle",{cx:oe.x,cy:oe.y,fill:f.value.style.chart.layout.smileys.colors[oe.key],r:"3",stroke:f.value.style.chart.backgroundColor,"stroke-width":.5},null,8,ID),e.createElementVNode("circle",{cx:128,cy:128,fill:f.value.style.chart.layout.smileys.colors[oe.key],r:"3",stroke:f.value.style.chart.backgroundColor,"stroke-width":.5},null,8,$D),e.createElementVNode("text",{x:128,y:["5",5].includes(oe.key)?145:120,fill:f.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle","font-weight":f.value.style.chart.layout.dataLabel.bold?"bold":"normal"},e.toDisplayString(Number(oe.value.toFixed(f.value.style.chart.layout.dataLabel.roundingValue)).toLocaleString()),9,MD),e.createElementVNode("text",{x:128,y:["5",5].includes(oe.key)?163:102,fill:f.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle"}," ("+e.toDisplayString(Number((oe.value/U.value*100).toFixed(f.value.style.chart.layout.dataLabel.roundingPercentage)).toLocaleString())+"%) ",9,UD)],4))),256)),e.renderSlot(le.$slots,"svg",{svg:y.value},void 0,!0)],14,fD)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"radar",style:{backgroundColor:f.value.style.chart.backgroundColor,radar:{grid:{color:"#CCCCCC"},shapes:{color:"#CCCCCC"}}}}},null,8,["config"])),f.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Zo,{key:4,legendSet:$.value,config:W.value,style:{display:"flex","row-gap":"6px"}},{item:e.withCtx(({legend:oe,index:R})=>[e.createElementVNode("div",{onClick:()=>L(oe.key),style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center",margin:"3px 0"}},[oe.key==1?(e.openBlock(),e.createBlock(bt,{key:0,strokeWidth:1,name:"moodSad",stroke:f.value.style.chart.layout.smileys.colors[oe.key]},null,8,["stroke"])):e.createCommentVNode("",!0),oe.key==2?(e.openBlock(),e.createBlock(bt,{key:1,strokeWidth:1,name:"moodFlat",stroke:f.value.style.chart.layout.smileys.colors[oe.key]},null,8,["stroke"])):e.createCommentVNode("",!0),oe.key==3?(e.openBlock(),e.createBlock(bt,{key:2,strokeWidth:1,name:"moodNeutral",stroke:f.value.style.chart.layout.smileys.colors[oe.key]},null,8,["stroke"])):e.createCommentVNode("",!0),oe.key==4?(e.openBlock(),e.createBlock(bt,{key:3,strokeWidth:1,name:"smiley",stroke:f.value.style.chart.layout.smileys.colors[oe.key]},null,8,["stroke"])):e.createCommentVNode("",!0),oe.key==5?(e.openBlock(),e.createBlock(bt,{key:4,strokeWidth:1,name:"moodHappy",stroke:f.value.style.chart.layout.smileys.colors[oe.key]},null,8,["stroke"])):e.createCommentVNode("",!0),e.createElementVNode("span",QD,e.toDisplayString(oe.value),1),e.createTextVNode(" ("+e.toDisplayString((isNaN(oe.proportion)?0:oe.proportion*100).toFixed(f.value.style.chart.legend.roundingPercentage))+"%) ",1)],8,VD)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(le.$slots,"legend",{legend:$.value},void 0,!0),r.value?(e.openBlock(),e.createBlock(lo,{key:5,hideDetails:"",config:{open:k.value.showTable,maxHeight:1e4,body:{backgroundColor:f.value.style.chart.backgroundColor,color:f.value.style.chart.color},head:{backgroundColor:f.value.style.chart.backgroundColor,color:f.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(yo,{colNames:te.value.colNames,head:te.value.head,body:te.value.body,config:te.value.config,title:`${f.value.style.chart.title.text}${f.value.style.chart.title.subtitle.text?` : ${f.value.style.chart.title.subtitle.text}`:""}`,onClose:he[10]||(he[10]=oe=>k.value.showTable=!1)},{th:e.withCtx(({th:oe})=>[e.createElementVNode("div",{innerHTML:oe,style:{display:"flex","align-items":"center"}},null,8,TD)]),td:e.withCtx(({td:oe})=>[e.createTextVNode(e.toDisplayString(oe.name||oe),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,hD))}},bg=vt(OD,[["__scopeId","data-v-81cc3908"]]),zD=Object.freeze(Object.defineProperty({__proto__:null,default:bg},Symbol.toStringTag,{value:"Module"})),Ou=t=>(e.pushScopeId("data-v-30081550"),t=t(),e.popScopeId(),t),DD=["id"],PD=["xmlns","viewBox"],HD=["id"],RD=["stop-color"],GD=["stop-color"],WD=["id"],jD=["stop-color"],KD=["stop-color"],XD=["id"],qD=["stop-color"],YD=["stop-color"],JD=["id"],ZD=["stop-color"],eP=["stop-color"],tP=["stop-color"],oP={key:0},lP=["id"],aP=["stop-color"],rP=["stop-color"],nP=["id"],sP=["stop-color"],iP=["stop-color"],uP=["id"],AP=["stop-color"],cP=["stop-color"],dP=["id"],hP=Ou(()=>e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF"},null,-1)),fP=Ou(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF33"},null,-1)),vP=[hP,fP],gP=["x","y","font-size","font-weight","fill"],pP=["x","y"],yP=["d","stroke"],mP=["d","stroke"],bP={key:3},kP={key:0},CP=["stroke-dasharray","d","stroke","stroke-width"],wP=["stroke-dasharray","d","stroke","stroke-width"],BP=["stroke-dasharray","d","stroke","stroke-width"],xP=["stroke-dasharray","d","stroke","stroke-width"],FP={key:1},NP=["d","stroke","stroke-width","fill"],_P=["d","stroke","stroke-width","fill"],SP=["d","stroke","stroke-width","fill"],LP={key:2},EP=["d","fill","onMouseenter","onClick"],IP=["d","fill","onMouseenter","onClick"],$P=["d","fill","onMouseenter","onClick"],MP=["d","onMouseenter","onClick"],UP=["d"],VP=["d","stroke"],QP=["onClick"],TP=["stroke","d"],OP=["cx","cy","fill","stroke"],zP=["x","y","width","height"],DP={key:1},PP=["d","stroke"],HP=["d","fill","stroke"],RP=["id"],GP=["stop-color"],WP=Ou(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),jP=["stop-color"],KP=["cx","cy","fill"],XP=["cx","cy","fill"],qP={key:0},YP=["text-anchor","x","y","fill","font-size"],JP=["text-anchor","x","y","fill","font-size"],ZP={key:2},eH=["d","fill","stroke"],tH={key:4},oH={key:0},lH=["stroke-dasharray","d","stroke","stroke-width"],aH=["stroke-dasharray","d","stroke","stroke-width"],rH=["stroke-dasharray","d","stroke","stroke-width"],nH=["stroke-dasharray","d","stroke","stroke-width"],sH=["d","stroke","stroke-width","fill"],iH=["d","stroke","stroke-width","fill"],uH={key:1},AH=["onClick"],cH=["id"],dH=["stop-color"],hH=["stop-color"],fH=["id"],vH=["stop-color"],gH=["stop-color"],pH=["stop-color"],yH=["stop-color"],mH=["stop-color"],bH=["onMouseenter","onClick","d","fill"],kH=["onMouseenter","onClick","d"],CH=["onMouseenter","onClick","d","fill"],wH=["onClick"],BH=["stroke","d"],xH=["cx","cy","fill","stroke"],FH=["x","y","width","height"],NH={key:1},_H=["d","stroke"],SH=["d","fill","stroke"],LH=["id"],EH=["stop-color"],IH=Ou(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),$H=["stop-color"],MH=["cx","cy","fill"],UH=["cx","cy","fill"],VH={key:0},QH=["text-anchor","x","y","fill","font-size"],TH=["text-anchor","x","y","fill","font-size"],OH={key:2},zH=["d","fill","stroke"],DH=["innerHTML"],PH={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(t,{expose:o,emit:a}){const n=t,{vue_ui_3d_bar:r}=ft(),l=e.computed(()=>!!n.dataset&&Object.keys(n.dataset).length),s=e.ref(it()),u=e.ref(null),h=e.ref(null),f=e.ref(!1),c=e.computed(()=>{const K=Je({userConfig:n.config,defaultConfig:r});return K.theme?{...Je({userConfig:Nt.vue_ui_3d_bar[K.theme]||n.config,defaultConfig:K}),customPalette:Pt[K.theme]||Me}:K}),{isPrinting:p,isImaging:w,generatePdf:A,generateImage:k}=zt({elementId:`3d_bar_${s.value}`,fileName:c.value.style.chart.title.text||"vue-ui-3d-bar"}),y=e.computed(()=>so(c.value.customPalette)),i=e.ref({showTable:c.value.table.show}),v=e.computed(()=>n.dataset.series&&n.dataset.series.length),B=e.computed(()=>({height:c.value.style.chart.box.dimensions.height,width:c.value.style.chart.box.dimensions.width,absoluteWidth:c.value.style.chart.box.dimensions.width*(v.value?2:1),top:c.value.style.chart.box.dimensions.top,bottom:c.value.style.chart.box.dimensions.bottom,left:c.value.style.chart.box.dimensions.left,right:c.value.style.chart.box.dimensions.right,perspective:c.value.style.chart.box.dimensions.perspective})),U=e.computed(()=>{if(v.value){const K=n.dataset.series.map(x=>x.value||0).reduce((x,Q)=>x+Q,0),q=n.dataset.series.map((x,Q)=>({...x,id:it(),proportion:(x.value||0)/K,color:At(x.color)||y.value[Q]||Me[Q]||Me[Q%Me.length],breakdown:x.breakdown?x.breakdown.sort((Y,me)=>me.value-Y.value):null})).sort((x,Q)=>Q.value-x.value),m=[];let N=0;for(let x=0;x<q.length;x+=1)m.push({...q[x],fill:W(N,q[x].proportion,q[x].breakdown,q[x].color)}),N+=q[x].proportion;return m}return null}),$=e.computed(()=>({right:`M${B.value.width/2},${B.value.top} ${B.value.width-B.value.right}, ${B.value.top+B.value.perspective} ${B.value.width-B.value.right},${B.value.height-B.value.bottom-B.value.perspective} ${B.value.width/2},${B.value.height-B.value.bottom}`,left:`M${B.value.width/2},${B.value.top} ${B.value.left},${B.value.top+B.value.perspective} ${B.value.left},${B.value.height-B.value.bottom-B.value.perspective} ${B.value.width/2},${B.value.height-B.value.bottom}`,side:`M${B.value.width/2},${B.value.height-B.value.bottom} ${B.value.width/2},${B.value.top+B.value.perspective*2}`,topSides:`M${B.value.left},${B.value.top+B.value.perspective} ${B.value.width/2},${B.value.top+B.value.perspective*2} ${B.value.width-B.value.right},${B.value.top+B.value.perspective}`,tubeTop:`M${B.value.left},${B.value.top+B.value.perspective} C ${B.value.left},${B.value.top-B.value.perspective/3} ${B.value.width-B.value.right},${B.value.top-B.value.perspective/3} ${B.value.width-B.value.right},${B.value.top+B.value.perspective} C ${B.value.width-B.value.right},${B.value.top+B.value.perspective*2.3} ${B.value.left},${B.value.top+B.value.perspective*2.3} ${B.value.left},${B.value.top+B.value.perspective}`,tubeLeft:`M${B.value.left},${B.value.top+B.value.perspective} ${B.value.left},${B.value.height-B.value.bottom-B.value.perspective}`,tubeRight:`M${B.value.width-B.value.right},${B.value.top+B.value.perspective} ${B.value.width-B.value.right},${B.value.height-B.value.bottom-B.value.perspective}`,tubeBottom:`M${B.value.width-B.value.right},${B.value.height-B.value.bottom-B.value.perspective} C ${B.value.width-B.value.right},${B.value.height} ${B.value.left},${B.value.height} ${B.value.left},${B.value.height-B.value.bottom-B.value.perspective}`})),T=e.ref(c.value.style.chart.animation.use?0:n.dataset.percentage);e.onMounted(()=>{xt(n.dataset)?je({componentName:"VueUi3dBar",type:"dataset"}):n.dataset.series?n.dataset.series.forEach((x,Q)=>{Wt({datasetObject:x,requiredAttributes:["name","value"]}).forEach(Y=>{je({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:Y,index:Q})}),x.breakdown&&x.breakdown.forEach((Y,me)=>{Wt({datasetObject:Y,requiredAttributes:["name","value"]}).forEach(ne=>{je({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:ne,index:`${Q} - ${me}`})})})}):Wt({datasetObject:n.dataset,requiredAttributes:["percentage"]}).forEach(x=>{je({componentName:"VueUi3dBar",type:"datasetAttribute",property:x})});let K=0,q=c.value.style.chart.animation.speed,m=.005*c.value.style.chart.animation.acceleration;function N(){T.value+=q+K,K+=m,T.value<n.dataset.percentage?requestAnimationFrame(N):T.value=n.dataset.percentage}c.value.style.chart.animation.use&&(T.value=0,N())});function W(K,q,m,N){const x=B.value.height-B.value.bottom-B.value.top-B.value.perspective*2,{width:Q,height:Y,bottom:me,right:ne,left:fe,perspective:Z}=B.value,J=me+x*K,z=Y-J-Z-x*q/2,P=z>B.value.height/2?"top":"bottom",ge=64,M=!!m;let _=null,X=null;return M&&(m=m.map((O,ce)=>({...O,value:O.value||0,color:Ll(N,ce/m.length)})),_=kl({series:m},Q+B.value.absoluteWidth/4-14,P==="top"?z-ge:z+ge,28,28,1.99999,2,1,360,105.25,14),X=kl({series:m},Q-ne+20,Y-J-Z-x*q/2,6,6,1.99999,2,1,360,105.25,6)),{donut:_,miniDonut:X,sidePointer:{x:Q-ne,y:Y-J-Z-x*q/2,topY:Y-J-Z-x*q,height:x*q},apexBottom:{y:Y-J,x:Q/2},apexTop:{y:Y-J-x*q,x:Q/2},right:`M${Q/2},${Y-J} ${Q/2},${Y-J-x*q} ${Q-ne},${Y-J-Z-x*q} ${Q-ne},${Y-J-Z}Z`,left:`M${Q/2},${Y-J} ${Q/2},${Y-J-x*q} ${fe}, ${Y-J-Z-x*q} ${fe},${Y-J-Z}Z`,liningTop:`M${fe},${Y-J-Z-x*q} ${Q/2},${Y-J-x*q} ${Q-ne},${Y-J-Z-x*q}`,liningTopShade:`M${fe},${Y-J-Z-x*q-.5} ${Q/2},${Y-J-x*q-.5} ${Q-ne},${Y-J-Z-x*q-.5}`,top:`M${Q/2},${Y-J-x*q} ${fe},${Y-J-Z-x*q} ${Q/2},${Y-J-Z*2-x*q} ${Q-ne},${Y-J-Z-x*q} Z`,tubeTop:`M${fe},${Y-J-x*q-Z} C ${fe},${Y-J-x*q-Z*2.5} ${Q-ne},${Y-J-x*q-Z*2.5} ${Q-ne},${Y-J-x*q-Z} C ${Q-ne},${Y-J-x*q+Z/2} ${fe},${Y-J-x*q+Z/2} ${fe},${Y-J-x*q-Z}`,bottomTubeTop:`M ${Q-ne-.5},${Y-J-Z} C ${Q-ne-.5},${Y-J+Z/2} ${fe},${Y-J+Z/2} ${fe+.5},${Y-J-Z}`,tubeBody:`M
705
705
  ${fe},${Y-J-x*q-Z}
706
706
  C ${fe},${Y-J-x*q+Z/2}
707
707
  ${Q-ne},${Y-J-x*q+Z/2}