import{W as e,N as s}from"./index-82df5684.js";export default class extends e{init(){this.props.min=s(0),this.props.max=s(100),this.props.value=s(100),super.init()}connected(){super.connected(),this.apply()}changed(e,s){super.changed(e,s),this.isConnected&&this.apply()}apply(){let{min:e,max:s,value:t,host:i}=this;e>s&&(s=e),t>s?t=s:t<e&&(t=e);const a=(t-e)/(s-e);i.style.setProperty("--nu-value",String(Number(a.toFixed(4)))),this.setAria("valuemin",e),this.setAria("valuemax",s),this.setAria("valuenow",t)}fromHostValue(e,s){this.value=e,this.apply()}}
