import{o as _,I as w,b as c}from"./BQrEQjFg.mjs";import"./E-vkuI0X.mjs";import{i as M}from"./DoxTZSDF.mjs";import{c as I,o as k,e as f}from"./DC2aKjHe.mjs";import{p as z,h as C,i as E,e as S,f as X,c as u,r as x,b as y,d as B,g as d,m as P,s as q}from"./4Xd67fio.mjs";import{s as D}from"./MDPyFyai.mjs";import{t as H,q as N}from"./BTt3VLuJ.mjs";import{b as O}from"./BWNaq0CP.mjs";import{p as i}from"./B7xFKswI.mjs";function V(o){throw new Error(`unreachable: ${o}`)}function W(...o){return()=>{for(const t of o)t()}}function Y(o){let t=!1;function n(s){t=s}const r=_(document,"keydown",s=>{s.key==="Escape"&&t&&(s.stopImmediatePropagation(),o&&o())},{capture:!0});return{set:n,remove:r}}var R=C('<button tabindex="-1"><!></button>');function Z(o,t){z(t,!1);let n=i(t,"class",8,""),r=i(t,"tooltip",8,void 0),s=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=E(a);w(g,{get iconSize(){return s()},get widthMultiplier(){return p()},get flipX(){return h()},children:(e,U)=>{var m=S(),v=X(m);D(v,t,"default",{}),u(e,m)},$$slots:{default:!0}}),x(a),O(a,e=>q(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(o,a),B()}export{Z as B,V as a,Y as r,W as s};
