try{let 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]=`4d15ede6-8f91-4b50-8a25-96bbd0ffa8bd`,e._sentryDebugIdIdentifier=`sentry-dbid-4d15ede6-8f91-4b50-8a25-96bbd0ffa8bd`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Af as t,Ag as n,Dg as r,Fg as i,Ig as a,Og as o,Sf as s,Wn as c,lh as l,sh as u}from"./entry.client-dr7r6s9a.js";import{Bn as d,Vn as f,zn as p}from"./xds-icons-d7khcnpi.js";var m=i(),h={[s.None]:void 0,[s.Controller]:f,[s.MKB]:d,[s.SimulateMKB]:d,[s.NativeTouch]:p,[s.CustomTouchOverlay]:p,[s.GenericTouch]:p,[s.NativeTouchOrCustomTouchOverlay]:p,[s.Caccsc]:f,[s.Caccsg]:void 0},g=e(a(),1),_=n(),v=(e,t,n,r,i)=>{let a=e.map(e=>({icon:n[e],iconType:n[e]?.displayName||e.toString(),ariaLabel:r&&r[e]?r[e]:void 0})).filter(e=>e.icon!==void 0);return[...new Map(a.map(e=>[e.icon,e])).values()].map(e=>{let n=e.icon;return n?(0,_.jsx)(c,{icon:(0,_.jsx)(n,{}),id:`${t}-${e.iconType}`,size:`subtitle2`,ariaLabel:e.ariaLabel?e.ariaLabel():void 0,...i},`${t}-${e.iconType}`):null}).filter(e=>e!==null)},y=()=>{let{t:e}=l(`Badging`);return{locInputTypesAriaLabels:(0,g.useMemo)(()=>{let t=()=>e(`Play with controller`,{shortKey:`controller_input_aria_label`}),n=()=>e(`Play with mouse and keyboard`,{shortKey:`mkb_input_aria_label`}),r=()=>e(`Play with touch`,{shortKey:`touch_input_aria_label`}),i=()=>e(`caccs input`,{shortKey:`caccs_input_aria_label`});return{[s.None]:void 0,[s.Controller]:t,[s.MKB]:n,[s.SimulateMKB]:n,[s.NativeTouch]:r,[s.CustomTouchOverlay]:r,[s.GenericTouch]:r,[s.NativeTouchOrCustomTouchOverlay]:r,[s.Caccsc]:i,[s.Caccsg]:void 0}},[e])}},b=e=>{let t=(0,m.c)(27),{id:n,alternateIdType:i,iconProps:a,filterByDeviceCapabilities:s}=e,c=s===void 0?!1:s,{catalog:l,capabilities:d}=u(),{queries:f}=l,{locInputTypesAriaLabels:p}=y(),g;t[0]===d.queries.supportedInput?g=t[1]:(g=d.queries.supportedInput.getOptions(),t[0]=d.queries.supportedInput,t[1]=g);let _;t[2]!==g||t[3]!==c?(_={...g,enabled:c},t[2]=g,t[3]=c,t[4]=_):_=t[4];let{data:b}=r(_),S;t[5]!==n||t[6]!==f.productInfo.basic?(S=f.productInfo.basic.getOptions({productId:n}),t[5]=n,t[6]=f.productInfo.basic,t[7]=S):S=t[7];let C=!i,w;t[8]!==S||t[9]!==C?(w={...S,enabled:C},t[8]=S,t[9]=C,t[10]=w):w=t[10];let T;t[11]!==i||t[12]!==n||t[13]!==f.productInfosByAlternateId.basic?(T=f.productInfosByAlternateId.basic.getOptions({id:n,idType:i}),t[11]=i,t[12]=n,t[13]=f.productInfosByAlternateId.basic,t[14]=T):T=t[14];let E=!!i,D;t[15]!==T||t[16]!==E?(D={...T,enabled:E},t[15]=T,t[16]=E,t[17]=D):D=t[17];let O;t[18]!==w||t[19]!==D?(O={queries:[w,D]},t[18]=w,t[19]=D,t[20]=O):O=t[20];let[k,A]=o(O),{data:j}=k,{data:M}=A,N=i?M?.[0]:j,P;return t[21]!==N||t[22]!==b||t[23]!==n||t[24]!==p||t[25]!==a?(P=v(x(N,b),n,h,p,a),t[21]=N,t[22]=b,t[23]=n,t[24]=p,t[25]=a,t[26]=P):P=t[26],P},x=(e,n)=>{if(!e)return[];let r=[];return(!n||n.supportsController)&&t(s.Controller,e)&&r.push(s.Controller),(!n||n.supportsTouch)&&t(s.NativeTouch|s.CustomTouchOverlay|s.GenericTouch|s.NativeTouchOrCustomTouchOverlay,e)&&r.push(s.NativeTouch),(!n||n.supportsMouseAndKeyboard)&&t(s.MKB|s.SimulateMKB,e)&&r.push(s.MKB),t(s.Caccsc|s.Caccsg,e)&&r.push(s.Caccsc),r};export{h as a,v as i,b as n,y as r,x as t};