1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[85351],{85351:(e,t,n)=>{n.d(t,{A:()=>W});var i=n(95155),l=n(12115),r=n(97761);let o=RegExp("(\\*\\*[^*]+\\*\\*|(?<![\\w*])_[^_]+_(?![\\w*])|`[^`]+`|\\[[^\\]\\n]+\\]\\((?:\\/|https:\\/\\/)[^)\\s]+\\))","g");function a(e){return e.split(/\n{2,}/).map((e,t)=>(0,i.jsx)("p",{style:{margin:0===t?0:"10px 0 0"},children:e.split(o).filter(Boolean).map((e,t)=>{if(/^\*\*[^*]+\*\*$/.test(e))return(0,i.jsx)("b",{style:{color:"#fff"},children:e.slice(2,-2)},t);if(/^_[^_]+_$/.test(e))return(0,i.jsx)("i",{style:{opacity:.85},children:e.slice(1,-1)},t);if(/^`[^`]+`$/.test(e))return(0,i.jsx)("code",{style:{fontSize:".92em",opacity:.85},children:e.slice(1,-1)},t);let n=/^\[([^\]\n]+)\]\(((?:\/|https:\/\/)[^)\s]+)\)$/.exec(e);return n?(0,i.jsx)("a",{href:n[2],style:{color:"#fff",fontWeight:700,textDecoration:"underline",textUnderlineOffset:2},...n[2].startsWith("https://")?{target:"_blank",rel:"noopener noreferrer"}:{},children:n[1]},t):(0,i.jsx)("span",{children:e},t)})},t))}let s="#e9ebee",d="#8592a6",c="rgba(240,241,243,.10)";function p(e){var t,n,r,o;let{s:a,hero:s,compacto:d}=e,[c,p]=(0,l.useState)(!1),[g,h]=(0,l.useState)(!1),u=null!=(r=null==(t=a.team)?void 0:t.color)?r:"#26324a",f="player"===a.kind&&a.image&&!c?a.image:null,x=null!=(o=null==(n=a.team)?void 0:n.logo)?o:null;return(0,i.jsxs)("div",{style:{position:"relative",overflow:"hidden",borderRadius:16,padding:d?"10px 12px":"14px 18px",minHeight:f?d?96:118:void 0,background:"linear-gradient(115deg, ".concat(u," 0%, ").concat(u,"30 58%, transparent 100%)")},children:[x&&!g&&(0,i.jsx)("img",{src:x,alt:"","aria-hidden":!0,onError:()=>h(!0),style:{position:"absolute",right:f?96:-16,top:"50%",translate:"0 -50%",width:d?84:116,height:d?84:116,opacity:.26,objectFit:"contain"}}),f&&(0,i.jsx)("img",{src:f,alt:"","aria-hidden":!0,onError:()=>p(!0),style:{position:"absolute",right:4,bottom:0,height:d?108:140,width:"auto",objectFit:"contain",objectPosition:"bottom",filter:"drop-shadow(0 10px 18px rgba(0,0,0,.55))"}}),(0,i.jsxs)("div",{style:{position:"relative",paddingRight:f?d?96:124:0},children:[a.role&&(0,i.jsx)("div",{style:{fontSize:10,letterSpacing:".10em",textTransform:"uppercase",color:"rgba(255,255,255,.72)",fontWeight:700},children:a.role}),(0,i.jsx)("div",{style:{fontSize:d?13:15,fontWeight:800,color:"#fff",textTransform:"uppercase",letterSpacing:".05em",lineHeight:1.2},children:a.name}),s]})]})}function g(e){let{m:t,compacto:n}=e;return(0,i.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:8,flexWrap:"wrap",marginTop:n?4:6},children:[(0,i.jsx)("span",{style:{fontSize:n?"clamp(34px, 11.5vw, 50px)":"clamp(46px, 6vw, 66px)",fontWeight:800,lineHeight:.92,letterSpacing:"-.02em",color:"#fff"},children:t.display}),t.unit&&(0,i.jsx)("span",{style:{fontSize:n?14:17,fontWeight:700,color:"rgba(255,255,255,.82)"},children:t.unit}),(0,i.jsx)("span",{style:{fontSize:10,letterSpacing:".08em",textTransform:"uppercase",color:"rgba(255,255,255,.62)",width:"100%"},children:t.label})]})}function h(e){var t;let{r:n,m:l}=e,r="number"==typeof(null==l?void 0:l.raw)?l.raw:null,o=null!=r&&n.high>n.low?Math.min(100,Math.max(0,(r-n.low)/(n.high-n.low)*100)):null;return(0,i.jsxs)("div",{style:{display:"grid",gap:6},children:[(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:10,letterSpacing:".08em",textTransform:"uppercase",color:d},children:[(0,i.jsx)("span",{children:null!=(t=n.confidence)?t:""}),(0,i.jsx)("span",{children:n.display})]}),(0,i.jsxs)("div",{style:{position:"relative",height:6,borderRadius:999,background:"rgba(240,241,243,.10)"},children:[(0,i.jsx)("div",{style:{position:"absolute",inset:0,borderRadius:999,background:"linear-gradient(90deg, rgba(227,38,54,.28), rgba(227,38,54,.62))"}}),null!=o&&(0,i.jsx)("span",{style:{position:"absolute",left:"".concat(o,"%"),top:"50%",translate:"-50% -50%",width:12,height:12,borderRadius:"50%",background:"#fff",boxShadow:"0 0 0 3px rgba(227,38,54,.55)"}})]})]})}function u(e){let{ms:t,compacto:n}=e;return(0,i.jsx)("div",{style:{display:"flex",gap:n?14:18,flexWrap:"wrap",borderTop:"1px solid ".concat(c),borderBottom:"1px solid ".concat(c),padding:n?"7px 0":"10px 0"},children:t.map(e=>(0,i.jsxs)("div",{style:{display:"grid",gap:2},children:[(0,i.jsx)("span",{style:{fontSize:10,letterSpacing:".08em",textTransform:"uppercase",color:d},children:e.label}),(0,i.jsxs)("span",{style:{fontSize:16,fontWeight:700,color:s},children:[e.display,e.unit?(0,i.jsxs)("span",{style:{fontSize:11,fontWeight:600,color:d},children:[" ",e.unit]}):null]})]},e.key))})}function f(e){let{src:t,inicial:n,lado:r,redondo:o}=e,[a,s]=(0,l.useState)(!1),c={width:r,height:r,borderRadius:o?999:3,background:"rgba(255,255,255,.08)",flex:"none"};return!t||a?(0,i.jsx)("span",{style:{...c,display:"grid",placeItems:"center",fontSize:10,fontWeight:800,color:d},children:n.slice(0,1).toUpperCase()}):(0,i.jsx)("img",{src:t,alt:"","aria-hidden":!0,onError:()=>s(!0),style:{...c,objectFit:o?"cover":"contain"}})}function x(e){var t,n,l,r,o,a;
1let{chart:c,rows:p,compacto:g}=e,h=String(null!=(t=c.etiqueta)?t:""),u=String(null!=(n=c.valor)?n:""),x=Number(null!=(l=c.maximo)?l:0),m=null!=(r=c.iconos)?r:{},y=String(null!=(o=c.semantica)?o:"generico"),j="ranking_jugadores"===y||"draft"===y,v=p.map(e=>{var t,n;return{et:String(null!=(t=e[h])?t:""),v:Number(e[u]),icono:m[String(null!=(n=e[h])?n:"")]}}).filter(e=>e.et&&Number.isFinite(e.v)),b=v.slice(0,3);if(b.length<3||!(x>0))return null;let S=Number(null!=(a=c.total)?a:v.length)||v.length,w=j?26:18;return(0,i.jsxs)("div",{style:{display:"grid",gap:g?6:7},children:[b.map((e,t)=>(0,i.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"auto 1fr auto",alignItems:"center",gap:9},children:[(0,i.jsx)(f,{src:e.icono,inicial:e.et,lado:w,redondo:j}),(0,i.jsxs)("div",{style:{display:"grid",gap:3,minWidth:0},children:[(0,i.jsx)("span",{style:{fontSize:12,color:0===t?"#fff":s,fontWeight:0===t?700:500,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.et}),(0,i.jsx)("span",{style:{height:6,borderRadius:999,width:"".concat(Math.max(4,e.v/x*100),"%"),background:0===t?"#e32636":"rgba(227,38,54,.42)"}})]}),(0,i.jsx)("span",{style:{fontSize:14,fontWeight:700,color:0===t?"#fff":s,fontVariantNumeric:"tabular-nums"},children:e.v.toLocaleString("es-ES",{maximumFractionDigits:1})})]},"".concat(e.et,"-").concat(t))),S>b.length&&(0,i.jsxs)("span",{style:{fontSize:11.5,color:"rgba(240,241,243,.72)",letterSpacing:".02em",fontWeight:600},children:[b.length," de ",(0,i.jsx)("strong",{style:{color:"#fff"},children:S})," \xb7 ",(0,i.jsx)("span",{style:{color:d,fontWeight:400},children:"los dem\xe1s, en el texto"})]})]})}function m(e){var t;let{s:n,compacto:r}=e,[o,a]=(0,l.useState)(!1),s="#26324a",c=n.headshot&&!o?n.headshot:null,p=r?54:76;return(0,i.jsxs)("div",{style:{display:"grid",justifyItems:"center",gap:6,minWidth:0},children:[(0,i.jsx)("div",{style:{width:p,height:p,borderRadius:"50%",position:"relative",overflow:"hidden",background:"linear-gradient(160deg, ".concat(s,", ").concat(s,"55)"),border:"1px solid rgba(255,255,255,.14)",display:"grid",placeItems:"center"},children:c?(0,i.jsx)("img",{src:c,alt:"","aria-hidden":!0,onError:()=>a(!0),style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"top"}}):(0,i.jsx)("span",{style:{fontSize:r?20:28,fontWeight:800,color:"rgba(255,255,255,.9)"},children:(n.nombre||"?").trim().charAt(0).toUpperCase()})}),(0,i.jsx)("span",{style:{fontSize:r?11.5:13,fontWeight:800,color:"#fff",textAlign:"center",letterSpacing:".02em",lineHeight:1.15,maxWidth:r?92:150},children:n.nombre}),!!(null==(t=n.equipos)?void 0:t.length)&&(0,i.jsx)("span",{style:{fontSize:10,letterSpacing:".08em",textTransform:"uppercase",color:d,maxWidth:r?92:150,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n.equipos.join(" \xb7 ")})]})}function y(e){var t;let{c:n,compacto:l}=e,r=n.entidades.length;if(r<2||!n.metricas.length)return null;let o="minmax(88px, 1.1fr) repeat(".concat(r,", minmax(").concat(l?68:92,"px, 1fr))");return(0,i.jsxs)("div",{style:{display:"grid",gap:l?8:12,overflowX:r>3?"auto":void 0},children:[(0,i.jsxs)("div",{style:{display:"grid",gridTemplateColumns:o,alignItems:"end",gap:l?6:10},children:[(0,i.jsx)("span",{"aria-hidden":!0}),n.entidades.map((e,t)=>(0,i.jsx)(m,{s:e,compacto:l},e.id||"".concat(e.nombre,"-").concat(t)))]}),(0,i.jsx)("div",{style:{display:"grid",gap:0},children:n.metricas.filter(e=>e.etiqueta).map((e,t)=>(0,i.jsxs)("div",{style:{display:"grid",gridTemplateColumns:o,alignItems:"center",gap:l?6:10,padding:l?"7px 0":"9px 0",borderTop:0===t?"1px solid ".concat(c):void 0,borderBottom:"1px solid ".concat(c)},children:[(0,i.jsx)("span",{style:{fontSize:l?10.5:11.5,letterSpacing:".07em",textTransform:"uppercase",color:d},children:e.etiqueta}),n.entidades.map((t,n)=>{var r,o;let a=null!=(o=null==(r=e.textos)?void 0:r[n])?o:null,d=e.ganador===n;return(0,i.jsx)("span",{style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:l?15:18,fontWeight:d?800:600,color:d?"#fff":s},children:null!=a?a:"â"},t.id||"".concat(t.nombre,"-").concat(n))})]},e.key))}),!!(null==(t=n.avisos)?void 0:t.length)&&(0,i.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none",display:"grid",gap:3},children:n.avisos.map((e,t)=>(0,i.jsx)("li",{style:{fontSize:l?11.5:12.5,lineHeight:1.45,color:d},children:e},t))})]})}let j=new Set(["external_ref","espn_id","nba_player_id","id","subject_id","player_id","key","extid","ext_id","gi
1d","uuid","pno","tid"]),v=e=>{let t=e.toLowerCase();return j.has(t)||t.endsWith("_id")||t.endsWith("_ref")||t.endsWith("_code")||t.endsWith("_key")};function b(e){var t;let{rows:n,compacto:l}=e,r=Object.keys(null!=(t=n[0])?t:{}).filter(e=>!v(e));return r.length<2||n.length<2?null:(0,i.jsx)("div",{style:{overflowX:"auto",overscrollBehaviorX:"contain"},children:(0,i.jsxs)("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:l?12.5:13.5},children:[(0,i.jsx)("thead",{children:(0,i.jsx)("tr",{children:r.map((e,t)=>(0,i.jsx)("th",{style:{textAlign:0===t?"left":"right",padding:l?"6px 8px":"7px 10px",fontSize:l?10:10.5,letterSpacing:".08em",textTransform:"uppercase",color:d,fontWeight:700,whiteSpace:"nowrap",borderBottom:"1px solid ".concat(c)},children:e},e))})}),(0,i.jsx)("tbody",{children:n.map((e,t)=>(0,i.jsx)("tr",{children:r.map((t,n)=>{let r,o;return(0,i.jsx)("td",{style:{textAlign:0===n||"number"!=typeof(r=e[t])&&("string"!=typeof r||""===r||Number.isNaN(Number(r)))?"left":"right",padding:l?"6px 8px":"7px 10px",color:0===n?"#fff":s,fontWeight:0===n?700:500,fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(c)},children:null==(o=e[t])||""===o?"â":String(o)},t)})},t))})]})})}let S={clips:["video_url"],duel:["descr","description"]};function w(e){let{rows:t,tipo:n,compacto:l}=e,r=(e,t)=>{for(let n of t){let t=e[n];if(null!=t&&""!==String(t).trim())return String(t).trim()}return null};if("tactica"===n){let e=t.filter(e=>r(e,["key"])&&r(e,["nombre"]));return e.length?(0,i.jsx)("div",{style:{display:"grid",gap:8},children:e.slice(0,l?4:8).map(e=>(0,i.jsxs)("a",{href:"/tactica",style:{display:"grid",gap:3,padding:l?"8px 10px":"10px 12px",border:"1px solid ".concat(c),borderRadius:12,textDecoration:"none"},children:[(0,i.jsx)("span",{style:{fontSize:l?13:14,fontWeight:800,color:"#fff"},children:r(e,["nombre"])}),r(e,["que_es"])&&(0,i.jsx)("span",{style:{fontSize:l?11.5:12.5,lineHeight:1.45,color:s},children:r(e,["que_es"])}),r(e,["se_ataca"])&&(0,i.jsx)("span",{style:{fontSize:11.5,lineHeight:1.45,color:d},children:r(e,["se_ataca"])})]},r(e,["key"])))}):null}let o=t.filter(e=>r(e,["description","descr"])||r(e,["video_url"]));return o.length?(0,i.jsx)("div",{style:{display:"grid",gap:6},children:o.slice(0,l?4:10).map((e,t)=>{var n,o,a;let d=r(e,["video_url"]),p=[r(e,["period"])?"Q".concat(r(e,["period"])):null,r(e,["clock"])].filter(Boolean).join(" "),g=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{style:{fontSize:11.5,color:"#e32636",fontWeight:700,whiteSpace:"nowrap"},children:null!=(o=null!=(n=r(e,["fecha","game_date"]))?n:p)?o:"â"}),(0,i.jsx)("span",{style:{fontSize:l?12.5:13.5,lineHeight:1.4,color:s},children:null!=(a=r(e,["description","descr"]))?a:""})]}),h={display:"grid",gridTemplateColumns:"auto 1fr",gap:10,alignItems:"baseline",padding:"7px 0",borderBottom:"1px solid ".concat(c),textDecoration:"none"};return d?(0,i.jsx)("a",{href:d,target:"_blank",rel:"noopener noreferrer",style:h,children:g},t):(0,i.jsx)("div",{style:h,children:g},t)})}):null}function _(e){var t;let{chart:n,compacto:l}=e,r=null!=(t=n.items)?t:[];if(!r.length)return null;let o=l?8:12;return(0,i.jsx)("div",{style:{display:"grid",gap:10},children:r.slice(0,3).map(e=>(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[Array.from({length:Math.min(e.n,o)}).map((t,n)=>(0,i.jsx)("img",{src:"/logos/trofeos/".concat(e.clave,".png"),alt:"","aria-hidden":!0,style:{width:l?22:26,height:l?22:26,objectFit:"contain"}},n)),e.n>o&&(0,i.jsxs)("span",{style:{fontSize:13,fontWeight:700,color:d},children:["+",e.n-o]})]},e.clave))})}function W(e){var t,n,o,c,f,m,j;let{presentacion:W,answer:z,rows:k,comparacion:T,render:N,compacto:C,verMas:F,verMenos:A,lecturaLabel:H,prioridad:R,aliasCanonico:q,aliasLabel:B,className:I}=e,[E,M]=(0,l.useState)(!1),O=null!=z?z:"",D=null!=(o=null==W?void 0:W.chart)?o:null,$=D?String(null!=(c=D.tipo)?c:""):"",P=(0,l.useMemo)(()=>[...new Set([null==W?void 0:W.scope.season,null==W?void 0:W.scope.competition,null==W?void 0:W.scope.period,null==W?void 0:W.provenance.as_of].filter(e=>!!e&&"carrera"!==e))].join(" \xb7 "),[W]),U=!!(null==W?void 0:W.subject),V=!!(null==W?void 0:W.primary_metric),X="barras"===$||"palmares"===$||"linea"===$||"lineas"===$,L=T&&(null==(t=T.entidades)?void 0:t.length)>=2&&(null==(n=T.metricas)?void 0:n.length)?T:null,Q=((e,t)=>{if(!e||!(null==t?void 0:t.length))return"table";let n=S[e];return n?n.some(e=>
1t.some(t=>null!==t[e]&&void 0!==t[e]&&""!==String(t[e]).trim()))?e:"table":e})(N,k),G="table"===Q&&Array.isArray(k)&&k.length>1&&Object.keys(null!=(f=k[0])?f:{}).filter(e=>!v(e)).length>1,J=("tactica"===Q||"clips"===Q||"duel"===Q)&&Array.isArray(k)&&k.length?Q:null,K=q?(0,i.jsxs)("div",{style:{display:"grid",gap:1},children:[B&&(0,i.jsx)("span",{style:{fontSize:10.5,letterSpacing:".14em",textTransform:"uppercase",color:d,fontWeight:700},children:B}),(0,i.jsx)("b",{style:{fontSize:C?16:18,color:s,lineHeight:1.25},children:q})]}):null;if(!L&&!G&&!J&&(!W||!U&&!V&&!X))return(0,i.jsxs)("div",{className:I,"data-qa":"narrativa",style:K?{display:"grid",gap:C?8:12}:void 0,children:[K,a(O)]});let Y="narrativa"===R&&O.trim().length>0,Z=O.split(/\n{2,}/),ee=Z.length>1,et=ee&&!E?Y?Z.slice(0,2).join("\n\n"):Z[0]:O,en=(null!=(m=null==W?void 0:W.secondary_metrics)?m:[]).slice(0,C?2:4),ei=(null==W?void 0:W.primary_metric)?(0,i.jsx)(g,{m:W.primary_metric,compacto:C}):null,el=(0,i.jsxs)(i.Fragment,{children:[K,L?(0,i.jsx)(y,{c:L,compacto:C}):(null==W?void 0:W.subject)?(0,i.jsx)(p,{s:W.subject,hero:ei,compacto:C}):ei&&(0,i.jsx)("div",{style:{paddingBottom:2},children:ei})]}),er=(0,i.jsxs)(i.Fragment,{children:[(null==W?void 0:W.range)&&!C&&(0,i.jsx)(h,{r:W.range,m:W.primary_metric}),"palmares"===$&&!L&&(0,i.jsx)(_,{chart:D,compacto:C}),"barras"===$&&!L&&k&&k.length>1&&(0,i.jsx)(x,{chart:D,rows:k,compacto:C}),("linea"===$||"lineas"===$)&&!L&&k&&k.length>=3&&(0,i.jsx)(r.P,{chart:D,rows:k,compacto:C}),G&&!L&&!X&&(0,i.jsx)(b,{rows:k,compacto:C}),J&&!L&&(0,i.jsx)(w,{rows:k,tipo:J,compacto:C}),(en.length>0||C&&(null==W?void 0:W.range))&&(0,i.jsx)(u,{ms:[...C&&(null==W?void 0:W.range)?[{key:"__rango",raw:null,display:W.range.display,precision:null,unit:"",label:null!=(j=W.range.confidence)?j:"",label_key:null}]:[],...en],compacto:C})]}),eo=(0,i.jsxs)("div",{style:{display:"grid",gap:6},children:[L&&H&&!Y&&(0,i.jsx)("span",{style:{fontSize:10.5,letterSpacing:".14em",textTransform:"uppercase",color:d,fontWeight:700},children:H}),(0,i.jsx)("div",{"data-qa":"narrativa",style:{fontSize:C?14:15,lineHeight:1.5,color:s},children:a(et)})]});return(0,i.jsxs)("div",{className:I,style:{display:"grid",gap:C?8:13},children:[el,Y?(0,i.jsxs)(i.Fragment,{children:[eo,er]}):(0,i.jsxs)(i.Fragment,{children:[er,eo]}),ee&&(0,i.jsxs)("button",{type:"button",onClick:()=>M(e=>!e),style:{justifySelf:"start",background:"none",border:0,padding:0,cursor:"pointer",fontSize:12,fontWeight:700,letterSpacing:".04em",color:"#e32636"},children:[E?"â ":"+ ",E?null!=A?A:"â":null!=F?F:"+"]}),P&&(0,i.jsx)("div",{style:{fontSize:11,color:"#6f7d91",letterSpacing:".03em"},children:P})]})}}}]);
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.