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]=`23eacfca-1b6a-4b27-bd24-e6cb815f8552`,e._sentryDebugIdIdentifier=`sentry-dbid-23eacfca-1b6a-4b27-bd24-e6cb815f8552`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Fg as t,Ig as n,pg as r}from"./entry.client-dr7r6s9a.js";import{r as i}from"./hooks-e2ql4s1e.js";var a=t(),o=e(n(),1),s=`SettingInputTab`;function c(e,t){let n=e(`Alt`,{ns:s,shortKey:`alt_2098c2`}),r=e(`Down`,{ns:s,shortKey:`down_2098c2`}),i=e(`Left`,{ns:s,shortKey:`left_2098c2`}),a=e(`Right`,{ns:s,shortKey:`right_2098c2`}),o=e(`Up`,{ns:s,shortKey:`up_key_2098c2`}),c=e(`Backspace`,{ns:s,shortKey:`backspace_37e0fb`}),l=e(`Caps Lock`,{ns:s,shortKey:`caps_lock_151973`}),u=e(`Ctrl`,{ns:s,shortKey:`ctrl_20368b`}),d=e(`Delete`,{ns:s,shortKey:`delete_79cb71`}),f=e(`End`,{ns:s,shortKey:`end_key_2098c2`}),p=e(`Enter`,{ns:s,shortKey:`enter_40016b`}),m=e(`Home`,{ns:s,shortKey:`home_2268ff`}),h=e(`Insert`,{ns:s,shortKey:`insert_7d2a51`}),g=e(`Num Lock`,{ns:s,shortKey:`lock_num_7043da`}),_=e(`Page Down`,{ns:s,shortKey:`page_down_576c78`}),v=e(`Page up`,{ns:s,shortKey:`page_33527d`}),y=e(`Pause`,{ns:s,shortKey:`pause_49535d`}),b=e(`Print Screen`,{ns:s,shortKey:`print_screen_4f9dfd`}),x=e(`Scroll Lock`,{ns:s,shortKey:`scroll_lock_4f9dfd`}),S=e(`Shift`,{ns:s,shortKey:`shift_2098c2`}),C=e(`Space`,{ns:s,shortKey:`space_2098c2`}),w=e(`Tab`,{ns:s,shortKey:`tab_2098c2`});return new Map([[`Alt`,n],[`ArrowDown`,r],[`ArrowLeft`,i],[`ArrowRight`,a],[`ArrowUp`,o],[`Backspace`,c],[`CapsLock`,l],[`Ctrl`,u],[`Control`,u],[`Delete`,d],[`End`,f],[`Enter`,p],[`Home`,m],[`Insert`,h],[`NumLock`,g],[`PageDown`,_],[`PageUp`,v],[`Pause`,y],[`PrintScreen`,b],[`ScrollLock`,x],[`Shift`,S],[`Space`,C],[` `,C],[`Tab`,w]])}var l=()=>{let e=(0,a.c)(6),t=i(`KeyboardDisplayStrings`,c),n,s;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=new r(`useGetKeyboardDisplayString`),e[0]=s):s=e[0],n=s;let l=n,[u,d]=(0,o.useState)(),f,p;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>{globalThis.navigator.keyboard&&globalThis.navigator.keyboard.getLayoutMap().then(e=>d(e)).catch(e=>{l.error(`Failed to get keyboard layout map`,e)})},p=[l],e[1]=f,e[2]=p):(f=e[1],p=e[2]),(0,o.useEffect)(f,p);let m;return e[3]!==t||e[4]!==u?(m=(e,n)=>{let r=t.get(e);if(r)return r;if(n&&u){let e=u.get(n);if(e)return e.toUpperCase()}return e.toUpperCase()},e[3]=t,e[4]=u,e[5]=m):m=e[5],m};function u(e){let t=(0,a.c)(13),n=l();if(!e)return``;let r;if(t[0]!==e||t[1]!==n){r=[];let{shiftPressed:i,controlPressed:a,altPressed:o,key:s,code:c}=e;if(a){let e;t[3]===n?e=t[4]:(e=n(`Ctrl`),t[3]=n,t[4]=e),r.push(e)}if(o){let e;t[5]===n?e=t[6]:(e=n(`Alt`),t[5]=n,t[6]=e),r.push(e)}if(i){let e;t[7]===n?e=t[8]:(e=n(`Shift`),t[7]=n,t[8]=e),r.push(e)}let l;t[9]!==n||t[10]!==s||t[11]!==c?(l=n(s,c),t[9]=n,t[10]=s,t[11]=c,t[12]=l):l=t[12],r.push(l),t[0]=e,t[1]=n,t[2]=r}else r=t[2];return r.join(` + `)}export{l as n,u as t};