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]=`43f87bbd-cc29-4b3c-a05b-ba895dc5b49b`,e._sentryDebugIdIdentifier=`sentry-dbid-43f87bbd-cc29-4b3c-a05b-ba895dc5b49b`)}catch{}import{am as e,om as t}from"./entry.client-mpghtlrl.js";import{Gt as n,Wt as r}from"./workspace-leaf-files-oergw4h0.js";var i=[{vendorId:t.Sony,productId:e.ThirdParty.DualSense,model:n.DualSense,type:r.PlayStation},{vendorId:t.Sony,productId:e.ThirdParty.DualShock4v1,model:n.DualShock4,type:r.PlayStation},{vendorId:t.Sony,productId:e.ThirdParty.DualShock4v2,model:n.DualShock4,type:r.PlayStation},{vendorId:t.Microsoft,productId:e.MSFT.Delphi,model:n.Xbox,type:r.Xbox},{vendorId:t.Microsoft,productId:e.MSFT.DelphiBluetoothClassic,model:n.Xbox,type:r.Xbox},{vendorId:t.Microsoft,productId:e.MSFT.DelphiBluetoothLE,model:n.Xbox,type:r.Xbox},{vendorId:t.Microsoft,productId:e.MSFT.Zephyrus,model:n.Xbox,type:r.Xbox},{vendorId:t.Microsoft,productId:e.MSFT.ZephyrusBluetoothClassic,model:n.Xbox,type:r.Xbox},{vendorId:t.Microsoft,productId:e.MSFT.ZephyrusBluetoothLE,model:n.Xbox,type:r.Xbox},{vendorId:t.Microsoft,productId:e.MSFT.Merlin,model:n.Xbox,type:r.Xbox},{vendorId:t.Microsoft,productId:e.MSFT.MerlinBT,model:n.Xbox,type:r.Xbox},{vendorId:t.Microsoft,model:n.Xbox,type:r.Xbox},{vendorId:t.Google,productId:e.ThirdParty.Stadia,model:n.Stadia,type:r.Other},{vendorId:t.Nintendo,productId:e.ThirdParty.SwitchPro,model:n.SwitchPro,type:r.Other},{vendorId:t.Amazon,productId:e.ThirdParty.Luna,model:n.Luna,type:r.Luna}].reduce((e,t)=>{let{vendorId:n,productId:r}=t;e[n]||(e[n]={});let i=r??`default`;return e[n][i]=t,e},{}),a=/Vendor:\s*([0-9a-fA-F]+)/,o=/Product:\s*([0-9a-fA-F]+)/,s=e=>c(d(e)),c=e=>{if(e)return l(u(a,e),u(o,e))},l=(e,t)=>{if(!e)return;let n=parseInt(e??`0`,16),r=parseInt(t??`0`,16),a=i[n];if(a)return a[r]||a.default},u=(e,t)=>t?t.match(e)?.[1]:void 0,d=e=>{let t;return t=typeof e==`number`?(globalThis.navigator?.getGamepads?.())?.[e]?.id:e,t};export{o as a,s as i,d as n,a as o,l as r,u as t};