From de09f543669607fe7ab5d80d5e90109ed36cb27e Mon Sep 17 00:00:00 2001 From: Xwite Date: Fri, 21 Apr 2023 23:56:27 +0000 Subject: [PATCH] Bump web v3.23.042207 --- ...Chapter-e6619d8a.js => BookChapter-6faa194e.js} | 2 +- ...BookShelf-e6a2af62.js => BookShelf-c2410b56.js} | 2 +- .../{config-97894739.js => config-752e04be.js} | 2 +- ...-loading-5b5af897.js => el-loading-b910ac83.js} | 2 +- .../{index-71b7f9c4.css => index-060af40e.css} | 2 +- .../{index-ab2e286b.js => index-f4927a88.js} | 14 +++++++------- .../{vendor-8be1f5fb.js => vendor-bf77f5c0.js} | 10 +++++----- app/src/main/assets/web/vue/index.html | 6 +++--- 8 files changed, 20 insertions(+), 20 deletions(-) rename app/src/main/assets/web/vue/assets/{BookChapter-e6619d8a.js => BookChapter-6faa194e.js} (87%) rename app/src/main/assets/web/vue/assets/{BookShelf-e6a2af62.js => BookShelf-c2410b56.js} (86%) rename app/src/main/assets/web/vue/assets/{config-97894739.js => config-752e04be.js} (60%) rename app/src/main/assets/web/vue/assets/{el-loading-5b5af897.js => el-loading-b910ac83.js} (97%) rename app/src/main/assets/web/vue/assets/{index-71b7f9c4.css => index-060af40e.css} (90%) rename app/src/main/assets/web/vue/assets/{index-ab2e286b.js => index-f4927a88.js} (57%) rename app/src/main/assets/web/vue/assets/{vendor-8be1f5fb.js => vendor-bf77f5c0.js} (92%) diff --git a/app/src/main/assets/web/vue/assets/BookChapter-e6619d8a.js b/app/src/main/assets/web/vue/assets/BookChapter-6faa194e.js similarity index 87% rename from app/src/main/assets/web/vue/assets/BookChapter-e6619d8a.js rename to app/src/main/assets/web/vue/assets/BookChapter-6faa194e.js index f94cf5dc3..f30534067 100644 --- a/app/src/main/assets/web/vue/assets/BookChapter-e6619d8a.js +++ b/app/src/main/assets/web/vue/assets/BookChapter-6faa194e.js @@ -1 +1 @@ -import{i as Re,g as ke,l as Pe}from"./el-loading-5b5af897.js";import{_ as de,u as ue,A as ve}from"./index-ab2e286b.js";import{q as m,P as Z,a8 as re,o as A,d as p,M as ae,a9 as T,u as o,F as le,m as g,aa as Ke,R as Se,g as t,n as Q,t as X,e as q,w as W,a2 as Ne,v as Ae,ab as Le,f as ce,K as ne,ac as He,D as ze,ad as Ee,p as me,i as ye,ae as he,s as we,I as se,B as z,af as Je,a6 as We,c as Te,a7 as qe}from"./vendor-8be1f5fb.js";const Ge="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXr5djn4dTp49bt59rT6LKxAAACnElEQVQozw3NUUwScRzA8d8R6MF8YMIx8uk47hDSJbj14IPzOGc7jPLvwTGg5uAYDbe2tt56cLtznvEnS6yDqCcEaWi91DvrbLJZz7b1aFtz1aO+2OZWvn+/+4CHeB6BMYaqBLfjPNRY6RFT2JJYby+uAk4WUTrtlmJ4hgPYb2q1XGDQjaK8pgJHvqNaAX+KyuIkDXpgQinb46nOulnn4b5laUHTxLfseeArAoNOeJlOIjdoal0n1FA7tKFv5roK+YaHOqP3P0XyKHPHY+MhTRe5uCZnKhtJKw2eSrSoBDPLtpZuNcFNJcFyiCMxOaaHIfXz1e8HQbWLySrBQ4x0x1qlhnHlnz2HQEC6TNb0gTHXa7IKhcaHqkE015hk9whA0YeWiLIXf7Fa2CZo3DjqjB4tTuF8jIcbfcEx5z/w4sXpQhXW+ju0cqh7icTFmRMaG+v6CIvTjcSpHcH8JEsF3EPh3fRthYdVLLgI2fWXm85/pGFE4l046s70L+yKCcirGFR+jbpy3kMmiCGHrSezVONsn1RBixncyk2PcVWk7DlgxHo8iZwDyq5uAUD854dZhdIFYzKoQig2haUKi1lVufz2RZUZPZ41n/hrOQB6h0Hhg8I367FNoEHgeM/KY7szSeQwD8q2WE3HM35ZLl0K1MJiOtHIkBclRQUwZnyOWcNsRQQgVLj1PSqkjF9DsoOSaSg3iinKzvfmgsNFFfpP/2T3GLGvL4fHEfwIX1sVvXcPqLztehWGcfn9nI2U9nTfCgJPe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ohNrcKMEzMQ23FDnVSI2dqtYWI7KlLu6vE4UnyvKc3SJuL7lBbeEEl42ItpGLjzIT8PRJCmkRjVpVpsbJFVN0687okJNZiHAr5Z7MV0BnGIDc+THM1zlbieBc1Fq+tH5BH+OpnbWkj40hSqC8Lw2TvFuF0SUFJCk2IytXbjeqcRAt6NHpnrUkUU4KRzZs8RCK8N/Akn2W04LwxMU/V7XK0bDyN2RxfDyx7I4h5vjZby72V8UnOWumZL3qtYc+8DTE0siSBMXGhywx2dMYPnQHbxdFZ7deiNGxCCtD/QWnbwDoGhRYPDzUdUA3krjpnkvdAgDN4ddLkEQSov9qjd42HaDjI34gEqS9TUueAk+sc4qg5ws407KQYKs8G1jv4xBlqBVk6cb4dISZIwVi1Jzu4+HLk6lyfUxkXvwy+1Q+4WVdHIhwfybZ6CWVhxMEhShOgsP/HOW0MvZJeFwAAAABJRU5ErkJggg==";var J={themes:[{body:"#ede7da url("+Ge+") repeat",content:"#ede7da url("+Ze+") repeat",popup:"#ede7da url("+Ye+") repeat"},{body:"#ede7da url("+_e+") repeat",content:"#ede7da url("+Xe+") repeat",popup:"#ede7da url("+je+") repeat"},{body:"#ede7da url("+$e+") repeat",content:"#ede7da url("+et+") repeat",popup:"#ede7da url("+tt+") repeat"},{body:"#ede7da url("+ot+") repeat",content:"#ede7da url("+nt+") repeat",popup:"#ede7da url("+st+") repeat"},{body:"#ebcece repeat",content:"#f5e4e4 repeat",popup:"#faeceb repeat"},{body:"#ede7da url("+at+") repeat",content:"#ede7da url("+lt+") repeat",popup:"#ede7da url("+it+") repeat"},{body:"#ede7da url("+ct+") repeat",content:"#ede7da url("+rt+") repeat",popup:"#ede7da url("+At+") repeat"}],fonts:[{fontFamily:"Microsoft YaHei, PingFangSC-Regular, HelveticaNeue-Light, Helvetica Neue Light, sans-serif"},{fontFamily:"PingFangSC-Regular, -apple-system, Simsun"},{fontFamily:"Kaiti"}]};const dt=["src"],ut=["innerHTML"],gt={__name:"ChapterContent",props:["carray"],setup(a){const n=ue(),d=m(()=>n.config.font>=0?J.fonts[n.config.font]:{fontFamily:n.config.customFontName}),v=m(()=>n.config.fontSize+"px"),l=m(()=>{let u=d.value;return u.fontSize=v.value,u}),D=u=>{const h=/]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/,c=u.match(h)[1];return Re(c)?ke(c):c},B=u=>{u.target.src=ke(u.target.src)};return Z(v,()=>{n.setShowContent(!1),re(()=>{n.setShowContent(!0)})}),(u,h)=>(A(!0),p(le,null,ae(a.carray,(c,i)=>(A(),p("div",{key:i},[/^\s*]*src[^>]+>$/.test(c)?(A(),p("img",{key:0,class:"full",src:D(c),onErrorOnce:B,loading:"lazy"},null,40,dt)):(A(),p("p",{key:1,style:T(o(l)),innerHTML:c},null,12,ut))]))),128))}},pt=de(gt,[["__scopeId","data-v-17a45a65"]]);const I=a=>(me("data-v-9f479a0b"),a=a(),ye(),a),ft=I(()=>t("div",{class:"settings-title"},"设置",-1)),vt={class:"setting-list"},ht={class:"theme-list"},mt=I(()=>t("i",null,"阅读主题",-1)),yt=["onClick"],bt={key:0,class:"iconfont"},Bt={key:1,class:"moon-icon"},It={class:"font-list"},Ct=I(()=>t("i",null,"正文字体",-1)),kt=["onClick"],St={class:"font-list"},Et=I(()=>t("i",null,"自定字体",-1)),wt=I(()=>t("p",null," 请确认输入的字体名称完整无误,并且该字体已经安装在您的设备上。 ",-1)),Ut=I(()=>t("p",null,"确定保存吗?",-1)),Qt={style:{"text-align":"right",margin:"0"}},Dt=I(()=>t("span",{type:"text",class:"font-item"},"保存",-1)),Vt={class:"font-size"},Mt=I(()=>t("i",null,"字体大小",-1)),xt={class:"resize"},Ft=I(()=>t("em",{class:"iconfont"},"",-1)),Ot=[Ft],Rt=I(()=>t("b",null,null,-1)),Pt={class:"lang"},Kt=I(()=>t("b",null,null,-1)),Nt=I(()=>t("em",{class:"iconfont"},"",-1)),Lt=[Nt],Ht={key:0,class:"read-width"},zt=I(()=>t("i",null,"页面宽度",-1)),Jt={class:"resize"},Wt=I(()=>t("em",{class:"iconfont"},"",-1)),Tt=[Wt],qt=I(()=>t("b",null,null,-1)),Gt={class:"lang"},Zt=I(()=>t("b",null,null,-1)),Yt=I(()=>t("em",{class:"iconfont"},"",-1)),_t=[Yt],Xt={class:"infinite-loading"},jt=I(()=>t("i",null,"无限加载",-1)),$t={__name:"ReadSettings",setup(a){const n=ue(),d=g(0),v=g(n.config.theme==6),l=g(""),D=Ke([{background:"rgba(250, 245, 235, 0.8)"},{background:"rgba(245, 234, 204, 0.8)"},{background:"rgba(230, 242, 230, 0.8)"},{background:"rgba(228, 241, 245, 0.8)"},{background:"rgba(245, 228, 228, 0.8)"},{background:"rgba(224, 224, 224, 0.8)"},{background:"rgba(0, 0, 0, 0.5)"}]),B=g({display:"inline",color:"rgba(255,255,255,0.2)"}),u=g(["雅黑","宋体","楷书"]),h=g(n.config.customFontName),c=g(!1);Se(()=>{var y=n.config;d.value=y.theme,d.value==6?l.value="":l.value=""});const i=m(()=>n.config),V=m(()=>({background:J.themes[i.value.theme].popup})),x=m(()=>n.config.theme),S=m(()=>n.config.font),E=m(()=>n.config.fontSize),K=m(()=>n.config.readWidth),H=m(()=>n.config.infiniteLoading),F=y=>{y==6?(v.value=!0,l.value="",B.value.color="#ed4259"):(v.value=!1,l.value="",B.value.color="rgba(255,255,255,0.2)"),i.value.theme=y,N(i.value)},O=y=>{i.value.font=y,N(i.value)},f=()=>{i.value.font=-1,i.value.customFontName=h.value,N(i.value)},C=()=>{i.value.fontSize<48&&(i.value.fontSize+=2),N(i.value)},j=()=>{i.value.fontSize>12&&(i.value.fontSize-=2),N(i.value)},ge=()=>{i.value.readWidth+=160,N(i.value)},ie=()=>{i.value.readWidth>640&&(i.value.readWidth-=160),N(i.value)},$=y=>{i.value.infiniteLoading=y,N(i.value)},N=y=>{n.setConfig(y),localStorage.setItem("config",JSON.stringify(y)),ee(y)},ee=y=>{ve.saveReadConfig(y)};return(y,k)=>{const te=He,Y=ze,G=Ee;return A(),p("div",{class:Q(["settings-wrapper",{night:o(v),day:!o(v)}]),style:T(o(V))},[ft,t("div",vt,[t("ul",null,[t("li",ht,[mt,(A(!0),p(le,null,ae(o(D),(w,L)=>(A(),p("span",{class:Q(["theme-item",{selected:o(x)==L}]),key:L,style:T(w),ref_for:!0,ref:"themes",onClick:pe=>F(L)},[L<6?(A(),p("em",bt,"")):(A(),p("em",Bt,X(o(l)),1))],14,yt))),128))]),t("li",It,[Ct,(A(!0),p(le,null,ae(o(u),(w,L)=>(A(),p("span",{class:Q(["font-item",{selected:o(S)==L}]),key:L,onClick:pe=>O(L)},X(w),11,kt))),128))]),t("li",St,[Et,q(te,{effect:"dark",content:"自定义的字体名称",placement:"top"},{default:W(()=>[Ne(t("input",{type:"text",class:"font-item font-item-input","onUpdate:modelValue":k[0]||(k[0]=w=>Ae(h)?h.value=w:null),placeholder:"请输入自定义的字体名称"},null,512),[[Le,o(h)]])]),_:1}),q(G,{placement:"top",width:"180",trigger:"click",visible:o(c),"onUpdate:visible":k[3]||(k[3]=w=>Ae(c)?c.value=w:null)},{reference:W(()=>[Dt]),default:W(()=>[wt,Ut,t("div",Qt,[q(Y,{size:"small",plain:"",onClick:k[1]||(k[1]=w=>c.value=!1)},{default:W(()=>[ce("取消")]),_:1}),q(Y,{type:"primary",size:"small",onClick:k[2]||(k[2]=w=>{f(),c.value=!1})},{default:W(()=>[ce("确定")]),_:1})])]),_:1},8,["visible"])]),t("li",Vt,[Mt,t("div",xt,[t("span",{class:"less",onClick:j},Ot),Rt,ce(),t("span",Pt,X(o(E)),1),Kt,t("span",{class:"more",onClick:C},Lt)])]),o(n).miniInterface?ne("",!0):(A(),p("li",Ht,[zt,t("div",Jt,[t("span",{class:"less",onClick:ie},Tt),qt,ce(),t("span",Gt,X(o(K)),1),Zt,t("span",{class:"more",onClick:ge},_t)])])),t("li",Xt,[jt,(A(),p("span",{class:Q(["infinite-loading-item",{selected:o(H)==!1}]),key:0,onClick:k[4]||(k[4]=w=>$(!1))},"关闭",2)),(A(),p("span",{class:Q(["infinite-loading-item",{selected:o(H)==!0}]),key:1,onClick:k[5]||(k[5]=w=>$(!0))},"开启",2))])])])],6)}}},eo=de($t,[["__scopeId","data-v-9f479a0b"]]),to=(a,n,d,v)=>(a/=v/2,a<1?d/2*a*a+n:(a--,-d/2*(a*(a-2)-1)+n)),oo=()=>{let a,n,d,v,l,D,B,u,h,c,i,V,x;function S(){let f=a.scrollTop||a.scrollY||a.pageYOffset;return f=typeof f>"u"?0:f,f}function E(f){const C=f.getBoundingClientRect().top,j=a.getBoundingClientRect?a.getBoundingClientRect().top:0;return C-j+d}function K(f){a.scrollTo?a.scrollTo(0,f):a.scrollTop=f}function H(f){c||(c=f),i=f-c,V=D(i,d,u,h),K(V),i(me("data-v-8da315d1"),a=a(),ye(),a),so=no(()=>t("div",{class:"title"},"目录",-1)),ao={class:"cata"},lo=["onClick"],io={class:"log-text"},co={__name:"PopCatalog",emits:["getContent"],setup(a,{emit:n}){const d=ue(),v=g(!1),{index:l}=he(d.readingBook),{catalog:D,popCataVisible:B}=we(d),u=m(()=>d.config.theme),h=m(()=>({background:J.themes[u.value].popup}));se(()=>{v.value=u.value==6});const c=g(),i=g();Z(B,()=>{re(()=>{let S=i.value;_(c.value[l.value],{container:S,duration:0})})});const V=S=>S==l.value,x=S=>{l.value=D.value.indexOf(S),d.setPopCataVisible(!1),d.setContentLoading(!0),n("getContent",l.value)};return(S,E)=>(A(),p("div",{class:"cata-wrapper",style:T(o(h))},[so,t("div",{class:Q(["data-wrapper",{night:o(v),day:!o(v)}]),ref_key:"cataData",ref:i},[t("div",ao,[(A(!0),p(le,null,ae(o(D),(K,H)=>(A(),p("div",{class:Q(["log",{selected:V(H)}]),key:K.durChapterIndex,onClick:F=>x(K),ref_for:!0,ref_key:"cata",ref:c},[t("div",io,X(K.title),1)],10,lo))),128))])],2)],4))}},ro=de(co,[["__scopeId","data-v-8da315d1"]]);const M=a=>(me("data-v-ff1ea184"),a=a(),ye(),a),Ao={class:"tools"},uo=M(()=>t("div",{class:"iconfont"},"",-1)),go=M(()=>t("div",{class:"icon-text"},"目录",-1)),po=[uo,go],fo=M(()=>t("div",{class:"iconfont"},"",-1)),vo=M(()=>t("div",{class:"icon-text"},"设置",-1)),ho=[fo,vo],mo=M(()=>t("div",{class:"iconfont"},"",-1)),yo=M(()=>t("div",{class:"icon-text"},"书架",-1)),bo=[mo,yo],Bo=M(()=>t("div",{class:"iconfont"},"",-1)),Io=M(()=>t("div",{class:"icon-text"},"顶部",-1)),Co=[Bo,Io],ko=M(()=>t("div",{class:"iconfont"},"",-1)),So=M(()=>t("div",{class:"icon-text"},"底部",-1)),Eo=[ko,So],wo={class:"tools"},Uo=M(()=>t("div",{class:"iconfont"},"",-1)),Qo={key:0},Do={key:0},Vo=M(()=>t("div",{class:"iconfont"},"",-1)),Mo=M(()=>t("div",{class:"chapter-bar"},null,-1)),xo={class:"content"},Fo=["index"],Oo={__name:"BookChapter",setup(a){const n=g(!1),d=g(null),v=g();Z(n,e=>{var s;if(!e)return(s=d.value)==null?void 0:s.close();d.value=qe.service({target:v.value,spinner:Pe,text:"正在获取信息",lock:!0})});const l=ue();try{const e=JSON.parse(localStorage.getItem("config"));e!=null&&l.setConfig(e)}catch{localStorage.removeItem("config")}const D=g(),B=g(!0),u=g(!1),h=g([]),c=g(null),i=g(null),{catalog:V,popCataVisible:x,readSettingsVisible:S,miniInterface:E,showContent:K}=we(l),{chapterPos:H,index:F}=he(l.readingBook),{theme:O,infiniteLoading:f}=he(l.config),C=m(()=>J.themes[O.value].body),j=m(()=>J.themes[O.value].content),ge=m(()=>J.themes[O.value].popup),ie=m(()=>E.value?window.innerWidth+"px":l.config.readWidth-130+"px"),$=m(()=>E.value?window.innerWidth-33:l.config.readWidth-33),N=m(()=>({background:J.themes[O.value].body})),ee=m(()=>({background:J.themes[O.value].content,width:ie.value})),y=m(()=>({background:J.themes[O.value].popup,marginLeft:E.value?0:-(l.config.readWidth/2+68)+"px",display:E.value&&!u.value?"none":"block"})),k=m(()=>({background:J.themes[O.value].popup,marginRight:E.value?0:-(l.config.readWidth/2+52)+"px",display:E.value&&!u.value?"none":"block"})),te=g(!1);se(()=>{te.value=O.value==6}),Z(C,e=>{N.value.background=e}),Z(j,e=>{ee.value.background=e}),Z(ie,e=>{ee.value.width=e;let s=-((parseInt(e)+130)/2+68)+"px",R=-((parseInt(e)+130)/2+52)+"px";y.value.marginLeft=s,k.value.marginRight=R}),Z(ge,e=>{y.value.background=e,k.value.background=e}),se(()=>{h.value.length>0&&(l.setContentLoading(!1),Fe())}),se(()=>{var e;document.title=((e=V.value[F.value])==null?void 0:e.title)||document.title,l.saveBookProcess()}),se(()=>{var e,s;f.value?(s=c.value)==null||s.observe(D.value):(e=c.value)==null||e.disconnect()});const Y=g(),G=(e,s=!0,R=0)=>{s&&(l.setShowContent(!1),n.value=!0,_(Y.value,{duration:0}),Qe(e,R));let b=sessionStorage.getItem("bookUrl"),{title:P,index:U}=V.value[e];ve.getBookContent(b,U).then(r=>{if(r.data.isSuccess){let Oe=r.data.data.split(/\n+/);fe({index:e,content:Oe,title:P},s)}else{z({message:r.data.errorMsg,type:"error"});let oe=[r.data.errorMsg];fe({index:e,content:oe,title:P},s)}if(l.setContentLoading(!0),n.value=!1,B.value=!1,l.setShowContent(!0),!r.data.isSuccess)throw r.data},r=>{throw z({message:"获取章节内容失败",type:"error"}),fe({index:e,content:["获取章节内容失败!"],title:P},s),n.value=!1,l.setShowContent(!0),r})},w=g(),L=g(),pe=()=>{_(Y.value)},Ue=()=>{_(L.value)},be=()=>{l.setContentLoading(!0);let e=F.value+1;typeof V.value[e]<"u"?(z({message:"下一章",type:"info"}),G(e)):z({message:"本章是最后一章",type:"error"})},Be=()=>{l.setContentLoading(!0);let e=F.value-1;typeof V.value[e]<"u"?(z({message:"上一章",type:"info"}),G(e)):z({message:"本章是第一章",type:"error"})},Qe=(e,s=H.value)=>{let R=sessionStorage.getItem("bookUrl");var b=JSON.parse(localStorage.getItem(R));b.index=e,b.chapterPos=s,localStorage.setItem(R,JSON.stringify(b)),b=JSON.parse(localStorage.getItem("readingRecent")),b.chapterIndex=e,b.chapterPos=s,localStorage.setItem("readingRecent",JSON.stringify(b)),F.value=e,H.value=s,sessionStorage.setItem("chapterIndex",e),sessionStorage.setItem("chapterPos",String(s))},fe=async(e,s)=>{s&&h.value.splice(0),h.value.push(e)},De=()=>{let e=h.value.slice(-1)[0].index;V.value.length-1>e&&G(e+1,!1)},Ve=We(),Ie=()=>{Ve.push("/")},Ce=e=>{switch(e.key){case"ArrowLeft":e.stopPropagation(),e.preventDefault(),Be();break;case"ArrowRight":e.stopPropagation(),e.preventDefault(),be();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),document.documentElement.scrollTop===0?z({message:"已到达页面顶部",type:"warn"}):_(0-document.documentElement.clientHeight+100);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),document.documentElement.clientHeight+document.documentElement.scrollTop===document.documentElement.scrollHeight?z({message:"已到达页面底部",type:"warn"}):_(document.documentElement.clientHeight-100);break}},Me=e=>{if(!n.value)for(let{isIntersecting:s}of e){if(!s)return;De()}},xe=e=>{re(()=>{for(let{isIntersecting:s,target:R,boundingClientRect:b}of e){let P=R.querySelector(".title");if(!P)return;let U=parseInt(P.getAttribute("index"));s?F.value=U:b.top<0?F.value=U+1:F.value=U-1}})},Fe=()=>{re(()=>{let e=w.value;e&&e.forEach(s=>i.value.observe(s))})};return Se(()=>{n.value=!0;let e=sessionStorage.getItem("bookUrl"),s=sessionStorage.getItem("bookName"),R=sessionStorage.getItem("bookAuthor"),b=Number(sessionStorage.getItem("chapterIndex")||0),P=Number(sessionStorage.getItem("chapterPos")||0);var U=JSON.parse(localStorage.getItem(e));(U==null||b!=U.index||P!=U.chapterPos)&&(U={bookName:s,bookAuthor:R,bookUrl:e,index:b,chapterPos:P},localStorage.setItem(e,JSON.stringify(U))),ve.getChapterList(e).then(r=>{if(n.value=!1,!r.data.isSuccess){z({message:r.data.errorMsg,type:"error"}),setTimeout(Ie,500);return}let oe=r.data.data;l.setCatalog(oe),l.setReadingBook(U),G(b,!0,P),window.addEventListener("keyup",Ce),c.value=new IntersectionObserver(Me,{rootMargin:"-100% 0% 20% 0%"}),f.value&&c.value.observe(D.value),i.value=new IntersectionObserver(xe),document.title=null,document.title=s+" | "+V.value[b].title},r=>{throw n.value=!1,z({message:"获取书籍目录失败",type:"error"}),r})}),Je(()=>{var e,s;window.removeEventListener("keyup",Ce),S.value=!1,x.value=!1,(e=c.value)==null||e.disconnect(),(s=i.value)==null||s.disconnect()}),(e,s)=>{const R=ro,b=Ee,P=eo,U=pt;return A(),p("div",{class:Q(["chapter-wrapper",{night:o(te),day:!o(te)}]),style:T(o(N)),onClick:s[2]||(s[2]=r=>u.value=!o(u))},[t("div",{class:"tool-bar",style:T(o(y))},[t("div",Ao,[q(b,{placement:"right",width:o($),trigger:"click","show-arrow":!1,visible:o(x),"onUpdate:visible":s[0]||(s[0]=r=>Ae(x)?x.value=r:null),"popper-class":"pop-cata"},{reference:W(()=>[t("div",{class:Q(["tool-icon",{"no-point":o(B)}])},po,2)]),default:W(()=>[q(R,{onGetContent:G,class:"popup"})]),_:1},8,["width","visible"]),q(b,{placement:"right",width:o($),trigger:"click","show-arrow":!1,visible:o(S),"onUpdate:visible":s[1]||(s[1]=r=>Ae(S)?S.value=r:null),"popper-class":"pop-setting"},{reference:W(()=>[t("div",{class:Q(["tool-icon",{"no-point":o(B)}])},ho,2)]),default:W(()=>[q(P,{class:"popup"})]),_:1},8,["width","visible"]),t("div",{class:"tool-icon",onClick:Ie},bo),t("div",{class:Q(["tool-icon",{"no-point":o(B)}]),onClick:pe},Co,2),t("div",{class:Q(["tool-icon",{"no-point":o(B)}]),onClick:Ue},Eo,2)])],4),t("div",{class:"read-bar",style:T(o(k))},[t("div",wo,[t("div",{class:Q(["tool-icon",{"no-point":o(B)}]),onClick:Be},[Uo,o(E)?(A(),p("span",Qo,"上一章")):ne("",!0)],2),t("div",{class:Q(["tool-icon",{"no-point":o(B)}]),onClick:be},[o(E)?(A(),p("span",Do,"下一章")):ne("",!0),Vo],2)])],4),Mo,t("div",{class:"chapter",ref_key:"content",ref:v,style:T(o(ee))},[t("div",xo,[t("div",{class:"top-bar",ref_key:"top",ref:Y},null,512),(A(!0),p(le,null,ae(o(h),r=>(A(),p("div",{key:r.index,ref_for:!0,ref_key:"chapter",ref:w},[o(K)?(A(),p("div",{key:0,class:"title",index:r.index},X(r.title),9,Fo)):ne("",!0),o(K)?(A(),Te(U,{key:1,carray:r.content},null,8,["carray"])):ne("",!0)]))),128)),t("div",{class:"loading",ref_key:"loading",ref:D},null,512),t("div",{class:"bottom-bar",ref_key:"bottom",ref:L},null,512)])],4)],6)}}},No=de(Oo,[["__scopeId","data-v-ff1ea184"]]);export{No as default}; +import{i as Re,g as ke,l as Pe}from"./el-loading-b910ac83.js";import{_ as de,u as ue,A as ve}from"./index-f4927a88.js";import{x as m,P as Z,a8 as re,o as A,d as p,M as ae,a9 as T,u as o,F as le,v as g,aa as Ke,R as Se,g as t,n as Q,t as X,e as G,w as W,a2 as Ne,y as Ae,ab as Le,f as ce,K as ne,ac as He,G as ze,ad as Ee,p as me,i as ye,ae as he,s as we,I as se,k as z,af as Je,a6 as We,c as Te,a7 as Ge}from"./vendor-bf77f5c0.js";const qe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXr5djn4dTp49bt59rT6LKxAAACnElEQVQozw3NUUwScRzA8d8R6MF8YMIx8uk47hDSJbj14IPzOGc7jPLvwTGg5uAYDbe2tt56cLtznvEnS6yDqCcEaWi91DvrbLJZz7b1aFtz1aO+2OZWvn+/+4CHeB6BMYaqBLfjPNRY6RFT2JJYby+uAk4WUTrtlmJ4hgPYb2q1XGDQjaK8pgJHvqNaAX+KyuIkDXpgQinb46nOulnn4b5laUHTxLfseeArAoNOeJlOIjdoal0n1FA7tKFv5roK+YaHOqP3P0XyKHPHY+MhTRe5uCZnKhtJ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Z7deiNGxCCtD/QWnbwDoGhRYPDzUdUA3krjpnkvdAgDN4ddLkEQSov9qjd42HaDjI34gEqS9TUueAk+sc4qg5ws407KQYKs8G1jv4xBlqBVk6cb4dISZIwVi1Jzu4+HLk6lyfUxkXvwy+1Q+4WVdHIhwfybZ6CWVhxMEhShOgsP/HOW0MvZJeFwAAAABJRU5ErkJggg==",At="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEUWGBkYGhsdHyAfISI1t/v6AAAB5ElEQVQozxXQsYoTURSA4f/EeycZsDgDdySDjihk38Hy3GWi2J2BCaziQhaiaB+tt9AFu1kwvYUPsIXNPoB9BAUfwAfwEUzKv/v4odGrroyp9/rUaC6rZ5skv5F8qPsfYYP+yKUMymmAEEeW55oUR4o8jr05KNzJ07yvB7w0KKfLwcQUSjfmMU0PJfPHFoEVU+ohNrcKMEzMQ23FDnVSI2dqtYWI7KlLu6vE4UnyvKc3SJuL7lBbeEEl42ItpGLjzIT8PRJCmkRjVpVpsbJFVN0687okJNZiHAr5Z7MV0BnGIDc+THM1zlbieBc1Fq+tH5BH+OpnbWkj40hSqC8Lw2TvFuF0SUFJCk2IytXbjeqcRAt6NHpnrUkUU4KRzZs8RCK8N/Akn2W04LwxMU/V7XK0bDyN2RxfDyx7I4h5vjZby72V8UnOWumZL3qtYc+8DTE0siSBMXGhywx2dMYPnQHbxdFZ7deiNGxCCtD/QWnbwDoGhRYPDzUdUA3krjpnkvdAgDN4ddLkEQSov9qjd42HaDjI34gEqS9TUueAk+sc4qg5ws407KQYKs8G1jv4xBlqBVk6cb4dISZIwVi1Jzu4+HLk6lyfUxkXvwy+1Q+4WVdHIhwfybZ6CWVhxMEhShOgsP/HOW0MvZJeFwAAAABJRU5ErkJggg==";var J={themes:[{body:"#ede7da url("+qe+") repeat",content:"#ede7da url("+Ze+") repeat",popup:"#ede7da url("+Ye+") repeat"},{body:"#ede7da url("+_e+") repeat",content:"#ede7da url("+Xe+") repeat",popup:"#ede7da url("+je+") repeat"},{body:"#ede7da url("+$e+") repeat",content:"#ede7da url("+et+") repeat",popup:"#ede7da url("+tt+") repeat"},{body:"#ede7da url("+ot+") repeat",content:"#ede7da url("+nt+") repeat",popup:"#ede7da url("+st+") repeat"},{body:"#ebcece repeat",content:"#f5e4e4 repeat",popup:"#faeceb repeat"},{body:"#ede7da url("+at+") repeat",content:"#ede7da url("+lt+") repeat",popup:"#ede7da url("+it+") repeat"},{body:"#ede7da url("+ct+") repeat",content:"#ede7da url("+rt+") repeat",popup:"#ede7da url("+At+") repeat"}],fonts:[{fontFamily:"Microsoft YaHei, PingFangSC-Regular, HelveticaNeue-Light, Helvetica Neue Light, sans-serif"},{fontFamily:"PingFangSC-Regular, -apple-system, Simsun"},{fontFamily:"Kaiti"}]};const dt=["src"],ut=["innerHTML"],gt={__name:"ChapterContent",props:["carray"],setup(a){const n=ue(),d=m(()=>n.config.font>=0?J.fonts[n.config.font]:{fontFamily:n.config.customFontName}),v=m(()=>n.config.fontSize+"px"),l=m(()=>{let u=d.value;return u.fontSize=v.value,u}),D=u=>{const h=/]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/,c=u.match(h)[1];return Re(c)?ke(c):c},I=u=>{u.target.src=ke(u.target.src)};return Z(v,()=>{n.setShowContent(!1),re(()=>{n.setShowContent(!0)})}),(u,h)=>(A(!0),p(le,null,ae(a.carray,(c,i)=>(A(),p("div",{key:i},[/^\s*]*src[^>]+>$/.test(c)?(A(),p("img",{key:0,class:"full",src:D(c),onErrorOnce:I,loading:"lazy"},null,40,dt)):(A(),p("p",{key:1,style:T(o(l)),innerHTML:c},null,12,ut))]))),128))}},pt=de(gt,[["__scopeId","data-v-17a45a65"]]);const B=a=>(me("data-v-9f479a0b"),a=a(),ye(),a),ft=B(()=>t("div",{class:"settings-title"},"设置",-1)),vt={class:"setting-list"},ht={class:"theme-list"},mt=B(()=>t("i",null,"阅读主题",-1)),yt=["onClick"],bt={key:0,class:"iconfont"},It={key:1,class:"moon-icon"},Bt={class:"font-list"},Ct=B(()=>t("i",null,"正文字体",-1)),kt=["onClick"],St={class:"font-list"},Et=B(()=>t("i",null,"自定字体",-1)),wt=B(()=>t("p",null," 请确认输入的字体名称完整无误,并且该字体已经安装在您的设备上。 ",-1)),Ut=B(()=>t("p",null,"确定保存吗?",-1)),Qt={style:{"text-align":"right",margin:"0"}},Dt=B(()=>t("span",{type:"text",class:"font-item"},"保存",-1)),Vt={class:"font-size"},Mt=B(()=>t("i",null,"字体大小",-1)),xt={class:"resize"},Ft=B(()=>t("em",{class:"iconfont"},"",-1)),Ot=[Ft],Rt=B(()=>t("b",null,null,-1)),Pt={class:"lang"},Kt=B(()=>t("b",null,null,-1)),Nt=B(()=>t("em",{class:"iconfont"},"",-1)),Lt=[Nt],Ht={key:0,class:"read-width"},zt=B(()=>t("i",null,"页面宽度",-1)),Jt={class:"resize"},Wt=B(()=>t("em",{class:"iconfont"},"",-1)),Tt=[Wt],Gt=B(()=>t("b",null,null,-1)),qt={class:"lang"},Zt=B(()=>t("b",null,null,-1)),Yt=B(()=>t("em",{class:"iconfont"},"",-1)),_t=[Yt],Xt={class:"infinite-loading"},jt=B(()=>t("i",null,"无限加载",-1)),$t={__name:"ReadSettings",setup(a){const n=ue(),d=g(0),v=g(n.config.theme==6),l=g(""),D=Ke([{background:"rgba(250, 245, 235, 0.8)"},{background:"rgba(245, 234, 204, 0.8)"},{background:"rgba(230, 242, 230, 0.8)"},{background:"rgba(228, 241, 245, 0.8)"},{background:"rgba(245, 228, 228, 0.8)"},{background:"rgba(224, 224, 224, 0.8)"},{background:"rgba(0, 0, 0, 0.5)"}]),I=g({display:"inline",color:"rgba(255,255,255,0.2)"}),u=g(["雅黑","宋体","楷书"]),h=g(n.config.customFontName),c=g(!1);Se(()=>{var y=n.config;d.value=y.theme,d.value==6?l.value="":l.value=""});const i=m(()=>n.config),V=m(()=>({background:J.themes[i.value.theme].popup})),x=m(()=>n.config.theme),S=m(()=>n.config.font),E=m(()=>n.config.fontSize),K=m(()=>n.config.readWidth),H=m(()=>n.config.infiniteLoading),F=y=>{y==6?(v.value=!0,l.value="",I.value.color="#ed4259"):(v.value=!1,l.value="",I.value.color="rgba(255,255,255,0.2)"),i.value.theme=y,N(i.value)},O=y=>{i.value.font=y,N(i.value)},f=()=>{i.value.font=-1,i.value.customFontName=h.value,N(i.value)},C=()=>{i.value.fontSize<48&&(i.value.fontSize+=2),N(i.value)},j=()=>{i.value.fontSize>12&&(i.value.fontSize-=2),N(i.value)},ge=()=>{i.value.readWidth+=160,N(i.value)},ie=()=>{i.value.readWidth>640&&(i.value.readWidth-=160),N(i.value)},$=y=>{i.value.infiniteLoading=y,N(i.value)},N=y=>{n.setConfig(y),localStorage.setItem("config",JSON.stringify(y)),ee(y)},ee=y=>{ve.saveReadConfig(y)};return(y,k)=>{const te=He,Y=ze,q=Ee;return A(),p("div",{class:Q(["settings-wrapper",{night:o(v),day:!o(v)}]),style:T(o(V))},[ft,t("div",vt,[t("ul",null,[t("li",ht,[mt,(A(!0),p(le,null,ae(o(D),(w,L)=>(A(),p("span",{class:Q(["theme-item",{selected:o(x)==L}]),key:L,style:T(w),ref_for:!0,ref:"themes",onClick:pe=>F(L)},[L<6?(A(),p("em",bt,"")):(A(),p("em",It,X(o(l)),1))],14,yt))),128))]),t("li",Bt,[Ct,(A(!0),p(le,null,ae(o(u),(w,L)=>(A(),p("span",{class:Q(["font-item",{selected:o(S)==L}]),key:L,onClick:pe=>O(L)},X(w),11,kt))),128))]),t("li",St,[Et,G(te,{effect:"dark",content:"自定义的字体名称",placement:"top"},{default:W(()=>[Ne(t("input",{type:"text",class:"font-item font-item-input","onUpdate:modelValue":k[0]||(k[0]=w=>Ae(h)?h.value=w:null),placeholder:"请输入自定义的字体名称"},null,512),[[Le,o(h)]])]),_:1}),G(q,{placement:"top",width:"180",trigger:"click",visible:o(c),"onUpdate:visible":k[3]||(k[3]=w=>Ae(c)?c.value=w:null)},{reference:W(()=>[Dt]),default:W(()=>[wt,Ut,t("div",Qt,[G(Y,{size:"small",plain:"",onClick:k[1]||(k[1]=w=>c.value=!1)},{default:W(()=>[ce("取消")]),_:1}),G(Y,{type:"primary",size:"small",onClick:k[2]||(k[2]=w=>{f(),c.value=!1})},{default:W(()=>[ce("确定")]),_:1})])]),_:1},8,["visible"])]),t("li",Vt,[Mt,t("div",xt,[t("span",{class:"less",onClick:j},Ot),Rt,ce(),t("span",Pt,X(o(E)),1),Kt,t("span",{class:"more",onClick:C},Lt)])]),o(n).miniInterface?ne("",!0):(A(),p("li",Ht,[zt,t("div",Jt,[t("span",{class:"less",onClick:ie},Tt),Gt,ce(),t("span",qt,X(o(K)),1),Zt,t("span",{class:"more",onClick:ge},_t)])])),t("li",Xt,[jt,(A(),p("span",{class:Q(["infinite-loading-item",{selected:o(H)==!1}]),key:0,onClick:k[4]||(k[4]=w=>$(!1))},"关闭",2)),(A(),p("span",{class:Q(["infinite-loading-item",{selected:o(H)==!0}]),key:1,onClick:k[5]||(k[5]=w=>$(!0))},"开启",2))])])])],6)}}},eo=de($t,[["__scopeId","data-v-9f479a0b"]]),to=(a,n,d,v)=>(a/=v/2,a<1?d/2*a*a+n:(a--,-d/2*(a*(a-2)-1)+n)),oo=()=>{let a,n,d,v,l,D,I,u,h,c,i,V,x;function S(){let f=a.scrollTop||a.scrollY||a.pageYOffset;return f=typeof f>"u"?0:f,f}function E(f){const C=f.getBoundingClientRect().top,j=a.getBoundingClientRect?a.getBoundingClientRect().top:0;return C-j+d}function K(f){a.scrollTo?a.scrollTo(0,f):a.scrollTop=f}function H(f){c||(c=f),i=f-c,V=D(i,d,u,h),K(V),i(me("data-v-8da315d1"),a=a(),ye(),a),so=no(()=>t("div",{class:"title"},"目录",-1)),ao={class:"cata"},lo=["onClick"],io={class:"log-text"},co={__name:"PopCatalog",emits:["getContent"],setup(a,{emit:n}){const d=ue(),v=g(!1),{index:l}=he(d.readingBook),{catalog:D,popCataVisible:I}=we(d),u=m(()=>d.config.theme),h=m(()=>({background:J.themes[u.value].popup}));se(()=>{v.value=u.value==6});const c=g(),i=g();Z(I,()=>{re(()=>{let S=i.value;_(c.value[l.value],{container:S,duration:0})})});const V=S=>S==l.value,x=S=>{l.value=D.value.indexOf(S),d.setPopCataVisible(!1),d.setContentLoading(!0),n("getContent",l.value)};return(S,E)=>(A(),p("div",{class:"cata-wrapper",style:T(o(h))},[so,t("div",{class:Q(["data-wrapper",{night:o(v),day:!o(v)}]),ref_key:"cataData",ref:i},[t("div",ao,[(A(!0),p(le,null,ae(o(D),(K,H)=>(A(),p("div",{class:Q(["log",{selected:V(H)}]),key:K.durChapterIndex,onClick:F=>x(K),ref_for:!0,ref_key:"cata",ref:c},[t("div",io,X(K.title),1)],10,lo))),128))])],2)],4))}},ro=de(co,[["__scopeId","data-v-8da315d1"]]);const M=a=>(me("data-v-ff1ea184"),a=a(),ye(),a),Ao={class:"tools"},uo=M(()=>t("div",{class:"iconfont"},"",-1)),go=M(()=>t("div",{class:"icon-text"},"目录",-1)),po=[uo,go],fo=M(()=>t("div",{class:"iconfont"},"",-1)),vo=M(()=>t("div",{class:"icon-text"},"设置",-1)),ho=[fo,vo],mo=M(()=>t("div",{class:"iconfont"},"",-1)),yo=M(()=>t("div",{class:"icon-text"},"书架",-1)),bo=[mo,yo],Io=M(()=>t("div",{class:"iconfont"},"",-1)),Bo=M(()=>t("div",{class:"icon-text"},"顶部",-1)),Co=[Io,Bo],ko=M(()=>t("div",{class:"iconfont"},"",-1)),So=M(()=>t("div",{class:"icon-text"},"底部",-1)),Eo=[ko,So],wo={class:"tools"},Uo=M(()=>t("div",{class:"iconfont"},"",-1)),Qo={key:0},Do={key:0},Vo=M(()=>t("div",{class:"iconfont"},"",-1)),Mo=M(()=>t("div",{class:"chapter-bar"},null,-1)),xo={class:"content"},Fo=["index"],Oo={__name:"BookChapter",setup(a){const n=g(!1),d=g(null),v=g();Z(n,e=>{var s;if(!e)return(s=d.value)==null?void 0:s.close();d.value=Ge.service({target:v.value,spinner:Pe,text:"正在获取信息",lock:!0})});const l=ue();try{const e=JSON.parse(localStorage.getItem("config"));e!=null&&l.setConfig(e)}catch{localStorage.removeItem("config")}const D=g(),I=g(!0),u=g(!1),h=g([]),c=g(null),i=g(null),{catalog:V,popCataVisible:x,readSettingsVisible:S,miniInterface:E,showContent:K}=we(l),{chapterPos:H,index:F}=he(l.readingBook),{theme:O,infiniteLoading:f}=he(l.config),C=m(()=>J.themes[O.value].body),j=m(()=>J.themes[O.value].content),ge=m(()=>J.themes[O.value].popup),ie=m(()=>E.value?window.innerWidth+"px":l.config.readWidth-130+"px"),$=m(()=>E.value?window.innerWidth-33:l.config.readWidth-33),N=m(()=>({background:J.themes[O.value].body})),ee=m(()=>({background:J.themes[O.value].content,width:ie.value})),y=m(()=>({background:J.themes[O.value].popup,marginLeft:E.value?0:-(l.config.readWidth/2+68)+"px",display:E.value&&!u.value?"none":"block"})),k=m(()=>({background:J.themes[O.value].popup,marginRight:E.value?0:-(l.config.readWidth/2+52)+"px",display:E.value&&!u.value?"none":"block"})),te=g(!1);se(()=>{te.value=O.value==6}),Z(C,e=>{N.value.background=e}),Z(j,e=>{ee.value.background=e}),Z(ie,e=>{ee.value.width=e;let s=-((parseInt(e)+130)/2+68)+"px",R=-((parseInt(e)+130)/2+52)+"px";y.value.marginLeft=s,k.value.marginRight=R}),Z(ge,e=>{y.value.background=e,k.value.background=e}),se(()=>{h.value.length>0&&(l.setContentLoading(!1),Fe())}),se(()=>{var e;document.title=((e=V.value[F.value])==null?void 0:e.title)||document.title,l.saveBookProcess()}),se(()=>{var e,s;f.value?(s=c.value)==null||s.observe(D.value):(e=c.value)==null||e.disconnect()});const Y=g(),q=(e,s=!0,R=0)=>{s&&(l.setShowContent(!1),n.value=!0,_(Y.value,{duration:0}),Qe(e,R));let b=sessionStorage.getItem("bookUrl"),{title:P,index:U}=V.value[e];ve.getBookContent(b,U).then(r=>{if(r.data.isSuccess){let Oe=r.data.data.split(/\n+/);fe({index:e,content:Oe,title:P},s)}else{z({message:r.data.errorMsg,type:"error"});let oe=[r.data.errorMsg];fe({index:e,content:oe,title:P},s)}if(l.setContentLoading(!0),n.value=!1,I.value=!1,l.setShowContent(!0),!r.data.isSuccess)throw r.data},r=>{throw z({message:"获取章节内容失败",type:"error"}),fe({index:e,content:["获取章节内容失败!"],title:P},s),n.value=!1,l.setShowContent(!0),r})},w=g(),L=g(),pe=()=>{_(Y.value)},Ue=()=>{_(L.value)},be=()=>{l.setContentLoading(!0);let e=F.value+1;typeof V.value[e]<"u"?(z({message:"下一章",type:"info"}),q(e)):z({message:"本章是最后一章",type:"error"})},Ie=()=>{l.setContentLoading(!0);let e=F.value-1;typeof V.value[e]<"u"?(z({message:"上一章",type:"info"}),q(e)):z({message:"本章是第一章",type:"error"})},Qe=(e,s=H.value)=>{let R=sessionStorage.getItem("bookUrl");var b=JSON.parse(localStorage.getItem(R));b.index=e,b.chapterPos=s,localStorage.setItem(R,JSON.stringify(b)),b=JSON.parse(localStorage.getItem("readingRecent")),b.chapterIndex=e,b.chapterPos=s,localStorage.setItem("readingRecent",JSON.stringify(b)),F.value=e,H.value=s,sessionStorage.setItem("chapterIndex",e),sessionStorage.setItem("chapterPos",String(s))},fe=async(e,s)=>{s&&h.value.splice(0),h.value.push(e)},De=()=>{let e=h.value.slice(-1)[0].index;V.value.length-1>e&&q(e+1,!1)},Ve=We(),Be=()=>{Ve.push("/")},Ce=e=>{switch(e.key){case"ArrowLeft":e.stopPropagation(),e.preventDefault(),Ie();break;case"ArrowRight":e.stopPropagation(),e.preventDefault(),be();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),document.documentElement.scrollTop===0?z({message:"已到达页面顶部",type:"warn"}):_(0-document.documentElement.clientHeight+100);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),document.documentElement.clientHeight+document.documentElement.scrollTop===document.documentElement.scrollHeight?z({message:"已到达页面底部",type:"warn"}):_(document.documentElement.clientHeight-100);break}},Me=e=>{if(!n.value)for(let{isIntersecting:s}of e){if(!s)return;De()}},xe=e=>{re(()=>{for(let{isIntersecting:s,target:R,boundingClientRect:b}of e){let P=R.querySelector(".title");if(!P)return;let U=parseInt(P.getAttribute("index"));s?F.value=U:b.top<0?F.value=U+1:F.value=U-1}})},Fe=()=>{re(()=>{let e=w.value;e&&e.forEach(s=>i.value.observe(s))})};return Se(()=>{n.value=!0;let e=sessionStorage.getItem("bookUrl"),s=sessionStorage.getItem("bookName"),R=sessionStorage.getItem("bookAuthor"),b=Number(sessionStorage.getItem("chapterIndex")||0),P=Number(sessionStorage.getItem("chapterPos")||0);var U=JSON.parse(localStorage.getItem(e));(U==null||b!=U.index||P!=U.chapterPos)&&(U={bookName:s,bookAuthor:R,bookUrl:e,index:b,chapterPos:P},localStorage.setItem(e,JSON.stringify(U))),ve.getChapterList(e).then(r=>{if(n.value=!1,!r.data.isSuccess){z({message:r.data.errorMsg,type:"error"}),setTimeout(Be,500);return}let oe=r.data.data;l.setCatalog(oe),l.setReadingBook(U),q(b,!0,P),window.addEventListener("keyup",Ce),c.value=new IntersectionObserver(Me,{rootMargin:"-100% 0% 20% 0%"}),f.value&&c.value.observe(D.value),i.value=new IntersectionObserver(xe),document.title=null,document.title=s+" | "+V.value[b].title},r=>{throw n.value=!1,z({message:"获取书籍目录失败",type:"error"}),r})}),Je(()=>{var e,s;window.removeEventListener("keyup",Ce),S.value=!1,x.value=!1,(e=c.value)==null||e.disconnect(),(s=i.value)==null||s.disconnect()}),(e,s)=>{const R=ro,b=Ee,P=eo,U=pt;return A(),p("div",{class:Q(["chapter-wrapper",{night:o(te),day:!o(te)}]),style:T(o(N)),onClick:s[2]||(s[2]=r=>u.value=!o(u))},[t("div",{class:"tool-bar",style:T(o(y))},[t("div",Ao,[G(b,{placement:"right",width:o($),trigger:"click","show-arrow":!1,visible:o(x),"onUpdate:visible":s[0]||(s[0]=r=>Ae(x)?x.value=r:null),"popper-class":"pop-cata"},{reference:W(()=>[t("div",{class:Q(["tool-icon",{"no-point":o(I)}])},po,2)]),default:W(()=>[G(R,{onGetContent:q,class:"popup"})]),_:1},8,["width","visible"]),G(b,{placement:"right",width:o($),trigger:"click","show-arrow":!1,visible:o(S),"onUpdate:visible":s[1]||(s[1]=r=>Ae(S)?S.value=r:null),"popper-class":"pop-setting"},{reference:W(()=>[t("div",{class:Q(["tool-icon",{"no-point":o(I)}])},ho,2)]),default:W(()=>[G(P,{class:"popup"})]),_:1},8,["width","visible"]),t("div",{class:"tool-icon",onClick:Be},bo),t("div",{class:Q(["tool-icon",{"no-point":o(I)}]),onClick:pe},Co,2),t("div",{class:Q(["tool-icon",{"no-point":o(I)}]),onClick:Ue},Eo,2)])],4),t("div",{class:"read-bar",style:T(o(k))},[t("div",wo,[t("div",{class:Q(["tool-icon",{"no-point":o(I)}]),onClick:Ie},[Uo,o(E)?(A(),p("span",Qo,"上一章")):ne("",!0)],2),t("div",{class:Q(["tool-icon",{"no-point":o(I)}]),onClick:be},[o(E)?(A(),p("span",Do,"下一章")):ne("",!0),Vo],2)])],4),Mo,t("div",{class:"chapter",ref_key:"content",ref:v,style:T(o(ee))},[t("div",xo,[t("div",{class:"top-bar",ref_key:"top",ref:Y},null,512),(A(!0),p(le,null,ae(o(h),r=>(A(),p("div",{key:r.index,ref_for:!0,ref_key:"chapter",ref:w},[o(K)?(A(),p("div",{key:0,class:"title",index:r.index},X(r.title),9,Fo)):ne("",!0),o(K)?(A(),Te(U,{key:1,carray:r.content},null,8,["carray"])):ne("",!0)]))),128)),t("div",{class:"loading",ref_key:"loading",ref:D},null,512),t("div",{class:"bottom-bar",ref_key:"bottom",ref:L},null,512)])],4)],6)}}},No=de(Oo,[["__scopeId","data-v-ff1ea184"]]);export{No as default}; diff --git a/app/src/main/assets/web/vue/assets/BookShelf-e6a2af62.js b/app/src/main/assets/web/vue/assets/BookShelf-c2410b56.js similarity index 86% rename from app/src/main/assets/web/vue/assets/BookShelf-e6a2af62.js rename to app/src/main/assets/web/vue/assets/BookShelf-c2410b56.js index 1f7eb9d38..e72632e83 100644 --- a/app/src/main/assets/web/vue/assets/BookShelf-e6a2af62.js +++ b/app/src/main/assets/web/vue/assets/BookShelf-c2410b56.js @@ -1 +1 @@ -import{a1 as Q,q,o as g,d as m,g as e,F as V,M as P,t as d,a2 as B,a3 as S,c as $,w as z,f as M,u as o,a4 as G,a5 as L,p as N,i as W,s as X,m as _,P as j,I as J,R as ee,B as k,e as x,v as te,J as se,n as D,a6 as ae,C as oe,x as ne,a7 as ce}from"./vendor-8be1f5fb.js";import{d as re,l as ie}from"./el-loading-5b5af897.js";import{_ as Z,u as le,A as E}from"./index-ab2e286b.js";const H=n=>(N("data-v-fd33c3e8"),n=n(),W(),n),de={class:"books-wrapper"},ue={class:"wrapper"},he=["onClick"],pe={class:"cover-img"},ve=["src"],_e={class:"info"},ge={class:"name"},me={class:"sub"},fe={class:"author"},we={class:"tags"},Ie={class:"update-info"},Ae=H(()=>e("div",{class:"dot"},"•",-1)),Be={class:"size"},Se=H(()=>e("div",{class:"dot"},"•",-1)),ke={class:"date"},xe={class:"last-chapter"},ye={__name:"BookItems",props:["books","isSearch"],emits:["bookClick"],setup(n,{emit:r}){const y=n;Q(s=>({"036742a7":o(f)}));const C=s=>r("bookClick",G(s)),R=s=>/^data:/.test(s)?s:location.origin+"/cover?path="+encodeURIComponent(s),f=q(()=>y.isSearch?"space-between":"flex-start");return(s,h)=>{const w=L;return g(),m("div",de,[e("div",ue,[(g(!0),m(V,null,P(n.books,c=>{var l;return g(),m("div",{class:"book",key:c.bookUrl,onClick:i=>C(c)},[e("div",pe,[(g(),m("img",{class:"cover",src:R(c.coverUrl),key:c.coverUrl,alt:"",loading:"lazy"},null,8,ve))]),e("div",_e,[e("div",ge,d(c.name),1),e("div",me,[e("div",fe,d(c.author),1),B(e("div",we,[(g(!0),m(V,null,P((l=c.kind)==null?void 0:l.split(",").slice(0,2),i=>(g(),$(w,{key:i},{default:z(()=>[M(d(i),1)]),_:2},1024))),128))],512),[[S,n.isSearch]]),B(e("div",Ie,[Ae,e("div",Be,"共"+d(c.totalChapterNum)+"章",1),Se,e("div",ke,d(o(re)(c.lastCheckTime)),1)],512),[[S,!n.isSearch]])]),B(e("div",{class:"intro"},d(c.intro),513),[[S,n.isSearch]]),B(e("div",{class:"dur-chapter"}," 已读:"+d(c.durChapterTitle),513),[[S,!n.isSearch]]),e("div",xe,"最新:"+d(c.latestChapterTitle),1)])],8,he)}),128))])])}}},Ce=Z(ye,[["__scopeId","data-v-fd33c3e8"]]);const Re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAECUlEQVRYR7WXTYhcRRDHq3pY9yKrYBQ8KBsjgvHgwRhiQBTjYZm4Xe8NusawhwS/o9GLoKhgBGPAgJd1NdGIXwtZTbRf9Rqzl6gHTVyDeIkIgnEOghAM6oKHzTJd0sO8Zaa338zb7NjwmJn++Ndv+lVVVyOsoM3Ozl69sLBAiHiDc26NUuoKv9w5d14p9aeI/DI4OMgjIyN/lJXFMhOttQ8BgBaR0TLzEXEGAKzW+lCv+V0BmLmGiLtF5M5eQrFxRPxaRCaI6LOi9YUAzPwGADxxMYYjayaJ6MkoZKyTmU8AwF19Mp7LfElEW0LNZTvAzIcBYFufjedy00T0QLt2B4AxZo9S6qX/yXhT1jn3cpqme3IbSwDM/DgAvNlu3Dm3Uyl1HAA2IOJ2EdleEu5Io9H4EBHPVCqVLSISRsMuInrLazUBpqamhoaGhr4TkRsDgLVpmtbzPmPMLQBwOwD4vvzxw8P5IyJztVrtVL4my7L1iPhTx7Yj/jw/P79pfHx8vgmQZdkLiPhK+O8GBgauqVarv5f819FpxpjLlVJ/hYMi8mKSJHubAMz8KwBcF1EYI6IjqwRIlFImonGWiNZhlmVVRDxWYGTVAMx8HwB8EtMXka1orT0gIo9GJrxNRLH+FW8IMx8EgEeW5QDEgx5gTkQ2Bk7yr9b60hVb6rKAmc8BwJWBne+x4P3XiWhtPwGstV9FzpSzHuBvALgsMHaaiDp2ZbUwWZZNIuKuQOcfD7AAAJeEcaq1Xr9ao+3rmdknnscCzQse4LdWEukYazQaa2q12vl+QTDztwCwOdCr+zA8iYi3RQwREdl+ADDz9QDwIwB0OLaInPJRcEhEHoyEyAmt9d39ALDW2lg1hYjv+lfgC4WJgkTxcJIkPcuqbpC+qgKATwvm7PYAGwDgdBeRZ4notYvZCWPMDqXUe13W3to8C6y10yJyv//u6zj/2R6ziPiRiBwt6xPMrBExFZEdRcYR8WOt9bb8MNoKAJ+3Jvtwed05d4dSKtz+c4h4VGsdrRWttZMici8AXFVix+4homNLBUmWZQcQMc/9x4mommXZ84i4t11MKbV5dHR06bxvH5uZmbnZOfdN6O0RmMNE1CxulgCstdeKyBcAcFPrVTyltZ4wxiSVSuXplkhda72zh9P1rClFZFOSJHMdAP5Hq3rxR6eH+IGIvIOuqFlr94nIc10WdRzxy6riAMJnr2nn3JlcME3TppMWNWvtfhF5pmB8WX0RvZgEEEtaYUUbM2KtfUdE/FUubNHipvBmZIxZp5TaDwBprlQGIHLqzSHiPq01x4B7Xk6Z2d8TfDwPlwFozfd1f90598Hi4uKrY2NjFwrzQVkP81nNi/byAWOMv8gOp2n6fhnt/wDqJrRWLmhIrwAAAABJRU5ErkJggg==";const T=n=>(N("data-v-7e6be94e"),n=n(),W(),n),Ee={class:"index-wrapper"},ze={class:"navigation-wrapper"},Me=T(()=>e("div",{class:"navigation-title-wrapper"},[e("div",{class:"navigation-title"},"阅读"),e("div",{class:"navigation-sub-title"},"清风不识字,何故乱翻书")],-1)),Te={class:"search-wrapper"},be={class:"bottom-wrapper"},Ve={class:"recent-wrapper"},Pe=T(()=>e("div",{class:"recent-title"},"最近阅读",-1)),Je={class:"reading-recent"},De={class:"setting-wrapper"},Le=T(()=>e("div",{class:"setting-title"},"基本设定",-1)),Ne={class:"setting-item"},We={class:"bottom-icons"},Ze={href:"https://github.com/gedoor/legado_web_bookshelf",target:"_blank"},He={class:"bottom-icon"},Oe=["src"],Fe={__name:"BookShelf",setup(n){const r=le(),{connectStatus:y,connectType:C,newConnect:R,shelf:f}=X(r),s=_({name:"尚无阅读记录",author:"",url:"",chapterIndex:0,chapterPos:0}),h=_(!1),w=_(null),c=_(null);j(h,t=>{var a;if(!t)return(a=c.value)==null?void 0:a.close();c.value=ce.service({target:w.value,spinner:ie,text:"正在获取书籍信息",lock:!0})});const l=_([]);J(()=>{l.value.length>0&&(h.value=!1)});const i=_(""),I=_(!1);J(()=>{if(!(I.value&&i.value!="")){if(I.value=!1,l.value=[],i.value==""){l.value=f.value;return}l.value=f.value.filter(t=>t.name.includes(i.value)||t.author.includes(i.value))}});const O=()=>{i.value!=""&&(l.value=[],r.clearSearchBooks(),h.value=!0,I.value=!0,E.search(i.value,t=>{try{r.setSearchBooks(JSON.parse(t)),r.searchBooks.forEach(a=>l.value.push(a))}catch(a){throw k.error("后端数据错误"),a}},()=>{h.value=!1,l.value.length==0&&k.info("搜索结果为空")}))},F=()=>{},K=ae(),Y=async t=>{const{bookUrl:a,name:p,author:u,durChapterIndex:v=0,durChapterPos:A=0}=t;await E.saveBook(t),b(a,p,u,v,A)},b=(t,a,p,u,v)=>{a!=="尚无阅读记录"&&(sessionStorage.setItem("bookUrl",t),sessionStorage.setItem("bookName",a),sessionStorage.setItem("bookAuthor",p),sessionStorage.setItem("chapterIndex",u),sessionStorage.setItem("chapterPos",v),s.value={name:a,author:p,url:t,chapterIndex:u,chapterPos:v},localStorage.setItem("readingRecent",JSON.stringify(s.value)),K.push({path:"/chapter"}))};ee(async()=>{let t=localStorage.getItem("readingRecent");t!=null&&(s.value=JSON.parse(t),typeof s.value.chapterIndex>"u"&&(s.value.chapterIndex=0)),h.value=!0,U()});const U=()=>{E.getBookShelf().then(t=>{r.setConnectType("success"),t.data.isSuccess?r.addBooks(t.data.data.sort(function(a,p){var u=a.durChapterTime||0,v=p.durChapterTime||0;return v-u})):(k.error(t.data.errorMsg),h.value=!1),r.setConnectStatus("已连接 "),r.setNewConnect(!1)}).catch(function(t){throw h.value=!1,r.setConnectType("danger"),r.setConnectStatus("连接失败"),k.error("后端连接失败"),r.setNewConnect(!1),t})};return(t,a)=>{const p=oe,u=L,v=Ce;return g(),m("div",Ee,[e("div",ze,[Me,e("div",Te,[x(p,{placeholder:"搜索书籍,在线书籍自动加入书架",modelValue:o(i),"onUpdate:modelValue":a[0]||(a[0]=A=>te(i)?i.value=A:null),class:"search-input","prefix-icon":o(ne),onKeyup:se(O,["enter"])},null,8,["modelValue","prefix-icon","onKeyup"])]),e("div",be,[e("div",Ve,[Pe,e("div",Je,[x(u,{type:o(s).name=="尚无阅读记录"?"warning":"",class:D(["recent-book",{"no-point":o(s).url==""}]),size:"large",onClick:a[1]||(a[1]=A=>b(o(s).url,o(s).name,o(s).author,o(s).chapterIndex,o(s).chapterPos))},{default:z(()=>[M(d(o(s).name),1)]),_:1},8,["type","class"])])]),e("div",De,[Le,e("div",Ne,[x(u,{type:o(C),size:"large",class:D(["setting-connect",{"no-point":o(R)}]),onClick:F},{default:z(()=>[M(d(o(y)),1)]),_:1},8,["type","class"])])])]),e("div",We,[e("a",Ze,[e("div",He,[e("img",{src:o(Re),alt:""},null,8,Oe)])])])]),e("div",{class:"shelf-wrapper",ref_key:"shelfWrapper",ref:w},[x(v,{books:o(l),onBookClick:Y,isSearch:o(I)},null,8,["books","isSearch"])],512)])}}},Qe=Z(Fe,[["__scopeId","data-v-7e6be94e"]]);export{Qe as default}; +import{a1 as Q,x as $,o as g,d as m,g as e,F as V,M as P,t as d,a2 as B,a3 as S,c as q,w as z,f as M,u as o,a4 as G,a5 as L,p as N,i as W,s as X,v as _,P as j,I as D,R as ee,k,e as x,y as te,J as se,n as J,a6 as ae,D as oe,z as ne,a7 as ce}from"./vendor-bf77f5c0.js";import{d as re,l as ie}from"./el-loading-b910ac83.js";import{_ as Z,u as le,A as E}from"./index-f4927a88.js";const H=n=>(N("data-v-fd33c3e8"),n=n(),W(),n),de={class:"books-wrapper"},ue={class:"wrapper"},he=["onClick"],pe={class:"cover-img"},ve=["src"],_e={class:"info"},ge={class:"name"},me={class:"sub"},fe={class:"author"},we={class:"tags"},Ie={class:"update-info"},Ae=H(()=>e("div",{class:"dot"},"•",-1)),Be={class:"size"},Se=H(()=>e("div",{class:"dot"},"•",-1)),ke={class:"date"},xe={class:"last-chapter"},ye={__name:"BookItems",props:["books","isSearch"],emits:["bookClick"],setup(n,{emit:r}){const y=n;Q(s=>({"036742a7":o(f)}));const C=s=>r("bookClick",G(s)),R=s=>/^data:/.test(s)?s:location.origin+"/cover?path="+encodeURIComponent(s),f=$(()=>y.isSearch?"space-between":"flex-start");return(s,h)=>{const w=L;return g(),m("div",de,[e("div",ue,[(g(!0),m(V,null,P(n.books,c=>{var l;return g(),m("div",{class:"book",key:c.bookUrl,onClick:i=>C(c)},[e("div",pe,[(g(),m("img",{class:"cover",src:R(c.coverUrl),key:c.coverUrl,alt:"",loading:"lazy"},null,8,ve))]),e("div",_e,[e("div",ge,d(c.name),1),e("div",me,[e("div",fe,d(c.author),1),B(e("div",we,[(g(!0),m(V,null,P((l=c.kind)==null?void 0:l.split(",").slice(0,2),i=>(g(),q(w,{key:i},{default:z(()=>[M(d(i),1)]),_:2},1024))),128))],512),[[S,n.isSearch]]),B(e("div",Ie,[Ae,e("div",Be,"共"+d(c.totalChapterNum)+"章",1),Se,e("div",ke,d(o(re)(c.lastCheckTime)),1)],512),[[S,!n.isSearch]])]),B(e("div",{class:"intro"},d(c.intro),513),[[S,n.isSearch]]),B(e("div",{class:"dur-chapter"}," 已读:"+d(c.durChapterTitle),513),[[S,!n.isSearch]]),e("div",xe,"最新:"+d(c.latestChapterTitle),1)])],8,he)}),128))])])}}},Ce=Z(ye,[["__scopeId","data-v-fd33c3e8"]]);const Re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAECUlEQVRYR7WXTYhcRRDHq3pY9yKrYBQ8KBsjgvHgwRhiQBTjYZm4Xe8NusawhwS/o9GLoKhgBGPAgJd1NdGIXwtZTbRf9Rqzl6gHTVyDe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IvIOuqFlr94nIc10WdRzxy6riAMJnr2nn3JlcME3TppMWNWvtfhF5pmB8WX0RvZgEEEtaYUUbM2KtfUdE/FUubNHipvBmZIxZp5TaDwBprlQGIHLqzSHiPq01x4B7Xk6Z2d8TfDwPlwFozfd1f90598Hi4uKrY2NjFwrzQVkP81nNi/byAWOMv8gOp2n6fhnt/wDqJrRWLmhIrwAAAABJRU5ErkJggg==";const T=n=>(N("data-v-7e6be94e"),n=n(),W(),n),Ee={class:"index-wrapper"},ze={class:"navigation-wrapper"},Me=T(()=>e("div",{class:"navigation-title-wrapper"},[e("div",{class:"navigation-title"},"阅读"),e("div",{class:"navigation-sub-title"},"清风不识字,何故乱翻书")],-1)),Te={class:"search-wrapper"},be={class:"bottom-wrapper"},Ve={class:"recent-wrapper"},Pe=T(()=>e("div",{class:"recent-title"},"最近阅读",-1)),De={class:"reading-recent"},Je={class:"setting-wrapper"},Le=T(()=>e("div",{class:"setting-title"},"基本设定",-1)),Ne={class:"setting-item"},We={class:"bottom-icons"},Ze={href:"https://github.com/gedoor/legado_web_bookshelf",target:"_blank"},He={class:"bottom-icon"},Oe=["src"],Fe={__name:"BookShelf",setup(n){const r=le(),{connectStatus:y,connectType:C,newConnect:R,shelf:f}=X(r),s=_({name:"尚无阅读记录",author:"",url:"",chapterIndex:0,chapterPos:0}),h=_(!1),w=_(null),c=_(null);j(h,t=>{var a;if(!t)return(a=c.value)==null?void 0:a.close();c.value=ce.service({target:w.value,spinner:ie,text:"正在获取书籍信息",lock:!0})});const l=_([]);D(()=>{l.value.length>0&&(h.value=!1)});const i=_(""),I=_(!1);D(()=>{if(!(I.value&&i.value!="")){if(I.value=!1,l.value=[],i.value==""){l.value=f.value;return}l.value=f.value.filter(t=>t.name.includes(i.value)||t.author.includes(i.value))}});const O=()=>{i.value!=""&&(l.value=[],r.clearSearchBooks(),h.value=!0,I.value=!0,E.search(i.value,t=>{try{r.setSearchBooks(JSON.parse(t)),r.searchBooks.forEach(a=>l.value.push(a))}catch(a){throw k.error("后端数据错误"),a}},()=>{h.value=!1,l.value.length==0&&k.info("搜索结果为空")}))},F=()=>{},K=ae(),Y=async t=>{const{bookUrl:a,name:p,author:u,durChapterIndex:v=0,durChapterPos:A=0}=t;await E.saveBook(t),b(a,p,u,v,A)},b=(t,a,p,u,v)=>{a!=="尚无阅读记录"&&(sessionStorage.setItem("bookUrl",t),sessionStorage.setItem("bookName",a),sessionStorage.setItem("bookAuthor",p),sessionStorage.setItem("chapterIndex",u),sessionStorage.setItem("chapterPos",v),s.value={name:a,author:p,url:t,chapterIndex:u,chapterPos:v},localStorage.setItem("readingRecent",JSON.stringify(s.value)),K.push({path:"/chapter"}))};ee(async()=>{let t=localStorage.getItem("readingRecent");t!=null&&(s.value=JSON.parse(t),typeof s.value.chapterIndex>"u"&&(s.value.chapterIndex=0)),h.value=!0,U()});const U=()=>{E.getBookShelf().then(t=>{r.setConnectType("success"),t.data.isSuccess?r.addBooks(t.data.data.sort(function(a,p){var u=a.durChapterTime||0,v=p.durChapterTime||0;return v-u})):(k.error(t.data.errorMsg),h.value=!1),r.setConnectStatus("已连接 "),r.setNewConnect(!1)}).catch(function(t){throw h.value=!1,r.setConnectType("danger"),r.setConnectStatus("连接失败"),k.error("后端连接失败"),r.setNewConnect(!1),t})};return(t,a)=>{const p=oe,u=L,v=Ce;return g(),m("div",Ee,[e("div",ze,[Me,e("div",Te,[x(p,{placeholder:"搜索书籍,在线书籍自动加入书架",modelValue:o(i),"onUpdate:modelValue":a[0]||(a[0]=A=>te(i)?i.value=A:null),class:"search-input","prefix-icon":o(ne),onKeyup:se(O,["enter"])},null,8,["modelValue","prefix-icon","onKeyup"])]),e("div",be,[e("div",Ve,[Pe,e("div",De,[x(u,{type:o(s).name=="尚无阅读记录"?"warning":"",class:J(["recent-book",{"no-point":o(s).url==""}]),size:"large",onClick:a[1]||(a[1]=A=>b(o(s).url,o(s).name,o(s).author,o(s).chapterIndex,o(s).chapterPos))},{default:z(()=>[M(d(o(s).name),1)]),_:1},8,["type","class"])])]),e("div",Je,[Le,e("div",Ne,[x(u,{type:o(C),size:"large",class:J(["setting-connect",{"no-point":o(R)}]),onClick:F},{default:z(()=>[M(d(o(y)),1)]),_:1},8,["type","class"])])])]),e("div",We,[e("a",Ze,[e("div",He,[e("img",{src:o(Re),alt:""},null,8,Oe)])])])]),e("div",{class:"shelf-wrapper",ref_key:"shelfWrapper",ref:w},[x(v,{books:o(l),onBookClick:Y,isSearch:o(I)},null,8,["books","isSearch"])],512)])}}},Qe=Z(Fe,[["__scopeId","data-v-7e6be94e"]]);export{Qe as default}; diff --git a/app/src/main/assets/web/vue/assets/config-97894739.js b/app/src/main/assets/web/vue/assets/config-752e04be.js similarity index 60% rename from app/src/main/assets/web/vue/assets/config-97894739.js rename to app/src/main/assets/web/vue/assets/config-752e04be.js index 85ab74a9d..b01cf8571 100644 --- a/app/src/main/assets/web/vue/assets/config-97894739.js +++ b/app/src/main/assets/web/vue/assets/config-752e04be.js @@ -1 +1 @@ -import{u as n,A as r}from"./index-ab2e286b.js";import"./vendor-8be1f5fb.js";const i=n();i.setMiniInterface(window.innerWidth<750);window.onresize=()=>{i.setMiniInterface(window.innerWidth<750)};r.getReadConfig().then(a=>{var e=a.data.data;if(e){const t=n();let o=JSON.parse(e),s=t.config;o=Object.assign(s,o),t.setConfig(o)}}); +import{u as n,A as r}from"./index-f4927a88.js";import"./vendor-bf77f5c0.js";const i=n();i.setMiniInterface(window.innerWidth<750);window.onresize=()=>{i.setMiniInterface(window.innerWidth<750)};r.getReadConfig().then(a=>{var e=a.data.data;if(e){const t=n();let o=JSON.parse(e),s=t.config;o=Object.assign(s,o),t.setConfig(o)}}); diff --git a/app/src/main/assets/web/vue/assets/el-loading-5b5af897.js b/app/src/main/assets/web/vue/assets/el-loading-b910ac83.js similarity index 97% rename from app/src/main/assets/web/vue/assets/el-loading-5b5af897.js rename to app/src/main/assets/web/vue/assets/el-loading-b910ac83.js index c4e1e6a78..365fe626f 100644 --- a/app/src/main/assets/web/vue/assets/el-loading-5b5af897.js +++ b/app/src/main/assets/web/vue/assets/el-loading-b910ac83.js @@ -1 +1 @@ -import{u}from"./index-ab2e286b.js";const f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function D(t,n,e,a){let s=t<12?"AM":"PM";return a&&(s=s.split("").reduce((l,i)=>l+=`${i}.`,"")),e?s.toLowerCase():s}function L(t,n,e={}){var a;const s=t.getFullYear(),l=t.getMonth(),i=t.getDate(),o=t.getHours(),r=t.getMinutes(),g=t.getSeconds(),m=t.getMilliseconds(),d=t.getDay(),c=(a=e.customMeridiem)!=null?a:D,M={YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>l+1,MM:()=>`${l+1}`.padStart(2,"0"),MMM:()=>t.toLocaleDateString(e.locales,{month:"short"}),MMMM:()=>t.toLocaleDateString(e.locales,{month:"long"}),D:()=>String(i),DD:()=>`${i}`.padStart(2,"0"),H:()=>String(o),HH:()=>`${o}`.padStart(2,"0"),h:()=>`${o%12||12}`.padStart(1,"0"),hh:()=>`${o%12||12}`.padStart(2,"0"),m:()=>String(r),mm:()=>`${r}`.padStart(2,"0"),s:()=>String(g),ss:()=>`${g}`.padStart(2,"0"),SSS:()=>`${m}`.padStart(3,"0"),d:()=>d,dd:()=>t.toLocaleDateString(e.locales,{weekday:"narrow"}),ddd:()=>t.toLocaleDateString(e.locales,{weekday:"short"}),dddd:()=>t.toLocaleDateString(e.locales,{weekday:"long"}),A:()=>c(o,r),AA:()=>c(o,r,!1,!0),a:()=>c(o,r,!0),aa:()=>c(o,r,!0,!0)};return n.replace(f,(S,h)=>h||M[S]())}const w=t=>/,\s*\{/.test(t)||!(t.startsWith("http")||t.startsWith("data:")||t.startsWith("blob:"));function Y(t){return location.origin+"/image?path="+encodeURIComponent(t)+"&url="+encodeURIComponent(sessionStorage.getItem("bookUrl"))+"&width="+u().config.readWidth}const $=t=>{let n=new Date().getTime(),e=Math.floor((n-t)/1e3),a="";return e<=30?a="刚刚":e<60?a=e+"秒前":e<3600?a=Math.floor(e/60)+"分钟前":e<86400?a=Math.floor(e/3600)+"小时前":e<2592e3?a=Math.floor(e/86400)+"天前":a=L(new Date(t),"YYYY-MM-DD"),a},v='';export{$ as d,Y as g,w as i,v as l}; +import{u}from"./index-f4927a88.js";const f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function D(t,n,e,a){let s=t<12?"AM":"PM";return a&&(s=s.split("").reduce((l,i)=>l+=`${i}.`,"")),e?s.toLowerCase():s}function L(t,n,e={}){var a;const s=t.getFullYear(),l=t.getMonth(),i=t.getDate(),o=t.getHours(),r=t.getMinutes(),g=t.getSeconds(),m=t.getMilliseconds(),d=t.getDay(),c=(a=e.customMeridiem)!=null?a:D,M={YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>l+1,MM:()=>`${l+1}`.padStart(2,"0"),MMM:()=>t.toLocaleDateString(e.locales,{month:"short"}),MMMM:()=>t.toLocaleDateString(e.locales,{month:"long"}),D:()=>String(i),DD:()=>`${i}`.padStart(2,"0"),H:()=>String(o),HH:()=>`${o}`.padStart(2,"0"),h:()=>`${o%12||12}`.padStart(1,"0"),hh:()=>`${o%12||12}`.padStart(2,"0"),m:()=>String(r),mm:()=>`${r}`.padStart(2,"0"),s:()=>String(g),ss:()=>`${g}`.padStart(2,"0"),SSS:()=>`${m}`.padStart(3,"0"),d:()=>d,dd:()=>t.toLocaleDateString(e.locales,{weekday:"narrow"}),ddd:()=>t.toLocaleDateString(e.locales,{weekday:"short"}),dddd:()=>t.toLocaleDateString(e.locales,{weekday:"long"}),A:()=>c(o,r),AA:()=>c(o,r,!1,!0),a:()=>c(o,r,!0),aa:()=>c(o,r,!0,!0)};return n.replace(f,(S,h)=>h||M[S]())}const w=t=>/,\s*\{/.test(t)||!(t.startsWith("http")||t.startsWith("data:")||t.startsWith("blob:"));function Y(t){return location.origin+"/image?path="+encodeURIComponent(t)+"&url="+encodeURIComponent(sessionStorage.getItem("bookUrl"))+"&width="+u().config.readWidth}const $=t=>{let n=new Date().getTime(),e=Math.floor((n-t)/1e3),a="";return e<=30?a="刚刚":e<60?a=e+"秒前":e<3600?a=Math.floor(e/60)+"分钟前":e<86400?a=Math.floor(e/3600)+"小时前":e<2592e3?a=Math.floor(e/86400)+"天前":a=L(new Date(t),"YYYY-MM-DD"),a},v='';export{$ as d,Y as g,w as i,v as l}; diff --git a/app/src/main/assets/web/vue/assets/index-71b7f9c4.css b/app/src/main/assets/web/vue/assets/index-060af40e.css similarity index 90% rename from app/src/main/assets/web/vue/assets/index-71b7f9c4.css rename to app/src/main/assets/web/vue/assets/index-060af40e.css index 068f0945c..4612eb831 100644 --- a/app/src/main/assets/web/vue/assets/index-71b7f9c4.css +++ b/app/src/main/assets/web/vue/assets/index-060af40e.css @@ -1 +1 @@ -.el-link[data-v-aee57c78]{padding:4px}.el-text[data-v-aee57c78]{padding-top:20px}.error[data-v-d4c4e88b]{border-color:var(--el-color-error)!important;color:var(--el-color-error)!important;--el-checkbox-checked-text-color: var(--el-color-error);--el-checkbox-checked-bg-color: var(--el-color-error);--el-checkbox-checked-input-border-color: var(--el-color-error)}.tool[data-v-3d581419]{display:flex;margin:4px 0;justify-content:center}#source-list[data-v-3d581419]{margin-top:6px;height:calc(100vh - 119px)}#source-list[data-v-3d581419] .el-checkbox{margin-bottom:4px;width:100%}[data-v-fe904689] #debug-text{height:calc(100vh - 86px)}[data-v-7e91a802] .el-input{width:100%}[data-v-7e91a802] #source-json{height:calc(100vh - 50px)}[data-v-dcce2457] .el-tabs__header{margin-bottom:5px}.flex-space-between[data-v-dc7cd0f9]{display:flex;justify-content:space-between;align-items:baseline}.flex-column-center[data-v-dc7cd0f9]{display:flex;flex-direction:column;justify-content:center}.menu>.el-button[data-v-dc7cd0f9]{margin:4px;padding:1em;width:6em}.hotkeys-item .title[data-v-dc7cd0f9]{width:5em;display:flex;justify-content:flex-end;margin-right:1em}.hotkeys-item__content[data-v-dc7cd0f9]{display:flex;flex-wrap:wrap;flex:1}.hotkeys-item__content div[data-v-dc7cd0f9]{margin-bottom:1em}.hotkeys-item__content span[data-v-dc7cd0f9]{margin:.5em}[data-v-2cfb5302] .el-tab-pane{height:calc(100vh - 55px);padding-top:15px;padding-right:5px;overflow-y:auto}[data-v-2cfb5302] .el-tabs__header{margin:0}kbd{background-color:#fcfcfc;border-radius:3px;border:1px solid hsl(0deg,0%,80%);padding:4px 5px;font-weight:700}code{background-color:#f2f1f1;padding:.125rem .25rem;border-radius:.25rem;font-size:.835rem}body{padding:0;margin:0}.el-tabs__header{position:sticky;top:0px;z-index:2;background-color:#fff}.editor[data-v-e99e7704]{display:flex;height:100vh;overflow:hidden}.editor .left[data-v-e99e7704]{flex:1;margin-left:20px}.editor .right[data-v-e99e7704]{flex:1;width:360px;margin-right:20px} +.el-link[data-v-aee57c78]{padding:4px}.el-text[data-v-aee57c78]{padding-top:20px}.error[data-v-d4c4e88b]{border-color:var(--el-color-error)!important;color:var(--el-color-error)!important;--el-checkbox-checked-text-color: var(--el-color-error);--el-checkbox-checked-bg-color: var(--el-color-error);--el-checkbox-checked-input-border-color: var(--el-color-error)}.tool[data-v-76d18c9a]{display:flex;margin:4px 0;justify-content:center}#source-list[data-v-76d18c9a]{margin-top:6px;height:calc(100vh - 119px)}#source-list[data-v-76d18c9a] .el-checkbox{margin-bottom:4px;width:100%}[data-v-fe904689] #debug-text{height:calc(100vh - 86px)}[data-v-7e91a802] .el-input{width:100%}[data-v-7e91a802] #source-json{height:calc(100vh - 50px)}[data-v-dcce2457] .el-tabs__header{margin-bottom:5px}.flex-space-between[data-v-dc7cd0f9]{display:flex;justify-content:space-between;align-items:baseline}.flex-column-center[data-v-dc7cd0f9]{display:flex;flex-direction:column;justify-content:center}.menu>.el-button[data-v-dc7cd0f9]{margin:4px;padding:1em;width:6em}.hotkeys-item .title[data-v-dc7cd0f9]{width:5em;display:flex;justify-content:flex-end;margin-right:1em}.hotkeys-item__content[data-v-dc7cd0f9]{display:flex;flex-wrap:wrap;flex:1}.hotkeys-item__content div[data-v-dc7cd0f9]{margin-bottom:1em}.hotkeys-item__content span[data-v-dc7cd0f9]{margin:.5em}[data-v-2cfb5302] .el-tab-pane{height:calc(100vh - 55px);padding-top:15px;padding-right:5px;overflow-y:auto}[data-v-2cfb5302] .el-tabs__header{margin:0}kbd{background-color:#fcfcfc;border-radius:3px;border:1px solid hsl(0deg,0%,80%);padding:4px 5px;font-weight:700}code{background-color:#f2f1f1;padding:.125rem .25rem;border-radius:.25rem;font-size:.835rem}body{padding:0;margin:0}.el-tabs__header{position:sticky;top:0px;z-index:2;background-color:#fff}.editor[data-v-e99e7704]{display:flex;height:100vh;overflow:hidden}.editor .left[data-v-e99e7704]{flex:1;margin-left:20px}.editor .right[data-v-e99e7704]{flex:1;width:360px;margin-right:20px} diff --git a/app/src/main/assets/web/vue/assets/index-ab2e286b.js b/app/src/main/assets/web/vue/assets/index-f4927a88.js similarity index 57% rename from app/src/main/assets/web/vue/assets/index-ab2e286b.js rename to app/src/main/assets/web/vue/assets/index-f4927a88.js index 639e2501c..69162ee48 100644 --- a/app/src/main/assets/web/vue/assets/index-ab2e286b.js +++ b/app/src/main/assets/web/vue/assets/index-f4927a88.js @@ -1,13 +1,13 @@ -import{r as we,o as l,c as b,a as ne,b as re,d as U,e as p,w as c,f as m,u as i,l as q,g,F as L,E as xe,h as ae,p as Be,i as Ue,j as ue,s as Q,t as G,n as de,k as Ee,m as R,q as te,v as A,x as pe,y as Ve,z as Ie,A as se,V as Ne,B as w,C as X,D as he,G as Te,H as $e,I as _e,J as Le,K as N,L as Re,M as J,N as ge,O as me,P as Oe,Q as z,R as Pe,S as De,T as Je,U as Ae,W as Ke,X as je,Y as He,Z as Fe,_ as qe,$ as ze,a0 as Me}from"./vendor-8be1f5fb.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function o(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=o(n);fetch(n.href,r)}})();const We="modulepreload",Ge=function(e,t){return new URL(e,t).href},ie={},oe=function(t,o,s){if(!o||o.length===0)return t();const n=document.getElementsByTagName("link");return Promise.all(o.map(r=>{if(r=Ge(r,s),r in ie)return;ie[r]=!0;const a=r.endsWith(".css"),C=a?'[rel="stylesheet"]':"";if(!!s)for(let x=n.length-1;x>=0;x--){const d=n[x];if(d.href===r&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${C}`))return;const y=document.createElement("link");if(y.rel=a?"stylesheet":We,a||(y.as="script",y.crossOrigin=""),y.href=r,document.head.appendChild(y),a)return new Promise((x,d)=>{y.addEventListener("load",x),y.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},O=(e,t)=>{const o=e.__vccOpts||e;for(const[s,n]of t)o[s]=n;return o},Qe={};function Xe(e,t){const o=we("router-view");return l(),b(o)}const Ye=O(Qe,[["render",Xe]]),Se=[{path:"/",name:"shelf",component:()=>oe(()=>import("./BookShelf-e6a2af62.js"),["./BookShelf-e6a2af62.js","./vendor-8be1f5fb.js","./vendor-6f0d1692.css","./el-loading-5b5af897.js","./el-loading-d0f2d079.css","./BookShelf-f637327a.css"],import.meta.url)},{path:"/chapter",name:"chapter",component:()=>oe(()=>import("./BookChapter-e6619d8a.js"),["./BookChapter-e6619d8a.js","./el-loading-5b5af897.js","./el-loading-d0f2d079.css","./vendor-8be1f5fb.js","./vendor-6f0d1692.css","./BookChapter-468f2c8e.css"],import.meta.url)}];ne({history:re(),routes:Se});const T=e=>(Be("data-v-aee57c78"),e=e(),Ue(),e),Ze=T(()=>g("br",null,null,-1)),et=T(()=>g("br",null,null,-1)),tt=T(()=>g("br",null,null,-1)),ot=T(()=>g("br",null,null,-1)),nt=T(()=>g("br",null,null,-1)),rt={style:{"margin-top":"20px"}},st=T(()=>g("code",null,"^$()[]{}.?+*|",-1)),it=T(()=>g("br",null,null,-1)),lt=T(()=>g("code",null,"(?s)",-1)),ct=T(()=>g("br",null,null,-1)),at=T(()=>g("code",null,"(?m)",-1)),ut=T(()=>g("br",null,null,-1)),dt=T(()=>g("code",null,"(?i)",-1)),pt=T(()=>g("br",null,null,-1)),ht={__name:"SourceHelp",setup(e){return(t,o)=>{const s=xe,n=ae;return l(),U(L,null,[p(s,{icon:i(q),href:"https://alanskycn.gitee.io/teachme/",target:"_blank"},{default:c(()=>[m("书源制作教程")]),_:1},8,["icon"]),Ze,p(s,{icon:i(q),href:"https://zhuanlan.zhihu.com/p/29436838",target:"_blank"},{default:c(()=>[m("xpath基础教程")]),_:1},8,["icon"]),et,p(s,{icon:i(q),href:"https://zhuanlan.zhihu.com/p/32187820",target:"_blank"},{default:c(()=>[m("xpath高级教程")]),_:1},8,["icon"]),tt,p(s,{icon:i(q),href:"https://www.w3cschool.cn/regex_rmjc",target:"_blank"},{default:c(()=>[m("正则表达式教程")]),_:1},8,["icon"]),ot,p(s,{icon:i(q),href:"https://regexr-cn.com/",target:"_blank"},{default:c(()=>[m("正则表达式在线验证工具")]),_:1},8,["icon"]),nt,g("div",rt,[g("span",null,[p(n,null,{default:c(()=>[st,m(" 这些是Java正则特殊符号,匹配需转义")]),_:1})]),it,g("span",null,[p(n,null,{default:c(()=>[lt,m(" 前缀表示跨行解析")]),_:1})]),ct,g("span",null,[p(n,null,{default:c(()=>[at,m(" 前缀表示逐行匹配")]),_:1})]),ut,g("span",null,[p(n,null,{default:c(()=>[dt,m(" 前缀表示忽略大小写")]),_:1})]),pt])],64)}}},_t=O(ht,[["__scopeId","data-v-aee57c78"]]),M=e=>e==null||e.length===0||/^\s+$/.test(e),ye=e=>"bookSourceName"in e,gt=e=>ye(e)?!M(e.bookSourceName)&&!M(e.bookSourceUrl)&&!M(e.bookSourceType):!M(e.sourceName)&&!M(e.sourceName),mt=(e,t)=>{var o,s,n,r,a,C,S,y;return ye(e)?(((o=e.bookSourceName)==null?void 0:o.includes(t))||((s=e.bookSourceUrl)==null?void 0:s.includes(t))||((n=e.bookSourceGroup)==null?void 0:n.includes(t))||((r=e.bookSourceComment)==null?void 0:r.includes(t)))??!1:(((a=e.sourceName)==null?void 0:a.includes(t))||((C=e.sourceUrl)==null?void 0:C.includes(t))||((S=e.sourceGroup)==null?void 0:S.includes(t))||((y=e.sourceComment)==null?void 0:y.includes(t)))??!1},St={ruleSearch:{},ruleBookInfo:{},ruleToc:{},ruleContent:{},ruleReview:{},ruleExplore:{}},yt={},P=/bookSource/i.test(location.href),le=P?St:yt,K=ue("source",{state:()=>({bookSources:[],rssSources:[],errorPushSources:[],currentSource:le,currentTab:localStorage.getItem("tabName")||"editTab",editTabSource:{},isDebuging:!1}),getters:{sources:e=>P?e.bookSources:e.rssSources,currentSourceUrl:e=>P?e.currentSource.bookSourceUrl:e.currentSource.sourceUrl,searchKey:e=>P?e.currentSource.ruleSearch.checkKeyWord||"我的":null},actions:{startDebug(){this.currentTab="editDebug",this.isDebuging=!0},debugFinish(){this.isDebuging=!1},saveSources(e){P?this.bookSources=e:this.rssSources=e},deleteSources(e){let t=P?this.bookSources:this.rssSources;e.forEach(o=>{let s=t.indexOf(o);s>-1&&t.splice(s,1)})},saveCurrentSource(){let e=this.currentSource,t,o;P?(t=this.bookSources,o="bookSourceUrl"):(t=this.rssSources,o="sourceUrl");let s=t.findIndex(n=>n[o]===e[o]);e=JSON.parse(JSON.stringify(e)),s>-1?t.splice(s,1,e):t.push(e)},changeCurrentSource(e){const t=JSON.stringify(e);this.currentSource=JSON.parse(t)},async setPushReturnSources(e){P?this.errorPushSources=this.sources.filter(t=>e.every(o=>o.bookSourceUrl!==t.bookSourceUrl)):this.errorPushSources=this.sources.filter(t=>e.every(o=>o.sourceUrl!==t.sourceUrl))},changeTabName(e){this.currentTab=e,localStorage.setItem("tabName",e)},changeEditTabSource(e){const t=JSON.stringify(e);this.editTabSource=JSON.parse(t)},editHistory(e){let t;if(localStorage.getItem("history"))t=JSON.parse(localStorage.getItem("history")),t.new.push(e),t.new.length>50&&t.new.shift(),t.old.length>50&&t.old.shift(),localStorage.setItem("history",JSON.stringify(t));else{const o={new:[e],old:[]};localStorage.setItem("history",JSON.stringify(o))}},editHistoryUndo(){if(localStorage.getItem("history")){let e=JSON.parse(localStorage.getItem("history"));e.old.push(this.currentSource),e.new.length&&(this.currentSource=e.new.pop()),localStorage.setItem("history",JSON.stringify(e))}},clearAllHistory(){localStorage.setItem("history",JSON.stringify({new:[],old:[]}))},clearEdit(){this.editTabSource={},this.currentSource=le},clearAllSource(){this.bookSources=[],this.rssSources=[]}}});const ft={__name:"SourceItem",props:["source"],setup(e){const t=K(),{errorPushSources:o}=Q(t),s=n=>{t.changeCurrentSource(n)};return(n,r)=>{const a=Ee;return l(),b(a,{size:"large",border:"",label:e.source,class:de({error:i(o).includes(e.source)}),onChange:r[0]||(r[0]=C=>s(e.source))},{default:c(()=>[m(G(e.source.bookSourceName||e.source.sourceName),1)]),_:1},8,["label","class"])}}},bt=O(ft,[["__scopeId","data-v-d4c4e88b"]]);const kt={class:"tool"},vt={__name:"SourceList",setup(e){const t=K(),o=R([]),s=R(""),{sources:n}=Q(t),r=te(()=>/bookSource/.test(window.location.href)),a=()=>{t.deleteSources(o.value),o.value=[]},C=()=>{t.clearAllSource(),o.value=[]},S=te(()=>{let d=s.value;return d===""?n.value:n.value.filter(_=>mt(_,d))}),y=()=>{const d=document.createElement("input");d.type="file",d.accept=".json,.txt",d.addEventListener("change",_=>{const k=_.target.files[0];var B=new FileReader;B.readAsText(k),B.onload=()=>{try{const D=JSON.parse(B.result);t.saveSources(D)}catch{w({message:"上传的源格式错误",type:"error"})}}}),d.click()},x=()=>{const d=document.createElement("a");let _=o.value.length===0?S.value:o.value,k=r.value?"BookSource":"RssSource";d.download=`${k}_${Date().replace(/.*?\s(\d+)\s(\d+)\s(\d+:\d+:\d+).*/,"$2$1$3").replace(/:/g,"")}.json`;let B=new Blob([JSON.stringify(_,null,4)],{type:"application/json"});d.href=window.URL.createObjectURL(B),d.click()};return(d,_)=>{const k=X,B=he,D=Te;return l(),U(L,null,[p(k,{modelValue:i(s),"onUpdate:modelValue":_[0]||(_[0]=V=>A(s)?s.value=V:null),class:"search","prefix-icon":i(pe),placeholder:"筛选源"},null,8,["modelValue","prefix-icon"]),g("div",kt,[p(B,{onClick:y,icon:i(Ve)},{default:c(()=>[m(" 打开 ")]),_:1},8,["icon"]),p(B,{disabled:i(S).length===0,onClick:x,icon:i(Ie)},{default:c(()=>[m(" 导出")]),_:1},8,["disabled","icon"]),p(B,{icon:i(se),onClick:a,disabled:i(o).length===0},{default:c(()=>[m("删除")]),_:1},8,["icon","disabled"]),p(B,{type:"danger",icon:i(se),onClick:C,disabled:i(n).length===0},{default:c(()=>[m("清空")]),_:1},8,["icon","disabled"])]),p(D,{id:"source-list",modelValue:i(o),"onUpdate:modelValue":_[1]||(_[1]=V=>A(o)?o.value=V:null)},{default:c(()=>[p(i(Ne),{style:{height:"100%","overflow-y":"auto","overflow-x":"hidden"},"data-key":V=>V.bookSourceUrl||V.sourceUrl,"data-sources":i(S),"data-component":bt,"estimate-size":45},null,8,["data-key","data-sources"])]),_:1},8,["modelValue"])],64)}}},Ct=O(vt,[["__scopeId","data-v-3d581419"]]),wt=1e3,E=$e.create({baseURL:location.origin,timeout:120*wt}),{hostname:fe,port:be}=new URL(location.href),xt=/source/i.test(location.href),Bt=e=>{throw xt&&w({message:"后端错误,检查网络或者阅读app",type:"error"}),e};E.interceptors.response.use(e=>e,Bt);const Ut=()=>E.get("/getReadConfig"),Et=e=>E.post("/saveReadConfig",e),Vt=e=>E.post("/saveBookProgress",e),It=()=>E.get("/getBookshelf"),Nt=e=>E.get("/getChapterList?url="+encodeURIComponent(e)),Tt=(e,t)=>E.get("/getBookContent?url="+encodeURIComponent(e)+"&index="+t),$t=(e,t,o)=>{const s=`ws://${fe}:${Number(be)+1}/searchBook`,n=new WebSocket(s);n.onopen=()=>{n.send(`{"key":"${e}"}`)},n.onmessage=({data:r})=>t(r),n.onclose=()=>{o()}},Lt=e=>E.post("/saveBook",e),Rt=e=>E.post("/deleteBook",e),W=/bookSource/i.test(location.href),Ot=()=>W?E.get("getBookSources"):E.get("getRssSources"),Pt=e=>W?E.post("saveBookSource",e):E.post("saveRssSource",e),Dt=e=>W?E.post("saveBookSources",e):E.post("saveRssSources",e),Jt=e=>W?E.post("deleteBookSources",e):E.post("deleteRssSources",e),At=(e,t,o,s)=>{const n=`ws://${fe}:${Number(be)+1}/${W?"bookSource":"rssSource"}Debug`,r=new WebSocket(n);r.onopen=()=>{r.send(JSON.stringify({tag:e,key:t}))},r.onmessage=({data:a})=>o(a),r.onclose=()=>{w({message:"调试已关闭!",type:"info"}),s()}},H={getReadConfig:Ut,saveReadConfig:Et,saveBookProcess:Vt,getBookShelf:It,getChapterList:Nt,getBookContent:Tt,search:$t,saveBook:Lt,deleteBook:Rt,getSources:Ot,saveSources:Dt,saveSource:Pt,deleteSource:Jt,debug:At};const Kt={__name:"SourceDebug",setup(e){const t=K(),o=R(""),s=R("");_e(()=>{t.isDebuging&&r()});const n=C=>{let S=document.querySelector("#debug-text");S.scrollTop=S.scrollHeight,o.value+=C+` -`},r=async()=>{o.value="",await H.saveSource(t.currentSource),H.debug(t.currentSourceUrl,s.value||t.searchKey,n,t.debugFinish)},a=te(()=>/bookSource/.test(window.location.href));return(C,S)=>{const y=X;return l(),U(L,null,[i(a)?(l(),b(y,{key:0,id:"debug-key",modelValue:i(s),"onUpdate:modelValue":S[0]||(S[0]=x=>A(s)?s.value=x:null),placeholder:"搜索书名、作者","prefix-icon":i(pe),style:{"padding-bottom":"4px"},onKeydown:Le(r,["enter"])},null,8,["modelValue","prefix-icon","onKeydown"])):N("",!0),p(y,{id:"debug-text",modelValue:i(o),"onUpdate:modelValue":S[1]||(S[1]=x=>A(o)?o.value=x:null),type:"textarea",readonly:"",rows:"29",placeholder:"这里用于输出调试信息"},null,8,["modelValue"])],64)}}},jt=O(Kt,[["__scopeId","data-v-fe904689"]]),ho=ue("book",{state:()=>({connectStatus:"正在连接后端服务器……",connectType:"",newConnect:!0,searchBooks:[],shelf:[],catalog:[],readingBook:{index:0,chapterPos:0},popCataVisible:!1,contentLoading:!0,showContent:!1,config:{theme:0,font:0,fontSize:18,readWidth:800,infiniteLoading:!1,customFontName:""},miniInterface:!1,readSettingsVisible:!1}),actions:{setConnectStatus(e){this.connectStatus=e},setConnectType(e){this.connectType=e},setNewConnect(e){this.newConnect=e},addBooks(e){this.shelf=e},setCatalog(e){this.catalog=e},setPopCataVisible(e){this.popCataVisible=e},setContentLoading(e){this.contentLoading=e},setReadingBook(e){this.readingBook=e},setConfig(e){this.config=e},setReadSettingsVisible(e){this.readSettingsVisible=e},setShowContent(e){this.showContent=e},setMiniInterface(e){this.miniInterface=e},async setSearchBooks(e){e.forEach(t=>{this.shelf.find(s=>s.bookUrl==t.bookUrl)===void 0&&this.searchBooks.push(t)})},clearSearchBooks(){this.searchBooks=[]},async saveBookProcess(){var r;if(this.catalog.length==0)return;const{index:e,chapterPos:t,bookName:o,bookAuthor:s}=this.readingBook;let n=(r=this.catalog[e])==null?void 0:r.title;n&&H.saveBookProcess({name:o,author:s,durChapterIndex:e,durChapterPos:t,durChapterTime:new Date().getTime(),durChapterTitle:n})}}}),Ht=Re();const Ft={__name:"SourceJson",setup(e){const t=K(),o=R(""),s=async n=>{try{t.changeEditTabSource(JSON.parse(n))}catch{w({message:"粘贴的源格式错误",type:"error"})}};return _e(async()=>{let n=t.editTabSource;Object.keys(n).length>0?o.value=JSON.stringify(n,null,4):o.value=""}),(n,r)=>{const a=X;return l(),b(a,{id:"source-json",modelValue:i(o),"onUpdate:modelValue":r[0]||(r[0]=C=>A(o)?o.value=C:null),type:"textarea",placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP",rows:"30",onChange:s,style:{"margin-bottom":"4px"}},null,8,["modelValue"])}}},qt=O(Ft,[["__scopeId","data-v-7e91a802"]]);const zt={__name:"SourceTabTools",setup(e){const t=K(),{currentTab:o}=Q(t),s=R([["editTab","编辑源"],["editDebug","调试源"],["editList","源列表"],["editHelp","帮助信息"]]);return(n,r)=>{const a=qt,C=jt,S=Ct,y=_t,x=ge,d=me;return l(),b(d,{modelValue:i(o),"onUpdate:modelValue":r[0]||(r[0]=_=>A(o)?o.value=_:null)},{default:c(()=>[(l(!0),U(L,null,J(i(s),(_,k)=>(l(),b(x,{key:_[0],name:_[0],label:_[1]},{default:c(()=>[k==0?(l(),b(a,{key:0})):N("",!0),k==1?(l(),b(C,{key:1})):N("",!0),k==2?(l(),b(S,{key:2})):N("",!0),k==3?(l(),b(y,{key:3})):N("",!0)]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])}}},Mt=O(zt,[["__scopeId","data-v-dcce2457"]]);const Wt={class:"menu flex-column-center"},Gt={class:"hotkeys-header flex-space-between"},Qt=["id"],Xt={key:0},Yt={class:"hotkeys-settings flex-column-center"},Zt={class:"title"},eo={class:"hotkeys-item__content"},to={key:0},oo={key:0},no={__name:"ToolBar",setup(e){const t=K(),o=()=>{const h=w({message:"加载中……",showClose:!0,duration:0});H.getSources().then(({data:u})=>{u.isSuccess?(t.changeTabName("editList"),t.saveSources(u.data),w({message:`成功拉取${u.data.length}条源`,type:"success"})):w({message:u.errorMsg??"后端错误",type:"error"})}).finally(()=>h.close())},s=()=>{let h=t.sources;if(t.changeTabName("editList"),h.length===0)return w({message:"空空如也",type:"info"});w({message:"正在推送中",type:"info"}),H.saveSources(h).then(({data:u})=>{if(u.isSuccess){let v=u.data;if(Array.isArray(v)){let f="";h.length>v.length&&(f=` -推送失败的源将用红色字体标注!`,t.setPushReturnSources(v)),w({message:`批量推送源到「阅读3.0APP」 +import{r as we,o as l,c as b,a as ne,b as re,d as U,e as p,w as a,f as m,u as i,l as q,g,F as L,E as xe,h as ae,p as Be,i as Ue,j as Ee,k as C,m as ue,s as Q,t as G,n as de,q as Ve,v as R,x as te,y as K,z as pe,A as Ie,B as Ne,C as se,V as Te,D as X,G as he,H as $e,I as _e,J as Le,K as N,L as Re,M as J,N as ge,O as me,P as Oe,Q as z,R as Pe,S as De,T as Je,U as Ae,W as Ke,X as je,Y as He,Z as Fe,_ as qe,$ as ze,a0 as Me}from"./vendor-bf77f5c0.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const u of r.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function o(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=o(n);fetch(n.href,r)}})();const We="modulepreload",Ge=function(e,t){return new URL(e,t).href},ie={},oe=function(t,o,s){if(!o||o.length===0)return t();const n=document.getElementsByTagName("link");return Promise.all(o.map(r=>{if(r=Ge(r,s),r in ie)return;ie[r]=!0;const u=r.endsWith(".css"),w=u?'[rel="stylesheet"]':"";if(!!s)for(let x=n.length-1;x>=0;x--){const c=n[x];if(c.href===r&&(!u||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${w}`))return;const y=document.createElement("link");if(y.rel=u?"stylesheet":We,u||(y.as="script",y.crossOrigin=""),y.href=r,document.head.appendChild(y),u)return new Promise((x,c)=>{y.addEventListener("load",x),y.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},O=(e,t)=>{const o=e.__vccOpts||e;for(const[s,n]of t)o[s]=n;return o},Qe={};function Xe(e,t){const o=we("router-view");return l(),b(o)}const Ye=O(Qe,[["render",Xe]]),Se=[{path:"/",name:"shelf",component:()=>oe(()=>import("./BookShelf-c2410b56.js"),["./BookShelf-c2410b56.js","./vendor-bf77f5c0.js","./vendor-6f0d1692.css","./el-loading-b910ac83.js","./el-loading-d0f2d079.css","./BookShelf-f637327a.css"],import.meta.url)},{path:"/chapter",name:"chapter",component:()=>oe(()=>import("./BookChapter-6faa194e.js"),["./BookChapter-6faa194e.js","./el-loading-b910ac83.js","./el-loading-d0f2d079.css","./vendor-bf77f5c0.js","./vendor-6f0d1692.css","./BookChapter-468f2c8e.css"],import.meta.url)}];ne({history:re(),routes:Se});const T=e=>(Be("data-v-aee57c78"),e=e(),Ue(),e),Ze=T(()=>g("br",null,null,-1)),et=T(()=>g("br",null,null,-1)),tt=T(()=>g("br",null,null,-1)),ot=T(()=>g("br",null,null,-1)),nt=T(()=>g("br",null,null,-1)),rt={style:{"margin-top":"20px"}},st=T(()=>g("code",null,"^$()[]{}.?+*|",-1)),it=T(()=>g("br",null,null,-1)),lt=T(()=>g("code",null,"(?s)",-1)),ct=T(()=>g("br",null,null,-1)),at=T(()=>g("code",null,"(?m)",-1)),ut=T(()=>g("br",null,null,-1)),dt=T(()=>g("code",null,"(?i)",-1)),pt=T(()=>g("br",null,null,-1)),ht={__name:"SourceHelp",setup(e){return(t,o)=>{const s=xe,n=ae;return l(),U(L,null,[p(s,{icon:i(q),href:"https://alanskycn.gitee.io/teachme/",target:"_blank"},{default:a(()=>[m("书源制作教程")]),_:1},8,["icon"]),Ze,p(s,{icon:i(q),href:"https://zhuanlan.zhihu.com/p/29436838",target:"_blank"},{default:a(()=>[m("xpath基础教程")]),_:1},8,["icon"]),et,p(s,{icon:i(q),href:"https://zhuanlan.zhihu.com/p/32187820",target:"_blank"},{default:a(()=>[m("xpath高级教程")]),_:1},8,["icon"]),tt,p(s,{icon:i(q),href:"https://www.w3cschool.cn/regex_rmjc",target:"_blank"},{default:a(()=>[m("正则表达式教程")]),_:1},8,["icon"]),ot,p(s,{icon:i(q),href:"https://regexr-cn.com/",target:"_blank"},{default:a(()=>[m("正则表达式在线验证工具")]),_:1},8,["icon"]),nt,g("div",rt,[g("span",null,[p(n,null,{default:a(()=>[st,m(" 这些是Java正则特殊符号,匹配需转义")]),_:1})]),it,g("span",null,[p(n,null,{default:a(()=>[lt,m(" 前缀表示跨行解析")]),_:1})]),ct,g("span",null,[p(n,null,{default:a(()=>[at,m(" 前缀表示逐行匹配")]),_:1})]),ut,g("span",null,[p(n,null,{default:a(()=>[dt,m(" 前缀表示忽略大小写")]),_:1})]),pt])],64)}}},_t=O(ht,[["__scopeId","data-v-aee57c78"]]),gt=1e3,E=Ee.create({baseURL:location.origin,timeout:120*gt}),{hostname:ye,port:fe}=new URL(location.href),mt=/source/i.test(location.href),St=e=>{throw mt&&C({message:"后端错误,检查网络或者阅读app",type:"error"}),e};E.interceptors.response.use(e=>e,St);const yt=()=>E.get("/getReadConfig"),ft=e=>E.post("/saveReadConfig",e),bt=e=>E.post("/saveBookProgress",e),kt=()=>E.get("/getBookshelf"),vt=e=>E.get("/getChapterList?url="+encodeURIComponent(e)),Ct=(e,t)=>E.get("/getBookContent?url="+encodeURIComponent(e)+"&index="+t),wt=(e,t,o)=>{const s=`ws://${ye}:${Number(fe)+1}/searchBook`,n=new WebSocket(s);n.onopen=()=>{n.send(`{"key":"${e}"}`)},n.onmessage=({data:r})=>t(r),n.onclose=()=>{o()}},xt=e=>E.post("/saveBook",e),Bt=e=>E.post("/deleteBook",e),W=/bookSource/i.test(location.href),Ut=()=>W?E.get("getBookSources"):E.get("getRssSources"),Et=e=>W?E.post("saveBookSource",e):E.post("saveRssSource",e),Vt=e=>W?E.post("saveBookSources",e):E.post("saveRssSources",e),It=e=>W?E.post("deleteBookSources",e):E.post("deleteRssSources",e),Nt=(e,t,o,s)=>{const n=`ws://${ye}:${Number(fe)+1}/${W?"bookSource":"rssSource"}Debug`,r=new WebSocket(n);r.onopen=()=>{r.send(JSON.stringify({tag:e,key:t}))},r.onmessage=({data:u})=>o(u),r.onclose=()=>{C({message:"调试已关闭!",type:"info"}),s()}},A={getReadConfig:yt,saveReadConfig:ft,saveBookProcess:bt,getBookShelf:kt,getChapterList:vt,getBookContent:Ct,search:wt,saveBook:xt,deleteBook:Bt,getSources:Ut,saveSources:Vt,saveSource:Et,deleteSource:It,debug:Nt},M=e=>e==null||e.length===0||/^\s+$/.test(e),be=e=>"bookSourceName"in e,Tt=e=>be(e)?!M(e.bookSourceName)&&!M(e.bookSourceUrl)&&!M(e.bookSourceType):!M(e.sourceName)&&!M(e.sourceName),$t=(e,t)=>{var o,s,n,r,u,w,S,y;return be(e)?(((o=e.bookSourceName)==null?void 0:o.includes(t))||((s=e.bookSourceUrl)==null?void 0:s.includes(t))||((n=e.bookSourceGroup)==null?void 0:n.includes(t))||((r=e.bookSourceComment)==null?void 0:r.includes(t)))??!1:(((u=e.sourceName)==null?void 0:u.includes(t))||((w=e.sourceUrl)==null?void 0:w.includes(t))||((S=e.sourceGroup)==null?void 0:S.includes(t))||((y=e.sourceComment)==null?void 0:y.includes(t)))??!1},Lt={ruleSearch:{},ruleBookInfo:{},ruleToc:{},ruleContent:{},ruleReview:{},ruleExplore:{}},Rt={},P=/bookSource/i.test(location.href),le=P?Lt:Rt,j=ue("source",{state:()=>({bookSources:[],rssSources:[],errorPushSources:[],currentSource:le,currentTab:localStorage.getItem("tabName")||"editTab",editTabSource:{},isDebuging:!1}),getters:{sources:e=>P?e.bookSources:e.rssSources,currentSourceUrl:e=>P?e.currentSource.bookSourceUrl:e.currentSource.sourceUrl,searchKey:e=>P?e.currentSource.ruleSearch.checkKeyWord||"我的":null},actions:{startDebug(){this.currentTab="editDebug",this.isDebuging=!0},debugFinish(){this.isDebuging=!1},saveSources(e){P?this.bookSources=e:this.rssSources=e},deleteSources(e){let t=P?this.bookSources:this.rssSources;e.forEach(o=>{let s=t.indexOf(o);s>-1&&t.splice(s,1)})},saveCurrentSource(){let e=this.currentSource,t,o;P?(t=this.bookSources,o="bookSourceUrl"):(t=this.rssSources,o="sourceUrl");let s=t.findIndex(n=>n[o]===e[o]);e=JSON.parse(JSON.stringify(e)),s>-1?t.splice(s,1,e):t.push(e)},changeCurrentSource(e){const t=JSON.stringify(e);this.currentSource=JSON.parse(t)},async setPushReturnSources(e){P?this.errorPushSources=this.sources.filter(t=>e.every(o=>o.bookSourceUrl!==t.bookSourceUrl)):this.errorPushSources=this.sources.filter(t=>e.every(o=>o.sourceUrl!==t.sourceUrl))},changeTabName(e){this.currentTab=e,localStorage.setItem("tabName",e)},changeEditTabSource(e){const t=JSON.stringify(e);this.editTabSource=JSON.parse(t)},editHistory(e){let t;if(localStorage.getItem("history"))t=JSON.parse(localStorage.getItem("history")),t.new.push(e),t.new.length>50&&t.new.shift(),t.old.length>50&&t.old.shift(),localStorage.setItem("history",JSON.stringify(t));else{const o={new:[e],old:[]};localStorage.setItem("history",JSON.stringify(o))}},editHistoryUndo(){if(localStorage.getItem("history")){let e=JSON.parse(localStorage.getItem("history"));e.old.push(this.currentSource),e.new.length&&(this.currentSource=e.new.pop()),localStorage.setItem("history",JSON.stringify(e))}},clearAllHistory(){localStorage.setItem("history",JSON.stringify({new:[],old:[]}))},clearEdit(){this.editTabSource={},this.currentSource=le},clearAllSource(){this.bookSources=[],this.rssSources=[]}}});const Ot={__name:"SourceItem",props:["source"],setup(e){const t=j(),{errorPushSources:o}=Q(t),s=n=>{t.changeCurrentSource(n)};return(n,r)=>{const u=Ve;return l(),b(u,{size:"large",border:"",label:e.source,class:de({error:i(o).includes(e.source)}),onChange:r[0]||(r[0]=w=>s(e.source))},{default:a(()=>[m(G(e.source.bookSourceName||e.source.sourceName),1)]),_:1},8,["label","class"])}}},Pt=O(Ot,[["__scopeId","data-v-d4c4e88b"]]);const Dt={class:"tool"},Jt={__name:"SourceList",setup(e){const t=j(),o=R([]),s=R(""),{sources:n}=Q(t),r=te(()=>/bookSource/.test(window.location.href)),u=()=>{A.deleteSource(o.value).then(({data:c})=>{if(!c.isSuccess)return C.error(c.errorMsg);t.deleteSources(o.value),o.value=[]})},w=()=>{t.clearAllSource(),o.value=[]},S=te(()=>{let c=s.value;return c===""?n.value:n.value.filter(_=>$t(_,c))}),y=()=>{const c=document.createElement("input");c.type="file",c.accept=".json,.txt",c.addEventListener("change",_=>{const k=_.target.files[0];var B=new FileReader;B.readAsText(k),B.onload=()=>{try{const D=JSON.parse(B.result);t.saveSources(D)}catch{C({message:"上传的源格式错误",type:"error"})}}}),c.click()},x=()=>{const c=document.createElement("a");let _=o.value.length===0?S.value:o.value,k=r.value?"BookSource":"RssSource";c.download=`${k}_${Date().replace(/.*?\s(\d+)\s(\d+)\s(\d+:\d+:\d+).*/,"$2$1$3").replace(/:/g,"")}.json`;let B=new Blob([JSON.stringify(_,null,4)],{type:"application/json"});c.href=window.URL.createObjectURL(B),c.click()};return(c,_)=>{const k=X,B=he,D=$e;return l(),U(L,null,[p(k,{modelValue:i(s),"onUpdate:modelValue":_[0]||(_[0]=V=>K(s)?s.value=V:null),class:"search","prefix-icon":i(pe),placeholder:"筛选源"},null,8,["modelValue","prefix-icon"]),g("div",Dt,[p(B,{onClick:y,icon:i(Ie)},{default:a(()=>[m("打开")]),_:1},8,["icon"]),p(B,{disabled:i(S).length===0,onClick:x,icon:i(Ne)},{default:a(()=>[m(" 导出")]),_:1},8,["disabled","icon"]),p(B,{type:"danger",icon:i(se),onClick:u,disabled:i(o).length===0},{default:a(()=>[m("删除")]),_:1},8,["icon","disabled"]),p(B,{type:"danger",icon:i(se),onClick:w,disabled:i(n).length===0},{default:a(()=>[m("清空")]),_:1},8,["icon","disabled"])]),p(D,{id:"source-list",modelValue:i(o),"onUpdate:modelValue":_[1]||(_[1]=V=>K(o)?o.value=V:null)},{default:a(()=>[p(i(Te),{style:{height:"100%","overflow-y":"auto","overflow-x":"hidden"},"data-key":V=>V.bookSourceUrl||V.sourceUrl,"data-sources":i(S),"data-component":Pt,"estimate-size":45},null,8,["data-key","data-sources"])]),_:1},8,["modelValue"])],64)}}},At=O(Jt,[["__scopeId","data-v-76d18c9a"]]);const Kt={__name:"SourceDebug",setup(e){const t=j(),o=R(""),s=R("");_e(()=>{t.isDebuging&&r()});const n=w=>{let S=document.querySelector("#debug-text");S.scrollTop=S.scrollHeight,o.value+=w+` +`},r=async()=>{o.value="",await A.saveSource(t.currentSource),A.debug(t.currentSourceUrl,s.value||t.searchKey,n,t.debugFinish)},u=te(()=>/bookSource/.test(window.location.href));return(w,S)=>{const y=X;return l(),U(L,null,[i(u)?(l(),b(y,{key:0,id:"debug-key",modelValue:i(s),"onUpdate:modelValue":S[0]||(S[0]=x=>K(s)?s.value=x:null),placeholder:"搜索书名、作者","prefix-icon":i(pe),style:{"padding-bottom":"4px"},onKeydown:Le(r,["enter"])},null,8,["modelValue","prefix-icon","onKeydown"])):N("",!0),p(y,{id:"debug-text",modelValue:i(o),"onUpdate:modelValue":S[1]||(S[1]=x=>K(o)?o.value=x:null),type:"textarea",readonly:"",rows:"29",placeholder:"这里用于输出调试信息"},null,8,["modelValue"])],64)}}},jt=O(Kt,[["__scopeId","data-v-fe904689"]]),ho=ue("book",{state:()=>({connectStatus:"正在连接后端服务器……",connectType:"",newConnect:!0,searchBooks:[],shelf:[],catalog:[],readingBook:{index:0,chapterPos:0},popCataVisible:!1,contentLoading:!0,showContent:!1,config:{theme:0,font:0,fontSize:18,readWidth:800,infiniteLoading:!1,customFontName:""},miniInterface:!1,readSettingsVisible:!1}),actions:{setConnectStatus(e){this.connectStatus=e},setConnectType(e){this.connectType=e},setNewConnect(e){this.newConnect=e},addBooks(e){this.shelf=e},setCatalog(e){this.catalog=e},setPopCataVisible(e){this.popCataVisible=e},setContentLoading(e){this.contentLoading=e},setReadingBook(e){this.readingBook=e},setConfig(e){this.config=e},setReadSettingsVisible(e){this.readSettingsVisible=e},setShowContent(e){this.showContent=e},setMiniInterface(e){this.miniInterface=e},async setSearchBooks(e){e.forEach(t=>{this.shelf.find(s=>s.bookUrl==t.bookUrl)===void 0&&this.searchBooks.push(t)})},clearSearchBooks(){this.searchBooks=[]},async saveBookProcess(){var r;if(this.catalog.length==0)return;const{index:e,chapterPos:t,bookName:o,bookAuthor:s}=this.readingBook;let n=(r=this.catalog[e])==null?void 0:r.title;n&&A.saveBookProcess({name:o,author:s,durChapterIndex:e,durChapterPos:t,durChapterTime:new Date().getTime(),durChapterTitle:n})}}}),Ht=Re();const Ft={__name:"SourceJson",setup(e){const t=j(),o=R(""),s=async n=>{try{t.changeEditTabSource(JSON.parse(n))}catch{C({message:"粘贴的源格式错误",type:"error"})}};return _e(async()=>{let n=t.editTabSource;Object.keys(n).length>0?o.value=JSON.stringify(n,null,4):o.value=""}),(n,r)=>{const u=X;return l(),b(u,{id:"source-json",modelValue:i(o),"onUpdate:modelValue":r[0]||(r[0]=w=>K(o)?o.value=w:null),type:"textarea",placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP",rows:"30",onChange:s,style:{"margin-bottom":"4px"}},null,8,["modelValue"])}}},qt=O(Ft,[["__scopeId","data-v-7e91a802"]]);const zt={__name:"SourceTabTools",setup(e){const t=j(),{currentTab:o}=Q(t),s=R([["editTab","编辑源"],["editDebug","调试源"],["editList","源列表"],["editHelp","帮助信息"]]);return(n,r)=>{const u=qt,w=jt,S=At,y=_t,x=ge,c=me;return l(),b(c,{modelValue:i(o),"onUpdate:modelValue":r[0]||(r[0]=_=>K(o)?o.value=_:null)},{default:a(()=>[(l(!0),U(L,null,J(i(s),(_,k)=>(l(),b(x,{key:_[0],name:_[0],label:_[1]},{default:a(()=>[k==0?(l(),b(u,{key:0})):N("",!0),k==1?(l(),b(w,{key:1})):N("",!0),k==2?(l(),b(S,{key:2})):N("",!0),k==3?(l(),b(y,{key:3})):N("",!0)]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])}}},Mt=O(zt,[["__scopeId","data-v-dcce2457"]]);const Wt={class:"menu flex-column-center"},Gt={class:"hotkeys-header flex-space-between"},Qt=["id"],Xt={key:0},Yt={class:"hotkeys-settings flex-column-center"},Zt={class:"title"},eo={class:"hotkeys-item__content"},to={key:0},oo={key:0},no={__name:"ToolBar",setup(e){const t=j(),o=()=>{const h=C({message:"加载中……",showClose:!0,duration:0});A.getSources().then(({data:d})=>{d.isSuccess?(t.changeTabName("editList"),t.saveSources(d.data),C({message:`成功拉取${d.data.length}条源`,type:"success"})):C({message:d.errorMsg??"后端错误",type:"error"})}).finally(()=>h.close())},s=()=>{let h=t.sources;if(t.changeTabName("editList"),h.length===0)return C({message:"空空如也",type:"info"});C({message:"正在推送中",type:"info"}),A.saveSources(h).then(({data:d})=>{if(d.isSuccess){let v=d.data;if(Array.isArray(v)){let f="";h.length>v.length&&(f=` +推送失败的源将用红色字体标注!`,t.setPushReturnSources(v)),C({message:`批量推送源到「阅读3.0APP」 共计: ${h.length} 条 成功: ${v.length} 条 -失败: ${h.length-v.length} 条${f}`,type:"success"})}}else w({message:`批量推送源失败! -ErrorMsg: ${u.errorMsg}`,type:"error"})})},n=()=>{t.changeTabName("editTab"),t.changeEditTabSource(t.currentSource)},r=()=>{t.changeCurrentSource(t.editTabSource)},a=()=>{t.editHistoryUndo()},C=()=>{t.clearEdit(),w({message:"已清除",type:"success"})},S=()=>{t.clearEdit(),t.clearAllHistory(),w({message:"已清除所有历史记录",type:"success"})},y=()=>{let h=/bookSource/.test(location.href),u=t.currentSource;gt(u)?H.saveSource(u).then(({data:v})=>{v.isSuccess?(w({message:`源《${h?u.bookSourceName:u.sourceName}》已成功保存到「阅读3.0APP」`,type:"success"}),t.saveCurrentSource()):w({message:`源《${h?u.bookSourceName:u.sourceName}》保存失败! -ErrorMsg: ${v.errorMsg}`,type:"error"})}):w({message:"请检查<必填>项是否全部填写",type:"error"})},x=()=>{t.startDebug()},d=R(Array.of({name:"⇈推送源",hotKeys:[],action:s},{name:"⇊拉取源",hotKeys:[],action:o},{name:"⋙生成源",hotKeys:[],action:n},{name:"⋘编辑源",hotKeys:[],action:r},{name:"✗清空表单",hotKeys:[],action:C},{name:"↶撤销操作",hotKeys:[],action:a},{name:"↷重做操作",hotKeys:[],action:S},{name:"⇏调试源",hotKeys:[],action:x},{name:"✓保存源",hotKeys:[],action:y})),_=R(!0),k=R(!1),B=R(-1),D=()=>{k.value=!1};Oe(_,h=>{if(!h)return z.unbind("*");z.unbind(),z("*",u=>{u.preventDefault(),k.value&&B.value>-1&&(d.value[B.value].hotKeys=z.getPressedKeyString())})});const V=h=>{k.value=!0,w({message:"按ESC键或者点击空白处结束录入",type:"info"}),d.value[h].hotKeys=[],B.value=h},F=()=>{_.value=!1;const h=[];d.value.forEach(({hotKeys:u,action:v})=>{z(u.join("+"),f=>{f.preventDefault(),v.call(null)}),h.push(u)}),j(h)},j=h=>{localStorage.setItem("legado_web_hotkeys",JSON.stringify(h))},$=()=>{try{const h=JSON.parse(localStorage.getItem("legado_web_hotkeys"));if(!Array.isArray(h)||h.length==0)return;d.value.forEach((u,v)=>u.hotKeys=h[v]),_.value=!1,F()}catch{w({message:"快捷键配置错误",type:"error"}),localStorage.removeItem("legado_web_hotkeys")}};return Pe(()=>{$()}),(h,u)=>{const v=he,f=ae,Y=Ae;return l(),U(L,null,[g("div",Wt,[(l(!0),U(L,null,J(i(d),I=>(l(),b(v,{size:"large",key:I.name,onClick:I.action},{default:c(()=>[m(G(I.name),1)]),_:2},1032,["onClick"]))),128)),p(v,{size:"large",onClick:u[0]||(u[0]=()=>_.value=!0)},{default:c(()=>[m("快捷键")]),_:1})]),p(Y,{modelValue:i(_),"onUpdate:modelValue":u[1]||(u[1]=I=>A(_)?_.value=I:null),"show-close":!1,"before-close":D},{header:c(({titleClass:I,titleId:Z})=>[g("div",Gt,[g("div",{id:Z,class:de(I)},[m(" 快捷键设置 "),i(k)?(l(),U("span",Xt,[p(f,null,{default:c(()=>[m(" / 录入中 ")]),_:1})])):N("",!0)],10,Qt),p(v,{disabled:i(k),onClick:F,icon:i(De)},{default:c(()=>[m("保存")]),_:1},8,["disabled","icon"])])]),default:c(()=>[g("div",Yt,[(l(!0),U(L,null,J(i(d),(I,Z)=>(l(),U("div",{key:I.name,class:"hotkeys-item flex-space-between"},[g("span",Zt,[p(f,null,{default:c(()=>[m(G(I.name),1)]),_:2},1024)]),g("div",eo,[(l(!0),U(L,null,J(I.hotKeys,(ee,Ce)=>(l(),U("div",{key:ee},[g("kbd",null,G(ee),1),Ce+1[m("+")]),_:1})])):N("",!0)]))),128)),I.hotKeys.length==0?(l(),U("span",oo,"未设置")):N("",!0)]),p(v,{disabled:i(k),text:"",icon:i(Je),onClick:ee=>V(Z)},{default:c(()=>[m("编辑")]),_:2},1032,["disabled","icon","onClick"])]))),128))])]),_:1},8,["modelValue"])],64)}}},ro=O(no,[["__scopeId","data-v-dc7cd0f9"]]);const so={__name:"SourceTabForm",props:["config"],setup(e){const t=K(),{currentSource:o}=Q(t);return(s,n)=>{const r=X,a=Ke,C=je,S=He,y=Fe,x=qe,d=ze,_=ge,k=me;return l(),b(k,{id:"source-edit"},{default:c(()=>[(l(!0),U(L,null,J(Object.values(e.config),({name:B,children:D})=>(l(),b(_,{label:B,key:B},{default:c(()=>[p(d,{"label-position":"right","label-width":"5em"},{default:c(()=>[(l(!0),U(L,null,J(D,({type:V,title:F,namespace:j,id:$,array:h,hint:u,required:v})=>(l(),b(x,{label:F,key:F,required:v},{default:c(()=>[V=="String"&&typeof j>"u"?(l(),b(r,{key:0,type:"textarea",modelValue:i(o)[$],"onUpdate:modelValue":f=>i(o)[$]=f,placeholder:u,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):N("",!0),V=="String"&&typeof j<"u"?(l(),b(r,{key:1,type:"textarea",modelValue:i(o)[j][$],"onUpdate:modelValue":f=>i(o)[j][$]=f,placeholder:u,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):N("",!0),V=="Boolean"?(l(),b(a,{key:2,modelValue:i(o)[$],"onUpdate:modelValue":f=>i(o)[$]=f},null,8,["modelValue","onUpdate:modelValue"])):N("",!0),V=="Number"?(l(),b(C,{key:3,modelValue:i(o)[$],"onUpdate:modelValue":f=>i(o)[$]=f,min:0},null,8,["modelValue","onUpdate:modelValue"])):N("",!0),V=="Array"?(l(),b(y,{key:4,modelValue:i(o)[$],"onUpdate:modelValue":f=>i(o)[$]=f},{default:c(()=>[(l(!0),U(L,null,J(h,(f,Y)=>(l(),b(S,{value:Y,key:f,label:f},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):N("",!0)]),_:2},1032,["label","required"]))),128))]),_:2},1024)]),_:2},1032,["label"]))),128))]),_:1})}}},io=O(so,[["__scopeId","data-v-2cfb5302"]]),lo={base:{name:"基础",children:[{title:"源类型",id:"bookSourceType",type:"Array",array:["文本","音频","图片","文件"],required:!0},{title:"源域名",id:"bookSourceUrl",type:"String",hint:"通常填写网站主页,例: https://www.qidian.com",required:!0},{title:"源名称",id:"bookSourceName",type:"String",hint:"会显示在源列表",required:!0},{title:"源分组",id:"bookSourceGroup",type:"String",hint:"描述源的特征信息"},{title:"源注释",id:"bookSourceComment",type:"String",hint:"描述源作者和状态"},{title:"书源变量",id:"variableComment",type:"String",hint:"书源变量说明"},{title:"登录地址",id:"loginUrl",type:"String",hint:"填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",id:"loginUi",type:"String",hint:"自定义登录界面"},{title:"登录检测",id:"loginCheckJs",type:"String",hint:"登录检测js"},{title:"封面解密",id:"coverDecodeJs",type:"String",hint:"封面解密js"},{title:"并发率",id:"concurrentRate",type:"String",hint:"并发率"},{title:"js库",id:"jsLib",type:"String",hint:"js库"},{title:"请求头",id:"header",type:"String",hint:"客户端标识"},{title:"链接验证",id:"bookUrlPattern",type:"String",hint:"当详情页URL与源URL的域名不一致时有效,用于添加网址"}]},search:{name:"搜索",children:[{title:"搜索地址",id:"searchUrl",type:"String",hint:"[域名可省略]/search.php@kw={{key}}"},{title:"校验文字",namespace:"ruleSearch",id:"checkKeyWord",type:"String",hint:"校验关键字"},{title:"列表规则",namespace:"ruleSearch",id:"bookList",type:"String",hint:"选择书籍节点 (规则结果为List)"},{title:"书名规则",namespace:"ruleSearch",id:"name",type:"String",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",namespace:"ruleSearch",id:"author",type:"String",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",namespace:"ruleSearch",id:"kind",type:"String",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",namespace:"ruleSearch",id:"wordCount",type:"String",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",namespace:"ruleSearch",id:"lastChapter",type:"String",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",namespace:"ruleSearch",id:"intro",type:"String",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",namespace:"ruleSearch",id:"coverUrl",type:"String",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"详情地址",namespace:"ruleSearch",id:"bookUrl",type:"String",hint:"选择书籍详情页网址 (规则结果为String类型的url)"}]},find:{name:"发现",children:[{title:"发现地址",id:"exploreUrl",type:"String",hint:`内容能显示在发现菜单 +失败: ${h.length-v.length} 条${f}`,type:"success"})}}else C({message:`批量推送源失败! +ErrorMsg: ${d.errorMsg}`,type:"error"})})},n=()=>{t.changeTabName("editTab"),t.changeEditTabSource(t.currentSource)},r=()=>{t.changeCurrentSource(t.editTabSource)},u=()=>{t.editHistoryUndo()},w=()=>{t.clearEdit(),C({message:"已清除",type:"success"})},S=()=>{t.clearEdit(),t.clearAllHistory(),C({message:"已清除所有历史记录",type:"success"})},y=()=>{let h=/bookSource/.test(location.href),d=t.currentSource;Tt(d)?A.saveSource(d).then(({data:v})=>{v.isSuccess?(C({message:`源《${h?d.bookSourceName:d.sourceName}》已成功保存到「阅读3.0APP」`,type:"success"}),t.saveCurrentSource()):C({message:`源《${h?d.bookSourceName:d.sourceName}》保存失败! +ErrorMsg: ${v.errorMsg}`,type:"error"})}):C({message:"请检查<必填>项是否全部填写",type:"error"})},x=()=>{t.startDebug()},c=R(Array.of({name:"⇈推送源",hotKeys:[],action:s},{name:"⇊拉取源",hotKeys:[],action:o},{name:"⋙生成源",hotKeys:[],action:n},{name:"⋘编辑源",hotKeys:[],action:r},{name:"✗清空表单",hotKeys:[],action:w},{name:"↶撤销操作",hotKeys:[],action:u},{name:"↷重做操作",hotKeys:[],action:S},{name:"⇏调试源",hotKeys:[],action:x},{name:"✓保存源",hotKeys:[],action:y})),_=R(!0),k=R(!1),B=R(-1),D=()=>{k.value=!1};Oe(_,h=>{if(!h)return z.unbind("*");z.unbind(),z("*",d=>{d.preventDefault(),k.value&&B.value>-1&&(c.value[B.value].hotKeys=z.getPressedKeyString())})});const V=h=>{k.value=!0,C({message:"按ESC键或者点击空白处结束录入",type:"info"}),c.value[h].hotKeys=[],B.value=h},F=()=>{_.value=!1;const h=[];c.value.forEach(({hotKeys:d,action:v})=>{z(d.join("+"),f=>{f.preventDefault(),v.call(null)}),h.push(d)}),H(h)},H=h=>{localStorage.setItem("legado_web_hotkeys",JSON.stringify(h))},$=()=>{try{const h=JSON.parse(localStorage.getItem("legado_web_hotkeys"));if(!Array.isArray(h)||h.length==0)return;c.value.forEach((d,v)=>d.hotKeys=h[v]),_.value=!1,F()}catch{C({message:"快捷键配置错误",type:"error"}),localStorage.removeItem("legado_web_hotkeys")}};return Pe(()=>{$()}),(h,d)=>{const v=he,f=ae,Y=Ae;return l(),U(L,null,[g("div",Wt,[(l(!0),U(L,null,J(i(c),I=>(l(),b(v,{size:"large",key:I.name,onClick:I.action},{default:a(()=>[m(G(I.name),1)]),_:2},1032,["onClick"]))),128)),p(v,{size:"large",onClick:d[0]||(d[0]=()=>_.value=!0)},{default:a(()=>[m("快捷键")]),_:1})]),p(Y,{modelValue:i(_),"onUpdate:modelValue":d[1]||(d[1]=I=>K(_)?_.value=I:null),"show-close":!1,"before-close":D},{header:a(({titleClass:I,titleId:Z})=>[g("div",Gt,[g("div",{id:Z,class:de(I)},[m(" 快捷键设置 "),i(k)?(l(),U("span",Xt,[p(f,null,{default:a(()=>[m(" / 录入中 ")]),_:1})])):N("",!0)],10,Qt),p(v,{disabled:i(k),onClick:F,icon:i(De)},{default:a(()=>[m("保存")]),_:1},8,["disabled","icon"])])]),default:a(()=>[g("div",Yt,[(l(!0),U(L,null,J(i(c),(I,Z)=>(l(),U("div",{key:I.name,class:"hotkeys-item flex-space-between"},[g("span",Zt,[p(f,null,{default:a(()=>[m(G(I.name),1)]),_:2},1024)]),g("div",eo,[(l(!0),U(L,null,J(I.hotKeys,(ee,Ce)=>(l(),U("div",{key:ee},[g("kbd",null,G(ee),1),Ce+1[m("+")]),_:1})])):N("",!0)]))),128)),I.hotKeys.length==0?(l(),U("span",oo,"未设置")):N("",!0)]),p(v,{disabled:i(k),text:"",icon:i(Je),onClick:ee=>V(Z)},{default:a(()=>[m("编辑")]),_:2},1032,["disabled","icon","onClick"])]))),128))])]),_:1},8,["modelValue"])],64)}}},ro=O(no,[["__scopeId","data-v-dc7cd0f9"]]);const so={__name:"SourceTabForm",props:["config"],setup(e){const t=j(),{currentSource:o}=Q(t);return(s,n)=>{const r=X,u=Ke,w=je,S=He,y=Fe,x=qe,c=ze,_=ge,k=me;return l(),b(k,{id:"source-edit"},{default:a(()=>[(l(!0),U(L,null,J(Object.values(e.config),({name:B,children:D})=>(l(),b(_,{label:B,key:B},{default:a(()=>[p(c,{"label-position":"right","label-width":"5em"},{default:a(()=>[(l(!0),U(L,null,J(D,({type:V,title:F,namespace:H,id:$,array:h,hint:d,required:v})=>(l(),b(x,{label:F,key:F,required:v},{default:a(()=>[V=="String"&&typeof H>"u"?(l(),b(r,{key:0,type:"textarea",modelValue:i(o)[$],"onUpdate:modelValue":f=>i(o)[$]=f,placeholder:d,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):N("",!0),V=="String"&&typeof H<"u"?(l(),b(r,{key:1,type:"textarea",modelValue:i(o)[H][$],"onUpdate:modelValue":f=>i(o)[H][$]=f,placeholder:d,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):N("",!0),V=="Boolean"?(l(),b(u,{key:2,modelValue:i(o)[$],"onUpdate:modelValue":f=>i(o)[$]=f},null,8,["modelValue","onUpdate:modelValue"])):N("",!0),V=="Number"?(l(),b(w,{key:3,modelValue:i(o)[$],"onUpdate:modelValue":f=>i(o)[$]=f,min:0},null,8,["modelValue","onUpdate:modelValue"])):N("",!0),V=="Array"?(l(),b(y,{key:4,modelValue:i(o)[$],"onUpdate:modelValue":f=>i(o)[$]=f},{default:a(()=>[(l(!0),U(L,null,J(h,(f,Y)=>(l(),b(S,{value:Y,key:f,label:f},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):N("",!0)]),_:2},1032,["label","required"]))),128))]),_:2},1024)]),_:2},1032,["label"]))),128))]),_:1})}}},io=O(so,[["__scopeId","data-v-2cfb5302"]]),lo={base:{name:"基础",children:[{title:"源类型",id:"bookSourceType",type:"Array",array:["文本","音频","图片","文件"],required:!0},{title:"源域名",id:"bookSourceUrl",type:"String",hint:"通常填写网站主页,例: https://www.qidian.com",required:!0},{title:"源名称",id:"bookSourceName",type:"String",hint:"会显示在源列表",required:!0},{title:"源分组",id:"bookSourceGroup",type:"String",hint:"描述源的特征信息"},{title:"源注释",id:"bookSourceComment",type:"String",hint:"描述源作者和状态"},{title:"书源变量",id:"variableComment",type:"String",hint:"书源变量说明"},{title:"登录地址",id:"loginUrl",type:"String",hint:"填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",id:"loginUi",type:"String",hint:"自定义登录界面"},{title:"登录检测",id:"loginCheckJs",type:"String",hint:"登录检测js"},{title:"封面解密",id:"coverDecodeJs",type:"String",hint:"封面解密js"},{title:"并发率",id:"concurrentRate",type:"String",hint:"并发率"},{title:"js库",id:"jsLib",type:"String",hint:"js库"},{title:"请求头",id:"header",type:"String",hint:"客户端标识"},{title:"链接验证",id:"bookUrlPattern",type:"String",hint:"当详情页URL与源URL的域名不一致时有效,用于添加网址"}]},search:{name:"搜索",children:[{title:"搜索地址",id:"searchUrl",type:"String",hint:"[域名可省略]/search.php@kw={{key}}"},{title:"校验文字",namespace:"ruleSearch",id:"checkKeyWord",type:"String",hint:"校验关键字"},{title:"列表规则",namespace:"ruleSearch",id:"bookList",type:"String",hint:"选择书籍节点 (规则结果为List)"},{title:"书名规则",namespace:"ruleSearch",id:"name",type:"String",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",namespace:"ruleSearch",id:"author",type:"String",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",namespace:"ruleSearch",id:"kind",type:"String",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",namespace:"ruleSearch",id:"wordCount",type:"String",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",namespace:"ruleSearch",id:"lastChapter",type:"String",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",namespace:"ruleSearch",id:"intro",type:"String",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",namespace:"ruleSearch",id:"coverUrl",type:"String",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"详情地址",namespace:"ruleSearch",id:"bookUrl",type:"String",hint:"选择书籍详情页网址 (规则结果为String类型的url)"}]},find:{name:"发现",children:[{title:"发现地址",id:"exploreUrl",type:"String",hint:`内容能显示在发现菜单 每行一条发现分类(网址域名可省略),例: 名称1::网址(Url)1 名称2::网址(Url)2 ...`},{title:"发现筛选",id:"exploreScreen",type:"String",hint:"发现筛选规则"},{title:"列表规则",namespace:"ruleExplore",id:"bookList",type:"String",hint:"选择书籍节点 (规则结果为List)"},{title:"书名规则",namespace:"ruleExplore",id:"name",type:"String",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",namespace:"ruleExplore",id:"author",type:"String",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",namespace:"ruleExplore",id:"kind",type:"String",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",namespace:"ruleExplore",id:"wordCount",type:"String",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",namespace:"ruleExplore",id:"lastChapter",type:"String",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",namespace:"ruleExplore",id:"intro",type:"String",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",namespace:"ruleExplore",id:"coverUrl",type:"String",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"详情地址",namespace:"ruleExplore",id:"bookUrl",type:"String",hint:"选择书籍详情页网址 (规则结果为String类型的url)"}]},detail:{name:"详情",children:[{title:"预处理",namespace:"ruleBookInfo",id:"init",type:"String",hint:"用于加速详情信息检索,只支持AllInOne规则"},{title:"书名规则",namespace:"ruleBookInfo",id:"name",type:"String",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",namespace:"ruleBookInfo",id:"author",type:"String",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",namespace:"ruleBookInfo",id:"kind",type:"String",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",namespace:"ruleBookInfo",id:"wordCount",type:"String",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",namespace:"ruleBookInfo",id:"lastChapter",type:"String",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",namespace:"ruleBookInfo",id:"intro",type:"String",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",namespace:"ruleBookInfo",id:"coverUrl",type:"String",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"目录地址",namespace:"ruleBookInfo",id:"tocUrl",type:"String",hint:"选择书籍详情页网址 (规则结果为String类型的url, 与详情页相同时可省略)"},{title:"下载URL",namespace:"ruleBookInfo",id:"downloadUrls",type:"String",hint:"文件类书源下载地址 (规则结果为String类型的url, 多个链接返回数组)"},{title:"修改书籍",namespace:"ruleBookInfo",id:"canReName",type:"String",hint:"允许修改书名作者(规则结果为String类型, 默认不允许)"}]},directory:{name:"目录",children:[{title:"预处理",namespace:"ruleToc",id:"preUpdateJs",type:"String",hint:"更新目录前调用JS 动态更新目录链接"},{title:"列表规则",namespace:"ruleToc",id:"chapterList",type:"String",hint:"选择目录列表的章节节点 (规则结果为List)"},{title:"章节名称",namespace:"ruleToc",id:"chapterName",type:"String",hint:"选择章节名称 (规则结果为String)"},{title:"章节地址",namespace:"ruleToc",id:"chapterUrl",type:"String",hint:"选择章节链接 (规则结果为String类型的Url)"},{title:"卷名标识",namespace:"ruleToc",id:"isVolume",type:"String",hint:"章节名称是否是卷名 (规则结果为Bool)"},{title:"收费标识",namespace:"ruleToc",id:"isVip",type:"String",hint:"章节是否为VIP章节 (规则结果为Bool)"},{title:"购买标识",namespace:"ruleToc",id:"isPay",type:"String",hint:"章节是否为已购买 (规则结果为Bool)"},{title:"章节信息",namespace:"ruleToc",id:"updateTime",type:"String",hint:"选择章节信息 (规则结果为String)"},{title:"翻页规则",namespace:"ruleToc",id:"nextTocUrl",type:"String",hint:"选择目录下一页链接 (规则结果为List或String)"}]},content:{name:"正文",children:[{title:"脚本注入",namespace:"ruleContent",id:"webJs",type:"String",hint:"注入javascript,用于模拟鼠标点击等,必须有返回值,一般为String类型"},{title:"正文规则",namespace:"ruleContent",id:"content",type:"String",hint:"选择正文内容 (规则结果为String)"},{title:"翻页规则",namespace:"ruleContent",id:"nextContentUrl",type:"String",hint:"选择下一分页(不是下一章)链接 (规则结果为String类型的Url)"},{title:"资源正则",namespace:"ruleContent",id:"sourceRegex",type:"String",hint:"匹配资源的url特征,用于嗅探"},{title:"替换规则",namespace:"ruleContent",id:"replaceRegex",type:"String",hint:"多页内容合并后替换,用于正文净化"},{title:"图片样式",namespace:"ruleContent",id:"imageStyle",type:"String",hint:"FULL:铺满 不填:默认样式"},{title:"购买操作",namespace:"ruleContent",id:"payAction",type:"String",hint:"填写JavaScript 返回购买链接或者调用购买接口"},{title:"图片解密",namespace:"ruleContent",id:"imageDecode",type:"String",hint:"填写JavaScript 返回解密图片的bytes "}]},other:{name:"其他",children:[{title:"启用搜索",id:"enabled",type:"Boolean"},{title:"启用发现",id:"enabledExplore",type:"Boolean"},{title:"Cookie",id:"enabledCookieJar",type:"Boolean"},{title:"搜索权重",id:"weight",type:"Number"},{title:"排序编号",id:"customOrder",type:"Number"}]}},co={base:{name:"基础",children:[{title:"源域名",id:"sourceUrl",type:"String",hint:"通常填写网站主页,例: https://www.qidian.com",required:!0},{title:"图标",id:"sourceIcon",type:"String",hint:"填写图片网络链接"},{title:"源名称",id:"sourceName",type:"String",hint:"会显示在源列表",required:!0},{title:"源分组",id:"sourceGroup",type:"String",hint:"描述源的特征信息"},{title:"源注释",id:"sourceComment",type:"String",hint:"描述源作者和状态"},{title:"分类地址",id:"sortUrl",type:"String",hint:`名称1::链接1 -名称2::链接2`},{title:"登录地址",id:"loginUrl",type:"String",hint:"填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",id:"loginUi",type:"String",hint:"自定义登录界面"},{title:"登录检测",id:"loginCheckJs",type:"String",hint:"登录检测js"},{title:"封面解密",id:"coverDecodeJs",type:"String",hint:"封面解密js"},{title:"请求头",id:"header",type:"String",hint:"客户端标识"},{title:"变量说明",id:"variableComment",type:"String",hint:"源变量说明"},{title:"并发率",id:"concurrentRate",type:"String",hint:"并发率"}]},list:{name:"列表",children:[{title:"列表规则",id:"ruleArticles",type:"String",hint:"规则结果为List"},{title:"翻页规则",id:"ruleNextPage",type:"String",hint:"下一页链接 规则结果为List或String"},{title:"标题规则",id:"ruleTitle",type:"String",hint:"文章标题 规则结果为String"},{title:"时间规则",id:"rulePubDate",type:"String",hint:"文章发布时间 规则结果为String"},{title:"描述规则",id:"ruleDescription",type:"String",hint:"文章简要描述 规则结果为String"},{title:"图片规则",id:"ruleImage",type:"String",hint:"文章图片链接 规则结果为String"},{title:"链接规则",id:"ruleLink",type:"String",hint:"文章链接 规则结果为String"}]},webView:{name:"WebView",children:[{title:"内容规则",id:"ruleContent",type:"String",hint:"文章正文"},{title:"样式规则",id:"style",type:"String",hint:"文章正文样式 填写css"},{title:"注入规则",id:"injectJs",type:"String",hint:"注入网页的JavaScript"},{title:"黑名单",id:"contentBlacklist",type:"String",hint:"webView链接加载黑名单,英文逗号隔开"},{title:"白名单",id:"contentWhitelist",type:"String",hint:"webView链接加载白名单,英文逗号隔开"}]},other:{name:"其他",children:[{title:"列表样式",id:"articleStyle",type:"Array",array:["默认","大图","双列"]},{title:"加载地址",id:"loadWithBaseUrl",type:"Boolean"},{title:"启用JS",id:"enableJs",type:"Boolean"},{title:"启用",id:"enabled",type:"Boolean"},{title:"Cookie",id:"enabledCookieJar",type:"Boolean"},{title:"单URL",id:"singleUrl",type:"Boolean"},{title:"排序编号",id:"customOrder",type:"Number"}]}};const ao={class:"editor"},uo={__name:"SourceEditor",setup(e){const t=R({});return/bookSource/i.test(location.href)?(t.value=lo,document.title="书源管理"):(t.value=co,document.title="订阅源管理"),(o,s)=>{const n=io,r=ro,a=Mt;return l(),U("div",ao,[p(n,{class:"left",config:i(t)},null,8,["config"]),p(r),p(a,{class:"right"})])}}},ce=O(uo,[["__scopeId","data-v-e99e7704"]]),ke=[{path:"/bookSource",name:"book-home",component:ce},{path:"/rssSource",name:"rss-home",component:ce}];ne({history:re(),routes:ke});const ve=ne({history:re(),routes:Se.concat(ke)});ve.afterEach(e=>{e.name=="shelf"&&(document.title="书架")});Me(Ye).use(Ht).use(ve).mount("#app");oe(()=>import("./config-97894739.js"),["./config-97894739.js","./vendor-8be1f5fb.js","./vendor-6f0d1692.css","./config-811f2a0b.css"],import.meta.url);export{H as A,O as _,ho as u}; +名称2::链接2`},{title:"登录地址",id:"loginUrl",type:"String",hint:"填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",id:"loginUi",type:"String",hint:"自定义登录界面"},{title:"登录检测",id:"loginCheckJs",type:"String",hint:"登录检测js"},{title:"封面解密",id:"coverDecodeJs",type:"String",hint:"封面解密js"},{title:"请求头",id:"header",type:"String",hint:"客户端标识"},{title:"变量说明",id:"variableComment",type:"String",hint:"源变量说明"},{title:"并发率",id:"concurrentRate",type:"String",hint:"并发率"}]},list:{name:"列表",children:[{title:"列表规则",id:"ruleArticles",type:"String",hint:"规则结果为List"},{title:"翻页规则",id:"ruleNextPage",type:"String",hint:"下一页链接 规则结果为List或String"},{title:"标题规则",id:"ruleTitle",type:"String",hint:"文章标题 规则结果为String"},{title:"时间规则",id:"rulePubDate",type:"String",hint:"文章发布时间 规则结果为String"},{title:"描述规则",id:"ruleDescription",type:"String",hint:"文章简要描述 规则结果为String"},{title:"图片规则",id:"ruleImage",type:"String",hint:"文章图片链接 规则结果为String"},{title:"链接规则",id:"ruleLink",type:"String",hint:"文章链接 规则结果为String"}]},webView:{name:"WebView",children:[{title:"内容规则",id:"ruleContent",type:"String",hint:"文章正文"},{title:"样式规则",id:"style",type:"String",hint:"文章正文样式 填写css"},{title:"注入规则",id:"injectJs",type:"String",hint:"注入网页的JavaScript"},{title:"黑名单",id:"contentBlacklist",type:"String",hint:"webView链接加载黑名单,英文逗号隔开"},{title:"白名单",id:"contentWhitelist",type:"String",hint:"webView链接加载白名单,英文逗号隔开"}]},other:{name:"其他",children:[{title:"列表样式",id:"articleStyle",type:"Array",array:["默认","大图","双列"]},{title:"加载地址",id:"loadWithBaseUrl",type:"Boolean"},{title:"启用JS",id:"enableJs",type:"Boolean"},{title:"启用",id:"enabled",type:"Boolean"},{title:"Cookie",id:"enabledCookieJar",type:"Boolean"},{title:"单URL",id:"singleUrl",type:"Boolean"},{title:"排序编号",id:"customOrder",type:"Number"}]}};const ao={class:"editor"},uo={__name:"SourceEditor",setup(e){const t=R({});return/bookSource/i.test(location.href)?(t.value=lo,document.title="书源管理"):(t.value=co,document.title="订阅源管理"),(o,s)=>{const n=io,r=ro,u=Mt;return l(),U("div",ao,[p(n,{class:"left",config:i(t)},null,8,["config"]),p(r),p(u,{class:"right"})])}}},ce=O(uo,[["__scopeId","data-v-e99e7704"]]),ke=[{path:"/bookSource",name:"book-home",component:ce},{path:"/rssSource",name:"rss-home",component:ce}];ne({history:re(),routes:ke});const ve=ne({history:re(),routes:Se.concat(ke)});ve.afterEach(e=>{e.name=="shelf"&&(document.title="书架")});Me(Ye).use(Ht).use(ve).mount("#app");oe(()=>import("./config-752e04be.js"),["./config-752e04be.js","./vendor-bf77f5c0.js","./vendor-6f0d1692.css","./config-811f2a0b.css"],import.meta.url);export{A,O as _,ho as u}; diff --git a/app/src/main/assets/web/vue/assets/vendor-8be1f5fb.js b/app/src/main/assets/web/vue/assets/vendor-bf77f5c0.js similarity index 92% rename from app/src/main/assets/web/vue/assets/vendor-8be1f5fb.js rename to app/src/main/assets/web/vue/assets/vendor-bf77f5c0.js index 0bfd8b02e..6ae2e0549 100644 --- a/app/src/main/assets/web/vue/assets/vendor-8be1f5fb.js +++ b/app/src/main/assets/web/vue/assets/vendor-bf77f5c0.js @@ -21,11 +21,11 @@ function Wl(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function hd(e,t=1,n){var r;en||(en=document.createElement("textarea"),document.body.appendChild(en));const{paddingSize:o,borderSize:s,boxSizing:i,contextStyle:a}=y3(e);en.setAttribute("style",`${a};${m3}`),en.value=e.value||e.placeholder||"";let l=en.scrollHeight;const u={};i==="border-box"?l=l+s:i==="content-box"&&(l=l-o),en.value="";const c=en.scrollHeight-o;if(Ve(t)){let f=c*t;i==="border-box"&&(f=f+o+s),l=Math.max(f,l),u.minHeight=`${f}px`}if(Ve(n)){let f=c*n;i==="border-box"&&(f=f+o+s),l=Math.min(f,l)}return u.height=`${l}px`,(r=en.parentNode)==null||r.removeChild(en),en=void 0,u}const b3=Me({id:{type:String,default:void 0},size:ko,disabled:Boolean,modelValue:{type:Ce([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ce([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:Jt},prefixIcon:{type:Jt},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:Ce([Object,Array,String]),default:()=>ia({})}}),w3={[Ge]: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},_3=["role"],S3=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],E3=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],C3=re({name:"ElInput",inheritAttrs:!1}),O3=re({...C3,props:b3,emits:w3,setup(e,{expose:t,emit:n}){const r=e,o=Py(),s=Ur(),i=O(()=>{const N={};return r.containerRole==="combobox"&&(N["aria-haspopup"]=o["aria-haspopup"],N["aria-owns"]=o["aria-owns"],N["aria-expanded"]=o["aria-expanded"]),N}),a=O(()=>[r.type==="textarea"?y.b():p.b(),p.m(v.value),p.is("disabled",m.value),p.is("exceed",Te.value),{[p.b("group")]:s.prepend||s.append,[p.bm("group","append")]:s.append,[p.bm("group","prepend")]:s.prepend,[p.m("prefix")]:s.prefix||r.prefixIcon,[p.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[p.bm("suffix","password-clear")]:k.value&&le.value},o.class]),l=O(()=>[p.e("wrapper"),p.is("focus",_.value)]),u=qO({excludeKeys:O(()=>Object.keys(i.value))}),{form:c,formItem:f}=wr(),{inputId:d}=fa(r,{formItemContext:f}),v=cn(),m=Mo(),p=$e("input"),y=$e("textarea"),g=Fn(),w=Fn(),_=V(!1),T=V(!1),C=V(!1),P=V(!1),E=V(),x=Fn(r.inputStyle),F=O(()=>g.value||w.value),R=O(()=>{var N;return(N=c==null?void 0:c.statusIcon)!=null?N:!1}),H=O(()=>(f==null?void 0:f.validateState)||""),B=O(()=>H.value&&LO[H.value]),A=O(()=>P.value?xO:zC),$=O(()=>[o.style,r.inputStyle]),K=O(()=>[r.inputStyle,x.value,{resize:r.resize}]),U=O(()=>zn(r.modelValue)?"":String(r.modelValue)),k=O(()=>r.clearable&&!m.value&&!r.readonly&&!!U.value&&(_.value||T.value)),le=O(()=>r.showPassword&&!m.value&&!r.readonly&&!!U.value&&(!!U.value||_.value)),Ee=O(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!m.value&&!r.readonly&&!r.showPassword),Fe=O(()=>U.value.length),Te=O(()=>!!Ee.value&&Fe.value>Number(u.value.maxlength)),Be=O(()=>!!s.suffix||!!r.suffixIcon||k.value||r.showPassword||Ee.value||!!H.value&&R.value),[Ye,je]=h4(g);yr(w,N=>{if(L(),!Ee.value||r.resize!=="both")return;const se=N[0],{width:be}=se.contentRect;E.value={right:`calc(100% - ${be+15+6}px)`}});const D=()=>{const{type:N,autosize:se}=r;if(!(!ot||N!=="textarea"||!w.value))if(se){const be=Ne(se)?se.minRows:void 0,ke=Ne(se)?se.maxRows:void 0,Ie=hd(w.value,be,ke);x.value={overflowY:"hidden",...Ie},Re(()=>{w.value.offsetHeight,x.value=Ie})}else x.value={minHeight:hd(w.value).minHeight}},L=(N=>{let se=!1;return()=>{var be;if(se||!r.autosize)return;((be=w.value)==null?void 0:be.offsetParent)===null||(N(),se=!0)}})(D),W=()=>{const N=F.value;!N||N.value===U.value||(N.value=U.value)},de=async N=>{Ye();let{value:se}=N.target;if(r.formatter&&(se=r.parser?r.parser(se):se,se=r.formatter(se)),!C.value){if(se===U.value){W();return}n(Ge,se),n("input",se),await Re(),W(),je()}},we=N=>{n("change",N.target.value)},ve=N=>{n("compositionstart",N),C.value=!0},b=N=>{var se;n("compositionupdate",N);const be=(se=N.target)==null?void 0:se.value,ke=be[be.length-1]||"";C.value=!rv(ke)},S=N=>{n("compositionend",N),C.value&&(C.value=!1,de(N))},z=()=>{P.value=!P.value,j()},j=async()=>{var N;await Re(),(N=F.value)==null||N.focus()},G=()=>{var N;return(N=F.value)==null?void 0:N.blur()},Q=N=>{_.value=!0,n("focus",N)},oe=N=>{var se;_.value=!1,n("blur",N),r.validateEvent&&((se=f==null?void 0:f.validate)==null||se.call(f,"blur").catch(be=>void 0))},X=N=>{T.value=!1,n("mouseleave",N)},te=N=>{T.value=!0,n("mouseenter",N)},J=N=>{n("keydown",N)},me=()=>{var N;(N=F.value)==null||N.select()},ae=()=>{n(Ge,""),n("change",""),n("clear"),n("input","")};return ue(()=>r.modelValue,()=>{var N;Re(()=>D()),r.validateEvent&&((N=f==null?void 0:f.validate)==null||N.call(f,"change").catch(se=>void 0))}),ue(U,()=>W()),ue(()=>r.type,async()=>{await Re(),W(),D()}),Ue(()=>{!r.formatter&&r.parser,W(),Re(D)}),t({input:g,textarea:w,ref:F,textareaStyle:K,autosize:jt(r,"autosize"),focus:j,blur:G,select:me,clear:ae,resizeTextarea:D}),(N,se)=>ct((I(),ne("div",wn(h(i),{class:h(a),style:h($),role:N.containerRole,onMouseenter:te,onMouseleave:X}),[ce(" input "),N.type!=="textarea"?(I(),ne(We,{key:0},[ce(" prepend slot "),N.$slots.prepend?(I(),ne("div",{key:0,class:Y(h(p).be("group","prepend"))},[_e(N.$slots,"prepend")],2)):ce("v-if",!0),fe("div",{class:Y(h(l))},[ce(" prefix slot "),N.$slots.prefix||N.prefixIcon?(I(),ne("span",{key:0,class:Y(h(p).e("prefix"))},[fe("span",{class:Y(h(p).e("prefix-inner")),onClick:j},[_e(N.$slots,"prefix"),N.prefixIcon?(I(),he(h(rt),{key:0,class:Y(h(p).e("icon"))},{default:pe(()=>[(I(),he(dt(N.prefixIcon)))]),_:1},8,["class"])):ce("v-if",!0)],2)],2)):ce("v-if",!0),fe("input",wn({id:h(d),ref_key:"input",ref:g,class:h(p).e("inner")},h(u),{type:N.showPassword?P.value?"text":"password":N.type,disabled:h(m),formatter:N.formatter,parser:N.parser,readonly:N.readonly,autocomplete:N.autocomplete,tabindex:N.tabindex,"aria-label":N.label,placeholder:N.placeholder,style:N.inputStyle,form:r.form,onCompositionstart:ve,onCompositionupdate:b,onCompositionend:S,onInput:de,onFocus:Q,onBlur:oe,onChange:we,onKeydown:J}),null,16,S3),ce(" suffix slot "),h(Be)?(I(),ne("span",{key:1,class:Y(h(p).e("suffix"))},[fe("span",{class:Y(h(p).e("suffix-inner")),onClick:j},[!h(k)||!h(le)||!h(Ee)?(I(),ne(We,{key:0},[_e(N.$slots,"suffix"),N.suffixIcon?(I(),he(h(rt),{key:0,class:Y(h(p).e("icon"))},{default:pe(()=>[(I(),he(dt(N.suffixIcon)))]),_:1},8,["class"])):ce("v-if",!0)],64)):ce("v-if",!0),h(k)?(I(),he(h(rt),{key:1,class:Y([h(p).e("icon"),h(p).e("clear")]),onMousedown:wt(h(pt),["prevent"]),onClick:ae},{default:pe(()=>[ie(h(Ru))]),_:1},8,["class","onMousedown"])):ce("v-if",!0),h(le)?(I(),he(h(rt),{key:2,class:Y([h(p).e("icon"),h(p).e("password")]),onClick:z},{default:pe(()=>[(I(),he(dt(h(A))))]),_:1},8,["class"])):ce("v-if",!0),h(Ee)?(I(),ne("span",{key:3,class:Y(h(p).e("count"))},[fe("span",{class:Y(h(p).e("count-inner"))},tt(h(Fe))+" / "+tt(h(u).maxlength),3)],2)):ce("v-if",!0),h(H)&&h(B)&&h(R)?(I(),he(h(rt),{key:4,class:Y([h(p).e("icon"),h(p).e("validateIcon"),h(p).is("loading",h(H)==="validating")])},{default:pe(()=>[(I(),he(dt(h(B))))]),_:1},8,["class"])):ce("v-if",!0)],2)],2)):ce("v-if",!0)],2),ce(" append slot "),N.$slots.append?(I(),ne("div",{key:1,class:Y(h(p).be("group","append"))},[_e(N.$slots,"append")],2)):ce("v-if",!0)],64)):(I(),ne(We,{key:1},[ce(" textarea "),fe("textarea",wn({id:h(d),ref_key:"textarea",ref:w,class:h(y).e("inner")},h(u),{tabindex:N.tabindex,disabled:h(m),readonly:N.readonly,autocomplete:N.autocomplete,style:h(K),"aria-label":N.label,placeholder:N.placeholder,form:r.form,onCompositionstart:ve,onCompositionupdate:b,onCompositionend:S,onInput:de,onFocus:Q,onBlur:oe,onChange:we,onKeydown:J}),null,16,E3),h(Ee)?(I(),ne("span",{key:0,style:Xe(E.value),class:Y(h(p).e("count"))},tt(h(Fe))+" / "+tt(h(u).maxlength),7)):ce("v-if",!0)],64))],16,_3)),[[fn,N.type!=="hidden"]])}});var T3=Le(O3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Iv=yt(T3),io=4,x3={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},A3=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Rv=Symbol("scrollbarContextKey"),P3=Me({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),$3="Thumb",I3=re({__name:"thumb",props:P3,setup(e){const t=e,n=Oe(Rv),r=$e("scrollbar");n||Yr($3,"can not inject scrollbar context");const o=V(),s=V(),i=V({}),a=V(!1);let l=!1,u=!1,c=ot?document.onselectstart:null;const f=O(()=>x3[t.vertical?"vertical":"horizontal"]),d=O(()=>A3({size:t.size,move:t.move,bar:f.value})),v=O(()=>o.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/s.value[f.value.offset]),m=P=>{var E;if(P.stopPropagation(),P.ctrlKey||[1,2].includes(P.button))return;(E=window.getSelection())==null||E.removeAllRanges(),y(P);const x=P.currentTarget;x&&(i.value[f.value.axis]=x[f.value.offset]-(P[f.value.client]-x.getBoundingClientRect()[f.value.direction]))},p=P=>{if(!s.value||!o.value||!n.wrapElement)return;const E=Math.abs(P.target.getBoundingClientRect()[f.value.direction]-P[f.value.client]),x=s.value[f.value.offset]/2,F=(E-x)*100*v.value/o.value[f.value.offset];n.wrapElement[f.value.scroll]=F*n.wrapElement[f.value.scrollSize]/100},y=P=>{P.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",w),c=document.onselectstart,document.onselectstart=()=>!1},g=P=>{if(!o.value||!s.value||l===!1)return;const E=i.value[f.value.axis];if(!E)return;const x=(o.value.getBoundingClientRect()[f.value.direction]-P[f.value.client])*-1,F=s.value[f.value.offset]-E,R=(x-F)*100*v.value/o.value[f.value.offset];n.wrapElement[f.value.scroll]=R*n.wrapElement[f.value.scrollSize]/100},w=()=>{l=!1,i.value[f.value.axis]=0,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",w),C(),u&&(a.value=!1)},_=()=>{u=!1,a.value=!!t.size},T=()=>{u=!0,a.value=l};At(()=>{C(),document.removeEventListener("mouseup",w)});const C=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return _n(jt(n,"scrollbarElement"),"mousemove",_),_n(jt(n,"scrollbarElement"),"mouseleave",T),(P,E)=>(I(),he(an,{name:h(r).b("fade"),persisted:""},{default:pe(()=>[ct(fe("div",{ref_key:"instance",ref:o,class:Y([h(r).e("bar"),h(r).is(h(f).key)]),onMousedown:p},[fe("div",{ref_key:"thumb",ref:s,class:Y(h(r).e("thumb")),style:Xe(h(d)),onMousedown:m},null,38)],34),[[fn,P.always||a.value]])]),_:1},8,["name"]))}});var vd=Le(I3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const R3=Me({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),k3=re({__name:"bar",props:R3,setup(e,{expose:t}){const n=e,r=V(0),o=V(0);return t({handleScroll:i=>{if(i){const a=i.offsetHeight-io,l=i.offsetWidth-io;o.value=i.scrollTop*100/a*n.ratioY,r.value=i.scrollLeft*100/l*n.ratioX}}}),(i,a)=>(I(),ne(We,null,[ie(vd,{move:r.value,ratio:i.ratioX,size:i.width,always:i.always},null,8,["move","ratio","size","always"]),ie(vd,{move:o.value,ratio:i.ratioY,size:i.height,vertical:"",always:i.always},null,8,["move","ratio","size","always"])],64))}});var N3=Le(k3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const M3=Me({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Ce([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),L3={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ve)},F3="ElScrollbar",B3=re({name:F3}),z3=re({...B3,props:M3,emits:L3,setup(e,{expose:t,emit:n}){const r=e,o=$e("scrollbar");let s,i;const a=V(),l=V(),u=V(),c=V("0"),f=V("0"),d=V(),v=V(1),m=V(1),p=O(()=>{const E={};return r.height&&(E.height=On(r.height)),r.maxHeight&&(E.maxHeight=On(r.maxHeight)),[r.wrapStyle,E]}),y=O(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),g=O(()=>[o.e("view"),r.viewClass]),w=()=>{var E;l.value&&((E=d.value)==null||E.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(E,x){Ne(E)?l.value.scrollTo(E):Ve(E)&&Ve(x)&&l.value.scrollTo(E,x)}const T=E=>{Ve(E)&&(l.value.scrollTop=E)},C=E=>{Ve(E)&&(l.value.scrollLeft=E)},P=()=>{if(!l.value)return;const E=l.value.offsetHeight-io,x=l.value.offsetWidth-io,F=E**2/l.value.scrollHeight,R=x**2/l.value.scrollWidth,H=Math.max(F,r.minSize),B=Math.max(R,r.minSize);v.value=F/(E-F)/(H/(E-H)),m.value=R/(x-R)/(B/(x-B)),f.value=H+ior.noresize,E=>{E?(s==null||s(),i==null||i()):({stop:s}=yr(u,P),i=_n("resize",P))},{immediate:!0}),ue(()=>[r.maxHeight,r.height],()=>{r.native||Re(()=>{var E;P(),l.value&&((E=d.value)==null||E.handleScroll(l.value))})}),at(Rv,Et({scrollbarElement:a,wrapElement:l})),Ue(()=>{r.native||Re(()=>{P()})}),Kr(()=>P()),t({wrapRef:l,update:P,scrollTo:_,setScrollTop:T,setScrollLeft:C,handleScroll:w}),(E,x)=>(I(),ne("div",{ref_key:"scrollbarRef",ref:a,class:Y(h(o).b())},[fe("div",{ref_key:"wrapRef",ref:l,class:Y(h(y)),style:Xe(h(p)),onScroll:w},[(I(),he(dt(E.tag),{ref_key:"resizeRef",ref:u,class:Y(h(g)),style:Xe(E.viewStyle)},{default:pe(()=>[_e(E.$slots,"default")]),_:3},8,["class","style"]))],38),E.native?ce("v-if",!0):(I(),he(N3,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:E.always,"ratio-x":m.value,"ratio-y":v.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var D3=Le(z3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const j3=yt(D3),Vu=Symbol("popper"),kv=Symbol("popperContent"),H3=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Nv=Me({role:{type:String,values:H3,default:"tooltip"}}),V3=re({name:"ElPopper",inheritAttrs:!1}),K3=re({...V3,props:Nv,setup(e,{expose:t}){const n=e,r=V(),o=V(),s=V(),i=V(),a=O(()=>n.role),l={triggerRef:r,popperInstanceRef:o,contentRef:s,referenceRef:i,role:a};return t(l),at(Vu,l),(u,c)=>_e(u.$slots,"default")}});var q3=Le(K3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Mv=Me({arrowOffset:{type:Number,default:5}}),U3=re({name:"ElPopperArrow",inheritAttrs:!1}),W3=re({...U3,props:Mv,setup(e,{expose:t}){const n=e,r=$e("popper"),{arrowOffset:o,arrowRef:s,arrowStyle:i}=Oe(kv,void 0);return ue(()=>n.arrowOffset,a=>{o.value=a}),At(()=>{s.value=void 0}),t({arrowRef:s}),(a,l)=>(I(),ne("span",{ref_key:"arrowRef",ref:s,class:Y(h(r).e("arrow")),style:Xe(h(i)),"data-popper-arrow":""},null,6))}});var G3=Le(W3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const Y3="ElOnlyChild",J3=re({name:Y3,setup(e,{slots:t,attrs:n}){var r;const o=Oe(Sv),s=p4((r=o==null?void 0:o.setForwardRef)!=null?r:pt);return()=>{var i;const a=(i=t.default)==null?void 0:i.call(t,n);if(!a||a.length>1)return null;const l=Lv(a);return l?ct(Vn(l,n),[[s]]):null}}});function Lv(e){if(!e)return null;const t=e;for(const n of t){if(Ne(n))switch(n.type){case Vt:continue;case Po:case"svg":return md(n);case We:return Lv(n.children);default:return n}return md(n)}return null}function md(e){const t=$e("only-child");return ie("span",{class:t.e("content")},[e])}const Fv=Me({virtualRef:{type:Ce(Object)},virtualTriggering:Boolean,onMouseenter:{type:Ce(Function)},onMouseleave:{type:Ce(Function)},onClick:{type:Ce(Function)},onKeydown:{type:Ce(Function)},onFocus:{type:Ce(Function)},onBlur:{type:Ce(Function)},onContextmenu:{type:Ce(Function)},id:String,open:Boolean}),X3=re({name:"ElPopperTrigger",inheritAttrs:!1}),Q3=re({...X3,props:Fv,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=Oe(Vu,void 0);d4(o);const s=O(()=>a.value?n.id:void 0),i=O(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),a=O(()=>{if(r&&r.value!=="tooltip")return r.value}),l=O(()=>a.value?`${n.open}`:void 0);let u;return Ue(()=>{ue(()=>n.virtualRef,c=>{c&&(o.value=lr(c))},{immediate:!0}),ue(o,(c,f)=>{u==null||u(),u=void 0,yo(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var v;const m=n[d];m&&(c.addEventListener(d.slice(2).toLowerCase(),m),(v=f==null?void 0:f.removeEventListener)==null||v.call(f,d.slice(2).toLowerCase(),m))}),u=ue([s,i,a,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((v,m)=>{zn(d[m])?c.removeAttribute(v):c.setAttribute(v,d[m])})},{immediate:!0})),yo(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),At(()=>{u==null||u(),u=void 0}),t({triggerRef:o}),(c,f)=>c.virtualTriggering?ce("v-if",!0):(I(),he(h(J3),wn({key:0},c.$attrs,{"aria-controls":h(s),"aria-describedby":h(i),"aria-expanded":h(l),"aria-haspopup":h(a)}),{default:pe(()=>[_e(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Z3=Le(Q3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const za="focus-trap.focus-after-trapped",Da="focus-trap.focus-after-released",ex="focus-trap.focusout-prevented",gd={cancelable:!0,bubbles:!1},tx={cancelable:!0,bubbles:!1},yd="focusAfterTrapped",bd="focusAfterReleased",Bv=Symbol("elFocusTrap"),Ku=V(),da=V(0),qu=V(0);let Js=0;const zv=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},wd=(e,t)=>{for(const n of e)if(!nx(n,t))return n},nx=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},rx=e=>{const t=zv(e),n=wd(t,e),r=wd(t.reverse(),e);return[n,r]},ox=e=>e instanceof HTMLInputElement&&"select"in e,nr=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),qu.value=window.performance.now(),e!==n&&ox(e)&&t&&e.select()}};function _d(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const sx=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=_d(e,r),e.unshift(r)},remove:r=>{var o,s;e=_d(e,r),(s=(o=e[0])==null?void 0:o.resume)==null||s.call(o)}}},ix=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(nr(r,t),document.activeElement!==n)return},Sd=sx(),ax=()=>da.value>qu.value,Xs=()=>{Ku.value="pointer",da.value=window.performance.now()},Ed=()=>{Ku.value="keyboard",da.value=window.performance.now()},lx=()=>(Ue(()=>{Js===0&&(document.addEventListener("mousedown",Xs),document.addEventListener("touchstart",Xs),document.addEventListener("keydown",Ed)),Js++}),At(()=>{Js--,Js<=0&&(document.removeEventListener("mousedown",Xs),document.removeEventListener("touchstart",Xs),document.removeEventListener("keydown",Ed))}),{focusReason:Ku,lastUserFocusTimestamp:da,lastAutomatedFocusTimestamp:qu}),Qs=e=>new CustomEvent(ex,{...tx,detail:e}),ux=re({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[yd,bd,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=V();let r,o;const{focusReason:s}=lx();a4(m=>{e.trapped&&!i.paused&&t("release-requested",m)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=m=>{if(!e.loop&&!e.trapped||i.paused)return;const{key:p,altKey:y,ctrlKey:g,metaKey:w,currentTarget:_,shiftKey:T}=m,{loop:C}=e,P=p===Sn.tab&&!y&&!g&&!w,E=document.activeElement;if(P&&E){const x=_,[F,R]=rx(x);if(F&&R){if(!T&&E===R){const B=Qs({focusReason:s.value});t("focusout-prevented",B),B.defaultPrevented||(m.preventDefault(),C&&nr(F,!0))}else if(T&&[F,x].includes(E)){const B=Qs({focusReason:s.value});t("focusout-prevented",B),B.defaultPrevented||(m.preventDefault(),C&&nr(R,!0))}}else if(E===x){const B=Qs({focusReason:s.value});t("focusout-prevented",B),B.defaultPrevented||m.preventDefault()}}};at(Bv,{focusTrapRef:n,onKeydown:a}),ue(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),ue([n],([m],[p])=>{m&&(m.addEventListener("keydown",a),m.addEventListener("focusin",c),m.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",a),p.removeEventListener("focusin",c),p.removeEventListener("focusout",f))});const l=m=>{t(yd,m)},u=m=>t(bd,m),c=m=>{const p=h(n);if(!p)return;const y=m.target,g=m.relatedTarget,w=y&&p.contains(y);e.trapped||g&&p.contains(g)||(r=g),w&&t("focusin",m),!i.paused&&e.trapped&&(w?o=y:nr(o,!0))},f=m=>{const p=h(n);if(!(i.paused||!p))if(e.trapped){const y=m.relatedTarget;!zn(y)&&!p.contains(y)&&setTimeout(()=>{if(!i.paused&&e.trapped){const g=Qs({focusReason:s.value});t("focusout-prevented",g),g.defaultPrevented||nr(o,!0)}},0)}else{const y=m.target;y&&p.contains(y)||t("focusout",m)}};async function d(){await Re();const m=h(n);if(m){Sd.push(i);const p=m.contains(document.activeElement)?r:document.activeElement;if(r=p,!m.contains(p)){const g=new Event(za,gd);m.addEventListener(za,l),m.dispatchEvent(g),g.defaultPrevented||Re(()=>{let w=e.focusStartEl;xe(w)||(nr(w),document.activeElement!==w&&(w="first")),w==="first"&&ix(zv(m),!0),(document.activeElement===p||w==="container")&&nr(m)})}}}function v(){const m=h(n);if(m){m.removeEventListener(za,l);const p=new CustomEvent(Da,{...gd,detail:{focusReason:s.value}});m.addEventListener(Da,u),m.dispatchEvent(p),!p.defaultPrevented&&(s.value=="keyboard"||!ax()||m.contains(document.activeElement))&&nr(r??document.body),m.removeEventListener(Da,l),Sd.remove(i)}}return Ue(()=>{e.trapped&&d(),ue(()=>e.trapped,m=>{m?d():v()})}),At(()=>{e.trapped&&v()}),{onKeydown:a}}});function cx(e,t,n,r,o,s){return _e(e.$slots,"default",{handleKeydown:e.onKeydown})}var Dv=Le(ux,[["render",cx],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const fx=["fixed","absolute"],dx=Me({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Ce(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:aa,default:"bottom"},popperOptions:{type:Ce(Object),default:()=>({})},strategy:{type:String,values:fx,default:"absolute"}}),jv=Me({...dx,id:String,style:{type:Ce([String,Array,Object])},className:{type:Ce([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Ce([String,Array,Object])},popperStyle:{type:Ce([String,Array,Object])},referenceEl:{type:Ce(Object)},triggerTargetEl:{type:Ce(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),px={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},hx=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,s={placement:n,strategy:r,...o,modifiers:[...mx(e),...t]};return gx(s,o==null?void 0:o.modifiers),s},vx=e=>{if(ot)return lr(e)};function mx(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function gx(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const yx=0,bx=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=Oe(Vu,void 0),s=V(),i=V(),a=O(()=>({name:"eventListeners",enabled:!!e.visible})),l=O(()=>{var g;const w=h(s),_=(g=h(i))!=null?g:yx;return{name:"arrow",enabled:!oE(w),options:{element:w,padding:_}}}),u=O(()=>({onFirstUpdate:()=>{m()},...hx(e,[h(l),h(a)])})),c=O(()=>vx(e.referenceEl)||h(r)),{attributes:f,state:d,styles:v,update:m,forceUpdate:p,instanceRef:y}=o4(c,n,u);return ue(y,g=>t.value=g),Ue(()=>{ue(()=>{var g;return(g=h(c))==null?void 0:g.getBoundingClientRect()},()=>{m()})}),{attributes:f,arrowRef:s,contentRef:n,instanceRef:y,state:d,styles:v,role:o,forceUpdate:p,update:m}},wx=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=ua(),s=$e("popper"),i=O(()=>h(t).popper),a=V(e.zIndex||o()),l=O(()=>[s.b(),s.is("pure",e.pure),s.is(e.effect),e.popperClass]),u=O(()=>[{zIndex:h(a)},e.popperStyle||{},h(n).popper]),c=O(()=>r.value==="dialog"?"false":void 0),f=O(()=>h(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:i,contentClass:l,contentStyle:u,contentZIndex:a,updateZIndex:()=>{a.value=e.zIndex||o()}}},_x=(e,t)=>{const n=V(!1),r=V();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},Sx=re({name:"ElPopperContent"}),Ex=re({...Sx,props:jv,emits:px,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:s,onFocusAfterReleased:i,onFocusAfterTrapped:a,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=_x(r,n),{attributes:f,arrowRef:d,contentRef:v,styles:m,instanceRef:p,role:y,update:g}=bx(r),{ariaModal:w,arrowStyle:_,contentAttrs:T,contentClass:C,contentStyle:P,updateZIndex:E}=wx(r,{styles:m,attributes:f,role:y}),x=Oe(Vr,void 0),F=V();at(kv,{arrowStyle:_,arrowRef:d,arrowOffset:F}),x&&(x.addInputId||x.removeInputId)&&at(Vr,{...x,addInputId:pt,removeInputId:pt});let R;const H=(A=!0)=>{g(),A&&E()},B=()=>{H(!1),r.visible&&r.focusOnShow?s.value=!0:r.visible===!1&&(s.value=!1)};return Ue(()=>{ue(()=>r.triggerTargetEl,(A,$)=>{R==null||R(),R=void 0;const K=h(A||v.value),U=h($||v.value);yo(K)&&(R=ue([y,()=>r.ariaLabel,w,()=>r.id],k=>{["role","aria-label","aria-modal","id"].forEach((le,Ee)=>{zn(k[Ee])?K.removeAttribute(le):K.setAttribute(le,k[Ee])})},{immediate:!0})),U!==K&&yo(U)&&["role","aria-label","aria-modal","id"].forEach(k=>{U.removeAttribute(k)})},{immediate:!0}),ue(()=>r.visible,B,{immediate:!0})}),At(()=>{R==null||R(),R=void 0}),t({popperContentRef:v,popperInstanceRef:p,updatePopper:H,contentStyle:P}),(A,$)=>(I(),ne("div",wn({ref_key:"contentRef",ref:v},h(T),{style:h(P),class:h(C),tabindex:"-1",onMouseenter:$[0]||($[0]=K=>A.$emit("mouseenter",K)),onMouseleave:$[1]||($[1]=K=>A.$emit("mouseleave",K))}),[ie(h(Dv),{trapped:h(s),"trap-on-focus-in":!0,"focus-trap-el":h(v),"focus-start-el":h(o),onFocusAfterTrapped:h(a),onFocusAfterReleased:h(i),onFocusin:h(l),onFocusoutPrevented:h(u),onReleaseRequested:h(c)},{default:pe(()=>[_e(A.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var Cx=Le(Ex,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Ox=yt(q3),Uu=Symbol("elTooltip"),zt=Me({...c4,...jv,appendTo:{type:Ce([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Ce(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),Os=Me({...Fv,disabled:Boolean,trigger:{type:Ce([String,Array]),default:"hover"},triggerKeys:{type:Ce(Array),default:()=>[Sn.enter,Sn.space]}}),{useModelToggleProps:Tx,useModelToggleEmits:xx,useModelToggle:Ax}=iv("visible"),Px=Me({...Nv,...Tx,...zt,...Os,...Mv,showArrow:{type:Boolean,default:!0}}),$x=[...xx,"before-show","before-hide","show","hide","open","close"],Ix=(e,t)=>ge(e)?e.includes(t):e===t,eo=(e,t,n)=>r=>{Ix(h(e),t)&&n(r)},Rx=re({name:"ElTooltipTrigger"}),kx=re({...Rx,props:Os,setup(e,{expose:t}){const n=e,r=$e("tooltip"),{controlled:o,id:s,open:i,onOpen:a,onClose:l,onToggle:u}=Oe(Uu,void 0),c=V(null),f=()=>{if(h(o)||n.disabled)return!0},d=jt(n,"trigger"),v=Nn(f,eo(d,"hover",a)),m=Nn(f,eo(d,"hover",l)),p=Nn(f,eo(d,"click",T=>{T.button===0&&u(T)})),y=Nn(f,eo(d,"focus",a)),g=Nn(f,eo(d,"focus",l)),w=Nn(f,eo(d,"contextmenu",T=>{T.preventDefault(),u(T)})),_=Nn(f,T=>{const{code:C}=T;n.triggerKeys.includes(C)&&(T.preventDefault(),u(T))});return t({triggerRef:c}),(T,C)=>(I(),he(h(Z3),{id:h(s),"virtual-ref":T.virtualRef,open:h(i),"virtual-triggering":T.virtualTriggering,class:Y(h(r).e("trigger")),onBlur:h(g),onClick:h(p),onContextmenu:h(w),onFocus:h(y),onMouseenter:h(v),onMouseleave:h(m),onKeydown:h(_)},{default:pe(()=>[_e(T.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Nx=Le(kx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const Mx=re({name:"ElTooltipContent",inheritAttrs:!1}),Lx=re({...Mx,props:zt,setup(e,{expose:t}){const n=e,{selector:r}=_v(),o=$e("tooltip"),s=V(null),i=V(!1),{controlled:a,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:v,onHide:m,onBeforeShow:p,onBeforeHide:y}=Oe(Uu,void 0),g=O(()=>n.transition||`${o.namespace.value}-fade-in-linear`),w=O(()=>n.persistent);At(()=>{i.value=!0});const _=O(()=>h(w)?!0:h(u)),T=O(()=>n.disabled?!1:h(u)),C=O(()=>n.appendTo||r.value),P=O(()=>{var k;return(k=n.style)!=null?k:{}}),E=O(()=>!h(u)),x=()=>{m()},F=()=>{if(h(a))return!0},R=Nn(F,()=>{n.enterable&&h(c)==="hover"&&d()}),H=Nn(F,()=>{h(c)==="hover"&&f()}),B=()=>{var k,le;(le=(k=s.value)==null?void 0:k.updatePopper)==null||le.call(k),p==null||p()},A=()=>{y==null||y()},$=()=>{v(),U=I0(O(()=>{var k;return(k=s.value)==null?void 0:k.popperContentRef}),()=>{if(h(a))return;h(c)!=="hover"&&f()})},K=()=>{n.virtualTriggering||f()};let U;return ue(()=>h(u),k=>{k||U==null||U()},{flush:"post"}),ue(()=>n.content,()=>{var k,le;(le=(k=s.value)==null?void 0:k.updatePopper)==null||le.call(k)}),t({contentRef:s}),(k,le)=>(I(),he(Gp,{disabled:!k.teleported,to:h(C)},[ie(an,{name:h(g),onAfterLeave:x,onBeforeEnter:B,onAfterEnter:$,onBeforeLeave:A},{default:pe(()=>[h(_)?ct((I(),he(h(Cx),wn({key:0,id:h(l),ref_key:"contentRef",ref:s},k.$attrs,{"aria-label":k.ariaLabel,"aria-hidden":h(E),"boundaries-padding":k.boundariesPadding,"fallback-placements":k.fallbackPlacements,"gpu-acceleration":k.gpuAcceleration,offset:k.offset,placement:k.placement,"popper-options":k.popperOptions,strategy:k.strategy,effect:k.effect,enterable:k.enterable,pure:k.pure,"popper-class":k.popperClass,"popper-style":[k.popperStyle,h(P)],"reference-el":k.referenceEl,"trigger-target-el":k.triggerTargetEl,visible:h(T),"z-index":k.zIndex,onMouseenter:h(R),onMouseleave:h(H),onBlur:K,onClose:h(f)}),{default:pe(()=>[i.value?ce("v-if",!0):_e(k.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[fn,h(T)]]):ce("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var Fx=Le(Lx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Bx=["innerHTML"],zx={key:1},Dx=re({name:"ElTooltip"}),jx=re({...Dx,props:Px,emits:$x,setup(e,{expose:t,emit:n}){const r=e;u4();const o=Es(),s=V(),i=V(),a=()=>{var g;const w=h(s);w&&((g=w.popperInstanceRef)==null||g.update())},l=V(!1),u=V(),{show:c,hide:f,hasUpdateHandler:d}=Ax({indicator:l,toggleReason:u}),{onOpen:v,onClose:m}=f4({showAfter:jt(r,"showAfter"),hideAfter:jt(r,"hideAfter"),autoClose:jt(r,"autoClose"),open:c,close:f}),p=O(()=>Kt(r.visible)&&!d.value);at(Uu,{controlled:p,id:o,open:Is(l),trigger:jt(r,"trigger"),onOpen:g=>{v(g)},onClose:g=>{m(g)},onToggle:g=>{h(l)?m(g):v(g)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:a}),ue(()=>r.disabled,g=>{g&&l.value&&(l.value=!1)});const y=()=>{var g,w;const _=(w=(g=i.value)==null?void 0:g.contentRef)==null?void 0:w.popperContentRef;return _&&_.contains(document.activeElement)};return Lp(()=>l.value&&f()),t({popperRef:s,contentRef:i,isFocusInsideContent:y,updatePopper:a,onOpen:v,onClose:m,hide:f}),(g,w)=>(I(),he(h(Ox),{ref_key:"popperRef",ref:s,role:g.role},{default:pe(()=>[ie(Nx,{disabled:g.disabled,trigger:g.trigger,"trigger-keys":g.triggerKeys,"virtual-ref":g.virtualRef,"virtual-triggering":g.virtualTriggering},{default:pe(()=>[g.$slots.default?_e(g.$slots,"default",{key:0}):ce("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ie(Fx,{ref_key:"contentRef",ref:i,"aria-label":g.ariaLabel,"boundaries-padding":g.boundariesPadding,content:g.content,disabled:g.disabled,effect:g.effect,enterable:g.enterable,"fallback-placements":g.fallbackPlacements,"hide-after":g.hideAfter,"gpu-acceleration":g.gpuAcceleration,offset:g.offset,persistent:g.persistent,"popper-class":g.popperClass,"popper-style":g.popperStyle,placement:g.placement,"popper-options":g.popperOptions,pure:g.pure,"raw-content":g.rawContent,"reference-el":g.referenceEl,"trigger-target-el":g.triggerTargetEl,"show-after":g.showAfter,strategy:g.strategy,teleported:g.teleported,transition:g.transition,"virtual-triggering":g.virtualTriggering,"z-index":g.zIndex,"append-to":g.appendTo},{default:pe(()=>[_e(g.$slots,"content",{},()=>[g.rawContent?(I(),ne("span",{key:0,innerHTML:g.content},null,8,Bx)):(I(),ne("span",zx,tt(g.content),1))]),g.showArrow?(I(),he(h(G3),{key:0,"arrow-offset":g.arrowOffset},null,8,["arrow-offset"])):ce("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Hx=Le(jx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Hv=yt(Hx),Vx=Me({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),Kx=["textContent"],qx=re({name:"ElBadge"}),Ux=re({...qx,props:Vx,setup(e,{expose:t}){const n=e,r=$e("badge"),o=O(()=>n.isDot?"":Ve(n.value)&&Ve(n.max)?n.max(I(),ne("div",{class:Y(h(r).b())},[_e(s.$slots,"default"),ie(an,{name:`${h(r).namespace.value}-zoom-in-center`,persisted:""},{default:pe(()=>[ct(fe("sup",{class:Y([h(r).e("content"),h(r).em("content",s.type),h(r).is("fixed",!!s.$slots.default),h(r).is("dot",s.isDot)]),textContent:tt(h(o))},null,10,Kx),[[fn,!s.hidden&&(h(o)||s.isDot)]])]),_:1},8,["name"])],2))}});var Wx=Le(Ux,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const Gx=yt(Wx),Vv=Symbol("buttonGroupContextKey"),Yx=(e,t)=>{bo({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},O(()=>e.type==="text"));const n=Oe(Vv,void 0),r=ca("button"),{form:o}=wr(),s=cn(O(()=>n==null?void 0:n.size)),i=Mo(),a=V(),l=Ur(),u=O(()=>e.type||(n==null?void 0:n.type)||""),c=O(()=>{var v,m,p;return(p=(m=e.autoInsertSpace)!=null?m:(v=r.value)==null?void 0:v.autoInsertSpace)!=null?p:!1}),f=O(()=>{var v;const m=(v=l.default)==null?void 0:v.call(l);if(c.value&&(m==null?void 0:m.length)===1){const p=m[0];if((p==null?void 0:p.type)===Po){const y=p.children;return/^\p{Unified_Ideograph}{2}$/u.test(y.trim())}}return!1});return{_disabled:i,_size:s,_type:u,_ref:a,shouldAddSpace:f,handleClick:v=>{e.nativeType==="reset"&&(o==null||o.resetFields()),t("click",v)}}},Jx=["default","primary","success","warning","info","danger","text",""],Xx=["button","submit","reset"],Nl=Me({size:ko,disabled:Boolean,type:{type:String,values:Jx,default:""},icon:{type:Jt},nativeType:{type:String,values:Xx,default:"button"},loading:Boolean,loadingIcon:{type:Jt,default:()=>ku},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),Qx={click:e=>e instanceof MouseEvent};function St(e,t){Zx(e)&&(e="100%");var n=eA(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Zs(e){return Math.min(1,Math.max(0,e))}function Zx(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function eA(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Kv(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ei(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Lr(e){return e.length===1?"0"+e:String(e)}function tA(e,t,n){return{r:St(e,255)*255,g:St(t,255)*255,b:St(n,255)*255}}function Cd(e,t,n){e=St(e,255),t=St(t,255),n=St(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,i=0,a=(r+o)/2;if(r===o)i=0,s=0;else{var l=r-o;switch(i=a>.5?l/(2-r-o):l/(r+o),r){case e:s=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nA(e,t,n){var r,o,s;if(e=St(e,360),t=St(t,100),n=St(n,100),t===0)o=n,s=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;r=ja(a,i,e+1/3),o=ja(a,i,e),s=ja(a,i,e-1/3)}return{r:r*255,g:o*255,b:s*255}}function Od(e,t,n){e=St(e,255),t=St(t,255),n=St(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,i=r,a=r-o,l=r===0?0:a/r;if(r===o)s=0;else{switch(r){case e:s=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var Ml={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function aA(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,s=null,i=!1,a=!1;return typeof e=="string"&&(e=cA(e)),typeof e=="object"&&(In(e.r)&&In(e.g)&&In(e.b)?(t=tA(e.r,e.g,e.b),i=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):In(e.h)&&In(e.s)&&In(e.v)?(r=ei(e.s),o=ei(e.v),t=rA(e.h,r,o),i=!0,a="hsv"):In(e.h)&&In(e.s)&&In(e.l)&&(r=ei(e.s),s=ei(e.l),t=nA(e.h,r,s),i=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Kv(n),{ok:i,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var lA="[-\\+]?\\d+%?",uA="[-\\+]?\\d*\\.\\d+%?",ur="(?:".concat(uA,")|(?:").concat(lA,")"),Ha="[\\s|\\(]+(".concat(ur,")[,|\\s]+(").concat(ur,")[,|\\s]+(").concat(ur,")\\s*\\)?"),Va="[\\s|\\(]+(".concat(ur,")[,|\\s]+(").concat(ur,")[,|\\s]+(").concat(ur,")[,|\\s]+(").concat(ur,")\\s*\\)?"),tn={CSS_UNIT:new RegExp(ur),rgb:new RegExp("rgb"+Ha),rgba:new RegExp("rgba"+Va),hsl:new RegExp("hsl"+Ha),hsla:new RegExp("hsla"+Va),hsv:new RegExp("hsv"+Ha),hsva:new RegExp("hsva"+Va),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function cA(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ml[e])e=Ml[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=tn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=tn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=tn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=tn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=tn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=tn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=tn.hex8.exec(e),n?{r:Ft(n[1]),g:Ft(n[2]),b:Ft(n[3]),a:xd(n[4]),format:t?"name":"hex8"}:(n=tn.hex6.exec(e),n?{r:Ft(n[1]),g:Ft(n[2]),b:Ft(n[3]),format:t?"name":"hex"}:(n=tn.hex4.exec(e),n?{r:Ft(n[1]+n[1]),g:Ft(n[2]+n[2]),b:Ft(n[3]+n[3]),a:xd(n[4]+n[4]),format:t?"name":"hex8"}:(n=tn.hex3.exec(e),n?{r:Ft(n[1]+n[1]),g:Ft(n[2]+n[2]),b:Ft(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function In(e){return!!tn.CSS_UNIT.exec(String(e))}var fA=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=iA(t)),this.originalInput=t;var o=aA(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,s=t.r/255,i=t.g/255,a=t.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Kv(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Od(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Od(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Cd(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Cd(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Td(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),oA(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(St(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(St(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Td(this.r,this.g,this.b,!1),n=0,r=Object.entries(Ml);n=0,s=!n&&o&&(t.startsWith("hex")||t==="name");return s?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Zs(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Zs(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Zs(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Zs(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),s=n/100,i={r:(o.r-r.r)*s+r.r,g:(o.g-r.g)*s+r.g,b:(o.b-r.b)*s+r.b,a:(o.a-r.a)*s+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,s=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,s.push(new e(r));return s},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,s=n.v,i=[],a=1/t;t--;)i.push(new e({h:r,s:o,v:s})),s=(s+a)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],s=360/t,i=1;i{let r={};const o=e.color;if(o){const s=new fA(o),i=e.dark?s.tint(20).toString():Zn(s,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Zn(s,90):s.tint(90).toString(),"text-color":o,"border-color":e.dark?Zn(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Zn(s,90):s.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Zn(s,50):s.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Zn(s,80):s.tint(80).toString());else{const a=e.dark?Zn(s,30):s.tint(30).toString(),l=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":l,"border-color":o,"hover-bg-color":a,"hover-text-color":l,"hover-border-color":a,"active-bg-color":i,"active-border-color":i}),t.value){const u=e.dark?Zn(s,50):s.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=u}}}return r})}const pA=["aria-disabled","disabled","autofocus","type"],hA=re({name:"ElButton"}),vA=re({...hA,props:Nl,emits:Qx,setup(e,{expose:t,emit:n}){const r=e,o=dA(r),s=$e("button"),{_ref:i,_size:a,_type:l,_disabled:u,shouldAddSpace:c,handleClick:f}=Yx(r,n);return t({ref:i,size:a,type:l,disabled:u,shouldAddSpace:c}),(d,v)=>(I(),ne("button",{ref_key:"_ref",ref:i,class:Y([h(s).b(),h(s).m(h(l)),h(s).m(h(a)),h(s).is("disabled",h(u)),h(s).is("loading",d.loading),h(s).is("plain",d.plain),h(s).is("round",d.round),h(s).is("circle",d.circle),h(s).is("text",d.text),h(s).is("link",d.link),h(s).is("has-bg",d.bg)]),"aria-disabled":h(u)||d.loading,disabled:h(u)||d.loading,autofocus:d.autofocus,type:d.nativeType,style:Xe(h(o)),onClick:v[0]||(v[0]=(...m)=>h(f)&&h(f)(...m))},[d.loading?(I(),ne(We,{key:0},[d.$slots.loading?_e(d.$slots,"loading",{key:0}):(I(),he(h(rt),{key:1,class:Y(h(s).is("loading"))},{default:pe(()=>[(I(),he(dt(d.loadingIcon)))]),_:1},8,["class"]))],64)):d.icon||d.$slots.icon?(I(),he(h(rt),{key:1},{default:pe(()=>[d.icon?(I(),he(dt(d.icon),{key:0})):_e(d.$slots,"icon",{key:1})]),_:3})):ce("v-if",!0),d.$slots.default?(I(),ne("span",{key:2,class:Y({[h(s).em("text","expand")]:h(c)})},[_e(d.$slots,"default")],2)):ce("v-if",!0)],14,pA))}});var mA=Le(vA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const gA={size:Nl.size,type:Nl.type},yA=re({name:"ElButtonGroup"}),bA=re({...yA,props:gA,setup(e){const t=e;at(Vv,Et({size:jt(t,"size"),type:jt(t,"type")}));const n=$e("button");return(r,o)=>(I(),ne("div",{class:Y(`${h(n).b("group")}`)},[_e(r.$slots,"default")],2))}});var qv=Le(bA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const eI=yt(mA,{ButtonGroup:qv});Jr(qv);const rr=new Map;let Ad;ot&&(document.addEventListener("mousedown",e=>Ad=e),document.addEventListener("mouseup",e=>{for(const t of rr.values())for(const{documentHandler:n}of t)n(e,Ad)}));function Pd(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:yo(t.arg)&&n.push(t.arg),function(r,o){const s=t.instance.popperRef,i=r.target,a=o==null?void 0:o.target,l=!t||!t.instance,u=!i||!a,c=e.contains(i)||e.contains(a),f=e===i,d=n.length&&n.some(m=>m==null?void 0:m.contains(i))||n.length&&n.includes(a),v=s&&(s.contains(i)||s.contains(a));l||u||c||f||d||v||t.value(r,o)}}const wA={beforeMount(e,t){rr.has(e)||rr.set(e,[]),rr.get(e).push({documentHandler:Pd(e,t),bindingFn:t.value})},updated(e,t){rr.has(e)||rr.set(e,[]);const n=rr.get(e),r=n.findIndex(s=>s.bindingFn===t.oldValue),o={documentHandler:Pd(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(e){rr.delete(e)}},_A=100,SA=600,$d={beforeMount(e,t){const n=t.value,{interval:r=_A,delay:o=SA}=ye(n)?{}:n;let s,i;const a=()=>ye(n)?n():n.handler(),l=()=>{i&&(clearTimeout(i),i=void 0),s&&(clearInterval(s),s=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(l(),a(),document.addEventListener("mouseup",()=>l(),{once:!0}),i=setTimeout(()=>{s=setInterval(()=>{a()},r)},o))})}},Uv={modelValue:{type:[Number,String,Boolean],default:void 0},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:ko,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},Wv={[Ge]:e=>xe(e)||Ve(e)||Kt(e),change:e=>xe(e)||Ve(e)||Kt(e)},Lo=Symbol("checkboxGroupContextKey"),EA=({model:e,isChecked:t})=>{const n=Oe(Lo,void 0),r=O(()=>{var s,i;const a=(s=n==null?void 0:n.max)==null?void 0:s.value,l=(i=n==null?void 0:n.min)==null?void 0:i.value;return!yn(a)&&e.value.length>=a&&!t.value||!yn(l)&&e.value.length<=l&&t.value});return{isDisabled:Mo(O(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},CA=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:s})=>{const i=Oe(Lo,void 0),{formItem:a}=wr(),{emit:l}=st();function u(m){var p,y;return m===e.trueLabel||m===!0?(p=e.trueLabel)!=null?p:!0:(y=e.falseLabel)!=null?y:!1}function c(m,p){l("change",u(m),p)}function f(m){if(n.value)return;const p=m.target;l("change",u(p.checked),m)}async function d(m){n.value||!r.value&&!o.value&&s.value&&(m.composedPath().some(g=>g.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await Re(),c(t.value,m)))}const v=O(()=>(i==null?void 0:i.validateEvent)||e.validateEvent);return ue(()=>e.modelValue,()=>{v.value&&(a==null||a.validate("change").catch(m=>void 0))}),{handleChange:f,onClickRoot:d}},OA=e=>{const t=V(!1),{emit:n}=st(),r=Oe(Lo,void 0),o=O(()=>yn(r)===!1),s=V(!1);return{model:O({get(){var a,l;return o.value?(a=r==null?void 0:r.modelValue)==null?void 0:a.value:(l=e.modelValue)!=null?l:t.value},set(a){var l,u;o.value&&ge(a)?(s.value=((l=r==null?void 0:r.max)==null?void 0:l.value)!==void 0&&a.length>(r==null?void 0:r.max.value),s.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,a))):(n(Ge,a),t.value=a)}}),isGroup:o,isLimitExceeded:s}},TA=(e,t,{model:n})=>{const r=Oe(Lo,void 0),o=V(!1),s=O(()=>{const u=n.value;return Kt(u)?u:ge(u)?Ne(e.label)?u.map(Ae).some(c=>Ol(c,e.label)):u.map(Ae).includes(e.label):u!=null?u===e.trueLabel:!!u}),i=cn(O(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),a=cn(O(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),l=O(()=>!!(t.default||e.label));return{checkboxButtonSize:i,isChecked:s,isFocused:o,checkboxSize:a,hasOwnLabel:l}},xA=(e,{model:t})=>{function n(){ge(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},Gv=(e,t)=>{const{formItem:n}=wr(),{model:r,isGroup:o,isLimitExceeded:s}=OA(e),{isFocused:i,isChecked:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=TA(e,t,{model:r}),{isDisabled:f}=EA({model:r,isChecked:a}),{inputId:d,isLabeledByFormItem:v}=fa(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:o}),{handleChange:m,onClickRoot:p}=CA(e,{model:r,isLimitExceeded:s,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:v});return xA(e,{model:r}),{inputId:d,isLabeledByFormItem:v,isChecked:a,isDisabled:f,isFocused:i,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,handleChange:m,onClickRoot:p}},AA=["tabindex","role","aria-checked"],PA=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],$A=["id","aria-hidden","disabled","value","name","tabindex"],IA=re({name:"ElCheckbox"}),RA=re({...IA,props:Uv,emits:Wv,setup(e){const t=e,n=Ur(),{inputId:r,isLabeledByFormItem:o,isChecked:s,isDisabled:i,isFocused:a,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=Gv(t,n),v=$e("checkbox"),m=O(()=>[v.b(),v.m(l.value),v.is("disabled",i.value),v.is("bordered",t.border),v.is("checked",s.value)]),p=O(()=>[v.e("input"),v.is("disabled",i.value),v.is("checked",s.value),v.is("indeterminate",t.indeterminate),v.is("focus",a.value)]);return(y,g)=>(I(),he(dt(!h(u)&&h(o)?"span":"label"),{class:Y(h(m)),"aria-controls":y.indeterminate?y.controls:null,onClick:h(d)},{default:pe(()=>[fe("span",{class:Y(h(p)),tabindex:y.indeterminate?0:void 0,role:y.indeterminate?"checkbox":void 0,"aria-checked":y.indeterminate?"mixed":void 0},[y.trueLabel||y.falseLabel?ct((I(),ne("input",{key:0,id:h(r),"onUpdate:modelValue":g[0]||(g[0]=w=>qe(c)?c.value=w:null),class:Y(h(v).e("original")),type:"checkbox","aria-hidden":y.indeterminate?"true":"false",name:y.name,tabindex:y.tabindex,disabled:h(i),"true-value":y.trueLabel,"false-value":y.falseLabel,onChange:g[1]||(g[1]=(...w)=>h(f)&&h(f)(...w)),onFocus:g[2]||(g[2]=w=>a.value=!0),onBlur:g[3]||(g[3]=w=>a.value=!1)},null,42,PA)),[[Oi,h(c)]]):ct((I(),ne("input",{key:1,id:h(r),"onUpdate:modelValue":g[4]||(g[4]=w=>qe(c)?c.value=w:null),class:Y(h(v).e("original")),type:"checkbox","aria-hidden":y.indeterminate?"true":"false",disabled:h(i),value:y.label,name:y.name,tabindex:y.tabindex,onChange:g[5]||(g[5]=(...w)=>h(f)&&h(f)(...w)),onFocus:g[6]||(g[6]=w=>a.value=!0),onBlur:g[7]||(g[7]=w=>a.value=!1)},null,42,$A)),[[Oi,h(c)]]),fe("span",{class:Y(h(v).e("inner"))},null,2)],10,AA),h(u)?(I(),ne("span",{key:0,class:Y(h(v).e("label"))},[_e(y.$slots,"default"),y.$slots.default?ce("v-if",!0):(I(),ne(We,{key:0},[Rs(tt(y.label),1)],64))],2)):ce("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var kA=Le(RA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const NA=["name","tabindex","disabled","true-value","false-value"],MA=["name","tabindex","disabled","value"],LA=re({name:"ElCheckboxButton"}),FA=re({...LA,props:Uv,emits:Wv,setup(e){const t=e,n=Ur(),{isFocused:r,isChecked:o,isDisabled:s,checkboxButtonSize:i,model:a,handleChange:l}=Gv(t,n),u=Oe(Lo,void 0),c=$e("checkbox"),f=O(()=>{var v,m,p,y;const g=(m=(v=u==null?void 0:u.fill)==null?void 0:v.value)!=null?m:"";return{backgroundColor:g,borderColor:g,color:(y=(p=u==null?void 0:u.textColor)==null?void 0:p.value)!=null?y:"",boxShadow:g?`-1px 0 0 0 ${g}`:void 0}}),d=O(()=>[c.b("button"),c.bm("button",i.value),c.is("disabled",s.value),c.is("checked",o.value),c.is("focus",r.value)]);return(v,m)=>(I(),ne("label",{class:Y(h(d))},[v.trueLabel||v.falseLabel?ct((I(),ne("input",{key:0,"onUpdate:modelValue":m[0]||(m[0]=p=>qe(a)?a.value=p:null),class:Y(h(c).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:h(s),"true-value":v.trueLabel,"false-value":v.falseLabel,onChange:m[1]||(m[1]=(...p)=>h(l)&&h(l)(...p)),onFocus:m[2]||(m[2]=p=>r.value=!0),onBlur:m[3]||(m[3]=p=>r.value=!1)},null,42,NA)),[[Oi,h(a)]]):ct((I(),ne("input",{key:1,"onUpdate:modelValue":m[4]||(m[4]=p=>qe(a)?a.value=p:null),class:Y(h(c).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:h(s),value:v.label,onChange:m[5]||(m[5]=(...p)=>h(l)&&h(l)(...p)),onFocus:m[6]||(m[6]=p=>r.value=!0),onBlur:m[7]||(m[7]=p=>r.value=!1)},null,42,MA)),[[Oi,h(a)]]),v.$slots.default||v.label?(I(),ne("span",{key:2,class:Y(h(c).be("button","inner")),style:Xe(h(o)?h(f):void 0)},[_e(v.$slots,"default",{},()=>[Rs(tt(v.label),1)])],6)):ce("v-if",!0)],2))}});var Yv=Le(FA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const BA=Me({modelValue:{type:Ce(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:ko,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),zA={[Ge]:e=>ge(e),change:e=>ge(e)},DA=re({name:"ElCheckboxGroup"}),jA=re({...DA,props:BA,emits:zA,setup(e,{emit:t}){const n=e,r=$e("checkbox"),{formItem:o}=wr(),{inputId:s,isLabeledByFormItem:i}=fa(n,{formItemContext:o}),a=async u=>{t(Ge,u),await Re(),t("change",u)},l=O({get(){return n.modelValue},set(u){a(u)}});return at(Lo,{...lE(gr(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:a}),ue(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return I(),he(dt(u.tag),{id:h(s),class:Y(h(r).b("group")),role:"group","aria-label":h(i)?void 0:u.label||"checkbox-group","aria-labelledby":h(i)?(f=h(o))==null?void 0:f.labelId:void 0},{default:pe(()=>[_e(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Jv=Le(jA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const tI=yt(kA,{CheckboxButton:Yv,CheckboxGroup:Jv});Jr(Yv);const nI=Jr(Jv),Xv=Me({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Io,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),HA={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},VA=re({name:"ElTag"}),KA=re({...VA,props:Xv,emits:HA,setup(e,{emit:t}){const n=e,r=cn(),o=$e("tag"),s=O(()=>{const{type:l,hit:u,effect:c,closable:f,round:d}=n;return[o.b(),o.is("closable",f),o.m(l),o.m(r.value),o.m(c),o.is("hit",u),o.is("round",d)]}),i=l=>{t("close",l)},a=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(I(),ne("span",{key:0,class:Y(h(s)),style:Xe({backgroundColor:l.color}),onClick:a},[fe("span",{class:Y(h(o).e("content"))},[_e(l.$slots,"default")],2),l.closable?(I(),he(h(rt),{key:0,class:Y(h(o).e("close")),onClick:wt(i,["stop"])},{default:pe(()=>[ie(h(ws))]),_:1},8,["class","onClick"])):ce("v-if",!0)],6)):(I(),he(an,{key:1,name:`${h(o).namespace.value}-zoom-in-center`,appear:""},{default:pe(()=>[fe("span",{class:Y(h(s)),style:Xe({backgroundColor:l.color}),onClick:a},[fe("span",{class:Y(h(o).e("content"))},[_e(l.$slots,"default")],2),l.closable?(I(),he(h(rt),{key:0,class:Y(h(o).e("close")),onClick:wt(i,["stop"])},{default:pe(()=>[ie(h(ws))]),_:1},8,["class","onClick"])):ce("v-if",!0)],6)]),_:3},8,["name"]))}});var qA=Le(KA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const UA=yt(qA),WA=Me({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Ce([String,Array,Object])},zIndex:{type:Ce([String,Number])}}),GA={click:e=>e instanceof MouseEvent},YA="overlay";var JA=re({name:"ElOverlay",props:WA,emits:GA,setup(e,{slots:t,emit:n}){const r=$e(YA),o=l=>{n("click",l)},{onClick:s,onMousedown:i,onMouseup:a}=bv(e.customMaskEvent?void 0:o);return()=>e.mask?ie("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:s,onMousedown:i,onMouseup:a},[_e(t,"default")],ci.STYLE|ci.CLASS|ci.PROPS,["onClick","onMouseup","onMousedown"]):Mn("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[_e(t,"default")])}});const XA=JA,Qv=Symbol("dialogInjectionKey"),Zv=Me({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:Jt},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),QA={close:()=>!0},ZA=["aria-label"],eP=["id"],tP=re({name:"ElDialogContent"}),nP=re({...tP,props:Zv,emits:QA,setup(e){const t=e,{t:n}=Ro(),{Close:r}=NO,{dialogRef:o,headerRef:s,bodyId:i,ns:a,style:l}=Oe(Qv),{focusTrapRef:u}=Oe(Bv),c=zO(u,o),f=O(()=>t.draggable);return UO(o,s,f),(d,v)=>(I(),ne("div",{ref:h(c),class:Y([h(a).b(),h(a).is("fullscreen",d.fullscreen),h(a).is("draggable",h(f)),h(a).is("align-center",d.alignCenter),{[h(a).m("center")]:d.center},d.customClass]),style:Xe(h(l)),tabindex:"-1"},[fe("header",{ref_key:"headerRef",ref:s,class:Y(h(a).e("header"))},[_e(d.$slots,"header",{},()=>[fe("span",{role:"heading",class:Y(h(a).e("title"))},tt(d.title),3)]),d.showClose?(I(),ne("button",{key:0,"aria-label":h(n)("el.dialog.close"),class:Y(h(a).e("headerbtn")),type:"button",onClick:v[0]||(v[0]=m=>d.$emit("close"))},[ie(h(rt),{class:Y(h(a).e("close"))},{default:pe(()=>[(I(),he(dt(d.closeIcon||h(r))))]),_:1},8,["class"])],10,ZA)):ce("v-if",!0)],2),fe("div",{id:h(i),class:Y(h(a).e("body"))},[_e(d.$slots,"default")],10,eP),d.$slots.footer?(I(),ne("footer",{key:0,class:Y(h(a).e("footer"))},[_e(d.$slots,"footer")],2)):ce("v-if",!0)],6))}});var rP=Le(nP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const oP=Me({...Zv,appendToBody:{type:Boolean,default:!1},beforeClose:{type:Ce(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),sP={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Ge]:e=>Kt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},iP=(e,t)=>{const r=st().emit,{nextZIndex:o}=ua();let s="";const i=Es(),a=Es(),l=V(!1),u=V(!1),c=V(!1),f=V(e.zIndex||o());let d,v;const m=ca("namespace",ki),p=O(()=>{const $={},K=`--${m.value}-dialog`;return e.fullscreen||(e.top&&($[`${K}-margin-top`]=e.top),e.width&&($[`${K}-width`]=On(e.width))),$}),y=O(()=>e.alignCenter?{display:"flex"}:{});function g(){r("opened")}function w(){r("closed"),r(Ge,!1),e.destroyOnClose&&(c.value=!1)}function _(){r("close")}function T(){v==null||v(),d==null||d(),e.openDelay&&e.openDelay>0?{stop:d}=yl(()=>x(),e.openDelay):x()}function C(){d==null||d(),v==null||v(),e.closeDelay&&e.closeDelay>0?{stop:v}=yl(()=>F(),e.closeDelay):F()}function P(){function $(K){K||(u.value=!0,l.value=!1)}e.beforeClose?e.beforeClose($):C()}function E(){e.closeOnClickModal&&P()}function x(){ot&&(l.value=!0)}function F(){l.value=!1}function R(){r("openAutoFocus")}function H(){r("closeAutoFocus")}function B($){var K;((K=$.detail)==null?void 0:K.focusReason)==="pointer"&&$.preventDefault()}e.lockScroll&&ZO(l);function A(){e.closeOnPressEscape&&P()}return ue(()=>e.modelValue,$=>{$?(u.value=!1,T(),c.value=!0,f.value=e.zIndex?f.value++:o(),Re(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):l.value&&C()}),ue(()=>e.fullscreen,$=>{t.value&&($?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),Ue(()=>{e.modelValue&&(l.value=!0,c.value=!0,T())}),{afterEnter:g,afterLeave:w,beforeLeave:_,handleClose:P,onModalClick:E,close:C,doClose:F,onOpenAutoFocus:R,onCloseAutoFocus:H,onCloseRequested:A,onFocusoutPrevented:B,titleId:i,bodyId:a,closed:u,style:p,overlayDialogStyle:y,rendered:c,visible:l,zIndex:f}},aP=["aria-label","aria-labelledby","aria-describedby"],lP=re({name:"ElDialog",inheritAttrs:!1}),uP=re({...lP,props:oP,emits:sP,setup(e,{expose:t}){const n=e,r=Ur();bo({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},O(()=>!!r.title)),bo({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},O(()=>!!n.customClass));const o=$e("dialog"),s=V(),i=V(),a=V(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:v,zIndex:m,afterEnter:p,afterLeave:y,beforeLeave:g,handleClose:w,onModalClick:_,onOpenAutoFocus:T,onCloseAutoFocus:C,onCloseRequested:P,onFocusoutPrevented:E}=iP(n,s);at(Qv,{dialogRef:s,headerRef:i,bodyId:c,ns:o,rendered:v,style:f});const x=bv(_),F=O(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:a}),(R,H)=>(I(),he(Gp,{to:"body",disabled:!R.appendToBody},[ie(an,{name:"dialog-fade",onAfterEnter:h(p),onAfterLeave:h(y),onBeforeLeave:h(g),persisted:""},{default:pe(()=>[ct(ie(h(XA),{"custom-mask-event":"",mask:R.modal,"overlay-class":R.modalClass,"z-index":h(m)},{default:pe(()=>[fe("div",{role:"dialog","aria-modal":"true","aria-label":R.title||void 0,"aria-labelledby":R.title?void 0:h(u),"aria-describedby":h(c),class:Y(`${h(o).namespace.value}-overlay-dialog`),style:Xe(h(d)),onClick:H[0]||(H[0]=(...B)=>h(x).onClick&&h(x).onClick(...B)),onMousedown:H[1]||(H[1]=(...B)=>h(x).onMousedown&&h(x).onMousedown(...B)),onMouseup:H[2]||(H[2]=(...B)=>h(x).onMouseup&&h(x).onMouseup(...B))},[ie(h(Dv),{loop:"",trapped:h(l),"focus-start-el":"container",onFocusAfterTrapped:h(T),onFocusAfterReleased:h(C),onFocusoutPrevented:h(E),onReleaseRequested:h(P)},{default:pe(()=>[h(v)?(I(),he(rP,wn({key:0,ref_key:"dialogContentRef",ref:a},R.$attrs,{"custom-class":R.customClass,center:R.center,"align-center":R.alignCenter,"close-icon":R.closeIcon,draggable:h(F),fullscreen:R.fullscreen,"show-close":R.showClose,title:R.title,onClose:h(w)}),zp({header:pe(()=>[R.$slots.title?_e(R.$slots,"title",{key:1}):_e(R.$slots,"header",{key:0,close:h(w),titleId:h(u),titleClass:h(o).e("title")})]),default:pe(()=>[_e(R.$slots,"default")]),_:2},[R.$slots.footer?{name:"footer",fn:pe(()=>[_e(R.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):ce("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,aP)]),_:3},8,["mask","overlay-class","z-index"]),[[fn,h(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var cP=Le(uP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const rI=yt(cP),fP=re({inheritAttrs:!1});function dP(e,t,n,r,o,s){return _e(e.$slots,"default")}var pP=Le(fP,[["render",dP],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const hP=re({name:"ElCollectionItem",inheritAttrs:!1});function vP(e,t,n,r,o,s){return _e(e.$slots,"default")}var mP=Le(hP,[["render",vP],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const gP="data-el-collection-item",yP=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),o=Symbol(n),s={...pP,name:t,setup(){const a=V(null),l=new Map;at(r,{itemMap:l,getItems:()=>{const c=h(a);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${gP}]`));return[...l.values()].sort((v,m)=>f.indexOf(v.ref)-f.indexOf(m.ref))},collectionRef:a})}},i={...mP,name:n,setup(a,{attrs:l}){const u=V(null),c=Oe(r,void 0);at(o,{collectionItemRef:u}),Ue(()=>{const f=h(u);f&&c.itemMap.set(f,{ref:f,...l})}),At(()=>{const f=h(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:s,ElCollectionItem:i}},Ka=Me({trigger:Os.trigger,effect:{...zt.effect,default:"light"},type:{type:Ce(String)},placement:{type:Ce(String),default:"bottom"},popperOptions:{type:Ce(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:Ce([Number,String]),default:0},maxHeight:{type:Ce([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Ce(Object)},teleported:zt.teleported});Me({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Jt}});Me({onKeydown:{type:Ce(Function)}});yP("Dropdown");const bP=Me({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:ko,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||Ve(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),wP={[Hr]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[zr]:e=>Ve(e)||zn(e),[Ge]:e=>Ve(e)||zn(e)},_P=["aria-label","onKeydown"],SP=["aria-label","onKeydown"],EP=re({name:"ElInputNumber"}),CP=re({...EP,props:bP,emits:wP,setup(e,{expose:t,emit:n}){const r=e,{t:o}=Ro(),s=$e("input-number"),i=V(),a=Et({currentValue:r.modelValue,userInput:null}),{formItem:l}=wr(),u=O(()=>Ve(r.modelValue)&&r.modelValue<=r.min),c=O(()=>Ve(r.modelValue)&&r.modelValue>=r.max),f=O(()=>{const A=g(r.step);return yn(r.precision)?Math.max(g(r.modelValue),A):(A>r.precision,r.precision)}),d=O(()=>r.controls&&r.controlsPosition==="right"),v=cn(),m=Mo(),p=O(()=>{if(a.userInput!==null)return a.userInput;let A=a.currentValue;if(zn(A))return"";if(Ve(A)){if(Number.isNaN(A))return"";yn(r.precision)||(A=A.toFixed(r.precision))}return A}),y=(A,$)=>{if(yn($)&&($=f.value),$===0)return Math.round(A);let K=String(A);const U=K.indexOf(".");if(U===-1||!K.replace(".","").split("")[U+$])return A;const Ee=K.length;return K.charAt(Ee-1)==="5"&&(K=`${K.slice(0,Math.max(0,Ee-1))}6`),Number.parseFloat(Number(K).toFixed($))},g=A=>{if(zn(A))return 0;const $=A.toString(),K=$.indexOf(".");let U=0;return K!==-1&&(U=$.length-K-1),U},w=(A,$=1)=>Ve(A)?y(A+r.step*$):a.currentValue,_=()=>{if(r.readonly||m.value||c.value)return;const A=Number(p.value)||0,$=w(A);P($),n(zr,a.currentValue)},T=()=>{if(r.readonly||m.value||u.value)return;const A=Number(p.value)||0,$=w(A,-1);P($),n(zr,a.currentValue)},C=(A,$)=>{const{max:K,min:U,step:k,precision:le,stepStrictly:Ee,valueOnClear:Fe}=r;let Te=Number(A);if(zn(A)||Number.isNaN(Te))return null;if(A===""){if(Fe===null)return null;Te=xe(Fe)?{min:U,max:K}[Fe]:Fe}return Ee&&(Te=y(Math.round(Te/k)*k,le)),yn(le)||(Te=y(Te,le)),(Te>K||TeK?K:U,$&&n(Ge,Te)),Te},P=(A,$=!0)=>{var K;const U=a.currentValue,k=C(A);if(!$){n(Ge,k);return}U!==k&&(a.userInput=null,n(Ge,k),n(Hr,k,U),r.validateEvent&&((K=l==null?void 0:l.validate)==null||K.call(l,"change").catch(le=>void 0)),a.currentValue=k)},E=A=>{a.userInput=A;const $=A===""?null:Number(A);n(zr,$),P($,!1)},x=A=>{const $=A!==""?Number(A):"";(Ve($)&&!Number.isNaN($)||A==="")&&P($),a.userInput=null},F=()=>{var A,$;($=(A=i.value)==null?void 0:A.focus)==null||$.call(A)},R=()=>{var A,$;($=(A=i.value)==null?void 0:A.blur)==null||$.call(A)},H=A=>{n("focus",A)},B=A=>{var $;n("blur",A),r.validateEvent&&(($=l==null?void 0:l.validate)==null||$.call(l,"blur").catch(K=>void 0))};return ue(()=>r.modelValue,A=>{const $=C(a.userInput),K=C(A,!0);!Ve($)&&(!$||$!==K)&&(a.currentValue=K,a.userInput=null)},{immediate:!0}),Ue(()=>{var A;const{min:$,max:K,modelValue:U}=r,k=(A=i.value)==null?void 0:A.input;if(k.setAttribute("role","spinbutton"),Number.isFinite(K)?k.setAttribute("aria-valuemax",String(K)):k.removeAttribute("aria-valuemax"),Number.isFinite($)?k.setAttribute("aria-valuemin",String($)):k.removeAttribute("aria-valuemin"),k.setAttribute("aria-valuenow",String(a.currentValue)),k.setAttribute("aria-disabled",String(m.value)),!Ve(U)&&U!=null){let le=Number(U);Number.isNaN(le)&&(le=null),n(Ge,le)}}),Kr(()=>{var A;const $=(A=i.value)==null?void 0:A.input;$==null||$.setAttribute("aria-valuenow",`${a.currentValue}`)}),t({focus:F,blur:R}),(A,$)=>(I(),ne("div",{class:Y([h(s).b(),h(s).m(h(v)),h(s).is("disabled",h(m)),h(s).is("without-controls",!A.controls),h(s).is("controls-right",h(d))]),onDragstart:$[1]||($[1]=wt(()=>{},["prevent"]))},[A.controls?ct((I(),ne("span",{key:0,role:"button","aria-label":h(o)("el.inputNumber.decrease"),class:Y([h(s).e("decrease"),h(s).is("disabled",h(u))]),onKeydown:Tt(T,["enter"])},[ie(h(rt),null,{default:pe(()=>[h(d)?(I(),he(h(Yh),{key:0})):(I(),he(h(iO),{key:1}))]),_:1})],42,_P)),[[h($d),T]]):ce("v-if",!0),A.controls?ct((I(),ne("span",{key:1,role:"button","aria-label":h(o)("el.inputNumber.increase"),class:Y([h(s).e("increase"),h(s).is("disabled",h(c))]),onKeydown:Tt(_,["enter"])},[ie(h(rt),null,{default:pe(()=>[h(d)?(I(),he(h(FE),{key:0})):(I(),he(h(Qh),{key:1}))]),_:1})],42,SP)),[[h($d),_]]):ce("v-if",!0),ie(h(Iv),{id:A.id,ref_key:"input",ref:i,type:"number",step:A.step,"model-value":h(p),placeholder:A.placeholder,readonly:A.readonly,disabled:h(m),size:h(v),max:A.max,min:A.min,name:A.name,label:A.label,"validate-event":!1,onWheel:$[0]||($[0]=wt(()=>{},["prevent"])),onKeydown:[Tt(wt(_,["prevent"]),["up"]),Tt(wt(T,["prevent"]),["down"])],onBlur:B,onFocus:H,onInput:E,onChange:x},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var OP=Le(CP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const oI=yt(OP),TP=Me({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:Jt}}),xP={click:e=>e instanceof MouseEvent},AP=["href"],PP=re({name:"ElLink"}),$P=re({...PP,props:TP,emits:xP,setup(e,{emit:t}){const n=e,r=$e("link"),o=O(()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]);function s(i){n.disabled||t("click",i)}return(i,a)=>(I(),ne("a",{class:Y(h(o)),href:i.disabled||!i.href?void 0:i.href,onClick:s},[i.icon?(I(),he(h(rt),{key:0},{default:pe(()=>[(I(),he(dt(i.icon)))]),_:1})):ce("v-if",!0),i.$slots.default?(I(),ne("span",{key:1,class:Y(h(r).e("inner"))},[_e(i.$slots,"default")],2)):ce("v-if",!0),i.$slots.icon?_e(i.$slots,"icon",{key:2}):ce("v-if",!0)],10,AP))}});var IP=Le($P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const sI=yt(IP),em=Symbol("ElSelectGroup"),pa=Symbol("ElSelect");function RP(e,t){const n=Oe(pa),r=Oe(em,{disabled:!1}),o=O(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),s=O(()=>n.props.multiple?f(n.props.modelValue,e.value):d(e.value,n.props.modelValue)),i=O(()=>{if(n.props.multiple){const p=n.props.modelValue||[];return!s.value&&p.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=O(()=>e.label||(o.value?"":e.value)),l=O(()=>e.value||e.label||""),u=O(()=>e.disabled||t.groupDisabled||i.value),c=st(),f=(p=[],y)=>{if(o.value){const g=n.props.valueKey;return p&&p.some(w=>Ae(Dt(w,g))===Dt(y,g))}else return p&&p.includes(y)},d=(p,y)=>{if(o.value){const{valueKey:g}=n.props;return Dt(p,g)===Dt(y,g)}else return p===y},v=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(c.proxy))};ue(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),ue(()=>e.value,(p,y)=>{const{remote:g,valueKey:w}=n.props;if(Object.is(p,y)||(n.onOptionDestroy(y,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!g){if(w&&typeof p=="object"&&typeof y=="object"&&p[w]===y[w])return;n.setSelected()}}),ue(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:m}=Ae(n);return ue(m,p=>{const{query:y}=h(p),g=new RegExp(fE(y),"i");t.visible=g.test(a.value)||e.created,t.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:a,currentValue:l,itemSelected:s,isDisabled:u,hoverItem:v}}const kP=re({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=$e("select"),n=Et({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:r,itemSelected:o,isDisabled:s,select:i,hoverItem:a}=RP(e,n),{visible:l,hover:u}=gr(n),c=st().proxy;i.onOptionCreate(c),At(()=>{const d=c.value,{selected:v}=i,p=(i.props.multiple?v:[v]).some(y=>y.value===c.value);Re(()=>{i.cachedOptions.get(d)===c&&!p&&i.cachedOptions.delete(d)}),i.onOptionDestroy(d,c)});function f(){e.disabled!==!0&&n.groupDisabled!==!0&&i.handleOptionSelect(c,!0)}return{ns:t,currentLabel:r,itemSelected:o,isDisabled:s,select:i,hoverItem:a,visible:l,hover:u,selectOptionClick:f,states:n}}});function NP(e,t,n,r,o,s){return ct((I(),ne("li",{class:Y([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...i)=>e.hoverItem&&e.hoverItem(...i)),onClick:t[1]||(t[1]=wt((...i)=>e.selectOptionClick&&e.selectOptionClick(...i),["stop"]))},[_e(e.$slots,"default",{},()=>[fe("span",null,tt(e.currentLabel),1)])],34)),[[fn,e.visible]])}var Wu=Le(kP,[["render",NP],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const MP=re({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Oe(pa),t=$e("select"),n=O(()=>e.props.popperClass),r=O(()=>e.props.multiple),o=O(()=>e.props.fitInputWidth),s=V("");function i(){var a;s.value=`${(a=e.selectWrapper)==null?void 0:a.offsetWidth}px`}return Ue(()=>{i(),yr(e.selectWrapper,i)}),{ns:t,minWidth:s,popperClass:n,isMultiple:r,isFitInputWidth:o}}});function LP(e,t,n,r,o,s){return I(),ne("div",{class:Y([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Xe({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[_e(e.$slots,"default")],6)}var FP=Le(MP,[["render",LP],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function BP(e){const{t}=Ro();return Et({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}const zP=(e,t,n)=>{const{t:r}=Ro(),o=$e("select");bo({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},O(()=>e.suffixTransition===!1));const s=V(null),i=V(null),a=V(null),l=V(null),u=V(null),c=V(null),f=V(null),d=V(-1),v=Fn({query:""}),m=Fn(""),p=V([]);let y=0;const{form:g,formItem:w}=wr(),_=O(()=>!e.filterable||e.multiple||!t.visible),T=O(()=>e.disabled||(g==null?void 0:g.disabled)),C=O(()=>{const M=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!T.value&&t.inputHovering&&M}),P=O(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),E=O(()=>o.is("reverse",P.value&&t.visible&&e.suffixTransition)),x=O(()=>e.remote?300:0),F=O(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),R=O(()=>{const M=Array.from(t.options.values()),Z=[];return p.value.forEach(Se=>{const Pe=M.findIndex(ft=>ft.currentLabel===Se);Pe>-1&&Z.push(M[Pe])}),Z.length?Z:M}),H=O(()=>Array.from(t.cachedOptions.values())),B=O(()=>{const M=R.value.filter(Z=>!Z.created).some(Z=>Z.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!M}),A=cn(),$=O(()=>["small"].includes(A.value)?"small":"default"),K=O({get(){return t.visible&&F.value!==!1},set(M){t.visible=M}});ue([()=>T.value,()=>A.value,()=>g==null?void 0:g.size],()=>{Re(()=>{U()})}),ue(()=>e.placeholder,M=>{t.cachedPlaceHolder=t.currentPlaceholder=M}),ue(()=>e.modelValue,(M,Z)=>{e.multiple&&(U(),M&&M.length>0||i.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",k(t.query))),Fe(),e.filterable&&!e.multiple&&(t.inputLength=20),!Ol(M,Z)&&e.validateEvent&&(w==null||w.validate("change").catch(Se=>void 0))},{flush:"post",deep:!0}),ue(()=>t.visible,M=>{var Z,Se,Pe,ft,Ot;M?((Se=(Z=l.value)==null?void 0:Z.updatePopper)==null||Se.call(Z),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(ft=(Pe=a.value)==null?void 0:Pe.focus)==null||ft.call(Pe),e.multiple?(Ot=i.value)==null||Ot.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),k(t.query),!e.multiple&&!e.remote&&(v.value.query="",Bo(v),Bo(m)))):(e.filterable&&(ye(e.filterMethod)&&e.filterMethod(""),ye(e.remoteMethod)&&e.remoteMethod("")),i.value&&i.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,Be(),Re(()=>{i.value&&i.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",M)}),ue(()=>t.options.entries(),()=>{var M,Z,Se;if(!ot)return;(Z=(M=l.value)==null?void 0:M.updatePopper)==null||Z.call(M),e.multiple&&U();const Pe=((Se=c.value)==null?void 0:Se.querySelectorAll("input"))||[];Array.from(Pe).includes(document.activeElement)||Fe(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&Ee()},{flush:"post"}),ue(()=>t.hoverIndex,M=>{Ve(M)&&M>-1?d.value=R.value[M]||{}:d.value={},R.value.forEach(Z=>{Z.hover=d.value===Z})});const U=()=>{Re(()=>{var M,Z;if(!s.value)return;const Se=s.value.$el.querySelector("input");y=y||(Se.clientHeight>0?Se.clientHeight+2:0);const Pe=u.value,ft=jO(A.value||(g==null?void 0:g.size)),Ot=ft===y||y<=0?ft:y;!(Se.offsetParent===null)&&(Se.style.height=`${(t.selected.length===0?Ot:Math.max(Pe?Pe.clientHeight+(Pe.clientHeight>Ot?6:0):0,Ot))-2}px`),t.tagInMultiLine=Number.parseFloat(Se.style.height)>=Ot,t.visible&&F.value!==!1&&((Z=(M=l.value)==null?void 0:M.updatePopper)==null||Z.call(M))})},k=async M=>{if(!(t.previousQuery===M||t.isOnComposition)){if(t.previousQuery===null&&(ye(e.filterMethod)||ye(e.remoteMethod))){t.previousQuery=M;return}t.previousQuery=M,Re(()=>{var Z,Se;t.visible&&((Se=(Z=l.value)==null?void 0:Z.updatePopper)==null||Se.call(Z))}),t.hoverIndex=-1,e.multiple&&e.filterable&&Re(()=>{const Z=i.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,Z):Z,le(),U()}),e.remote&&ye(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(M)):ye(e.filterMethod)?(e.filterMethod(M),Bo(m)):(t.filteredOptionsCount=t.optionsCount,v.value.query=M,Bo(v),Bo(m)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Re(),Ee())}},le=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=i.value.value?"":t.cachedPlaceHolder)},Ee=()=>{const M=R.value.filter(Pe=>Pe.visible&&!Pe.disabled&&!Pe.states.groupDisabled),Z=M.find(Pe=>Pe.created),Se=M[0];t.hoverIndex=S(R.value,Z||Se)},Fe=()=>{var M;if(e.multiple)t.selectedLabel="";else{const Se=Te(e.modelValue);(M=Se.props)!=null&&M.created?(t.createdLabel=Se.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=Se.currentLabel,t.selected=Se,e.filterable&&(t.query=t.selectedLabel);return}const Z=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Se=>{Z.push(Te(Se))}),t.selected=Z,Re(()=>{U()})},Te=M=>{let Z;const Se=oi(M).toLowerCase()==="object",Pe=oi(M).toLowerCase()==="null",ft=oi(M).toLowerCase()==="undefined";for(let Pn=t.cachedOptions.size-1;Pn>=0;Pn--){const qt=H.value[Pn];if(Se?Dt(qt.value,e.valueKey)===Dt(M,e.valueKey):qt.value===M){Z={value:M,currentLabel:qt.currentLabel,isDisabled:qt.isDisabled};break}}if(Z)return Z;const Ot=Se?M.label:!Pe&&!ft?M:"",An={value:M,currentLabel:Ot};return e.multiple&&(An.hitState=!1),An},Be=()=>{setTimeout(()=>{const M=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(Z=>R.value.findIndex(Se=>Dt(Se,M)===Dt(Z,M)))):t.hoverIndex=-1:t.hoverIndex=R.value.findIndex(Z=>mt(Z)===mt(t.selected))},300)},Ye=()=>{var M,Z;je(),(Z=(M=l.value)==null?void 0:M.updatePopper)==null||Z.call(M),e.multiple&&U()},je=()=>{var M;t.inputWidth=(M=s.value)==null?void 0:M.$el.offsetWidth},D=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,k(t.query))},ee=Kf(()=>{D()},x.value),L=Kf(M=>{k(M.target.value)},x.value),W=M=>{Ol(e.modelValue,M)||n.emit(Hr,M)},de=M=>{if(M.target.value.length<=0&&!X()){const Z=e.modelValue.slice();Z.pop(),n.emit(Ge,Z),W(Z)}M.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)},we=(M,Z)=>{const Se=t.selected.indexOf(Z);if(Se>-1&&!T.value){const Pe=e.modelValue.slice();Pe.splice(Se,1),n.emit(Ge,Pe),W(Pe),n.emit("remove-tag",Z.value)}M.stopPropagation()},ve=M=>{M.stopPropagation();const Z=e.multiple?[]:"";if(!xe(Z))for(const Se of t.selected)Se.isDisabled&&Z.push(Se.value);n.emit(Ge,Z),W(Z),t.hoverIndex=-1,t.visible=!1,n.emit("clear")},b=(M,Z)=>{var Se;if(e.multiple){const Pe=(e.modelValue||[]).slice(),ft=S(Pe,M.value);ft>-1?Pe.splice(ft,1):(e.multipleLimit<=0||Pe.length{j(M)})},S=(M=[],Z)=>{if(!Ne(Z))return M.indexOf(Z);const Se=e.valueKey;let Pe=-1;return M.some((ft,Ot)=>Ae(Dt(ft,Se))===Dt(Z,Se)?(Pe=Ot,!0):!1),Pe},z=()=>{t.softFocus=!0;const M=i.value||s.value;M&&(M==null||M.focus())},j=M=>{var Z,Se,Pe,ft,Ot;const An=Array.isArray(M)?M[0]:M;let Pn=null;if(An!=null&&An.value){const qt=R.value.filter(_a=>_a.value===An.value);qt.length>0&&(Pn=qt[0].$el)}if(l.value&&Pn){const qt=(ft=(Pe=(Se=(Z=l.value)==null?void 0:Z.popperRef)==null?void 0:Se.contentRef)==null?void 0:Pe.querySelector)==null?void 0:ft.call(Pe,`.${o.be("dropdown","wrap")}`);qt&&hE(qt,Pn)}(Ot=f.value)==null||Ot.handleScroll()},G=M=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(M.value,M),t.cachedOptions.set(M.value,M)},Q=(M,Z)=>{t.options.get(M)===Z&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(M))},oe=M=>{M.code!==Sn.backspace&&X(!1),t.inputLength=i.value.value.length*15+20,U()},X=M=>{if(!Array.isArray(t.selected))return;const Z=t.selected[t.selected.length-1];if(Z)return M===!0||M===!1?(Z.hitState=M,M):(Z.hitState=!Z.hitState,Z.hitState)},te=M=>{const Z=M.target.value;if(M.type==="compositionend")t.isOnComposition=!1,Re(()=>k(Z));else{const Se=Z[Z.length-1]||"";t.isOnComposition=!rv(Se)}},J=()=>{Re(()=>j(t.selected))},me=M=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",M))},ae=()=>{var M,Z,Se;t.visible=!1,(M=s.value)==null||M.blur(),(Se=(Z=a.value)==null?void 0:Z.blur)==null||Se.call(Z)},N=M=>{Re(()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",M)}),t.softFocus=!1},se=M=>{ve(M)},be=()=>{t.visible=!1},ke=M=>{t.visible&&(M.preventDefault(),M.stopPropagation(),t.visible=!1)},Ie=M=>{var Z;M&&!t.mouseEnter||T.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(t.visible=!t.visible),t.visible&&((Z=i.value||s.value)==null||Z.focus()))},nt=()=>{t.visible?R.value[t.hoverIndex]&&b(R.value[t.hoverIndex],void 0):Ie()},mt=M=>Ne(M.value)?Dt(M.value,e.valueKey):M.value,hn=O(()=>R.value.filter(M=>M.visible).every(M=>M.disabled)),Xr=O(()=>t.selected.slice(0,e.maxCollapseTags)),Zt=O(()=>t.selected.slice(e.maxCollapseTags)),_r=M=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!hn.value){M==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):M==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const Z=R.value[t.hoverIndex];(Z.disabled===!0||Z.states.groupDisabled===!0||!Z.visible)&&_r(M),Re(()=>j(d.value))}};return{optionList:p,optionsArray:R,selectSize:A,handleResize:Ye,debouncedOnInputChange:ee,debouncedQueryChange:L,deletePrevTag:de,deleteTag:we,deleteSelected:ve,handleOptionSelect:b,scrollToOption:j,readonly:_,resetInputHeight:U,showClose:C,iconComponent:P,iconReverse:E,showNewOption:B,collapseTagSize:$,setSelected:Fe,managePlaceholder:le,selectDisabled:T,emptyText:F,toggleLastOptionHitState:X,resetInputState:oe,handleComposition:te,onOptionCreate:G,onOptionDestroy:Q,handleMenuEnter:J,handleFocus:me,blur:ae,handleBlur:N,handleClearClick:se,handleClose:be,handleKeydownEscape:ke,toggleMenu:Ie,selectOption:nt,getValueKey:mt,navigateOptions:_r,dropMenuVisible:K,queryChange:v,groupQueryChange:m,showTagList:Xr,collapseTagList:Zt,reference:s,input:i,iOSInput:a,tooltipRef:l,tags:u,selectWrapper:c,scrollbar:f,handleMouseEnter:()=>{t.mouseEnter=!0},handleMouseLeave:()=>{t.mouseEnter=!1}}};var DP=re({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let r=[];function o(s,i){if(s.length!==i.length)return!1;for(const[a]of s.entries())if(s[a]!=i[a])return!1;return!0}return()=>{var s,i;const a=(s=t.default)==null?void 0:s.call(t),l=[];function u(c){Array.isArray(c)&&c.forEach(f=>{var d,v,m,p;const y=(d=(f==null?void 0:f.type)||{})==null?void 0:d.name;y==="ElOptionGroup"?u(!xe(f.children)&&!Array.isArray(f.children)&&ye((v=f.children)==null?void 0:v.default)?(m=f.children)==null?void 0:m.default():f.children):y==="ElOption"?l.push((p=f.props)==null?void 0:p.label):Array.isArray(f.children)&&u(f.children)})}return a.length&&u((i=a[0])==null?void 0:i.children),o(l,r)||(r=l,n("update-options",l)),a}}});const Id="ElSelect",jP=re({name:Id,componentName:Id,components:{ElInput:Iv,ElSelectMenu:FP,ElOption:Wu,ElOptions:DP,ElTag:UA,ElScrollbar:j3,ElTooltip:Hv,ElIcon:rt},directives:{ClickOutside:wA},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:nv},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:zt.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Jt,default:Ru},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:Jt,default:Yh},tagType:{...Xv.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:aa,default:"bottom-start"}},emits:[Ge,Hr,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=$e("select"),r=$e("input"),{t:o}=Ro(),s=BP(e),{optionList:i,optionsArray:a,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:v,deletePrevTag:m,deleteTag:p,deleteSelected:y,handleOptionSelect:g,scrollToOption:w,setSelected:_,resetInputHeight:T,managePlaceholder:C,showClose:P,selectDisabled:E,iconComponent:x,iconReverse:F,showNewOption:R,emptyText:H,toggleLastOptionHitState:B,resetInputState:A,handleComposition:$,onOptionCreate:K,onOptionDestroy:U,handleMenuEnter:k,handleFocus:le,blur:Ee,handleBlur:Fe,handleClearClick:Te,handleClose:Be,handleKeydownEscape:Ye,toggleMenu:je,selectOption:D,getValueKey:ee,navigateOptions:L,dropMenuVisible:W,reference:de,input:we,iOSInput:ve,tooltipRef:b,tags:S,selectWrapper:z,scrollbar:j,queryChange:G,groupQueryChange:Q,handleMouseEnter:oe,handleMouseLeave:X,showTagList:te,collapseTagList:J}=zP(e,s,t),{focus:me}=WO(de),{inputWidth:ae,selected:N,inputLength:se,filteredOptionsCount:be,visible:ke,softFocus:Ie,selectedLabel:nt,hoverIndex:mt,query:hn,inputHovering:Xr,currentPlaceholder:Zt,menuVisibleOnFocus:_r,isOnComposition:Ct,isSilentBlur:Mt,options:M,cachedOptions:Z,optionsCount:Se,prefixWidth:Pe,tagInMultiLine:ft}=gr(s),Ot=O(()=>{const Lt=[n.b()],Sr=h(l);return Sr&&Lt.push(n.m(Sr)),e.disabled&&Lt.push(n.m("disabled")),Lt}),An=O(()=>({maxWidth:`${h(ae)-32}px`,width:"100%"})),Pn=O(()=>({maxWidth:`${h(ae)>123?h(ae)-123:h(ae)-75}px`}));at(pa,Et({props:e,options:M,optionsArray:a,cachedOptions:Z,optionsCount:Se,filteredOptionsCount:be,hoverIndex:mt,handleOptionSelect:g,onOptionCreate:K,onOptionDestroy:U,selectWrapper:z,selected:N,setSelected:_,queryChange:G,groupQueryChange:Q})),Ue(()=>{s.cachedPlaceHolder=Zt.value=e.placeholder||(()=>o("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(Zt.value=""),yr(z,c),e.remote&&e.multiple&&T(),Re(()=>{const Lt=de.value&&de.value.$el;if(Lt&&(ae.value=Lt.getBoundingClientRect().width,t.slots.prefix)){const Sr=Lt.querySelector(`.${r.e("prefix")}`);Pe.value=Math.max(Sr.getBoundingClientRect().width+5,30)}}),_()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(Ge,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(Ge,"");const qt=O(()=>{var Lt,Sr;return(Sr=(Lt=b.value)==null?void 0:Lt.popperRef)==null?void 0:Sr.contentRef});return{isIOS:Sh,onOptionsRendered:Lt=>{i.value=Lt},tagInMultiLine:ft,prefixWidth:Pe,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:v,deletePrevTag:m,deleteTag:p,deleteSelected:y,handleOptionSelect:g,scrollToOption:w,inputWidth:ae,selected:N,inputLength:se,filteredOptionsCount:be,visible:ke,softFocus:Ie,selectedLabel:nt,hoverIndex:mt,query:hn,inputHovering:Xr,currentPlaceholder:Zt,menuVisibleOnFocus:_r,isOnComposition:Ct,isSilentBlur:Mt,options:M,resetInputHeight:T,managePlaceholder:C,showClose:P,selectDisabled:E,iconComponent:x,iconReverse:F,showNewOption:R,emptyText:H,toggleLastOptionHitState:B,resetInputState:A,handleComposition:$,handleMenuEnter:k,handleFocus:le,blur:Ee,handleBlur:Fe,handleClearClick:Te,handleClose:Be,handleKeydownEscape:Ye,toggleMenu:je,selectOption:D,getValueKey:ee,navigateOptions:L,dropMenuVisible:W,focus:me,reference:de,input:we,iOSInput:ve,tooltipRef:b,popperPaneRef:qt,tags:S,selectWrapper:z,scrollbar:j,wrapperKls:Ot,selectTagsStyle:An,nsSelect:n,tagTextStyle:Pn,handleMouseEnter:oe,handleMouseLeave:X,showTagList:te,collapseTagList:J}}}),HP=["disabled","autocomplete"],VP=["disabled"],KP={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function qP(e,t,n,r,o,s){const i=Jn("el-tag"),a=Jn("el-tooltip"),l=Jn("el-icon"),u=Jn("el-input"),c=Jn("el-option"),f=Jn("el-options"),d=Jn("el-scrollbar"),v=Jn("el-select-menu"),m=Qg("click-outside");return ct((I(),ne("div",{ref:"selectWrapper",class:Y(e.wrapperKls),onMouseenter:t[21]||(t[21]=(...p)=>e.handleMouseEnter&&e.handleMouseEnter(...p)),onMouseleave:t[22]||(t[22]=(...p)=>e.handleMouseLeave&&e.handleMouseLeave(...p)),onClick:t[23]||(t[23]=wt((...p)=>e.toggleMenu&&e.toggleMenu(...p),["stop"]))},[ie(a,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:pe(()=>[fe("div",{class:"select-trigger",onMouseenter:t[19]||(t[19]=p=>e.inputHovering=!0),onMouseleave:t[20]||(t[20]=p=>e.inputHovering=!1)},[e.multiple?(I(),ne("div",{key:0,ref:"tags",class:Y([e.nsSelect.e("tags"),e.nsSelect.is("disabled",e.selectDisabled)]),style:Xe(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(I(),he(an,{key:0,onAfterLeave:e.resetInputHeight},{default:pe(()=>[fe("span",{class:Y([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(I(!0),ne(We,null,Oa(e.showTagList,p=>(I(),he(i,{key:e.getValueKey(p),closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,hit:p.hitState,type:e.tagType,"disable-transitions":"",onClose:y=>e.deleteTag(y,p)},{default:pe(()=>[fe("span",{class:Y(e.nsSelect.e("tags-text")),style:Xe(e.tagTextStyle)},tt(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(I(),he(i,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:pe(()=>[e.collapseTagsTooltip?(I(),he(a,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:pe(()=>[fe("span",{class:Y(e.nsSelect.e("tags-text"))},"+ "+tt(e.selected.length-e.maxCollapseTags),3)]),content:pe(()=>[fe("div",{class:Y(e.nsSelect.e("collapse-tags"))},[(I(!0),ne(We,null,Oa(e.collapseTagList,p=>(I(),ne("div",{key:e.getValueKey(p),class:Y(e.nsSelect.e("collapse-tag"))},[ie(i,{class:"in-tooltip",closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,hit:p.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:y=>e.deleteTag(y,p)},{default:pe(()=>[fe("span",{class:Y(e.nsSelect.e("tags-text")),style:Xe({maxWidth:e.inputWidth-75+"px"})},tt(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(I(),ne("span",{key:1,class:Y(e.nsSelect.e("tags-text"))},"+ "+tt(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):ce("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):ce("v-if",!0),e.collapseTags?ce("v-if",!0):(I(),he(an,{key:1,onAfterLeave:e.resetInputHeight},{default:pe(()=>[fe("span",{class:Y([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(I(!0),ne(We,null,Oa(e.selected,p=>(I(),he(i,{key:e.getValueKey(p),closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,hit:p.hitState,type:e.tagType,"disable-transitions":"",onClose:y=>e.deleteTag(y,p)},{default:pe(()=>[fe("span",{class:Y(e.nsSelect.e("tags-text")),style:Xe({maxWidth:e.inputWidth-75+"px"})},tt(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),e.filterable?ct((I(),ne("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=p=>e.query=p),type:"text",class:Y([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.is("disabled",e.selectDisabled)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Xe({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[1]||(t[1]=(...p)=>e.handleFocus&&e.handleFocus(...p)),onBlur:t[2]||(t[2]=(...p)=>e.handleBlur&&e.handleBlur(...p)),onKeyup:t[3]||(t[3]=(...p)=>e.managePlaceholder&&e.managePlaceholder(...p)),onKeydown:[t[4]||(t[4]=(...p)=>e.resetInputState&&e.resetInputState(...p)),t[5]||(t[5]=Tt(wt(p=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=Tt(wt(p=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=Tt((...p)=>e.handleKeydownEscape&&e.handleKeydownEscape(...p),["esc"])),t[8]||(t[8]=Tt(wt((...p)=>e.selectOption&&e.selectOption(...p),["stop","prevent"]),["enter"])),t[9]||(t[9]=Tt((...p)=>e.deletePrevTag&&e.deletePrevTag(...p),["delete"])),t[10]||(t[10]=Tt(p=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...p)=>e.handleComposition&&e.handleComposition(...p)),onCompositionupdate:t[12]||(t[12]=(...p)=>e.handleComposition&&e.handleComposition(...p)),onCompositionend:t[13]||(t[13]=(...p)=>e.handleComposition&&e.handleComposition(...p)),onInput:t[14]||(t[14]=(...p)=>e.debouncedQueryChange&&e.debouncedQueryChange(...p))},null,46,HP)),[[sb,e.query]]):ce("v-if",!0)],6)):ce("v-if",!0),ce(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(I(),ne("input",{key:1,ref:"iOSInput",class:Y([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.em("input","iOS")]),disabled:e.selectDisabled,type:"text"},null,10,VP)):ce("v-if",!0),ie(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[15]||(t[15]=p=>e.selectedLabel=p),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:Y([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[16]||(t[16]=Tt(wt(p=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[17]||(t[17]=Tt(wt(p=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Tt(wt(e.selectOption,["stop","prevent"]),["enter"]),Tt(e.handleKeydownEscape,["esc"]),t[18]||(t[18]=Tt(p=>e.visible=!1,["tab"]))]},zp({suffix:pe(()=>[e.iconComponent&&!e.showClose?(I(),he(l,{key:0,class:Y([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:pe(()=>[(I(),he(dt(e.iconComponent)))]),_:1},8,["class"])):ce("v-if",!0),e.showClose&&e.clearIcon?(I(),he(l,{key:1,class:Y([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:pe(()=>[(I(),he(dt(e.clearIcon)))]),_:1},8,["class","onClick"])):ce("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:pe(()=>[fe("div",KP,[_e(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:pe(()=>[ie(v,null,{default:pe(()=>[ct(ie(d,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:Y([e.nsSelect.is("empty",!e.allowCreate&&!!e.query&&e.filteredOptionsCount===0)])},{default:pe(()=>[e.showNewOption?(I(),he(c,{key:0,value:e.query,created:!0},null,8,["value"])):ce("v-if",!0),ie(f,{onUpdateOptions:e.onOptionsRendered},{default:pe(()=>[_e(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[fn,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(I(),ne(We,{key:0},[e.$slots.empty?_e(e.$slots,"empty",{key:0}):(I(),ne("p",{key:1,class:Y(e.nsSelect.be("dropdown","empty"))},tt(e.emptyText),3))],64)):ce("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[m,e.handleClose,e.popperPaneRef]])}var UP=Le(jP,[["render",qP],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const WP=re({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=$e("select"),n=V(!0),r=st(),o=V([]);at(em,Et({...gr(e)}));const s=Oe(pa);Ue(()=>{o.value=i(r.subTree)});const i=l=>{const u=[];return Array.isArray(l.children)&&l.children.forEach(c=>{var f;c.type&&c.type.name==="ElOption"&&c.component&&c.component.proxy?u.push(c.component.proxy):(f=c.children)!=null&&f.length&&u.push(...i(c))}),u},{groupQueryChange:a}=Ae(s);return ue(a,()=>{n.value=o.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function GP(e,t,n,r,o,s){return ct((I(),ne("ul",{class:Y(e.ns.be("group","wrap"))},[fe("li",{class:Y(e.ns.be("group","title"))},tt(e.label),3),fe("li",null,[fe("ul",{class:Y(e.ns.b("group"))},[_e(e.$slots,"default")],2)])],2)),[[fn,e.visible]])}var tm=Le(WP,[["render",GP],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const iI=yt(UP,{Option:Wu,OptionGroup:tm}),aI=Jr(Wu);Jr(tm);const YP=Me({trigger:Os.trigger,placement:Ka.placement,disabled:Os.disabled,visible:zt.visible,transition:zt.transition,popperOptions:Ka.popperOptions,tabindex:Ka.tabindex,content:zt.content,popperStyle:zt.popperStyle,popperClass:zt.popperClass,enterable:{...zt.enterable,default:!0},effect:{...zt.effect,default:"light"},teleported:zt.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),JP={"update:visible":e=>Kt(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},XP="onUpdate:visible",QP=re({name:"ElPopover"}),ZP=re({...QP,props:YP,emits:JP,setup(e,{expose:t,emit:n}){const r=e,o=O(()=>r[XP]),s=$e("popover"),i=V(),a=O(()=>{var y;return(y=h(i))==null?void 0:y.popperRef}),l=O(()=>[{width:On(r.width)},r.popperStyle]),u=O(()=>[s.b(),r.popperClass,{[s.m("plain")]:!!r.content}]),c=O(()=>r.transition===`${s.namespace.value}-fade-in-linear`),f=()=>{var y;(y=i.value)==null||y.hide()},d=()=>{n("before-enter")},v=()=>{n("before-leave")},m=()=>{n("after-enter")},p=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:a,hide:f}),(y,g)=>(I(),he(h(Hv),wn({ref_key:"tooltipRef",ref:i},y.$attrs,{trigger:y.trigger,placement:y.placement,disabled:y.disabled,visible:y.visible,transition:y.transition,"popper-options":y.popperOptions,tabindex:y.tabindex,content:y.content,offset:y.offset,"show-after":y.showAfter,"hide-after":y.hideAfter,"auto-close":y.autoClose,"show-arrow":y.showArrow,"aria-label":y.title,effect:y.effect,enterable:y.enterable,"popper-class":h(u),"popper-style":h(l),teleported:y.teleported,persistent:y.persistent,"gpu-acceleration":h(c),"onUpdate:visible":h(o),onBeforeShow:d,onBeforeHide:v,onShow:m,onHide:p}),{content:pe(()=>[y.title?(I(),ne("div",{key:0,class:Y(h(s).e("title")),role:"title"},tt(y.title),3)):ce("v-if",!0),_e(y.$slots,"default",{},()=>[Rs(tt(y.content),1)])]),default:pe(()=>[y.$slots.reference?_e(y.$slots,"reference",{key:0}):ce("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var e$=Le(ZP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const Rd=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var t$={mounted(e,t){Rd(e,t)},updated(e,t){Rd(e,t)}};const n$="popover",r$=BO(t$,n$),lI=yt(e$,{directive:r$}),o$=Me({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:Jt},inactiveIcon:{type:Jt},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:Ce(Function)},size:{type:String,validator:nv},tabindex:{type:[String,Number]}}),s$={[Ge]:e=>Kt(e)||xe(e)||Ve(e),[Hr]:e=>Kt(e)||xe(e)||Ve(e),[zr]:e=>Kt(e)||xe(e)||Ve(e)},i$=["onClick"],a$=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],l$=["aria-hidden"],u$=["aria-hidden"],c$=["aria-hidden"],Ll="ElSwitch",f$=re({name:Ll}),d$=re({...f$,props:o$,emits:s$,setup(e,{expose:t,emit:n}){const r=e,o=st(),{formItem:s}=wr(),i=cn(),a=$e("switch");bo({from:'"value"',replacement:'"model-value" or "v-model"',scope:Ll,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},O(()=>{var C;return!!((C=o.vnode.props)!=null&&C.value)}));const{inputId:l}=fa(r,{formItemContext:s}),u=Mo(O(()=>r.loading)),c=V(r.modelValue!==!1),f=V(),d=V(),v=O(()=>[a.b(),a.m(i.value),a.is("disabled",u.value),a.is("checked",y.value)]),m=O(()=>({width:On(r.width)}));ue(()=>r.modelValue,()=>{c.value=!0}),ue(()=>r.value,()=>{c.value=!1});const p=O(()=>c.value?r.modelValue:r.value),y=O(()=>p.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(p.value)||(n(Ge,r.inactiveValue),n(Hr,r.inactiveValue),n(zr,r.inactiveValue)),ue(y,C=>{var P;f.value.checked=C,r.validateEvent&&((P=s==null?void 0:s.validate)==null||P.call(s,"change").catch(E=>void 0))});const g=()=>{const C=y.value?r.inactiveValue:r.activeValue;n(Ge,C),n(Hr,C),n(zr,C),Re(()=>{f.value.checked=y.value})},w=()=>{if(u.value)return;const{beforeChange:C}=r;if(!C){g();return}const P=C();[yi(P),Kt(P)].includes(!0)||Yr(Ll,"beforeChange must return type `Promise` or `boolean`"),yi(P)?P.then(x=>{x&&g()}).catch(x=>{}):P&&g()},_=O(()=>a.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),T=()=>{var C,P;(P=(C=f.value)==null?void 0:C.focus)==null||P.call(C)};return Ue(()=>{f.value.checked=y.value}),t({focus:T,checked:y}),(C,P)=>(I(),ne("div",{class:Y(h(v)),style:Xe(h(_)),onClick:wt(w,["prevent"])},[fe("input",{id:h(l),ref_key:"input",ref:f,class:Y(h(a).e("input")),type:"checkbox",role:"switch","aria-checked":h(y),"aria-disabled":h(u),name:C.name,"true-value":C.activeValue,"false-value":C.inactiveValue,disabled:h(u),tabindex:C.tabindex,onChange:g,onKeydown:Tt(w,["enter"])},null,42,a$),!C.inlinePrompt&&(C.inactiveIcon||C.inactiveText)?(I(),ne("span",{key:0,class:Y([h(a).e("label"),h(a).em("label","left"),h(a).is("active",!h(y))])},[C.inactiveIcon?(I(),he(h(rt),{key:0},{default:pe(()=>[(I(),he(dt(C.inactiveIcon)))]),_:1})):ce("v-if",!0),!C.inactiveIcon&&C.inactiveText?(I(),ne("span",{key:1,"aria-hidden":h(y)},tt(C.inactiveText),9,l$)):ce("v-if",!0)],2)):ce("v-if",!0),fe("span",{ref_key:"core",ref:d,class:Y(h(a).e("core")),style:Xe(h(m))},[C.inlinePrompt?(I(),ne("div",{key:0,class:Y(h(a).e("inner"))},[C.activeIcon||C.inactiveIcon?(I(),he(h(rt),{key:0,class:Y(h(a).is("icon"))},{default:pe(()=>[(I(),he(dt(h(y)?C.activeIcon:C.inactiveIcon)))]),_:1},8,["class"])):C.activeText||C.inactiveText?(I(),ne("span",{key:1,class:Y(h(a).is("text")),"aria-hidden":!h(y)},tt(h(y)?C.activeText:C.inactiveText),11,u$)):ce("v-if",!0)],2)):ce("v-if",!0),fe("div",{class:Y(h(a).e("action"))},[C.loading?(I(),he(h(rt),{key:0,class:Y(h(a).is("loading"))},{default:pe(()=>[ie(h(ku))]),_:1},8,["class"])):ce("v-if",!0)],2)],6),!C.inlinePrompt&&(C.activeIcon||C.activeText)?(I(),ne("span",{key:1,class:Y([h(a).e("label"),h(a).em("label","right"),h(a).is("active",h(y))])},[C.activeIcon?(I(),he(h(rt),{key:0},{default:pe(()=>[(I(),he(dt(C.activeIcon)))]),_:1})):ce("v-if",!0),!C.activeIcon&&C.activeText?(I(),ne("span",{key:1,"aria-hidden":!h(y)},tt(C.activeText),9,c$)):ce("v-if",!0)],2)):ce("v-if",!0)],14,i$))}});var p$=Le(d$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const uI=yt(p$),ha=Symbol("tabsRootContextKey"),h$=Me({tabs:{type:Ce(Array),default:()=>ia([])}}),nm="ElTabBar",v$=re({name:nm}),m$=re({...v$,props:h$,setup(e,{expose:t}){const n=e,r=st(),o=Oe(ha);o||Yr(nm,"");const s=$e("tabs"),i=V(),a=V(),l=()=>{let c=0,f=0;const d=["top","bottom"].includes(o.props.tabPosition)?"width":"height",v=d==="width"?"x":"y",m=v==="x"?"left":"top";return n.tabs.every(p=>{var y,g;const w=(g=(y=r.parent)==null?void 0:y.refs)==null?void 0:g[`tab-${p.uid}`];if(!w)return!1;if(!p.active)return!0;c=w[`offset${ar(m)}`],f=w[`client${ar(d)}`];const _=window.getComputedStyle(w);return d==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(_.paddingLeft)+Number.parseFloat(_.paddingRight)),c+=Number.parseFloat(_.paddingLeft)),!1}),{[d]:`${f}px`,transform:`translate${ar(v)}(${c}px)`}},u=()=>a.value=l();return ue(()=>n.tabs,async()=>{await Re(),u()},{immediate:!0}),yr(i,()=>u()),t({ref:i,update:u}),(c,f)=>(I(),ne("div",{ref_key:"barRef",ref:i,class:Y([h(s).e("active-bar"),h(s).is(h(o).props.tabPosition)]),style:Xe(a.value)},null,6))}});var g$=Le(m$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const y$=Me({panes:{type:Ce(Array),default:()=>ia([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),b$={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},kd="ElTabNav",w$=re({name:kd,props:y$,emits:b$,setup(e,{expose:t,emit:n}){const r=st(),o=Oe(ha);o||Yr(kd,"");const s=$e("tabs"),i=k0(),a=H0(),l=V(),u=V(),c=V(),f=V(),d=V(!1),v=V(0),m=V(!1),p=V(!0),y=O(()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height"),g=O(()=>({transform:`translate${y.value==="width"?"X":"Y"}(-${v.value}px)`})),w=()=>{if(!l.value)return;const F=l.value[`offset${ar(y.value)}`],R=v.value;if(!R)return;const H=R>F?R-F:0;v.value=H},_=()=>{if(!l.value||!u.value)return;const F=u.value[`offset${ar(y.value)}`],R=l.value[`offset${ar(y.value)}`],H=v.value;if(F-H<=R)return;const B=F-H>R*2?H+R:F-R;v.value=B},T=async()=>{const F=u.value;if(!d.value||!c.value||!l.value||!F)return;await Re();const R=c.value.querySelector(".is-active");if(!R)return;const H=l.value,B=["top","bottom"].includes(o.props.tabPosition),A=R.getBoundingClientRect(),$=H.getBoundingClientRect(),K=B?F.offsetWidth-$.width:F.offsetHeight-$.height,U=v.value;let k=U;B?(A.left<$.left&&(k=U-($.left-A.left)),A.right>$.right&&(k=U+A.right-$.right)):(A.top<$.top&&(k=U-($.top-A.top)),A.bottom>$.bottom&&(k=U+(A.bottom-$.bottom))),k=Math.max(k,0),v.value=Math.min(k,K)},C=()=>{var F;if(!u.value||!l.value)return;e.stretch&&((F=f.value)==null||F.update());const R=u.value[`offset${ar(y.value)}`],H=l.value[`offset${ar(y.value)}`],B=v.value;H0&&(v.value=0))},P=F=>{const R=F.code,{up:H,down:B,left:A,right:$}=Sn;if(![H,B,A,$].includes(R))return;const K=Array.from(F.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),U=K.indexOf(F.target);let k;R===A||R===H?U===0?k=K.length-1:k=U-1:U{p.value&&(m.value=!0)},x=()=>m.value=!1;return ue(i,F=>{F==="hidden"?p.value=!1:F==="visible"&&setTimeout(()=>p.value=!0,50)}),ue(a,F=>{F?setTimeout(()=>p.value=!0,50):p.value=!1}),yr(c,C),Ue(()=>setTimeout(()=>T(),0)),Kr(()=>C()),t({scrollToActiveTab:T,removeFocus:x}),ue(()=>e.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const F=d.value?[ie("span",{class:[s.e("nav-prev"),s.is("disabled",!d.value.prev)],onClick:w},[ie(rt,null,{default:()=>[ie(OE,null,null)]})]),ie("span",{class:[s.e("nav-next"),s.is("disabled",!d.value.next)],onClick:_},[ie(rt,null,{default:()=>[ie(IE,null,null)]})])]:null,R=e.panes.map((H,B)=>{var A,$,K,U;const k=H.uid,le=H.props.disabled,Ee=($=(A=H.props.name)!=null?A:H.index)!=null?$:`${B}`,Fe=!le&&(H.isClosable||e.editable);H.index=`${B}`;const Te=Fe?ie(rt,{class:"is-icon-close",onClick:je=>n("tabRemove",H,je)},{default:()=>[ie(ws,null,null)]}):null,Be=((U=(K=H.slots).label)==null?void 0:U.call(K))||H.props.label,Ye=!le&&H.active?0:-1;return ie("div",{ref:`tab-${k}`,class:[s.e("item"),s.is(o.props.tabPosition),s.is("active",H.active),s.is("disabled",le),s.is("closable",Fe),s.is("focus",m.value)],id:`tab-${Ee}`,key:`tab-${k}`,"aria-controls":`pane-${Ee}`,role:"tab","aria-selected":H.active,tabindex:Ye,onFocus:()=>E(),onBlur:()=>x(),onClick:je=>{x(),n("tabClick",H,Ee,je)},onKeydown:je=>{Fe&&(je.code===Sn.delete||je.code===Sn.backspace)&&n("tabRemove",H,je)}},[Be,Te])});return ie("div",{ref:c,class:[s.e("nav-wrap"),s.is("scrollable",!!d.value),s.is(o.props.tabPosition)]},[F,ie("div",{class:s.e("nav-scroll"),ref:l},[ie("div",{class:[s.e("nav"),s.is(o.props.tabPosition),s.is("stretch",e.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:u,style:g.value,role:"tablist",onKeydown:P},[e.type?null:ie(g$,{ref:f,tabs:[...e.panes]},null),R])])])}}}),_$=Me({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Ce(Function),default:()=>!0},stretch:Boolean}),qa=e=>xe(e)||Ve(e),S$={[Ge]:e=>qa(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>qa(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>qa(e),tabAdd:()=>!0};var E$=re({name:"ElTabs",props:_$,emits:S$,setup(e,{emit:t,slots:n,expose:r}){var o,s;const i=$e("tabs"),{children:a,addChild:l,removeChild:u}=m4(st(),"ElTabPane"),c=V(),f=V((s=(o=e.modelValue)!=null?o:e.activeName)!=null?s:"0"),d=g=>{f.value=g,t(Ge,g),t("tabChange",g)},v=async g=>{var w,_,T;if(!(f.value===g||yn(g)))try{await((w=e.beforeLeave)==null?void 0:w.call(e,g,f.value))!==!1&&(d(g),(T=(_=c.value)==null?void 0:_.removeFocus)==null||T.call(_))}catch{}},m=(g,w,_)=>{g.props.disabled||(v(w),t("tabClick",g,_))},p=(g,w)=>{g.props.disabled||yn(g.props.name)||(w.stopPropagation(),t("edit",g.props.name,"remove"),t("tabRemove",g.props.name))},y=()=>{t("edit",void 0,"add"),t("tabAdd")};return bo({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},O(()=>!!e.activeName)),ue(()=>e.activeName,g=>v(g)),ue(()=>e.modelValue,g=>v(g)),ue(f,async()=>{var g;await Re(),(g=c.value)==null||g.scrollToActiveTab()}),at(ha,{props:e,currentName:f,registerPane:l,unregisterPane:u}),r({currentName:f}),()=>{const g=e.editable||e.addable?ie("span",{class:i.e("new-tab"),tabindex:"0",onClick:y,onKeydown:T=>{T.code===Sn.enter&&y()}},[ie(rt,{class:i.is("icon-plus")},{default:()=>[ie(Qh,null,null)]})]):null,w=ie("div",{class:[i.e("header"),i.is(e.tabPosition)]},[g,ie(w$,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:a.value,stretch:e.stretch,onTabClick:m,onTabRemove:p},null)]),_=ie("div",{class:i.e("content")},[_e(n,"default")]);return ie("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:e.type==="card",[i.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[w,_]:[_,w]])}}});const C$=Me({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),O$=["id","aria-hidden","aria-labelledby"],rm="ElTabPane",T$=re({name:rm}),x$=re({...T$,props:C$,setup(e){const t=e,n=st(),r=Ur(),o=Oe(ha);o||Yr(rm,"usage: ");const s=$e("tab-pane"),i=V(),a=O(()=>t.closable||o.props.closable),l=rf(()=>{var v;return o.currentName.value===((v=t.name)!=null?v:i.value)}),u=V(l.value),c=O(()=>{var v;return(v=t.name)!=null?v:i.value}),f=rf(()=>!t.lazy||u.value||l.value);ue(l,v=>{v&&(u.value=!0)});const d=Et({uid:n.uid,slots:r,props:t,paneName:c,active:l,index:i,isClosable:a});return Ue(()=>{o.registerPane(d)}),qr(()=>{o.unregisterPane(d.uid)}),(v,m)=>h(f)?ct((I(),ne("div",{key:0,id:`pane-${h(c)}`,class:Y(h(s).b()),role:"tabpanel","aria-hidden":!h(l),"aria-labelledby":`tab-${h(c)}`},[_e(v.$slots,"default")],10,O$)),[[fn,h(l)]]):ce("v-if",!0)}});var om=Le(x$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const cI=yt(E$,{TabPane:om}),fI=Jr(om),A$=Me({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Io,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),P$=re({name:"ElText"}),$$=re({...P$,props:A$,setup(e){const t=e,n=cn(),r=$e("text"),o=O(()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated)]);return(s,i)=>(I(),he(dt(s.tag),{class:Y(h(o))},{default:pe(()=>[_e(s.$slots,"default")]),_:3},8,["class"]))}});var I$=Le($$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const dI=yt(I$);function R$(e){let t;const n=V(!1),r=Et({...e,originalPosition:"",originalOverflow:"",visible:!1});function o(d){r.text=d}function s(){const d=r.parent,v=f.ns;if(!d.vLoadingAddClassList){let m=d.getAttribute("loading-number");m=Number.parseInt(m)-1,m?d.setAttribute("loading-number",m.toString()):(bs(d,v.bm("parent","relative")),d.removeAttribute("loading-number")),bs(d,v.bm("parent","hidden"))}i(),c.unmount()}function i(){var d,v;(v=(d=f.$el)==null?void 0:d.parentNode)==null||v.removeChild(f.$el)}function a(){var d;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(l,400),r.visible=!1,(d=e.closed)==null||d.call(e))}function l(){if(!n.value)return;const d=r.parent;n.value=!1,d.vLoadingAddClassList=void 0,s()}const u=re({name:"ElLoading",setup(d,{expose:v}){const{ns:m}=xv("loading"),p=ua();return v({ns:m,zIndex:p}),()=>{const y=r.spinner||r.svg,g=Mn("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[Mn("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),w=r.text?Mn("p",{class:m.b("text")},[r.text]):void 0;return Mn(an,{name:m.b("fade"),onAfterLeave:l},{default:pe(()=>[ct(ie("div",{style:{backgroundColor:r.background||""},class:[m.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[Mn("div",{class:m.b("spinner")},[g,w])]),[[fn,r.visible]])])})}}}),c=fb(u),f=c.mount(document.createElement("div"));return{...gr(r),setText:o,removeElLoadingChild:i,close:a,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let ti;const Fl=function(e={}){if(!ot)return;const t=k$(e);if(t.fullscreen&&ti)return ti;const n=R$({...t,closed:()=>{var o;(o=t.closed)==null||o.call(t),t.fullscreen&&(ti=void 0)}});N$(t,t.parent,n),Nd(t,t.parent,n),t.parent.vLoadingAddClassList=()=>Nd(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),Re(()=>n.visible.value=t.visible),t.fullscreen&&(ti=n),n},k$=e=>{var t,n,r,o;let s;return xe(e.target)?s=(t=document.querySelector(e.target))!=null?t:document.body:s=e.target||document.body,{parent:s===document.body||e.body?document.body:s,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:s===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(o=e.visible)!=null?o:!0,target:s}},N$=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex,o={};if(e.fullscreen)n.originalPosition.value=oo(document.body,"position"),n.originalOverflow.value=oo(document.body,"overflow"),o.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=oo(document.body,"position"),await Re();for(const s of["top","left"]){const i=s==="top"?"scrollTop":"scrollLeft";o[s]=`${e.target.getBoundingClientRect()[s]+document.body[i]+document.documentElement[i]-Number.parseInt(oo(document.body,`margin-${s}`),10)}px`}for(const s of["height","width"])o[s]=`${e.target.getBoundingClientRect()[s]}px`}else n.originalPosition.value=oo(t,"position");for(const[s,i]of Object.entries(o))n.$el.style[s]=i},Nd=(e,t,n)=>{const r=n.vm.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?bs(t,r.bm("parent","relative")):Tl(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Tl(t,r.bm("parent","hidden")):bs(t,r.bm("parent","hidden"))},Bl=Symbol("ElLoading"),Md=(e,t)=>{var n,r,o,s;const i=t.instance,a=d=>Ne(t.value)?t.value[d]:void 0,l=d=>{const v=xe(d)&&(i==null?void 0:i[d])||d;return v&&V(v)},u=d=>l(a(d)||e.getAttribute(`element-loading-${mr(d)}`)),c=(n=a("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(r=a("target"))!=null?r:c?void 0:e,body:(o=a("body"))!=null?o:t.modifiers.body,lock:(s=a("lock"))!=null?s:t.modifiers.lock};e[Bl]={options:f,instance:Fl(f)}},M$=(e,t)=>{for(const n of Object.keys(t))qe(t[n])&&(t[n].value=e[n])},Ld={mounted(e,t){t.value&&Md(e,t)},updated(e,t){const n=e[Bl];t.oldValue!==t.value&&(t.value&&!t.oldValue?Md(e,t):t.value&&t.oldValue?Ne(t.value)&&M$(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Bl])==null||t.instance.close()}},pI={install(e){e.directive("loading",Ld),e.config.globalProperties.$loading=Fl},directive:Ld,service:Fl},sm=["success","info","warning","error"],$t=ia({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:ot?document.body:void 0}),L$=Me({customClass:{type:String,default:$t.customClass},center:{type:Boolean,default:$t.center},dangerouslyUseHTMLString:{type:Boolean,default:$t.dangerouslyUseHTMLString},duration:{type:Number,default:$t.duration},icon:{type:Jt,default:$t.icon},id:{type:String,default:$t.id},message:{type:Ce([String,Object,Function]),default:$t.message},onClose:{type:Ce(Function),required:!1},showClose:{type:Boolean,default:$t.showClose},type:{type:String,values:sm,default:$t.type},offset:{type:Number,default:$t.offset},zIndex:{type:Number,default:$t.zIndex},grouping:{type:Boolean,default:$t.grouping},repeatNum:{type:Number,default:$t.repeatNum}}),F$={destroy:()=>!0},on=yp([]),B$=e=>{const t=on.findIndex(o=>o.id===e),n=on[t];let r;return t>0&&(r=on[t-1]),{current:n,prev:r}},z$=e=>{const{prev:t}=B$(e);return t?t.vm.exposed.bottom.value:0},D$=(e,t)=>on.findIndex(r=>r.id===e)>0?20:t,j$=["id"],H$=["innerHTML"],V$=re({name:"ElMessage"}),K$=re({...V$,props:L$,emits:F$,setup(e,{expose:t}){const n=e,{Close:r}=MO,{ns:o,zIndex:s}=xv("message"),{currentZIndex:i,nextZIndex:a}=s,l=V(),u=V(!1),c=V(0);let f;const d=O(()=>n.type?n.type==="error"?"danger":n.type:"info"),v=O(()=>{const E=n.type;return{[o.bm("icon",E)]:E&&Wf[E]}}),m=O(()=>n.icon||Wf[n.type]||""),p=O(()=>z$(n.id)),y=O(()=>D$(n.id,n.offset)+p.value),g=O(()=>c.value+y.value),w=O(()=>({top:`${y.value}px`,zIndex:i.value}));function _(){n.duration!==0&&({stop:f}=yl(()=>{C()},n.duration))}function T(){f==null||f()}function C(){u.value=!1}function P({code:E}){E===Sn.esc&&C()}return Ue(()=>{_(),a(),u.value=!0}),ue(()=>n.repeatNum,()=>{T(),_()}),_n(document,"keydown",P),yr(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:g,close:C}),(E,x)=>(I(),he(an,{name:h(o).b("fade"),onBeforeLeave:E.onClose,onAfterLeave:x[0]||(x[0]=F=>E.$emit("destroy")),persisted:""},{default:pe(()=>[ct(fe("div",{id:E.id,ref_key:"messageRef",ref:l,class:Y([h(o).b(),{[h(o).m(E.type)]:E.type&&!E.icon},h(o).is("center",E.center),h(o).is("closable",E.showClose),E.customClass]),style:Xe(h(w)),role:"alert",onMouseenter:T,onMouseleave:_},[E.repeatNum>1?(I(),he(h(Gx),{key:0,value:E.repeatNum,type:h(d),class:Y(h(o).e("badge"))},null,8,["value","type","class"])):ce("v-if",!0),h(m)?(I(),he(h(rt),{key:1,class:Y([h(o).e("icon"),h(v)])},{default:pe(()=>[(I(),he(dt(h(m))))]),_:1},8,["class"])):ce("v-if",!0),_e(E.$slots,"default",{},()=>[E.dangerouslyUseHTMLString?(I(),ne(We,{key:1},[ce(" Caution here, message could've been compromised, never use user's input as message "),fe("p",{class:Y(h(o).e("content")),innerHTML:E.message},null,10,H$)],2112)):(I(),ne("p",{key:0,class:Y(h(o).e("content"))},tt(E.message),3))]),E.showClose?(I(),he(h(rt),{key:2,class:Y(h(o).e("closeBtn")),onClick:wt(C,["stop"])},{default:pe(()=>[ie(h(r))]),_:1},8,["class","onClick"])):ce("v-if",!0)],46,j$),[[fn,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var q$=Le(K$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let U$=1;const im=e=>{const t=!e||xe(e)||Hn(e)||ye(e)?{message:e}:e,n={...$t,...t};if(!n.appendTo)n.appendTo=document.body;else if(xe(n.appendTo)){let r=document.querySelector(n.appendTo);yo(r)||(r=document.body),n.appendTo=r}return n},W$=e=>{const t=on.indexOf(e);if(t===-1)return;on.splice(t,1);const{handler:n}=e;n.close()},G$=({appendTo:e,...t},n)=>{const r=`message_${U$++}`,o=t.onClose,s=document.createElement("div"),i={...t,id:r,onClose:()=>{o==null||o(),W$(c)},onDestroy:()=>{Bc(null,s)}},a=ie(q$,i,ye(i.message)||Hn(i.message)?{default:ye(i.message)?i.message:()=>i.message}:null);a.appContext=n||Oo._context,Bc(a,s),e.appendChild(s.firstElementChild);const l=a.component,c={id:r,vnode:a,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:a.component.props};return c},Oo=(e={},t)=>{if(!ot)return{close:()=>{}};if(Ve(Al.max)&&on.length>=Al.max)return{close:()=>{}};const n=im(e);if(n.grouping&&on.length){const o=on.find(({vnode:s})=>{var i;return((i=s.props)==null?void 0:i.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}const r=G$(n,t);return on.push(r),r.handler};sm.forEach(e=>{Oo[e]=(t={},n)=>{const r=im(t);return Oo({...r,type:e},n)}});function Y$(e){for(const t of on)(!e||e===t.props.type)&&t.handler.close()}Oo.closeAll=Y$;Oo._context=null;const hI=FO(Oo,"$message");function Fd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ni(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nthis.range.start)){var r=Math.max(n-this.param.buffer,0);this.checkRange(r,this.getEndByStart(r))}}},{key:"handleBehind",value:function(){var n=this.getScrollOvers();nn&&(i=o-1)}return r>0?--r:0}},{key:"getIndexOffset",value:function(n){if(!n)return 0;for(var r=0,o=0,s=0;s=U&&r("tobottom")},g=function($){var K=v(),U=m(),k=p();K<0||K+U>k+1||!k||(f.handleScroll(K),y(K,U,k,$))},w=function(){var $=t.dataKey,K=t.dataSources,U=K===void 0?[]:K;return U.map(function(k){return typeof $=="function"?$(k):k[$]})},_=function($){l.value=$},T=function(){f=new o8({slotHeaderSize:0,slotFooterSize:0,keeps:t.keeps,estimateSize:t.estimateSize,buffer:Math.round(t.keeps/3),uniqueIds:w()},_),l.value=f.getRange()},C=function($){if($>=t.dataSources.length-1)R();else{var K=f.getOffset($);P(K)}},P=function($){t.pageMode?(document.body[a]=$,document.documentElement[a]=$):u.value&&(u.value[a]=$)},E=function(){for(var $=[],K=l.value,U=K.start,k=K.end,le=t.dataSources,Ee=t.dataKey,Fe=t.itemClass,Te=t.itemTag,Be=t.itemStyle,Ye=t.extraProps,je=t.dataComponent,D=t.itemScopedSlots,ee=U;ee<=k;ee++){var L=le[ee];if(L){var W=typeof Ee=="function"?Ee(L):L[Ee];typeof W=="string"||typeof W=="number"?$.push(ie(l8,{index:ee,tag:Te,event:rs.ITEM,horizontal:i,uniqueKey:W,source:L,extraProps:Ye,component:je,scopedSlots:D,style:Be,class:"".concat(Fe).concat(t.itemClassAdd?" "+t.itemClassAdd(ee):""),onItemResize:x},null)):console.warn("Cannot get the data-key '".concat(Ee,"' from data-sources."))}else console.warn("Cannot get the index '".concat(ee,"' from data-sources."))}return $},x=function($,K){f.saveSize($,K),r("resized",$,K)},F=function($,K,U){$===ao.HEADER?f.updateParam("slotHeaderSize",K):$===ao.FOOTER&&f.updateParam("slotFooterSize",K),U&&f.handleSlotSizeChange()},R=function A(){if(c.value){var $=c.value[i?"offsetLeft":"offsetTop"];P($),setTimeout(function(){v()+m()`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function hd(e,t=1,n){var r;en||(en=document.createElement("textarea"),document.body.appendChild(en));const{paddingSize:o,borderSize:s,boxSizing:i,contextStyle:a}=y3(e);en.setAttribute("style",`${a};${m3}`),en.value=e.value||e.placeholder||"";let l=en.scrollHeight;const u={};i==="border-box"?l=l+s:i==="content-box"&&(l=l-o),en.value="";const c=en.scrollHeight-o;if(Ve(t)){let f=c*t;i==="border-box"&&(f=f+o+s),l=Math.max(f,l),u.minHeight=`${f}px`}if(Ve(n)){let f=c*n;i==="border-box"&&(f=f+o+s),l=Math.min(f,l)}return u.height=`${l}px`,(r=en.parentNode)==null||r.removeChild(en),en=void 0,u}const b3=Me({id:{type:String,default:void 0},size:ko,disabled:Boolean,modelValue:{type:Ce([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ce([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:Jt},prefixIcon:{type:Jt},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:Ce([Object,Array,String]),default:()=>ia({})}}),w3={[Ge]: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},_3=["role"],S3=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],E3=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],C3=re({name:"ElInput",inheritAttrs:!1}),O3=re({...C3,props:b3,emits:w3,setup(e,{expose:t,emit:n}){const r=e,o=Py(),s=Ur(),i=O(()=>{const N={};return r.containerRole==="combobox"&&(N["aria-haspopup"]=o["aria-haspopup"],N["aria-owns"]=o["aria-owns"],N["aria-expanded"]=o["aria-expanded"]),N}),a=O(()=>[r.type==="textarea"?y.b():p.b(),p.m(v.value),p.is("disabled",m.value),p.is("exceed",Te.value),{[p.b("group")]:s.prepend||s.append,[p.bm("group","append")]:s.append,[p.bm("group","prepend")]:s.prepend,[p.m("prefix")]:s.prefix||r.prefixIcon,[p.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[p.bm("suffix","password-clear")]:k.value&&le.value},o.class]),l=O(()=>[p.e("wrapper"),p.is("focus",_.value)]),u=qO({excludeKeys:O(()=>Object.keys(i.value))}),{form:c,formItem:f}=wr(),{inputId:d}=fa(r,{formItemContext:f}),v=cn(),m=Mo(),p=$e("input"),y=$e("textarea"),g=Fn(),w=Fn(),_=V(!1),T=V(!1),C=V(!1),P=V(!1),E=V(),x=Fn(r.inputStyle),F=O(()=>g.value||w.value),R=O(()=>{var N;return(N=c==null?void 0:c.statusIcon)!=null?N:!1}),H=O(()=>(f==null?void 0:f.validateState)||""),B=O(()=>H.value&&LO[H.value]),A=O(()=>P.value?xO:zC),$=O(()=>[o.style,r.inputStyle]),K=O(()=>[r.inputStyle,x.value,{resize:r.resize}]),U=O(()=>zn(r.modelValue)?"":String(r.modelValue)),k=O(()=>r.clearable&&!m.value&&!r.readonly&&!!U.value&&(_.value||T.value)),le=O(()=>r.showPassword&&!m.value&&!r.readonly&&!!U.value&&(!!U.value||_.value)),Ee=O(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!m.value&&!r.readonly&&!r.showPassword),Fe=O(()=>U.value.length),Te=O(()=>!!Ee.value&&Fe.value>Number(u.value.maxlength)),Be=O(()=>!!s.suffix||!!r.suffixIcon||k.value||r.showPassword||Ee.value||!!H.value&&R.value),[Ye,je]=h4(g);yr(w,N=>{if(L(),!Ee.value||r.resize!=="both")return;const se=N[0],{width:be}=se.contentRect;E.value={right:`calc(100% - ${be+15+6}px)`}});const D=()=>{const{type:N,autosize:se}=r;if(!(!ot||N!=="textarea"||!w.value))if(se){const be=Ne(se)?se.minRows:void 0,ke=Ne(se)?se.maxRows:void 0,Ie=hd(w.value,be,ke);x.value={overflowY:"hidden",...Ie},Re(()=>{w.value.offsetHeight,x.value=Ie})}else x.value={minHeight:hd(w.value).minHeight}},L=(N=>{let se=!1;return()=>{var be;if(se||!r.autosize)return;((be=w.value)==null?void 0:be.offsetParent)===null||(N(),se=!0)}})(D),W=()=>{const N=F.value;!N||N.value===U.value||(N.value=U.value)},de=async N=>{Ye();let{value:se}=N.target;if(r.formatter&&(se=r.parser?r.parser(se):se,se=r.formatter(se)),!C.value){if(se===U.value){W();return}n(Ge,se),n("input",se),await Re(),W(),je()}},we=N=>{n("change",N.target.value)},ve=N=>{n("compositionstart",N),C.value=!0},b=N=>{var se;n("compositionupdate",N);const be=(se=N.target)==null?void 0:se.value,ke=be[be.length-1]||"";C.value=!rv(ke)},S=N=>{n("compositionend",N),C.value&&(C.value=!1,de(N))},z=()=>{P.value=!P.value,j()},j=async()=>{var N;await Re(),(N=F.value)==null||N.focus()},G=()=>{var N;return(N=F.value)==null?void 0:N.blur()},Q=N=>{_.value=!0,n("focus",N)},oe=N=>{var se;_.value=!1,n("blur",N),r.validateEvent&&((se=f==null?void 0:f.validate)==null||se.call(f,"blur").catch(be=>void 0))},X=N=>{T.value=!1,n("mouseleave",N)},te=N=>{T.value=!0,n("mouseenter",N)},J=N=>{n("keydown",N)},me=()=>{var N;(N=F.value)==null||N.select()},ae=()=>{n(Ge,""),n("change",""),n("clear"),n("input","")};return ue(()=>r.modelValue,()=>{var N;Re(()=>D()),r.validateEvent&&((N=f==null?void 0:f.validate)==null||N.call(f,"change").catch(se=>void 0))}),ue(U,()=>W()),ue(()=>r.type,async()=>{await Re(),W(),D()}),Ue(()=>{!r.formatter&&r.parser,W(),Re(D)}),t({input:g,textarea:w,ref:F,textareaStyle:K,autosize:jt(r,"autosize"),focus:j,blur:G,select:me,clear:ae,resizeTextarea:D}),(N,se)=>ct((I(),ne("div",wn(h(i),{class:h(a),style:h($),role:N.containerRole,onMouseenter:te,onMouseleave:X}),[ce(" input "),N.type!=="textarea"?(I(),ne(We,{key:0},[ce(" prepend slot "),N.$slots.prepend?(I(),ne("div",{key:0,class:Y(h(p).be("group","prepend"))},[_e(N.$slots,"prepend")],2)):ce("v-if",!0),fe("div",{class:Y(h(l))},[ce(" prefix slot "),N.$slots.prefix||N.prefixIcon?(I(),ne("span",{key:0,class:Y(h(p).e("prefix"))},[fe("span",{class:Y(h(p).e("prefix-inner")),onClick:j},[_e(N.$slots,"prefix"),N.prefixIcon?(I(),he(h(rt),{key:0,class:Y(h(p).e("icon"))},{default:pe(()=>[(I(),he(dt(N.prefixIcon)))]),_:1},8,["class"])):ce("v-if",!0)],2)],2)):ce("v-if",!0),fe("input",wn({id:h(d),ref_key:"input",ref:g,class:h(p).e("inner")},h(u),{type:N.showPassword?P.value?"text":"password":N.type,disabled:h(m),formatter:N.formatter,parser:N.parser,readonly:N.readonly,autocomplete:N.autocomplete,tabindex:N.tabindex,"aria-label":N.label,placeholder:N.placeholder,style:N.inputStyle,form:r.form,onCompositionstart:ve,onCompositionupdate:b,onCompositionend:S,onInput:de,onFocus:Q,onBlur:oe,onChange:we,onKeydown:J}),null,16,S3),ce(" suffix slot "),h(Be)?(I(),ne("span",{key:1,class:Y(h(p).e("suffix"))},[fe("span",{class:Y(h(p).e("suffix-inner")),onClick:j},[!h(k)||!h(le)||!h(Ee)?(I(),ne(We,{key:0},[_e(N.$slots,"suffix"),N.suffixIcon?(I(),he(h(rt),{key:0,class:Y(h(p).e("icon"))},{default:pe(()=>[(I(),he(dt(N.suffixIcon)))]),_:1},8,["class"])):ce("v-if",!0)],64)):ce("v-if",!0),h(k)?(I(),he(h(rt),{key:1,class:Y([h(p).e("icon"),h(p).e("clear")]),onMousedown:wt(h(pt),["prevent"]),onClick:ae},{default:pe(()=>[ie(h(Ru))]),_:1},8,["class","onMousedown"])):ce("v-if",!0),h(le)?(I(),he(h(rt),{key:2,class:Y([h(p).e("icon"),h(p).e("password")]),onClick:z},{default:pe(()=>[(I(),he(dt(h(A))))]),_:1},8,["class"])):ce("v-if",!0),h(Ee)?(I(),ne("span",{key:3,class:Y(h(p).e("count"))},[fe("span",{class:Y(h(p).e("count-inner"))},tt(h(Fe))+" / "+tt(h(u).maxlength),3)],2)):ce("v-if",!0),h(H)&&h(B)&&h(R)?(I(),he(h(rt),{key:4,class:Y([h(p).e("icon"),h(p).e("validateIcon"),h(p).is("loading",h(H)==="validating")])},{default:pe(()=>[(I(),he(dt(h(B))))]),_:1},8,["class"])):ce("v-if",!0)],2)],2)):ce("v-if",!0)],2),ce(" append slot "),N.$slots.append?(I(),ne("div",{key:1,class:Y(h(p).be("group","append"))},[_e(N.$slots,"append")],2)):ce("v-if",!0)],64)):(I(),ne(We,{key:1},[ce(" textarea "),fe("textarea",wn({id:h(d),ref_key:"textarea",ref:w,class:h(y).e("inner")},h(u),{tabindex:N.tabindex,disabled:h(m),readonly:N.readonly,autocomplete:N.autocomplete,style:h(K),"aria-label":N.label,placeholder:N.placeholder,form:r.form,onCompositionstart:ve,onCompositionupdate:b,onCompositionend:S,onInput:de,onFocus:Q,onBlur:oe,onChange:we,onKeydown:J}),null,16,E3),h(Ee)?(I(),ne("span",{key:0,style:Xe(E.value),class:Y(h(p).e("count"))},tt(h(Fe))+" / "+tt(h(u).maxlength),7)):ce("v-if",!0)],64))],16,_3)),[[fn,N.type!=="hidden"]])}});var T3=Le(O3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Iv=yt(T3),io=4,x3={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},A3=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Rv=Symbol("scrollbarContextKey"),P3=Me({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),$3="Thumb",I3=re({__name:"thumb",props:P3,setup(e){const t=e,n=Oe(Rv),r=$e("scrollbar");n||Yr($3,"can not inject scrollbar context");const o=V(),s=V(),i=V({}),a=V(!1);let l=!1,u=!1,c=ot?document.onselectstart:null;const f=O(()=>x3[t.vertical?"vertical":"horizontal"]),d=O(()=>A3({size:t.size,move:t.move,bar:f.value})),v=O(()=>o.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/s.value[f.value.offset]),m=P=>{var E;if(P.stopPropagation(),P.ctrlKey||[1,2].includes(P.button))return;(E=window.getSelection())==null||E.removeAllRanges(),y(P);const x=P.currentTarget;x&&(i.value[f.value.axis]=x[f.value.offset]-(P[f.value.client]-x.getBoundingClientRect()[f.value.direction]))},p=P=>{if(!s.value||!o.value||!n.wrapElement)return;const E=Math.abs(P.target.getBoundingClientRect()[f.value.direction]-P[f.value.client]),x=s.value[f.value.offset]/2,F=(E-x)*100*v.value/o.value[f.value.offset];n.wrapElement[f.value.scroll]=F*n.wrapElement[f.value.scrollSize]/100},y=P=>{P.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",w),c=document.onselectstart,document.onselectstart=()=>!1},g=P=>{if(!o.value||!s.value||l===!1)return;const E=i.value[f.value.axis];if(!E)return;const x=(o.value.getBoundingClientRect()[f.value.direction]-P[f.value.client])*-1,F=s.value[f.value.offset]-E,R=(x-F)*100*v.value/o.value[f.value.offset];n.wrapElement[f.value.scroll]=R*n.wrapElement[f.value.scrollSize]/100},w=()=>{l=!1,i.value[f.value.axis]=0,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",w),C(),u&&(a.value=!1)},_=()=>{u=!1,a.value=!!t.size},T=()=>{u=!0,a.value=l};At(()=>{C(),document.removeEventListener("mouseup",w)});const C=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return _n(jt(n,"scrollbarElement"),"mousemove",_),_n(jt(n,"scrollbarElement"),"mouseleave",T),(P,E)=>(I(),he(an,{name:h(r).b("fade"),persisted:""},{default:pe(()=>[ct(fe("div",{ref_key:"instance",ref:o,class:Y([h(r).e("bar"),h(r).is(h(f).key)]),onMousedown:p},[fe("div",{ref_key:"thumb",ref:s,class:Y(h(r).e("thumb")),style:Xe(h(d)),onMousedown:m},null,38)],34),[[fn,P.always||a.value]])]),_:1},8,["name"]))}});var vd=Le(I3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const R3=Me({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),k3=re({__name:"bar",props:R3,setup(e,{expose:t}){const n=e,r=V(0),o=V(0);return t({handleScroll:i=>{if(i){const a=i.offsetHeight-io,l=i.offsetWidth-io;o.value=i.scrollTop*100/a*n.ratioY,r.value=i.scrollLeft*100/l*n.ratioX}}}),(i,a)=>(I(),ne(We,null,[ie(vd,{move:r.value,ratio:i.ratioX,size:i.width,always:i.always},null,8,["move","ratio","size","always"]),ie(vd,{move:o.value,ratio:i.ratioY,size:i.height,vertical:"",always:i.always},null,8,["move","ratio","size","always"])],64))}});var N3=Le(k3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const M3=Me({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Ce([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),L3={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ve)},F3="ElScrollbar",B3=re({name:F3}),z3=re({...B3,props:M3,emits:L3,setup(e,{expose:t,emit:n}){const r=e,o=$e("scrollbar");let s,i;const a=V(),l=V(),u=V(),c=V("0"),f=V("0"),d=V(),v=V(1),m=V(1),p=O(()=>{const E={};return r.height&&(E.height=On(r.height)),r.maxHeight&&(E.maxHeight=On(r.maxHeight)),[r.wrapStyle,E]}),y=O(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),g=O(()=>[o.e("view"),r.viewClass]),w=()=>{var E;l.value&&((E=d.value)==null||E.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(E,x){Ne(E)?l.value.scrollTo(E):Ve(E)&&Ve(x)&&l.value.scrollTo(E,x)}const T=E=>{Ve(E)&&(l.value.scrollTop=E)},C=E=>{Ve(E)&&(l.value.scrollLeft=E)},P=()=>{if(!l.value)return;const E=l.value.offsetHeight-io,x=l.value.offsetWidth-io,F=E**2/l.value.scrollHeight,R=x**2/l.value.scrollWidth,H=Math.max(F,r.minSize),B=Math.max(R,r.minSize);v.value=F/(E-F)/(H/(E-H)),m.value=R/(x-R)/(B/(x-B)),f.value=H+ior.noresize,E=>{E?(s==null||s(),i==null||i()):({stop:s}=yr(u,P),i=_n("resize",P))},{immediate:!0}),ue(()=>[r.maxHeight,r.height],()=>{r.native||Re(()=>{var E;P(),l.value&&((E=d.value)==null||E.handleScroll(l.value))})}),at(Rv,Et({scrollbarElement:a,wrapElement:l})),Ue(()=>{r.native||Re(()=>{P()})}),Kr(()=>P()),t({wrapRef:l,update:P,scrollTo:_,setScrollTop:T,setScrollLeft:C,handleScroll:w}),(E,x)=>(I(),ne("div",{ref_key:"scrollbarRef",ref:a,class:Y(h(o).b())},[fe("div",{ref_key:"wrapRef",ref:l,class:Y(h(y)),style:Xe(h(p)),onScroll:w},[(I(),he(dt(E.tag),{ref_key:"resizeRef",ref:u,class:Y(h(g)),style:Xe(E.viewStyle)},{default:pe(()=>[_e(E.$slots,"default")]),_:3},8,["class","style"]))],38),E.native?ce("v-if",!0):(I(),he(N3,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:E.always,"ratio-x":m.value,"ratio-y":v.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var D3=Le(z3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const j3=yt(D3),Vu=Symbol("popper"),kv=Symbol("popperContent"),H3=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Nv=Me({role:{type:String,values:H3,default:"tooltip"}}),V3=re({name:"ElPopper",inheritAttrs:!1}),K3=re({...V3,props:Nv,setup(e,{expose:t}){const n=e,r=V(),o=V(),s=V(),i=V(),a=O(()=>n.role),l={triggerRef:r,popperInstanceRef:o,contentRef:s,referenceRef:i,role:a};return t(l),at(Vu,l),(u,c)=>_e(u.$slots,"default")}});var q3=Le(K3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Mv=Me({arrowOffset:{type:Number,default:5}}),U3=re({name:"ElPopperArrow",inheritAttrs:!1}),W3=re({...U3,props:Mv,setup(e,{expose:t}){const n=e,r=$e("popper"),{arrowOffset:o,arrowRef:s,arrowStyle:i}=Oe(kv,void 0);return ue(()=>n.arrowOffset,a=>{o.value=a}),At(()=>{s.value=void 0}),t({arrowRef:s}),(a,l)=>(I(),ne("span",{ref_key:"arrowRef",ref:s,class:Y(h(r).e("arrow")),style:Xe(h(i)),"data-popper-arrow":""},null,6))}});var G3=Le(W3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const Y3="ElOnlyChild",J3=re({name:Y3,setup(e,{slots:t,attrs:n}){var r;const o=Oe(Sv),s=p4((r=o==null?void 0:o.setForwardRef)!=null?r:pt);return()=>{var i;const a=(i=t.default)==null?void 0:i.call(t,n);if(!a||a.length>1)return null;const l=Lv(a);return l?ct(Vn(l,n),[[s]]):null}}});function Lv(e){if(!e)return null;const t=e;for(const n of t){if(Ne(n))switch(n.type){case Vt:continue;case Po:case"svg":return md(n);case We:return Lv(n.children);default:return n}return md(n)}return null}function md(e){const t=$e("only-child");return ie("span",{class:t.e("content")},[e])}const Fv=Me({virtualRef:{type:Ce(Object)},virtualTriggering:Boolean,onMouseenter:{type:Ce(Function)},onMouseleave:{type:Ce(Function)},onClick:{type:Ce(Function)},onKeydown:{type:Ce(Function)},onFocus:{type:Ce(Function)},onBlur:{type:Ce(Function)},onContextmenu:{type:Ce(Function)},id:String,open:Boolean}),X3=re({name:"ElPopperTrigger",inheritAttrs:!1}),Q3=re({...X3,props:Fv,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=Oe(Vu,void 0);d4(o);const s=O(()=>a.value?n.id:void 0),i=O(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),a=O(()=>{if(r&&r.value!=="tooltip")return r.value}),l=O(()=>a.value?`${n.open}`:void 0);let u;return Ue(()=>{ue(()=>n.virtualRef,c=>{c&&(o.value=lr(c))},{immediate:!0}),ue(o,(c,f)=>{u==null||u(),u=void 0,yo(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var v;const m=n[d];m&&(c.addEventListener(d.slice(2).toLowerCase(),m),(v=f==null?void 0:f.removeEventListener)==null||v.call(f,d.slice(2).toLowerCase(),m))}),u=ue([s,i,a,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((v,m)=>{zn(d[m])?c.removeAttribute(v):c.setAttribute(v,d[m])})},{immediate:!0})),yo(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),At(()=>{u==null||u(),u=void 0}),t({triggerRef:o}),(c,f)=>c.virtualTriggering?ce("v-if",!0):(I(),he(h(J3),wn({key:0},c.$attrs,{"aria-controls":h(s),"aria-describedby":h(i),"aria-expanded":h(l),"aria-haspopup":h(a)}),{default:pe(()=>[_e(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Z3=Le(Q3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const za="focus-trap.focus-after-trapped",Da="focus-trap.focus-after-released",ex="focus-trap.focusout-prevented",gd={cancelable:!0,bubbles:!1},tx={cancelable:!0,bubbles:!1},yd="focusAfterTrapped",bd="focusAfterReleased",Bv=Symbol("elFocusTrap"),Ku=V(),da=V(0),qu=V(0);let Js=0;const zv=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},wd=(e,t)=>{for(const n of e)if(!nx(n,t))return n},nx=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},rx=e=>{const t=zv(e),n=wd(t,e),r=wd(t.reverse(),e);return[n,r]},ox=e=>e instanceof HTMLInputElement&&"select"in e,nr=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),qu.value=window.performance.now(),e!==n&&ox(e)&&t&&e.select()}};function _d(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const sx=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=_d(e,r),e.unshift(r)},remove:r=>{var o,s;e=_d(e,r),(s=(o=e[0])==null?void 0:o.resume)==null||s.call(o)}}},ix=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(nr(r,t),document.activeElement!==n)return},Sd=sx(),ax=()=>da.value>qu.value,Xs=()=>{Ku.value="pointer",da.value=window.performance.now()},Ed=()=>{Ku.value="keyboard",da.value=window.performance.now()},lx=()=>(Ue(()=>{Js===0&&(document.addEventListener("mousedown",Xs),document.addEventListener("touchstart",Xs),document.addEventListener("keydown",Ed)),Js++}),At(()=>{Js--,Js<=0&&(document.removeEventListener("mousedown",Xs),document.removeEventListener("touchstart",Xs),document.removeEventListener("keydown",Ed))}),{focusReason:Ku,lastUserFocusTimestamp:da,lastAutomatedFocusTimestamp:qu}),Qs=e=>new CustomEvent(ex,{...tx,detail:e}),ux=re({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[yd,bd,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=V();let r,o;const{focusReason:s}=lx();a4(m=>{e.trapped&&!i.paused&&t("release-requested",m)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=m=>{if(!e.loop&&!e.trapped||i.paused)return;const{key:p,altKey:y,ctrlKey:g,metaKey:w,currentTarget:_,shiftKey:T}=m,{loop:C}=e,P=p===Sn.tab&&!y&&!g&&!w,E=document.activeElement;if(P&&E){const x=_,[F,R]=rx(x);if(F&&R){if(!T&&E===R){const B=Qs({focusReason:s.value});t("focusout-prevented",B),B.defaultPrevented||(m.preventDefault(),C&&nr(F,!0))}else if(T&&[F,x].includes(E)){const B=Qs({focusReason:s.value});t("focusout-prevented",B),B.defaultPrevented||(m.preventDefault(),C&&nr(R,!0))}}else if(E===x){const B=Qs({focusReason:s.value});t("focusout-prevented",B),B.defaultPrevented||m.preventDefault()}}};at(Bv,{focusTrapRef:n,onKeydown:a}),ue(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),ue([n],([m],[p])=>{m&&(m.addEventListener("keydown",a),m.addEventListener("focusin",c),m.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",a),p.removeEventListener("focusin",c),p.removeEventListener("focusout",f))});const l=m=>{t(yd,m)},u=m=>t(bd,m),c=m=>{const p=h(n);if(!p)return;const y=m.target,g=m.relatedTarget,w=y&&p.contains(y);e.trapped||g&&p.contains(g)||(r=g),w&&t("focusin",m),!i.paused&&e.trapped&&(w?o=y:nr(o,!0))},f=m=>{const p=h(n);if(!(i.paused||!p))if(e.trapped){const y=m.relatedTarget;!zn(y)&&!p.contains(y)&&setTimeout(()=>{if(!i.paused&&e.trapped){const g=Qs({focusReason:s.value});t("focusout-prevented",g),g.defaultPrevented||nr(o,!0)}},0)}else{const y=m.target;y&&p.contains(y)||t("focusout",m)}};async function d(){await Re();const m=h(n);if(m){Sd.push(i);const p=m.contains(document.activeElement)?r:document.activeElement;if(r=p,!m.contains(p)){const g=new Event(za,gd);m.addEventListener(za,l),m.dispatchEvent(g),g.defaultPrevented||Re(()=>{let w=e.focusStartEl;xe(w)||(nr(w),document.activeElement!==w&&(w="first")),w==="first"&&ix(zv(m),!0),(document.activeElement===p||w==="container")&&nr(m)})}}}function v(){const m=h(n);if(m){m.removeEventListener(za,l);const p=new CustomEvent(Da,{...gd,detail:{focusReason:s.value}});m.addEventListener(Da,u),m.dispatchEvent(p),!p.defaultPrevented&&(s.value=="keyboard"||!ax()||m.contains(document.activeElement))&&nr(r??document.body),m.removeEventListener(Da,l),Sd.remove(i)}}return Ue(()=>{e.trapped&&d(),ue(()=>e.trapped,m=>{m?d():v()})}),At(()=>{e.trapped&&v()}),{onKeydown:a}}});function cx(e,t,n,r,o,s){return _e(e.$slots,"default",{handleKeydown:e.onKeydown})}var Dv=Le(ux,[["render",cx],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const fx=["fixed","absolute"],dx=Me({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Ce(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:aa,default:"bottom"},popperOptions:{type:Ce(Object),default:()=>({})},strategy:{type:String,values:fx,default:"absolute"}}),jv=Me({...dx,id:String,style:{type:Ce([String,Array,Object])},className:{type:Ce([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Ce([String,Array,Object])},popperStyle:{type:Ce([String,Array,Object])},referenceEl:{type:Ce(Object)},triggerTargetEl:{type:Ce(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),px={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},hx=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,s={placement:n,strategy:r,...o,modifiers:[...mx(e),...t]};return gx(s,o==null?void 0:o.modifiers),s},vx=e=>{if(ot)return lr(e)};function mx(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function gx(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const yx=0,bx=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=Oe(Vu,void 0),s=V(),i=V(),a=O(()=>({name:"eventListeners",enabled:!!e.visible})),l=O(()=>{var g;const w=h(s),_=(g=h(i))!=null?g:yx;return{name:"arrow",enabled:!oE(w),options:{element:w,padding:_}}}),u=O(()=>({onFirstUpdate:()=>{m()},...hx(e,[h(l),h(a)])})),c=O(()=>vx(e.referenceEl)||h(r)),{attributes:f,state:d,styles:v,update:m,forceUpdate:p,instanceRef:y}=o4(c,n,u);return ue(y,g=>t.value=g),Ue(()=>{ue(()=>{var g;return(g=h(c))==null?void 0:g.getBoundingClientRect()},()=>{m()})}),{attributes:f,arrowRef:s,contentRef:n,instanceRef:y,state:d,styles:v,role:o,forceUpdate:p,update:m}},wx=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=ua(),s=$e("popper"),i=O(()=>h(t).popper),a=V(e.zIndex||o()),l=O(()=>[s.b(),s.is("pure",e.pure),s.is(e.effect),e.popperClass]),u=O(()=>[{zIndex:h(a)},e.popperStyle||{},h(n).popper]),c=O(()=>r.value==="dialog"?"false":void 0),f=O(()=>h(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:i,contentClass:l,contentStyle:u,contentZIndex:a,updateZIndex:()=>{a.value=e.zIndex||o()}}},_x=(e,t)=>{const n=V(!1),r=V();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},Sx=re({name:"ElPopperContent"}),Ex=re({...Sx,props:jv,emits:px,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:s,onFocusAfterReleased:i,onFocusAfterTrapped:a,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=_x(r,n),{attributes:f,arrowRef:d,contentRef:v,styles:m,instanceRef:p,role:y,update:g}=bx(r),{ariaModal:w,arrowStyle:_,contentAttrs:T,contentClass:C,contentStyle:P,updateZIndex:E}=wx(r,{styles:m,attributes:f,role:y}),x=Oe(Vr,void 0),F=V();at(kv,{arrowStyle:_,arrowRef:d,arrowOffset:F}),x&&(x.addInputId||x.removeInputId)&&at(Vr,{...x,addInputId:pt,removeInputId:pt});let R;const H=(A=!0)=>{g(),A&&E()},B=()=>{H(!1),r.visible&&r.focusOnShow?s.value=!0:r.visible===!1&&(s.value=!1)};return Ue(()=>{ue(()=>r.triggerTargetEl,(A,$)=>{R==null||R(),R=void 0;const K=h(A||v.value),U=h($||v.value);yo(K)&&(R=ue([y,()=>r.ariaLabel,w,()=>r.id],k=>{["role","aria-label","aria-modal","id"].forEach((le,Ee)=>{zn(k[Ee])?K.removeAttribute(le):K.setAttribute(le,k[Ee])})},{immediate:!0})),U!==K&&yo(U)&&["role","aria-label","aria-modal","id"].forEach(k=>{U.removeAttribute(k)})},{immediate:!0}),ue(()=>r.visible,B,{immediate:!0})}),At(()=>{R==null||R(),R=void 0}),t({popperContentRef:v,popperInstanceRef:p,updatePopper:H,contentStyle:P}),(A,$)=>(I(),ne("div",wn({ref_key:"contentRef",ref:v},h(T),{style:h(P),class:h(C),tabindex:"-1",onMouseenter:$[0]||($[0]=K=>A.$emit("mouseenter",K)),onMouseleave:$[1]||($[1]=K=>A.$emit("mouseleave",K))}),[ie(h(Dv),{trapped:h(s),"trap-on-focus-in":!0,"focus-trap-el":h(v),"focus-start-el":h(o),onFocusAfterTrapped:h(a),onFocusAfterReleased:h(i),onFocusin:h(l),onFocusoutPrevented:h(u),onReleaseRequested:h(c)},{default:pe(()=>[_e(A.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var Cx=Le(Ex,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Ox=yt(q3),Uu=Symbol("elTooltip"),zt=Me({...c4,...jv,appendTo:{type:Ce([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Ce(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),Os=Me({...Fv,disabled:Boolean,trigger:{type:Ce([String,Array]),default:"hover"},triggerKeys:{type:Ce(Array),default:()=>[Sn.enter,Sn.space]}}),{useModelToggleProps:Tx,useModelToggleEmits:xx,useModelToggle:Ax}=iv("visible"),Px=Me({...Nv,...Tx,...zt,...Os,...Mv,showArrow:{type:Boolean,default:!0}}),$x=[...xx,"before-show","before-hide","show","hide","open","close"],Ix=(e,t)=>ge(e)?e.includes(t):e===t,eo=(e,t,n)=>r=>{Ix(h(e),t)&&n(r)},Rx=re({name:"ElTooltipTrigger"}),kx=re({...Rx,props:Os,setup(e,{expose:t}){const n=e,r=$e("tooltip"),{controlled:o,id:s,open:i,onOpen:a,onClose:l,onToggle:u}=Oe(Uu,void 0),c=V(null),f=()=>{if(h(o)||n.disabled)return!0},d=jt(n,"trigger"),v=Nn(f,eo(d,"hover",a)),m=Nn(f,eo(d,"hover",l)),p=Nn(f,eo(d,"click",T=>{T.button===0&&u(T)})),y=Nn(f,eo(d,"focus",a)),g=Nn(f,eo(d,"focus",l)),w=Nn(f,eo(d,"contextmenu",T=>{T.preventDefault(),u(T)})),_=Nn(f,T=>{const{code:C}=T;n.triggerKeys.includes(C)&&(T.preventDefault(),u(T))});return t({triggerRef:c}),(T,C)=>(I(),he(h(Z3),{id:h(s),"virtual-ref":T.virtualRef,open:h(i),"virtual-triggering":T.virtualTriggering,class:Y(h(r).e("trigger")),onBlur:h(g),onClick:h(p),onContextmenu:h(w),onFocus:h(y),onMouseenter:h(v),onMouseleave:h(m),onKeydown:h(_)},{default:pe(()=>[_e(T.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Nx=Le(kx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const Mx=re({name:"ElTooltipContent",inheritAttrs:!1}),Lx=re({...Mx,props:zt,setup(e,{expose:t}){const n=e,{selector:r}=_v(),o=$e("tooltip"),s=V(null),i=V(!1),{controlled:a,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:v,onHide:m,onBeforeShow:p,onBeforeHide:y}=Oe(Uu,void 0),g=O(()=>n.transition||`${o.namespace.value}-fade-in-linear`),w=O(()=>n.persistent);At(()=>{i.value=!0});const _=O(()=>h(w)?!0:h(u)),T=O(()=>n.disabled?!1:h(u)),C=O(()=>n.appendTo||r.value),P=O(()=>{var k;return(k=n.style)!=null?k:{}}),E=O(()=>!h(u)),x=()=>{m()},F=()=>{if(h(a))return!0},R=Nn(F,()=>{n.enterable&&h(c)==="hover"&&d()}),H=Nn(F,()=>{h(c)==="hover"&&f()}),B=()=>{var k,le;(le=(k=s.value)==null?void 0:k.updatePopper)==null||le.call(k),p==null||p()},A=()=>{y==null||y()},$=()=>{v(),U=I0(O(()=>{var k;return(k=s.value)==null?void 0:k.popperContentRef}),()=>{if(h(a))return;h(c)!=="hover"&&f()})},K=()=>{n.virtualTriggering||f()};let U;return ue(()=>h(u),k=>{k||U==null||U()},{flush:"post"}),ue(()=>n.content,()=>{var k,le;(le=(k=s.value)==null?void 0:k.updatePopper)==null||le.call(k)}),t({contentRef:s}),(k,le)=>(I(),he(Gp,{disabled:!k.teleported,to:h(C)},[ie(an,{name:h(g),onAfterLeave:x,onBeforeEnter:B,onAfterEnter:$,onBeforeLeave:A},{default:pe(()=>[h(_)?ct((I(),he(h(Cx),wn({key:0,id:h(l),ref_key:"contentRef",ref:s},k.$attrs,{"aria-label":k.ariaLabel,"aria-hidden":h(E),"boundaries-padding":k.boundariesPadding,"fallback-placements":k.fallbackPlacements,"gpu-acceleration":k.gpuAcceleration,offset:k.offset,placement:k.placement,"popper-options":k.popperOptions,strategy:k.strategy,effect:k.effect,enterable:k.enterable,pure:k.pure,"popper-class":k.popperClass,"popper-style":[k.popperStyle,h(P)],"reference-el":k.referenceEl,"trigger-target-el":k.triggerTargetEl,visible:h(T),"z-index":k.zIndex,onMouseenter:h(R),onMouseleave:h(H),onBlur:K,onClose:h(f)}),{default:pe(()=>[i.value?ce("v-if",!0):_e(k.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[fn,h(T)]]):ce("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var Fx=Le(Lx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Bx=["innerHTML"],zx={key:1},Dx=re({name:"ElTooltip"}),jx=re({...Dx,props:Px,emits:$x,setup(e,{expose:t,emit:n}){const r=e;u4();const o=Es(),s=V(),i=V(),a=()=>{var g;const w=h(s);w&&((g=w.popperInstanceRef)==null||g.update())},l=V(!1),u=V(),{show:c,hide:f,hasUpdateHandler:d}=Ax({indicator:l,toggleReason:u}),{onOpen:v,onClose:m}=f4({showAfter:jt(r,"showAfter"),hideAfter:jt(r,"hideAfter"),autoClose:jt(r,"autoClose"),open:c,close:f}),p=O(()=>Kt(r.visible)&&!d.value);at(Uu,{controlled:p,id:o,open:Is(l),trigger:jt(r,"trigger"),onOpen:g=>{v(g)},onClose:g=>{m(g)},onToggle:g=>{h(l)?m(g):v(g)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:a}),ue(()=>r.disabled,g=>{g&&l.value&&(l.value=!1)});const y=()=>{var g,w;const _=(w=(g=i.value)==null?void 0:g.contentRef)==null?void 0:w.popperContentRef;return _&&_.contains(document.activeElement)};return Lp(()=>l.value&&f()),t({popperRef:s,contentRef:i,isFocusInsideContent:y,updatePopper:a,onOpen:v,onClose:m,hide:f}),(g,w)=>(I(),he(h(Ox),{ref_key:"popperRef",ref:s,role:g.role},{default:pe(()=>[ie(Nx,{disabled:g.disabled,trigger:g.trigger,"trigger-keys":g.triggerKeys,"virtual-ref":g.virtualRef,"virtual-triggering":g.virtualTriggering},{default:pe(()=>[g.$slots.default?_e(g.$slots,"default",{key:0}):ce("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ie(Fx,{ref_key:"contentRef",ref:i,"aria-label":g.ariaLabel,"boundaries-padding":g.boundariesPadding,content:g.content,disabled:g.disabled,effect:g.effect,enterable:g.enterable,"fallback-placements":g.fallbackPlacements,"hide-after":g.hideAfter,"gpu-acceleration":g.gpuAcceleration,offset:g.offset,persistent:g.persistent,"popper-class":g.popperClass,"popper-style":g.popperStyle,placement:g.placement,"popper-options":g.popperOptions,pure:g.pure,"raw-content":g.rawContent,"reference-el":g.referenceEl,"trigger-target-el":g.triggerTargetEl,"show-after":g.showAfter,strategy:g.strategy,teleported:g.teleported,transition:g.transition,"virtual-triggering":g.virtualTriggering,"z-index":g.zIndex,"append-to":g.appendTo},{default:pe(()=>[_e(g.$slots,"content",{},()=>[g.rawContent?(I(),ne("span",{key:0,innerHTML:g.content},null,8,Bx)):(I(),ne("span",zx,tt(g.content),1))]),g.showArrow?(I(),he(h(G3),{key:0,"arrow-offset":g.arrowOffset},null,8,["arrow-offset"])):ce("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Hx=Le(jx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Hv=yt(Hx),Vx=Me({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),Kx=["textContent"],qx=re({name:"ElBadge"}),Ux=re({...qx,props:Vx,setup(e,{expose:t}){const n=e,r=$e("badge"),o=O(()=>n.isDot?"":Ve(n.value)&&Ve(n.max)?n.max(I(),ne("div",{class:Y(h(r).b())},[_e(s.$slots,"default"),ie(an,{name:`${h(r).namespace.value}-zoom-in-center`,persisted:""},{default:pe(()=>[ct(fe("sup",{class:Y([h(r).e("content"),h(r).em("content",s.type),h(r).is("fixed",!!s.$slots.default),h(r).is("dot",s.isDot)]),textContent:tt(h(o))},null,10,Kx),[[fn,!s.hidden&&(h(o)||s.isDot)]])]),_:1},8,["name"])],2))}});var Wx=Le(Ux,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const Gx=yt(Wx),Vv=Symbol("buttonGroupContextKey"),Yx=(e,t)=>{bo({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},O(()=>e.type==="text"));const n=Oe(Vv,void 0),r=ca("button"),{form:o}=wr(),s=cn(O(()=>n==null?void 0:n.size)),i=Mo(),a=V(),l=Ur(),u=O(()=>e.type||(n==null?void 0:n.type)||""),c=O(()=>{var v,m,p;return(p=(m=e.autoInsertSpace)!=null?m:(v=r.value)==null?void 0:v.autoInsertSpace)!=null?p:!1}),f=O(()=>{var v;const m=(v=l.default)==null?void 0:v.call(l);if(c.value&&(m==null?void 0:m.length)===1){const p=m[0];if((p==null?void 0:p.type)===Po){const y=p.children;return/^\p{Unified_Ideograph}{2}$/u.test(y.trim())}}return!1});return{_disabled:i,_size:s,_type:u,_ref:a,shouldAddSpace:f,handleClick:v=>{e.nativeType==="reset"&&(o==null||o.resetFields()),t("click",v)}}},Jx=["default","primary","success","warning","info","danger","text",""],Xx=["button","submit","reset"],Nl=Me({size:ko,disabled:Boolean,type:{type:String,values:Jx,default:""},icon:{type:Jt},nativeType:{type:String,values:Xx,default:"button"},loading:Boolean,loadingIcon:{type:Jt,default:()=>ku},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),Qx={click:e=>e instanceof MouseEvent};function St(e,t){Zx(e)&&(e="100%");var n=eA(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Zs(e){return Math.min(1,Math.max(0,e))}function Zx(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function eA(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Kv(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ei(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Lr(e){return e.length===1?"0"+e:String(e)}function tA(e,t,n){return{r:St(e,255)*255,g:St(t,255)*255,b:St(n,255)*255}}function Cd(e,t,n){e=St(e,255),t=St(t,255),n=St(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,i=0,a=(r+o)/2;if(r===o)i=0,s=0;else{var l=r-o;switch(i=a>.5?l/(2-r-o):l/(r+o),r){case e:s=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nA(e,t,n){var r,o,s;if(e=St(e,360),t=St(t,100),n=St(n,100),t===0)o=n,s=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;r=ja(a,i,e+1/3),o=ja(a,i,e),s=ja(a,i,e-1/3)}return{r:r*255,g:o*255,b:s*255}}function Od(e,t,n){e=St(e,255),t=St(t,255),n=St(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,i=r,a=r-o,l=r===0?0:a/r;if(r===o)s=0;else{switch(r){case e:s=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var Ml={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function aA(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,s=null,i=!1,a=!1;return typeof e=="string"&&(e=cA(e)),typeof e=="object"&&(In(e.r)&&In(e.g)&&In(e.b)?(t=tA(e.r,e.g,e.b),i=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):In(e.h)&&In(e.s)&&In(e.v)?(r=ei(e.s),o=ei(e.v),t=rA(e.h,r,o),i=!0,a="hsv"):In(e.h)&&In(e.s)&&In(e.l)&&(r=ei(e.s),s=ei(e.l),t=nA(e.h,r,s),i=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Kv(n),{ok:i,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var lA="[-\\+]?\\d+%?",uA="[-\\+]?\\d*\\.\\d+%?",ur="(?:".concat(uA,")|(?:").concat(lA,")"),Ha="[\\s|\\(]+(".concat(ur,")[,|\\s]+(").concat(ur,")[,|\\s]+(").concat(ur,")\\s*\\)?"),Va="[\\s|\\(]+(".concat(ur,")[,|\\s]+(").concat(ur,")[,|\\s]+(").concat(ur,")[,|\\s]+(").concat(ur,")\\s*\\)?"),tn={CSS_UNIT:new RegExp(ur),rgb:new RegExp("rgb"+Ha),rgba:new RegExp("rgba"+Va),hsl:new RegExp("hsl"+Ha),hsla:new RegExp("hsla"+Va),hsv:new RegExp("hsv"+Ha),hsva:new RegExp("hsva"+Va),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function cA(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ml[e])e=Ml[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=tn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=tn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=tn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=tn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=tn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=tn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=tn.hex8.exec(e),n?{r:Ft(n[1]),g:Ft(n[2]),b:Ft(n[3]),a:xd(n[4]),format:t?"name":"hex8"}:(n=tn.hex6.exec(e),n?{r:Ft(n[1]),g:Ft(n[2]),b:Ft(n[3]),format:t?"name":"hex"}:(n=tn.hex4.exec(e),n?{r:Ft(n[1]+n[1]),g:Ft(n[2]+n[2]),b:Ft(n[3]+n[3]),a:xd(n[4]+n[4]),format:t?"name":"hex8"}:(n=tn.hex3.exec(e),n?{r:Ft(n[1]+n[1]),g:Ft(n[2]+n[2]),b:Ft(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function In(e){return!!tn.CSS_UNIT.exec(String(e))}var fA=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=iA(t)),this.originalInput=t;var o=aA(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,s=t.r/255,i=t.g/255,a=t.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Kv(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Od(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Od(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Cd(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Cd(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Td(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),oA(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(St(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(St(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Td(this.r,this.g,this.b,!1),n=0,r=Object.entries(Ml);n=0,s=!n&&o&&(t.startsWith("hex")||t==="name");return s?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Zs(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Zs(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Zs(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Zs(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),s=n/100,i={r:(o.r-r.r)*s+r.r,g:(o.g-r.g)*s+r.g,b:(o.b-r.b)*s+r.b,a:(o.a-r.a)*s+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,s=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,s.push(new e(r));return s},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,s=n.v,i=[],a=1/t;t--;)i.push(new e({h:r,s:o,v:s})),s=(s+a)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],s=360/t,i=1;i{let r={};const o=e.color;if(o){const s=new fA(o),i=e.dark?s.tint(20).toString():Zn(s,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Zn(s,90):s.tint(90).toString(),"text-color":o,"border-color":e.dark?Zn(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Zn(s,90):s.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Zn(s,50):s.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Zn(s,80):s.tint(80).toString());else{const a=e.dark?Zn(s,30):s.tint(30).toString(),l=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":l,"border-color":o,"hover-bg-color":a,"hover-text-color":l,"hover-border-color":a,"active-bg-color":i,"active-border-color":i}),t.value){const u=e.dark?Zn(s,50):s.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=u}}}return r})}const pA=["aria-disabled","disabled","autofocus","type"],hA=re({name:"ElButton"}),vA=re({...hA,props:Nl,emits:Qx,setup(e,{expose:t,emit:n}){const r=e,o=dA(r),s=$e("button"),{_ref:i,_size:a,_type:l,_disabled:u,shouldAddSpace:c,handleClick:f}=Yx(r,n);return t({ref:i,size:a,type:l,disabled:u,shouldAddSpace:c}),(d,v)=>(I(),ne("button",{ref_key:"_ref",ref:i,class:Y([h(s).b(),h(s).m(h(l)),h(s).m(h(a)),h(s).is("disabled",h(u)),h(s).is("loading",d.loading),h(s).is("plain",d.plain),h(s).is("round",d.round),h(s).is("circle",d.circle),h(s).is("text",d.text),h(s).is("link",d.link),h(s).is("has-bg",d.bg)]),"aria-disabled":h(u)||d.loading,disabled:h(u)||d.loading,autofocus:d.autofocus,type:d.nativeType,style:Xe(h(o)),onClick:v[0]||(v[0]=(...m)=>h(f)&&h(f)(...m))},[d.loading?(I(),ne(We,{key:0},[d.$slots.loading?_e(d.$slots,"loading",{key:0}):(I(),he(h(rt),{key:1,class:Y(h(s).is("loading"))},{default:pe(()=>[(I(),he(dt(d.loadingIcon)))]),_:1},8,["class"]))],64)):d.icon||d.$slots.icon?(I(),he(h(rt),{key:1},{default:pe(()=>[d.icon?(I(),he(dt(d.icon),{key:0})):_e(d.$slots,"icon",{key:1})]),_:3})):ce("v-if",!0),d.$slots.default?(I(),ne("span",{key:2,class:Y({[h(s).em("text","expand")]:h(c)})},[_e(d.$slots,"default")],2)):ce("v-if",!0)],14,pA))}});var mA=Le(vA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const gA={size:Nl.size,type:Nl.type},yA=re({name:"ElButtonGroup"}),bA=re({...yA,props:gA,setup(e){const t=e;at(Vv,Et({size:jt(t,"size"),type:jt(t,"type")}));const n=$e("button");return(r,o)=>(I(),ne("div",{class:Y(`${h(n).b("group")}`)},[_e(r.$slots,"default")],2))}});var qv=Le(bA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const eI=yt(mA,{ButtonGroup:qv});Jr(qv);const rr=new Map;let Ad;ot&&(document.addEventListener("mousedown",e=>Ad=e),document.addEventListener("mouseup",e=>{for(const t of rr.values())for(const{documentHandler:n}of t)n(e,Ad)}));function Pd(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:yo(t.arg)&&n.push(t.arg),function(r,o){const s=t.instance.popperRef,i=r.target,a=o==null?void 0:o.target,l=!t||!t.instance,u=!i||!a,c=e.contains(i)||e.contains(a),f=e===i,d=n.length&&n.some(m=>m==null?void 0:m.contains(i))||n.length&&n.includes(a),v=s&&(s.contains(i)||s.contains(a));l||u||c||f||d||v||t.value(r,o)}}const wA={beforeMount(e,t){rr.has(e)||rr.set(e,[]),rr.get(e).push({documentHandler:Pd(e,t),bindingFn:t.value})},updated(e,t){rr.has(e)||rr.set(e,[]);const n=rr.get(e),r=n.findIndex(s=>s.bindingFn===t.oldValue),o={documentHandler:Pd(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(e){rr.delete(e)}},_A=100,SA=600,$d={beforeMount(e,t){const n=t.value,{interval:r=_A,delay:o=SA}=ye(n)?{}:n;let s,i;const a=()=>ye(n)?n():n.handler(),l=()=>{i&&(clearTimeout(i),i=void 0),s&&(clearInterval(s),s=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(l(),a(),document.addEventListener("mouseup",()=>l(),{once:!0}),i=setTimeout(()=>{s=setInterval(()=>{a()},r)},o))})}},Uv={modelValue:{type:[Number,String,Boolean],default:void 0},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:ko,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},Wv={[Ge]:e=>xe(e)||Ve(e)||Kt(e),change:e=>xe(e)||Ve(e)||Kt(e)},Lo=Symbol("checkboxGroupContextKey"),EA=({model:e,isChecked:t})=>{const n=Oe(Lo,void 0),r=O(()=>{var s,i;const a=(s=n==null?void 0:n.max)==null?void 0:s.value,l=(i=n==null?void 0:n.min)==null?void 0:i.value;return!yn(a)&&e.value.length>=a&&!t.value||!yn(l)&&e.value.length<=l&&t.value});return{isDisabled:Mo(O(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},CA=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:s})=>{const i=Oe(Lo,void 0),{formItem:a}=wr(),{emit:l}=st();function u(m){var p,y;return m===e.trueLabel||m===!0?(p=e.trueLabel)!=null?p:!0:(y=e.falseLabel)!=null?y:!1}function c(m,p){l("change",u(m),p)}function f(m){if(n.value)return;const p=m.target;l("change",u(p.checked),m)}async function d(m){n.value||!r.value&&!o.value&&s.value&&(m.composedPath().some(g=>g.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await Re(),c(t.value,m)))}const v=O(()=>(i==null?void 0:i.validateEvent)||e.validateEvent);return ue(()=>e.modelValue,()=>{v.value&&(a==null||a.validate("change").catch(m=>void 0))}),{handleChange:f,onClickRoot:d}},OA=e=>{const t=V(!1),{emit:n}=st(),r=Oe(Lo,void 0),o=O(()=>yn(r)===!1),s=V(!1);return{model:O({get(){var a,l;return o.value?(a=r==null?void 0:r.modelValue)==null?void 0:a.value:(l=e.modelValue)!=null?l:t.value},set(a){var l,u;o.value&&ge(a)?(s.value=((l=r==null?void 0:r.max)==null?void 0:l.value)!==void 0&&a.length>(r==null?void 0:r.max.value),s.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,a))):(n(Ge,a),t.value=a)}}),isGroup:o,isLimitExceeded:s}},TA=(e,t,{model:n})=>{const r=Oe(Lo,void 0),o=V(!1),s=O(()=>{const u=n.value;return Kt(u)?u:ge(u)?Ne(e.label)?u.map(Ae).some(c=>Ol(c,e.label)):u.map(Ae).includes(e.label):u!=null?u===e.trueLabel:!!u}),i=cn(O(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),a=cn(O(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),l=O(()=>!!(t.default||e.label));return{checkboxButtonSize:i,isChecked:s,isFocused:o,checkboxSize:a,hasOwnLabel:l}},xA=(e,{model:t})=>{function n(){ge(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},Gv=(e,t)=>{const{formItem:n}=wr(),{model:r,isGroup:o,isLimitExceeded:s}=OA(e),{isFocused:i,isChecked:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=TA(e,t,{model:r}),{isDisabled:f}=EA({model:r,isChecked:a}),{inputId:d,isLabeledByFormItem:v}=fa(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:o}),{handleChange:m,onClickRoot:p}=CA(e,{model:r,isLimitExceeded:s,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:v});return xA(e,{model:r}),{inputId:d,isLabeledByFormItem:v,isChecked:a,isDisabled:f,isFocused:i,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,handleChange:m,onClickRoot:p}},AA=["tabindex","role","aria-checked"],PA=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],$A=["id","aria-hidden","disabled","value","name","tabindex"],IA=re({name:"ElCheckbox"}),RA=re({...IA,props:Uv,emits:Wv,setup(e){const t=e,n=Ur(),{inputId:r,isLabeledByFormItem:o,isChecked:s,isDisabled:i,isFocused:a,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=Gv(t,n),v=$e("checkbox"),m=O(()=>[v.b(),v.m(l.value),v.is("disabled",i.value),v.is("bordered",t.border),v.is("checked",s.value)]),p=O(()=>[v.e("input"),v.is("disabled",i.value),v.is("checked",s.value),v.is("indeterminate",t.indeterminate),v.is("focus",a.value)]);return(y,g)=>(I(),he(dt(!h(u)&&h(o)?"span":"label"),{class:Y(h(m)),"aria-controls":y.indeterminate?y.controls:null,onClick:h(d)},{default:pe(()=>[fe("span",{class:Y(h(p)),tabindex:y.indeterminate?0:void 0,role:y.indeterminate?"checkbox":void 0,"aria-checked":y.indeterminate?"mixed":void 0},[y.trueLabel||y.falseLabel?ct((I(),ne("input",{key:0,id:h(r),"onUpdate:modelValue":g[0]||(g[0]=w=>qe(c)?c.value=w:null),class:Y(h(v).e("original")),type:"checkbox","aria-hidden":y.indeterminate?"true":"false",name:y.name,tabindex:y.tabindex,disabled:h(i),"true-value":y.trueLabel,"false-value":y.falseLabel,onChange:g[1]||(g[1]=(...w)=>h(f)&&h(f)(...w)),onFocus:g[2]||(g[2]=w=>a.value=!0),onBlur:g[3]||(g[3]=w=>a.value=!1)},null,42,PA)),[[Oi,h(c)]]):ct((I(),ne("input",{key:1,id:h(r),"onUpdate:modelValue":g[4]||(g[4]=w=>qe(c)?c.value=w:null),class:Y(h(v).e("original")),type:"checkbox","aria-hidden":y.indeterminate?"true":"false",disabled:h(i),value:y.label,name:y.name,tabindex:y.tabindex,onChange:g[5]||(g[5]=(...w)=>h(f)&&h(f)(...w)),onFocus:g[6]||(g[6]=w=>a.value=!0),onBlur:g[7]||(g[7]=w=>a.value=!1)},null,42,$A)),[[Oi,h(c)]]),fe("span",{class:Y(h(v).e("inner"))},null,2)],10,AA),h(u)?(I(),ne("span",{key:0,class:Y(h(v).e("label"))},[_e(y.$slots,"default"),y.$slots.default?ce("v-if",!0):(I(),ne(We,{key:0},[Rs(tt(y.label),1)],64))],2)):ce("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var kA=Le(RA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const NA=["name","tabindex","disabled","true-value","false-value"],MA=["name","tabindex","disabled","value"],LA=re({name:"ElCheckboxButton"}),FA=re({...LA,props:Uv,emits:Wv,setup(e){const t=e,n=Ur(),{isFocused:r,isChecked:o,isDisabled:s,checkboxButtonSize:i,model:a,handleChange:l}=Gv(t,n),u=Oe(Lo,void 0),c=$e("checkbox"),f=O(()=>{var v,m,p,y;const g=(m=(v=u==null?void 0:u.fill)==null?void 0:v.value)!=null?m:"";return{backgroundColor:g,borderColor:g,color:(y=(p=u==null?void 0:u.textColor)==null?void 0:p.value)!=null?y:"",boxShadow:g?`-1px 0 0 0 ${g}`:void 0}}),d=O(()=>[c.b("button"),c.bm("button",i.value),c.is("disabled",s.value),c.is("checked",o.value),c.is("focus",r.value)]);return(v,m)=>(I(),ne("label",{class:Y(h(d))},[v.trueLabel||v.falseLabel?ct((I(),ne("input",{key:0,"onUpdate:modelValue":m[0]||(m[0]=p=>qe(a)?a.value=p:null),class:Y(h(c).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:h(s),"true-value":v.trueLabel,"false-value":v.falseLabel,onChange:m[1]||(m[1]=(...p)=>h(l)&&h(l)(...p)),onFocus:m[2]||(m[2]=p=>r.value=!0),onBlur:m[3]||(m[3]=p=>r.value=!1)},null,42,NA)),[[Oi,h(a)]]):ct((I(),ne("input",{key:1,"onUpdate:modelValue":m[4]||(m[4]=p=>qe(a)?a.value=p:null),class:Y(h(c).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:h(s),value:v.label,onChange:m[5]||(m[5]=(...p)=>h(l)&&h(l)(...p)),onFocus:m[6]||(m[6]=p=>r.value=!0),onBlur:m[7]||(m[7]=p=>r.value=!1)},null,42,MA)),[[Oi,h(a)]]),v.$slots.default||v.label?(I(),ne("span",{key:2,class:Y(h(c).be("button","inner")),style:Xe(h(o)?h(f):void 0)},[_e(v.$slots,"default",{},()=>[Rs(tt(v.label),1)])],6)):ce("v-if",!0)],2))}});var Yv=Le(FA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const BA=Me({modelValue:{type:Ce(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:ko,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),zA={[Ge]:e=>ge(e),change:e=>ge(e)},DA=re({name:"ElCheckboxGroup"}),jA=re({...DA,props:BA,emits:zA,setup(e,{emit:t}){const n=e,r=$e("checkbox"),{formItem:o}=wr(),{inputId:s,isLabeledByFormItem:i}=fa(n,{formItemContext:o}),a=async u=>{t(Ge,u),await Re(),t("change",u)},l=O({get(){return n.modelValue},set(u){a(u)}});return at(Lo,{...lE(gr(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:a}),ue(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return I(),he(dt(u.tag),{id:h(s),class:Y(h(r).b("group")),role:"group","aria-label":h(i)?void 0:u.label||"checkbox-group","aria-labelledby":h(i)?(f=h(o))==null?void 0:f.labelId:void 0},{default:pe(()=>[_e(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Jv=Le(jA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const tI=yt(kA,{CheckboxButton:Yv,CheckboxGroup:Jv});Jr(Yv);const nI=Jr(Jv),Xv=Me({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Io,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),HA={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},VA=re({name:"ElTag"}),KA=re({...VA,props:Xv,emits:HA,setup(e,{emit:t}){const n=e,r=cn(),o=$e("tag"),s=O(()=>{const{type:l,hit:u,effect:c,closable:f,round:d}=n;return[o.b(),o.is("closable",f),o.m(l),o.m(r.value),o.m(c),o.is("hit",u),o.is("round",d)]}),i=l=>{t("close",l)},a=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(I(),ne("span",{key:0,class:Y(h(s)),style:Xe({backgroundColor:l.color}),onClick:a},[fe("span",{class:Y(h(o).e("content"))},[_e(l.$slots,"default")],2),l.closable?(I(),he(h(rt),{key:0,class:Y(h(o).e("close")),onClick:wt(i,["stop"])},{default:pe(()=>[ie(h(ws))]),_:1},8,["class","onClick"])):ce("v-if",!0)],6)):(I(),he(an,{key:1,name:`${h(o).namespace.value}-zoom-in-center`,appear:""},{default:pe(()=>[fe("span",{class:Y(h(s)),style:Xe({backgroundColor:l.color}),onClick:a},[fe("span",{class:Y(h(o).e("content"))},[_e(l.$slots,"default")],2),l.closable?(I(),he(h(rt),{key:0,class:Y(h(o).e("close")),onClick:wt(i,["stop"])},{default:pe(()=>[ie(h(ws))]),_:1},8,["class","onClick"])):ce("v-if",!0)],6)]),_:3},8,["name"]))}});var qA=Le(KA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const UA=yt(qA),WA=Me({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Ce([String,Array,Object])},zIndex:{type:Ce([String,Number])}}),GA={click:e=>e instanceof MouseEvent},YA="overlay";var JA=re({name:"ElOverlay",props:WA,emits:GA,setup(e,{slots:t,emit:n}){const r=$e(YA),o=l=>{n("click",l)},{onClick:s,onMousedown:i,onMouseup:a}=bv(e.customMaskEvent?void 0:o);return()=>e.mask?ie("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:s,onMousedown:i,onMouseup:a},[_e(t,"default")],ci.STYLE|ci.CLASS|ci.PROPS,["onClick","onMouseup","onMousedown"]):Mn("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[_e(t,"default")])}});const XA=JA,Qv=Symbol("dialogInjectionKey"),Zv=Me({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:Jt},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),QA={close:()=>!0},ZA=["aria-label"],eP=["id"],tP=re({name:"ElDialogContent"}),nP=re({...tP,props:Zv,emits:QA,setup(e){const t=e,{t:n}=Ro(),{Close:r}=NO,{dialogRef:o,headerRef:s,bodyId:i,ns:a,style:l}=Oe(Qv),{focusTrapRef:u}=Oe(Bv),c=zO(u,o),f=O(()=>t.draggable);return UO(o,s,f),(d,v)=>(I(),ne("div",{ref:h(c),class:Y([h(a).b(),h(a).is("fullscreen",d.fullscreen),h(a).is("draggable",h(f)),h(a).is("align-center",d.alignCenter),{[h(a).m("center")]:d.center},d.customClass]),style:Xe(h(l)),tabindex:"-1"},[fe("header",{ref_key:"headerRef",ref:s,class:Y(h(a).e("header"))},[_e(d.$slots,"header",{},()=>[fe("span",{role:"heading",class:Y(h(a).e("title"))},tt(d.title),3)]),d.showClose?(I(),ne("button",{key:0,"aria-label":h(n)("el.dialog.close"),class:Y(h(a).e("headerbtn")),type:"button",onClick:v[0]||(v[0]=m=>d.$emit("close"))},[ie(h(rt),{class:Y(h(a).e("close"))},{default:pe(()=>[(I(),he(dt(d.closeIcon||h(r))))]),_:1},8,["class"])],10,ZA)):ce("v-if",!0)],2),fe("div",{id:h(i),class:Y(h(a).e("body"))},[_e(d.$slots,"default")],10,eP),d.$slots.footer?(I(),ne("footer",{key:0,class:Y(h(a).e("footer"))},[_e(d.$slots,"footer")],2)):ce("v-if",!0)],6))}});var rP=Le(nP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const oP=Me({...Zv,appendToBody:{type:Boolean,default:!1},beforeClose:{type:Ce(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),sP={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Ge]:e=>Kt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},iP=(e,t)=>{const r=st().emit,{nextZIndex:o}=ua();let s="";const i=Es(),a=Es(),l=V(!1),u=V(!1),c=V(!1),f=V(e.zIndex||o());let d,v;const m=ca("namespace",ki),p=O(()=>{const $={},K=`--${m.value}-dialog`;return e.fullscreen||(e.top&&($[`${K}-margin-top`]=e.top),e.width&&($[`${K}-width`]=On(e.width))),$}),y=O(()=>e.alignCenter?{display:"flex"}:{});function g(){r("opened")}function w(){r("closed"),r(Ge,!1),e.destroyOnClose&&(c.value=!1)}function _(){r("close")}function T(){v==null||v(),d==null||d(),e.openDelay&&e.openDelay>0?{stop:d}=yl(()=>x(),e.openDelay):x()}function C(){d==null||d(),v==null||v(),e.closeDelay&&e.closeDelay>0?{stop:v}=yl(()=>F(),e.closeDelay):F()}function P(){function $(K){K||(u.value=!0,l.value=!1)}e.beforeClose?e.beforeClose($):C()}function E(){e.closeOnClickModal&&P()}function x(){ot&&(l.value=!0)}function F(){l.value=!1}function R(){r("openAutoFocus")}function H(){r("closeAutoFocus")}function B($){var K;((K=$.detail)==null?void 0:K.focusReason)==="pointer"&&$.preventDefault()}e.lockScroll&&ZO(l);function A(){e.closeOnPressEscape&&P()}return ue(()=>e.modelValue,$=>{$?(u.value=!1,T(),c.value=!0,f.value=e.zIndex?f.value++:o(),Re(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):l.value&&C()}),ue(()=>e.fullscreen,$=>{t.value&&($?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),Ue(()=>{e.modelValue&&(l.value=!0,c.value=!0,T())}),{afterEnter:g,afterLeave:w,beforeLeave:_,handleClose:P,onModalClick:E,close:C,doClose:F,onOpenAutoFocus:R,onCloseAutoFocus:H,onCloseRequested:A,onFocusoutPrevented:B,titleId:i,bodyId:a,closed:u,style:p,overlayDialogStyle:y,rendered:c,visible:l,zIndex:f}},aP=["aria-label","aria-labelledby","aria-describedby"],lP=re({name:"ElDialog",inheritAttrs:!1}),uP=re({...lP,props:oP,emits:sP,setup(e,{expose:t}){const n=e,r=Ur();bo({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},O(()=>!!r.title)),bo({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},O(()=>!!n.customClass));const o=$e("dialog"),s=V(),i=V(),a=V(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:v,zIndex:m,afterEnter:p,afterLeave:y,beforeLeave:g,handleClose:w,onModalClick:_,onOpenAutoFocus:T,onCloseAutoFocus:C,onCloseRequested:P,onFocusoutPrevented:E}=iP(n,s);at(Qv,{dialogRef:s,headerRef:i,bodyId:c,ns:o,rendered:v,style:f});const x=bv(_),F=O(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:a}),(R,H)=>(I(),he(Gp,{to:"body",disabled:!R.appendToBody},[ie(an,{name:"dialog-fade",onAfterEnter:h(p),onAfterLeave:h(y),onBeforeLeave:h(g),persisted:""},{default:pe(()=>[ct(ie(h(XA),{"custom-mask-event":"",mask:R.modal,"overlay-class":R.modalClass,"z-index":h(m)},{default:pe(()=>[fe("div",{role:"dialog","aria-modal":"true","aria-label":R.title||void 0,"aria-labelledby":R.title?void 0:h(u),"aria-describedby":h(c),class:Y(`${h(o).namespace.value}-overlay-dialog`),style:Xe(h(d)),onClick:H[0]||(H[0]=(...B)=>h(x).onClick&&h(x).onClick(...B)),onMousedown:H[1]||(H[1]=(...B)=>h(x).onMousedown&&h(x).onMousedown(...B)),onMouseup:H[2]||(H[2]=(...B)=>h(x).onMouseup&&h(x).onMouseup(...B))},[ie(h(Dv),{loop:"",trapped:h(l),"focus-start-el":"container",onFocusAfterTrapped:h(T),onFocusAfterReleased:h(C),onFocusoutPrevented:h(E),onReleaseRequested:h(P)},{default:pe(()=>[h(v)?(I(),he(rP,wn({key:0,ref_key:"dialogContentRef",ref:a},R.$attrs,{"custom-class":R.customClass,center:R.center,"align-center":R.alignCenter,"close-icon":R.closeIcon,draggable:h(F),fullscreen:R.fullscreen,"show-close":R.showClose,title:R.title,onClose:h(w)}),zp({header:pe(()=>[R.$slots.title?_e(R.$slots,"title",{key:1}):_e(R.$slots,"header",{key:0,close:h(w),titleId:h(u),titleClass:h(o).e("title")})]),default:pe(()=>[_e(R.$slots,"default")]),_:2},[R.$slots.footer?{name:"footer",fn:pe(()=>[_e(R.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):ce("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,aP)]),_:3},8,["mask","overlay-class","z-index"]),[[fn,h(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var cP=Le(uP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const rI=yt(cP),fP=re({inheritAttrs:!1});function dP(e,t,n,r,o,s){return _e(e.$slots,"default")}var pP=Le(fP,[["render",dP],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const hP=re({name:"ElCollectionItem",inheritAttrs:!1});function vP(e,t,n,r,o,s){return _e(e.$slots,"default")}var mP=Le(hP,[["render",vP],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const gP="data-el-collection-item",yP=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),o=Symbol(n),s={...pP,name:t,setup(){const a=V(null),l=new Map;at(r,{itemMap:l,getItems:()=>{const c=h(a);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${gP}]`));return[...l.values()].sort((v,m)=>f.indexOf(v.ref)-f.indexOf(m.ref))},collectionRef:a})}},i={...mP,name:n,setup(a,{attrs:l}){const u=V(null),c=Oe(r,void 0);at(o,{collectionItemRef:u}),Ue(()=>{const f=h(u);f&&c.itemMap.set(f,{ref:f,...l})}),At(()=>{const f=h(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:s,ElCollectionItem:i}},Ka=Me({trigger:Os.trigger,effect:{...zt.effect,default:"light"},type:{type:Ce(String)},placement:{type:Ce(String),default:"bottom"},popperOptions:{type:Ce(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:Ce([Number,String]),default:0},maxHeight:{type:Ce([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Ce(Object)},teleported:zt.teleported});Me({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Jt}});Me({onKeydown:{type:Ce(Function)}});yP("Dropdown");const bP=Me({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:ko,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||Ve(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),wP={[Hr]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[zr]:e=>Ve(e)||zn(e),[Ge]:e=>Ve(e)||zn(e)},_P=["aria-label","onKeydown"],SP=["aria-label","onKeydown"],EP=re({name:"ElInputNumber"}),CP=re({...EP,props:bP,emits:wP,setup(e,{expose:t,emit:n}){const r=e,{t:o}=Ro(),s=$e("input-number"),i=V(),a=Et({currentValue:r.modelValue,userInput:null}),{formItem:l}=wr(),u=O(()=>Ve(r.modelValue)&&r.modelValue<=r.min),c=O(()=>Ve(r.modelValue)&&r.modelValue>=r.max),f=O(()=>{const A=g(r.step);return yn(r.precision)?Math.max(g(r.modelValue),A):(A>r.precision,r.precision)}),d=O(()=>r.controls&&r.controlsPosition==="right"),v=cn(),m=Mo(),p=O(()=>{if(a.userInput!==null)return a.userInput;let A=a.currentValue;if(zn(A))return"";if(Ve(A)){if(Number.isNaN(A))return"";yn(r.precision)||(A=A.toFixed(r.precision))}return A}),y=(A,$)=>{if(yn($)&&($=f.value),$===0)return Math.round(A);let K=String(A);const U=K.indexOf(".");if(U===-1||!K.replace(".","").split("")[U+$])return A;const Ee=K.length;return K.charAt(Ee-1)==="5"&&(K=`${K.slice(0,Math.max(0,Ee-1))}6`),Number.parseFloat(Number(K).toFixed($))},g=A=>{if(zn(A))return 0;const $=A.toString(),K=$.indexOf(".");let U=0;return K!==-1&&(U=$.length-K-1),U},w=(A,$=1)=>Ve(A)?y(A+r.step*$):a.currentValue,_=()=>{if(r.readonly||m.value||c.value)return;const A=Number(p.value)||0,$=w(A);P($),n(zr,a.currentValue)},T=()=>{if(r.readonly||m.value||u.value)return;const A=Number(p.value)||0,$=w(A,-1);P($),n(zr,a.currentValue)},C=(A,$)=>{const{max:K,min:U,step:k,precision:le,stepStrictly:Ee,valueOnClear:Fe}=r;let Te=Number(A);if(zn(A)||Number.isNaN(Te))return null;if(A===""){if(Fe===null)return null;Te=xe(Fe)?{min:U,max:K}[Fe]:Fe}return Ee&&(Te=y(Math.round(Te/k)*k,le)),yn(le)||(Te=y(Te,le)),(Te>K||TeK?K:U,$&&n(Ge,Te)),Te},P=(A,$=!0)=>{var K;const U=a.currentValue,k=C(A);if(!$){n(Ge,k);return}U!==k&&(a.userInput=null,n(Ge,k),n(Hr,k,U),r.validateEvent&&((K=l==null?void 0:l.validate)==null||K.call(l,"change").catch(le=>void 0)),a.currentValue=k)},E=A=>{a.userInput=A;const $=A===""?null:Number(A);n(zr,$),P($,!1)},x=A=>{const $=A!==""?Number(A):"";(Ve($)&&!Number.isNaN($)||A==="")&&P($),a.userInput=null},F=()=>{var A,$;($=(A=i.value)==null?void 0:A.focus)==null||$.call(A)},R=()=>{var A,$;($=(A=i.value)==null?void 0:A.blur)==null||$.call(A)},H=A=>{n("focus",A)},B=A=>{var $;n("blur",A),r.validateEvent&&(($=l==null?void 0:l.validate)==null||$.call(l,"blur").catch(K=>void 0))};return ue(()=>r.modelValue,A=>{const $=C(a.userInput),K=C(A,!0);!Ve($)&&(!$||$!==K)&&(a.currentValue=K,a.userInput=null)},{immediate:!0}),Ue(()=>{var A;const{min:$,max:K,modelValue:U}=r,k=(A=i.value)==null?void 0:A.input;if(k.setAttribute("role","spinbutton"),Number.isFinite(K)?k.setAttribute("aria-valuemax",String(K)):k.removeAttribute("aria-valuemax"),Number.isFinite($)?k.setAttribute("aria-valuemin",String($)):k.removeAttribute("aria-valuemin"),k.setAttribute("aria-valuenow",String(a.currentValue)),k.setAttribute("aria-disabled",String(m.value)),!Ve(U)&&U!=null){let le=Number(U);Number.isNaN(le)&&(le=null),n(Ge,le)}}),Kr(()=>{var A;const $=(A=i.value)==null?void 0:A.input;$==null||$.setAttribute("aria-valuenow",`${a.currentValue}`)}),t({focus:F,blur:R}),(A,$)=>(I(),ne("div",{class:Y([h(s).b(),h(s).m(h(v)),h(s).is("disabled",h(m)),h(s).is("without-controls",!A.controls),h(s).is("controls-right",h(d))]),onDragstart:$[1]||($[1]=wt(()=>{},["prevent"]))},[A.controls?ct((I(),ne("span",{key:0,role:"button","aria-label":h(o)("el.inputNumber.decrease"),class:Y([h(s).e("decrease"),h(s).is("disabled",h(u))]),onKeydown:Tt(T,["enter"])},[ie(h(rt),null,{default:pe(()=>[h(d)?(I(),he(h(Yh),{key:0})):(I(),he(h(iO),{key:1}))]),_:1})],42,_P)),[[h($d),T]]):ce("v-if",!0),A.controls?ct((I(),ne("span",{key:1,role:"button","aria-label":h(o)("el.inputNumber.increase"),class:Y([h(s).e("increase"),h(s).is("disabled",h(c))]),onKeydown:Tt(_,["enter"])},[ie(h(rt),null,{default:pe(()=>[h(d)?(I(),he(h(FE),{key:0})):(I(),he(h(Qh),{key:1}))]),_:1})],42,SP)),[[h($d),_]]):ce("v-if",!0),ie(h(Iv),{id:A.id,ref_key:"input",ref:i,type:"number",step:A.step,"model-value":h(p),placeholder:A.placeholder,readonly:A.readonly,disabled:h(m),size:h(v),max:A.max,min:A.min,name:A.name,label:A.label,"validate-event":!1,onWheel:$[0]||($[0]=wt(()=>{},["prevent"])),onKeydown:[Tt(wt(_,["prevent"]),["up"]),Tt(wt(T,["prevent"]),["down"])],onBlur:B,onFocus:H,onInput:E,onChange:x},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var OP=Le(CP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const oI=yt(OP),TP=Me({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:Jt}}),xP={click:e=>e instanceof MouseEvent},AP=["href"],PP=re({name:"ElLink"}),$P=re({...PP,props:TP,emits:xP,setup(e,{emit:t}){const n=e,r=$e("link"),o=O(()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]);function s(i){n.disabled||t("click",i)}return(i,a)=>(I(),ne("a",{class:Y(h(o)),href:i.disabled||!i.href?void 0:i.href,onClick:s},[i.icon?(I(),he(h(rt),{key:0},{default:pe(()=>[(I(),he(dt(i.icon)))]),_:1})):ce("v-if",!0),i.$slots.default?(I(),ne("span",{key:1,class:Y(h(r).e("inner"))},[_e(i.$slots,"default")],2)):ce("v-if",!0),i.$slots.icon?_e(i.$slots,"icon",{key:2}):ce("v-if",!0)],10,AP))}});var IP=Le($P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const sI=yt(IP),em=Symbol("ElSelectGroup"),pa=Symbol("ElSelect");function RP(e,t){const n=Oe(pa),r=Oe(em,{disabled:!1}),o=O(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),s=O(()=>n.props.multiple?f(n.props.modelValue,e.value):d(e.value,n.props.modelValue)),i=O(()=>{if(n.props.multiple){const p=n.props.modelValue||[];return!s.value&&p.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=O(()=>e.label||(o.value?"":e.value)),l=O(()=>e.value||e.label||""),u=O(()=>e.disabled||t.groupDisabled||i.value),c=st(),f=(p=[],y)=>{if(o.value){const g=n.props.valueKey;return p&&p.some(w=>Ae(Dt(w,g))===Dt(y,g))}else return p&&p.includes(y)},d=(p,y)=>{if(o.value){const{valueKey:g}=n.props;return Dt(p,g)===Dt(y,g)}else return p===y},v=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(c.proxy))};ue(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),ue(()=>e.value,(p,y)=>{const{remote:g,valueKey:w}=n.props;if(Object.is(p,y)||(n.onOptionDestroy(y,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!g){if(w&&typeof p=="object"&&typeof y=="object"&&p[w]===y[w])return;n.setSelected()}}),ue(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:m}=Ae(n);return ue(m,p=>{const{query:y}=h(p),g=new RegExp(fE(y),"i");t.visible=g.test(a.value)||e.created,t.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:a,currentValue:l,itemSelected:s,isDisabled:u,hoverItem:v}}const kP=re({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=$e("select"),n=Et({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:r,itemSelected:o,isDisabled:s,select:i,hoverItem:a}=RP(e,n),{visible:l,hover:u}=gr(n),c=st().proxy;i.onOptionCreate(c),At(()=>{const d=c.value,{selected:v}=i,p=(i.props.multiple?v:[v]).some(y=>y.value===c.value);Re(()=>{i.cachedOptions.get(d)===c&&!p&&i.cachedOptions.delete(d)}),i.onOptionDestroy(d,c)});function f(){e.disabled!==!0&&n.groupDisabled!==!0&&i.handleOptionSelect(c,!0)}return{ns:t,currentLabel:r,itemSelected:o,isDisabled:s,select:i,hoverItem:a,visible:l,hover:u,selectOptionClick:f,states:n}}});function NP(e,t,n,r,o,s){return ct((I(),ne("li",{class:Y([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...i)=>e.hoverItem&&e.hoverItem(...i)),onClick:t[1]||(t[1]=wt((...i)=>e.selectOptionClick&&e.selectOptionClick(...i),["stop"]))},[_e(e.$slots,"default",{},()=>[fe("span",null,tt(e.currentLabel),1)])],34)),[[fn,e.visible]])}var Wu=Le(kP,[["render",NP],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const MP=re({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Oe(pa),t=$e("select"),n=O(()=>e.props.popperClass),r=O(()=>e.props.multiple),o=O(()=>e.props.fitInputWidth),s=V("");function i(){var a;s.value=`${(a=e.selectWrapper)==null?void 0:a.offsetWidth}px`}return Ue(()=>{i(),yr(e.selectWrapper,i)}),{ns:t,minWidth:s,popperClass:n,isMultiple:r,isFitInputWidth:o}}});function LP(e,t,n,r,o,s){return I(),ne("div",{class:Y([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Xe({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[_e(e.$slots,"default")],6)}var FP=Le(MP,[["render",LP],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function BP(e){const{t}=Ro();return Et({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}const zP=(e,t,n)=>{const{t:r}=Ro(),o=$e("select");bo({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},O(()=>e.suffixTransition===!1));const s=V(null),i=V(null),a=V(null),l=V(null),u=V(null),c=V(null),f=V(null),d=V(-1),v=Fn({query:""}),m=Fn(""),p=V([]);let y=0;const{form:g,formItem:w}=wr(),_=O(()=>!e.filterable||e.multiple||!t.visible),T=O(()=>e.disabled||(g==null?void 0:g.disabled)),C=O(()=>{const M=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!T.value&&t.inputHovering&&M}),P=O(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),E=O(()=>o.is("reverse",P.value&&t.visible&&e.suffixTransition)),x=O(()=>e.remote?300:0),F=O(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),R=O(()=>{const M=Array.from(t.options.values()),Z=[];return p.value.forEach(Se=>{const Pe=M.findIndex(ft=>ft.currentLabel===Se);Pe>-1&&Z.push(M[Pe])}),Z.length?Z:M}),H=O(()=>Array.from(t.cachedOptions.values())),B=O(()=>{const M=R.value.filter(Z=>!Z.created).some(Z=>Z.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!M}),A=cn(),$=O(()=>["small"].includes(A.value)?"small":"default"),K=O({get(){return t.visible&&F.value!==!1},set(M){t.visible=M}});ue([()=>T.value,()=>A.value,()=>g==null?void 0:g.size],()=>{Re(()=>{U()})}),ue(()=>e.placeholder,M=>{t.cachedPlaceHolder=t.currentPlaceholder=M}),ue(()=>e.modelValue,(M,Z)=>{e.multiple&&(U(),M&&M.length>0||i.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",k(t.query))),Fe(),e.filterable&&!e.multiple&&(t.inputLength=20),!Ol(M,Z)&&e.validateEvent&&(w==null||w.validate("change").catch(Se=>void 0))},{flush:"post",deep:!0}),ue(()=>t.visible,M=>{var Z,Se,Pe,ft,Ot;M?((Se=(Z=l.value)==null?void 0:Z.updatePopper)==null||Se.call(Z),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(ft=(Pe=a.value)==null?void 0:Pe.focus)==null||ft.call(Pe),e.multiple?(Ot=i.value)==null||Ot.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),k(t.query),!e.multiple&&!e.remote&&(v.value.query="",Bo(v),Bo(m)))):(e.filterable&&(ye(e.filterMethod)&&e.filterMethod(""),ye(e.remoteMethod)&&e.remoteMethod("")),i.value&&i.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,Be(),Re(()=>{i.value&&i.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",M)}),ue(()=>t.options.entries(),()=>{var M,Z,Se;if(!ot)return;(Z=(M=l.value)==null?void 0:M.updatePopper)==null||Z.call(M),e.multiple&&U();const Pe=((Se=c.value)==null?void 0:Se.querySelectorAll("input"))||[];Array.from(Pe).includes(document.activeElement)||Fe(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&Ee()},{flush:"post"}),ue(()=>t.hoverIndex,M=>{Ve(M)&&M>-1?d.value=R.value[M]||{}:d.value={},R.value.forEach(Z=>{Z.hover=d.value===Z})});const U=()=>{Re(()=>{var M,Z;if(!s.value)return;const Se=s.value.$el.querySelector("input");y=y||(Se.clientHeight>0?Se.clientHeight+2:0);const Pe=u.value,ft=jO(A.value||(g==null?void 0:g.size)),Ot=ft===y||y<=0?ft:y;!(Se.offsetParent===null)&&(Se.style.height=`${(t.selected.length===0?Ot:Math.max(Pe?Pe.clientHeight+(Pe.clientHeight>Ot?6:0):0,Ot))-2}px`),t.tagInMultiLine=Number.parseFloat(Se.style.height)>=Ot,t.visible&&F.value!==!1&&((Z=(M=l.value)==null?void 0:M.updatePopper)==null||Z.call(M))})},k=async M=>{if(!(t.previousQuery===M||t.isOnComposition)){if(t.previousQuery===null&&(ye(e.filterMethod)||ye(e.remoteMethod))){t.previousQuery=M;return}t.previousQuery=M,Re(()=>{var Z,Se;t.visible&&((Se=(Z=l.value)==null?void 0:Z.updatePopper)==null||Se.call(Z))}),t.hoverIndex=-1,e.multiple&&e.filterable&&Re(()=>{const Z=i.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,Z):Z,le(),U()}),e.remote&&ye(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(M)):ye(e.filterMethod)?(e.filterMethod(M),Bo(m)):(t.filteredOptionsCount=t.optionsCount,v.value.query=M,Bo(v),Bo(m)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Re(),Ee())}},le=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=i.value.value?"":t.cachedPlaceHolder)},Ee=()=>{const M=R.value.filter(Pe=>Pe.visible&&!Pe.disabled&&!Pe.states.groupDisabled),Z=M.find(Pe=>Pe.created),Se=M[0];t.hoverIndex=S(R.value,Z||Se)},Fe=()=>{var M;if(e.multiple)t.selectedLabel="";else{const Se=Te(e.modelValue);(M=Se.props)!=null&&M.created?(t.createdLabel=Se.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=Se.currentLabel,t.selected=Se,e.filterable&&(t.query=t.selectedLabel);return}const Z=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Se=>{Z.push(Te(Se))}),t.selected=Z,Re(()=>{U()})},Te=M=>{let Z;const Se=oi(M).toLowerCase()==="object",Pe=oi(M).toLowerCase()==="null",ft=oi(M).toLowerCase()==="undefined";for(let Pn=t.cachedOptions.size-1;Pn>=0;Pn--){const qt=H.value[Pn];if(Se?Dt(qt.value,e.valueKey)===Dt(M,e.valueKey):qt.value===M){Z={value:M,currentLabel:qt.currentLabel,isDisabled:qt.isDisabled};break}}if(Z)return Z;const Ot=Se?M.label:!Pe&&!ft?M:"",An={value:M,currentLabel:Ot};return e.multiple&&(An.hitState=!1),An},Be=()=>{setTimeout(()=>{const M=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(Z=>R.value.findIndex(Se=>Dt(Se,M)===Dt(Z,M)))):t.hoverIndex=-1:t.hoverIndex=R.value.findIndex(Z=>mt(Z)===mt(t.selected))},300)},Ye=()=>{var M,Z;je(),(Z=(M=l.value)==null?void 0:M.updatePopper)==null||Z.call(M),e.multiple&&U()},je=()=>{var M;t.inputWidth=(M=s.value)==null?void 0:M.$el.offsetWidth},D=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,k(t.query))},ee=Kf(()=>{D()},x.value),L=Kf(M=>{k(M.target.value)},x.value),W=M=>{Ol(e.modelValue,M)||n.emit(Hr,M)},de=M=>{if(M.target.value.length<=0&&!X()){const Z=e.modelValue.slice();Z.pop(),n.emit(Ge,Z),W(Z)}M.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)},we=(M,Z)=>{const Se=t.selected.indexOf(Z);if(Se>-1&&!T.value){const Pe=e.modelValue.slice();Pe.splice(Se,1),n.emit(Ge,Pe),W(Pe),n.emit("remove-tag",Z.value)}M.stopPropagation()},ve=M=>{M.stopPropagation();const Z=e.multiple?[]:"";if(!xe(Z))for(const Se of t.selected)Se.isDisabled&&Z.push(Se.value);n.emit(Ge,Z),W(Z),t.hoverIndex=-1,t.visible=!1,n.emit("clear")},b=(M,Z)=>{var Se;if(e.multiple){const Pe=(e.modelValue||[]).slice(),ft=S(Pe,M.value);ft>-1?Pe.splice(ft,1):(e.multipleLimit<=0||Pe.length{j(M)})},S=(M=[],Z)=>{if(!Ne(Z))return M.indexOf(Z);const Se=e.valueKey;let Pe=-1;return M.some((ft,Ot)=>Ae(Dt(ft,Se))===Dt(Z,Se)?(Pe=Ot,!0):!1),Pe},z=()=>{t.softFocus=!0;const M=i.value||s.value;M&&(M==null||M.focus())},j=M=>{var Z,Se,Pe,ft,Ot;const An=Array.isArray(M)?M[0]:M;let Pn=null;if(An!=null&&An.value){const qt=R.value.filter(_a=>_a.value===An.value);qt.length>0&&(Pn=qt[0].$el)}if(l.value&&Pn){const qt=(ft=(Pe=(Se=(Z=l.value)==null?void 0:Z.popperRef)==null?void 0:Se.contentRef)==null?void 0:Pe.querySelector)==null?void 0:ft.call(Pe,`.${o.be("dropdown","wrap")}`);qt&&hE(qt,Pn)}(Ot=f.value)==null||Ot.handleScroll()},G=M=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(M.value,M),t.cachedOptions.set(M.value,M)},Q=(M,Z)=>{t.options.get(M)===Z&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(M))},oe=M=>{M.code!==Sn.backspace&&X(!1),t.inputLength=i.value.value.length*15+20,U()},X=M=>{if(!Array.isArray(t.selected))return;const Z=t.selected[t.selected.length-1];if(Z)return M===!0||M===!1?(Z.hitState=M,M):(Z.hitState=!Z.hitState,Z.hitState)},te=M=>{const Z=M.target.value;if(M.type==="compositionend")t.isOnComposition=!1,Re(()=>k(Z));else{const Se=Z[Z.length-1]||"";t.isOnComposition=!rv(Se)}},J=()=>{Re(()=>j(t.selected))},me=M=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",M))},ae=()=>{var M,Z,Se;t.visible=!1,(M=s.value)==null||M.blur(),(Se=(Z=a.value)==null?void 0:Z.blur)==null||Se.call(Z)},N=M=>{Re(()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",M)}),t.softFocus=!1},se=M=>{ve(M)},be=()=>{t.visible=!1},ke=M=>{t.visible&&(M.preventDefault(),M.stopPropagation(),t.visible=!1)},Ie=M=>{var Z;M&&!t.mouseEnter||T.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(t.visible=!t.visible),t.visible&&((Z=i.value||s.value)==null||Z.focus()))},nt=()=>{t.visible?R.value[t.hoverIndex]&&b(R.value[t.hoverIndex],void 0):Ie()},mt=M=>Ne(M.value)?Dt(M.value,e.valueKey):M.value,hn=O(()=>R.value.filter(M=>M.visible).every(M=>M.disabled)),Xr=O(()=>t.selected.slice(0,e.maxCollapseTags)),Zt=O(()=>t.selected.slice(e.maxCollapseTags)),_r=M=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!hn.value){M==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):M==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const Z=R.value[t.hoverIndex];(Z.disabled===!0||Z.states.groupDisabled===!0||!Z.visible)&&_r(M),Re(()=>j(d.value))}};return{optionList:p,optionsArray:R,selectSize:A,handleResize:Ye,debouncedOnInputChange:ee,debouncedQueryChange:L,deletePrevTag:de,deleteTag:we,deleteSelected:ve,handleOptionSelect:b,scrollToOption:j,readonly:_,resetInputHeight:U,showClose:C,iconComponent:P,iconReverse:E,showNewOption:B,collapseTagSize:$,setSelected:Fe,managePlaceholder:le,selectDisabled:T,emptyText:F,toggleLastOptionHitState:X,resetInputState:oe,handleComposition:te,onOptionCreate:G,onOptionDestroy:Q,handleMenuEnter:J,handleFocus:me,blur:ae,handleBlur:N,handleClearClick:se,handleClose:be,handleKeydownEscape:ke,toggleMenu:Ie,selectOption:nt,getValueKey:mt,navigateOptions:_r,dropMenuVisible:K,queryChange:v,groupQueryChange:m,showTagList:Xr,collapseTagList:Zt,reference:s,input:i,iOSInput:a,tooltipRef:l,tags:u,selectWrapper:c,scrollbar:f,handleMouseEnter:()=>{t.mouseEnter=!0},handleMouseLeave:()=>{t.mouseEnter=!1}}};var DP=re({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let r=[];function o(s,i){if(s.length!==i.length)return!1;for(const[a]of s.entries())if(s[a]!=i[a])return!1;return!0}return()=>{var s,i;const a=(s=t.default)==null?void 0:s.call(t),l=[];function u(c){Array.isArray(c)&&c.forEach(f=>{var d,v,m,p;const y=(d=(f==null?void 0:f.type)||{})==null?void 0:d.name;y==="ElOptionGroup"?u(!xe(f.children)&&!Array.isArray(f.children)&&ye((v=f.children)==null?void 0:v.default)?(m=f.children)==null?void 0:m.default():f.children):y==="ElOption"?l.push((p=f.props)==null?void 0:p.label):Array.isArray(f.children)&&u(f.children)})}return a.length&&u((i=a[0])==null?void 0:i.children),o(l,r)||(r=l,n("update-options",l)),a}}});const Id="ElSelect",jP=re({name:Id,componentName:Id,components:{ElInput:Iv,ElSelectMenu:FP,ElOption:Wu,ElOptions:DP,ElTag:UA,ElScrollbar:j3,ElTooltip:Hv,ElIcon:rt},directives:{ClickOutside:wA},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:nv},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:zt.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Jt,default:Ru},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:Jt,default:Yh},tagType:{...Xv.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:aa,default:"bottom-start"}},emits:[Ge,Hr,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=$e("select"),r=$e("input"),{t:o}=Ro(),s=BP(e),{optionList:i,optionsArray:a,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:v,deletePrevTag:m,deleteTag:p,deleteSelected:y,handleOptionSelect:g,scrollToOption:w,setSelected:_,resetInputHeight:T,managePlaceholder:C,showClose:P,selectDisabled:E,iconComponent:x,iconReverse:F,showNewOption:R,emptyText:H,toggleLastOptionHitState:B,resetInputState:A,handleComposition:$,onOptionCreate:K,onOptionDestroy:U,handleMenuEnter:k,handleFocus:le,blur:Ee,handleBlur:Fe,handleClearClick:Te,handleClose:Be,handleKeydownEscape:Ye,toggleMenu:je,selectOption:D,getValueKey:ee,navigateOptions:L,dropMenuVisible:W,reference:de,input:we,iOSInput:ve,tooltipRef:b,tags:S,selectWrapper:z,scrollbar:j,queryChange:G,groupQueryChange:Q,handleMouseEnter:oe,handleMouseLeave:X,showTagList:te,collapseTagList:J}=zP(e,s,t),{focus:me}=WO(de),{inputWidth:ae,selected:N,inputLength:se,filteredOptionsCount:be,visible:ke,softFocus:Ie,selectedLabel:nt,hoverIndex:mt,query:hn,inputHovering:Xr,currentPlaceholder:Zt,menuVisibleOnFocus:_r,isOnComposition:Ct,isSilentBlur:Mt,options:M,cachedOptions:Z,optionsCount:Se,prefixWidth:Pe,tagInMultiLine:ft}=gr(s),Ot=O(()=>{const Lt=[n.b()],Sr=h(l);return Sr&&Lt.push(n.m(Sr)),e.disabled&&Lt.push(n.m("disabled")),Lt}),An=O(()=>({maxWidth:`${h(ae)-32}px`,width:"100%"})),Pn=O(()=>({maxWidth:`${h(ae)>123?h(ae)-123:h(ae)-75}px`}));at(pa,Et({props:e,options:M,optionsArray:a,cachedOptions:Z,optionsCount:Se,filteredOptionsCount:be,hoverIndex:mt,handleOptionSelect:g,onOptionCreate:K,onOptionDestroy:U,selectWrapper:z,selected:N,setSelected:_,queryChange:G,groupQueryChange:Q})),Ue(()=>{s.cachedPlaceHolder=Zt.value=e.placeholder||(()=>o("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(Zt.value=""),yr(z,c),e.remote&&e.multiple&&T(),Re(()=>{const Lt=de.value&&de.value.$el;if(Lt&&(ae.value=Lt.getBoundingClientRect().width,t.slots.prefix)){const Sr=Lt.querySelector(`.${r.e("prefix")}`);Pe.value=Math.max(Sr.getBoundingClientRect().width+5,30)}}),_()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(Ge,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(Ge,"");const qt=O(()=>{var Lt,Sr;return(Sr=(Lt=b.value)==null?void 0:Lt.popperRef)==null?void 0:Sr.contentRef});return{isIOS:Sh,onOptionsRendered:Lt=>{i.value=Lt},tagInMultiLine:ft,prefixWidth:Pe,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:v,deletePrevTag:m,deleteTag:p,deleteSelected:y,handleOptionSelect:g,scrollToOption:w,inputWidth:ae,selected:N,inputLength:se,filteredOptionsCount:be,visible:ke,softFocus:Ie,selectedLabel:nt,hoverIndex:mt,query:hn,inputHovering:Xr,currentPlaceholder:Zt,menuVisibleOnFocus:_r,isOnComposition:Ct,isSilentBlur:Mt,options:M,resetInputHeight:T,managePlaceholder:C,showClose:P,selectDisabled:E,iconComponent:x,iconReverse:F,showNewOption:R,emptyText:H,toggleLastOptionHitState:B,resetInputState:A,handleComposition:$,handleMenuEnter:k,handleFocus:le,blur:Ee,handleBlur:Fe,handleClearClick:Te,handleClose:Be,handleKeydownEscape:Ye,toggleMenu:je,selectOption:D,getValueKey:ee,navigateOptions:L,dropMenuVisible:W,focus:me,reference:de,input:we,iOSInput:ve,tooltipRef:b,popperPaneRef:qt,tags:S,selectWrapper:z,scrollbar:j,wrapperKls:Ot,selectTagsStyle:An,nsSelect:n,tagTextStyle:Pn,handleMouseEnter:oe,handleMouseLeave:X,showTagList:te,collapseTagList:J}}}),HP=["disabled","autocomplete"],VP=["disabled"],KP={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function qP(e,t,n,r,o,s){const i=Jn("el-tag"),a=Jn("el-tooltip"),l=Jn("el-icon"),u=Jn("el-input"),c=Jn("el-option"),f=Jn("el-options"),d=Jn("el-scrollbar"),v=Jn("el-select-menu"),m=Qg("click-outside");return ct((I(),ne("div",{ref:"selectWrapper",class:Y(e.wrapperKls),onMouseenter:t[21]||(t[21]=(...p)=>e.handleMouseEnter&&e.handleMouseEnter(...p)),onMouseleave:t[22]||(t[22]=(...p)=>e.handleMouseLeave&&e.handleMouseLeave(...p)),onClick:t[23]||(t[23]=wt((...p)=>e.toggleMenu&&e.toggleMenu(...p),["stop"]))},[ie(a,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:pe(()=>[fe("div",{class:"select-trigger",onMouseenter:t[19]||(t[19]=p=>e.inputHovering=!0),onMouseleave:t[20]||(t[20]=p=>e.inputHovering=!1)},[e.multiple?(I(),ne("div",{key:0,ref:"tags",class:Y([e.nsSelect.e("tags"),e.nsSelect.is("disabled",e.selectDisabled)]),style:Xe(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(I(),he(an,{key:0,onAfterLeave:e.resetInputHeight},{default:pe(()=>[fe("span",{class:Y([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(I(!0),ne(We,null,Oa(e.showTagList,p=>(I(),he(i,{key:e.getValueKey(p),closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,hit:p.hitState,type:e.tagType,"disable-transitions":"",onClose:y=>e.deleteTag(y,p)},{default:pe(()=>[fe("span",{class:Y(e.nsSelect.e("tags-text")),style:Xe(e.tagTextStyle)},tt(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(I(),he(i,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:pe(()=>[e.collapseTagsTooltip?(I(),he(a,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:pe(()=>[fe("span",{class:Y(e.nsSelect.e("tags-text"))},"+ "+tt(e.selected.length-e.maxCollapseTags),3)]),content:pe(()=>[fe("div",{class:Y(e.nsSelect.e("collapse-tags"))},[(I(!0),ne(We,null,Oa(e.collapseTagList,p=>(I(),ne("div",{key:e.getValueKey(p),class:Y(e.nsSelect.e("collapse-tag"))},[ie(i,{class:"in-tooltip",closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,hit:p.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:y=>e.deleteTag(y,p)},{default:pe(()=>[fe("span",{class:Y(e.nsSelect.e("tags-text")),style:Xe({maxWidth:e.inputWidth-75+"px"})},tt(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(I(),ne("span",{key:1,class:Y(e.nsSelect.e("tags-text"))},"+ "+tt(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):ce("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):ce("v-if",!0),e.collapseTags?ce("v-if",!0):(I(),he(an,{key:1,onAfterLeave:e.resetInputHeight},{default:pe(()=>[fe("span",{class:Y([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(I(!0),ne(We,null,Oa(e.selected,p=>(I(),he(i,{key:e.getValueKey(p),closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,hit:p.hitState,type:e.tagType,"disable-transitions":"",onClose:y=>e.deleteTag(y,p)},{default:pe(()=>[fe("span",{class:Y(e.nsSelect.e("tags-text")),style:Xe({maxWidth:e.inputWidth-75+"px"})},tt(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),e.filterable?ct((I(),ne("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=p=>e.query=p),type:"text",class:Y([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.is("disabled",e.selectDisabled)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Xe({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[1]||(t[1]=(...p)=>e.handleFocus&&e.handleFocus(...p)),onBlur:t[2]||(t[2]=(...p)=>e.handleBlur&&e.handleBlur(...p)),onKeyup:t[3]||(t[3]=(...p)=>e.managePlaceholder&&e.managePlaceholder(...p)),onKeydown:[t[4]||(t[4]=(...p)=>e.resetInputState&&e.resetInputState(...p)),t[5]||(t[5]=Tt(wt(p=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=Tt(wt(p=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=Tt((...p)=>e.handleKeydownEscape&&e.handleKeydownEscape(...p),["esc"])),t[8]||(t[8]=Tt(wt((...p)=>e.selectOption&&e.selectOption(...p),["stop","prevent"]),["enter"])),t[9]||(t[9]=Tt((...p)=>e.deletePrevTag&&e.deletePrevTag(...p),["delete"])),t[10]||(t[10]=Tt(p=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...p)=>e.handleComposition&&e.handleComposition(...p)),onCompositionupdate:t[12]||(t[12]=(...p)=>e.handleComposition&&e.handleComposition(...p)),onCompositionend:t[13]||(t[13]=(...p)=>e.handleComposition&&e.handleComposition(...p)),onInput:t[14]||(t[14]=(...p)=>e.debouncedQueryChange&&e.debouncedQueryChange(...p))},null,46,HP)),[[sb,e.query]]):ce("v-if",!0)],6)):ce("v-if",!0),ce(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(I(),ne("input",{key:1,ref:"iOSInput",class:Y([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.em("input","iOS")]),disabled:e.selectDisabled,type:"text"},null,10,VP)):ce("v-if",!0),ie(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[15]||(t[15]=p=>e.selectedLabel=p),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:Y([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[16]||(t[16]=Tt(wt(p=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[17]||(t[17]=Tt(wt(p=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Tt(wt(e.selectOption,["stop","prevent"]),["enter"]),Tt(e.handleKeydownEscape,["esc"]),t[18]||(t[18]=Tt(p=>e.visible=!1,["tab"]))]},zp({suffix:pe(()=>[e.iconComponent&&!e.showClose?(I(),he(l,{key:0,class:Y([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:pe(()=>[(I(),he(dt(e.iconComponent)))]),_:1},8,["class"])):ce("v-if",!0),e.showClose&&e.clearIcon?(I(),he(l,{key:1,class:Y([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:pe(()=>[(I(),he(dt(e.clearIcon)))]),_:1},8,["class","onClick"])):ce("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:pe(()=>[fe("div",KP,[_e(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:pe(()=>[ie(v,null,{default:pe(()=>[ct(ie(d,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:Y([e.nsSelect.is("empty",!e.allowCreate&&!!e.query&&e.filteredOptionsCount===0)])},{default:pe(()=>[e.showNewOption?(I(),he(c,{key:0,value:e.query,created:!0},null,8,["value"])):ce("v-if",!0),ie(f,{onUpdateOptions:e.onOptionsRendered},{default:pe(()=>[_e(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[fn,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(I(),ne(We,{key:0},[e.$slots.empty?_e(e.$slots,"empty",{key:0}):(I(),ne("p",{key:1,class:Y(e.nsSelect.be("dropdown","empty"))},tt(e.emptyText),3))],64)):ce("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[m,e.handleClose,e.popperPaneRef]])}var UP=Le(jP,[["render",qP],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const WP=re({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=$e("select"),n=V(!0),r=st(),o=V([]);at(em,Et({...gr(e)}));const s=Oe(pa);Ue(()=>{o.value=i(r.subTree)});const i=l=>{const u=[];return Array.isArray(l.children)&&l.children.forEach(c=>{var f;c.type&&c.type.name==="ElOption"&&c.component&&c.component.proxy?u.push(c.component.proxy):(f=c.children)!=null&&f.length&&u.push(...i(c))}),u},{groupQueryChange:a}=Ae(s);return ue(a,()=>{n.value=o.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function GP(e,t,n,r,o,s){return ct((I(),ne("ul",{class:Y(e.ns.be("group","wrap"))},[fe("li",{class:Y(e.ns.be("group","title"))},tt(e.label),3),fe("li",null,[fe("ul",{class:Y(e.ns.b("group"))},[_e(e.$slots,"default")],2)])],2)),[[fn,e.visible]])}var tm=Le(WP,[["render",GP],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const iI=yt(UP,{Option:Wu,OptionGroup:tm}),aI=Jr(Wu);Jr(tm);const YP=Me({trigger:Os.trigger,placement:Ka.placement,disabled:Os.disabled,visible:zt.visible,transition:zt.transition,popperOptions:Ka.popperOptions,tabindex:Ka.tabindex,content:zt.content,popperStyle:zt.popperStyle,popperClass:zt.popperClass,enterable:{...zt.enterable,default:!0},effect:{...zt.effect,default:"light"},teleported:zt.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),JP={"update:visible":e=>Kt(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},XP="onUpdate:visible",QP=re({name:"ElPopover"}),ZP=re({...QP,props:YP,emits:JP,setup(e,{expose:t,emit:n}){const r=e,o=O(()=>r[XP]),s=$e("popover"),i=V(),a=O(()=>{var y;return(y=h(i))==null?void 0:y.popperRef}),l=O(()=>[{width:On(r.width)},r.popperStyle]),u=O(()=>[s.b(),r.popperClass,{[s.m("plain")]:!!r.content}]),c=O(()=>r.transition===`${s.namespace.value}-fade-in-linear`),f=()=>{var y;(y=i.value)==null||y.hide()},d=()=>{n("before-enter")},v=()=>{n("before-leave")},m=()=>{n("after-enter")},p=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:a,hide:f}),(y,g)=>(I(),he(h(Hv),wn({ref_key:"tooltipRef",ref:i},y.$attrs,{trigger:y.trigger,placement:y.placement,disabled:y.disabled,visible:y.visible,transition:y.transition,"popper-options":y.popperOptions,tabindex:y.tabindex,content:y.content,offset:y.offset,"show-after":y.showAfter,"hide-after":y.hideAfter,"auto-close":y.autoClose,"show-arrow":y.showArrow,"aria-label":y.title,effect:y.effect,enterable:y.enterable,"popper-class":h(u),"popper-style":h(l),teleported:y.teleported,persistent:y.persistent,"gpu-acceleration":h(c),"onUpdate:visible":h(o),onBeforeShow:d,onBeforeHide:v,onShow:m,onHide:p}),{content:pe(()=>[y.title?(I(),ne("div",{key:0,class:Y(h(s).e("title")),role:"title"},tt(y.title),3)):ce("v-if",!0),_e(y.$slots,"default",{},()=>[Rs(tt(y.content),1)])]),default:pe(()=>[y.$slots.reference?_e(y.$slots,"reference",{key:0}):ce("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var e$=Le(ZP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const Rd=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var t$={mounted(e,t){Rd(e,t)},updated(e,t){Rd(e,t)}};const n$="popover",r$=BO(t$,n$),lI=yt(e$,{directive:r$}),o$=Me({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:Jt},inactiveIcon:{type:Jt},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:Ce(Function)},size:{type:String,validator:nv},tabindex:{type:[String,Number]}}),s$={[Ge]:e=>Kt(e)||xe(e)||Ve(e),[Hr]:e=>Kt(e)||xe(e)||Ve(e),[zr]:e=>Kt(e)||xe(e)||Ve(e)},i$=["onClick"],a$=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],l$=["aria-hidden"],u$=["aria-hidden"],c$=["aria-hidden"],Ll="ElSwitch",f$=re({name:Ll}),d$=re({...f$,props:o$,emits:s$,setup(e,{expose:t,emit:n}){const r=e,o=st(),{formItem:s}=wr(),i=cn(),a=$e("switch");bo({from:'"value"',replacement:'"model-value" or "v-model"',scope:Ll,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},O(()=>{var C;return!!((C=o.vnode.props)!=null&&C.value)}));const{inputId:l}=fa(r,{formItemContext:s}),u=Mo(O(()=>r.loading)),c=V(r.modelValue!==!1),f=V(),d=V(),v=O(()=>[a.b(),a.m(i.value),a.is("disabled",u.value),a.is("checked",y.value)]),m=O(()=>({width:On(r.width)}));ue(()=>r.modelValue,()=>{c.value=!0}),ue(()=>r.value,()=>{c.value=!1});const p=O(()=>c.value?r.modelValue:r.value),y=O(()=>p.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(p.value)||(n(Ge,r.inactiveValue),n(Hr,r.inactiveValue),n(zr,r.inactiveValue)),ue(y,C=>{var P;f.value.checked=C,r.validateEvent&&((P=s==null?void 0:s.validate)==null||P.call(s,"change").catch(E=>void 0))});const g=()=>{const C=y.value?r.inactiveValue:r.activeValue;n(Ge,C),n(Hr,C),n(zr,C),Re(()=>{f.value.checked=y.value})},w=()=>{if(u.value)return;const{beforeChange:C}=r;if(!C){g();return}const P=C();[yi(P),Kt(P)].includes(!0)||Yr(Ll,"beforeChange must return type `Promise` or `boolean`"),yi(P)?P.then(x=>{x&&g()}).catch(x=>{}):P&&g()},_=O(()=>a.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),T=()=>{var C,P;(P=(C=f.value)==null?void 0:C.focus)==null||P.call(C)};return Ue(()=>{f.value.checked=y.value}),t({focus:T,checked:y}),(C,P)=>(I(),ne("div",{class:Y(h(v)),style:Xe(h(_)),onClick:wt(w,["prevent"])},[fe("input",{id:h(l),ref_key:"input",ref:f,class:Y(h(a).e("input")),type:"checkbox",role:"switch","aria-checked":h(y),"aria-disabled":h(u),name:C.name,"true-value":C.activeValue,"false-value":C.inactiveValue,disabled:h(u),tabindex:C.tabindex,onChange:g,onKeydown:Tt(w,["enter"])},null,42,a$),!C.inlinePrompt&&(C.inactiveIcon||C.inactiveText)?(I(),ne("span",{key:0,class:Y([h(a).e("label"),h(a).em("label","left"),h(a).is("active",!h(y))])},[C.inactiveIcon?(I(),he(h(rt),{key:0},{default:pe(()=>[(I(),he(dt(C.inactiveIcon)))]),_:1})):ce("v-if",!0),!C.inactiveIcon&&C.inactiveText?(I(),ne("span",{key:1,"aria-hidden":h(y)},tt(C.inactiveText),9,l$)):ce("v-if",!0)],2)):ce("v-if",!0),fe("span",{ref_key:"core",ref:d,class:Y(h(a).e("core")),style:Xe(h(m))},[C.inlinePrompt?(I(),ne("div",{key:0,class:Y(h(a).e("inner"))},[C.activeIcon||C.inactiveIcon?(I(),he(h(rt),{key:0,class:Y(h(a).is("icon"))},{default:pe(()=>[(I(),he(dt(h(y)?C.activeIcon:C.inactiveIcon)))]),_:1},8,["class"])):C.activeText||C.inactiveText?(I(),ne("span",{key:1,class:Y(h(a).is("text")),"aria-hidden":!h(y)},tt(h(y)?C.activeText:C.inactiveText),11,u$)):ce("v-if",!0)],2)):ce("v-if",!0),fe("div",{class:Y(h(a).e("action"))},[C.loading?(I(),he(h(rt),{key:0,class:Y(h(a).is("loading"))},{default:pe(()=>[ie(h(ku))]),_:1},8,["class"])):ce("v-if",!0)],2)],6),!C.inlinePrompt&&(C.activeIcon||C.activeText)?(I(),ne("span",{key:1,class:Y([h(a).e("label"),h(a).em("label","right"),h(a).is("active",h(y))])},[C.activeIcon?(I(),he(h(rt),{key:0},{default:pe(()=>[(I(),he(dt(C.activeIcon)))]),_:1})):ce("v-if",!0),!C.activeIcon&&C.activeText?(I(),ne("span",{key:1,"aria-hidden":!h(y)},tt(C.activeText),9,c$)):ce("v-if",!0)],2)):ce("v-if",!0)],14,i$))}});var p$=Le(d$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const uI=yt(p$),ha=Symbol("tabsRootContextKey"),h$=Me({tabs:{type:Ce(Array),default:()=>ia([])}}),nm="ElTabBar",v$=re({name:nm}),m$=re({...v$,props:h$,setup(e,{expose:t}){const n=e,r=st(),o=Oe(ha);o||Yr(nm,"");const s=$e("tabs"),i=V(),a=V(),l=()=>{let c=0,f=0;const d=["top","bottom"].includes(o.props.tabPosition)?"width":"height",v=d==="width"?"x":"y",m=v==="x"?"left":"top";return n.tabs.every(p=>{var y,g;const w=(g=(y=r.parent)==null?void 0:y.refs)==null?void 0:g[`tab-${p.uid}`];if(!w)return!1;if(!p.active)return!0;c=w[`offset${ar(m)}`],f=w[`client${ar(d)}`];const _=window.getComputedStyle(w);return d==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(_.paddingLeft)+Number.parseFloat(_.paddingRight)),c+=Number.parseFloat(_.paddingLeft)),!1}),{[d]:`${f}px`,transform:`translate${ar(v)}(${c}px)`}},u=()=>a.value=l();return ue(()=>n.tabs,async()=>{await Re(),u()},{immediate:!0}),yr(i,()=>u()),t({ref:i,update:u}),(c,f)=>(I(),ne("div",{ref_key:"barRef",ref:i,class:Y([h(s).e("active-bar"),h(s).is(h(o).props.tabPosition)]),style:Xe(a.value)},null,6))}});var g$=Le(m$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const y$=Me({panes:{type:Ce(Array),default:()=>ia([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),b$={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},kd="ElTabNav",w$=re({name:kd,props:y$,emits:b$,setup(e,{expose:t,emit:n}){const r=st(),o=Oe(ha);o||Yr(kd,"");const s=$e("tabs"),i=k0(),a=H0(),l=V(),u=V(),c=V(),f=V(),d=V(!1),v=V(0),m=V(!1),p=V(!0),y=O(()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height"),g=O(()=>({transform:`translate${y.value==="width"?"X":"Y"}(-${v.value}px)`})),w=()=>{if(!l.value)return;const F=l.value[`offset${ar(y.value)}`],R=v.value;if(!R)return;const H=R>F?R-F:0;v.value=H},_=()=>{if(!l.value||!u.value)return;const F=u.value[`offset${ar(y.value)}`],R=l.value[`offset${ar(y.value)}`],H=v.value;if(F-H<=R)return;const B=F-H>R*2?H+R:F-R;v.value=B},T=async()=>{const F=u.value;if(!d.value||!c.value||!l.value||!F)return;await Re();const R=c.value.querySelector(".is-active");if(!R)return;const H=l.value,B=["top","bottom"].includes(o.props.tabPosition),A=R.getBoundingClientRect(),$=H.getBoundingClientRect(),K=B?F.offsetWidth-$.width:F.offsetHeight-$.height,U=v.value;let k=U;B?(A.left<$.left&&(k=U-($.left-A.left)),A.right>$.right&&(k=U+A.right-$.right)):(A.top<$.top&&(k=U-($.top-A.top)),A.bottom>$.bottom&&(k=U+(A.bottom-$.bottom))),k=Math.max(k,0),v.value=Math.min(k,K)},C=()=>{var F;if(!u.value||!l.value)return;e.stretch&&((F=f.value)==null||F.update());const R=u.value[`offset${ar(y.value)}`],H=l.value[`offset${ar(y.value)}`],B=v.value;H0&&(v.value=0))},P=F=>{const R=F.code,{up:H,down:B,left:A,right:$}=Sn;if(![H,B,A,$].includes(R))return;const K=Array.from(F.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),U=K.indexOf(F.target);let k;R===A||R===H?U===0?k=K.length-1:k=U-1:U{p.value&&(m.value=!0)},x=()=>m.value=!1;return ue(i,F=>{F==="hidden"?p.value=!1:F==="visible"&&setTimeout(()=>p.value=!0,50)}),ue(a,F=>{F?setTimeout(()=>p.value=!0,50):p.value=!1}),yr(c,C),Ue(()=>setTimeout(()=>T(),0)),Kr(()=>C()),t({scrollToActiveTab:T,removeFocus:x}),ue(()=>e.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const F=d.value?[ie("span",{class:[s.e("nav-prev"),s.is("disabled",!d.value.prev)],onClick:w},[ie(rt,null,{default:()=>[ie(OE,null,null)]})]),ie("span",{class:[s.e("nav-next"),s.is("disabled",!d.value.next)],onClick:_},[ie(rt,null,{default:()=>[ie(IE,null,null)]})])]:null,R=e.panes.map((H,B)=>{var A,$,K,U;const k=H.uid,le=H.props.disabled,Ee=($=(A=H.props.name)!=null?A:H.index)!=null?$:`${B}`,Fe=!le&&(H.isClosable||e.editable);H.index=`${B}`;const Te=Fe?ie(rt,{class:"is-icon-close",onClick:je=>n("tabRemove",H,je)},{default:()=>[ie(ws,null,null)]}):null,Be=((U=(K=H.slots).label)==null?void 0:U.call(K))||H.props.label,Ye=!le&&H.active?0:-1;return ie("div",{ref:`tab-${k}`,class:[s.e("item"),s.is(o.props.tabPosition),s.is("active",H.active),s.is("disabled",le),s.is("closable",Fe),s.is("focus",m.value)],id:`tab-${Ee}`,key:`tab-${k}`,"aria-controls":`pane-${Ee}`,role:"tab","aria-selected":H.active,tabindex:Ye,onFocus:()=>E(),onBlur:()=>x(),onClick:je=>{x(),n("tabClick",H,Ee,je)},onKeydown:je=>{Fe&&(je.code===Sn.delete||je.code===Sn.backspace)&&n("tabRemove",H,je)}},[Be,Te])});return ie("div",{ref:c,class:[s.e("nav-wrap"),s.is("scrollable",!!d.value),s.is(o.props.tabPosition)]},[F,ie("div",{class:s.e("nav-scroll"),ref:l},[ie("div",{class:[s.e("nav"),s.is(o.props.tabPosition),s.is("stretch",e.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:u,style:g.value,role:"tablist",onKeydown:P},[e.type?null:ie(g$,{ref:f,tabs:[...e.panes]},null),R])])])}}}),_$=Me({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Ce(Function),default:()=>!0},stretch:Boolean}),qa=e=>xe(e)||Ve(e),S$={[Ge]:e=>qa(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>qa(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>qa(e),tabAdd:()=>!0};var E$=re({name:"ElTabs",props:_$,emits:S$,setup(e,{emit:t,slots:n,expose:r}){var o,s;const i=$e("tabs"),{children:a,addChild:l,removeChild:u}=m4(st(),"ElTabPane"),c=V(),f=V((s=(o=e.modelValue)!=null?o:e.activeName)!=null?s:"0"),d=g=>{f.value=g,t(Ge,g),t("tabChange",g)},v=async g=>{var w,_,T;if(!(f.value===g||yn(g)))try{await((w=e.beforeLeave)==null?void 0:w.call(e,g,f.value))!==!1&&(d(g),(T=(_=c.value)==null?void 0:_.removeFocus)==null||T.call(_))}catch{}},m=(g,w,_)=>{g.props.disabled||(v(w),t("tabClick",g,_))},p=(g,w)=>{g.props.disabled||yn(g.props.name)||(w.stopPropagation(),t("edit",g.props.name,"remove"),t("tabRemove",g.props.name))},y=()=>{t("edit",void 0,"add"),t("tabAdd")};return bo({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},O(()=>!!e.activeName)),ue(()=>e.activeName,g=>v(g)),ue(()=>e.modelValue,g=>v(g)),ue(f,async()=>{var g;await Re(),(g=c.value)==null||g.scrollToActiveTab()}),at(ha,{props:e,currentName:f,registerPane:l,unregisterPane:u}),r({currentName:f}),()=>{const g=e.editable||e.addable?ie("span",{class:i.e("new-tab"),tabindex:"0",onClick:y,onKeydown:T=>{T.code===Sn.enter&&y()}},[ie(rt,{class:i.is("icon-plus")},{default:()=>[ie(Qh,null,null)]})]):null,w=ie("div",{class:[i.e("header"),i.is(e.tabPosition)]},[g,ie(w$,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:a.value,stretch:e.stretch,onTabClick:m,onTabRemove:p},null)]),_=ie("div",{class:i.e("content")},[_e(n,"default")]);return ie("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:e.type==="card",[i.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[w,_]:[_,w]])}}});const C$=Me({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),O$=["id","aria-hidden","aria-labelledby"],rm="ElTabPane",T$=re({name:rm}),x$=re({...T$,props:C$,setup(e){const t=e,n=st(),r=Ur(),o=Oe(ha);o||Yr(rm,"usage: ");const s=$e("tab-pane"),i=V(),a=O(()=>t.closable||o.props.closable),l=rf(()=>{var v;return o.currentName.value===((v=t.name)!=null?v:i.value)}),u=V(l.value),c=O(()=>{var v;return(v=t.name)!=null?v:i.value}),f=rf(()=>!t.lazy||u.value||l.value);ue(l,v=>{v&&(u.value=!0)});const d=Et({uid:n.uid,slots:r,props:t,paneName:c,active:l,index:i,isClosable:a});return Ue(()=>{o.registerPane(d)}),qr(()=>{o.unregisterPane(d.uid)}),(v,m)=>h(f)?ct((I(),ne("div",{key:0,id:`pane-${h(c)}`,class:Y(h(s).b()),role:"tabpanel","aria-hidden":!h(l),"aria-labelledby":`tab-${h(c)}`},[_e(v.$slots,"default")],10,O$)),[[fn,h(l)]]):ce("v-if",!0)}});var om=Le(x$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const cI=yt(E$,{TabPane:om}),fI=Jr(om),A$=Me({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Io,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),P$=re({name:"ElText"}),$$=re({...P$,props:A$,setup(e){const t=e,n=cn(),r=$e("text"),o=O(()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated)]);return(s,i)=>(I(),he(dt(s.tag),{class:Y(h(o))},{default:pe(()=>[_e(s.$slots,"default")]),_:3},8,["class"]))}});var I$=Le($$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const dI=yt(I$);function R$(e){let t;const n=V(!1),r=Et({...e,originalPosition:"",originalOverflow:"",visible:!1});function o(d){r.text=d}function s(){const d=r.parent,v=f.ns;if(!d.vLoadingAddClassList){let m=d.getAttribute("loading-number");m=Number.parseInt(m)-1,m?d.setAttribute("loading-number",m.toString()):(bs(d,v.bm("parent","relative")),d.removeAttribute("loading-number")),bs(d,v.bm("parent","hidden"))}i(),c.unmount()}function i(){var d,v;(v=(d=f.$el)==null?void 0:d.parentNode)==null||v.removeChild(f.$el)}function a(){var d;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(l,400),r.visible=!1,(d=e.closed)==null||d.call(e))}function l(){if(!n.value)return;const d=r.parent;n.value=!1,d.vLoadingAddClassList=void 0,s()}const u=re({name:"ElLoading",setup(d,{expose:v}){const{ns:m}=xv("loading"),p=ua();return v({ns:m,zIndex:p}),()=>{const y=r.spinner||r.svg,g=Mn("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[Mn("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),w=r.text?Mn("p",{class:m.b("text")},[r.text]):void 0;return Mn(an,{name:m.b("fade"),onAfterLeave:l},{default:pe(()=>[ct(ie("div",{style:{backgroundColor:r.background||""},class:[m.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[Mn("div",{class:m.b("spinner")},[g,w])]),[[fn,r.visible]])])})}}}),c=fb(u),f=c.mount(document.createElement("div"));return{...gr(r),setText:o,removeElLoadingChild:i,close:a,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let ti;const Fl=function(e={}){if(!ot)return;const t=k$(e);if(t.fullscreen&&ti)return ti;const n=R$({...t,closed:()=>{var o;(o=t.closed)==null||o.call(t),t.fullscreen&&(ti=void 0)}});N$(t,t.parent,n),Nd(t,t.parent,n),t.parent.vLoadingAddClassList=()=>Nd(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),Re(()=>n.visible.value=t.visible),t.fullscreen&&(ti=n),n},k$=e=>{var t,n,r,o;let s;return xe(e.target)?s=(t=document.querySelector(e.target))!=null?t:document.body:s=e.target||document.body,{parent:s===document.body||e.body?document.body:s,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:s===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(o=e.visible)!=null?o:!0,target:s}},N$=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex,o={};if(e.fullscreen)n.originalPosition.value=oo(document.body,"position"),n.originalOverflow.value=oo(document.body,"overflow"),o.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=oo(document.body,"position"),await Re();for(const s of["top","left"]){const i=s==="top"?"scrollTop":"scrollLeft";o[s]=`${e.target.getBoundingClientRect()[s]+document.body[i]+document.documentElement[i]-Number.parseInt(oo(document.body,`margin-${s}`),10)}px`}for(const s of["height","width"])o[s]=`${e.target.getBoundingClientRect()[s]}px`}else n.originalPosition.value=oo(t,"position");for(const[s,i]of Object.entries(o))n.$el.style[s]=i},Nd=(e,t,n)=>{const r=n.vm.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?bs(t,r.bm("parent","relative")):Tl(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Tl(t,r.bm("parent","hidden")):bs(t,r.bm("parent","hidden"))},Bl=Symbol("ElLoading"),Md=(e,t)=>{var n,r,o,s;const i=t.instance,a=d=>Ne(t.value)?t.value[d]:void 0,l=d=>{const v=xe(d)&&(i==null?void 0:i[d])||d;return v&&V(v)},u=d=>l(a(d)||e.getAttribute(`element-loading-${mr(d)}`)),c=(n=a("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(r=a("target"))!=null?r:c?void 0:e,body:(o=a("body"))!=null?o:t.modifiers.body,lock:(s=a("lock"))!=null?s:t.modifiers.lock};e[Bl]={options:f,instance:Fl(f)}},M$=(e,t)=>{for(const n of Object.keys(t))qe(t[n])&&(t[n].value=e[n])},Ld={mounted(e,t){t.value&&Md(e,t)},updated(e,t){const n=e[Bl];t.oldValue!==t.value&&(t.value&&!t.oldValue?Md(e,t):t.value&&t.oldValue?Ne(t.value)&&M$(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Bl])==null||t.instance.close()}},pI={install(e){e.directive("loading",Ld),e.config.globalProperties.$loading=Fl},directive:Ld,service:Fl},sm=["success","info","warning","error"],$t=ia({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:ot?document.body:void 0}),L$=Me({customClass:{type:String,default:$t.customClass},center:{type:Boolean,default:$t.center},dangerouslyUseHTMLString:{type:Boolean,default:$t.dangerouslyUseHTMLString},duration:{type:Number,default:$t.duration},icon:{type:Jt,default:$t.icon},id:{type:String,default:$t.id},message:{type:Ce([String,Object,Function]),default:$t.message},onClose:{type:Ce(Function),required:!1},showClose:{type:Boolean,default:$t.showClose},type:{type:String,values:sm,default:$t.type},offset:{type:Number,default:$t.offset},zIndex:{type:Number,default:$t.zIndex},grouping:{type:Boolean,default:$t.grouping},repeatNum:{type:Number,default:$t.repeatNum}}),F$={destroy:()=>!0},on=yp([]),B$=e=>{const t=on.findIndex(o=>o.id===e),n=on[t];let r;return t>0&&(r=on[t-1]),{current:n,prev:r}},z$=e=>{const{prev:t}=B$(e);return t?t.vm.exposed.bottom.value:0},D$=(e,t)=>on.findIndex(r=>r.id===e)>0?20:t,j$=["id"],H$=["innerHTML"],V$=re({name:"ElMessage"}),K$=re({...V$,props:L$,emits:F$,setup(e,{expose:t}){const n=e,{Close:r}=MO,{ns:o,zIndex:s}=xv("message"),{currentZIndex:i,nextZIndex:a}=s,l=V(),u=V(!1),c=V(0);let f;const d=O(()=>n.type?n.type==="error"?"danger":n.type:"info"),v=O(()=>{const E=n.type;return{[o.bm("icon",E)]:E&&Wf[E]}}),m=O(()=>n.icon||Wf[n.type]||""),p=O(()=>z$(n.id)),y=O(()=>D$(n.id,n.offset)+p.value),g=O(()=>c.value+y.value),w=O(()=>({top:`${y.value}px`,zIndex:i.value}));function _(){n.duration!==0&&({stop:f}=yl(()=>{C()},n.duration))}function T(){f==null||f()}function C(){u.value=!1}function P({code:E}){E===Sn.esc&&C()}return Ue(()=>{_(),a(),u.value=!0}),ue(()=>n.repeatNum,()=>{T(),_()}),_n(document,"keydown",P),yr(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:g,close:C}),(E,x)=>(I(),he(an,{name:h(o).b("fade"),onBeforeLeave:E.onClose,onAfterLeave:x[0]||(x[0]=F=>E.$emit("destroy")),persisted:""},{default:pe(()=>[ct(fe("div",{id:E.id,ref_key:"messageRef",ref:l,class:Y([h(o).b(),{[h(o).m(E.type)]:E.type&&!E.icon},h(o).is("center",E.center),h(o).is("closable",E.showClose),E.customClass]),style:Xe(h(w)),role:"alert",onMouseenter:T,onMouseleave:_},[E.repeatNum>1?(I(),he(h(Gx),{key:0,value:E.repeatNum,type:h(d),class:Y(h(o).e("badge"))},null,8,["value","type","class"])):ce("v-if",!0),h(m)?(I(),he(h(rt),{key:1,class:Y([h(o).e("icon"),h(v)])},{default:pe(()=>[(I(),he(dt(h(m))))]),_:1},8,["class"])):ce("v-if",!0),_e(E.$slots,"default",{},()=>[E.dangerouslyUseHTMLString?(I(),ne(We,{key:1},[ce(" Caution here, message could've been compromised, never use user's input as message "),fe("p",{class:Y(h(o).e("content")),innerHTML:E.message},null,10,H$)],2112)):(I(),ne("p",{key:0,class:Y(h(o).e("content"))},tt(E.message),3))]),E.showClose?(I(),he(h(rt),{key:2,class:Y(h(o).e("closeBtn")),onClick:wt(C,["stop"])},{default:pe(()=>[ie(h(r))]),_:1},8,["class","onClick"])):ce("v-if",!0)],46,j$),[[fn,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var q$=Le(K$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let U$=1;const im=e=>{const t=!e||xe(e)||Hn(e)||ye(e)?{message:e}:e,n={...$t,...t};if(!n.appendTo)n.appendTo=document.body;else if(xe(n.appendTo)){let r=document.querySelector(n.appendTo);yo(r)||(r=document.body),n.appendTo=r}return n},W$=e=>{const t=on.indexOf(e);if(t===-1)return;on.splice(t,1);const{handler:n}=e;n.close()},G$=({appendTo:e,...t},n)=>{const r=`message_${U$++}`,o=t.onClose,s=document.createElement("div"),i={...t,id:r,onClose:()=>{o==null||o(),W$(c)},onDestroy:()=>{Bc(null,s)}},a=ie(q$,i,ye(i.message)||Hn(i.message)?{default:ye(i.message)?i.message:()=>i.message}:null);a.appContext=n||Oo._context,Bc(a,s),e.appendChild(s.firstElementChild);const l=a.component,c={id:r,vnode:a,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:a.component.props};return c},Oo=(e={},t)=>{if(!ot)return{close:()=>{}};if(Ve(Al.max)&&on.length>=Al.max)return{close:()=>{}};const n=im(e);if(n.grouping&&on.length){const o=on.find(({vnode:s})=>{var i;return((i=s.props)==null?void 0:i.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}const r=G$(n,t);return on.push(r),r.handler};sm.forEach(e=>{Oo[e]=(t={},n)=>{const r=im(t);return Oo({...r,type:e},n)}});function Y$(e){for(const t of on)(!e||e===t.props.type)&&t.handler.close()}Oo.closeAll=Y$;Oo._context=null;const hI=FO(Oo,"$message");function am(e,t){return function(){return e.apply(t,arguments)}}const{toString:lm}=Object.prototype,{getPrototypeOf:Gu}=Object,Yu=(e=>t=>{const n=lm.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Gn=e=>(e=e.toLowerCase(),t=>Yu(t)===e),va=e=>t=>typeof t===e,{isArray:Fo}=Array,Ts=va("undefined");function J$(e){return e!==null&&!Ts(e)&&e.constructor!==null&&!Ts(e.constructor)&&vr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const um=Gn("ArrayBuffer");function X$(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&um(e.buffer),t}const Q$=va("string"),vr=va("function"),cm=va("number"),Ju=e=>e!==null&&typeof e=="object",Z$=e=>e===!0||e===!1,hi=e=>{if(Yu(e)!=="object")return!1;const t=Gu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},e8=Gn("Date"),t8=Gn("File"),n8=Gn("Blob"),r8=Gn("FileList"),o8=e=>Ju(e)&&vr(e.pipe),s8=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||lm.call(e)===t||vr(e.toString)&&e.toString()===t)},i8=Gn("URLSearchParams"),a8=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ls(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Fo(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const dm=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),pm=e=>!Ts(e)&&e!==dm;function zl(){const{caseless:e}=pm(this)&&this||{},t={},n=(r,o)=>{const s=e&&fm(t,o)||o;hi(t[s])&&hi(r)?t[s]=zl(t[s],r):hi(r)?t[s]=zl({},r):Fo(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(Ls(t,(o,s)=>{n&&vr(o)?e[s]=am(o,n):e[s]=o},{allOwnKeys:r}),e),u8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),c8=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},f8=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Gu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},d8=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},p8=e=>{if(!e)return null;if(Fo(e))return e;let t=e.length;if(!cm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},h8=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gu(Uint8Array)),v8=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},m8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},g8=Gn("HTMLFormElement"),y8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Fd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),b8=Gn("RegExp"),hm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ls(n,(o,s)=>{t(o,s,e)!==!1&&(r[s]=o)}),Object.defineProperties(e,r)},w8=e=>{hm(e,(t,n)=>{if(vr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(vr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},_8=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Fo(e)?r(e):r(String(e).split(t)),n},S8=()=>{},E8=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ua="abcdefghijklmnopqrstuvwxyz",Bd="0123456789",vm={DIGIT:Bd,ALPHA:Ua,ALPHA_DIGIT:Ua+Ua.toUpperCase()+Bd},C8=(e=16,t=vm.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function O8(e){return!!(e&&vr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const T8=e=>{const t=new Array(10),n=(r,o)=>{if(Ju(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=Fo(r)?[]:{};return Ls(r,(i,a)=>{const l=n(i,o+1);!Ts(l)&&(s[a]=l)}),t[o]=void 0,s}}return r};return n(e,0)},q={isArray:Fo,isArrayBuffer:um,isBuffer:J$,isFormData:s8,isArrayBufferView:X$,isString:Q$,isNumber:cm,isBoolean:Z$,isObject:Ju,isPlainObject:hi,isUndefined:Ts,isDate:e8,isFile:t8,isBlob:n8,isRegExp:b8,isFunction:vr,isStream:o8,isURLSearchParams:i8,isTypedArray:h8,isFileList:r8,forEach:Ls,merge:zl,extend:l8,trim:a8,stripBOM:u8,inherits:c8,toFlatObject:f8,kindOf:Yu,kindOfTest:Gn,endsWith:d8,toArray:p8,forEachEntry:v8,matchAll:m8,isHTMLForm:g8,hasOwnProperty:Fd,hasOwnProp:Fd,reduceDescriptors:hm,freezeMethods:w8,toObjectSet:_8,toCamelCase:y8,noop:S8,toFiniteNumber:E8,findKey:fm,global:dm,isContextDefined:pm,ALPHABET:vm,generateString:C8,isSpecCompliantForm:O8,toJSONObject:T8};function He(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}q.inherits(He,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mm=He.prototype,gm={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{gm[e]={value:e}});Object.defineProperties(He,gm);Object.defineProperty(mm,"isAxiosError",{value:!0});He.from=(e,t,n,r,o,s)=>{const i=Object.create(mm);return q.toFlatObject(e,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),He.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const x8=null;function Dl(e){return q.isPlainObject(e)||q.isArray(e)}function ym(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function zd(e,t,n){return e?e.concat(t).map(function(o,s){return o=ym(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function A8(e){return q.isArray(e)&&!e.some(Dl)}const P8=q.toFlatObject(q,{},null,function(t){return/^is[A-Z]/.test(t)});function ma(e,t,n){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!q.isUndefined(y[p])});const r=n.metaTokens,o=n.visitor||c,s=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(q.isDate(m))return m.toISOString();if(!l&&q.isBlob(m))throw new He("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(m)||q.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,p,y){let g=m;if(m&&!y&&typeof m=="object"){if(q.endsWith(p,"{}"))p=r?p:p.slice(0,-2),m=JSON.stringify(m);else if(q.isArray(m)&&A8(m)||(q.isFileList(m)||q.endsWith(p,"[]"))&&(g=q.toArray(m)))return p=ym(p),g.forEach(function(_,T){!(q.isUndefined(_)||_===null)&&t.append(i===!0?zd([p],T,s):i===null?p:p+"[]",u(_))}),!1}return Dl(m)?!0:(t.append(zd(y,p,s),u(m)),!1)}const f=[],d=Object.assign(P8,{defaultVisitor:c,convertValue:u,isVisitable:Dl});function v(m,p){if(!q.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),q.forEach(m,function(g,w){(!(q.isUndefined(g)||g===null)&&o.call(t,g,q.isString(w)?w.trim():w,p,d))===!0&&v(g,p?p.concat(w):[w])}),f.pop()}}if(!q.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Dd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Xu(e,t){this._pairs=[],e&&ma(e,this,t)}const bm=Xu.prototype;bm.append=function(t,n){this._pairs.push([t,n])};bm.toString=function(t){const n=t?function(r){return t.call(this,r,Dd)}:Dd;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function $8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wm(e,t,n){if(!t)return e;const r=n&&n.encode||$8,o=n&&n.serialize;let s;if(o?s=o(t,n):s=q.isURLSearchParams(t)?t.toString():new Xu(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class I8{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const jd=I8,_m={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},R8=typeof URLSearchParams<"u"?URLSearchParams:Xu,k8=typeof FormData<"u"?FormData:null,N8=typeof Blob<"u"?Blob:null,M8=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),L8=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),bn={isBrowser:!0,classes:{URLSearchParams:R8,FormData:k8,Blob:N8},isStandardBrowserEnv:M8,isStandardBrowserWebWorkerEnv:L8,protocols:["http","https","file","blob","url","data"]};function F8(e,t){return ma(e,new bn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return bn.isNode&&q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function B8(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function z8(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&q.isArray(o)?o.length:i,l?(q.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a):((!o[i]||!q.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&q.isArray(o[i])&&(o[i]=z8(o[i])),!a)}if(q.isFormData(e)&&q.isFunction(e.entries)){const n={};return q.forEachEntry(e,(r,o)=>{t(B8(r),o,n,0)}),n}return null}const D8={"Content-Type":void 0};function j8(e,t,n){if(q.isString(e))try{return(t||JSON.parse)(e),q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ga={transitional:_m,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=q.isObject(t);if(s&&q.isHTMLForm(t)&&(t=new FormData(t)),q.isFormData(t))return o&&o?JSON.stringify(Sm(t)):t;if(q.isArrayBuffer(t)||q.isBuffer(t)||q.isStream(t)||q.isFile(t)||q.isBlob(t))return t;if(q.isArrayBufferView(t))return t.buffer;if(q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return F8(t,this.formSerializer).toString();if((a=q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ma(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),j8(t)):t}],transformResponse:[function(t){const n=this.transitional||ga.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&q.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?He.from(a,He.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bn.classes.FormData,Blob:bn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};q.forEach(["delete","get","head"],function(t){ga.headers[t]={}});q.forEach(["post","put","patch"],function(t){ga.headers[t]=q.merge(D8)});const Qu=ga,H8=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),V8=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&H8[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Hd=Symbol("internals");function Ko(e){return e&&String(e).trim().toLowerCase()}function vi(e){return e===!1||e==null?e:q.isArray(e)?e.map(vi):String(e)}function K8(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const q8=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Wa(e,t,n,r,o){if(q.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!q.isString(t)){if(q.isString(r))return t.indexOf(r)!==-1;if(q.isRegExp(r))return r.test(t)}}function U8(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function W8(e,t){const n=q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class ya{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,u){const c=Ko(l);if(!c)throw new Error("header name must be a non-empty string");const f=q.findKey(o,c);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=vi(a))}const i=(a,l)=>q.forEach(a,(u,c)=>s(u,c,l));return q.isPlainObject(t)||t instanceof this.constructor?i(t,n):q.isString(t)&&(t=t.trim())&&!q8(t)?i(V8(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=Ko(t),t){const r=q.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return K8(o);if(q.isFunction(n))return n.call(this,o,r);if(q.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ko(t),t){const r=q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Wa(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=Ko(i),i){const a=q.findKey(r,i);a&&(!n||Wa(r,r[a],a,n))&&(delete r[a],o=!0)}}return q.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||Wa(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return q.forEach(this,(o,s)=>{const i=q.findKey(r,s);if(i){n[i]=vi(o),delete n[s];return}const a=t?U8(s):String(s).trim();a!==s&&delete n[s],n[a]=vi(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return q.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Hd]=this[Hd]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Ko(i);r[a]||(W8(o,i),r[a]=!0)}return q.isArray(t)?t.forEach(s):s(t),this}}ya.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);q.freezeMethods(ya.prototype);q.freezeMethods(ya);const Dn=ya;function Ga(e,t){const n=this||Qu,r=t||n,o=Dn.from(r.headers);let s=r.data;return q.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Em(e){return!!(e&&e.__CANCEL__)}function Fs(e,t,n){He.call(this,e??"canceled",He.ERR_CANCELED,t,n),this.name="CanceledError"}q.inherits(Fs,He,{__CANCEL__:!0});function G8(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new He("Request failed with status code "+n.status,[He.ERR_BAD_REQUEST,He.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Y8=bn.isStandardBrowserEnv?function(){return{write:function(n,r,o,s,i,a){const l=[];l.push(n+"="+encodeURIComponent(r)),q.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),q.isString(s)&&l.push("path="+s),q.isString(i)&&l.push("domain="+i),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function J8(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function X8(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Cm(e,t){return e&&!J8(t)?X8(e,t):t}const Q8=bn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=q.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Z8(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function e6(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[s];i||(i=u),n[o]=l,r[o]=u;let f=s,d=0;for(;f!==o;)d+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,l=r(a),u=s<=i;n=s;const c={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&u?(i-s)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const t6=typeof XMLHttpRequest<"u",n6=t6&&function(e){return new Promise(function(n,r){let o=e.data;const s=Dn.from(e.headers).normalize(),i=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}q.isFormData(o)&&(bn.isStandardBrowserEnv||bn.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(v+":"+m))}const c=Cm(e.baseURL,e.url);u.open(e.method.toUpperCase(),wm(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const v=Dn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),p={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:v,config:e,request:u};G8(function(g){n(g),l()},function(g){r(g),l()},p),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new He("Request aborted",He.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new He("Network Error",He.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||_m;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new He(m,p.clarifyTimeoutError?He.ETIMEDOUT:He.ECONNABORTED,e,u)),u=null},bn.isStandardBrowserEnv){const v=(e.withCredentials||Q8(c))&&e.xsrfCookieName&&Y8.read(e.xsrfCookieName);v&&s.set(e.xsrfHeaderName,v)}o===void 0&&s.setContentType(null),"setRequestHeader"in u&&q.forEach(s.toJSON(),function(m,p){u.setRequestHeader(p,m)}),q.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Vd(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Vd(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=v=>{u&&(r(!v||v.type?new Fs(null,e,u):v),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const d=Z8(c);if(d&&bn.protocols.indexOf(d)===-1){r(new He("Unsupported protocol "+d+":",He.ERR_BAD_REQUEST,e));return}u.send(o||null)})},mi={http:x8,xhr:n6};q.forEach(mi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const r6={getAdapter:e=>{e=q.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof Dn?e.toJSON():e;function To(e,t){t=t||{};const n={};function r(u,c,f){return q.isPlainObject(u)&&q.isPlainObject(c)?q.merge.call({caseless:f},u,c):q.isPlainObject(c)?q.merge({},c):q.isArray(c)?c.slice():c}function o(u,c,f){if(q.isUndefined(c)){if(!q.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function s(u,c){if(!q.isUndefined(c))return r(void 0,c)}function i(u,c){if(q.isUndefined(c)){if(!q.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,c)=>o(qd(u),qd(c),!0)};return q.forEach(Object.keys(e).concat(Object.keys(t)),function(c){const f=l[c]||o,d=f(e[c],t[c],c);q.isUndefined(d)&&f!==a||(n[c]=d)}),n}const Om="1.3.5",Zu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Zu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ud={};Zu.transitional=function(t,n,r){function o(s,i){return"[Axios v"+Om+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(t===!1)throw new He(o(i," has been removed"+(n?" in "+n:"")),He.ERR_DEPRECATED);return n&&!Ud[i]&&(Ud[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,a):!0}};function o6(e,t,n){if(typeof e!="object")throw new He("options must be an object",He.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const a=e[s],l=a===void 0||i(a,s,e);if(l!==!0)throw new He("option "+s+" must be "+l,He.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new He("Unknown option "+s,He.ERR_BAD_OPTION)}}const jl={assertOptions:o6,validators:Zu},er=jl.validators;class Li{constructor(t){this.defaults=t,this.interceptors={request:new jd,response:new jd}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=To(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&jl.assertOptions(r,{silentJSONParsing:er.transitional(er.boolean),forcedJSONParsing:er.transitional(er.boolean),clarifyTimeoutError:er.transitional(er.boolean)},!1),o!=null&&(q.isFunction(o)?n.paramsSerializer={serialize:o}:jl.assertOptions(o,{encode:er.function,serialize:er.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=s&&q.merge(s.common,s[n.method]),i&&q.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),n.headers=Dn.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,d;if(!l){const m=[Kd.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),d=m.length,c=Promise.resolve(n);f{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,a){r.reason||(r.reason=new Fs(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ec(function(o){t=o}),cancel:t}}}const s6=ec;function i6(e){return function(n){return e.apply(null,n)}}function a6(e){return q.isObject(e)&&e.isAxiosError===!0}const Hl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Hl).forEach(([e,t])=>{Hl[t]=e});const l6=Hl;function Tm(e){const t=new gi(e),n=am(gi.prototype.request,t);return q.extend(n,gi.prototype,t,{allOwnKeys:!0}),q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Tm(To(e,o))},n}const vt=Tm(Qu);vt.Axios=gi;vt.CanceledError=Fs;vt.CancelToken=s6;vt.isCancel=Em;vt.VERSION=Om;vt.toFormData=ma;vt.AxiosError=He;vt.Cancel=vt.CanceledError;vt.all=function(t){return Promise.all(t)};vt.spread=i6;vt.isAxiosError=a6;vt.mergeConfig=To;vt.AxiosHeaders=Dn;vt.formToJSON=e=>Sm(q.isHTMLForm(e)?new FormData(e):e);vt.HttpStatusCode=l6;vt.default=vt;const vI=vt;function Wd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ni(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nthis.range.start)){var r=Math.max(n-this.param.buffer,0);this.checkRange(r,this.getEndByStart(r))}}},{key:"handleBehind",value:function(){var n=this.getScrollOvers();nn&&(i=o-1)}return r>0?--r:0}},{key:"getIndexOffset",value:function(n){if(!n)return 0;for(var r=0,o=0,s=0;s=U&&r("tobottom")},g=function($){var K=v(),U=m(),k=p();K<0||K+U>k+1||!k||(f.handleScroll(K),y(K,U,k,$))},w=function(){var $=t.dataKey,K=t.dataSources,U=K===void 0?[]:K;return U.map(function(k){return typeof $=="function"?$(k):k[$]})},_=function($){l.value=$},T=function(){f=new g6({slotHeaderSize:0,slotFooterSize:0,keeps:t.keeps,estimateSize:t.estimateSize,buffer:Math.round(t.keeps/3),uniqueIds:w()},_),l.value=f.getRange()},C=function($){if($>=t.dataSources.length-1)R();else{var K=f.getOffset($);P(K)}},P=function($){t.pageMode?(document.body[a]=$,document.documentElement[a]=$):u.value&&(u.value[a]=$)},E=function(){for(var $=[],K=l.value,U=K.start,k=K.end,le=t.dataSources,Ee=t.dataKey,Fe=t.itemClass,Te=t.itemTag,Be=t.itemStyle,Ye=t.extraProps,je=t.dataComponent,D=t.itemScopedSlots,ee=U;ee<=k;ee++){var L=le[ee];if(L){var W=typeof Ee=="function"?Ee(L):L[Ee];typeof W=="string"||typeof W=="number"?$.push(ie(_6,{index:ee,tag:Te,event:rs.ITEM,horizontal:i,uniqueKey:W,source:L,extraProps:Ye,component:je,scopedSlots:D,style:Be,class:"".concat(Fe).concat(t.itemClassAdd?" "+t.itemClassAdd(ee):""),onItemResize:x},null)):console.warn("Cannot get the data-key '".concat(Ee,"' from data-sources."))}else console.warn("Cannot get the index '".concat(ee,"' from data-sources."))}return $},x=function($,K){f.saveSize($,K),r("resized",$,K)},F=function($,K,U){$===ao.HEADER?f.updateParam("slotHeaderSize",K):$===ao.FOOTER&&f.updateParam("slotFooterSize",K),U&&f.handleSlotSizeChange()},R=function A(){if(c.value){var $=c.value[i?"offsetLeft":"offsetTop"];P($),setTimeout(function(){v()+m()lm=e,um=Symbol();function Dl(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var os;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(os||(os={}));function mI(){const e=ap(!0),t=e.run(()=>V({}));let n=[],r=[];const o=po({install(s){va(o),o._a=s,s.provide(um,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!v0?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const cm=()=>{};function jd(e,t,n,r=cm){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Xl()&&Ql(o),o}function no(e,...t){e.slice().forEach(n=>{n(...t)})}function jl(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Dl(o)&&Dl(r)&&e.hasOwnProperty(n)&&!qe(r)&&!Ln(r)?e[n]=jl(o,r):e[n]=r}return e}const u8=Symbol();function c8(e){return!Dl(e)||!e.hasOwnProperty(u8)}const{assign:or}=Object;function f8(e){return!!(qe(e)&&e.effect)}function d8(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=gr(n.state.value[e]);return or(c,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=po(O(()=>{va(n);const v=n._s.get(e);return i[d].call(v,v)})),f),{}))}return l=fm(e,u,t,n,r,!0),l}function fm(e,t,n={},r,o,s){let i;const a=or({actions:{}},n),l={deep:!0};let u,c,f=po([]),d=po([]),v;const m=r.state.value[e];!s&&!m&&(r.state.value[e]={}),V({});let p;function y(E){let x;u=c=!1,typeof E=="function"?(E(r.state.value[e]),x={type:os.patchFunction,storeId:e,events:v}):(jl(r.state.value[e],E),x={type:os.patchObject,payload:E,storeId:e,events:v});const F=p=Symbol();Re().then(()=>{p===F&&(u=!0)}),c=!0,no(f,x,r.state.value[e])}const g=s?function(){const{state:x}=n,F=x?x():{};this.$patch(R=>{or(R,F)})}:cm;function w(){i.stop(),f=[],d=[],r._s.delete(e)}function _(E,x){return function(){va(r);const F=Array.from(arguments),R=[],H=[];function B(K){R.push(K)}function A(K){H.push(K)}no(d,{args:F,name:E,store:C,after:B,onError:A});let $;try{$=x.apply(this&&this.$id===e?this:C,F)}catch(K){throw no(H,K),K}return $ instanceof Promise?$.then(K=>(no(R,K),K)).catch(K=>(no(H,K),Promise.reject(K))):(no(R,$),$)}}const T={_p:r,$id:e,$onAction:jd.bind(null,d),$patch:y,$reset:g,$subscribe(E,x={}){const F=jd(f,E,x.detached,()=>R()),R=i.run(()=>ue(()=>r.state.value[e],H=>{(x.flush==="sync"?c:u)&&E({storeId:e,type:os.direct,events:v},H)},or({},l,x)));return F},$dispose:w},C=Et(T);r._s.set(e,C);const P=r._e.run(()=>(i=ap(),i.run(()=>t())));for(const E in P){const x=P[E];if(qe(x)&&!f8(x)||Ln(x))s||(m&&c8(x)&&(qe(x)?x.value=m[E]:jl(x,m[E])),r.state.value[e][E]=x);else if(typeof x=="function"){const F=_(E,x);P[E]=F,a.actions[E]=x}}return or(C,P),or(Ae(C),P),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:E=>{y(x=>{or(x,E)})}}),r._p.forEach(E=>{or(C,i.run(()=>E({store:C,app:r._a,pinia:r,options:a})))}),m&&s&&n.hydrate&&n.hydrate(C.$state,m),u=!0,c=!0,C}function gI(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function i(a,l){const u=st();return a=a||u&&Oe(um,null),a&&va(a),a=lm,a._s.has(r)||(s?fm(r,t,o,a):d8(r,o,a)),a._s.get(r)}return i.$id=r,i}function yI(e){{e=Ae(e);const t={};for(const n in e){const r=e[n];(qe(r)||Ln(r))&&(t[n]=jt(e,n))}return t}}function dm(e,t){return function(){return e.apply(t,arguments)}}const{toString:pm}=Object.prototype,{getPrototypeOf:Gu}=Object,Yu=(e=>t=>{const n=pm.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Gn=e=>(e=e.toLowerCase(),t=>Yu(t)===e),ma=e=>t=>typeof t===e,{isArray:Fo}=Array,Ts=ma("undefined");function p8(e){return e!==null&&!Ts(e)&&e.constructor!==null&&!Ts(e.constructor)&&vr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hm=Gn("ArrayBuffer");function h8(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hm(e.buffer),t}const v8=ma("string"),vr=ma("function"),vm=ma("number"),Ju=e=>e!==null&&typeof e=="object",m8=e=>e===!0||e===!1,hi=e=>{if(Yu(e)!=="object")return!1;const t=Gu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},g8=Gn("Date"),y8=Gn("File"),b8=Gn("Blob"),w8=Gn("FileList"),_8=e=>Ju(e)&&vr(e.pipe),S8=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||pm.call(e)===t||vr(e.toString)&&e.toString()===t)},E8=Gn("URLSearchParams"),C8=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ls(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Fo(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const gm=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ym=e=>!Ts(e)&&e!==gm;function Hl(){const{caseless:e}=ym(this)&&this||{},t={},n=(r,o)=>{const s=e&&mm(t,o)||o;hi(t[s])&&hi(r)?t[s]=Hl(t[s],r):hi(r)?t[s]=Hl({},r):Fo(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(Ls(t,(o,s)=>{n&&vr(o)?e[s]=dm(o,n):e[s]=o},{allOwnKeys:r}),e),T8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),x8=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},A8=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Gu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},P8=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},$8=e=>{if(!e)return null;if(Fo(e))return e;let t=e.length;if(!vm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},I8=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gu(Uint8Array)),R8=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},k8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},N8=Gn("HTMLFormElement"),M8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Hd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),L8=Gn("RegExp"),bm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ls(n,(o,s)=>{t(o,s,e)!==!1&&(r[s]=o)}),Object.defineProperties(e,r)},F8=e=>{bm(e,(t,n)=>{if(vr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(vr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},B8=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Fo(e)?r(e):r(String(e).split(t)),n},z8=()=>{},D8=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ua="abcdefghijklmnopqrstuvwxyz",Vd="0123456789",wm={DIGIT:Vd,ALPHA:Ua,ALPHA_DIGIT:Ua+Ua.toUpperCase()+Vd},j8=(e=16,t=wm.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function H8(e){return!!(e&&vr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const V8=e=>{const t=new Array(10),n=(r,o)=>{if(Ju(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=Fo(r)?[]:{};return Ls(r,(i,a)=>{const l=n(i,o+1);!Ts(l)&&(s[a]=l)}),t[o]=void 0,s}}return r};return n(e,0)},q={isArray:Fo,isArrayBuffer:hm,isBuffer:p8,isFormData:S8,isArrayBufferView:h8,isString:v8,isNumber:vm,isBoolean:m8,isObject:Ju,isPlainObject:hi,isUndefined:Ts,isDate:g8,isFile:y8,isBlob:b8,isRegExp:L8,isFunction:vr,isStream:_8,isURLSearchParams:E8,isTypedArray:I8,isFileList:w8,forEach:Ls,merge:Hl,extend:O8,trim:C8,stripBOM:T8,inherits:x8,toFlatObject:A8,kindOf:Yu,kindOfTest:Gn,endsWith:P8,toArray:$8,forEachEntry:R8,matchAll:k8,isHTMLForm:N8,hasOwnProperty:Hd,hasOwnProp:Hd,reduceDescriptors:bm,freezeMethods:F8,toObjectSet:B8,toCamelCase:M8,noop:z8,toFiniteNumber:D8,findKey:mm,global:gm,isContextDefined:ym,ALPHABET:wm,generateString:j8,isSpecCompliantForm:H8,toJSONObject:V8};function He(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}q.inherits(He,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _m=He.prototype,Sm={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Sm[e]={value:e}});Object.defineProperties(He,Sm);Object.defineProperty(_m,"isAxiosError",{value:!0});He.from=(e,t,n,r,o,s)=>{const i=Object.create(_m);return q.toFlatObject(e,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),He.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const K8=null;function Vl(e){return q.isPlainObject(e)||q.isArray(e)}function Em(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function Kd(e,t,n){return e?e.concat(t).map(function(o,s){return o=Em(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function q8(e){return q.isArray(e)&&!e.some(Vl)}const U8=q.toFlatObject(q,{},null,function(t){return/^is[A-Z]/.test(t)});function ga(e,t,n){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!q.isUndefined(y[p])});const r=n.metaTokens,o=n.visitor||c,s=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(q.isDate(m))return m.toISOString();if(!l&&q.isBlob(m))throw new He("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(m)||q.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,p,y){let g=m;if(m&&!y&&typeof m=="object"){if(q.endsWith(p,"{}"))p=r?p:p.slice(0,-2),m=JSON.stringify(m);else if(q.isArray(m)&&q8(m)||(q.isFileList(m)||q.endsWith(p,"[]"))&&(g=q.toArray(m)))return p=Em(p),g.forEach(function(_,T){!(q.isUndefined(_)||_===null)&&t.append(i===!0?Kd([p],T,s):i===null?p:p+"[]",u(_))}),!1}return Vl(m)?!0:(t.append(Kd(y,p,s),u(m)),!1)}const f=[],d=Object.assign(U8,{defaultVisitor:c,convertValue:u,isVisitable:Vl});function v(m,p){if(!q.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),q.forEach(m,function(g,w){(!(q.isUndefined(g)||g===null)&&o.call(t,g,q.isString(w)?w.trim():w,p,d))===!0&&v(g,p?p.concat(w):[w])}),f.pop()}}if(!q.isObject(e))throw new TypeError("data must be an object");return v(e),t}function qd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Xu(e,t){this._pairs=[],e&&ga(e,this,t)}const Cm=Xu.prototype;Cm.append=function(t,n){this._pairs.push([t,n])};Cm.toString=function(t){const n=t?function(r){return t.call(this,r,qd)}:qd;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function W8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Om(e,t,n){if(!t)return e;const r=n&&n.encode||W8,o=n&&n.serialize;let s;if(o?s=o(t,n):s=q.isURLSearchParams(t)?t.toString():new Xu(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class G8{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ud=G8,Tm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Y8=typeof URLSearchParams<"u"?URLSearchParams:Xu,J8=typeof FormData<"u"?FormData:null,X8=typeof Blob<"u"?Blob:null,Q8=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Z8=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),bn={isBrowser:!0,classes:{URLSearchParams:Y8,FormData:J8,Blob:X8},isStandardBrowserEnv:Q8,isStandardBrowserWebWorkerEnv:Z8,protocols:["http","https","file","blob","url","data"]};function e6(e,t){return ga(e,new bn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return bn.isNode&&q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function t6(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function n6(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&q.isArray(o)?o.length:i,l?(q.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a):((!o[i]||!q.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&q.isArray(o[i])&&(o[i]=n6(o[i])),!a)}if(q.isFormData(e)&&q.isFunction(e.entries)){const n={};return q.forEachEntry(e,(r,o)=>{t(t6(r),o,n,0)}),n}return null}const r6={"Content-Type":void 0};function o6(e,t,n){if(q.isString(e))try{return(t||JSON.parse)(e),q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ya={transitional:Tm,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=q.isObject(t);if(s&&q.isHTMLForm(t)&&(t=new FormData(t)),q.isFormData(t))return o&&o?JSON.stringify(xm(t)):t;if(q.isArrayBuffer(t)||q.isBuffer(t)||q.isStream(t)||q.isFile(t)||q.isBlob(t))return t;if(q.isArrayBufferView(t))return t.buffer;if(q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return e6(t,this.formSerializer).toString();if((a=q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ga(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),o6(t)):t}],transformResponse:[function(t){const n=this.transitional||ya.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&q.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?He.from(a,He.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bn.classes.FormData,Blob:bn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};q.forEach(["delete","get","head"],function(t){ya.headers[t]={}});q.forEach(["post","put","patch"],function(t){ya.headers[t]=q.merge(r6)});const Qu=ya,s6=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),i6=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&s6[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Wd=Symbol("internals");function Ko(e){return e&&String(e).trim().toLowerCase()}function vi(e){return e===!1||e==null?e:q.isArray(e)?e.map(vi):String(e)}function a6(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const l6=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Wa(e,t,n,r,o){if(q.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!q.isString(t)){if(q.isString(r))return t.indexOf(r)!==-1;if(q.isRegExp(r))return r.test(t)}}function u6(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function c6(e,t){const n=q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class ba{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,u){const c=Ko(l);if(!c)throw new Error("header name must be a non-empty string");const f=q.findKey(o,c);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=vi(a))}const i=(a,l)=>q.forEach(a,(u,c)=>s(u,c,l));return q.isPlainObject(t)||t instanceof this.constructor?i(t,n):q.isString(t)&&(t=t.trim())&&!l6(t)?i(i6(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=Ko(t),t){const r=q.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return a6(o);if(q.isFunction(n))return n.call(this,o,r);if(q.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ko(t),t){const r=q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Wa(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=Ko(i),i){const a=q.findKey(r,i);a&&(!n||Wa(r,r[a],a,n))&&(delete r[a],o=!0)}}return q.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||Wa(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return q.forEach(this,(o,s)=>{const i=q.findKey(r,s);if(i){n[i]=vi(o),delete n[s];return}const a=t?u6(s):String(s).trim();a!==s&&delete n[s],n[a]=vi(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return q.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Wd]=this[Wd]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Ko(i);r[a]||(c6(o,i),r[a]=!0)}return q.isArray(t)?t.forEach(s):s(t),this}}ba.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);q.freezeMethods(ba.prototype);q.freezeMethods(ba);const Dn=ba;function Ga(e,t){const n=this||Qu,r=t||n,o=Dn.from(r.headers);let s=r.data;return q.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Am(e){return!!(e&&e.__CANCEL__)}function Fs(e,t,n){He.call(this,e??"canceled",He.ERR_CANCELED,t,n),this.name="CanceledError"}q.inherits(Fs,He,{__CANCEL__:!0});function f6(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new He("Request failed with status code "+n.status,[He.ERR_BAD_REQUEST,He.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const d6=bn.isStandardBrowserEnv?function(){return{write:function(n,r,o,s,i,a){const l=[];l.push(n+"="+encodeURIComponent(r)),q.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),q.isString(s)&&l.push("path="+s),q.isString(i)&&l.push("domain="+i),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function p6(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function h6(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Pm(e,t){return e&&!p6(t)?h6(e,t):t}const v6=bn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=q.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function m6(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function g6(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[s];i||(i=u),n[o]=l,r[o]=u;let f=s,d=0;for(;f!==o;)d+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,l=r(a),u=s<=i;n=s;const c={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&u?(i-s)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const y6=typeof XMLHttpRequest<"u",b6=y6&&function(e){return new Promise(function(n,r){let o=e.data;const s=Dn.from(e.headers).normalize(),i=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}q.isFormData(o)&&(bn.isStandardBrowserEnv||bn.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(v+":"+m))}const c=Pm(e.baseURL,e.url);u.open(e.method.toUpperCase(),Om(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const v=Dn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),p={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:v,config:e,request:u};f6(function(g){n(g),l()},function(g){r(g),l()},p),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new He("Request aborted",He.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new He("Network Error",He.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||Tm;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new He(m,p.clarifyTimeoutError?He.ETIMEDOUT:He.ECONNABORTED,e,u)),u=null},bn.isStandardBrowserEnv){const v=(e.withCredentials||v6(c))&&e.xsrfCookieName&&d6.read(e.xsrfCookieName);v&&s.set(e.xsrfHeaderName,v)}o===void 0&&s.setContentType(null),"setRequestHeader"in u&&q.forEach(s.toJSON(),function(m,p){u.setRequestHeader(p,m)}),q.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Gd(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Gd(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=v=>{u&&(r(!v||v.type?new Fs(null,e,u):v),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const d=m6(c);if(d&&bn.protocols.indexOf(d)===-1){r(new He("Unsupported protocol "+d+":",He.ERR_BAD_REQUEST,e));return}u.send(o||null)})},mi={http:K8,xhr:b6};q.forEach(mi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const w6={getAdapter:e=>{e=q.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof Dn?e.toJSON():e;function To(e,t){t=t||{};const n={};function r(u,c,f){return q.isPlainObject(u)&&q.isPlainObject(c)?q.merge.call({caseless:f},u,c):q.isPlainObject(c)?q.merge({},c):q.isArray(c)?c.slice():c}function o(u,c,f){if(q.isUndefined(c)){if(!q.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function s(u,c){if(!q.isUndefined(c))return r(void 0,c)}function i(u,c){if(q.isUndefined(c)){if(!q.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,c)=>o(Jd(u),Jd(c),!0)};return q.forEach(Object.keys(e).concat(Object.keys(t)),function(c){const f=l[c]||o,d=f(e[c],t[c],c);q.isUndefined(d)&&f!==a||(n[c]=d)}),n}const $m="1.3.5",Zu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Zu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Xd={};Zu.transitional=function(t,n,r){function o(s,i){return"[Axios v"+$m+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(t===!1)throw new He(o(i," has been removed"+(n?" in "+n:"")),He.ERR_DEPRECATED);return n&&!Xd[i]&&(Xd[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,a):!0}};function _6(e,t,n){if(typeof e!="object")throw new He("options must be an object",He.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const a=e[s],l=a===void 0||i(a,s,e);if(l!==!0)throw new He("option "+s+" must be "+l,He.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new He("Unknown option "+s,He.ERR_BAD_OPTION)}}const Kl={assertOptions:_6,validators:Zu},er=Kl.validators;class Li{constructor(t){this.defaults=t,this.interceptors={request:new Ud,response:new Ud}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=To(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Kl.assertOptions(r,{silentJSONParsing:er.transitional(er.boolean),forcedJSONParsing:er.transitional(er.boolean),clarifyTimeoutError:er.transitional(er.boolean)},!1),o!=null&&(q.isFunction(o)?n.paramsSerializer={serialize:o}:Kl.assertOptions(o,{encode:er.function,serialize:er.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=s&&q.merge(s.common,s[n.method]),i&&q.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),n.headers=Dn.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,d;if(!l){const m=[Yd.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),d=m.length,c=Promise.resolve(n);f{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,a){r.reason||(r.reason=new Fs(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ec(function(o){t=o}),cancel:t}}}const S6=ec;function E6(e){return function(n){return e.apply(null,n)}}function C6(e){return q.isObject(e)&&e.isAxiosError===!0}const ql={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ql).forEach(([e,t])=>{ql[t]=e});const O6=ql;function Im(e){const t=new gi(e),n=dm(gi.prototype.request,t);return q.extend(n,gi.prototype,t,{allOwnKeys:!0}),q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Im(To(e,o))},n}const vt=Im(Qu);vt.Axios=gi;vt.CanceledError=Fs;vt.CancelToken=S6;vt.isCancel=Am;vt.VERSION=$m;vt.toFormData=ga;vt.AxiosError=He;vt.Cancel=vt.CanceledError;vt.all=function(t){return Promise.all(t)};vt.spread=E6;vt.isAxiosError=C6;vt.mergeConfig=To;vt.AxiosHeaders=Dn;vt.formToJSON=e=>xm(q.isHTMLForm(e)?new FormData(e):e);vt.HttpStatusCode=O6;vt.default=vt;const bI=vt;var Ja=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Xa(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Rm(e,t){for(var n=t.slice(0,t.length-1),r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function T6(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,s=0;s=0&&Qe.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Qe.splice(0,Qe.length),(t===93||t===224)&&(t=91),t in bt){bt[t]=!1;for(var r in xn)xn[r]===t&&(cr[r]=!1)}}function M6(e){if(typeof e>"u")Object.keys(ut).forEach(function(i){return delete ut[i]});else if(Array.isArray(e))e.forEach(function(i){i.key&&Qa(i)});else if(typeof e=="object")e.key&&Qa(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?Rm(xn,u):[];ut[d]=ut[d].filter(function(m){var p=o?m.method===o:!0;return!(p&&m.scope===r&&T6(m.mods,v))})}})};function Zd(e,t,n,r){if(t.element===r){var o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(var s in bt)Object.prototype.hasOwnProperty.call(bt,s)&&(!bt[s]&&t.mods.indexOf(+s)>-1||bt[s]&&t.mods.indexOf(+s)===-1)&&(o=!1);(t.mods.length===0&&!bt[16]&&!bt[18]&&!bt[17]&&!bt[91]||o||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function ep(e,t){var n=ut["*"],r=e.keyCode||e.which||e.charCode;if(cr.filter.call(this,e)){if((r===93||r===224)&&(r=91),Qe.indexOf(r)===-1&&r!==229&&Qe.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(m){var p=Ul[m];e[m]&&Qe.indexOf(p)===-1?Qe.push(p):!e[m]&&Qe.indexOf(p)>-1?Qe.splice(Qe.indexOf(p),1):m==="metaKey"&&e[m]&&Qe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Qe=Qe.slice(Qe.indexOf(p))))}),r in bt){bt[r]=!0;for(var o in xn)xn[o]===r&&(cr[o]=!0);if(!n)return}for(var s in bt)Object.prototype.hasOwnProperty.call(bt,s)&&(bt[s]=e[Ul[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Qe.indexOf(17)===-1&&Qe.push(17),Qe.indexOf(18)===-1&&Qe.push(18),bt[17]=!0,bt[18]=!0);var i=As();if(n)for(var a=0;a-1}function cr(e,t,n){Qe=[];var r=km(e),o=[],s="all",i=document,a=0,l=!1,u=!0,c="+",f=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(i=t.element),t.keyup&&(l=t.keyup),t.keydown!==void 0&&(u=t.keydown),t.capture!==void 0&&(f=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey)),typeof t=="string"&&(s=t);a1&&(o=Rm(xn,e)),e=e[e.length-1],e=e==="*"?"*":wa(e),e in ut||(ut[e]=[]),ut[e].push({keyup:l,keydown:u,scope:s,mods:o,shortcut:r[a],method:n,key:r[a],splitKey:c,element:i});typeof i<"u"&&!L6(i)&&window&&(Mm.push(i),Xa(i,"keydown",function(d){ep(d,i)},f),Qd||(Qd=!0,Xa(window,"focus",function(){Qe=[]},f)),Xa(i,"keyup",function(d){ep(d,i),N6(d)},f))}function F6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ut).forEach(function(n){var r=ut[n].filter(function(o){return o.scope===t&&o.shortcut===e});r.forEach(function(o){o&&o.method&&o.method()})})}var Za={getPressedKeyString:$6,setScope:Lm,getScope:As,deleteScope:k6,getPressedKeyCodes:P6,isPressed:R6,filter:I6,trigger:F6,unbind:M6,keyMap:xs,modifier:xn,modifierMap:Ul};for(var el in Za)Object.prototype.hasOwnProperty.call(Za,el)&&(cr[el]=Za[el]);if(typeof window<"u"){var B6=window.hotkeys;cr.noConflict=function(e){return e&&window.hotkeys===cr&&(window.hotkeys=B6),cr},window.hotkeys=cr}export{Q6 as $,U6 as A,hI as B,Iv as C,eI as D,sI as E,We as F,nI as G,bI as H,$p as I,Tt as J,ce as K,mI as L,Oa as M,fI as N,cI as O,ue as P,cr as Q,Ue as R,q6 as S,G6 as T,rI as U,vI as V,uI as W,oI as X,aI as Y,iI as Z,Z6 as _,V6 as a,fb as a0,j6 as a1,ct as a2,fn as a3,Ae as a4,UA as a5,K6 as a6,pI as a7,Re as a8,Xe as a9,Fn as aa,sb as ab,Hv as ac,lI as ad,gr as ae,qr as af,H6 as b,he as c,ne as d,ie as e,Rs as f,fe as g,dI as h,D6 as i,gI as j,tI as k,J6 as l,V as m,Y as n,I as o,z6 as p,O as q,Jn as r,yI as s,tt as t,h as u,qe as v,pe as w,X6 as x,Y6 as y,W6 as z}; + */let Am;const ba=e=>Am=e,Pm=Symbol();function Kl(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var os;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(os||(os={}));function gI(){const e=ap(!0),t=e.run(()=>V({}));let n=[],r=[];const o=po({install(s){ba(o),o._a=s,s.provide(Pm,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!v0?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const $m=()=>{};function Xd(e,t,n,r=$m){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Xl()&&Ql(o),o}function no(e,...t){e.slice().forEach(n=>{n(...t)})}function ql(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Kl(o)&&Kl(r)&&e.hasOwnProperty(n)&&!qe(r)&&!Ln(r)?e[n]=ql(o,r):e[n]=r}return e}const S6=Symbol();function E6(e){return!Kl(e)||!e.hasOwnProperty(S6)}const{assign:or}=Object;function C6(e){return!!(qe(e)&&e.effect)}function O6(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=gr(n.state.value[e]);return or(c,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=po(O(()=>{ba(n);const v=n._s.get(e);return i[d].call(v,v)})),f),{}))}return l=Im(e,u,t,n,r,!0),l}function Im(e,t,n={},r,o,s){let i;const a=or({actions:{}},n),l={deep:!0};let u,c,f=po([]),d=po([]),v;const m=r.state.value[e];!s&&!m&&(r.state.value[e]={}),V({});let p;function y(E){let x;u=c=!1,typeof E=="function"?(E(r.state.value[e]),x={type:os.patchFunction,storeId:e,events:v}):(ql(r.state.value[e],E),x={type:os.patchObject,payload:E,storeId:e,events:v});const F=p=Symbol();Re().then(()=>{p===F&&(u=!0)}),c=!0,no(f,x,r.state.value[e])}const g=s?function(){const{state:x}=n,F=x?x():{};this.$patch(R=>{or(R,F)})}:$m;function w(){i.stop(),f=[],d=[],r._s.delete(e)}function _(E,x){return function(){ba(r);const F=Array.from(arguments),R=[],H=[];function B(K){R.push(K)}function A(K){H.push(K)}no(d,{args:F,name:E,store:C,after:B,onError:A});let $;try{$=x.apply(this&&this.$id===e?this:C,F)}catch(K){throw no(H,K),K}return $ instanceof Promise?$.then(K=>(no(R,K),K)).catch(K=>(no(H,K),Promise.reject(K))):(no(R,$),$)}}const T={_p:r,$id:e,$onAction:Xd.bind(null,d),$patch:y,$reset:g,$subscribe(E,x={}){const F=Xd(f,E,x.detached,()=>R()),R=i.run(()=>ue(()=>r.state.value[e],H=>{(x.flush==="sync"?c:u)&&E({storeId:e,type:os.direct,events:v},H)},or({},l,x)));return F},$dispose:w},C=Et(T);r._s.set(e,C);const P=r._e.run(()=>(i=ap(),i.run(()=>t())));for(const E in P){const x=P[E];if(qe(x)&&!C6(x)||Ln(x))s||(m&&E6(x)&&(qe(x)?x.value=m[E]:ql(x,m[E])),r.state.value[e][E]=x);else if(typeof x=="function"){const F=_(E,x);P[E]=F,a.actions[E]=x}}return or(C,P),or(Ae(C),P),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:E=>{y(x=>{or(x,E)})}}),r._p.forEach(E=>{or(C,i.run(()=>E({store:C,app:r._a,pinia:r,options:a})))}),m&&s&&n.hydrate&&n.hydrate(C.$state,m),u=!0,c=!0,C}function yI(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function i(a,l){const u=st();return a=a||u&&Oe(Pm,null),a&&ba(a),a=Am,a._s.has(r)||(s?Im(r,t,o,a):O6(r,o,a)),a._s.get(r)}return i.$id=r,i}function bI(e){{e=Ae(e);const t={};for(const n in e){const r=e[n];(qe(r)||Ln(r))&&(t[n]=jt(e,n))}return t}}var Ja=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Xa(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Rm(e,t){for(var n=t.slice(0,t.length-1),r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function T6(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,s=0;s=0&&Qe.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Qe.splice(0,Qe.length),(t===93||t===224)&&(t=91),t in bt){bt[t]=!1;for(var r in xn)xn[r]===t&&(cr[r]=!1)}}function M6(e){if(typeof e>"u")Object.keys(ut).forEach(function(i){return delete ut[i]});else if(Array.isArray(e))e.forEach(function(i){i.key&&Qa(i)});else if(typeof e=="object")e.key&&Qa(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?Rm(xn,u):[];ut[d]=ut[d].filter(function(m){var p=o?m.method===o:!0;return!(p&&m.scope===r&&T6(m.mods,v))})}})};function Zd(e,t,n,r){if(t.element===r){var o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(var s in bt)Object.prototype.hasOwnProperty.call(bt,s)&&(!bt[s]&&t.mods.indexOf(+s)>-1||bt[s]&&t.mods.indexOf(+s)===-1)&&(o=!1);(t.mods.length===0&&!bt[16]&&!bt[18]&&!bt[17]&&!bt[91]||o||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function ep(e,t){var n=ut["*"],r=e.keyCode||e.which||e.charCode;if(cr.filter.call(this,e)){if((r===93||r===224)&&(r=91),Qe.indexOf(r)===-1&&r!==229&&Qe.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(m){var p=Ul[m];e[m]&&Qe.indexOf(p)===-1?Qe.push(p):!e[m]&&Qe.indexOf(p)>-1?Qe.splice(Qe.indexOf(p),1):m==="metaKey"&&e[m]&&Qe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Qe=Qe.slice(Qe.indexOf(p))))}),r in bt){bt[r]=!0;for(var o in xn)xn[o]===r&&(cr[o]=!0);if(!n)return}for(var s in bt)Object.prototype.hasOwnProperty.call(bt,s)&&(bt[s]=e[Ul[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Qe.indexOf(17)===-1&&Qe.push(17),Qe.indexOf(18)===-1&&Qe.push(18),bt[17]=!0,bt[18]=!0);var i=As();if(n)for(var a=0;a-1}function cr(e,t,n){Qe=[];var r=km(e),o=[],s="all",i=document,a=0,l=!1,u=!0,c="+",f=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(i=t.element),t.keyup&&(l=t.keyup),t.keydown!==void 0&&(u=t.keydown),t.capture!==void 0&&(f=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey)),typeof t=="string"&&(s=t);a1&&(o=Rm(xn,e)),e=e[e.length-1],e=e==="*"?"*":wa(e),e in ut||(ut[e]=[]),ut[e].push({keyup:l,keydown:u,scope:s,mods:o,shortcut:r[a],method:n,key:r[a],splitKey:c,element:i});typeof i<"u"&&!L6(i)&&window&&(Mm.push(i),Xa(i,"keydown",function(d){ep(d,i)},f),Qd||(Qd=!0,Xa(window,"focus",function(){Qe=[]},f)),Xa(i,"keyup",function(d){ep(d,i),N6(d)},f))}function F6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ut).forEach(function(n){var r=ut[n].filter(function(o){return o.scope===t&&o.shortcut===e});r.forEach(function(o){o&&o.method&&o.method()})})}var Za={getPressedKeyString:$6,setScope:Lm,getScope:As,deleteScope:k6,getPressedKeyCodes:P6,isPressed:R6,filter:I6,trigger:F6,unbind:M6,keyMap:xs,modifier:xn,modifierMap:Ul};for(var el in Za)Object.prototype.hasOwnProperty.call(Za,el)&&(cr[el]=Za[el]);if(typeof window<"u"){var B6=window.hotkeys;cr.noConflict=function(e){return e&&window.hotkeys===cr&&(window.hotkeys=B6),cr},window.hotkeys=cr}export{Q6 as $,Y6 as A,W6 as B,U6 as C,Iv as D,sI as E,We as F,eI as G,nI as H,$p as I,Tt as J,ce as K,gI as L,Oa as M,fI as N,cI as O,ue as P,cr as Q,Ue as R,q6 as S,G6 as T,rI as U,mI as V,uI as W,oI as X,aI as Y,iI as Z,Z6 as _,V6 as a,fb as a0,j6 as a1,ct as a2,fn as a3,Ae as a4,UA as a5,K6 as a6,pI as a7,Re as a8,Xe as a9,Fn as aa,sb as ab,Hv as ac,lI as ad,gr as ae,qr as af,H6 as b,he as c,ne as d,ie as e,Rs as f,fe as g,dI as h,D6 as i,vI as j,hI as k,J6 as l,yI as m,Y as n,I as o,z6 as p,tI as q,Jn as r,bI as s,tt as t,h as u,V as v,pe as w,O as x,qe as y,X6 as z}; diff --git a/app/src/main/assets/web/vue/index.html b/app/src/main/assets/web/vue/index.html index 1f1c29870..e62f3f389 100644 --- a/app/src/main/assets/web/vue/index.html +++ b/app/src/main/assets/web/vue/index.html @@ -4,10 +4,10 @@ - - + + - +