import{At as e,Bt as t,Ct as n,Ft as r,Gt as i,J as a,L as o,P as s,Pt as c,St as l,Z as u,in as d,kt as f,mt as p,rn as m,xt as h,yt as g}from"./icon-K_9KhGme.js";import{L as _,O as v,R as ee,T as y,X as b,h as x,ot as S,pt as C,ut as w}from"./vue.esm-bundler-DcNPjsgv.js";var T=`update:modelValue`,E=`change`,D=`input`;function O(e){return e}function k(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var A=800,te=16,ne=Date.now;function j(e){var t=0,n=0;return function(){var r=ne(),i=te-(r-n);if(n=r,i>0){if(++t>=A)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function M(e){return function(){return e}}var N=j(r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:M(t),writable:!0})}:O),P=Math.max;function F(e,t,n){return t=P(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=P(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),k(e,this,s)}}var I=i?i.isConcatSpreadable:void 0;function L(e){return t(e)||f(e)||!!(I&&e&&e[I])}function R(e,t,n,r,i){var a=-1,o=e.length;for(n||=L,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?R(s,t-1,n,r,i):g(i,s):r||(i[i.length]=s)}return i}function z(e){return e!=null&&e.length?R(e,1):[]}function B(e){return N(F(e,void 0,z),e+``)}function V(e,t){return e!=null&&t in Object(e)}function H(r,i,a){i=n(i,r);for(var o=-1,s=i.length,u=!1;++o<s;){var d=l(i[o]);if(!(u=r!=null&&a(r,d)))break;r=r[d]}return u||++o!=s?u:(s=r==null?0:r.length,!!s&&e(s)&&c(d,s)&&(t(r)||f(r)))}function U(e,t){return e!=null&&H(e,t,V)}function W(e,t,r){for(var i=-1,a=t.length,o={};++i<a;){var s=t[i],c=h(e,s);r(c,s)&&p(o,n(s,e),c)}return o}function G(e,t){return W(e,t,function(t,n){return U(e,n)})}var K=B(function(e,t){return e==null?{}:G(e,t)}),q=e=>{let t=y();return x(()=>t?.proxy?.$props?.[e])},J={prefix:Math.floor(Math.random()*1e4),current:0},Y=Symbol(`elIdInjection`),X=()=>y()?v(Y,J):J,Z=e=>{let t=X();!d&&t===J&&a(`IdInjection`,`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
usage: app.provide(ID_INJECTION_KEY, {
  prefix: number,
  current: number,
})`);let n=o();return m(()=>C(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},re=u({ariaLabel:String,ariaOrientation:{type:String,values:[`horizontal`,`vertical`,`undefined`]},ariaControls:String}),ie=e=>K(re,e),Q=Symbol(`formContextKey`),$=Symbol(`formItemContextKey`),ae=(e,t={})=>{let n=S(void 0),r=t.prop?n:q(`size`),i=t.global?n:s(),a=t.form?{size:void 0}:v(Q,void 0),o=t.formItem?{size:void 0}:v($,void 0);return x(()=>r.value||C(e)||o?.size||a?.size||i.value||``)},oe=e=>{let t=q(`disabled`),n=v(Q,void 0);return x(()=>t.value??C(e)??n?.disabled??!1)},se=()=>({form:v(Q,void 0),formItem:v($,void 0)}),ce=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||=S(!1),r||=S(!1);let i=y(),a=()=>{let e=i?.parent;for(;e;){if(e.type.name===`ElFormItem`)return!1;if(e.type.name===`ElLabelWrap`)return!0;e=e.parent}return!1},o=S(),s,c=x(()=>!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&t.inputIds?.length<=1));return _(()=>{s=b([w(e,`id`),n],([e,n])=>{let i=e??(n?void 0:Z().value);i!==o.value&&(t?.removeInputId&&!a()&&(o.value&&t.removeInputId(o.value),!r?.value&&!n&&i&&t.addInputId(i)),o.value=i)},{immediate:!0})}),ee(()=>{s&&s(),t?.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:c,inputId:o}};export{E as _,Q as a,Z as c,U as d,B as f,O as g,N as h,ae as i,X as l,F as m,ce as n,$ as o,R as p,oe as r,ie as s,se as t,K as u,D as v,T as y};