import{Ir as e}from"./i18n-CsN8OUP9.js";import{a as t,d as n}from"./registry-CwOJ4xqK.js";var r=`hermes.desktop.hapticsMuted`,i=e(n(r,!1));i.subscribe(e=>t(r,e));function a(){i.set(!i.get())}var o=[{duration:16,intensity:.52}],s=[{duration:10,intensity:.92}],c=[{duration:28,intensity:.5},{delay:42,duration:30,intensity:.68},{delay:48,duration:38,intensity:.86}],l={cancel:{pattern:[{duration:34,intensity:.72},{delay:54,duration:26,intensity:.38}]},close:{pattern:[{duration:22,intensity:.58},{delay:32,duration:16,intensity:.34}]},crisp:{pattern:s},error:{pattern:[{duration:34,intensity:.82},{delay:42,duration:34,intensity:.72},{delay:58,duration:44,intensity:.86}]},open:{pattern:[{duration:18,intensity:.42},{delay:36,duration:22,intensity:.66}]},selection:{pattern:o},streamDone:{pattern:c},streamStart:{pattern:[{duration:10,intensity:.32}]},submit:{pattern:[{duration:24,intensity:.58},{delay:48,duration:36,intensity:.82}]},success:{pattern:c},tap:{pattern:[{duration:14,intensity:.58},{delay:30,duration:12,intensity:.42}]},warning:{pattern:[{duration:34,intensity:.64},{delay:84,duration:42,intensity:.5}]}},u=null,d=0,f=1e3,p=5,m=[];function h(e){u=e}function g(e=`selection`){if(i.get()||!u)return;let t=performance.now();if(e===`selection`){if(t-d<50)return;d=t}if(m=m.filter(e=>t-e<f),m.length>=p)return;m.push(t);let n=l[e];u(n.pattern,n.options)?.catch(()=>void 0)}export{a as i,g as n,i as r,h as t};