import{o as _,I as w,b as c}from"./Cjp1zspE.mjs";import"./E-vkuI0X.mjs";import{i as M}from"./DE12Pz0s.mjs";import{c as I,o as k,e as f}from"./iXLj1DaW.mjs";import{p as z,h as C,e as E,f as S,c as u,r as X,s as x,g as d,b as y,d as B,m as P,j}from"./DXA5xaTu.mjs";import{s as D}from"./CG0ncoKB.mjs";import{t as H,s as N}from"./CrCfjO1_.mjs";import{b as O}from"./jRtslhus.mjs";import{p as i}from"./DZ_x5TWR.mjs";function V(s){throw new Error(`unreachable: ${s}`)}function W(...s){return()=>{for(const t of s)t()}}function Y(s){let t=!1;function n(o){t=o}const r=_(document,"keydown",o=>{o.key==="Escape"&&t&&(o.stopImmediatePropagation(),s&&s())},{capture:!0});return{set:n,remove:r}}var R=j('<button tabindex="-1"><!></button>');function Z(s,t){z(t,!1);let n=i(t,"class",8,""),r=i(t,"tooltip",8,void 0),o=i(t,"iconSize",8,100),p=i(t,"widthMultiplier",8,1),h=i(t,"flipX",8,!1);const b=I();let l=P();k(()=>{b("mount",{span:d(l)})}),M();var a=R(),g=C(a);w(g,{get iconSize(){return o()},get widthMultiplier(){return p()},get flipX(){return h()},children:(e,U)=>{var m=E(),v=S(m);D(v,t,"default",{}),u(e,m)},$$slots:{default:!0}}),X(a),O(a,e=>x(l,e),()=>d(l)),y(()=>{var e;H(a,"title",r()),N(a,1,`badge ${(e=n())!=null?e:""}`,"svelte-1fmrmgo")}),f("click",a,function(e){c.call(this,t,e)}),f("mouseenter",a,function(e){c.call(this,t,e)}),f("mouseleave",a,function(e){c.call(this,t,e)}),u(s,a),B()}export{Z as B,V as a,Y as r,W as s};
