var Rl=Object.defineProperty,ql=Object.defineProperties;var Kl=Object.getOwnPropertyDescriptors;var gl=Object.getOwnPropertySymbols;var Fl=Object.prototype.hasOwnProperty,Nl=Object.prototype.propertyIsEnumerable;var yl=(e,l,n)=>l in e?Rl(e,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[l]=n,De=(e,l)=>{for(var n in l||(l={}))Fl.call(l,n)&&yl(e,n,l[n]);if(gl)for(var n of gl(l))Nl.call(l,n)&&yl(e,n,l[n]);return e},il=(e,l)=>ql(e,Kl(l));import{t as jl,u as Ql,v as dl,d as ve,x as fe,y as ie,z as Gl,e as L,j as y,g as $l,A as sl,B as Sl,C as S,D as q,G as $,H as ge,I as We,J as W,K as C,L as A,M as J,T as Pl,_ as me,N as cl,O as H,c as ce,F as He,P as Ul,Q as he,R as Cl,w as K,S as pl,n as D,p as fl,r as Le,o as Ae,f as Xl,U as pe,V as rl,W as j,X as ul,Y as Ml,Z as Yl,$ as U,a0 as Bl,a1 as vl,a2 as ml,a3 as ne,a4 as le,a5 as hl,a6 as wl,a7 as Jl,a8 as Zl,a9 as xl,aa as Ol,ab as _l,ac as Ee,ad as al,ae as El,af as oe,ag as et,ah as lt,ai as tt,aj as Vl,E as nt,ak as ot,m as it,al as at,am as st,an as rt,k as de,ao as ut,ap as Ll,aq as G,ar as dt,as as ct,at as Dl}from"./index.f06d32fc.js";import{E as pt,t as ft}from"./index2.d2718ad2.js";const vt=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),mt=e=>jl[e||"default"],ht=e=>["",...Ql].includes(e),Hl=Symbol("scrollbarContextKey"),bt=e=>({focus:()=>{var l,n;(n=(l=e.value)==null?void 0:l.focus)==null||n.call(l)}}),be=4,gt={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},yt=({move:e,size:l,bar:n})=>({[n.size]:l,transform:`translate${n.axis}(${e}%)`}),St=dl({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Ct=ve({__name:"thumb",props:St,setup(e){const l=e,n="Thumb",s=fe(Hl),v=ie("scrollbar");s||Gl(n,"can not inject scrollbar context");const u=L(),i=L(),f=L({}),d=L(!1);let w=!1,b=!1,O=cl?document.onselectstart:null;const c=y(()=>gt[l.vertical?"vertical":"horizontal"]),z=y(()=>yt({size:l.size,move:l.move,bar:c.value})),a=y(()=>u.value[c.value.offset]**2/s.wrapElement[c.value.scrollSize]/l.ratio/i.value[c.value.offset]),g=h=>{var P;if(h.stopPropagation(),h.ctrlKey||[1,2].includes(h.button))return;(P=window.getSelection())==null||P.removeAllRanges(),T(h);const M=h.currentTarget;!M||(f.value[c.value.axis]=M[c.value.offset]-(h[c.value.client]-M.getBoundingClientRect()[c.value.direction]))},E=h=>{if(!i.value||!u.value||!s.wrapElement)return;const P=Math.abs(h.target.getBoundingClientRect()[c.value.direction]-h[c.value.client]),M=i.value[c.value.offset]/2,V=(P-M)*100*a.value/u.value[c.value.offset];s.wrapElement[c.value.scroll]=V*s.wrapElement[c.value.scrollSize]/100},T=h=>{h.stopImmediatePropagation(),w=!0,document.addEventListener("mousemove",B),document.addEventListener("mouseup",Q),O=document.onselectstart,document.onselectstart=()=>!1},B=h=>{if(!u.value||!i.value||w===!1)return;const P=f.value[c.value.axis];if(!P)return;const M=(u.value.getBoundingClientRect()[c.value.direction]-h[c.value.client])*-1,V=i.value[c.value.offset]-P,ye=(M-V)*100*a.value/u.value[c.value.offset];s.wrapElement[c.value.scroll]=ye*s.wrapElement[c.value.scrollSize]/100},Q=()=>{w=!1,f.value[c.value.axis]=0,document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",Q),I(),b&&(d.value=!1)},F=()=>{b=!1,d.value=!!l.size},p=()=>{b=!0,d.value=w};$l(()=>{I(),document.removeEventListener("mouseup",Q)});const I=()=>{document.onselectstart!==O&&(document.onselectstart=O)};return sl(Sl(s,"scrollbarElement"),"mousemove",F),sl(Sl(s,"scrollbarElement"),"mouseleave",p),(h,P)=>(S(),q(Pl,{name:A(v).b("fade"),persisted:""},{default:$(()=>[ge(W("div",{ref_key:"instance",ref:u,class:C([A(v).e("bar"),A(v).is(A(c).key)]),onMousedown:E},[W("div",{ref_key:"thumb",ref:i,class:C(A(v).e("thumb")),style:J(A(z)),onMousedown:g},null,38)],34),[[We,h.always||d.value]])]),_:1},8,["name"]))}});var Tl=me(Ct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const wt=dl({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),Ot=ve({__name:"bar",props:wt,setup(e,{expose:l}){const n=e,s=L(0),v=L(0);return l({handleScroll:i=>{if(i){const f=i.offsetHeight-be,d=i.offsetWidth-be;v.value=i.scrollTop*100/f*n.ratioY,s.value=i.scrollLeft*100/d*n.ratioX}}}),(i,f)=>(S(),H(He,null,[ce(Tl,{move:s.value,ratio:i.ratioX,size:i.width,always:i.always},null,8,["move","ratio","size","always"]),ce(Tl,{move:v.value,ratio:i.ratioY,size:i.height,vertical:"",always:i.always},null,8,["move","ratio","size","always"])],64))}});var Et=me(Ot,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const Lt=dl({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:Ul([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),Tt={scroll:({scrollTop:e,scrollLeft:l})=>he(e)&&he(l)},zt={name:"ElScrollbar"},It=ve(il(De({},zt),{props:Lt,emits:Tt,setup(e,{expose:l,emit:n}){const s=e,v=ie("scrollbar");let u,i;const f=L(),d=L(),w=L(),b=L("0"),O=L("0"),c=L(),z=L(1),a=L(1),g=y(()=>{const p={};return s.height&&(p.height=Cl(s.height)),s.maxHeight&&(p.maxHeight=Cl(s.maxHeight)),[s.wrapStyle,p]}),E=()=>{var p;d.value&&((p=c.value)==null||p.handleScroll(d.value),n("scroll",{scrollTop:d.value.scrollTop,scrollLeft:d.value.scrollLeft}))};function T(p,I){ul(p)?d.value.scrollTo(p):he(p)&&he(I)&&d.value.scrollTo(p,I)}const B=p=>{!he(p)||(d.value.scrollTop=p)},Q=p=>{!he(p)||(d.value.scrollLeft=p)},F=()=>{if(!d.value)return;const p=d.value.offsetHeight-be,I=d.value.offsetWidth-be,h=p**2/d.value.scrollHeight,P=I**2/d.value.scrollWidth,M=Math.max(h,s.minSize),V=Math.max(P,s.minSize);z.value=h/(p-h)/(M/(p-M)),a.value=P/(I-P)/(V/(I-V)),O.value=M+be
s.noresize,p=>{p?(u==null||u(),i==null||i()):({stop:u}=pl(w,F),i=sl("resize",F))},{immediate:!0}),K(()=>[s.maxHeight,s.height],()=>{s.native||D(()=>{var p;F(),d.value&&((p=c.value)==null||p.handleScroll(d.value))})}),fl(Hl,Le({scrollbarElement:f,wrapElement:d})),Ae(()=>{s.native||D(()=>F())}),Xl(()=>F()),l({wrap$:d,update:F,scrollTo:T,setScrollTop:B,setScrollLeft:Q,handleScroll:E}),(p,I)=>(S(),H("div",{ref_key:"scrollbar$",ref:f,class:C(A(v).b())},[W("div",{ref_key:"wrap$",ref:d,class:C([p.wrapClass,A(v).e("wrap"),{[A(v).em("wrap","hidden-default")]:!p.native}]),style:J(A(g)),onScroll:E},[(S(),q(rl(p.tag),{ref_key:"resize$",ref:w,class:C([A(v).e("view"),p.viewClass]),style:J(p.viewStyle)},{default:$(()=>[pe(p.$slots,"default")]),_:3},8,["class","style"]))],38),p.native?j("v-if",!0):(S(),q(Et,{key:0,ref_key:"barRef",ref:c,height:O.value,width:b.value,always:p.always,"ratio-x":a.value,"ratio-y":z.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}}));var kt=me(It,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const $t=Ml(kt),te=new Map;let zl;cl&&(document.addEventListener("mousedown",e=>zl=e),document.addEventListener("mouseup",e=>{for(const l of te.values())for(const{documentHandler:n}of l)n(e,zl)}));function Il(e,l){let n=[];return Array.isArray(l.arg)?n=l.arg:Yl(l.arg)&&n.push(l.arg),function(s,v){const u=l.instance.popperRef,i=s.target,f=v==null?void 0:v.target,d=!l||!l.instance,w=!i||!f,b=e.contains(i)||e.contains(f),O=e===i,c=n.length&&n.some(a=>a==null?void 0:a.contains(i))||n.length&&n.includes(f),z=u&&(u.contains(i)||u.contains(f));d||w||b||O||c||z||l.value(s,v)}}const Pt={beforeMount(e,l){te.has(e)||te.set(e,[]),te.get(e).push({documentHandler:Il(e,l),bindingFn:l.value})},updated(e,l){te.has(e)||te.set(e,[]);const n=te.get(e),s=n.findIndex(u=>u.bindingFn===l.oldValue),v={documentHandler:Il(e,l),bindingFn:l.value};s>=0?n.splice(s,1,v):n.push(v)},unmounted(e){te.delete(e)}},Wl="ElSelectGroup",Re="ElSelect";function Mt(e,l){const n=fe(Re),s=fe(Wl,{disabled:!1}),v=y(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),u=y(()=>n.props.multiple?O(n.props.modelValue,e.value):c(e.value,n.props.modelValue)),i=y(()=>{if(n.props.multiple){const g=n.props.modelValue||[];return!u.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),f=y(()=>e.label||(v.value?"":e.value)),d=y(()=>e.value||e.label||""),w=y(()=>e.disabled||l.groupDisabled||i.value),b=vl(),O=(g=[],E)=>{if(v.value){const T=n.props.valueKey;return g&&g.some(B=>U(B,T)===U(E,T))}else return g&&g.includes(E)},c=(g,E)=>{if(v.value){const{valueKey:T}=n.props;return U(g,T)===U(E,T)}else return g===E},z=()=>{!e.disabled&&!s.disabled&&(n.hoverIndex=n.optionsArray.indexOf(b.proxy))};K(()=>f.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),K(()=>e.value,(g,E)=>{const{remote:T,valueKey:B}=n.props;if(!e.created&&!T){if(B&&typeof g=="object"&&typeof E=="object"&&g[B]===E[B])return;n.setSelected()}}),K(()=>s.disabled,()=>{l.groupDisabled=s.disabled},{immediate:!0});const{queryChange:a}=Bl(n);return K(a,g=>{const{query:E}=A(g),T=new RegExp(vt(E),"i");l.visible=T.test(f.value)||e.created,l.visible||n.filteredOptionsCount--}),{select:n,currentLabel:f,currentValue:d,itemSelected:u,isDisabled:w,hoverItem:z}}const Bt=ve({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const l=ie("select"),n=Le({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:s,itemSelected:v,isDisabled:u,select:i,hoverItem:f}=Mt(e,n),{visible:d,hover:w}=ml(n),b=vl().proxy,O=b.value;i.onOptionCreate(b),$l(()=>{const{selected:z}=i,g=(i.props.multiple?z:[z]).some(E=>E.value===b.value);i.cachedOptions.get(O)===b&&!g&&D(()=>{i.cachedOptions.delete(O)}),i.onOptionDestroy(O,b)});function c(){e.disabled!==!0&&n.groupDisabled!==!0&&i.handleOptionSelect(b,!0)}return{ns:l,currentLabel:s,itemSelected:v,isDisabled:u,select:i,hoverItem:f,visible:d,hover:w,selectOptionClick:c,states:n}}});function Vt(e,l,n,s,v,u){return ge((S(),H("li",{class:C([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:l[0]||(l[0]=(...i)=>e.hoverItem&&e.hoverItem(...i)),onClick:l[1]||(l[1]=le((...i)=>e.selectOptionClick&&e.selectOptionClick(...i),["stop"]))},[pe(e.$slots,"default",{},()=>[W("span",null,ne(e.currentLabel),1)])],34)),[[We,e.visible]])}var bl=me(Bt,[["render",Vt],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const Dt=ve({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=fe(Re),l=ie("select"),n=y(()=>e.props.popperClass),s=y(()=>e.props.multiple),v=y(()=>e.props.fitInputWidth),u=L("");function i(){var f;u.value=`${(f=e.selectWrapper)==null?void 0:f.getBoundingClientRect().width}px`}return Ae(()=>{i(),pl(e.selectWrapper,i)}),{ns:l,minWidth:u,popperClass:n,isMultiple:s,isFitInputWidth:v}}});function Ht(e,l,n,s,v,u){return S(),H("div",{class:C([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:J({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[pe(e.$slots,"default")],6)}var Wt=me(Dt,[["render",Ht],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function At(e){const{t:l}=hl();return Le({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:l("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1})}const Rt=(e,l,n)=>{const{t:s}=hl(),v=ie("select"),u=L(null),i=L(null),f=L(null),d=L(null),w=L(null),b=L(null),O=L(-1),c=wl({query:""}),z=wl(""),a=fe(Jl,{}),g=fe(Zl,{}),E=y(()=>!e.filterable||e.multiple||!l.visible),T=y(()=>e.disabled||a.disabled),B=y(()=>{const t=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!T.value&&l.inputHovering&&t}),Q=y(()=>e.remote&&e.filterable?"":e.suffixIcon),F=y(()=>v.is("reverse",Q.value&&l.visible)),p=y(()=>e.remote?300:0),I=y(()=>e.loading?e.loadingText||s("el.select.loading"):e.remote&&l.query===""&&l.options.size===0?!1:e.filterable&&l.query&&l.options.size>0&&l.filteredOptionsCount===0?e.noMatchText||s("el.select.noMatch"):l.options.size===0?e.noDataText||s("el.select.noData"):null),h=y(()=>Array.from(l.options.values())),P=y(()=>Array.from(l.cachedOptions.values())),M=y(()=>{const t=h.value.filter(o=>!o.created).some(o=>o.currentLabel===l.query);return e.filterable&&e.allowCreate&&l.query!==""&&!t}),V=xl(),ye=y(()=>["small"].includes(V.value)?"small":"default"),qe=y({get(){return l.visible&&I.value!==!1},set(t){l.visible=t}});K([()=>T.value,()=>V.value,()=>a.size],()=>{D(()=>{X()})}),K(()=>e.placeholder,t=>{l.cachedPlaceHolder=l.currentPlaceholder=t}),K(()=>e.modelValue,(t,o)=>{var r;e.multiple&&(X(),t&&t.length>0||i.value&&l.query!==""?l.currentPlaceholder="":l.currentPlaceholder=l.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(l.query="",Z(l.query))),Se(),e.filterable&&!e.multiple&&(l.inputLength=20),Ol(t,o)||(r=g.validate)==null||r.call(g,"change").catch(m=>_l())},{flush:"post",deep:!0}),K(()=>l.visible,t=>{var o,r,m;t?((r=(o=f.value)==null?void 0:o.updatePopper)==null||r.call(o),e.filterable&&(l.filteredOptionsCount=l.optionsCount,l.query=e.remote?"":l.selectedLabel,e.multiple?(m=i.value)==null||m.focus():l.selectedLabel&&(l.currentPlaceholder=`${l.selectedLabel}`,l.selectedLabel=""),Z(l.query),!e.multiple&&!e.remote&&(c.value.query="",Ee(c),Ee(z)))):(i.value&&i.value.blur(),l.query="",l.previousQuery=null,l.selectedLabel="",l.inputLength=20,l.menuVisibleOnFocus=!1,Ke(),D(()=>{i.value&&i.value.value===""&&l.selected.length===0&&(l.currentPlaceholder=l.cachedPlaceHolder)}),e.multiple||(l.selected&&(e.filterable&&e.allowCreate&&l.createdSelected&&l.createdLabel?l.selectedLabel=l.createdLabel:l.selectedLabel=l.selected.currentLabel,e.filterable&&(l.query=l.selectedLabel)),e.filterable&&(l.currentPlaceholder=l.cachedPlaceHolder))),n.emit("visible-change",t)}),K(()=>l.options.entries(),()=>{var t,o,r;if(!cl)return;(o=(t=f.value)==null?void 0:t.updatePopper)==null||o.call(t),e.multiple&&X();const m=((r=w.value)==null?void 0:r.querySelectorAll("input"))||[];Array.from(m).includes(document.activeElement)||Se(),e.defaultFirstOption&&(e.filterable||e.remote)&&l.filteredOptionsCount&&ze()},{flush:"post"}),K(()=>l.hoverIndex,t=>{typeof t=="number"&&t>-1&&(O.value=h.value[t]||{}),h.value.forEach(o=>{o.hover=O.value===o})});const X=()=>{e.collapseTags&&!e.filterable||D(()=>{var t,o;if(!u.value)return;const r=u.value.$el.querySelector("input"),m=d.value,k=mt(V.value||a.size);r.style.height=`${l.selected.length===0?k:Math.max(m?m.clientHeight+(m.clientHeight>k?6:0):0,k)-2}px`,l.tagInMultiLine=Number.parseFloat(r.style.height)>=k,l.visible&&I.value!==!1&&((o=(t=f.value)==null?void 0:t.updatePopper)==null||o.call(t))})},Z=t=>{if(!(l.previousQuery===t||l.isOnComposition)){if(l.previousQuery===null&&(typeof e.filterMethod=="function"||typeof e.remoteMethod=="function")){l.previousQuery=t;return}l.previousQuery=t,D(()=>{var o,r;l.visible&&((r=(o=f.value)==null?void 0:o.updatePopper)==null||r.call(o))}),l.hoverIndex=-1,e.multiple&&e.filterable&&D(()=>{const o=i.value.value.length*15+20;l.inputLength=e.collapseTags?Math.min(50,o):o,Te(),X()}),e.remote&&typeof e.remoteMethod=="function"?(l.hoverIndex=-1,e.remoteMethod(t)):typeof e.filterMethod=="function"?(e.filterMethod(t),Ee(z)):(l.filteredOptionsCount=l.optionsCount,c.value.query=t,Ee(c),Ee(z)),e.defaultFirstOption&&(e.filterable||e.remote)&&l.filteredOptionsCount&&ze()}},Te=()=>{l.currentPlaceholder!==""&&(l.currentPlaceholder=i.value.value?"":l.cachedPlaceHolder)},ze=()=>{const t=h.value.filter(m=>m.visible&&!m.disabled&&!m.states.groupDisabled),o=t.find(m=>m.created),r=t[0];l.hoverIndex=Ce(h.value,o||r)},Se=()=>{var t;if(e.multiple)l.selectedLabel="";else{const r=Ie(e.modelValue);(t=r.props)!=null&&t.created?(l.createdLabel=r.props.value,l.createdSelected=!0):l.createdSelected=!1,l.selectedLabel=r.currentLabel,l.selected=r,e.filterable&&(l.query=l.selectedLabel);return}const o=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(r=>{o.push(Ie(r))}),l.selected=o,D(()=>{X()})},Ie=t=>{let o;const r=al(t).toLowerCase()==="object",m=al(t).toLowerCase()==="null",k=al(t).toLowerCase()==="undefined";for(let Y=l.cachedOptions.size-1;Y>=0;Y--){const N=P.value[Y];if(r?U(N.value,e.valueKey)===U(t,e.valueKey):N.value===t){o={value:t,currentLabel:N.currentLabel,isDisabled:N.isDisabled};break}}if(o)return o;const _=r?t.label:!m&&!k?t:"",ee={value:t,currentLabel:_};return e.multiple&&(ee.hitState=!1),ee},Ke=()=>{setTimeout(()=>{const t=e.valueKey;e.multiple?l.selected.length>0?l.hoverIndex=Math.min.apply(null,l.selected.map(o=>h.value.findIndex(r=>U(r,t)===U(o,t)))):l.hoverIndex=-1:l.hoverIndex=h.value.findIndex(o=>re(o)===re(l.selected))},300)},Fe=()=>{var t,o;Ne(),(o=(t=f.value)==null?void 0:t.updatePopper)==null||o.call(t),e.multiple&&!e.filterable&&X()},Ne=()=>{var t;l.inputWidth=(t=u.value)==null?void 0:t.$el.getBoundingClientRect().width},je=()=>{e.filterable&&l.query!==l.selectedLabel&&(l.query=l.selectedLabel,Z(l.query))},Qe=El(()=>{je()},p.value),Ge=El(t=>{Z(t.target.value)},p.value),ae=t=>{Ol(e.modelValue,t)||n.emit(Vl,t)},Ue=t=>{if(t.target.value.length<=0&&!we()){const o=e.modelValue.slice();o.pop(),n.emit(oe,o),ae(o)}t.target.value.length===1&&e.modelValue.length===0&&(l.currentPlaceholder=l.cachedPlaceHolder)},Xe=(t,o)=>{const r=l.selected.indexOf(o);if(r>-1&&!T.value){const m=e.modelValue.slice();m.splice(r,1),n.emit(oe,m),ae(m),n.emit("remove-tag",o.value)}t.stopPropagation()},se=t=>{t.stopPropagation();const o=e.multiple?[]:"";if(typeof o!="string")for(const r of l.selected)r.isDisabled&&o.push(r.value);n.emit(oe,o),ae(o),l.visible=!1,n.emit("clear")},ke=(t,o)=>{var r;if(e.multiple){const m=(e.modelValue||[]).slice(),k=Ce(m,t.value);k>-1?m.splice(k,1):(e.multipleLimit<=0||m.length