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]=`163138ea-f244-490b-a1b0-add5434bb29e`,e._sentryDebugIdIdentifier=`sentry-dbid-163138ea-f244-490b-a1b0-add5434bb29e`)}catch{}import"./entry.client-dr7r6s9a.js";import{Nt as e,Pt as t}from"./workspace-leaf-files-mc5sghv7.js";var n=[{vendorId:1356,productId:3302,model:t.DualSense,type:e.PlayStation},{vendorId:1356,productId:1476,model:t.DualShock4,type:e.PlayStation},{vendorId:1356,productId:2508,model:t.DualShock4,type:e.PlayStation},{vendorId:1118,model:t.Xbox,type:e.Xbox},{vendorId:6353,productId:37888,model:t.Stadia,type:e.Other},{vendorId:1406,productId:8201,model:t.SwitchPro,type:e.Other},{vendorId:369,productId:1049,model:t.Luna,type:e.Luna}].reduce((e,t)=>{let{vendorId:n,productId:r}=t;e[n]||(e[n]={});let i=r??`default`;return e[n][i]=t,e},{}),r=/Vendor:\s*([0-9a-fA-F]+)/,i=/Product:\s*([0-9a-fA-F]+)/,a=e=>o(l(e)),o=e=>{if(e)return s(c(r,e),c(i,e))},s=(e,t)=>{if(!e)return;let r=parseInt(e??`0`,16),i=parseInt(t??`0`,16),a=n[r];if(a)return a[i]||a.default},c=(e,t)=>t?t.match(e)?.[1]:void 0,l=e=>{let t;return t=typeof e==`number`?(globalThis.navigator?.getGamepads?.())?.[e]?.id:e,t};export{i as a,a as i,l as n,r as o,s as r,c as t};