1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98729],{98729:(e,l,t)=>{t.d(l,{$u:()=>b,Jb:()=>g,KD:()=>p,O9:()=>h,qp:()=>r});var a=t(92792),n=t(83745);let i={};function o(e){return i[e]||(i[e]=new Promise(l=>{let t=new Image;t.onload=()=>l(t),t.onerror=()=>l(null),t.src=e})),i[e]}let r=()=>o("/white_transparent.png"),h=()=>o("/dark_logo_transparent.png");function c(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400;return"".concat(l," ").concat(Math.round(e),"px ").concat('ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif')}function u(e,l,t){let a=e.measureText(l).width;return t?a+t*Math.max(0,l.length-1):a}function s(e,l,t,a,n){if(!n)return void e.fillText(l,t,a);let i=t;for(let t of l)e.fillText(t,i,a),i+=e.measureText(t).width+n}function f(e,l,t,a,n){var i,o,r;e.font=c(n.size,null!=(i=n.weight)?i:400),e.fillStyle=null!=(o=n.color)?o:"#fff",e.textBaseline="alphabetic";let h=null!=(r=n.spacing)?r:0,f=u(e,l,h);return s(e,l,"right"===n.align?t-f:"center"===n.align?t-f/2:t,a,h),f}function d(e,l,t,a,n,i){let o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,r=a;for(;r>n&&(e.font=c(r,i),!(u(e,l,o)<=t));)r-=1;return r}function g(e,l){let t=[[49,46,129],[37,99,235],[14,165,233],[34,211,238]],a=Math.max(0,Math.min(1,e))*(t.length-1),n=Math.min(t.length-2,Math.floor(a)),i=a-n,[o,r,h]=[0,1,2].map(e=>{let l;return Math.round((l=t[n][e])+(t[n+1][e]-l)*i)});return"rgba(".concat(o,",").concat(r,",").concat(h,",").concat(l.toFixed(3),")")}function m(e,l){return"#000000"===e?"rgba(0,0,0,".concat(l,")"):"rgba(255,255,255,".concat(l,")")}let b={FL:{x:0,y:0,w:.5,h:1/3},FR:{x:.5,y:0,w:.5,h:1/3},ML:{x:0,y:1/3,w:.5,h:1/3},MR:{x:.5,y:1/3,w:.5,h:1/3},BL:{x:0,y:2/3,w:.5,h:1/3},BR:{x:.5,y:2/3,w:.5,h:1/3}};function p(e,l){var t,i,o,r,h;let{width:g,height:p,cards:w,athleteName:v,opponentName:x,template:M="stats",ink:T="white",transparent:k,logo:y,logoDark:R}=l,S=Math.min(g/1080,p/1920),C=Math.round(80*S),z=g-2*C,E=g/2,O="black"===T?"#000000":"#ffffff",W=m(O,.66),_="black"===T&&null!=R?R:y;e.clearRect(0,0,g,p),k?(e.shadowColor="black"===T?"rgba(255,255,255,0.55)":"rgba(0,0,0,0.55)",e.shadowBlur=22*S,e.shadowOffsetY=2*S):(e.fillStyle="black"===T?"#ffffff":"#000000",e.fillRect(0,0,g,p));let U=function(e){var l,t,a,n;let i=l=>{var t;return null!=(t=e.find(e=>e.id===l))?t:null},o=[];for(let e of null!=(a=null==(l=i("metrics"))?void 0:l.stats)?a:[])o.push({label:e.label,value:e.value});for(let e of null!=(n=null==(t=i("volume"))?void 0:t.stats)?n:[])o.push({label:e.label,value:e.value});return o}(w),L=null!=(o=w.find(e=>"insight"===e.id))?o:null,P=null!=(r=w.find(e=>"court"===e.id))?r:null,B=null!=P?P:L,F={micro:22*S,label:26*S,value:92*S,name:74*S,hero:300*S},H=_?Math.round(.2*g):0,V=_&&_.height?Math.round(_.width/_.height*H):0,A=Math.max(H,F.label),D=(l,t,a,n)=>{let i=a/l.length;l.forEach((l,a)=>{let o=n+i*a+i/2,r=l.label.toUpperCase(),h=d(e,r,i-14*S,F.micro,11*S,800,.18*F.micro);f(e,r,o,t+h,{size:h,weight:800,color:W,spacing:.18*h,align:"center"});let c=d(e,l.value,i-10*S,F.value,28*S,900);f(e,l.value,o,t+F.micro+24*S+.78*c,{size:c,weight:900,color:"good"===l.accent?"#22c55e":"bad"===l.accent?"#ef4444":O,align:"center"})})},I=F.micro+24*S+.78*F.value,j=[],K={index:-1,maxWidth:0,paint:null};if(v||x){let l=(v||"").toUpperCase(),t=x?x.toUpperCase():"",a=!l&&!!t,n=l||t,i=d(e,n,z,F.name,26*S,900);j.push({h:l&&t?i+2.2*F.micro+i:i,draw:o=>{if(f(e,a?"VS ".concat(n):n,E,o+i,{size:i,weight:900,color:O,align:"center"}),l&&t){let l=d(e,t,z,F.name,26*S,900);f(e,"VS",E,o+i+1.5*F.micro,{size:.8*F.micro,weight:800,color:W,spacing:.3*F.micro,align:"center"}),f(e,t,E,o+i+2.2*F.micro+l,{size:l,weight:900,color:O,align:"center"})}}})}let N=null!=(h=null==B?void 0:B.courtHeat)?h:null==P?void 0:P.courtHeat;K.index=j.length,K.maxWidth=Math.round(Math.min(.46*z,620*S)),K.paint=(l,t)=>(function(e,l,t,i,o,r,h,f,d,g){let p=975/640*i,w=i/640,v=Math.max(2,(f?5:3.4)*w),x=e=>m(h,e);for(let[n,h]of(((null==g?void 0:g.length)||r)&&((null==g?void 0:g.length)?(0,a.rm)(e,l,t,i,p,g,{radius:.16,alpha:f?.92:.78}):r&&(0,a.xd)(e,l,t,i,p,r,b,{alpha:f?.92:.78})),Object.entries(o))){let a=b[n];if(!a)continue;let o=/FOCUS|WEAK|TARGET/i.test(h),r=l+a.x*i,f=t+a.y*p,g=a.w*i,m=a.h*p;e.fillStyle=o?"rgba(239,68,68,0.45)":"rgba(34,197,94,0.42)",e.fillRect(r,f,g,m),e.strokeStyle=o?"rgba(239,68,68,0.95)":"rgba(34,197,94,0.95)",e.lineWidth=Math.max(2,4*w),e.strokeRect(r,f,g,m);let v=Math.max(11,26*w);e.font=c(v,900),e.fillStyle="#ffffff";let x=.16*v,M=u(e,h,x);s(e,h,r+g/2-M/2,f+m/2-.15*v,x);let T=null==d?void 0:d[n];if(T){let l=.82*v;e.font=c(l,700),e.fillStyle="rgba(255,255,255,0.88)";let t=T.split("\n")[0],a=u(e,t,.1*l);s(e,t,r+g/2-a/2,f+m/2+1.15*l,.1*l)}}if(d)for(let[a,n]of Object.entries(d)){let r=b[a];
1if(!r||!n||o[a])continue;let h=l+r.x*i,f=t+r.y*p,d=n.split("\n").slice(0,2),g=Math.max(9,24*w);d.forEach((l,t)=>{let a=.1*g;e.font=c(g,0===t?900:700),e.fillStyle=x(0===t?.95:.66);let n=u(e,l,a);s(e,l,h+r.w*i/2-n/2,f+r.h*p/2+1.25*(0!==t)*g,a)})}if(e.strokeStyle=x(f?.92:.65),e.lineWidth=v,e.strokeRect(l,t,i,p),"pickleball"===(0,n.H3)()){let a=t+p/2,n=a-7/44*p,o=a+7/44*p;e.beginPath(),e.moveTo(l,n),e.lineTo(l+i,n),e.moveTo(l,o),e.lineTo(l+i,o),e.moveTo(l+i/2,t),e.lineTo(l+i/2,n),e.moveTo(l+i/2,o),e.lineTo(l+i/2,t+p),e.stroke(),e.save(),e.strokeStyle=x(f?1:.85),e.lineWidth=1.6*v,e.setLineDash([3*v,2.2*v]),e.beginPath(),e.moveTo(l,a),e.lineTo(l+i,a),e.stroke(),e.setLineDash([]),e.restore();return}let M=t+p-426*w;e.beginPath(),e.moveTo(l,M),e.lineTo(l+i,M),e.moveTo(l+i/2,M),e.lineTo(l+i/2,t+p),e.stroke();let T=160*w;e.strokeRect(l,M,T,T),e.strokeRect(l+i-T,M,T,T)})(e,E-t/2,l,t,{},N,O,!!k,void 0,null==B?void 0:B.courtPoints),j.push({h:0,draw:()=>{}});let q=U.slice(0,4),G=[];if(3===q.length)G.push(q);else for(let e=0;e<q.length;e+=2)G.push(q.slice(e,e+2));for(let e of G)j.push({h:.86*I,draw:l=>D(e,l,z,C)});for(let l of U.slice(4,7))j.push({h:1.5*F.label,draw:t=>{let a=l.value,n=" â ".concat(l.label);e.font=c(1.5*F.label,900);let i=e.measureText(a).width;e.font=c(F.label,700);let o=E-(i+e.measureText(n).width)/2;f(e,a,o,t+1.25*F.label,{size:1.5*F.label,weight:900,color:O}),f(e,n,o+i,t+1.25*F.label,{size:F.label,weight:700,color:W})}});let J=null==(t=w.find(e=>"performance"===e.id))?void 0:t.primaryValue;if(J){let l=d(e,J,.7*z,.62*F.hero,70*S,900);j.push({h:.78*l+1.7*F.label,draw:t=>{f(e,J,E,t+.78*l,{size:l,weight:900,color:O,align:"center"}),f(e,"CORE SCORE",E,t+.78*l+1.5*F.label,{size:F.label,weight:800,color:W,spacing:.22*F.label,align:"center"})}})}let Y=null==(i=w.find(e=>"result"===e.id))?void 0:i.secondaryValue;Y&&j.push({h:1.6*F.label,draw:l=>{let t=Y.toUpperCase(),a=d(e,t,z,1.05*F.label,.8*F.micro,800,.18*F.label);f(e,t,E,l+1.1*F.label,{size:a,weight:800,color:O,spacing:.18*a,align:"center"})}}),j.push({h:A,draw:l=>{_&&V>0?e.drawImage(_,E-V/2,l,V,H):f(e,"CORE",E,l+F.label,{size:F.label,weight:900,color:O,spacing:.36*F.label,align:"center"})}});let $=Math.max(0,j.length-1),Q=p-2*C,X=j.reduce((e,l,t)=>t===K.index?e:e+l.h,0),Z=40*S,ee=Q-X-Z*$;ee<200*S&&$>0&&(Z=Math.max(16*S,(Q-X-200*S)/$),ee=Q-X-Z*$);let el=K.paint;if(K.index>=0&&el){let e=640/975*Math.max(0,ee),l=Math.round(Math.max(0,Math.min(K.maxWidth,e))),t=975/640*l;j[K.index]={h:t,draw:e=>{l>0&&el(e,l)}}}let et=C+Math.max(0,(Q-(j.reduce((e,l)=>e+l.h,0)+Z*$))/2);for(let e of j)e.draw(et),et+=e.h+Z}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.