|
|
var Ow=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var lX=Ow((Nn,In)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const r of l)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(l){const r={};return l.integrity&&(r.integrity=l.integrity),l.referrerpolicy&&(r.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?r.credentials="include":l.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(l){if(l.ep)return;l.ep=!0;const r=n(l);fetch(l.href,r)}})();function Id(e,t){const n=Object.create(null),o=e.split(",");for(let l=0;l<o.length;l++)n[o[l]]=!0;return t?l=>!!n[l.toLowerCase()]:l=>!!n[l]}function De(e){if(Pe(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],l=Xe(o)?Aw(o):De(o);if(l)for(const r in l)t[r]=l[r]}return t}else{if(Xe(e))return e;if(st(e))return e}}const Nw=/;(?![^(]*\))/g,Iw=/:([^]+)/,Pw=/\/\*.*?\*\//gs;function Aw(e){const t={};return e.replace(Pw,"").split(Nw).forEach(n=>{if(n){const o=n.split(Iw);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function $(e){let t="";if(Xe(e))t=e;else if(Pe(e))for(let n=0;n<e.length;n++){const o=$(e[n]);o&&(t+=o+" ")}else if(st(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Qn(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Xe(t)&&(e.class=$(t)),n&&(e.style=De(n)),e}const Rw="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",xw=Id(Rw);function qm(e){return!!e||e===""}function Lw(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=Tr(e[o],t[o]);return n}function Tr(e,t){if(e===t)return!0;let n=Yl(e),o=Yl(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=_s(e),o=_s(t),n||o)return e===t;if(n=Pe(e),o=Pe(t),n||o)return n&&o?Lw(e,t):!1;if(n=st(e),o=st(t),n||o){if(!n||!o)return!1;const l=Object.keys(e).length,r=Object.keys(t).length;if(l!==r)return!1;for(const s in e){const a=e.hasOwnProperty(s),u=t.hasOwnProperty(s);if(a&&!u||!a&&u||!Tr(e[s],t[s]))return!1}}return String(e)===String(t)}function Ym(e,t){return e.findIndex(n=>Tr(n,t))}const Te=e=>Xe(e)?e:e==null?"":Pe(e)||st(e)&&(e.toString===Xm||!qe(e.toString))?JSON.stringify(e,Gm,2):String(e),Gm=(e,t)=>t&&t.__v_isRef?Gm(e,t.value):yr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,l])=>(n[`${o} =>`]=l,n),{})}:Ki(t)?{[`Set(${t.size})`]:[...t.values()]}:st(t)&&!Pe(t)&&!Zm(t)?String(t):t,Vt={},gr=[],kt=()=>{},Dw=()=>!1,Bw=/^on[^a-z]/,Hi=e=>Bw.test(e),Pd=e=>e.startsWith("onUpdate:"),en=Object.assign,Ad=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Fw=Object.prototype.hasOwnProperty,dt=(e,t)=>Fw.call(e,t),Pe=Array.isArray,yr=e=>oa(e)==="[object Map]",Ki=e=>oa(e)==="[object Set]",Yl=e=>oa(e)==="[object Date]",qe=e=>typeof e=="function",Xe=e=>typeof e=="string",_s=e=>typeof e=="symbol",st=e=>e!==null&&typeof e=="object",$s=e=>st(e)&&qe(e.then)&&qe(e.catch),Xm=Object.prototype.toString,oa=e=>Xm.call(e),Wa=e=>oa(e).slice(8,-1),Zm=e=>oa(e)==="[object Object]",Rd=e=>Xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ja=Id(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Vw=/-(\w)/g,Kn=Wi(e=>e.replace(Vw,(t,n)=>n?n.toUpperCase():"")),zw=/\B([A-Z])/g,hl=Wi(e=>e.replace(zw,"-$1").toLowerCase()),la=Wi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ua=Wi(e=>e?`on${la(e)}`:""),Es=(e,t)=>!Object.is(e,t),qa=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},bi=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ts=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let $p;const Hw=()=>$p||($p=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Tn;class Jm{constructor(t=!1){this.detached=t,this.active=!0,thi height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important;`,FP=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function VP(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),l=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:FP.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:o,borderSize:l,boxSizing:n}}function dh(e,t=1,n){var o;Gn||(Gn=document.createElement("textarea"),document.body.appendChild(Gn));const{paddingSize:l,borderSize:r,boxSizing:s,contextStyle:a}=VP(e);Gn.setAttribute("style",`${a};${BP}`),Gn.value=e.value||e.placeholder||"";let u=Gn.scrollHeight;const c={};s==="border-box"?u=u+r:s==="content-box"&&(u=u-l),Gn.value="";const f=Gn.scrollHeight-l;if(Ue(t)){let d=f*t;s==="border-box"&&(d=d+l+r),u=Math.max(d,u),c.minHeight=`${d}px`}if(Ue(n)){let d=f*n;s==="border-box"&&(d=d+l+r),u=Math.min(d,u)}return c.height=`${u}px`,(o=Gn.parentNode)==null||o.removeChild(Gn),Gn=void 0,c}const zP=Oe({id:{type:String,default:void 0},size:Sn,disabled:Boolean,modelValue:{type:ne([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ne([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Tt},prefixIcon:{type:Tt},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:ne([Object,Array,String]),default:()=>Pt({})}}),HP={[tt]:e=>Xe(e),input:e=>Xe(e),change:e=>Xe(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},KP=["role"],WP=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],jP=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],UP=Y({name:"ElInput",inheritAttrs:!1}),qP=Y({...UP,props:zP,emits:HP,setup(e,{expose:t,emit:n}){const o=e,l=aa(),r=tn(),s=k(()=>{const se={};return o.containerRole==="combobox"&&(se["aria-haspopup"]=l["aria-haspopup"],se["aria-owns"]=l["aria-owns"],se["aria-expanded"]=l["aria-expanded"]),se}),a=k(()=>[o.type==="textarea"?g.b():h.b(),h.m(v.value),h.is("disabled",m.value),h.is("exceed",Q.value),{[h.b("group")]:r.prepend||r.append,[h.bm("group","append")]:r.append,[h.bm("group","prepend")]:r.prepend,[h.m("prefix")]:r.prefix||o.prefixIcon,[h.m("suffix")]:r.suffix||o.suffixIcon||o.clearable||o.showPassword,[h.bm("suffix","password-clear")]:A.value&&P.value},l.class]),u=k(()=>[h.e("wrapper"),h.is("focus",b.value)]),c=$f({excludeKeys:k(()=>Object.keys(s.value))}),{form:f,formItem:d}=mn(),{inputId:p}=bl(o,{formItemContext:d}),v=Wt(),m=_n(),h=he("input"),g=he("textarea"),y=Mt(),w=Mt(),b=M(!1),C=M(!1),_=M(!1),E=M(!1),O=M(),T=Mt(o.inputStyle),N=k(()=>y.value||w.value),I=k(()=>{var se;return(se=f==null?void 0:f.statusIcon)!=null?se:!1}),H=k(()=>(d==null?void 0:d.validateState)||""),L=k(()=>H.value&&Yy[H.value]),x=k(()=>E.value?ZN:oO),B=k(()=>[l.style,o.inputStyle]),F=k(()=>[o.inputStyle,T.value,{resize:o.resize}]),V=k(()=>Qt(o.modelValue)?"":String(o.modelValue)),A=k(()=>o.clearable&&!m.value&&!o.readonly&&!!V.value&&(b.value||C.value)),P=k(()=>o.showPassword&&!m.value&&!o.readonly&&!!V.value&&(!!V.valu
* Checks if an event is supported in the current execution environment.** NOTE: This will not work correctly for non-generic events such as `change`,* `reset`, `load`, `error`, and `select`.** Borrows from Modernizr.** @param {string} eventNameSuffix Event name, e.g. "click".* @param {?boolean} capture Check if the capture phase is supported.* @return {boolean} True if the event is supported.* @internal* @license Modernizr 3.0.0pre (Custom Build) | MIT*/const TR=function(e,t){if(e&&e.addEventListener){const n=function(o){const l=ER(o);t&&Reflect.apply(t,this,[o,l])};e.addEventListener("wheel",n,{passive:!0})}},MR={beforeMount(e,t){TR(e,t.value)}},OR=Oe({role:{type:String,required:!0},spinnerDate:{type:ne(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:ne(String),default:""},...sb}),NR=["onClick"],IR=["onMouseenter"],PR=Y({__name:"basic-time-spinner",props:OR,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,o=he("time"),{getHoursList:l,getMinutesList:r,getSecondsList:s}=cb(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let a=!1;const u=M(),c=M(),f=M(),d=M(),p={hours:c,minutes:f,seconds:d},v=k(()=>n.showSeconds?xh:xh.slice(0,2)),m=k(()=>{const{spinnerDate:R}=n,U=R.hour(),Q=R.minute(),j=R.second();return{hours:U,minutes:Q,seconds:j}}),h=k(()=>{const{hours:R,minutes:U}=i(m);return{hours:l(n.role),minutes:r(R,n.role),seconds:s(R,U,n.role)}}),g=k(()=>{const{hours:R,minutes:U,seconds:Q}=i(m);return{hours:qu(R,23),minutes:qu(U,59),seconds:qu(Q,59)}}),y=hn(R=>{a=!1,C(R)},200),w=R=>{if(!!!n.amPmMode)return"";const Q=n.amPmMode==="A";let j=R<12?" am":" pm";return Q&&(j=j.toUpperCase()),j},b=R=>{let U;switch(R){case"hours":U=[0,2];break;case"minutes":U=[3,5];break;case"seconds":U=[6,8];break}const[Q,j]=U;t("select-range",Q,j),u.value=R},C=R=>{O(R,i(m)[R])},_=()=>{C("hours"),C("minutes"),C("seconds")},E=R=>R.querySelector(`.${o.namespace.value}-scrollbar__wrap`),O=(R,U)=>{if(n.arrowControl)return;const Q=i(p[R]);Q&&Q.$el&&(E(Q.$el).scrollTop=Math.max(0,U*T(R)))},T=R=>{const U=i(p[R]);return(U==null?void 0:U.$el.querySelector("li").offsetHeight)||0},N=()=>{H(1)},I=()=>{H(-1)},H=R=>{u.value||b("hours");const U=u.value,Q=i(m)[U],j=u.value==="hours"?24:60,X=L(U,Q,R,j);x(U,X),O(U,X),Re(()=>b(U))},L=(R,U,Q,j)=>{let X=(U+Q+j)%j;const ge=i(h)[R];for(;ge[X]&&X!==U;)X=(X+Q+j)%j;return X},x=(R,U)=>{if(i(h)[R][U])return;const{hours:X,minutes:ge,seconds:ye}=i(m);let we;switch(R){case"hours":we=n.spinnerDate.hour(U).minute(ge).second(ye);break;case"minutes":we=n.spinnerDate.hour(X).minute(U).second(ye);break;case"seconds":we=n.spinnerDate.hour(X).minute(ge).second(U);break}t("change",we)},B=(R,{value:U,disabled:Q})=>{Q||(x(R,U),b(R),O(R,U))},F=R=>{a=!0,y(R);const U=Math.min(Math.round((E(i(p[R]).$el).scrollTop-(V(R)*.5-10)/T(R)+3)/T(R)),R==="hours"?23:59);x(R,U)},V=R=>i(p[R]).$el.offsetHeight,A=()=>{const R=U=>{const Q=i(p[U]);Q&&Q.$el&&(E(Q.$el).onscroll=()=>{F(U)})};R("hours"),R("minutes"),R("seconds")};Qe(()=>{Re(()=>{!n.arrowControl&&A(),_(),n.role==="start"&&b("hours")})});const P=(R,U)=>{p[U].value=R};return t("set-option",[`${n.role}_scrollDown`,H]),t("set-option",[`${n.role}_emitSelectRange`,b]),me(()=>n.spinnerDate,()=>{a||_()}),(R,U)=>(S(),D("div",{class:$([i(o).b("spinner"),{"has-seconds":R.showSeconds}])},[R.arrowControl?te("v-if",!0):(S(!0),D(Fe,{key:0},ct(i(v),Q=>(S(),le(i(qo),{key:Q,ref_for:!0,ref:j=>P(j,Q),class:$(i(o).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":i(o).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:j=>b(Q),onMousemove:j=>C(Q)},{default:G(()=>[(S(!0),D(Fe,null,ct(i(h)[Q],(j,X)=>(S(),D("li",{key:X,class:$([i(o).be("spinner","item"),i(o).is("active",X===i(m)[Q]),i(o).is("disabled",j)]),onClick:ge=>B(Q,{value:X,disabled:j})},[Q==="hours"?(S(),D(Fe,{key:0},[vt(Te(("0"+(R.amPmMode?X%12||12:X)).slice(-2))+Te(w(X)),1)],64)):(S(),D(Fe,{key:1},[vt(Te(("0"+X).slice(-2)),1)],64))],10,NR))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),R.arrowControl?(S(!0),D(Fe,{key:1},ct(i(v),Q=>(S(),D("div",{key:Q,class:$([i(o).be("spinner","wrapper"),i(o).is("arrow")]),onMouseenter:j=>b(Q)},[Ze((S(),le(i(xe),{class:$(["arrow-up",i(o).be("spinner","arrow")])},{default:G(()=>[W(i(uu))]),_:1},8,["class"])),[[i(Ni),I]]),Ze((S(),le(i(xe),{class:$(["arrow-down",i(o).be("spinner","arrow")])},{default:G(()=>[W(i(ml))]),_:1},8,["class"])),[[i(Ni),N]]),K("ul",{class:$(i(o).be("spinner","list"))},[(S(!0),D(Fe,null,ct(i(g)[Q],(j,X)=>(S(),D("li",{key:X,cla Add an empty element to avoid render label, do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),pL]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(S(),le(c,{key:2,class:$(e.ns.e("prefix"))},{default:G(()=>[W(u)]),_:1},8,["class"])):te("v-if",!0),te(" content "),W(f),te(" postfix "),e.isLeaf?te("v-if",!0):(S(),D(Fe,{key:3},[e.node.loading?(S(),le(c,{key:0,class:$([e.ns.is("loading"),e.ns.e("postfix")])},{default:G(()=>[W(d)]),_:1},8,["class"])):(S(),le(c,{key:1,class:$(["arrow-right",e.ns.e("postfix")])},{default:G(()=>[W(p)]),_:1},8,["class"]))],64))],42,fL)}var hL=Me(dL,[["render",vL],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const mL=Y({name:"ElCascaderMenu",components:{Loading:yl,ElIcon:xe,ElScrollbar:qo,ElCascaderNode:hL},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=nt(),n=he("cascader-menu"),{t:o}=mt(),l=vu();let r=null,s=null;const a=Le(qf),u=M(null),c=k(()=>!e.nodes.length),f=k(()=>!a.initialLoaded),d=k(()=>`cascader-menu-${l}-${e.index}`),p=g=>{r=g.target},v=g=>{if(!(!a.isHoverMenu||!r||!u.value))if(r.contains(g.target)){m();const y=t.vnode.el,{left:w}=y.getBoundingClientRect(),{offsetWidth:b,offsetHeight:C}=y,_=g.clientX-w,E=r.offsetTop,O=E+r.offsetHeight;u.value.innerHTML=` <path style="pointer-events: auto;" fill="transparent" d="M${_} ${E} L${b} 0 V${E} Z" /> <path style="pointer-events: auto;" fill="transparent" d="M${_} ${O} L${b} ${C} V${O} Z" /> `}else s||(s=window.setTimeout(h,a.config.hoverThreshold))},m=()=>{s&&(clearTimeout(s),s=null)},h=()=>{u.value&&(u.value.innerHTML="",m())};return{ns:n,panel:a,hoverZone:u,isEmpty:c,isLoading:f,menuId:d,t:o,handleExpand:p,handleMouseMove:v,clearHoverZone:h}}});function gL(e,t,n,o,l,r){const s=je("el-cascader-node"),a=je("loading"),u=je("el-icon"),c=je("el-scrollbar");return S(),le(c,{key:e.menuId,tag:"ul",role:"menu",class:$(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:G(()=>{var f;return[(S(!0),D(Fe,null,ct(e.nodes,d=>(S(),le(s,{key:d.uid,node:d,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(S(),D("div",{key:0,class:$(e.ns.e("empty-text"))},[W(u,{size:"14",class:$(e.ns.is("loading"))},{default:G(()=>[W(a)]),_:1},8,["class"]),vt(" "+Te(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(S(),D("div",{key:1,class:$(e.ns.e("empty-text"))},Te(e.t("el.cascader.noData")),3)):(f=e.panel)!=null&&f.isHoverMenu?(S(),D("svg",{key:2,ref:"hoverZone",class:$(e.ns.e("hover-zone"))},null,2)):te("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var yL=Me(mL,[["render",gL],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let bL=0;const wL=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let Us=class{constructor(t,n,o,l=!1){this.data=t,this.config=n,this.parent=o,this.root=l,this.uid=bL++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:r,label:s,children:a}=n,u=t[a],c=wL(this);this.level=l?0:o?o.level+1:1,this.value=t[r],this.label=t[s],this.pathNodes=c,this.pathValues=c.map(f=>f.value),this.pathLabels=c.map(f=>f.label),this.childrenData=u,this.children=(u||[]).map(f=>new Us(f,n,this)),this.loaded=!n.lazy||this.isLeaf||!Bn(u)}get isDisabled(){const{data:t,parent:n,config:o}=this,{disabled:l,checkStrictly:r}=o;return(qe(l)?l(t,this):!!t[l])||!r&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:o,loaded:l}=this,{lazy:r,leaf:s}=n,a=qe(s)?s(t,this):t[s];return Jt(a)?r&&!l?!1:!(Array.isArray(o)&&o.length):!!a}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:o}=this,l=new Us(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],o.push(l),l}calcText(t,n){const o=t?this.pathLabels.join(n):this.label;return this.text=o,o}broadcast(t,...n){const o=`onParent${vo(t)}`;this.children.forEach(l=>{l&&(l.broadcast(t,...n),l[o]&&l[o](...n))})}emit(t,...n){const{parent:o}=this,l=`onChild${vo(t)}`;o&&(o[l]&&o[l](...n),o.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(l=>!l.isDisabled),o=n.length?n.every(l=>l.checked):!1;this.setCheckState(o)}setCheckState(t){const n=this.children.length,o=this.children.reduce((l,r)=>{const s=r.checked?1:r.indeterminate?.5:0;return l+s},0);this.checked=this.loaded&&this.children.filter(l=>!l.isDisabled).every(l=>l.loaded&&l.checked)&&t,this.indeterminate=this.loaded&&o!==n&&o>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:o}=this.config;n||!o?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const Uc=(e,t)=>e.reduce((n,o)=>(o.isLeaf?n.push(o):(!t&&n.push(o),n=n.concat(Uc(o.children,t))),n),[]);class Gh{constructor(t,n){this.config=n;const o=(t||[]).map(l=>new Us(l,this.config));this.nodes=o,this.allNodes=Uc(o,!1),this.leafNodes=Uc(o,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const o=n?n.appendChild(t):new Us(t,this.config);n||this.nodes.push(o),this.allNodes.push(o),o.isLeaf&&this.leafNodes.push(o)}appendNodes(t,n){t.forEach(o=>this.appendNode(o,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(l=>An(l.value,t)||An(l.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedN
(?:(?:`+o+":){7}(?:"+o+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+o+":){6}(?:"+n+"|:"+o+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+o+":){5}(?::"+n+"|(?::"+o+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+o+":){4}(?:(?::"+o+"){0,1}:"+n+"|(?::"+o+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+o+":){3}(?:(?::"+o+"){0,2}:"+n+"|(?::"+o+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+o+":){2}(?:(?::"+o+"){0,3}:"+n+"|(?::"+o+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+o+"){0,5}:"+n+"|(?::"+o+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),r=new RegExp("(?:^"+n+"$)|(?:^"+l+"$)"),s=new RegExp("^"+n+"$"),a=new RegExp("^"+l+"$"),u=function(C){return C&&C.exact?r:new RegExp("(?:"+t(C)+n+t(C)+")|(?:"+t(C)+l+t(C)+")","g")};u.v4=function(b){return b&&b.exact?s:new RegExp(""+t(b)+n+t(b),"g")},u.v6=function(b){return b&&b.exact?a:new RegExp(""+t(b)+l+t(b),"g")};var c="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",d=u.v4().source,p=u.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',w="(?:"+c+"|www\\.)"+f+"(?:localhost|"+d+"|"+p+"|"+v+m+h+")"+g+y;return za=new RegExp("(?:^"+w+"$)","i"),za},im={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},us={integer:function(t){return us.number(t)&&parseInt(t,10)===t},float:function(t){return us.number(t)&&!us.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!us.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(im.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ZV())},hex:function(t){return typeof t=="string"&&!!t.match(im.hex)}},JV=function(t,n,o,l,r){if(t.required&&n===void 0){i1(t,n,o,l,r);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;s.indexOf(a)>-1?us[a](n)||l.push(On(r.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&l.push(On(r.messages.types[a],t.fullField,t.type))},QV=function(t,n,o,l,r){var s=typeof t.len=="number",a=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=n,d=null,p=typeof n=="number",v=typeof n=="string",m=Array.isArray(n);if(p?d="number":v?d="string":m&&(d="array"),!d)return!1;m&&(f=n.length),v&&(f=n.replace(c,"_").length),s?f!==t.len&&l.push(On(r.messages[d].len,t.fullField,t.len)):a&&!u&&f<t.min?l.push(On(r.messages[d].min,t.fullField,t.min)):u&&!a&&f>t.max?l.push(On(r.messages[d].max,t.fullField,t.max)):a&&u&&(f<t.min||f>t.max)&&l.push(On(r.messages[d].range,t.fullField,t.min,t.max))},sr="enum",ez=function(t,n,o,l,r){t[sr]=Array.isArray(t[sr])?t[sr]:[],t[sr].indexOf(n)===-1&&l.push(On(r.messages[sr],t.fullField,t[sr].join(", ")))},tz=function(t,n,o,l,r){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||l.push(On(r.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||l.push(On(r.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},St={required:i1,whitespace:XV,type:JV,range:QV,enum:ez,pattern:tz},nz=function(t,n,o,l,r){var s=[],a=t.required||!t.required&&l.hasOwnProperty(t.field);if(a){if(Yt(n,"string")&&!t.required)return o();St.required(t,n,l,s,r,"string"),Yt(n,"string")||(St.type(t,n,l,s,r),St.range(t,n,l,s,r),St.pattern(t,n,l,s,r),t.whitespace===!0&&St.whitespace(t,n,l,s,r))}o(s)},oz=function(t,n,o,l,r){var s=[],a=t.required||!t.required&&l.hasOwnProperty(t.field);if(a){if(Yt(n)&&!t.required)return o();St.required(t,n,l,s,r),n!==void 0&&St.type(t,n,l,s,r)}o(s)},lz=function(t,n,o,l,r){var s=[],a=t.required||!t.required&&l.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),Yt(n)&&!t.required)return o();St.required(t,n,l,s,r),n!==void 0&&(St.type(t,n,l,s,r),St.range(t,n,l,s,r))}o(s)},rz=function(t,n,o,l,r){var s=[],a=t.required||!t.required&&l.hasOwnProperty(t.field);if(a){if(Yt(n)&&!t.requir
M 50 50 m 0 ${C?"":"-"}${b} a ${b} ${b} 0 1 1 0 ${C?"-":""}${b*2} a ${b} ${b} 0 1 1 0 ${C?"":"-"}${b*2} `}),u=k(()=>2*Math.PI*s.value),c=k(()=>t.type==="dashboard"?.75:1),f=k(()=>`${-1*u.value*(1-c.value)/2}px`),d=k(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:f.value})),p=k(()=>({strokeDasharray:`${u.value*c.value*(t.percentage/100)}px, ${u.value}px`,strokeDashoffset:f.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),v=k(()=>{let b;return t.color?b=w(t.percentage):b=n[t.status]||n.default,b}),m=k(()=>t.status==="warning"?cu:t.type==="line"?t.status==="success"?wf:gl:t.status==="success"?fa:oo),h=k(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=k(()=>t.format(t.percentage));function y(b){const C=100/b.length;return b.map((E,O)=>Xe(E)?{color:E,percentage:(O+1)*C}:E).sort((E,O)=>E.percentage-O.percentage)}const w=b=>{var C;const{color:_}=t;if(qe(_))return _(b);if(Xe(_))return _;{const E=y(_);for(const O of E)if(O.percentage>b)return O.color;return(C=E[E.length-1])==null?void 0:C.color}};return(b,C)=>(S(),D("div",{class:$([i(o).b(),i(o).m(b.type),i(o).is(b.status),{[i(o).m("without-text")]:!b.showText,[i(o).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(S(),D("div",{key:0,class:$(i(o).b("bar"))},[K("div",{class:$(i(o).be("bar","outer")),style:De({height:`${b.strokeWidth}px`})},[K("div",{class:$([i(o).be("bar","inner"),{[i(o).bem("bar","inner","indeterminate")]:b.indeterminate}]),style:De(i(l))},[(b.showText||b.$slots.default)&&b.textInside?(S(),D("div",{key:0,class:$(i(o).be("bar","innerText"))},[fe(b.$slots,"default",{percentage:b.percentage},()=>[K("span",null,Te(i(g)),1)])],2)):te("v-if",!0)],6)],6)],2)):(S(),D("div",{key:1,class:$(i(o).b("circle")),style:De({height:`${b.width}px`,width:`${b.width}px`})},[(S(),D("svg",q9,[K("path",{class:$(i(o).be("circle","track")),d:i(a),stroke:`var(${i(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":i(r),fill:"none",style:De(i(d))},null,14,Y9),K("path",{class:$(i(o).be("circle","path")),d:i(a),stroke:i(v),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":i(r),style:De(i(p))},null,14,G9)]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(S(),D("div",{key:2,class:$(i(o).e("text")),style:De({fontSize:`${i(h)}px`})},[fe(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(S(),le(i(xe),{key:1},{default:G(()=>[(S(),le(at(i(m))))]),_:1})):(S(),D("span",X9,Te(i(g)),1))])],6)):te("v-if",!0)],10,U9))}});var Q9=Me(J9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const b1=et(Q9),eK=Oe({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:ne([Array,Object]),default:()=>Pt(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:ne([Array,Object]),default:()=>[Oa,Oa,Oa]},voidIcon:{type:Tt,default:()=>VN},disabledVoidIcon:{type:Tt,default:()=>Oa},disabled:{type:Boolean},allowHalf:{type:Boolean},showText:{type:Boolean},showScore:{type:Boolean},textColor:{type:String,default:""},texts:{type:ne(Array),default:()=>Pt(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:{type:String,validator:Zr},label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),tK={[Ot]:e=>Ue(e),[tt]:e=>Ue(e)},nK=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],oK=["onMousemove","onClick"],lK=Y({name:"ElRate"}),rK=Y({...lK,props:eK,emits:tK,setup(e,{expose:t,emit:n}){const o=e;function l(V,A){const P=Q=>st(Q),R=Object.keys(A).map(Q=>+Q).filter(Q=>{const j=A[Q];return(P(j)?j.excluded:!1)?V<Q:V<=Q}).sort((Q,j)=>Q-j),U=A[R[0]];return P(U)&&U.value||U}const r=Le(or,void 0),s=Le(wo,void 0),a=Wt(),u=he("rate"),{inputId:c,isLabeledByFormItem:f}=bl(o,{formItemContext:s}),d=M(o.modelValue),p=M(-1),v=M(!0),m=k(()=>[u.b(),u.m(a.value)]),h=k(()=>o.dis
* escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed */var PW=/["'&<>]/,AW=RW;function RW(e){var t=""+e,n=PW.exec(t);if(!n)return t;var o,l="",r=0,s=0;for(r=n.index;r<t.length;r++){switch(t.charCodeAt(r)){case 34:o=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";break;default:continue}s!==r&&(l+=t.substring(s,r)),s=r+1,l+=o}return s!==r?l+t.substring(s,r):l}const oc=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Em=function(e){return e!==null&&typeof e=="object"},xW=function(e,t,n,o,l){if(!t&&!o&&(!l||Array.isArray(l)&&!l.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const r=o?null:function(a,u){return l?(Array.isArray(l)||(l=[l]),l.map(c=>typeof c=="string"?It(a,c):c(a,u,e))):(t!=="$key"&&Em(a)&&"$value"in a&&(a=a.$value),[Em(a)?It(a,t):a])},s=function(a,u){if(o)return o(a.value,u.value);for(let c=0,f=a.key.length;c<f;c++){if(a.key[c]<u.key[c])return-1;if(a.key[c]>u.key[c])return 1}return 0};return e.map((a,u)=>({value:a,index:u,key:r?r(a,u):null})).sort((a,u)=>{let c=s(a,u);return c||(c=a.index-u.index),c*+n}).map(a=>a.value)},F1=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},LW=function(e,t){let n=null;for(let o=0;o<e.columns.length;o++){const l=e.columns[o];if(l.columnKey===t){n=l;break}}return n||qt("ElTable",`No column matching with column-key: ${t}`),n},Tm=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?F1(e,o[0]):null},nn=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const l of n)o=o[l];return`${o}`}else if(typeof t=="function")return t.call(null,e)},Fl=function(e,t){const n={};return(e||[]).forEach((o,l)=>{n[nn(o,t)]={row:o,index:l}}),n};function DW(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(dt(t,o)){const l=t[o];typeof l<"u"&&(n[o]=l)}return n}function ap(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function V1(e){return e===""||e!==void 0&&(e=ap(e),Number.isNaN(e)&&(e=80)),e}function BW(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function FW(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function ks(e,t,n){let o=!1;const l=e.indexOf(t),r=l!==-1,s=a=>{a==="add"?e.push(t):e.splice(l,1),o=!0,Pe(t.children)&&t.children.forEach(u=>{ks(e,u,n??!r)})};return jt(n)?n&&!r?s("add"):!n&&r&&s("remove"):s(r?"remove":"add"),o}function VW(e,t,n="children",o="hasChildren"){const l=s=>!(Array.isArray(s)&&s.length);function r(s,a,u){t(s,a,u),a.forEach(c=>{if(c[o]){t(c,null,u+1);return}const f=c[n];l(f)||r(c,f,u+1)})}e.forEach(s=>{if(s[o]){t(s,null,0);return}const a=s[n];l(a)||r(s,a,0)})}let Eo;function zW(e,t,n,o,l){const{nextZIndex:r}=Uo(),s=e==null?void 0:e.dataset.prefix,a=e==null?void 0:e.querySelector(`.${s}-scrollbar__wrap`);function u(){const m=l==="light",h=document.createElement("div");return h.className=`${s}-popper ${m?"is-light":"is-dark"}`,n=AW(n),h.innerHTML=n,h.style.zIndex=String(r()),e==null||e.appendChild(h),h}function c(){const m=document.createElement("div");return m.className=`${s}-popper__arrow`,m}function f(){d&&d.update()}Eo==null||Eo(),Eo=()=>{try{d&&d.destroy(),p&&(e==null||e.removeChild(p)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",Eo),a==null||a.removeEventListener("scroll",Eo),Eo=void 0}catch{}};let d=null;const p=u(),v=c();return p.appendChild(v),d=U0(t,p,{strategy:"absolute",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"arrow",options:{element:v,padding:10}}],...o}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",Eo),a==null||a.addEventListener("scroll",Eo),d}function z1(e){return e.children?jT(e.children,z1):[e]}function Mm(e,t){return e+t.colSpan}const H1=(e,t,n,o)=>{let l=0,r=e;const s=n.states.columns.value;if(o){const u=z1(o[e]);l=s.slice(0,s.indexOf(u[0])).reduce(Mm,0),r=l+u.reduce(Mm,0)-1}else l=e;let a;switch(t){case"left":r<n.states.fixedLeafCol
|