1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`metacritic.prod.2e6d86`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`506d9214-8224-4a88-b69e-55c26e39b173`,e._sentryDebugIdIdentifier=`sentry-dbid-506d9214-8224-4a88-b69e-55c26e39b173`)})()}catch{}import{E as e,En as t,Zn as n,_ as r,b as i,g as a,k as o,mt as s,qt as c,tr as l,v as u,xt as d,y as f}from"./CZe-j-N0.js";import{i as p}from"./sorS0mm7.js";import{i as m}from"./BtiU5QTW.js";import{c as h,i as g,l as _,o as v,r as y,t as b}from"./Cg-l1WsR.js";import{n as x}from"./BwIsuTXC.js";import{t as S}from"./BYpISIiH.js";var C=Object.assign(o({__name:`GlobalScoreHeader`,props:{scoreType:{default:()=>h.CRITIC},allPetiteCaps:{type:Boolean,default:!1}},setup(e){let{t}=x(),r=a(()=>e.scoreType===h.CRITIC?t(`scores.meta_score`):t(`scores.user_score`));return(t,a)=>(s(),i(`div`,{class:n([`w-full text-start uppercase`,{"text-all-petite-caps":e.allPetiteCaps}]),"data-testid":`global-score-header`},l(r.value),3))}}),{__name:`GlobalScoreHeader`}),w={key:0,class:`font-bold text-gray-900`,"data-testid":`global-score-sentiment`},T=Object.assign(o({__name:`GlobalScoreSentiment`,props:{formattedSentiment:{}},setup(e){return(t,n)=>e.formattedSentiment?(s(),i(`div`,w,l(e.formattedSentiment),1)):f(``,!0)}}),{__name:`GlobalScoreSentiment`}),E={key:1},D=Object.assign(o({__name:`GlobalScoreReviewCount`,props:{formattedReviewCount:{},url:{},showLink:{type:Boolean,default:!0},linkUnderline:{type:Boolean,default:!0},largeText:{type:Boolean,default:!1}},setup(t){return(r,a)=>{let o=S;return t.formattedReviewCount?(s(),i(`div`,{key:0,class:n([t.largeText?`text-sm/5 md:text-base/5`:`text-sm/5`,`text-gray-900`]),"data-testid":`global-score-review-count`},[t.showLink&&t.url?(s(),u(o,{key:0,"data-testid":`global-score-review-count-link`,to:t.url,class:n([`transition-colors md:hover:text-gray-700`,t.linkUnderline?`underline decoration-gray-800 md:hover:decoration-gray-400`:`no-underline decoration-gray-400 hover:underline hover:decoration-gray-400`])},{default:c(()=>[e(l(t.formattedReviewCount),1)]),_:1},8,[`to`,`class`])):(s(),i(`span`,E,l(t.formattedReviewCount),1))],2)):f(``,!0)}}}),{__name:`GlobalScoreReviewCount`}),O={class:`flex flex-col justify-between items-start`},k={key:0,class:`leading-none`},A=Object.assign(o({__name:`GlobalScoreWrapper`,props:{stretch:{type:Boolean,default:!1},noContentSpacing:{type:Boolean,default:!1}},setup(e){return(t,a)=>(s(),i(`div`,{class:n([`flex items-stretch gap-4`,{"justify-between":e.stretch}]),"data-testid":`global-score-wrapper`},[r(`div`,O,[t.$slots.header?(s(),i(`div`,k,[d(t.$slots,`header`)])):f(``,!0),r(`div`,{class:n([`flex flex-col`,e.noContentSpacing?``:`gap-1`])},[d(t.$slots,`content`)],2)]),r(`div`,{class:n([`flex items-center justify-center gap-6 md:gap-3`,[e.stretch?`self-stretch`:`self-start`]])},[d(t.$slots,`score`)],2)],2))}}),{__name:`GlobalScoreWrapper`}),j=15,M=e=>{let{t:n}=x(),r=a(()=>t(e.score)??null),i=a(()=>t(e.reviewCount)),o=a(()=>i.value??0),s=a(()=>t(e.sentiment)??null),c=a(()=>t(e.scoreType)),l=a(()=>t(e.productType)),u=a(()=>t(e.isReleased)),d=a(()=>t(e.isGame)??!1),f=a(()=>t(e.showReviewCountOnNoScore)??!0),S=a(()=>c.value===h.USER),C=a(()=>r.value==null||y(r.value)?!0:o.value<4),w=a(()=>o.value>=4),T=a(()=>{if(C.value||r.value==null)return p.TBD;let e=b(r.value,d.value,S.value);return e===_.POSITIVE?p.POSITIVE:e===_.NEUTRAL?p.MIXED:e===_.NEGATIVE?p.NEGATIVE:p.TBD}),E=a(()=>r.value==null?``:S.value?r.value.toFixed(1):Math.round(r.value).toString()),D=a(()=>s.value?s.value.split(` `).map(e=>{let t=e.toLowerCase();return t===`or`?t:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}).join(` `):``),O=a(()=>{if(r.value==null||Number.isNaN(r.value))return null;let e=S.value?v:g,t=l.value===m.Game?`games`:`media`,n=Object.entries(e).map(([,e])=>({key:e.meaning.split(`.`).pop(),min:e.score[t]})).sort((e,t)=>
1(t.min??0)-(e.min??0)),i=S.value?10:100,a=n.map((e,t)=>{let r=n[t-1],a=t===0?i:Number.parseFloat(((r?.min??0)-.001).toFixed(3));return{...e,max:a}}),o=r.value;return o==null?null:a.find(e=>o>=(e.min??0)&&o<=e.max)?.key??null}),k=a(()=>w.value?D.value?D.value:O.value?n(`ratings.${O.value}`):``:``),A=a(()=>o.value===0?`0`:new Intl.NumberFormat(`en-us`,{notation:`standard`}).format(o.value)),M=a(()=>Math.max(0,4-o.value)),N=a(()=>C.value&&o.value>=4&&!S.value?!0:C.value||!f.value&&u.value&&o.value<4?!1:o.value>0),P=a(()=>{if(!N.value)return``;let e=S.value?`based_on_n_user_reviews`:`based_on_n_critic_reviews`;return n(e,o.value,{named:{displayCount:A.value}})}),F=a(()=>w.value||r.value!=null&&y(r.value)&&o.value>=4&&!S.value?``:S.value?u.value?n(`review_user_available_after_ratings`):n(`hero_no_user_reviews`):i.value==null?n(`profile_no_critic_reviews`):n(`review_critic_available`,{count:4})),I=a(()=>{if(C.value||S.value||r.value==null||o.value<j)return!1;let e=d.value?`games`:`media`;return r.value>=g.acclaim.score[e]});return{isTbd:C,hasEnoughReviews:w,scoreColor:T,formattedScore:E,formattedSentiment:D,scoreBucketKey:O,sentimentLabel:k,formattedReviewCount:A,reviewCountLabel:P,remainingReviews:M,showCounter:N,infoMessage:F,showAwardBadge:I,awardBadgeName:a(()=>I.value?l.value===m.Game?`must-play`:l.value===m.Tv?`must-watch`:`must-see`:``)}};export{C as a,T as i,A as n,D as r,M as t};
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.