This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
handingkang-ohmyweb/static/element-15f07d95.js

32 lines
942 KiB
JavaScript
Raw Normal View History

import{u as r,g as M4,o as af,r as N,a as Ss,s as St,w as On,b as ce,c as et,d as Ze,n as Ee,e as $,i as nt,f as Et,h as ct,j as E4,k as lf,l as _,m as S,p as k,q as x4,t as sn,v as T4,N as Lt,x as wt,y as Rt,F as Ie,C as Pu,z as At,A as Me,B as pn,D as z4,E as Bu,G as dt,H as U,I as ie,J as E,K as Te,L as lt,M as nn,O as te,P as G,Q as qe,R as at,S as Q,T as bt,U as be,V as W,W as gt,X as qt,Y as Nt,Z as al,_ as Ct,$ as Xt,a0 as _a,a1 as rf,a2 as ya,a3 as Le,a4 as O4,a5 as sf,a6 as tr,a7 as A4,a8 as ft,a9 as mt,aa as wo,ab as zl,ac as Gn,ad as ca,ae as ls,af as uf,ag as Ae,ah as Ue,ai as N4,aj as xi,ak as Ru,al as I4,am as Du,an as bl,ao as V4,ap as cl,aq as ei,ar as Ol,as as _d,at as L4,au as H4,av as P4,aw as Wa}from"./vue-fe0cb6ad.js";const B4='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',R4=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,yd=e=>Array.from(e.querySelectorAll(B4)).filter(t=>D4(t)&&R4(t)),D4=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}},Ir=function(e,t,...n){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const a=document.createEvent(o);return a.initEvent(t,...n),e.dispatchEvent(a),e},cf=e=>!e.getAttribute("aria-owns"),df=(e,t,n)=>{const{parentNode:o}=e;if(!o)return null;const a=o.querySelectorAll(n),l=Array.prototype.indexOf.call(a,e);return a[l+t]||null},Vr=e=>{e&&(e.focus(),!cf(e)&&e.click())},Ht=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const l=e==null?void 0:e(a);if(n===!1||!l)return t==null?void 0:t(a)},bd=e=>t=>t.pointerType==="mouse"?e(t):void 0;var F4=Object.defineProperty,K4=Object.defineProperties,W4=Object.getOwnPropertyDescriptors,wd=Object.getOwnPropertySymbols,j4=Object.prototype.hasOwnProperty,q4=Object.prototype.propertyIsEnumerable,Cd=(e,t,n)=>t in e?F4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U4=(e,t)=>{for(var n in t||(t={}))j4.call(t,n)&&Cd(e,n,t[n]);if(wd)for(var n of wd(t))q4.call(t,n)&&Cd(e,n,t[n]);return e},Y4=(e,t)=>K4(e,W4(t));function $d(e,t){var n;const o=St();return On(()=>{o.value=e()},Y4(U4({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),Ss(o)}var kd;const vt=typeof window<"u",G4=e=>typeof e<"u",X4=e=>typeof e=="function",Z4=e=>typeof e=="string",ja=()=>{},ff=vt&&((kd=window==null?void 0:window.navigator)==null?void 0:kd.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ro(e){return typeof e=="function"?e():r(e)}function pf(e,t){function n(...o){return new Promise((a,l)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(a).catch(l)})}return n}function J4(e,t={}){let n,o,a=ja;const l=i=>{clearTimeout(i),a(),a=ja};return i=>{const u=Ro(e),c=Ro(t.maxWait);return n&&l(n),u<=0||c!==void 0&&c<=0?(o&&(l(o),o=null),Promise.resolve(i())):new Promise((p,d)=>{a=t.rejectOnCancel?d:p,c&&!o&&(o=setTimeout(()=>{n&&l(n),o=null,p(i())},c)),n=setTimeout(()=>{o&&l(o),o=null,p(i())},u)})}}function Q4(e,t=!0,n=!0,o=!1){let a=0,l,s=!0,i=ja,u;const c=()=>{l&&(clearTimeout(l),l=void 0,i(),i=ja)};return d=>{const f=Ro(e),h=Date.now()-a,m=()=>u=d();return c(),f<=0?(a=Date.now(),m()):(h>f&&(n||!s)?(a=Date.now(),m()):t&&(u=new Promise((v,y)=>{i=o?y:v,l=setTimeout(()=>{a=Date.now(),s=!0,v(m()),c()},Math.max(0,f-h))})),!n&&!l&&(l=setTimeout(()=>s=!0,f)),s=!1,u)}}function em(e){return e}function nr(e){return M4()?(af(e),!0):!1}function tm(e,t=200,n={}){return pf(J4(t,n),e)}function nm(e,t=200,n={}){const o=N(e.value),a=tm(()=>{o.value=e.value},t,n);return ce(e,()=>a()),o}function vf(e,t=200,n=!1,o=!0,a=!1){return pf(Q4(t,n,o,a),e)}function Fu(e,t=!0){et()?Ze(e):t?e():Ee(e)}function da(e,t,n={}){const{immediate:o=!0}=n,a=N(!1);let l=null;function s(){l&&(clearTimeout(l),l=null)
(?:
(?:`+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(),l=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),s=new RegExp("^"+n+"$"),i=new RegExp("^"+a+"$"),u=function(C){return C&&C.exact?l:new RegExp("(?:"+t(C)+n+t(C)+")|(?:"+t(C)+a+t(C)+")","g")};u.v4=function(w){return w&&w.exact?s:new RegExp(""+t(w)+n+t(w),"g")},u.v6=function(w){return w&&w.exact?i:new RegExp(""+t(w)+a+t(w),"g")};var c="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",d=u.v4().source,f=u.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',b="(?:"+c+"|www\\.)"+p+"(?:localhost|"+d+"|"+f+"|"+h+m+v+")"+y+g;return Cr=new RegExp("(?:^"+b+"$)","i"),Cr},L0={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},_l={integer:function(t){return _l.number(t)&&parseInt(t,10)===t},float:function(t){return _l.number(t)&&!_l.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"&&!_l.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(L0.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(CQ())},hex:function(t){return typeof t=="string"&&!!t.match(L0.hex)}},$Q=function(t,n,o,a,l){if(t.required&&n===void 0){hp(t,n,o,a,l);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=t.type;s.indexOf(i)>-1?_l[i](n)||a.push(zn(l.messages.types[i],t.fullField,t.type)):i&&typeof n!==t.type&&a.push(zn(l.messages.types[i],t.fullField,t.type))},kQ=function(t,n,o,a,l){var s=typeof t.len=="number",i=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=n,d=null,f=typeof n=="number",h=typeof n=="string",m=Array.isArray(n);if(f?d="number":h?d="string":m&&(d="array"),!d)return!1;m&&(p=n.length),h&&(p=n.replace(c,"_").length),s?p!==t.len&&a.push(zn(l.messages[d].len,t.fullField,t.len)):i&&!u&&p<t.min?a.push(zn(l.messages[d].min,t.fullField,t.min)):u&&!i&&p>t.max?a.push(zn(l.messages[d].max,t.fullField,t.max)):i&&u&&(p<t.min||p>t.max)&&a.push(zn(l.messages[d].range,t.fullField,t.min,t.max))},Ma="enum",SQ=function(t,n,o,a,l){t[Ma]=Array.isArray(t[Ma])?t[Ma]:[],t[Ma].indexOf(n)===-1&&a.push(zn(l.messages[Ma],t.fullField,t[Ma].join(", ")))},MQ=function(t,n,o,a,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(zn(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||a.push(zn(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},kt={required:hp,whitespace:wQ,type:$Q,range:kQ,enum:SQ,pattern:MQ},EQ=function(t,n,o,a,l){var s=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Zt(n,"string")&&!t.required)return o();kt.required(t,n,a,s,l,"string"),Zt(n,"string")||(kt.type(t,n,a,s,l),kt.range(t,n,a,s,l),kt.pattern(t,n,a,s,l),t.whitespace===!0&&kt.whitespace(t,n,a,s,l))}o(s)},xQ=function(t,n,o,a,l){var s=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Zt(n)&&!t.required)return o();kt.required(t,n,a,s,l),n!==void 0&&kt.type(t,n,a,s,l)}o(s)},TQ=function(t,n,o,a,l){var s=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(n===""&&(n=void 0),Zt(n)&&!t.required)return o();kt.required(t,n,a,s,l),n!==void 0&&(kt.type(t,n,a,s,l),kt.range(t,n,a,s,l))}o(s)},zQ=function(t,n,o,a,l){var s=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Zt(n)&&!t.requir
height:0 !important;
visibility:hidden !important;
${mf()?"":"overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,ZQ=["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 JQ(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:ZQ.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:o,borderSize:a,boxSizing:n}}function P0(e,t=1,n){var o;qn||(qn=document.createElement("textarea"),document.body.appendChild(qn));const{paddingSize:a,borderSize:l,boxSizing:s,contextStyle:i}=JQ(e);qn.setAttribute("style",`${i};${XQ}`),qn.value=e.value||e.placeholder||"";let u=qn.scrollHeight;const c={};s==="border-box"?u=u+l:s==="content-box"&&(u=u-a),qn.value="";const p=qn.scrollHeight-a;if(Pe(t)){let d=p*t;s==="border-box"&&(d=d+a+l),u=Math.max(d,u),c.minHeight=`${d}px`}if(Pe(n)){let d=p*n;s==="border-box"&&(d=d+a+l),u=Math.min(d,u)}return c.height=`${u}px`,(o=qn.parentNode)==null||o.removeChild(qn),qn=void 0,c}const QQ=_e({id:{type:String,default:void 0},size:tn,disabled:Boolean,modelValue:{type:J([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:J([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:Mt},prefixIcon:{type:Mt},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:J([Object,Array,String]),default:()=>Ot({})},autofocus:{type:Boolean,default:!1}}),eee={[tt]:e=>ct(e),input:e=>ct(e),change:e=>ct(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},tee=["role"],nee=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],oee=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],aee=U({name:"ElInput",inheritAttrs:!1}),lee=U({...aee,props:QQ,emits:eee,setup(e,{expose:t,emit:n}){const o=e,a=ya(),l=nn(),s=$(()=>{const Ce={};return o.containerRole==="combobox"&&(Ce["aria-haspopup"]=a["aria-haspopup"],Ce["aria-owns"]=a["aria-owns"],Ce["aria-expanded"]=a["aria-expanded"]),Ce}),i=$(()=>[o.type==="textarea"?y.b():v.b(),v.m(h.value),v.is("disabled",m.value),v.is("exceed",ae.value),{[v.b("group")]:l.prepend||l.append,[v.bm("group","append")]:l.append,[v.bm("group","prepend")]:l.prepend,[v.m("prefix")]:l.prefix||o.prefixIcon,[v.m("suffix")]:l.suffix||o.suffixIcon||o.clearable||o.showPassword,[v.bm("suffix","password-clear")]:D.value&&j.value},a.class]),u=$(()=>[v.e("wrapper"),v.is("focus",P.value)]),c=hc({excludeKeys:$(()=>Object.keys(s.value))}),{form:p,formItem:d}=yn(),{inputId:f}=Uo(o,{formItemContext:d}),h=Yt(),m=xn(),v=de("input"),y=de("textarea"),g=St(),b=St(),w=N(!1),C=N(!1),x=N(!1),M=N(),z=St(o.inputStyle),O=$(()=>g.value||b.value),{wrapperRef:L,isFocused:P,handleFocus:A,handleBlur:V}=fp(O,{afterBlur(){var Ce;o.validateEvent&&((Ce=d==null?void 0:d.validate)==null||Ce.call(d,"blur").catch(Fe=>void 0))}}),H=$(()=>{var Ce;return(Ce=p==null?void 0:p.statusIcon)!=null?Ce:!1}),F=$(()=>(d==null?void 0:d.validateState)||""),K=$(()=>F.value&&pc[F.value]),R=$(()=>x.value?k1:f1),I=$(()=>[a.style,o.inputStyle]),B=$(()=>[
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),Sae]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(_(),te(c,{key:2,class:E(e.ns.e("prefix"))},{default:G(()=>[W(u)]),_:1},8,["class"])):Q("v-if",!0),Q(" content "),W(p),Q(" postfix "),e.isLeaf?Q("v-if",!0):(_(),S(Ie,{key:3},[e.node.loading?(_(),te(c,{key:0,class:E([e.ns.is("loading"),e.ns.e("postfix")])},{default:G(()=>[W(d)]),_:1},8,["class"])):(_(),te(c,{key:1,class:E(["arrow-right",e.ns.e("postfix")])},{default:G(()=>[W(f)]),_:1},8,["class"]))],64))],42,kae)}var Eae=ye($ae,[["render",Mae],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const xae=U({name:"ElCascaderMenu",components:{Loading:To,ElIcon:Se,ElScrollbar:zo,ElCascaderNode:Eae},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=et(),n=de("cascader-menu"),{t:o}=ht(),a=Bs();let l=null,s=null;const i=Me(Bc),u=N(null),c=$(()=>!e.nodes.length),p=$(()=>!i.initialLoaded),d=$(()=>`cascader-menu-${a}-${e.index}`),f=y=>{l=y.target},h=y=>{if(!(!i.isHoverMenu||!l||!u.value))if(l.contains(y.target)){m();const g=t.vnode.el,{left:b}=g.getBoundingClientRect(),{offsetWidth:w,offsetHeight:C}=g,x=y.clientX-b,M=l.offsetTop,z=M+l.offsetHeight;u.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${x} ${M} L${w} 0 V${M} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${x} ${z} L${w} ${C} V${z} Z" />
`}else s||(s=window.setTimeout(v,i.config.hoverThreshold))},m=()=>{s&&(clearTimeout(s),s=null)},v=()=>{u.value&&(u.value.innerHTML="",m())};return{ns:n,panel:i,hoverZone:u,isEmpty:c,isLoading:p,menuId:d,t:o,handleExpand:f,handleMouseMove:h,clearHoverZone:v}}});function Tae(e,t,n,o,a,l){const s=Ue("el-cascader-node"),i=Ue("loading"),u=Ue("el-icon"),c=Ue("el-scrollbar");return _(),te(c,{key:e.menuId,tag:"ul",role:"menu",class:E(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 p;return[(_(!0),S(Ie,null,ft(e.nodes,d=>(_(),te(s,{key:d.uid,node:d,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(_(),S("div",{key:0,class:E(e.ns.e("empty-text"))},[W(u,{size:"14",class:E(e.ns.is("loading"))},{default:G(()=>[W(i)]),_:1},8,["class"]),bt(" "+be(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(_(),S("div",{key:1,class:E(e.ns.e("empty-text"))},be(e.t("el.cascader.noData")),3)):(p=e.panel)!=null&&p.isHoverMenu?(_(),S("svg",{key:2,ref:"hoverZone",class:E(e.ns.e("hover-zone"))},null,2)):Q("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var zae=ye(xae,[["render",Tae],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let Oae=0;const Aae=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let ru=class su{constructor(t,n,o,a=!1){this.data=t,this.config=n,this.parent=o,this.root=a,this.uid=Oae++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:l,label:s,children:i}=n,u=t[i],c=Aae(this);this.level=a?0:o?o.level+1:1,this.value=t[l],this.label=t[s],this.pathNodes=c,this.pathValues=c.map(p=>p.value),this.pathLabels=c.map(p=>p.label),this.childrenData=u,this.children=(u||[]).map(p=>new su(p,n,this)),this.loaded=!n.lazy||this.isLeaf||!Vn(u)}get isDisabled(){const{data:t,parent:n,config:o}=this,{disabled:a,checkStrictly:l}=o;return(wt(a)?a(t,this):!!t[a])||!l&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:o,loaded:a}=this,{lazy:l,leaf:s}=n,i=wt(s)?s(t,this):t[s];return Wt(i)?l&&!a?!1:!(Array.isArray(o)&&o.length):!!i}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:o}=this,a=new su(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],o.push(a),a}calcText(t,n){const o=t?this.pathLabels.join(n):this.label;return this.text=o,o}broadcast(t,...n){const o=`onParent${no(t)}`;this.children.forEach(a=>{a&&(a.broadcast(t,...n),a[o]&&a[o](...n))})}emit(t,...n){const{parent:o}=this,a=`onChild${no(t)}`;o&&(o[a]&&o[a](...n),o.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(a=>!a.isDisabled),o=n.length?n.every(a=>a.checked):!1;this.setCheckState(o)}setCheckState(t){const n=this.children.length,o=this.children.reduce((a,l)=>{const s=l.checked?1:l.indeterminate?.5:0;return a+s},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.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 iu=(e,t)=>e.reduce((n,o)=>(o.isLeaf?n.push(o):(!t&&n.push(o),n=n.concat(iu(o.children,t))),n),[]);class f2{constructor(t,n){this.config=n;const o=(t||[]).map(a=>new ru(a,this.config));this.nodes=o,this.allNodes=iu(o,!1),this.leafNodes=iu(o,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const o=n?n.appendChild(t):new ru(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(a=>$n(a.value,t)||$n(a.pathValues,t))||null}getSameNode(t){return t&&this.g
M 50 50
m 0 ${C?"":"-"}${w}
a ${w} ${w} 0 1 1 0 ${C?"-":""}${w*2}
a ${w} ${w} 0 1 1 0 ${C?"":"-"}${w*2}
`}),u=$(()=>2*Math.PI*s.value),c=$(()=>t.type==="dashboard"?.75:1),p=$(()=>`${-1*u.value*(1-c.value)/2}px`),d=$(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:p.value})),f=$(()=>({strokeDasharray:`${u.value*c.value*(t.percentage/100)}px, ${u.value}px`,strokeDashoffset:p.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=$(()=>{let w;return t.color?w=b(t.percentage):w=n[t.status]||n.default,w}),m=$(()=>t.status==="warning"?cr:t.type==="line"?t.status==="success"?Ns:xo:t.status==="success"?rl:Rn),v=$(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),y=$(()=>t.format(t.percentage));function g(w){const C=100/w.length;return w.map((M,z)=>ct(M)?{color:M,percentage:(z+1)*C}:M).sort((M,z)=>M.percentage-z.percentage)}const b=w=>{var C;const{color:x}=t;if(wt(x))return x(w);if(ct(x))return x;{const M=g(x);for(const z of M)if(z.percentage>w)return z.color;return(C=M[M.length-1])==null?void 0:C.color}};return(w,C)=>(_(),S("div",{class:E([r(o).b(),r(o).m(w.type),r(o).is(w.status),{[r(o).m("without-text")]:!w.showText,[r(o).m("text-inside")]:w.textInside}]),role:"progressbar","aria-valuenow":w.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[w.type==="line"?(_(),S("div",{key:0,class:E(r(o).b("bar"))},[k("div",{class:E(r(o).be("bar","outer")),style:Te({height:`${w.strokeWidth}px`})},[k("div",{class:E([r(o).be("bar","inner"),{[r(o).bem("bar","inner","indeterminate")]:w.indeterminate},{[r(o).bem("bar","inner","striped")]:w.striped},{[r(o).bem("bar","inner","striped-flow")]:w.stripedFlow}]),style:Te(r(a))},[(w.showText||w.$slots.default)&&w.textInside?(_(),S("div",{key:0,class:E(r(o).be("bar","innerText"))},[ie(w.$slots,"default",{percentage:w.percentage},()=>[k("span",null,be(r(y)),1)])],2)):Q("v-if",!0)],6)],6)],2)):(_(),S("div",{key:1,class:E(r(o).b("circle")),style:Te({height:`${w.width}px`,width:`${w.width}px`})},[(_(),S("svg",V0e,[k("path",{class:E(r(o).be("circle","track")),d:r(i),stroke:`var(${r(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":w.strokeLinecap,"stroke-width":r(l),fill:"none",style:Te(r(d))},null,14,L0e),k("path",{class:E(r(o).be("circle","path")),d:r(i),stroke:r(h),fill:"none",opacity:w.percentage?1:0,"stroke-linecap":w.strokeLinecap,"stroke-width":r(l),style:Te(r(f))},null,14,H0e)]))],6)),(w.showText||w.$slots.default)&&!w.textInside?(_(),S("div",{key:2,class:E(r(o).e("text")),style:Te({fontSize:`${r(v)}px`})},[ie(w.$slots,"default",{percentage:w.percentage},()=>[w.status?(_(),te(r(Se),{key:1},{default:G(()=>[(_(),te(at(r(m))))]),_:1})):(_(),S("span",P0e,be(r(y)),1))])],6)):Q("v-if",!0)],10,I0e))}});var D0e=ye(R0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const fh=Je(D0e),F0e=_e({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:J([Array,Object]),default:()=>Ot(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:J([Array,Object]),default:()=>[gl,gl,gl]},voidIcon:{type:Mt,default:()=>$1},disabledVoidIcon:{type:Mt,default:()=>gl},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:J(Array),default:()=>Ot(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:tn,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),K0e={[xt]:e=>Pe(e),[tt]:e=>Pe(e)},W0e=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],j0e=["onMousemove","onClick"],q0e=U({name:"ElRate"}),U0e=U({...q0e,props:F0e,emits:K0e,setup(e,{expose:t,emit:n}){const o=e;function a(R,I){const B=j=>Et(j),T=Object.keys(I).map(j=>+j).filter(j=>{const Z=I[j];return(B(Z)?Z.excluded:!1)?R<j:R<=j}).sort((j,Z)=>j-Z),D=I[T[0]];return B(D)&&D.value||D}const l=Me(Sa,void 0),s=Me(co,void 0),i=Yt(),u=de("rate"),{inputId:c,isLabeledByFormItem:p}=Uo(o,