import{d as ue,c as St,a as Je,o as ct,q as d,I as i,K as z,J as b,L as ze,aM as Ct,ad as Fe,M as ee,bw as zt,m as I,P as se,Q as $e,bx as Bt,aF as Qe,Y as de,by as It,b as P,A as Ze,ae as qe,u as pe,w as Ge,a0 as Tt,bz as $t,$ as Xe,N as et,bA as tt,ag as K,a5 as Me,e as Ce,ah as Nt,ai as Dt,U as y,X as nt,bB as Mt,at as Ft,au as _t,av as Pt,aw as Ye,T as At,bC as Ot,g as Ht,aC as Ut,j as Ne,W as ot,aj as rt,bD as Ee,ak as Et,Z as jt,bE as Lt,C as je,B as ae,be as Wt,bg as Kt,bo as Gt,bi as ie,bj as j,bh as le,bm as De,bl as Le,bu as Xt,bp as Yt}from"./index-TSX_w_F2.js";import{a as Zt,u as qt,A as Jt,b as Qt}from"./Space-zbRYG9K6.js";import"./replaceable-BbwpPSxY.js";const en={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},tn=ue({name:"TextFontSize24Regular",render:function(a,f){return ct(),St("svg",en,f[0]||(f[0]=[Je("g",{fill:"none"},[Je("path",{d:"M10.212 17.11L15.043 3.5c.223-.627 1.07-.664 1.365-.111l.049.11l5.5 15.5a.75.75 0 0 1-1.373.596l-.04-.094L18.945 15h-6.394l-1.58 4.452a.75.75 0 0 1-.354.452l-.093.044a.75.75 0 0 1-.929-.33l-.044-.092L8.556 17H4.443l-.995 2.52a.75.75 0 0 1-.876.454l-.098-.031a.75.75 0 0 1-.452-.876l.03-.098l3.754-9.495c.236-.595 1.043-.63 1.345-.104l.05.105l3.011 7.635L15.043 3.5l-4.831 13.61zm-3.71-5.318L5.037 15.5h2.928l-1.461-3.708zm9.248-5.8L13.084 13.5h5.33L15.75 5.992z",fill:"currentColor"})],-1)]))}}),nn=ue({name:"Remove",render(){return d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},d("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:`
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 32px;
      `}))}}),on=i("input-group",`
 display: inline-flex;
 width: 100%;
 flex-wrap: nowrap;
 vertical-align: bottom;
`,[z(">",[i("input",[z("&:not(:last-child)",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `),z("&:not(:first-child)",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 margin-left: -1px!important;
 `)]),i("button",[z("&:not(:last-child)",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `,[b("state-border, border",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `)]),z("&:not(:first-child)",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `,[b("state-border, border",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `)])]),z("*",[z("&:not(:last-child)",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `,[z(">",[i("input",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `),i("base-selection",[i("base-selection-label",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `),i("base-selection-tags",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `),b("box-shadow, border, state-border",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `)])])]),z("&:not(:first-child)",`
 margin-left: -1px!important;
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `,[z(">",[i("input",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `),i("base-selection",[i("base-selection-label",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `),i("base-selection-tags",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `),b("box-shadow, border, state-border",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `)])])])])])]),rn={},an=ue({name:"InputGroup",props:rn,setup(e){const{mergedClsPrefixRef:a}=ze(e);return Ct("-input-group",on,a),{mergedClsPrefix:a}},render(){const{mergedClsPrefix:e}=this;return d("div",{class:`${e}-input-group`},this.$slots)}}),ln=i("input-group-label",`
 position: relative;
 user-select: none;
 -webkit-user-select: none;
 box-sizing: border-box;
 padding: 0 12px;
 display: inline-block;
 border-radius: var(--n-border-radius);
 background-color: var(--n-group-label-color);
 color: var(--n-group-label-text-color);
 font-size: var(--n-font-size);
 line-height: var(--n-height);
 height: var(--n-height);
 flex-shrink: 0;
 white-space: nowrap;
 transition: 
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
`,[b("border",`
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 border-radius: inherit;
 border: var(--n-group-label-border);
 transition: border-color .3s var(--n-bezier);
 `)]),sn=Object.assign(Object.assign({},ee.props),{size:String,bordered:{type:Boolean,default:void 0}}),at=ue({name:"InputGroupLabel",props:sn,setup(e){const{mergedBorderedRef:a,mergedClsPrefixRef:f,inlineThemeDisabled:p}=ze(e),u=Fe(e),{mergedSizeRef:l}=u,m=ee("Input","-input-group-label",ln,zt,e,f),k=I(()=>{const{value:B}=l,{common:{cubicBezierEaseInOut:S},self:{groupLabelColor:U,borderRadius:w,groupLabelTextColor:$,lineHeight:D,groupLabelBorder:A,[se("fontSize",B)]:O,[se("height",B)]:C}}=m.value;return{"--n-bezier":S,"--n-group-label-color":U,"--n-group-label-border":A,"--n-border-radius":w,"--n-group-label-text-color":$,"--n-font-size":O,"--n-line-height":D,"--n-height":C}}),T=p?$e("input-group-label",I(()=>{const{value:B}=l;return B[0]}),k,e):void 0;return{mergedClsPrefix:f,mergedBordered:a,cssVars:p?void 0:k,themeClass:T?.themeClass,onRender:T?.onRender}},render(){var e,a,f;const{mergedClsPrefix:p}=this;return(e=this.onRender)===null||e===void 0||e.call(this),d("div",{class:[`${p}-input-group-label`,this.themeClass],style:this.cssVars},(f=(a=this.$slots).default)===null||f===void 0?void 0:f.call(a),this.mergedBordered?d("div",{class:`${p}-input-group-label__border`}):null)}}),dn=i("icon-wrapper",`
 transition:
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
 background-color: var(--n-color);
 display: inline-flex;
 align-items: center;
 justify-content: center;
 color: var(--n-icon-color);
`),un=Object.assign(Object.assign({},ee.props),{size:{type:Number,default:24},borderRadius:{type:Number,default:6},color:String,iconColor:String}),cn=ue({name:"IconWrapper",props:un,setup(e,{slots:a}){const{mergedClsPrefixRef:f,inlineThemeDisabled:p}=ze(e),u=ee("IconWrapper","-icon-wrapper",dn,Bt,e,f),l=I(()=>{const{common:{cubicBezierEaseInOut:k},self:{color:T,iconColor:B}}=u.value;return{"--n-bezier":k,"--n-color":T,"--n-icon-color":B}}),m=p?$e("icon-wrapper",void 0,l,e):void 0;return()=>{const k=Qe(e.size);return m?.onRender(),d("div",{class:[`${f.value}-icon-wrapper`,m?.themeClass.value],style:[l?.value,{height:k,width:k,borderRadius:Qe(e.borderRadius),backgroundColor:e.color,color:e.iconColor}]},a)}}}),fn=z([i("input-number-suffix",`
 display: inline-block;
 margin-right: 10px;
 `),i("input-number-prefix",`
 display: inline-block;
 margin-left: 10px;
 `)]);function hn(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function vn(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e==="-"||e==="-0"}function We(e){return e==null?!0:!Number.isNaN(e)}function it(e,a){return typeof e!="number"?"":a===void 0?String(e):e.toFixed(a)}function Ke(e){if(e===null)return null;if(typeof e=="number")return e;{const a=Number(e);return Number.isNaN(a)?null:a}}const lt=800,st=100,bn=Object.assign(Object.assign({},ee.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),mn=ue({name:"InputNumber",props:bn,slots:Object,setup(e){const{mergedBorderedRef:a,mergedClsPrefixRef:f,mergedRtlRef:p}=ze(e),u=ee("InputNumber","-input-number",fn,It,e,f),{localeRef:l}=qt("InputNumber"),m=Fe(e),{mergedSizeRef:k,mergedDisabledRef:T,mergedStatusRef:B}=m,S=P(null),U=P(null),w=P(null),$=P(e.defaultValue),D=Ze(e,"value"),A=qe(D,$),O=P(""),C=o=>{const s=String(o).split(".")[1];return s?s.length:0},we=o=>{const s=[e.min,e.max,e.step,o].map(v=>v===void 0?0:C(v));return Math.max(...s)},Be=pe(()=>{const{placeholder:o}=e;return o!==void 0?o:l.value.placeholder}),te=pe(()=>{const o=Ke(e.step);return o!==null?o===0?1:Math.abs(o):1}),M=pe(()=>{const o=Ke(e.min);return o!==null?o:null}),ce=pe(()=>{const o=Ke(e.max);return o!==null?o:null}),R=()=>{const{value:o}=A;if(We(o)){const{format:s,precision:v}=e;s?O.value=s(o):o===null||v===void 0||C(o)>v?O.value=it(o,void 0):O.value=it(o,v)}else O.value=String(o)};R();const h=o=>{const{value:s}=A;if(o===s){R();return}const{"onUpdate:value":v,onUpdateValue:x,onChange:W}=e,{nTriggerFormInput:F,nTriggerFormChange:t}=m;W&&K(W,o),x&&K(x,o),v&&K(v,o),$.value=o,F(),t()},V=({offset:o,doUpdateIfValid:s,fixPrecision:v,isInputing:x})=>{const{value:W}=O;if(x&&vn(W))return!1;const F=(e.parse||hn)(W);if(F===null)return s&&h(null),null;if(We(F)){const t=C(F),{precision:n}=e;if(n!==void 0&&n<t&&!v)return!1;let r=Number.parseFloat((F+o).toFixed(n??we(F)));if(We(r)){const{value:c}=ce,{value:g}=M;if(c!==null&&r>c){if(!s||x)return!1;r=c}if(g!==null&&r<g){if(!s||x)return!1;r=g}return e.validator&&!e.validator(r)?!1:(s&&h(r),r)}}return!1},Z=pe(()=>V({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),q=pe(()=>{const{value:o}=A;if(e.validator&&o===null)return!1;const{value:s}=te;return V({offset:-s,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),ne=pe(()=>{const{value:o}=A;if(e.validator&&o===null)return!1;const{value:s}=te;return V({offset:+s,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function be(o){const{onFocus:s}=e,{nTriggerFormFocus:v}=m;s&&K(s,o),v()}function xe(o){var s,v;if(o.target===((s=S.value)===null||s===void 0?void 0:s.wrapperElRef))return;const x=V({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(x!==!1){const t=(v=S.value)===null||v===void 0?void 0:v.inputElRef;t&&(t.value=String(x||"")),A.value===x&&R()}else R();const{onBlur:W}=e,{nTriggerFormBlur:F}=m;W&&K(W,o),F(),Me(()=>{R()})}function Ie(o){const{onClear:s}=e;s&&K(s,o)}function me(){const{value:o}=ne;if(!o){re();return}const{value:s}=A;if(s===null)e.validator||h(fe());else{const{value:v}=te;V({offset:v,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function ge(){const{value:o}=q;if(!o){X();return}const{value:s}=A;if(s===null)e.validator||h(fe());else{const{value:v}=te;V({offset:-v,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const L=be,ye=xe;function fe(){if(e.validator)return null;const{value:o}=M,{value:s}=ce;return o!==null?Math.max(0,o):s!==null?Math.min(0,s):0}function E(o){Ie(o),h(null)}function J(o){var s,v,x;!((s=w.value)===null||s===void 0)&&s.$el.contains(o.target)&&o.preventDefault(),!((v=U.value)===null||v===void 0)&&v.$el.contains(o.target)&&o.preventDefault(),(x=S.value)===null||x===void 0||x.activate()}let G=null,oe=null,he=null;function X(){he&&(window.clearTimeout(he),he=null),G&&(window.clearInterval(G),G=null)}let Y=null;function re(){Y&&(window.clearTimeout(Y),Y=null),oe&&(window.clearInterval(oe),oe=null)}function ke(){X(),he=window.setTimeout(()=>{G=window.setInterval(()=>{ge()},st)},lt),Ce("mouseup",document,X,{once:!0})}function _e(){re(),Y=window.setTimeout(()=>{oe=window.setInterval(()=>{me()},st)},lt),Ce("mouseup",document,re,{once:!0})}const Pe=()=>{oe||me()},Re=()=>{G||ge()};function Ve(o){var s,v;if(o.key==="Enter"){if(o.target===((s=S.value)===null||s===void 0?void 0:s.wrapperElRef))return;V({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((v=S.value)===null||v===void 0||v.deactivate())}else if(o.key==="ArrowUp"){if(!ne.value||e.keyboard.ArrowUp===!1)return;o.preventDefault(),V({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&me()}else if(o.key==="ArrowDown"){if(!q.value||e.keyboard.ArrowDown===!1)return;o.preventDefault(),V({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&ge()}}function Se(o){O.value=o,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&V({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}Ge(A,()=>{R()});const Ae={focus:()=>{var o;return(o=S.value)===null||o===void 0?void 0:o.focus()},blur:()=>{var o;return(o=S.value)===null||o===void 0?void 0:o.blur()},select:()=>{var o;return(o=S.value)===null||o===void 0?void 0:o.select()}},Oe=Tt("InputNumber",p,f);return Object.assign(Object.assign({},Ae),{rtlEnabled:Oe,inputInstRef:S,minusButtonInstRef:U,addButtonInstRef:w,mergedClsPrefix:f,mergedBordered:a,uncontrolledValue:$,mergedValue:A,mergedPlaceholder:Be,displayedValueInvalid:Z,mergedSize:k,mergedDisabled:T,displayedValue:O,addable:ne,minusable:q,mergedStatus:B,handleFocus:L,handleBlur:ye,handleClear:E,handleMouseDown:J,handleAddClick:Pe,handleMinusClick:Re,handleAddMousedown:_e,handleMinusMousedown:ke,handleKeyDown:Ve,handleUpdateDisplayedValue:Se,mergedTheme:u,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:I(()=>{const{self:{iconColorDisabled:o}}=u.value,[s,v,x,W]=$t(o);return{textColorTextDisabled:`rgb(${s}, ${v}, ${x})`,opacityDisabled:`${W}`}})})},render(){const{mergedClsPrefix:e,$slots:a}=this,f=()=>d(tt,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>Xe(a["minus-icon"],()=>[d(et,{clsPrefix:e},{default:()=>d(nn,null)})])}),p=()=>d(tt,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>Xe(a["add-icon"],()=>[d(et,{clsPrefix:e},{default:()=>d(Jt,null)})])});return d("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},d(Zt,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var u;return this.showButton&&this.buttonPlacement==="both"?[f(),de(a.prefix,l=>l?d("span",{class:`${e}-input-number-prefix`},l):null)]:(u=a.prefix)===null||u===void 0?void 0:u.call(a)},suffix:()=>{var u;return this.showButton?[de(a.suffix,l=>l?d("span",{class:`${e}-input-number-suffix`},l):null),this.buttonPlacement==="right"?f():null,p()]:(u=a.suffix)===null||u===void 0?void 0:u.call(a)}}))}}),gn=z([i("slider",`
 display: block;
 padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0;
 position: relative;
 z-index: 0;
 width: 100%;
 cursor: pointer;
 user-select: none;
 -webkit-user-select: none;
 `,[y("reverse",[i("slider-handles",[i("slider-handle-wrapper",`
 transform: translate(50%, -50%);
 `)]),i("slider-dots",[i("slider-dot",`
 transform: translateX(50%, -50%);
 `)]),y("vertical",[i("slider-handles",[i("slider-handle-wrapper",`
 transform: translate(-50%, -50%);
 `)]),i("slider-marks",[i("slider-mark",`
 transform: translateY(calc(-50% + var(--n-dot-height) / 2));
 `)]),i("slider-dots",[i("slider-dot",`
 transform: translateX(-50%) translateY(0);
 `)])])]),y("vertical",`
 box-sizing: content-box;
 padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2);
 width: var(--n-rail-width-vertical);
 height: 100%;
 `,[i("slider-handles",`
 top: calc(var(--n-handle-size) / 2);
 right: 0;
 bottom: calc(var(--n-handle-size) / 2);
 left: 0;
 `,[i("slider-handle-wrapper",`
 top: unset;
 left: 50%;
 transform: translate(-50%, 50%);
 `)]),i("slider-rail",`
 height: 100%;
 `,[b("fill",`
 top: unset;
 right: 0;
 bottom: unset;
 left: 0;
 `)]),y("with-mark",`
 width: var(--n-rail-width-vertical);
 margin: 0 32px 0 8px;
 `),i("slider-marks",`
 top: calc(var(--n-handle-size) / 2);
 right: unset;
 bottom: calc(var(--n-handle-size) / 2);
 left: 22px;
 font-size: var(--n-mark-font-size);
 `,[i("slider-mark",`
 transform: translateY(50%);
 white-space: nowrap;
 `)]),i("slider-dots",`
 top: calc(var(--n-handle-size) / 2);
 right: unset;
 bottom: calc(var(--n-handle-size) / 2);
 left: 50%;
 `,[i("slider-dot",`
 transform: translateX(-50%) translateY(50%);
 `)])]),y("disabled",`
 cursor: not-allowed;
 opacity: var(--n-opacity-disabled);
 `,[i("slider-handle",`
 cursor: not-allowed;
 `)]),y("with-mark",`
 width: 100%;
 margin: 8px 0 32px 0;
 `),z("&:hover",[i("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[b("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),i("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),y("active",[i("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[b("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),i("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),i("slider-marks",`
 position: absolute;
 top: 18px;
 left: calc(var(--n-handle-size) / 2);
 right: calc(var(--n-handle-size) / 2);
 `,[i("slider-mark",`
 position: absolute;
 transform: translateX(-50%);
 white-space: nowrap;
 `)]),i("slider-rail",`
 width: 100%;
 position: relative;
 height: var(--n-rail-height);
 background-color: var(--n-rail-color);
 transition: background-color .3s var(--n-bezier);
 border-radius: calc(var(--n-rail-height) / 2);
 `,[b("fill",`
 position: absolute;
 top: 0;
 bottom: 0;
 border-radius: calc(var(--n-rail-height) / 2);
 transition: background-color .3s var(--n-bezier);
 background-color: var(--n-fill-color);
 `)]),i("slider-handles",`
 position: absolute;
 top: 0;
 right: calc(var(--n-handle-size) / 2);
 bottom: 0;
 left: calc(var(--n-handle-size) / 2);
 `,[i("slider-handle-wrapper",`
 outline: none;
 position: absolute;
 top: 50%;
 transform: translate(-50%, -50%);
 cursor: pointer;
 display: flex;
 `,[i("slider-handle",`
 height: var(--n-handle-size);
 width: var(--n-handle-size);
 border-radius: 50%;
 overflow: hidden;
 transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier);
 background-color: var(--n-handle-color);
 box-shadow: var(--n-handle-box-shadow);
 `,[z("&:hover",`
 box-shadow: var(--n-handle-box-shadow-hover);
 `)]),z("&:focus",[i("slider-handle",`
 box-shadow: var(--n-handle-box-shadow-focus);
 `,[z("&:hover",`
 box-shadow: var(--n-handle-box-shadow-active);
 `)])])])]),i("slider-dots",`
 position: absolute;
 top: 50%;
 left: calc(var(--n-handle-size) / 2);
 right: calc(var(--n-handle-size) / 2);
 `,[y("transition-disabled",[i("slider-dot","transition: none;")]),i("slider-dot",`
 transition:
 border-color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
 position: absolute;
 transform: translate(-50%, -50%);
 height: var(--n-dot-height);
 width: var(--n-dot-width);
 border-radius: var(--n-dot-border-radius);
 overflow: hidden;
 box-sizing: border-box;
 border: var(--n-dot-border);
 background-color: var(--n-dot-color);
 `,[y("active","border: var(--n-dot-border-active);")])])]),i("slider-handle-indicator",`
 font-size: var(--n-font-size);
 padding: 6px 10px;
 border-radius: var(--n-indicator-border-radius);
 color: var(--n-indicator-text-color);
 background-color: var(--n-indicator-color);
 box-shadow: var(--n-indicator-box-shadow);
 `,[nt()]),i("slider-handle-indicator",`
 font-size: var(--n-font-size);
 padding: 6px 10px;
 border-radius: var(--n-indicator-border-radius);
 color: var(--n-indicator-text-color);
 background-color: var(--n-indicator-color);
 box-shadow: var(--n-indicator-box-shadow);
 `,[y("top",`
 margin-bottom: 12px;
 `),y("right",`
 margin-left: 12px;
 `),y("bottom",`
 margin-top: 12px;
 `),y("left",`
 margin-right: 12px;
 `),nt()]),Nt(i("slider",[i("slider-dot","background-color: var(--n-dot-color-modal);")])),Dt(i("slider",[i("slider-dot","background-color: var(--n-dot-color-popover);")]))]);function dt(e){return window.TouchEvent&&e instanceof window.TouchEvent}function ut(){const e=new Map,a=f=>p=>{e.set(f,p)};return Mt(()=>{e.clear()}),[e,a]}const pn=0,wn=Object.assign(Object.assign({},ee.props),{to:Ye.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onDragstart:[Function],onDragend:[Function]}),xn=ue({name:"Slider",props:wn,slots:Object,setup(e){const{mergedClsPrefixRef:a,namespaceRef:f,inlineThemeDisabled:p}=ze(e),u=ee("Slider","-slider",gn,Ot,e,a),l=P(null),[m,k]=ut(),[T,B]=ut(),S=P(new Set),U=Fe(e),{mergedDisabledRef:w}=U,$=I(()=>{const{step:t}=e;if(Number(t)<=0||t==="mark")return 0;const n=t.toString();let r=0;return n.includes(".")&&(r=n.length-n.indexOf(".")-1),r}),D=P(e.defaultValue),A=Ze(e,"value"),O=qe(A,D),C=I(()=>{const{value:t}=O;return(e.range?t:[t]).map(J)}),we=I(()=>C.value.length>2),Be=I(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),te=I(()=>{const{marks:t}=e;return t?Object.keys(t).map(Number.parseFloat):null}),M=P(-1),ce=P(-1),R=P(-1),h=P(!1),V=P(!1),Z=I(()=>{const{vertical:t,reverse:n}=e;return t?n?"top":"bottom":n?"right":"left"}),q=I(()=>{if(we.value)return;const t=C.value,n=G(e.range?Math.min(...t):e.min),r=G(e.range?Math.max(...t):t[0]),{value:c}=Z;return e.vertical?{[c]:`${n}%`,height:`${r-n}%`}:{[c]:`${n}%`,width:`${r-n}%`}}),ne=I(()=>{const t=[],{marks:n}=e;if(n){const r=C.value.slice();r.sort((H,_)=>H-_);const{value:c}=Z,{value:g}=we,{range:N}=e,Q=g?()=>!1:H=>N?H>=r[0]&&H<=r[r.length-1]:H<=r[0];for(const H of Object.keys(n)){const _=Number(H);t.push({active:Q(_),key:_,label:n[H],style:{[c]:`${G(_)}%`}})}}return t});function be(t,n){const r=G(t),{value:c}=Z;return{[c]:`${r}%`,zIndex:n===M.value?1:0}}function xe(t){return e.showTooltip||R.value===t||M.value===t&&h.value}function Ie(t){return h.value?!(M.value===t&&ce.value===t):!0}function me(t){var n;~t&&(M.value=t,(n=m.get(t))===null||n===void 0||n.focus())}function ge(){T.forEach((t,n)=>{xe(n)&&t.syncPosition()})}function L(t){const{"onUpdate:value":n,onUpdateValue:r}=e,{nTriggerFormInput:c,nTriggerFormChange:g}=U;r&&K(r,t),n&&K(n,t),D.value=t,c(),g()}function ye(t){const{range:n}=e;if(n){if(Array.isArray(t)){const{value:r}=C;t.join()!==r.join()&&L(t)}}else Array.isArray(t)||C.value[0]!==t&&L(t)}function fe(t,n){if(e.range){const r=C.value.slice();r.splice(n,1,t),ye(r)}else ye(t)}function E(t,n,r){const c=r!==void 0;r||(r=t-n>0?1:-1);const g=te.value||[],{step:N}=e;if(N==="mark"){const _=X(t,g.concat(n),c?r:void 0);return _?_.value:n}if(N<=0)return n;const{value:Q}=$;let H;if(c){const _=Number((n/N).toFixed(Q)),ve=Math.floor(_),He=_>ve?ve:ve-1,Ue=_<ve?ve:ve+1;H=X(n,[Number((He*N).toFixed(Q)),Number((Ue*N).toFixed(Q)),...g],r)}else{const _=he(t);H=X(t,[...g,_])}return H?J(H.value):n}function J(t){return Math.min(e.max,Math.max(e.min,t))}function G(t){const{max:n,min:r}=e;return(t-r)/(n-r)*100}function oe(t){const{max:n,min:r}=e;return r+(n-r)*t}function he(t){const{step:n,min:r}=e;if(Number(n)<=0||n==="mark")return t;const c=Math.round((t-r)/n)*n+r;return Number(c.toFixed($.value))}function X(t,n=te.value,r){if(!n?.length)return null;let c=null,g=-1;for(;++g<n.length;){const N=n[g]-t,Q=Math.abs(N);(r===void 0||N*r>0)&&(c===null||Q<c.distance)&&(c={index:g,distance:Q,value:n[g]})}return c}function Y(t){const n=l.value;if(!n)return;const r=dt(t)?t.touches[0]:t,c=n.getBoundingClientRect();let g;return e.vertical?g=(c.bottom-r.clientY)/c.height:g=(r.clientX-c.left)/c.width,e.reverse&&(g=1-g),oe(g)}function re(t){if(w.value||!e.keyboard)return;const{vertical:n,reverse:r}=e;switch(t.key){case"ArrowUp":t.preventDefault(),ke(n&&r?-1:1);break;case"ArrowRight":t.preventDefault(),ke(!n&&r?-1:1);break;case"ArrowDown":t.preventDefault(),ke(n&&r?1:-1);break;case"ArrowLeft":t.preventDefault(),ke(!n&&r?1:-1);break}}function ke(t){const n=M.value;if(n===-1)return;const{step:r}=e,c=C.value[n],g=Number(r)<=0||r==="mark"?c:c+r*t;fe(E(g,c,t>0?1:-1),n)}function _e(t){var n,r;if(w.value||!dt(t)&&t.button!==pn)return;const c=Y(t);if(c===void 0)return;const g=C.value.slice(),N=e.range?(r=(n=X(c,g))===null||n===void 0?void 0:n.index)!==null&&r!==void 0?r:-1:0;N!==-1&&(t.preventDefault(),me(N),Pe(),fe(E(c,C.value[N]),N))}function Pe(){h.value||(h.value=!0,e.onDragstart&&K(e.onDragstart),Ce("touchend",document,Se),Ce("mouseup",document,Se),Ce("touchmove",document,Ve),Ce("mousemove",document,Ve))}function Re(){h.value&&(h.value=!1,e.onDragend&&K(e.onDragend),Ne("touchend",document,Se),Ne("mouseup",document,Se),Ne("touchmove",document,Ve),Ne("mousemove",document,Ve))}function Ve(t){const{value:n}=M;if(!h.value||n===-1){Re();return}const r=Y(t);r!==void 0&&fe(E(r,C.value[n]),n)}function Se(){Re()}function Ae(t){M.value=t,w.value||(R.value=t)}function Oe(t){M.value===t&&(M.value=-1,Re()),R.value===t&&(R.value=-1)}function o(t){R.value=t}function s(t){R.value===t&&(R.value=-1)}Ge(M,(t,n)=>{Me(()=>ce.value=n)}),Ge(O,()=>{if(e.marks){if(V.value)return;V.value=!0,Me(()=>{V.value=!1})}Me(ge)}),Ht(()=>{Re()});const v=I(()=>{const{self:{markFontSize:t,railColor:n,railColorHover:r,fillColor:c,fillColorHover:g,handleColor:N,opacityDisabled:Q,dotColor:H,dotColorModal:_,handleBoxShadow:ve,handleBoxShadowHover:He,handleBoxShadowActive:Ue,handleBoxShadowFocus:ft,dotBorder:ht,dotBoxShadow:vt,railHeight:bt,railWidthVertical:mt,handleSize:gt,dotHeight:pt,dotWidth:wt,dotBorderRadius:xt,fontSize:yt,dotBorderActive:kt,dotColorPopover:Rt},common:{cubicBezierEaseInOut:Vt}}=u.value;return{"--n-bezier":Vt,"--n-dot-border":ht,"--n-dot-border-active":kt,"--n-dot-border-radius":xt,"--n-dot-box-shadow":vt,"--n-dot-color":H,"--n-dot-color-modal":_,"--n-dot-color-popover":Rt,"--n-dot-height":pt,"--n-dot-width":wt,"--n-fill-color":c,"--n-fill-color-hover":g,"--n-font-size":yt,"--n-handle-box-shadow":ve,"--n-handle-box-shadow-active":Ue,"--n-handle-box-shadow-focus":ft,"--n-handle-box-shadow-hover":He,"--n-handle-color":N,"--n-handle-size":gt,"--n-opacity-disabled":Q,"--n-rail-color":n,"--n-rail-color-hover":r,"--n-rail-height":bt,"--n-rail-width-vertical":mt,"--n-mark-font-size":t}}),x=p?$e("slider",void 0,v,e):void 0,W=I(()=>{const{self:{fontSize:t,indicatorColor:n,indicatorBoxShadow:r,indicatorTextColor:c,indicatorBorderRadius:g}}=u.value;return{"--n-font-size":t,"--n-indicator-border-radius":g,"--n-indicator-box-shadow":r,"--n-indicator-color":n,"--n-indicator-text-color":c}}),F=p?$e("slider-indicator",void 0,W,e):void 0;return{mergedClsPrefix:a,namespace:f,uncontrolledValue:D,mergedValue:O,mergedDisabled:w,mergedPlacement:Be,isMounted:Ut(),adjustedTo:Ye(e),dotTransitionDisabled:V,markInfos:ne,isShowTooltip:xe,shouldKeepTooltipTransition:Ie,handleRailRef:l,setHandleRefs:k,setFollowerRefs:B,fillStyle:q,getHandleStyle:be,activeIndex:M,arrifiedValues:C,followerEnabledIndexSet:S,handleRailMouseDown:_e,handleHandleFocus:Ae,handleHandleBlur:Oe,handleHandleMouseEnter:o,handleHandleMouseLeave:s,handleRailKeyDown:re,indicatorCssVars:p?void 0:W,indicatorThemeClass:F?.themeClass,indicatorOnRender:F?.onRender,cssVars:p?void 0:v,themeClass:x?.themeClass,onRender:x?.onRender}},render(){var e;const{mergedClsPrefix:a,themeClass:f,formatTooltip:p}=this;return(e=this.onRender)===null||e===void 0||e.call(this),d("div",{class:[`${a}-slider`,f,{[`${a}-slider--disabled`]:this.mergedDisabled,[`${a}-slider--active`]:this.activeIndex!==-1,[`${a}-slider--with-mark`]:this.marks,[`${a}-slider--vertical`]:this.vertical,[`${a}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},d("div",{class:`${a}-slider-rail`},d("div",{class:`${a}-slider-rail__fill`,style:this.fillStyle}),this.marks?d("div",{class:[`${a}-slider-dots`,this.dotTransitionDisabled&&`${a}-slider-dots--transition-disabled`]},this.markInfos.map(u=>d("div",{key:u.key,class:[`${a}-slider-dot`,{[`${a}-slider-dot--active`]:u.active}],style:u.style}))):null,d("div",{ref:"handleRailRef",class:`${a}-slider-handles`},this.arrifiedValues.map((u,l)=>{const m=this.isShowTooltip(l);return d(Ft,null,{default:()=>[d(_t,null,{default:()=>d("div",{ref:this.setHandleRefs(l),class:`${a}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,role:"slider","aria-valuenow":u,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-orientation":this.vertical?"vertical":"horizontal","aria-disabled":this.disabled,style:this.getHandleStyle(u,l),onFocus:()=>{this.handleHandleFocus(l)},onBlur:()=>{this.handleHandleBlur(l)},onMouseenter:()=>{this.handleHandleMouseEnter(l)},onMouseleave:()=>{this.handleHandleMouseLeave(l)}},Xe(this.$slots.thumb,()=>[d("div",{class:`${a}-slider-handle`})]))}),this.tooltip&&d(Pt,{ref:this.setFollowerRefs(l),show:m,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(l),teleportDisabled:this.adjustedTo===Ye.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>d(At,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(l),onEnter:()=>{this.followerEnabledIndexSet.add(l)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(l)}},{default:()=>{var k;return m?((k=this.indicatorOnRender)===null||k===void 0||k.call(this),d("div",{class:[`${a}-slider-handle-indicator`,this.indicatorThemeClass,`${a}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof p=="function"?p(u):u)):null}})})]})})),this.marks?d("div",{class:`${a}-slider-marks`},this.markInfos.map(u=>d("div",{key:u.key,class:`${a}-slider-mark`,style:u.style},typeof u.label=="function"?u.label():u.label))):null))}}),yn=i("switch",`
 height: var(--n-height);
 min-width: var(--n-width);
 vertical-align: middle;
 user-select: none;
 -webkit-user-select: none;
 display: inline-flex;
 outline: none;
 justify-content: center;
 align-items: center;
`,[b("children-placeholder",`
 height: var(--n-rail-height);
 display: flex;
 flex-direction: column;
 overflow: hidden;
 pointer-events: none;
 visibility: hidden;
 `),b("rail-placeholder",`
 display: flex;
 flex-wrap: none;
 `),b("button-placeholder",`
 width: calc(1.75 * var(--n-rail-height));
 height: var(--n-rail-height);
 `),i("base-loading",`
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translateX(-50%) translateY(-50%);
 font-size: calc(var(--n-button-width) - 4px);
 color: var(--n-loading-color);
 transition: color .3s var(--n-bezier);
 `,[rt({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),b("checked, unchecked",`
 transition: color .3s var(--n-bezier);
 color: var(--n-text-color);
 box-sizing: border-box;
 position: absolute;
 white-space: nowrap;
 top: 0;
 bottom: 0;
 display: flex;
 align-items: center;
 line-height: 1;
 `),b("checked",`
 right: 0;
 padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
 `),b("unchecked",`
 left: 0;
 justify-content: flex-end;
 padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
 `),z("&:focus",[b("rail",`
 box-shadow: var(--n-box-shadow-focus);
 `)]),y("round",[b("rail","border-radius: calc(var(--n-rail-height) / 2);",[b("button","border-radius: calc(var(--n-button-height) / 2);")])]),ot("disabled",[ot("icon",[y("rubber-band",[y("pressed",[b("rail",[b("button","max-width: var(--n-button-width-pressed);")])]),b("rail",[z("&:active",[b("button","max-width: var(--n-button-width-pressed);")])]),y("active",[y("pressed",[b("rail",[b("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),b("rail",[z("&:active",[b("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),y("active",[b("rail",[b("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),b("rail",`
 overflow: hidden;
 height: var(--n-rail-height);
 min-width: var(--n-rail-width);
 border-radius: var(--n-rail-border-radius);
 cursor: pointer;
 position: relative;
 transition:
 opacity .3s var(--n-bezier),
 background .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
 background-color: var(--n-rail-color);
 `,[b("button-icon",`
 color: var(--n-icon-color);
 transition: color .3s var(--n-bezier);
 font-size: calc(var(--n-button-height) - 4px);
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 display: flex;
 justify-content: center;
 align-items: center;
 line-height: 1;
 `,[rt()]),b("button",`
 align-items: center; 
 top: var(--n-offset);
 left: var(--n-offset);
 height: var(--n-button-height);
 width: var(--n-button-width-pressed);
 max-width: var(--n-button-width);
 border-radius: var(--n-button-border-radius);
 background-color: var(--n-button-color);
 box-shadow: var(--n-button-box-shadow);
 box-sizing: border-box;
 cursor: inherit;
 content: "";
 position: absolute;
 transition:
 background-color .3s var(--n-bezier),
 left .3s var(--n-bezier),
 opacity .3s var(--n-bezier),
 max-width .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
 `)]),y("active",[b("rail","background-color: var(--n-rail-color-active);")]),y("loading",[b("rail",`
 cursor: wait;
 `)]),y("disabled",[b("rail",`
 cursor: not-allowed;
 opacity: .5;
 `)])]),kn=Object.assign(Object.assign({},ee.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let Te;const Rn=ue({name:"Switch",props:kn,slots:Object,setup(e){Te===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?Te=CSS.supports("width","max(1px)"):Te=!1:Te=!0);const{mergedClsPrefixRef:a,inlineThemeDisabled:f}=ze(e),p=ee("Switch","-switch",yn,Lt,e,a),u=Fe(e),{mergedSizeRef:l,mergedDisabledRef:m}=u,k=P(e.defaultValue),T=Ze(e,"value"),B=qe(T,k),S=I(()=>B.value===e.checkedValue),U=P(!1),w=P(!1),$=I(()=>{const{railStyle:h}=e;if(h)return h({focused:w.value,checked:S.value})});function D(h){const{"onUpdate:value":V,onChange:Z,onUpdateValue:q}=e,{nTriggerFormInput:ne,nTriggerFormChange:be}=u;V&&K(V,h),q&&K(q,h),Z&&K(Z,h),k.value=h,ne(),be()}function A(){const{nTriggerFormFocus:h}=u;h()}function O(){const{nTriggerFormBlur:h}=u;h()}function C(){e.loading||m.value||(B.value!==e.checkedValue?D(e.checkedValue):D(e.uncheckedValue))}function we(){w.value=!0,A()}function Be(){w.value=!1,O(),U.value=!1}function te(h){e.loading||m.value||h.key===" "&&(B.value!==e.checkedValue?D(e.checkedValue):D(e.uncheckedValue),U.value=!1)}function M(h){e.loading||m.value||h.key===" "&&(h.preventDefault(),U.value=!0)}const ce=I(()=>{const{value:h}=l,{self:{opacityDisabled:V,railColor:Z,railColorActive:q,buttonBoxShadow:ne,buttonColor:be,boxShadowFocus:xe,loadingColor:Ie,textColor:me,iconColor:ge,[se("buttonHeight",h)]:L,[se("buttonWidth",h)]:ye,[se("buttonWidthPressed",h)]:fe,[se("railHeight",h)]:E,[se("railWidth",h)]:J,[se("railBorderRadius",h)]:G,[se("buttonBorderRadius",h)]:oe},common:{cubicBezierEaseInOut:he}}=p.value;let X,Y,re;return Te?(X=`calc((${E} - ${L}) / 2)`,Y=`max(${E}, ${L})`,re=`max(${J}, calc(${J} + ${L} - ${E}))`):(X=je((ae(E)-ae(L))/2),Y=je(Math.max(ae(E),ae(L))),re=ae(E)>ae(L)?J:je(ae(J)+ae(L)-ae(E))),{"--n-bezier":he,"--n-button-border-radius":oe,"--n-button-box-shadow":ne,"--n-button-color":be,"--n-button-width":ye,"--n-button-width-pressed":fe,"--n-button-height":L,"--n-height":Y,"--n-offset":X,"--n-opacity-disabled":V,"--n-rail-border-radius":G,"--n-rail-color":Z,"--n-rail-color-active":q,"--n-rail-height":E,"--n-rail-width":J,"--n-width":re,"--n-box-shadow-focus":xe,"--n-loading-color":Ie,"--n-text-color":me,"--n-icon-color":ge}}),R=f?$e("switch",I(()=>l.value[0]),ce,e):void 0;return{handleClick:C,handleBlur:Be,handleFocus:we,handleKeyup:te,handleKeydown:M,mergedRailStyle:$,pressed:U,mergedClsPrefix:a,mergedValue:B,checked:S,mergedDisabled:m,cssVars:f?void 0:ce,themeClass:R?.themeClass,onRender:R?.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:a,checked:f,mergedRailStyle:p,onRender:u,$slots:l}=this;u?.();const{checked:m,unchecked:k,icon:T,"checked-icon":B,"unchecked-icon":S}=l,U=!(Ee(T)&&Ee(B)&&Ee(S));return d("div",{role:"switch","aria-checked":f,class:[`${e}-switch`,this.themeClass,U&&`${e}-switch--icon`,f&&`${e}-switch--active`,a&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},d("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:p},de(m,w=>de(k,$=>w||$?d("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},d("div",{class:`${e}-switch__rail-placeholder`},d("div",{class:`${e}-switch__button-placeholder`}),w),d("div",{class:`${e}-switch__rail-placeholder`},d("div",{class:`${e}-switch__button-placeholder`}),$)):null)),d("div",{class:`${e}-switch__button`},de(T,w=>de(B,$=>de(S,D=>d(Et,null,{default:()=>this.loading?d(jt,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&($||w)?d("div",{class:`${e}-switch__button-icon`,key:$?"checked-icon":"icon"},$||w):!this.checked&&(D||w)?d("div",{class:`${e}-switch__button-icon`,key:D?"unchecked-icon":"icon"},D||w):null})))),de(m,w=>w&&d("div",{key:"checked",class:`${e}-switch__checked`},w)),de(k,w=>w&&d("div",{key:"unchecked",class:`${e}-switch__unchecked`},w)))))}}),zn=ue({__name:"Setting",setup(e){const{is_debug:a,show_text_size:f}=Wt(Kt()),p=[.1,5];return(u,l)=>(ct(),Gt(j(Qt),{vertical:"",style:{gap:"1rem",padding:"1rem"}},{default:ie(()=>[le(j(Rn),{value:j(a),"onUpdate:value":l[0]||(l[0]=m=>Le(a)?a.value=m:null)},{checked:ie(()=>[...l[3]||(l[3]=[De(" Debug mode ",-1)])]),unchecked:ie(()=>[...l[4]||(l[4]=[De(" Debug mode ",-1)])]),_:1},8,["value"]),le(j(Yt),{wrap:!1,align:"center"},{default:ie(()=>[le(j(an),{style:{width:"fit-content"}},{default:ie(()=>[le(j(at),null,{default:ie(()=>[...l[5]||(l[5]=[De("Show text size",-1)])]),_:1}),le(j(mn),{value:j(f),"onUpdate:value":l[1]||(l[1]=m=>Le(f)?f.value=m:null),step:.1},null,8,["value"]),le(j(at),null,{default:ie(()=>[...l[6]||(l[6]=[De("rem",-1)])]),_:1})]),_:1}),le(j(xn),{value:j(f),"onUpdate:value":l[2]||(l[2]=m=>Le(f)?f.value=m:null),step:.1,tooltip:!1,min:p[0],max:p[1]},{thumb:ie(()=>[le(j(cn),{size:24,"border-radius":12},{default:ie(()=>[le(j(Xt),{size:18,component:j(tn)},null,8,["component"])]),_:1})]),_:1},8,["value","min","max"])]),_:1})]),_:1}))}});export{zn as default};
