PageSourceSearch

https://static.fantasyfootballhub.co.uk/_next/static/immutable/chunks/0v09-q9_47v2d.js

js fantasyfootballhub.co.uk collected 2026-10-02 05:10:36 UTC 38,868 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88778,e=>{"use strict";var t=e.i(8092),a=e.i(89436);let l=e=>void 0===e?void 0:e?"true":"false",s=async e=>{let{accessToken:s}=e,{data:r,error:n}=await (0,t.ffhClient)().GET("/league/players/stats",{params:{query:(({fields:e,cursor:t,limit:a,ids:s,position:r,teamId:n,aggregation:i,venue:o,season:d,minGameweek:c,maxGameweek:m,minPrice:p,maxPrice:u,minDifficulty:x,maxDifficulty:h,minMinutes:f,hideMinutes:g,perMillion:y,search:b,sortBy:k,sortDirection:j})=>{let w=l(g),v=l(y);return{fields:e,...void 0!==t&&{after:t},...void 0!==a&&{limit:a},...void 0!==s&&{ids:s},...void 0!==r&&{position:r},...void 0!==n&&{teamId:n},...void 0!==i&&{aggregation:i},...void 0!==o&&{venue:o},...null!=d&&{season:d},...void 0!==c&&{minGameweek:c},...void 0!==m&&{maxGameweek:m},...void 0!==p&&{minPrice:p},...void 0!==u&&{maxPrice:u},...void 0!==x&&{minDifficulty:x},...void 0!==h&&{maxDifficulty:h},...null!=f&&{minMinutes:f},...void 0!==w&&{hideMinutes:w},...void 0!==v&&{perMillion:v},...void 0!==b&&b.length>0&&{search:b},...void 0!==k&&{sortBy:k},...void 0!==j&&{sortDirection:j}}})(e)},...s?{headers:(0,a.authHeader)(s)}:{}});if(n)throw Error("Failed to load player stats");return r};e.s(["fetchPlayerStats",0,s])},69479,e=>{"use strict";var t=e.i(8092);let a=async()=>{let{data:e,error:a}=await (0,t.ffhClient)().GET("/league/teams",{});if(a)throw Error("Failed to load teams");return e?.data??[]};e.s(["fetchTeams",0,a])},73015,78663,4583,45475,e=>{"use strict";var t=e.i(91398),a=e.i(41158);let l={ink:"text-[#14171c]",body:"text-[#3c4249]",bodyMuted:"text-[#5b636b]",muted:"text-[#767d85]",mutedLight:"text-[#8a9199]",mutedLighter:"text-[#a7adb3]",chrome:"text-[#c9ced3]",rule:"border-[#e4e7ea]",ruleLight:"border-[#eef0f2]",surfaceTint:"bg-[#fafbfc]",accentText:"text-[#1f7fc4]",accentBorder:"border-[#3fa9f5]",accentTintBg:"bg-[#f4faff]",cta:"bg-[#ff2f6d] hover:bg-[#e01f59]",darkShell:"bg-[#171b22]",darkInner:"bg-[#2b3038]"},s="scroll-mt-[84px]";e.s(["ACCENT_HEX",0,"#3fa9f5","ARTICLE_TOKENS",0,l,"SCROLL_MARGIN_CLASS",0,s,"STICKY_OFFSET_CLASS",0,"top-[84px]"],78663);var r=e.i(66803);let n=[480,720,960,1200],i=({value:e})=>
1{if(!e?.asset)return null;let a=(0,r.buildSanityImageUrl)(e).width(1200).fit("max").quality(80).url(),{width:s,height:i}=e.asset?.metadata?.dimensions??{},o=!!(e.caption||e.credit),d=(0,t.jsx)("img",{src:a,srcSet:(0,r.buildSanityImageSrcSet)(e,n,80),sizes:"(min-width: 48rem) 44rem, 100vw",alt:e.alt??"",width:s,height:i,loading:"lazy",decoding:"async",style:{maxWidth:"100%",maxHeight:"75svh",objectFit:"contain",height:"auto",display:"block",margin:"0 auto"}});return o?(0,t.jsxs)("figure",{className:"not-prose my-7","data-cy":"body-image",children:[d,(0,t.jsxs)("figcaption",{className:`mt-2.5 text-center text-[13px] ${l.mutedLight}`,children:[e.caption,e.credit&&(0,t.jsxs)("span",{className:l.mutedLighter,children:[e.caption?" · ":"",e.credit]})]})]}):d};var o=e.i(5987),d=e.i(47990);let c="free",m=({value:e})=>{let{user:s}=(0,o.useAuth0User)();return(e.audience??c)===c&&(0,d.isPaidMember)(s)||!e.heading||!e.href?null:(0,t.jsxs)("aside",{className:`not-prose mt-11 flex flex-col gap-4 rounded-2xl px-7 py-[26px] sm:flex-row sm:items-center sm:gap-6 ${l.darkShell}`,"data-cy":"cta-banner",children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("div",{className:"font-heading text-[21px] font-extrabold leading-[1.2] text-white",children:e.heading}),e.text&&(0,t.jsx)("p",{className:"mt-1.5 mb-0 font-body text-[15px] leading-[1.45] text-[#a3abb5]",children:e.text})]}),(0,t.jsx)(a.default,{href:e.href,className:`inline-block whitespace-nowrap rounded-[9px] px-5 py-3 font-heading text-[14.5px] font-bold text-white no-underline ${l.cta}`,children:e.buttonText??"Find out more"})]})},p=new Set(["youtube.com","www.youtube.com","m.youtube.com","youtube-nocookie.com","www.youtube-nocookie.com"]),u=new Set(["x.com","www.x.com","twitter.com","www.twitter.com"]),x=/^[A-Za-z0-9_-]{11}$/,h=["/embed/","/shorts/","/live/","/v/"],f=/^\/[A-Za-z0-9_]+\/status\/\d+/,g=({text:e})=>e?(0,t.jsx)("figcaption",{className:`mt-2 font-body text-[14.5px] leading-[1.45] ${l.bodyMuted}`,children:e}):null,y=({value:e})=>{let a=(e=>{if(!e)return;let t=(e=>{try{return new URL(e.trim())}catch{return}})(e);if(!t||"https:"!==t.protocol)return;let a=(e=>{if("youtu.be"===e.hostname)return e.pathname.slice(1).split("/")[0];if(!p.has(e.hostname))return;let t=e.searchParams.get("v");if(t)return t;let a=h.find(t=>e.pathname.startsWith(t));if(a)return e.pathname.slice(a.length).split("/")[0]})(t);if(a&&x.test(a))return{provider:"youtube",videoId:a,embedUrl:`https://www.youtube-nocookie.com/embed/${a}`};if(u.has(t.hostname)&&f.test(t.pathname)){let[,e,,a]=t.pathname.split("/");return{provider:"x",postUrl:`https://x.com/${e}/status/${a}`}}})(e.url);return a?"youtube"===a.provider?(0,t.jsxs)("figure",{className:"not-prose my-7","data-cy":"embed-youtube",children:[(0,t.jsx)("div",{className:"relative aspect-video overflow-hidden rounded-xl bg-black",children:(0,t.jsx)("iframe",{src:a.embedUrl,title:e.caption??"YouTube video",loading:"lazy",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",className:"absolute inset-0 h-full w-full border-0"})}),(0,t.jsx)(g,{text:e.caption})]}):(0,t.jsx)("figure",{className:"not-prose my-7","data-cy":"embed-x",children:(0,t.jsxs)("a",{href:a.postUrl,target:"_blank",rel:"noopener noreferrer",className:`flex items-center justify-between gap-4 rounded-xl border px-5 py-4 font-body text-base no-underline ${l.rule} ${l.ink}`,children:[(0,t.jsx)("span",{children:e.caption??"View this post on X"}),(0,t.jsx)("span",{className:`whitespace-nowrap text-sm ${l.bodyMuted}`,children:"x.com ↗"})]})}):null},b={"very-easy":"bg-[#26472E]",easy:"bg-[#427B50]",moderate:"bg-[#8F4F19]",hard:"bg-[#8A4242]","very-hard":"bg-[#562B2A]"};var k=e.i(57247),j=e.i(49819);let w={GK:"Goalkeeper",DEF:"Defender",MID:"Midfielder",FWD:"Forward"},v=e=>{let t=e.displayName.trim().split(" "),a=t.pop();return{firstName:t.join(" "),lastName:a}},N=({shortName:e})=>(0,t.jsx)("span",{className:"inline-flex h-5 w-6 shrink-0 items-center justify-center align-middle",children:(0,t.jsx)(j.TeamBadge,{shortName:e,size:"sm",className:"!mb-0"})}),$=({children:e,testId:a})=>(0,t.jsx)("section",{className:"not-prose my-8 rounded-3xl bg-[#2c3134] p-3 sm:p-5","data-cy":a,children:(0,t.jsx)("div",{className:"flex flex-col gap-5 rounded-[1.5rem] bg-[#1b1f21] p-4 sm:p-6",children:e})}),_=({title:e,detail:a})=>(0,t.jsxs)("div",{className:"grid grid-cols-[1fr_auto_1fr] items-center gap-3 rounded-xl bg-[#2c3134] px-4 py-3",children:[(0,t.jsx)("img",{src:"/images/logos/ffh-wordmark-blue.svg",alt:"Fantasy Football Hub",className:"!mb-0 h-5 w-auto justify-self-start sm:h-6"}),(0,t.jsx)("span",{className:"truncate text-center text-base font-bold leading-none text-[#1FD0FF] sm:text-xl",children:e}),(0,t.jsx)("span",{className:"justify-self-end whitespace-nowrap text-sm leading-none text-[#fcfcfc] sm:text-base",children:a})]}),E=()=>
1(0,t.jsx)("span",{"aria-hidden":!0,className:"text-[#d9d9d9]",children:"•"}),S=({player:e,sizeClass:a="h-16 w-16 sm:h-24 sm:w-24"})=>(0,t.jsx)("div",{className:`${a} shrink-0 overflow-hidden rounded-full bg-white`,children:e.imageUrl&&(0,t.jsx)("img",{src:e.imageUrl,alt:e.displayName,className:"!mb-0 h-full w-full origin-bottom scale-110 object-cover"})}),B=({player:e})=>{let{firstName:a,lastName:l}=v(e);return(0,t.jsxs)("header",{className:"flex items-center gap-4",children:[(0,t.jsx)(S,{player:e}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 text-sm leading-none text-[#fcfcfc] sm:text-base",children:[(0,t.jsx)(N,{shortName:e.team.shortName}),(0,t.jsx)("span",{children:e.team.fullName}),(0,t.jsx)(E,{}),(0,t.jsx)("span",{children:w[e.position]}),(0,t.jsx)(E,{}),(0,t.jsxs)("span",{children:["£",e.price.toFixed(1),"m"]})]}),(0,t.jsxs)("h3",{className:"mt-1 truncate pb-1 text-2xl leading-snug text-[#fcfcfc] sm:text-4xl",children:[a&&(0,t.jsxs)("span",{children:[a," "]}),(0,t.jsx)("span",{className:"font-bold",children:l})]})]})]})},I=e=>b[(0,k.ratingToDifficulty)(e.inferences?.difficulty.overall??5)],T=e=>"home"===e.venue?"H":"A",M=({fixtures:e,isCompact:a=!1})=>{let l=a?"min-h-[2.75rem]":"min-h-[5.5rem]";return 0===e.length?(0,t.jsx)("div",{className:`flex h-full ${l} items-center justify-center rounded-xl px-2 text-center text-xs font-bold text-[#7f8689] bg-[#2C3134]`,children:a?"Blank":"No fixture"}):(0,t.jsx)("div",{className:`flex h-full ${l} flex-col gap-0.5 overflow-hidden rounded-xl`,children:e.map(e=>(0,t.jsxs)("div",{className:`flex flex-1 items-center justify-center gap-1 py-1 text-xs font-bold text-[#faf5f5] sm:text-sm ${a?"flex-row":"flex-col"} ${I(e)}`,children:[!a&&(0,t.jsx)(j.TeamBadge,{shortName:e.opponent.shortName,size:"lg",className:"!mb-0"}),(0,t.jsxs)("span",{className:"whitespace-nowrap",children:[e.opponent.shortName," (",T(e),")"]})]},`${e.gameweek}-${e.opponent.shortName}`))})},C=({gameweeks:e,isCompact:a=!1})=>{let l=Math.max(e.length,1);return(0,t.jsxs)("div",{className:"grid gap-2 sm:gap-3",style:{gridTemplateColumns:`repeat(${l}, minmax(0, 1fr))`},children:[e.map(({gameweek:e})=>(0,t.jsxs)("div",{className:"text-center text-xs font-bold text-[#a5aaad] sm:text-sm",children:["GW",e]},`label-${e}`)),e.map(({gameweek:e,fixtures:l})=>(0,t.jsx)(M,{fixtures:l,isCompact:a},`tile-${e}`))]})},A=({rows:e,gameweeks:a})=>{let l=a[0],s=a[a.length-1],r=`5rem repeat(${Math.max(a.length,1)}, minmax(4.5rem, 1fr))`;return(0,t.jsxs)($,{testId:"fixture-ticker-card",children:[(0,t.jsx)(_,{title:"Fixture ticker",detail:l===s?`GW${l}`:`GW${l}-GW${s}`}),(0,t.jsx)("div",{className:"-mx-1 overflow-x-auto px-1",children:(0,t.jsxs)("div",{className:"grid items-center gap-1.5 sm:gap-2",style:{gridTemplateColumns:r},children:[(0,t.jsx)("div",{className:"text-xs font-bold text-[#a5aaad] sm:text-sm",children:"Team"}),a.map(e=>(0,t.jsxs)("div",{className:"text-center text-xs font-bold text-[#a5aaad] sm:text-sm",children:["GW",e]},`label-${e}`)),e.map(e=>[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs font-bold leading-none text-[#fcfcfc] sm:text-sm",children:[(0,t.jsx)(N,{shortName:e.shortName}),(0,t.jsx)("span",{children:e.shortName})]},`team-${e.shortName}`),...e.gameweeks.map(a=>(0,t.jsx)(M,{fixtures:a.fixtures,isCompact:!0},`${e.shortName}-${a.gameweek}`))])]})})]})},G="attacking",U={attacking:[{label:"Appearances",path:"participation.appearances"},{label:"Goals",path:"attack.goals"},{label:"xG",path:"attack.expectedGoals",decimals:2},{label:"Assists",path:"attack.assists"},{label:"xA",path:"attack.expectedAssists",decimals:2},{label:"Shots on target",path:"attack.shots.onTarget"},{label:"Shots in the box",path:"attack.shots.inBox"},{label:"Big chances",path:"attack.bigChances"},{label:"Key passes",path:"attack.keyPasses"},{label:"Big chances created",path:"attack.bigChancesCreated"},{label:"FPL points",path:"fpl.points"},{label:"DefCon points",path:"fpl.defensiveContribution.points"}],defending:[{label:"Appearances",path:"participation.appearances"},{label:"Clean sheets",path:"defending.cleanSheets"},{label:"xCS",path:"defending.expectedCleanSheets",decimals:2},{label:"DefCon points",path:"fpl.defensiveContribution.points"},{label:"Goals",path:"attack.goals"},{label:"xG",path:"attack.expectedGoals",decimals:2},{label:"Assists",path:"attack.assists"},{label:"xA",path:"attack.expectedAssists",decimals:2},{label:"FPL points",path:"fpl.points"},{label:"Big chances",path:"attack.bigChances"},{label:"Big chances created",path:"attack.bigChancesCreated"},{label:"Key passes",path:"attack.keyPasses"}]},P={attacking:[{label:"Appearances",path:"participation.appearances"},{label:"Goals",path:"attack.goals"},{label:"Expected goals",path:"attack.expectedGoals",decimals:2},{label:"Assists",path:"attack.assists"},{label:"Expected assists",path:"attack.expectedAssists",decimals:2},{label:"DefCon points",path:"fpl.defensiveContribution.points"},{label:"Big chances",path:"attack.bigChances"},{label:"Big chances created",path:"attack.bigChancesCreated"}],defending:[{label:"Appearances",path:"participation.appearances"},{label:"Clean sheets",path:"defending.cleanSheets"},{label:"Expected clean sheets",path:"defending.expectedCleanSheets",decimals:2},{label:"DefCon points",path:"fpl.defensiveContribution.points"},{label:"Goals",path:"attack.goals"},{label:"Expected goals",path:"attack.expectedGoals",decimals:2},{label:"Assists",path:"attack.assists"},{label:"Expected assists",path:"attack.expectedAssists",decimals:2}]},F=(e,t)=>`${e}:${t?.minGameweek??""}-${t?.maxGameweek??""}`,O=(e,t)=>{let a=t.split(".").reduce((e,t)=>
1e&&"object"==typeof e?e[t]:void 0,e);return"number"==typeof a?a:void 0},L=(e,t)=>void 0===e?"-":void 0!==t?e.toFixed(t):Number.isInteger(e)?String(e):e.toFixed(1),R=e=>Math.min(e??5,5),K=(e,t)=>(t?.optaUuid&&e.optaUuids.add(t.optaUuid),t?.optaUuid),W=(e,t,a,l)=>{let s=t??"all",r=F(s,a),n=e.statsRequests.get(r)??{key:r,venue:s,minGameweek:a?.minGameweek,maxGameweek:a?.maxGameweek,optaUuids:new Set};for(let e of l)e&&n.optaUuids.add(e);e.statsRequests.set(r,n)},D={playerFixturesBlock:(e,t)=>{"playerFixturesBlock"===e._type&&(K(t,e.player),t.needsTeamFixtures=!0)},playerProfileBlock:(e,t)=>{if("playerProfileBlock"!==e._type)return;let a=K(t,e.player);W(t,e.venue,e.gameweekRange,[a]),t.needsTeamFixtures=!0},headToHeadBlock:(e,t)=>{if("headToHeadBlock"!==e._type)return;let a=K(t,e.playerOne),l=K(t,e.playerTwo);W(t,e.venue,e.gameweekRange,[a,l]),t.needsTeamFixtures=!0},fixtureTickerBlock:(e,t)=>{"fixtureTickerBlock"===e._type&&(t.needsTeamFixtures=!0,t.fixtureRanges.push({startGameweek:e.startGameweek,count:R(e.gameweekCount)}))},playerListBlock:(e,t)=>{if("playerListBlock"===e._type)for(let a of e.players??[])K(t,a)},statCalloutBlock:()=>void 0,ctaBannerBlock:()=>void 0,embedBlock:()=>void 0},z=Object.keys(D),q=e=>"object"==typeof e&&null!==e&&"playerLink"===e._type&&"string"==typeof e.optaUuid&&e.optaUuid.length>0,H=(e,t)=>{let a=new Set((e.children??[]).flatMap(e=>e.marks??[]));for(let l of e.markDefs??[])q(l)&&a.has(l._key)&&(t.optaUuids.add(l.optaUuid),t.linkedOptaUuids.add(l.optaUuid))},X=e=>"object"==typeof e&&null!==e&&"_type"in e&&z.includes(e._type);var Y=e.i(65245);let Z=e=>0===e.length?5:e.reduce((e,{fixtures:t})=>{if(0===t.length)return e+5;let a=t.map(e=>e.inferences?.difficulty.overall??5);return e+a.reduce((e,t)=>e+t,0)/a.length},0)/e.length,Q=({value:e,data:a})=>{var l;let s=Object.keys(a.fixturesByTeamShortName),r=e.teams&&e.teams.length>0?e.teams:s,n=e.startGameweek??Math.max(Y.GAMEWEEK_ONE,a.currentGameweek+1),i=R(e.gameweekCount),o=r.filter(e=>e in a.fixturesByTeamShortName).map(e=>({shortName:e,name:a.teamNamesByShortName[e]??e,gameweeks:((e,t,a)=>{let l=Math.min(Math.max(t,Y.GAMEWEEK_ONE),Y.MAX_GAMEWEEK),s=Math.min(Y.MAX_GAMEWEEK,l+a-1),r=[];for(let t=l;t<=s;t+=1)r.push({gameweek:t,fixtures:e.filter(e=>e.gameweek===t)});return r})(a.fixturesByTeamShortName[e],n,i)}));if(0===o.length)return null;let d=("selected"===(l=e.sortBy??"difficulty")?o:"alphabetical"===l?[...o].sort((e,t)=>e.shortName.localeCompare(t.shortName)):[...o].sort((e,t)=>Z(e.gameweeks)-Z(t.gameweeks)||e.shortName.localeCompare(t.shortName))).slice(0,e.teamLimit||void 0);return(0,t.jsx)(A,{rows:d,gameweeks:d[0].gameweeks.map(e=>e.gameweek)})},V=(e,t,a)=>{let l=new Map;for(let t of e){let e=l.get(t.gameweek)??[];e.push(t),l.set(t.gameweek,e)}let s=Math.max(Y.GAMEWEEK_ONE,t+1),r=[];for(let e=s;e<=Y.MAX_GAMEWEEK&&r.length<a;e+=1)r.push({gameweek:e,fixtures:l.get(e)??[]});return r},J=(e,t)=>
1t?.optaUuid?e.playersByOptaUuid[t.optaUuid]:void 0,ee=(e,t,a,l)=>e.statsByRequestKey[F(t??"all",a)]?.[l],et=(e,t)=>V(e.fixturesByTeamShortName[t]??[],e.currentGameweek,3),ea=(e,t)=>{let a=e?.minGameweek??Y.GAMEWEEK_ONE,l=e?.maxGameweek??(t>=Y.GAMEWEEK_ONE?t:Y.MAX_GAMEWEEK);return`Gameweek ${a}-${l}`},el=({gameweeks:e,align:a})=>(0,t.jsx)("div",{className:`flex flex-wrap gap-1 ${"right"===a?"justify-end":"justify-start"}`,children:e.flatMap(({gameweek:e,fixtures:a})=>0===a.length?(0,t.jsxs)("span",{className:"rounded-md bg-[#2C3134] px-2 py-0.5 text-[10px] font-bold text-[#7f8689]",children:["GW",e," blank"]},`blank-${e}`):a.map(a=>(0,t.jsxs)("span",{className:`rounded-md px-2 py-0.5 text-[10px] font-bold text-[#faf5f5] ${I(a)}`,children:[a.opponent.shortName," (",T(a),")"]},`${e}-${a.opponent.shortName}`)))}),es=({player:e,upcoming:a,align:l})=>{let{firstName:s,lastName:r}=v(e),n="right"===l;return(0,t.jsxs)("div",{className:`flex min-w-0 flex-col gap-2 ${n?"items-end text-right":"items-start text-left"}`,children:[(0,t.jsxs)("div",{className:`flex items-center gap-3 ${n?"flex-row-reverse":""}`,children:[(0,t.jsx)(S,{player:e,sizeClass:"h-14 w-14 sm:h-20 sm:w-20"}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("div",{className:`flex items-center gap-2 text-xs leading-none text-[#fcfcfc] sm:text-sm ${n?"flex-row-reverse":""}`,children:[(0,t.jsx)(N,{shortName:e.team.shortName}),(0,t.jsx)("span",{children:w[e.position]}),(0,t.jsxs)("span",{children:["£",e.price.toFixed(1),"m"]})]}),(0,t.jsxs)("h3",{className:"mt-0.5 truncate pb-1 text-lg leading-snug text-[#fcfcfc] sm:text-2xl",children:[s&&(0,t.jsxs)("span",{children:[s," "]}),(0,t.jsx)("span",{className:"font-bold",children:r})]})]})]}),(0,t.jsx)(el,{gameweeks:a,align:l})]})},er=({playerOne:e,playerTwo:a,rows:l,rangeLabel:s,upcomingOne:r,upcomingTwo:n})=>(0,t.jsxs)($,{testId:"head-to-head-card",children:[(0,t.jsxs)("div",{className:"grid min-w-0 grid-cols-2 gap-4 [&>*]:min-w-0",children:[(0,t.jsx)(es,{player:e,upcoming:r,align:"left"}),(0,t.jsx)(es,{player:a,upcoming:n,align:"right"})]}),(0,t.jsx)(_,{title:"Head to head",detail:s}),(0,t.jsx)("dl",{className:"m-0 flex flex-col",children:l.map(e=>(0,t.jsxs)("div",{className:"grid grid-cols-[1fr_auto_1fr] items-center gap-3 border-b border-white/40 py-2",children:[(0,t.jsx)("dd",{className:`m-0 text-left text-base sm:text-lg ${"left"===e.leader?"font-black text-[#1FD0FF]":"font-semibold text-white"}`,children:e.left}),(0,t.jsx)("dt",{className:"text-center text-xs text-[#a5aaad] sm:text-sm",children:e.label}),(0,t.jsx)("dd",{className:`m-0 text-right text-base sm:text-lg ${"right"===e.leader?"font-black text-[#1FD0FF]":"font-semibold text-white"}`,children:e.right})]},e.label))})]}),en=({value:e,data:a})=>{let l,s,r=J(a,e.playerOne),n=J(a,e.playerTwo);if(!r||!n)return null;let i=t=>ee(a,e.venue,e.gameweekRange,t);return(0,t.jsx)(er,{playerOne:r,playerTwo:n,rows:(l=i(r.externalIds.optaUuid),s=i(n.externalIds.optaUuid),P[e.statMode??G].map(({label:e,path:t,decimals:a})=>{let r=O(l,t),n=O(s,t),i=null;return void 0!==r&&void 0!==n&&(r>n&&(i="left"),n>r&&(i="right")),{label:e,left:L(r,a),right:L(n,a),leader:i}})),rangeLabel:ea(e.gameweekRange,a.currentGameweek),upcomingOne:et(a,r.team.shortName),upcomingTwo:et(a,n.team.shortName)})},ei=({player:e,gameweeks:a})=>{let l=Math.max(a.length,1);return(0,t.jsxs)($,{testId:"player-fixtures-card",children:[(0,t.jsx)(B,{player:e}),(0,t.jsx)(_,{title:"Player fixtures",detail:`Next ${l} GW${1===l?"":"s"}`}),(0,t.jsx)(C,{gameweeks:a})]})},eo=({value:e,data:a})=>{let l=e.player?.optaUuid,s=l?a.playersByOptaUuid[l]:void 0;if(!s)return null;let r=V(a.fixturesByTeamShortName[s.team.shortName]??[],a.currentGameweek,e.fixtureCount??5);return(0,t.jsx)(ei,{player:s,gameweeks:r})};var ed=e.i(34505);let ec=({value:e,data:s})=>{let r=(e.players??[]).map(e=>s.playersByOptaUuid[e.optaUuid]).filter(e=>!!e);return 0===r.length?null:(0,t.jsxs)("section",{className:"not-prose my-8","data-cy":"player-list",children:[(0,t.jsxs)("header",{className:"mb-4 flex items-center gap-3",children:[(0,t.jsx)("h3",{className:`m-0 font-heading text-[15px] font-extrabold tracking-[-0.01em] ${l.ink}`,children:e.title}
1),(0,t.jsx)("span",{"aria-hidden":!0,className:`h-px flex-1 border-t ${l.rule}`}),(0,t.jsxs)("span",{className:`font-body tabular-nums text-[11.5px] ${l.mutedLight}`,children:[r.length," ",1===r.length?"player":"players"]})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:r.map(e=>(0,t.jsxs)(a.default,{href:(0,ed.toPlayerProfilePath)((0,ed.toSlug)(e.team.fullName),(0,ed.buildPlayerSlug)(e,[])),className:`flex items-center gap-2 rounded-full border bg-white py-[7px] pl-2 pr-3 text-sm leading-none !no-underline transition-all duration-150 ease-out hover:-translate-y-0.5 hover:border-[#3fa9f5] hover:bg-[#f4faff] hover:!no-underline ${l.rule}`,children:[(0,t.jsx)(j.TeamBadge,{shortName:e.team.shortName,size:"xs",className:"!m-0 !inline-block"}),(0,t.jsx)("span",{className:`font-semibold ${l.ink}`,children:e.displayName}),(0,t.jsxs)("span",{className:`font-body text-[11.5px] tabular-nums ${l.mutedLight}`,children:["£",e.price.toFixed(1),"m"]})]},e.externalIds.optaUuid))})]})},em=({rows:e})=>(0,t.jsx)("dl",{className:"m-0 flex flex-col",children:e.map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-white/40 py-2",children:[(0,t.jsx)("dt",{className:"truncate text-sm text-[#a5aaad] sm:text-base",children:e.label}),(0,t.jsx)("dd",{className:"m-0 text-base font-black text-white sm:text-lg",children:e.value})]},e.label))}),ep=({player:e,stats:a,rangeLabel:l,upcoming:s})=>{let r=Math.ceil(a.length/2);return(0,t.jsxs)($,{testId:"player-profile-card",children:[(0,t.jsx)(B,{player:e}),s.length>0&&(0,t.jsx)(C,{gameweeks:s,isCompact:!0}),(0,t.jsx)(_,{title:"Player profile",detail:l}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-x-8 sm:grid-cols-2",children:[(0,t.jsx)(em,{rows:a.slice(0,r)}),(0,t.jsx)(em,{rows:a.slice(r)})]})]})},eu=({value:e,data:a})=>{let l=J(a,e.player);if(!l)return null;let s=ee(a,e.venue,e.gameweekRange,l.externalIds.optaUuid);return(0,t.jsx)(ep,{player:l,stats:U[e.statMode??G].map(({label:e,path:t,decimals:a})=>({label:e,value:L(O(s,t),a)})),rangeLabel:ea(e.gameweekRange,a.currentGameweek),upcoming:et(a,l.team.shortName)})},ex={blue:"border-l-[#3fa9f5]",pink:"border-l-[#ff2f6d]"},eh=({value:e})=>{let a=e.items??[];return 0===a.length?null:(0,t.jsx)("div",{className:"not-prose my-7 grid gap-4 sm:grid-cols-2","data-cy":"stat-callouts",children:a.map((e,a)=>(0,t.jsxs)("div",{className:`rounded-[4px_12px_12px_4px] border border-l-[3px] px-5 py-[18px] ${l.rule} ${ex[e.accent??"blue"]}`,children:[(0,t.jsx)("div",{className:`font-heading text-[40px] font-extrabold leading-none ${l.ink}`,children:e.value}),(0,t.jsx)("p",{className:`mt-2 mb-0 font-body text-[14.5px] leading-[1.45] ${l.bodyMuted}`,children:((e,a)=>{if(!a)return e;let s=e.toLowerCase().indexOf(a.toLowerCase());return -1===s?e:(0,t.jsxs)(t.Fragment,{children:[e.slice(0,s),(0,t.jsx)("strong",{className:`font-semibold ${l.ink}`,children:e.slice(s,s+a.length)}),e.slice(s+a.length)]})})(e.text,e.highlight)})]},e._key??a))})},ef=e=>(e.children??[]).map(e=>"text"in e?String(e.text):"").join("").trim(),eg=(e,t)=>{let a=e.findIndex(e=>e.text===t);if(-1===a)return;let[l]=e.splice(a,1);return l.id},ey=e=>(e??[]).filter(e=>"block"===e._type).map(ef).join(" ").split(/\s+/).filter(Boolean).length;e.s(["countBodyWords",0,ey,"estimateReadMinutes",0,e=>Math.max(1,Math.round(ey(e)/230)),"extractHeadings",0,e=>{let t=new Map,a=[];for(let l of e??[]){if("block"!==l._type||"h2"!==l.style)continue;let e=ef(l);if(!e)continue;let s=(0,ed.toSlug)(e)||"section",r=t.get(s)??0;t.set(s,r+1),a.push({id:0===r?s:`${s}-${r+1}`,text:e})}return a},"headingIdFor",0,eg],4583);var eb=e.i(61616),ek=e.i(88778),ej=e.i(33421),ew=e.i(44093),ev=e.i(69479);let eN=async(e,t)=>{let a,l=[];for(let s=0;s<t;s+=1){let t=await (0,ej.fetchPlayers)({...e,limit:100,exclude:"predictions",...a?{cursor:a}:{}});if(l.push(...t.data),!t.meta?.hasMore||!t.meta.nextCursor)break;a=t.meta.nextCursor}return l},e$=(e,t,a)=>{let l=t.find(e=>e.externalIds.optaUuid===a);return l?{clubSlug:(0,ed.buildClubSlug)(e),playerSlug:(0,ed.buildPlayerSlug)(l,t)}:null},e_=Y.GAMEWEEK_ONE-1,eE={playersByOptaUuid:{},profilePathsByOptaUuid:{},fixturesByTeamShortName:{},teamNamesByShortName:{}
1,statsByRequestKey:{},currentGameweek:e_},eS=(e,t)=>{let a=[];for(let l=0;l<e.length;l+=t)a.push(e.slice(l,l+t));return a},eB=async e=>Object.fromEntries((await Promise.all(eS(e,15).map(e=>(0,ej.fetchPlayers)({optaIds:e.join(","),exclude:"predictions",limit:15})))).flatMap(e=>e.data).map(e=>[e.externalIds.optaUuid,e])),eI=async e=>(0,ew.fetchTeamFixturesPreview)(e),eT=async(e,t)=>{let a=[...e.optaUuids].map(e=>t[e]?.id).filter(e=>!!e);return 0===a.length?{}:Object.fromEntries((await Promise.all(eS(a,100).map(t=>(0,ek.fetchPlayerStats)({fields:"attack,defending,fpl",ids:t.join(","),limit:100,..."all"!==e.venue&&{venue:e.venue},...void 0!==e.minGameweek&&{minGameweek:e.minGameweek},...void 0!==e.maxGameweek&&{maxGameweek:e.maxGameweek}})))).flatMap(e=>e.data).map(e=>[e.optaUuid,e]))},eM=async(e,t)=>{let a=[...e].map(e=>t[e]).filter(e=>!!e);if(0===a.length)return{};try{let e=await (0,ev.fetchTeams)(),t=new Map(e.map(e=>[e.shortName,e])),l=[...new Set(a.map(e=>t.get(e.team.shortName)).filter(e=>!!e))],s=new Map(await Promise.all(l.map(async e=>{let t;return[e.shortName,await (t=e.id,eN({teamId:t,sortBy:"ownership",sortDirection:"desc"},5))]}))),r=[];for(let e of a){let a=t.get(e.team.shortName),l=s.get(e.team.shortName),n=a&&l?e$(a,l,e.externalIds.optaUuid):null;n&&r.push([e.externalIds.optaUuid,(0,ed.toPlayerProfilePath)(n.clubSlug,n.playerSlug)])}return Object.fromEntries(r)}catch(e){return console.error("[article-blocks] profile path resolution failed",e),{}}},eC=async()=>(await (0,eb.fetchLeagueContext)())?.currentGameweek?.number??e_,eA=async e=>{let t=(e=>{let t={optaUuids:new Set,linkedOptaUuids:new Set,needsTeamFixtures:!1,statsRequests:new Map,fixtureRanges:[]};for(let a of e??[])X(a)?D[a._type](a,t):"block"===a._type&&H(a,t);return t})(e);if(!(t.optaUuids.size>0||t.needsTeamFixtures||t.statsRequests.size>0))return eE;try{let e=t.needsTeamFixtures?await eC():e_,[a,l]=await Promise.all([t.optaUuids.size>0?eB([...t.optaUuids]):Promise.resolve({}),t.needsTeamFixtures?eI(((e,t)=>{let a=Math.max(Y.GAMEWEEK_ONE,e+1),l=Math.min(Y.MAX_GAMEWEEK,e+6);for(let e of t.fixtureRanges){let t=e.startGameweek??a;a=Math.min(a,t),l=Math.max(l,Math.min(Y.MAX_GAMEWEEK,t+e.count-1))}return{gameweekStart:a,gameweekEnd:l}})(e,t)):Promise.resolve([])]),[s,r]=await Promise.all([Promise.all([...t.statsRequests.values()].map(async e=>[e.key,await eT(e,a)])),eM(t.linkedOptaUuids,a)]);return{playersByOptaUuid:a,profilePathsByOptaUuid:r,fixturesByTeamShortName:Object.fromEntries(l.map(e=>[e.shortName,e.fixtures])),teamNamesByShortName:Object.fromEntries(l.map(e=>[e.shortName,e.name])),statsByRequestKey:Object.fromEntries(s),currentGameweek:e}}catch(e){return console.error("[article-blocks] hydration failed",e),eE}};e.s(["EMPTY_ARTICLE_BLOCK_DATA",0,eE,"OPTA_IDS_PER_REQUEST",0,15,"chunk",0,eS,"hydrateArticleBlocks",0,eA],45475);let eG="!border-b-0 !text-[#14171c] !underline !decoration-2 !decoration-[#1f7fc4] underline-offset-[3px] transition-colors hover:!text-[#1f7fc4]";e.s(["buildArticlePortableTextComponents",0,(e=eE,r=[])=>({block:{normal:({children:e})=>(0,t.jsx)("p",{className:`mb-5 font-body text-lg leading-[1.65] ${l.body}`,children:e}),h2:({children:e,value:a})=>(0,t.jsx)("h2",{id:eg(r,(a.children??[]).map(e=>String(e.text??"")).join("").trim()),className:`mt-[52px] mb-2 border-t-2 border-[#14171c] pt-5 font-heading text-[27px] font-bold leading-[1.2] tracking-[-0.015em] ${l.ink} ${s} [text-wrap:pretty] [&+p]:mt-6`,children:e}),h3:({children:e})=>(0,t.jsx)("h3",{className:`mt-9 mb-3 font-heading text-xl font-bold leading-[1.25] ${l.ink}`,children:e}),h4:({children:e})=>(0,t.jsx)("h4",{className:`mt-7 mb-2 font-heading text-lg font-bold ${l.ink}`,children:e}),blockquote:({children:e})=>(0,t.jsx)("blockquote",{className:`my-6 border-l-[3px] border-[#3fa9f5] pl-5 font-body text-lg italic ${l.bodyMuted}`,children:e})},list:{bullet:({children:e})=>(0,t.jsx)("ul",{className:`mb-5 list-disc pl-6 font-body text-lg leading-[1.65] ${l.body}`,children:e}),number:({children:e})=>(0,t.jsx)("ol",{className:`mb-5 list-decimal pl-6 font-body text-lg leading-[1.65] ${l.body}`,children:e})},types:{playerFixturesBlock:({value:a})=>(0,t.jsx)(eo,{value:a,data:e}),playerProfileBlock:({value:a})=>(0,t.jsx)(eu,{value:a,data:e}),headToHeadBlock:({value:a})=>(0,t.jsx)(en,{value:a,data:e}),fixtureTickerBlock:({value:a})=>(0,t.jsx)(Q,{value:a,data:e}),statCalloutBlock:({value:e})=>(0,t.jsx)(eh,{value:e}),playerListBlock:({value:a})=>(0,t.jsx)(ec,{value:a,data:e}),ctaBannerBlock:({value:e})=>(0,t.jsx)(m,{value:e}),embedBlock:({value:e})=>(0,t.jsx)(y,{value:e}),image:({value:e})=>(0,t.jsx)(i,{value:e})},marks:{strong:({children:e})=>(0,t.jsx)("strong",{className:`font-semibold ${l.ink}`,children:e}),link:({value:e,children:a})=>{let l=!!e?.blank;return(0,t.jsx)("a",{href:e?.href,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,className:eG,children:a})},playerLink:({value:l,children:s})=>{let r=l?.optaUuid?e.profilePathsByOptaUuid[l.optaUuid]:void 0;return r?(0,t.jsx)(a.default,{href:r,className:eG,"data-cy":"player-link",children:s}):(0,t.jsx)(t.Fragment,{children:s})}}})],73015)},46958,e=>{"use strict";var t=e.i(91788),a=e.i(48625);e.s(["MissingPropsRecovery",0,({context:e,reloadMarkerKey:l,fallbackPath:s,errorMessage:r})=>((0,t.useEffect)(()=>{let t=window.location.href,n=!1;try{(n=sessionStorage.getItem(l)===t)||sessionStorage.setItem(l,t)}catch{n=!0}a.datadogRumService.addError(Error(r),{context:e,failureMode:n?"redirected-to-landing":"reloading-once"}),n?window.location.replace(s):window.location.reload()},[e,r,s,l]),null)])},34505,e=>{"use strict";let t="/fpl/players",a="by-id",l=e=>e.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/ø/g,"o").replace(/æ/g,"ae").replace(/ß/g,"ss").replace(/[đð]/g,"d").replace(/þ/g,"th").replace(/ł/g,"l").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),s=e=>
1l(e.name),r=(e,t)=>{let a=l(e.displayName);if(!t.some(t=>t!==e&&t.externalIds.optaUuid!==e.externalIds.optaUuid&&l(t.displayName)===a))return a;let s=e.externalIds.fplCode??e.externalIds.optaUuid.slice(0,8);return`${a}-${s}`},n=RegExp("^(.+)-([a-z0-9]{8})$"),i=e=>{let t=[],a=e.match(/^(.+)-(\d+)$/);a&&t.push({kind:"fplCode",baseSlug:a[1],fplCode:Number(a[2])});let l=e.match(n);return l&&t.push({kind:"optaUuidPrefix",baseSlug:l[1],uuidPrefix:l[2]}),t},o=(e,t)=>l(e.displayName)===t.baseSlug&&("fplCode"===t.kind?e.externalIds.fplCode===t.fplCode:e.externalIds.optaUuid.startsWith(t.uuidPrefix));e.s(["PLAYERS_INDEX_PATH",0,t,"buildClubSlug",0,s,"buildPlayerSlug",0,r,"matchesTiebreaker",0,o,"parseSlugTiebreakers",0,i,"resolvePlayerBySlug",0,(e,t)=>e.find(a=>r(a,e)===t)??null,"resolvePlayerBySlugAlias",0,(e,t)=>{for(let a of i(t)){let t=e.find(e=>o(e,a));if(t)return t}return null},"resolveTeamBySlug",0,(e,t)=>t===a?null:e.find(e=>s(e)===t)??null,"toClubIndexPath",0,e=>`${t}/${e}`,"toPlayerByIdPath",0,e=>`${t}/${a}/${e}`,"toPlayerProfilePath",0,(e,a)=>`${t}/${e}/${a}`,"toSlug",0,l])},43343,e=>{"use strict";var t=e.i(91398);function a(e){return"span"===e._type&&"text"in e&&"string"==typeof e.text&&(void 0===e.marks||Array.isArray(e.marks)&&e.marks.every(e=>"string"==typeof e))}function l(e){return"string"==typeof e._type&&"@"!==e._type[0]&&(!("markDefs"in e)||!e.markDefs||Array.isArray(e.markDefs)&&e.markDefs.every(e=>"string"==typeof e._key))&&"children"in e&&Array.isArray(e.children)&&e.children.every(e=>"object"==typeof e&&"_type"in e)}function s(e){return l(e)&&"listItem"in e&&"string"==typeof e.listItem&&(void 0===e.level||"number"==typeof e.level)}function r(e){return"@list"===e._type}function n(e){return"@span"===e._type}function i(e){return"@text"===e._type}let o=["strong","em","code","underline","strike-through"];function d(e,t,l){if(!a(e)||!e.marks||!e.marks.length)return[];let s=e.marks.slice(),r={};return s.forEach(e=>{r[e]=1;for(let s=t+1;
1s<l.length;s++){let t=l[s];if(t&&a(t)&&Array.isArray(t.marks)&&-1!==t.marks.indexOf(e))r[e]++;else break}}),s.sort((e,t)=>(function(e,t,a){let l=e[t],s=e[a];if(l!==s)return s-l;let r=o.indexOf(t),n=o.indexOf(a);return r===n?t.localeCompare(a):r-n})(r,e,t))}function c(e,t,a){return{_type:"@list",_key:`${e._key||`${t}`}-parent`,mode:a,level:e.level||1,listItem:e.listItem,children:[e]}}function m(e,t){let l=t.level||1,s=t.listItem||"normal",n="string"==typeof t.listItem;if(r(e)&&(e.level||1)===l&&n&&(e.listItem||"normal")===s)return e;if(!("children"in e))return;let i=e.children[e.children.length-1];return i&&!a(i)?m(i,t):void 0}var p=e.i(91788);let u={textDecoration:"underline"},x=(e,t)=>`[@portabletext/react] Unknown ${e}, specify a component for it in the \`components.${t}\` prop`,h=e=>x(`block type "${e}"`,"types");function f(e){console.warn(e)}let g={display:"none"},y={types:{},block:{normal:({children:e})=>(0,t.jsx)("p",{children:e}),blockquote:({children:e})=>(0,t.jsx)("blockquote",{children:e}),h1:({children:e})=>(0,t.jsx)("h1",{children:e}),h2:({children:e})=>(0,t.jsx)("h2",{children:e}),h3:({children:e})=>(0,t.jsx)("h3",{children:e}),h4:({children:e})=>(0,t.jsx)("h4",{children:e}),h5:({children:e})=>(0,t.jsx)("h5",{children:e}),h6:({children:e})=>(0,t.jsx)("h6",{children:e})},marks:{em:({children:e})=>(0,t.jsx)("em",{children:e}),strong:({children:e})=>(0,t.jsx)("strong",{children:e}),code:({children:e})=>(0,t.jsx)("code",{children:e}),underline:({children:e})=>(0,t.jsx)("span",{style:u,children:e}),"strike-through":({children:e})=>(0,t.jsx)("del",{children:e}),link:({children:e,value:a})=>(0,t.jsx)("a",{href:a?.href,children:e})},list:{number:({children:e})=>(0,t.jsx)("ol",{children:e}),bullet:({children:e})=>(0,t.jsx)("ul",{children:e})},listItem:({children:e})=>(0,t.jsx)("li",{children:e}),hardBreak:()=>(0,t.jsx)("br",{}),unknownType:({value:e,isInline:a})=>{let l=h(e._type);return(0,t.jsx)(a?"span":"div",{style:g,children:l})},unknownMark:({markType:e,children:a})=>(0,t.jsx)("span",{className:`unknown__pt__mark__${e}`,children:a}),unknownList:({children:e})=>(0,t.jsx)("ul",{children:e}),unknownListItem:({children:e})=>(0,t.jsx)("li",{children:e}),unknownBlockStyle:({children:e})=>(0,t.jsx)("p",{children:e})};function b(e,t,a){let l=t[a],s=e[a];return"function"==typeof l||l&&"function"==typeof s?l:l?{...s,...l}:s}function k(e){let{node:t,index:l,isInline:s,renderNode:r}=e,n=(function(e){let{children:t}=e,l=e.markDefs??[];if(!t||!t.length)return[];let s=t.map(d),r={_type:"@span",children:[],markType:"<unknown>"},n=[r];for(let e=0;e<t.length;e++){let r=t[e];if(!r)continue;let i=s[e]||[],o=1;if(n.length>1)for(;o<n.length;o++){let e=n[o]?.markKey||"",t=i.indexOf(e);if(-1===t)break;i.splice(t,1)}let d=(n=n.slice(0,o))[n.length-1];if(d){for(let e of i){let t=l?.find(t=>t._key===e),a={_type:"@span",_key:r._key,children:[],markDef:t,markType:t?t._type:e,markKey:e};d.children.push(a),n.push(a),d=a}if(a(r)){let e=r.text.split("\n");for(let t=e.length;t-- >1;)e.splice(t,0,"\n");d.children=d.children.concat(e.map(e=>({_type:"@text",text:e})))}else d.children=d.children.concat(r)}}return r.children})(t).map((e,t)=>r({node:e,isInline:!0,index:t,renderNode:r}));return{_key:t._key||`block-${l}`,children:n,index:l,isInline:s,node:t}}function j(){}e.s(["PortableText",0,function({value:e,components:a,listNestingMode:o,onMissingComponent:d=f}){let u=d||j,g=function(e,t){let a=[],l;for(let i=0;i<e.length;i++){let o=e[i];if(o){var r,n;if(!s(o)){a.push(o),l=void 0;continue}if(!l){l=c(o,i,t),a.push(l);continue}if(r=o,n=l,(r.level||1)===n.level&&r.listItem===n.listItem){l.children.push(o);continue}if((o.level||1)>l.level){let e=c(o,i,t);if("html"===t){let t=l.children[l.children.length-1],a={...t,children:[...t.children,e]};l.children[l.children.length-1]=a}else l.children.push(e);l=e;continue}if((o.level||1)<l.level){let e=a[a.length-1],s=e&&m(e,o);if(s){(l=s).children.push(o);continue}l=c(o,i,t),a.push(l);continue}if(o.listItem!==l.listItem){let e=a[a.length-1],s=e&&m(e,{level:o.level||1});if(s&&s.listItem===o.listItem){(l=s).children.push(o);continue}l=c(o,i,t),a.push(l);continue}console.warn("Unknown state encountered for block",o),a.push(o)}}return a}(Array.isArray(e)?e:null==e?[]:[e],o||"html"),w=(0,p.useMemo)(()=>a?function(e,t){let{block:a,list:l,listItem:s,marks:r,types:n,...i}=t;return{...e,block:b(e,t,"block"),list:b(e,t,"list"),listItem:b(e,t,"listItem"),marks:b(e,t,"marks"),types:b(e,t,"types"),...i}}(y,a):y,[a]),v=(0,p.useMemo)(()=>{var e,a;return e=w,a=u,function o(d){var c,m,p,u,f,g,y,b;let j,w,{node:v,index:N,isInline:$}=d,_=v._key||`node-${N}`;return r(v)?function(l,s,r){let n=l.children.map((e,t)=>o({node:e._key?e:{...e,_key:`li-${s}-${t}`},index:t,isInline:!1,renderNode:o})),i=e.list,d=("function"==typeof i?i:i[l.listItem])||e.unknownList;if(d===e.unknownList){let e=l.listItem||"bullet";a(x(`list style "${e}"`,"list"),{nodeType:"listStyle",type:e})}return(0,t.jsx)(d,{value:l,index:s,isInline:!1,renderNode:o,children:n},r)}(v,N,_):s(v)?function(l,s,r){let n=k({node:l,index:s,isInline:!1,renderNode:o}),i=e.listItem,d=("function"==typeof i?i:i[l.listItem])||e.unknownListItem;if(d===e.unknownListItem){let e=l.listItem||"bullet";a(x(`list item style "${e}"`,"listItem"),{type:e,nodeType:"listItemStyle"})}let c=n.children;if(l.style&&"normal"!==l.style){let{listItem:e,...t}=l;c=o({node:t,index:s,isInline:!1,renderNode:o})}return(0,t.jsx)(d,{value:l,index:s,isInline:!1,renderNode:o,children:c},r)}(v,N,_):n(v)?function(l,s){let{markDef:r,markType:d,markKey:c}=l,m=e.marks[d]||e.unknownMark,p=l.children.map((e,t)=>o({node:e,index:t,isInline:!0,renderNode:o}));return m===e.unknownMark&&a(x(`mark type "${d}"`,"marks"),{nodeType:"mark",type:d}),(0,t.jsx)(m,{text:function e(t){let a="";
1return t.children.forEach(t=>{i(t)?a+=t.text:n(t)&&(a+=e(t))}),a}(l),value:r,markType:d,markKey:c,renderNode:o,children:p},s)}(v,_):v._type in e.types?(c=v,m=N,p=_,u=$,(j=e.types[c._type])?(0,t.jsx)(j,{value:c,isInline:u,index:m,renderNode:o},p):null):l(v)?function(l,s,r,n){let{_key:i,...d}=k({node:l,index:s,isInline:n,renderNode:o}),c=d.node.style||"normal",m=("function"==typeof e.block?e.block:e.block[c])||e.unknownBlockStyle;return m===e.unknownBlockStyle&&a(x(`block style "${c}"`,"block"),{nodeType:"blockStyle",type:c}),(0,t.jsx)(m,{...d,value:d.node,renderNode:o},r)}(v,N,_,$):i(v)?function(a,l){if("\n"===a.text){let a=e.hardBreak;return a?(0,t.jsx)(a,{},l):"\n"}return a.text}(v,_):(f=v,g=N,y=_,b=$,a(h(f._type),{nodeType:"block",type:f._type}),w=e.unknownType,(0,t.jsx)(w,{value:f,isInline:b,index:g,renderNode:o},y))}},[w,u]);return(0,t.jsx)(t.Fragment,{children:g.map((e,t)=>v({node:e,index:t,isInline:!1,renderNode:v}))})}],43343)}]);
2
3//# sourceMappingURL=1p-yj8sg8lt-o.js.map

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.