-1||Bt(h,"default"))&&s.push(d)}}}const u=[o,s];return Dt(e)&&n.set(e,u),u}function ZM(e){return e[0]!=="$"}function JM(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function QM(e,t){return JM(e)===JM(t)}function ek(e,t){return He(t)?t.findIndex(r=>QM(r,e)):lt(t)&&QM(t,e)?0:-1}const _N=e=>e[0]==="_"||e==="$stable",X5=e=>He(e)?e.map(Ki):[Ki(e)],rQ=(e,t,r)=>{if(t._n)return t;const n=re((...a)=>X5(t(...a)),r);return n._c=!1,n},bN=(e,t,r)=>{const n=e._ctx;for(const a in e){if(_N(a))continue;const i=e[a];if(lt(i))t[a]=rQ(a,i,n);else if(i!=null){const o=X5(i);t[a]=()=>o}}},wN=(e,t)=>{const r=X5(t);e.slots.default=()=>r},nQ=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=nr(t),E2(t,"_",r)):bN(t,e.slots={})}else e.slots={},t&&wN(e,t);E2(e.slots,p_,1)},aQ=(e,t,r)=>{const{vnode:n,slots:a}=e;let i=!0,o=Fr;if(n.shapeFlag&32){const s=t._;s?r&&s===1?i=!1:(on(a,t),!r&&s===1&&delete a._):(i=!t.$stable,bN(t,a)),o=t}else t&&(wN(e,t),o={default:1});if(i)for(const s in a)!_N(s)&&!(s in o)&&delete a[s]};function xw(e,t,r,n,a=!1){if(He(e)){e.forEach((f,h)=>xw(f,t&&(He(t)?t[h]:t),r,n,a));return}if(wp(n)&&!a)return;const i=n.shapeFlag&4?m_(n.component)||n.component.proxy:n.el,o=a?null:i,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Fr?s.refs={}:s.refs,d=s.setupState;if(u!=null&&u!==l&&(ft(u)?(c[u]=null,Bt(d,u)&&(d[u]=null)):hr(u)&&(u.value=null)),lt(l))Zl(l,s,12,[o,c]);else{const f=ft(l),h=hr(l);if(f||h){const v=()=>{if(e.f){const p=f?Bt(d,l)?d[l]:c[l]:l.value;a?He(p)&&D5(p,i):He(p)?p.includes(i)||p.push(i):f?(c[l]=[i],Bt(d,l)&&(d[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else f?(c[l]=o,Bt(d,l)&&(d[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(v.id=-1,ba(v,r)):v()}}}const ba=LJ;function iQ(e){return oQ(e)}function oQ(e,t){const r=pw();r.__VUE__=!0;const{insert:n,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:h=or,insertStaticContent:v}=e,p=(j,Q,ne,_e=null,xe=null,ue=null,Me=!1,ie=null,ye=!!Q.dynamicChildren)=>{if(j===Q)return;j&&!Ro(j,Q)&&(_e=J(j),Y(j,xe,ue,!0),j=null),Q.patchFlag===-2&&(ye=!1,Q.dynamicChildren=null);const{type:ge,ref:Le,shapeFlag:Ve}=Q;switch(ge){case Wh:g(j,Q,ne,_e);break;case Ln:m(j,Q,ne,_e);break;case D1:j==null&&y(Q,ne,_e,Me);break;case We:D(j,Q,ne,_e,xe,ue,Me,ie,ye);break;default:Ve&1?C(j,Q,ne,_e,xe,ue,Me,ie,ye):Ve&6?I(j,Q,ne,_e,xe,ue,Me,ie,ye):(Ve&64||Ve&128)&&ge.process(j,Q,ne,_e,xe,ue,Me,ie,ye,X)}Le!=null&&xe&&xw(Le,j&&j.ref,ue,Q||j,!Q)},g=(j,Q,ne,_e)=>{if(j==null)n(Q.el=s(Q.children),ne,_e);else{const xe=Q.el=j.el;Q.children!==j.children&&u(xe,Q.children)}},m=(j,Q,ne,_e)=>{j==null?n(Q.el=l(Q.children||""),ne,_e):Q.el=j.el},y=(j,Q,ne,_e)=>{[j.el,j.anchor]=v(j.children,Q,ne,_e,j.el,j.anchor)},_=({el:j,anchor:Q},ne,_e)=>{let xe;for(;j&&j!==Q;)xe=f(j),n(j,ne,_e),j=xe;n(Q,ne,_e)},w=({el:j,anchor:Q})=>{let ne;for(;j&&j!==Q;)ne=f(j),a(j),j=ne;a(Q)},C=(j,Q,ne,_e,xe,ue,Me,ie,ye)=>{Me=Me||Q.type==="svg",j==null?S(Q,ne,_e,xe,ue,Me,ie,ye):M(j,Q,xe,ue,Me,ie,ye)},S=(j,Q,ne,_e,xe,ue,Me,ie)=>{let ye,ge;const{type:Le,props:Ve,shapeFlag:me,transition:Be,dirs:at}=j;if(ye=j.el=o(j.type,ue,Ve&&Ve.is,Ve),me&8?c(ye,j.children):me&16&&T(j.children,ye,null,_e,xe,ue&&Le!=="foreignObject",Me,ie),at&&Iu(j,null,_e,"created"),x(ye,j,j.scopeId,Me,_e),Ve){for(const le in Ve)le!=="value"&&!k1(le)&&i(ye,le,null,Ve[le],ue,j.children,_e,xe,ve);"value"in Ve&&i(ye,"value",null,Ve.value),(ge=Ve.onVnodeBeforeMount)&&To(ge,_e,j)}at&&Iu(j,null,_e,"beforeMount");const ut=(!xe||xe&&!xe.pendingBranch)&&Be&&!Be.persisted;ut&&Be.beforeEnter(ye),n(ye,Q,ne),((ge=Ve&&Ve.onVnodeMounted)||ut||at)&&ba(()=>{ge&&To(ge,_e,j),ut&&Be.enter(ye),at&&Iu(j,null,_e,"mounted")},xe)},x=(j,Q,ne,_e,xe)=>{if(ne&&h(j,ne),_e)for(let ue=0;ue<_e.length;ue++)h(j,_e[ue]);if(xe){let ue=xe.subTree;if(Q===ue){const Me=xe.vnode;x(j,Me,Me.scopeId,Me.slotScopeIds,xe.parent)}}},T=(j,Q,ne,_e,xe,ue,Me,ie,ye=0)=>{for(let ge=ye;ge=t||x<0||d&&T>=i}function m(){var S=lb();if(g(S))return y(S);s=setTimeout(m,p(S))}function y(S){return s=void 0,f&&n?h(S):(n=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function w(){return s===void 0?o:y(lb())}function C(){var S=lb(),x=g(S);if(n=arguments,a=this,l=S,x){if(s===void 0)return v(l);if(d)return clearTimeout(s),s=setTimeout(m,t),h(l)}return s===void 0&&(s=setTimeout(m,t)),o}return C.cancel=_,C.flush=w,C}function _ie(e){return Bs(e)&&sC(e)}function bie(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=Iie){var u=t?null:Die(e);if(u)return mC(u);o=!1,a=dz,l=new d0}else l=t?[]:s;e:for(;++ngetComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Xk=e=>Array.from(e.querySelectorAll(Pie)).filter(t=>Oie(t)&&Rie(t)),Oie=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},L1=function(e,t,...r){let n;t.includes("mouse")||t.includes("click")?n="MouseEvents":t.includes("key")?n="KeyboardEvent":n="HTMLEvents";const a=document.createEvent(n);return a.initEvent(t,...r),e.dispatchEvent(a),e},gz=e=>!e.getAttribute("aria-owns"),mz=(e,t,r)=>{const{parentNode:n}=e;if(!n)return null;const a=n.querySelectorAll(r),i=Array.prototype.indexOf.call(a,e);return a[i+t]||null},P1=e=>{!e||(e.focus(),!gz(e)&&e.click())},Nr=(e,t,{checkForDefaultPrevented:r=!0}={})=>a=>{const i=e==null?void 0:e(a);if(r===!1||!i)return t==null?void 0:t(a)},Zk=e=>t=>t.pointerType==="mouse"?e(t):void 0;var Nie=Object.defineProperty,zie=Object.defineProperties,Bie=Object.getOwnPropertyDescriptors,Jk=Object.getOwnPropertySymbols,Vie=Object.prototype.hasOwnProperty,Fie=Object.prototype.propertyIsEnumerable,Qk=(e,t,r)=>t in e?Nie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hie=(e,t)=>{for(var r in t||(t={}))Vie.call(t,r)&&Qk(e,r,t[r]);if(Jk)for(var r of Jk(t))Fie.call(t,r)&&Qk(e,r,t[r]);return e},Wie=(e,t)=>zie(e,Bie(t));function eA(e,t){var r;const n=Sr();return Wa(()=>{n.value=e()},Wie(Hie({},t),{flush:(r=t==null?void 0:t.flush)!=null?r:"sync"})),Hh(n)}var tA;const Ft=typeof window!="undefined",Gie=e=>typeof e!="undefined",mn=e=>typeof e=="boolean",Uie=e=>typeof e=="function",pt=e=>typeof e=="number",Yie=e=>typeof e=="string",ch=()=>{},Kie=Ft&&((tA=window==null?void 0:window.navigator)==null?void 0:tA.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function dh(e){return typeof e=="function"?e():b(e)}function yz(e,t){function r(...n){return new Promise((a,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(a).catch(i)})}return r}function jie(e,t={}){let r,n,a=ch;const i=s=>{clearTimeout(s),a(),a=ch};return s=>{const l=dh(e),u=dh(t.maxWait);return r&&i(r),l<=0||u!==void 0&&u<=0?(n&&(i(n),n=null),Promise.resolve(s())):new Promise((c,d)=>{a=t.rejectOnCancel?d:c,u&&!n&&(n=setTimeout(()=>{r&&i(r),n=null,c(s())},u)),r=setTimeout(()=>{n&&i(n),n=null,c(s())},l)})}}function qie(e,t=!0,r=!0,n=!1){let a=0,i,o=!0,s=ch,l;const u=()=>{i&&(clearTimeout(i),i=void 0,s(),s=ch)};return d=>{const f=dh(e),h=Date.now()-a,v=()=>l=d();return u(),f<=0?(a=Date.now(),v()):(h>f&&(r||!o)?(a=Date.now(),v()):t&&(l=new Promise((p,g)=>{s=n?g:p,i=setTimeout(()=>{a=Date.now(),o=!0,p(v()),u()},Math.max(0,f-h))})),!r&&!i&&(i=setTimeout(()=>o=!0,f)),o=!1,l)}}function Xie(e){return e}function T_(e){return RO()?(OO(e),!0):!1}function Zie(e,t=200,r={}){return yz(jie(t,r),e)}function Jie(e,t=200,r={}){const n=W(e.value),a=Zie(()=>{n.value=e.value},t,r);return Te(e,()=>a()),n}function _z(e,t=200,r=!1,n=!0,a=!1){return yz(qie(t,r,n,a),e)}function yC(e,t=!0){Ct()?bt(e):t?e():Ge(e)}function od(e,t,r={}){const{immediate:n=!0}=r,a=W(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function s(){a.value=!1,o()}function l(...u){o(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...u)},dh(t))}return n&&(a.value=!0,Ft&&l()),T_(s),{isPending:Hh(a),start:l,stop:s}}function vi(e){var t;const r=dh(e);return(t=r==null?void 0:r.$el)!=null?t:r}const gg=Ft?window:void 0,Qie=Ft?window.document:void 0;function Ar(...e){let t,r,n,a;if(Yie(e[0])||Array.isArray(e[0])?([r,n,a]=e,t=gg):[t,r,n,a]=e,!t)return ch;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},s=(c,d,f,h)=>(c.addEventListener(d,f,h),()=>c.removeEventListener(d,f,h)),l=Te(()=>[vi(t),dh(a)],([c,d])=>{o(),c&&i.push(...r.flatMap(f=>n.map(h=>s(c,f,h,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return T_(u),u}let rA=!1;function _C(e,t,r={}){const{window:n=gg,ignore:a=[],capture:i=!0,detectIframe:o=!1}=r;if(!n)return;Kie&&!rA&&(rA=!0,Array.from(n.document.body.children).forEach(f=>f.addEventListener("click",ch)));let s=!0;const l=f=>a.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(v=>v===f.target||f.composedPath().includes(v));{const v=vi(h);return v&&(f.target===v||f.composedPath().includes(v))}}),c=[Ar(n,"click",f=>{const h=vi(e);if(!(!h||h===f.target||f.composedPath().includes(h))){if(f.detail===0&&(s=!l(f)),!s){s=!0;return}t(f)}},{passive:!0,capture:i}),Ar(n,"pointerdown",f=>{const h=vi(e);h&&(s=!f.composedPath().includes(h)&&!l(f))},{passive:!0}),o&&Ar(n,"blur",f=>{var h;const v=vi(e);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(v!=null&&v.contains(n.document.activeElement))&&t(f)})].filter(Boolean);return()=>c.forEach(f=>f())}function eoe(e,t=!1){const r=W(),n=()=>r.value=Boolean(e());return n(),yC(n,t),r}function toe(e){return JSON.parse(JSON.stringify(e))}const $w=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Lw="__vueuse_ssr_handlers__";$w[Lw]=$w[Lw]||{};$w[Lw];function roe({document:e=Qie}={}){if(!e)return W("visible");const t=W(e.visibilityState);return Ar(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var nA=Object.getOwnPropertySymbols,noe=Object.prototype.hasOwnProperty,aoe=Object.prototype.propertyIsEnumerable,ioe=(e,t)=>{var r={};for(var n in e)noe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&nA)for(var n of nA(e))t.indexOf(n)<0&&aoe.call(e,n)&&(r[n]=e[n]);return r};function Zn(e,t,r={}){const n=r,{window:a=gg}=n,i=ioe(n,["window"]);let o;const s=eoe(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=Te(()=>vi(e),d=>{l(),s.value&&a&&d&&(o=new ResizeObserver(t),o.observe(d,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return T_(c),{isSupported:s,stop:c}}function aA(e,t={}){const{reset:r=!0,windowResize:n=!0,windowScroll:a=!0,immediate:i=!0}=t,o=W(0),s=W(0),l=W(0),u=W(0),c=W(0),d=W(0),f=W(0),h=W(0);function v(){const p=vi(e);if(!p){r&&(o.value=0,s.value=0,l.value=0,u.value=0,c.value=0,d.value=0,f.value=0,h.value=0);return}const g=p.getBoundingClientRect();o.value=g.height,s.value=g.bottom,l.value=g.left,u.value=g.right,c.value=g.top,d.value=g.width,f.value=g.x,h.value=g.y}return Zn(e,v),Te(()=>vi(e),p=>!p&&v()),a&&Ar("scroll",v,{capture:!0,passive:!0}),n&&Ar("resize",v,{passive:!0}),yC(()=>{i&&v()}),{height:o,bottom:s,left:l,right:u,top:c,width:d,x:f,y:h,update:v}}var iA;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(iA||(iA={}));var ooe=Object.defineProperty,oA=Object.getOwnPropertySymbols,soe=Object.prototype.hasOwnProperty,loe=Object.prototype.propertyIsEnumerable,sA=(e,t,r)=>t in e?ooe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uoe=(e,t)=>{for(var r in t||(t={}))soe.call(t,r)&&sA(e,r,t[r]);if(oA)for(var r of oA(t))loe.call(t,r)&&sA(e,r,t[r]);return e};const coe={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};uoe({linear:Xie},coe);function doe(e,t,r,n={}){var a,i,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:d}=n,f=Ct(),h=r||(f==null?void 0:f.emit)||((a=f==null?void 0:f.$emit)==null?void 0:a.bind(f))||((o=(i=f==null?void 0:f.proxy)==null?void 0:i.$emit)==null?void 0:o.bind(f==null?void 0:f.proxy));let v=u;t||(t="modelValue"),v=u||v||`update:${t.toString()}`;const p=m=>s?Uie(s)?s(m):toe(m):m,g=()=>Gie(e[t])?p(e[t]):d;if(l){const m=g(),y=W(m);return Te(()=>e[t],_=>y.value=p(_)),Te(y,_=>{(_!==e[t]||c)&&h(v,_)},{deep:c}),y}else return O({get(){return g()},set(m){h(v,m)}})}function foe({window:e=gg}={}){if(!e)return W(!1);const t=W(e.document.hasFocus());return Ar(e,"blur",()=>{t.value=!1}),Ar(e,"focus",()=>{t.value=!0}),t}function hoe(e={}){const{window:t=gg,initialWidth:r=1/0,initialHeight:n=1/0,listenOrientation:a=!0,includeScrollbar:i=!0}=e,o=W(r),s=W(n),l=()=>{t&&(i?(o.value=t.innerWidth,s.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return l(),yC(l),Ar("resize",l,{passive:!0}),a&&Ar("orientationchange",l,{passive:!0}),{width:o,height:s}}const voe=(e,t)=>{if(!Ft||!e||!t)return!1;const r=e.getBoundingClientRect();let n;return t instanceof Element?n=t.getBoundingClientRect():n={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},r.top{var T;const M=b(h),k=(T=n.items.value.length)!=null?T:Number.NaN,E=C===S;!M&&!In(x)&&(f.value=E||C===x),!E&&k>2&&n.loop&&(C=g(C,S,k));const D=b(v);u.value=E,M?(d.value=Math.round(Math.abs(C-S))<=1,s.value=m(C,S),l.value=b(u)?1:i):s.value=y(C,S,D),c.value=!0};function w(){if(n&&b(h)){const C=n.items.value.findIndex(({uid:S})=>S===a.uid);n.setActiveItem(C)}}return bt(()=>{n.addItem({props:t,states:Qt({hover:o,translate:s,scale:l,active:u,ready:c,inStage:d,animating:f}),uid:a.uid,translateItem:_})}),_d(()=>{n.removeItem(a.uid)}),(C,S)=>vt((A(),P("div",{class:V([b(r).e("item"),b(r).is("active",u.value),b(r).is("in-stage",d.value),b(r).is("hover",o.value),b(r).is("animating",f.value),{[b(r).em("item","card")]:b(h)}]),style:Ke(b(p)),onClick:w},[b(h)?vt((A(),P("div",{key:0,class:V(b(r).e("mask"))},null,2)),[[Yt,!u.value]]):se("v-if",!0),we(C.$slots,"default")],6)),[[Yt,c.value]])}});var yV=Ie(hOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const vOe=xt(cOe,{CarouselItem:yV}),pOe=Br(yV),gOe={modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:{type:Number,default:void 0},max:{type:Number,default:void 0},size:Ya,id:{type:String,default:void 0},label:{type:String,default:void 0},fill:{type:String,default:void 0},textColor:{type:String,default:void 0},tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}},_V={modelValue:{type:[Number,String,Boolean],default:()=>{}},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Ya,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},Yh=()=>{const{form:e,formItem:t}=qa(),r=Ye("CheckboxGroup",{}),n=O(()=>r&&(r==null?void 0:r.name)==="ElCheckboxGroup"),a=O(()=>t==null?void 0:t.size);return{isGroup:n,checkboxGroup:r,elForm:e,elFormItemSize:a,elFormItem:t}},mOe=(e,{elFormItem:t})=>{const{inputId:r,isLabeledByFormItem:n}=Cu(e,{formItemContext:t});return{isLabeledByFormItem:n,groupId:r}},yOe=e=>{const t=W(!1),{emit:r}=Ct(),{isGroup:n,checkboxGroup:a,elFormItem:i}=Yh(),o=W(!1);return{model:O({get(){var l,u;return n.value?(l=a.modelValue)==null?void 0:l.value:(u=e.modelValue)!=null?u:t.value},set(l){var u;n.value&&Array.isArray(l)?(o.value=a.max!==void 0&&l.length>a.max.value,o.value===!1&&((u=a==null?void 0:a.changeEvent)==null||u.call(a,l))):(r(Tt,l),t.value=l)}}),isGroup:n,isLimitExceeded:o,elFormItem:i}},_Oe=(e,t,{model:r})=>{const{isGroup:n,checkboxGroup:a}=Yh(),i=W(!1),o=en(a==null?void 0:a.checkboxGroupSize,{prop:!0}),s=O(()=>{const c=r.value;return Bh(c)==="[object Boolean]"?c:Array.isArray(c)?c.map(nr).includes(e.label):c!=null?c===e.trueLabel:!!c}),l=en(O(()=>{var c;return n.value?(c=a==null?void 0:a.checkboxGroupSize)==null?void 0:c.value:void 0})),u=O(()=>!!(t.default||e.label));return{isChecked:s,focus:i,size:o,checkboxSize:l,hasOwnLabel:u}},bOe=(e,{model:t,isChecked:r})=>{const{elForm:n,isGroup:a,checkboxGroup:i}=Yh(),o=O(()=>{var l,u;const c=(l=i.max)==null?void 0:l.value,d=(u=i.min)==null?void 0:u.value;return!!(c||d)&&t.value.length>=c&&!r.value||t.value.length<=d&&r.value});return{isDisabled:O(()=>{var l,u;const c=e.disabled||(n==null?void 0:n.disabled);return(u=a.value?((l=i.disabled)==null?void 0:l.value)||c||o.value:c)!=null?u:!1}),isLimitDisabled:o}},wOe=(e,{model:t})=>{function r(){Array.isArray(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&r()},SOe=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:a,isLabeledByFormItem:i})=>{const{elFormItem:o,checkboxGroup:s}=Yh(),{emit:l}=Ct();function u(v){var p,g;return v===e.trueLabel||v===!0?(p=e.trueLabel)!=null?p:!0:(g=e.falseLabel)!=null?g:!1}function c(v,p){l("change",u(v),p)}function d(v){if(r.value)return;const p=v.target;l("change",u(p.checked),v)}async function f(v){r.value||!n.value&&!a.value&&i.value&&(t.value=u([!1,e.falseLabel].includes(t.value)),await Ge(),c(t.value,v))}const h=O(()=>{var v;return((v=s.validateEvent)==null?void 0:v.value)||e.validateEvent});return Te(()=>e.modelValue,()=>{h.value&&(o==null||o.validate("change").catch(v=>void 0))}),{handleChange:d,onClickRoot:f}},bV={[Tt]:e=>ft(e)||pt(e)||mn(e),change:e=>ft(e)||pt(e)||mn(e)},COe={[Tt]:e=>He(e),change:e=>He(e)},wV=(e,t)=>{const{model:r,isGroup:n,isLimitExceeded:a,elFormItem:i}=yOe(e),{focus:o,size:s,isChecked:l,checkboxSize:u,hasOwnLabel:c}=_Oe(e,t,{model:r}),{isDisabled:d}=bOe(e,{model:r,isChecked:l}),{inputId:f,isLabeledByFormItem:h}=Cu(e,{formItemContext:i,disableIdGeneration:c,disableIdManagement:n}),{handleChange:v,onClickRoot:p}=SOe(e,{model:r,isLimitExceeded:a,hasOwnLabel:c,isDisabled:d,isLabeledByFormItem:h});return wOe(e,{model:r}),{elFormItem:i,inputId:f,isLabeledByFormItem:h,isChecked:l,isDisabled:d,isGroup:n,checkboxSize:u,hasOwnLabel:c,model:r,handleChange:v,onClickRoot:p,focus:o,size:s}},xOe=["tabindex","role","aria-checked"],TOe=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],MOe=["id","aria-hidden","disabled","value","name","tabindex"],kOe={name:"ElCheckbox"},AOe=Ce({...kOe,props:_V,emits:bV,setup(e){const t=e,r=Vn(),{inputId:n,isLabeledByFormItem:a,isChecked:i,isDisabled:o,checkboxSize:s,hasOwnLabel:l,model:u,handleChange:c,onClickRoot:d,focus:f}=wV(t,r),h=Se("checkbox");return(v,p)=>(A(),de(Et(!b(l)&&b(a)?"span":"label"),{class:V([b(h).b(),b(h).m(b(s)),b(h).is("disabled",b(o)),b(h).is("bordered",v.border),b(h).is("checked",b(i))]),"aria-controls":v.indeterminate?v.controls:null,onClick:b(d)},{default:re(()=>[$("span",{class:V([b(h).e("input"),b(h).is("disabled",b(o)),b(h).is("checked",b(i)),b(h).is("indeterminate",v.indeterminate),b(h).is("focus",b(f))]),tabindex:v.indeterminate?0:void 0,role:v.indeterminate?"checkbox":void 0,"aria-checked":v.indeterminate?"mixed":void 0},[v.trueLabel||v.falseLabel?vt((A(),P("input",{key:0,id:b(n),"onUpdate:modelValue":p[0]||(p[0]=g=>hr(u)?u.value=g:null),class:V(b(h).e("original")),type:"checkbox","aria-hidden":v.indeterminate?"true":"false",name:v.name,tabindex:v.tabindex,disabled:b(o),"true-value":v.trueLabel,"false-value":v.falseLabel,onChange:p[1]||(p[1]=(...g)=>b(c)&&b(c)(...g)),onFocus:p[2]||(p[2]=g=>f.value=!0),onBlur:p[3]||(p[3]=g=>f.value=!1)},null,42,TOe)),[[R2,b(u)]]):vt((A(),P("input",{key:1,id:b(n),"onUpdate:modelValue":p[4]||(p[4]=g=>hr(u)?u.value=g:null),class:V(b(h).e("original")),type:"checkbox","aria-hidden":v.indeterminate?"true":"false",disabled:b(o),value:v.label,name:v.name,tabindex:v.tabindex,onChange:p[5]||(p[5]=(...g)=>b(c)&&b(c)(...g)),onFocus:p[6]||(p[6]=g=>f.value=!0),onBlur:p[7]||(p[7]=g=>f.value=!1)},null,42,MOe)),[[R2,b(u)]]),$("span",{class:V(b(h).e("inner"))},null,2)],10,xOe),b(l)?(A(),P("span",{key:0,class:V(b(h).e("label"))},[we(v.$slots,"default"),v.$slots.default?se("v-if",!0):(A(),P(We,{key:0},[Ut(De(v.label),1)],64))],2)):se("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var EOe=Ie(AOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const DOe=["name","tabindex","disabled","true-value","false-value"],IOe=["name","tabindex","disabled","value"],$Oe={name:"ElCheckboxButton"},LOe=Ce({...$Oe,props:_V,emits:bV,setup(e){const t=e,r=Vn(),{focus:n,isChecked:a,isDisabled:i,size:o,model:s,handleChange:l}=wV(t,r),{checkboxGroup:u}=Yh(),c=Se("checkbox"),d=O(()=>{var f,h,v,p;const g=(h=(f=u==null?void 0:u.fill)==null?void 0:f.value)!=null?h:"";return{backgroundColor:g,borderColor:g,color:(p=(v=u==null?void 0:u.textColor)==null?void 0:v.value)!=null?p:"",boxShadow:g?`-1px 0 0 0 ${g}`:void 0}});return(f,h)=>(A(),P("label",{class:V([b(c).b("button"),b(c).bm("button",b(o)),b(c).is("disabled",b(i)),b(c).is("checked",b(a)),b(c).is("focus",b(n))])},[f.trueLabel||f.falseLabel?vt((A(),P("input",{key:0,"onUpdate:modelValue":h[0]||(h[0]=v=>hr(s)?s.value=v:null),class:V(b(c).be("button","original")),type:"checkbox",name:f.name,tabindex:f.tabindex,disabled:b(i),"true-value":f.trueLabel,"false-value":f.falseLabel,onChange:h[1]||(h[1]=(...v)=>b(l)&&b(l)(...v)),onFocus:h[2]||(h[2]=v=>n.value=!0),onBlur:h[3]||(h[3]=v=>n.value=!1)},null,42,DOe)),[[R2,b(s)]]):vt((A(),P("input",{key:1,"onUpdate:modelValue":h[4]||(h[4]=v=>hr(s)?s.value=v:null),class:V(b(c).be("button","original")),type:"checkbox",name:f.name,tabindex:f.tabindex,disabled:b(i),value:f.label,onChange:h[5]||(h[5]=(...v)=>b(l)&&b(l)(...v)),onFocus:h[6]||(h[6]=v=>n.value=!0),onBlur:h[7]||(h[7]=v=>n.value=!1)},null,42,IOe)),[[R2,b(s)]]),f.$slots.default||f.label?(A(),P("span",{key:2,class:V(b(c).be("button","inner")),style:Ke(b(a)?b(d):void 0)},[we(f.$slots,"default",{},()=>[Ut(De(f.label),1)])],6)):se("v-if",!0)],2))}});var SV=Ie(LOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const POe={name:"ElCheckboxGroup"},ROe=Ce({...POe,props:gOe,emits:COe,setup(e,{emit:t}){const r=e,{elFormItem:n}=Yh(),{groupId:a,isLabeledByFormItem:i}=mOe(r,{elFormItem:n}),o=en(),s=Se("checkbox"),l=c=>{t(Tt,c),Ge(()=>{t("change",c)})},u=O({get(){return r.modelValue},set(c){l(c)}});return Mt("CheckboxGroup",{name:"ElCheckboxGroup",...cn(r),modelValue:u,checkboxGroupSize:o,changeEvent:l}),Te(()=>r.modelValue,()=>{r.validateEvent&&(n==null||n.validate("change").catch(c=>void 0))}),(c,d)=>{var f;return A(),de(Et(c.tag),{id:b(a),class:V(b(s).b("group")),role:"group","aria-label":b(i)?void 0:c.label||"checkbox-group","aria-labelledby":b(i)?(f=b(n))==null?void 0:f.labelId:void 0},{default:re(()=>[we(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var CV=Ie(ROe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Ai=xt(EOe,{CheckboxButton:SV,CheckboxGroup:CV}),OOe=Br(SV),xV=Br(CV),TV=Oe({size:Ya,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),NOe=Oe({...TV,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),MV={[Tt]:e=>ft(e)||pt(e)||mn(e),[$r]:e=>ft(e)||pt(e)||mn(e)},kV=(e,t)=>{const r=W(),n=Ye(Qz,void 0),a=O(()=>!!n),i=O({get(){return a.value?n.modelValue:e.modelValue},set(c){a.value?n.changeEvent(c):t&&t(Tt,c),r.value.checked=e.modelValue===e.label}}),o=en(O(()=>n==null?void 0:n.size)),s=ol(O(()=>n==null?void 0:n.disabled)),l=W(!1),u=O(()=>s.value||a.value&&i.value!==e.label?-1:0);return{radioRef:r,isGroup:a,radioGroup:n,focus:l,size:o,disabled:s,tabIndex:u,modelValue:i}},zOe=["value","name","disabled"],BOe={name:"ElRadio"},VOe=Ce({...BOe,props:NOe,emits:MV,setup(e,{emit:t}){const r=e,n=Se("radio"),{radioRef:a,radioGroup:i,focus:o,size:s,disabled:l,modelValue:u}=kV(r,t);function c(){Ge(()=>t("change",u.value))}return(d,f)=>{var h;return A(),P("label",{class:V([b(n).b(),b(n).is("disabled",b(l)),b(n).is("focus",b(o)),b(n).is("bordered",d.border),b(n).is("checked",b(u)===d.label),b(n).m(b(s))])},[$("span",{class:V([b(n).e("input"),b(n).is("disabled",b(l)),b(n).is("checked",b(u)===d.label)])},[vt($("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":f[0]||(f[0]=v=>hr(u)?u.value=v:null),class:V(b(n).e("original")),value:d.label,name:d.name||((h=b(i))==null?void 0:h.name),disabled:b(l),type:"radio",onFocus:f[1]||(f[1]=v=>o.value=!0),onBlur:f[2]||(f[2]=v=>o.value=!1),onChange:c},null,42,zOe),[[ON,b(u)]]),$("span",{class:V(b(n).e("inner"))},null,2)],2),$("span",{class:V(b(n).e("label")),onKeydown:f[3]||(f[3]=it(()=>{},["stop"]))},[we(d.$slots,"default",{},()=>[Ut(De(d.label),1)])],34)],2)}}});var FOe=Ie(VOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const HOe=Oe({...TV,name:{type:String,default:""}}),WOe=["value","name","disabled"],GOe={name:"ElRadioButton"},UOe=Ce({...GOe,props:HOe,setup(e){const t=e,r=Se("radio"),{radioRef:n,focus:a,size:i,disabled:o,modelValue:s,radioGroup:l}=kV(t),u=O(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(c,d)=>{var f;return A(),P("label",{class:V([b(r).b("button"),b(r).is("active",b(s)===c.label),b(r).is("disabled",b(o)),b(r).is("focus",b(a)),b(r).bm("button",b(i))])},[vt($("input",{ref_key:"radioRef",ref:n,"onUpdate:modelValue":d[0]||(d[0]=h=>hr(s)?s.value=h:null),class:V(b(r).be("button","original-radio")),value:c.label,type:"radio",name:c.name||((f=b(l))==null?void 0:f.name),disabled:b(o),onFocus:d[1]||(d[1]=h=>a.value=!0),onBlur:d[2]||(d[2]=h=>a.value=!1)},null,42,WOe),[[ON,b(s)]]),$("span",{class:V(b(r).be("button","inner")),style:Ke(b(s)===c.label?b(u):{}),onKeydown:d[3]||(d[3]=it(()=>{},["stop"]))},[we(c.$slots,"default",{},()=>[Ut(De(c.label),1)])],38)],2)}}});var AV=Ie(UOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const YOe=Oe({id:{type:String,default:void 0},size:Ya,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),KOe=MV,jOe=["id","aria-label","aria-labelledby"],qOe={name:"ElRadioGroup"},XOe=Ce({...qOe,props:YOe,emits:KOe,setup(e,{emit:t}){const r=e,n=Se("radio"),a=lo(),i=W(),{formItem:o}=qa(),{inputId:s,isLabeledByFormItem:l}=Cu(r,{formItemContext:o}),u=d=>{t(Tt,d),Ge(()=>t("change",d))};bt(()=>{const d=i.value.querySelectorAll("[type=radio]"),f=d[0];!Array.from(d).some(h=>h.checked)&&f&&(f.tabIndex=0)});const c=O(()=>r.name||a.value);return Mt(Qz,Qt({...cn(r),changeEvent:u,name:c})),Te(()=>r.modelValue,()=>{r.validateEvent&&(o==null||o.validate("change").catch(d=>void 0))}),(d,f)=>(A(),P("div",{id:b(s),ref_key:"radioGroupRef",ref:i,class:V(b(n).b("group")),role:"radiogroup","aria-label":b(l)?void 0:d.label||"radio-group","aria-labelledby":b(l)?b(o).labelId:void 0},[we(d.$slots,"default")],10,jOe))}});var EV=Ie(XOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const DV=xt(FOe,{RadioButton:AV,RadioGroup:EV}),ZOe=Br(EV),JOe=Br(AV);var QOe=Ce({name:"NodeContent",setup(){return{ns:Se("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:r}=this.$parent,{data:n,label:a}=t,{renderLabelFn:i}=r;return Xe("span",{class:e.e("label")},i?i({node:t,data:n}):a)}});const ex=Symbol(),eNe=Ce({name:"ElCascaderNode",components:{ElCheckbox:Ai,ElRadio:DV,NodeContent:QOe,ElIcon:Ue,Check:Uh,Loading:al,ArrowRight:jn},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const r=Ye(ex),n=Se("cascader-node"),a=O(()=>r.isHoverMenu),i=O(()=>r.config.multiple),o=O(()=>r.config.checkStrictly),s=O(()=>{var S;return(S=r.checkedNodes[0])==null?void 0:S.uid}),l=O(()=>e.node.isDisabled),u=O(()=>e.node.isLeaf),c=O(()=>o.value&&!u.value||!l.value),d=O(()=>h(r.expandingNode)),f=O(()=>o.value&&r.checkedNodes.some(h)),h=S=>{var x;const{level:T,uid:M}=e.node;return((x=S==null?void 0:S.pathNodes[T-1])==null?void 0:x.uid)===M},v=()=>{d.value||r.expandNode(e.node)},p=S=>{const{node:x}=e;S!==x.checked&&r.handleCheckChange(x,S)},g=()=>{r.lazyLoad(e.node,()=>{u.value||v()})},m=S=>{!a.value||(y(),!u.value&&t("expand",S))},y=()=>{const{node:S}=e;!c.value||S.loading||(S.loaded?v():g())},_=()=>{a.value&&!u.value||(u.value&&!l.value&&!o.value&&!i.value?C(!0):y())},w=S=>{o.value?(p(S),e.node.loaded&&v()):C(S)},C=S=>{e.node.loaded?(p(S),!o.value&&v()):g()};return{panel:r,isHoverMenu:a,multiple:i,checkStrictly:o,checkedNodeId:s,isDisabled:l,isLeaf:u,expandable:c,inExpandingPath:d,inCheckedPath:f,ns:n,handleHoverExpand:m,handleExpand:y,handleClick:_,handleCheck:C,handleSelectCheck:w}}}),tNe=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],rNe=$("span",null,null,-1);function nNe(e,t,r,n,a,i){const o=qe("el-checkbox"),s=qe("el-radio"),l=qe("check"),u=qe("el-icon"),c=qe("node-content"),d=qe("loading"),f=qe("arrow-right");return A(),P("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:V([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...h)=>e.handleHoverExpand&&e.handleHoverExpand(...h)),onFocus:t[3]||(t[3]=(...h)=>e.handleHoverExpand&&e.handleHoverExpand(...h)),onClick:t[4]||(t[4]=(...h)=>e.handleClick&&e.handleClick(...h))},[se(" prefix "),e.multiple?(A(),de(o,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=it(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(A(),de(s,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=it(()=>{},["stop"]))},{default:re(()=>[se(`
- Add an empty element to avoid render label,
- do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
- `),rNe]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(A(),de(u,{key:2,class:V(e.ns.e("prefix"))},{default:re(()=>[Z(l)]),_:1},8,["class"])):se("v-if",!0),se(" content "),Z(c),se(" postfix "),e.isLeaf?se("v-if",!0):(A(),P(We,{key:3},[e.node.loading?(A(),de(u,{key:0,class:V([e.ns.is("loading"),e.ns.e("postfix")])},{default:re(()=>[Z(d)]),_:1},8,["class"])):(A(),de(u,{key:1,class:V(["arrow-right",e.ns.e("postfix")])},{default:re(()=>[Z(f)]),_:1},8,["class"]))],64))],42,tNe)}var aNe=Ie(eNe,[["render",nNe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const iNe=Ce({name:"ElCascaderMenu",components:{Loading:al,ElIcon:Ue,ElScrollbar:ll,ElCascaderNode:aNe},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=Ct(),r=Se("cascader-menu"),{t:n}=Xt(),a=_g();let i=null,o=null;const s=Ye(ex),l=W(null),u=O(()=>!e.nodes.length),c=O(()=>!s.initialLoaded),d=O(()=>`cascader-menu-${a}-${e.index}`),f=g=>{i=g.target},h=g=>{if(!(!s.isHoverMenu||!i||!l.value))if(i.contains(g.target)){v();const m=t.vnode.el,{left:y}=m.getBoundingClientRect(),{offsetWidth:_,offsetHeight:w}=m,C=g.clientX-y,S=i.offsetTop,x=S+i.offsetHeight;l.value.innerHTML=`
-
{var ke;if(!t||!t.store)return 0;const{treeData:ce}=t.store.states;let Ae=0;const oe=(ke=ce.value[le])==null?void 0:ke.children;return oe&&(Ae+=oe.length,oe.forEach($e=>{Ae+=ae($e)})),Ae},fe=(le,ke)=>{Array.isArray(le)||(le=[le]);const ce={};return le.forEach(Ae=>{x.value[Ae.id]=ke,ce[Ae.columnKey||Ae.id]=ke}),ce},ve=(le,ke,ce)=>{M.value&&M.value!==le&&(M.value.order=null),M.value=le,k.value=ke,E.value=ce},J=()=>{let le=b(i);Object.keys(x.value).forEach(ke=>{const ce=x.value[ke];if(!ce||ce.length===0)return;const Ae=KF({columns:u.value},ke);Ae&&Ae.filterMethod&&(le=le.filter(oe=>ce.some($e=>Ae.filterMethod.call(null,$e,oe,Ae))))}),T.value=le},U=()=>{a.value=oje(T.value,{sortingColumn:M.value,sortProp:k.value,sortOrder:E.value})},X=(le=void 0)=>{le&&le.filter||J(),U()},ee=le=>{const{tableHeaderRef:ke}=t.refs;if(!ke)return;const ce=Object.assign({},ke.filterPanels),Ae=Object.keys(ce);if(!!Ae.length)if(typeof le=="string"&&(le=[le]),Array.isArray(le)){const oe=le.map($e=>ZKe({columns:u.value},$e));Ae.forEach($e=>{const Ne=oe.find(Fe=>Fe.id===$e);Ne&&(Ne.filteredValue=[])}),t.store.commit("filterChange",{column:oe,values:[],silent:!0,multi:!0})}else Ae.forEach(oe=>{const $e=u.value.find(Ne=>Ne.id===oe);$e&&($e.filteredValue=[])}),x.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},he=()=>{!M.value||(ve(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:j,toggleRowExpansion:Q,updateExpandRows:ne,states:_e,isRowExpanded:xe}=nje({data:a,rowKey:n}),{updateTreeExpandKeys:ue,toggleTreeExpansion:Me,updateTreeData:ie,loadOrToggle:ye,states:ge}=ije({data:a,rowKey:n}),{updateCurrentRowData:Le,updateCurrentRow:Ve,setCurrentRowKey:me,states:Be}=aje({data:a,rowKey:n});return{assertRowKey:I,updateColumns:L,scheduleLayout:R,isSelected:N,clearSelection:F,cleanSelection:B,getSelectionRows:z,toggleRowSelection:G,_toggleAllSelection:K,toggleAllSelection:null,updateSelectionByRowKey:Y,updateAllSelected:q,updateFilters:fe,updateCurrentRow:Ve,updateSort:ve,execFilter:J,execSort:U,execQuery:X,clearFilter:ee,clearSort:he,toggleRowExpansion:Q,setExpandRowKeysAdapter:le=>{j(le),ue(le)},setCurrentRowKey:me,toggleRowExpansionAdapter:(le,ke)=>{u.value.some(({type:Ae})=>Ae==="expand")?Q(le,ke):Me(le,ke)},isRowExpanded:xe,updateExpandRows:ne,updateCurrentRowData:Le,loadOrToggle:ye,updateTreeData:ie,states:{tableSize:r,rowKey:n,data:a,_data:i,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:d,leafColumns:f,fixedLeafColumns:h,rightFixedLeafColumns:v,leafColumnsLength:p,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:m,isAllSelected:y,selection:_,reserveSelection:w,selectOnIndeterminate:C,selectable:S,filters:x,filteredData:T,sortingColumn:M,sortProp:k,sortOrder:E,hoverRow:D,..._e,...ge,...Be}}}function g8(e,t){return e.map(r=>{var n;return r.id===t.id?t:((n=r.children)!=null&&n.length&&(r.children=g8(r.children,t)),r)})}function XF(e){e.forEach(t=>{var r,n;t.no=(r=t.getColumnIndex)==null?void 0:r.call(t),(n=t.children)!=null&&n.length&&XF(t.children)}),e.sort((t,r)=>t.no-r.no)}function lje(){const e=Ct(),t=sje();return{ns:Se("table"),...t,mutations:{setData(o,s){const l=b(o._data)!==s;o.data.value=s,o._data.value=s,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),b(o.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(o,s,l){const u=b(o._columns);let c=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),c=g8(u,l)):(u.push(s),c=u),XF(c),o._columns.value=c,s.type==="selection"&&(o.selectable.value=s.selectable,o.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(o,s,l){const u=b(o._columns)||[];if(l)l.children.splice(l.children.findIndex(c=>c.id===s.id),1),l.children.length===0&&delete l.children,o._columns.value=g8(u,l);else{const c=u.indexOf(s);c>-1&&(u.splice(c,1),o._columns.value=u)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:c}=s;if(l){const d=b(o.columns).find(f=>f.property===l);d&&(d.order=u,e.store.updateSort(d,l,u),e.store.commit("changeSortCondition",{init:c}))}},changeSortCondition(o,s){const{sortingColumn:l,sortProp:u,sortOrder:c}=o,d=b(l),f=b(u),h=b(c);h===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:d,prop:f,order:h}),e.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:c}=s,d=e.store.updateFilters(l,u);e.store.execQuery(),c||e.emit("filter-change",d),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(o,s){o.hoverRow.value=s},setCurrentRow(o,s){e.store.updateCurrentRow(s)}},commit:function(o,...s){const l=e.store.mutations;if(l[o])l[o].apply(e,[e.store.states].concat(s));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){Ge(()=>e.layout.updateScrollY.apply(e.layout))}}}const Dp={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function uje(e,t){if(!e)throw new Error("Table is required.");const r=lje();return r.toggleAllSelection=da(r._toggleAllSelection,10),Object.keys(Dp).forEach(n=>{ZF(JF(t,n),n,r)}),cje(r,t),r}function cje(e,t){Object.keys(Dp).forEach(r=>{Te(()=>JF(t,r),n=>{ZF(n,r,e)})})}function ZF(e,t,r){let n=e,a=Dp[t];typeof Dp[t]=="object"&&(a=a.key,n=n||Dp[t].default),r.states[a].value=n}function JF(e,t){if(t.includes(".")){const r=t.split(".");let n=e;return r.forEach(a=>{n=n[a]}),n}else return e[t]}class dje{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=W(null),this.scrollX=W(!1),this.scrollY=W(!1),this.bodyWidth=W(null),this.fixedWidth=W(null),this.rightFixedWidth=W(null),this.gutterWidth=0;for(const r in t)Bt(t,r)&&(hr(this[r])?this[r].value=t[r]:this[r]=t[r]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const r=this.table.refs.scrollBarRef;if(this.table.vnode.el&&r){let n=!0;const a=this.scrollY.value;return n=r.wrap$.scrollHeight>r.wrap$.clientHeight,this.scrollY.value=n,a!==n}return!1}setHeight(t,r="height"){if(!Ft)return;const n=this.table.vnode.el;if(t=QKe(t),this.height.value=Number(t),!n&&(t||t===0))return Ge(()=>this.setHeight(t,r));typeof t=="number"?(n.style[r]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(n.style[r]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(n=>{n.isColumnGroup?t.push.apply(t,n.columns):t.push(n)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let r=t;for(;r.tagName!=="DIV";){if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}updateColumnsWidth(){if(!Ft)return;const t=this.fit,r=this.table.vnode.el.clientWidth;let n=0;const a=this.getFlattenColumns(),i=a.filter(l=>typeof l.width!="number");if(a.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),i.length>0&&t){if(a.forEach(l=>{n+=Number(l.width||l.minWidth||80)}),n<=r){this.scrollX.value=!1;const l=r-n;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const u=i.reduce((f,h)=>f+Number(h.minWidth||80),0),c=l/u;let d=0;i.forEach((f,h)=>{if(h===0)return;const v=Math.floor(Number(f.minWidth||80)*c);d+=v,f.realWidth=Number(f.minWidth||80)+v}),i[0].realWidth=Number(i[0].minWidth||80)+l-d}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(n,r),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),n+=l.realWidth}),this.scrollX.value=n>r,this.bodyWidth.value=n;const o=this.store.states.fixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const r=this.observers.indexOf(t);r!==-1&&this.observers.splice(r,1)}notifyObservers(t){this.observers.forEach(n=>{var a,i;switch(t){case"columns":(a=n.state)==null||a.onColumnsChange(this);break;case"scrollable":(i=n.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:fje}=Ai,hje=Ce({name:"ElTableFilterPanel",components:{ElCheckbox:Ai,ElCheckboxGroup:fje,ElScrollbar:ll,ElTooltip:$a,ElIcon:Ue,ArrowDown:rl,ArrowUp:mg},directives:{ClickOutside:fu},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=Ct(),{t:r}=Xt(),n=Se("table-filter"),a=t==null?void 0:t.parent;a.filterPanels.value[e.column.id]||(a.filterPanels.value[e.column.id]=t);const i=W(!1),o=W(null),s=O(()=>e.column&&e.column.filters),l=O({get:()=>{var w;return(((w=e.column)==null?void 0:w.filteredValue)||[])[0]},set:w=>{u.value&&(typeof w!="undefined"&&w!==null?u.value.splice(0,1,w):u.value.splice(0,1))}}),u=O({get(){return e.column?e.column.filteredValue||[]:[]},set(w){e.column&&e.upDataColumn("filteredValue",w)}}),c=O(()=>e.column?e.column.filterMultiple:!0),d=w=>w.value===l.value,f=()=>{i.value=!1},h=w=>{w.stopPropagation(),i.value=!i.value},v=()=>{i.value=!1},p=()=>{y(u.value),f()},g=()=>{u.value=[],y(u.value),f()},m=w=>{l.value=w,y(typeof w!="undefined"&&w!==null?u.value:[]),f()},y=w=>{e.store.commit("filterChange",{column:e.column,values:w}),e.store.updateAllSelected()};Te(i,w=>{e.column&&e.upDataColumn("filterOpened",w)},{immediate:!0});const _=O(()=>{var w,C;return(C=(w=o.value)==null?void 0:w.popperRef)==null?void 0:C.contentRef});return{tooltipVisible:i,multiple:c,filteredValue:u,filterValue:l,filters:s,handleConfirm:p,handleReset:g,handleSelect:m,isActive:d,t:r,ns:n,showFilterPanel:h,hideFilterPanel:v,popperPaneRef:_,tooltip:o}}}),vje={key:0},pje=["disabled"],gje=["label","onClick"];function mje(e,t,r,n,a,i){const o=qe("el-checkbox"),s=qe("el-checkbox-group"),l=qe("el-scrollbar"),u=qe("arrow-up"),c=qe("arrow-down"),d=qe("el-icon"),f=qe("el-tooltip"),h=ad("click-outside");return A(),de(f,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:re(()=>[e.multiple?(A(),P("div",vje,[$("div",{class:V(e.ns.e("content"))},[Z(l,{"wrap-class":e.ns.e("wrap")},{default:re(()=>[Z(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:V(e.ns.e("checkbox-group"))},{default:re(()=>[(A(!0),P(We,null,At(e.filters,v=>(A(),de(o,{key:v.value,label:v.value},{default:re(()=>[Ut(De(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),$("div",{class:V(e.ns.e("bottom"))},[$("button",{class:V({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...v)=>e.handleConfirm&&e.handleConfirm(...v))},De(e.t("el.table.confirmFilter")),11,pje),$("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},De(e.t("el.table.resetFilter")),1)],2)])):(A(),P("ul",{key:1,class:V(e.ns.e("list"))},[$("li",{class:V([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=v=>e.handleSelect(null))},De(e.t("el.table.clearFilter")),3),(A(!0),P(We,null,At(e.filters,v=>(A(),P("li",{key:v.value,class:V([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},De(v.text),11,gje))),128))],2))]),default:re(()=>[vt((A(),P("span",{class:V([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...v)=>e.showFilterPanel&&e.showFilterPanel(...v))},[Z(d,null,{default:re(()=>[e.column.filterOpened?(A(),de(u,{key:0})):(A(),de(c,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var yje=Ie(hje,[["render",mje],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function QF(e){const t=Ct();v_(()=>{r.value.addObserver(t)}),bt(()=>{n(r.value),a(r.value)}),rs(()=>{n(r.value),a(r.value)}),_d(()=>{r.value.removeObserver(t)});const r=O(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),n=i=>{var o;const s=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=i.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,d=s.length;c1&&n&&n.length>1){var i=zD(n)/zD(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=Sst(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Ka(){return[1,0,0,1,0,0]}function Lg(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function h4(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Ko(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],i=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function vo(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function ku(e,t,r){var n=t[0],a=t[2],i=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=n*c+o*u,e[1]=-n*u+o*c,e[2]=a*c+s*u,e[3]=-a*u+c*s,e[4]=c*i+u*l,e[5]=c*l-u*i,e}function v4(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function Ed(e,t){var r=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=r*o-i*n;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*a)*l,e[5]=(i*a-r*s)*l,e):null}function yG(e){var t=Ka();return h4(t,e),t}var Cst=Object.freeze(Object.defineProperty({__proto__:null,create:Ka,identity:Lg,copy:h4,mul:Ko,translate:vo,rotate:ku,scale:v4,invert:Ed,clone:yG},Symbol.toStringTag,{value:"Module"})),xst=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(!!t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var i=1-a;t.x=i*r.x+a*n.x,t.y=i*r.y+a*n.y},e}(),Pt=xst,xm=Math.min,Tm=Math.max,Nu=new Pt,zu=new Pt,Bu=new Pt,Vu=new Pt,Ev=new Pt,Dv=new Pt,Tst=function(){function e(t,r,n,a){n<0&&(t=t+n,n=-n),a<0&&(r=r+a,a=-a),this.x=t,this.y=r,this.width=n,this.height=a}return e.prototype.union=function(t){var r=xm(t.x,this.x),n=xm(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Tm(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Tm(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,a=t.height/r.height,i=Ka();return vo(i,i,[-r.x,-r.y]),v4(i,i,[n,a]),vo(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,f=!(i0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;os&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;or);c++);c=f(c-1,s-2)}v=o[c+1],h=o[c]}if(!!(h&&v)){this._lastFr=c,this._lastFrP=r;var g=v.percent-h.percent,m=g===0?1:f((r-h.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var y=n?this._additiveValue:u?Lv:t[l];if(($m(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:v.rawValue;else if($m(i))i===h2?r3(y,h[a],v[a],m):ilt(y,h[a],v[a],m);else if(XD(i)){var _=h[a],w=v[a],C=i===eS;t[l]={type:C?"linear":"radial",x:_s(_.x,w.x,m),y:_s(_.y,w.y,m),colorStops:ze(_.colorStops,function(x,T){var M=w.colorStops[T];return{offset:_s(x.offset,M.offset,m),color:f2(r3([],x.color,M.color,m))}}),global:w.global},C?(t[l].x2=_s(_.x2,w.x2,m),t[l].y2=_s(_.y2,w.y2,m)):t[l].r=_s(_.r,w.r,m)}else if(u)r3(y,h[a],v[a],m),n||(t[l]=f2(y));else{var S=_s(h[a],v[a],m);n?this._additiveValue=S:t[l]=S}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===Im?t[n]=t[n]+a:r===cp?(ca(t[n],Lv),Dm(Lv,Lv,a,1),t[n]=f2(Lv)):r===h2?Dm(t[n],t[n],a,1):r===BG&&jD(t[n],t[n],a,1)},e}(),clt=function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){u4("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,Gt(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var i=this._tracks,o=0;o