finance-pay/public/pc/_nuxt/index.411bb0f8.js

2 lines
43 KiB
JavaScript

import{bY as Ft,a0 as H,V as I,O as We,M as $,aa as Ue,N as Ao,ac as ye,a2 as Ze,bZ as xo,a5 as Ro,a6 as _o,J as Bo,Q as Y,u as v,ag as we,a as N,T as ae,af as ve,aP as Mo,r as A,aQ as Le,bo as Qe,b_ as Me,o as j,c as oe,k as G,ai as nt,i as et,Y as re,B as qe,am as Kt,an as qt,Z as Q,h as Oe,j as de,H as Vt,b5 as Re,a7 as Ct,aS as Io,a9 as Pt,f as Ho,aR as Lo,X as ie,D as No,p as pe,bP as Yt,ap as rt,b$ as tt,c0 as Do,c1 as $o,c2 as jo,c3 as Ut,bs as Ve,c4 as Xt,F as Gt,aO as kt,a3 as zo,ak as Wo,bn as At,aI as Fo,ao as Ko,c5 as qo,ba as xt,a4 as Vo,c6 as Yo,c7 as Uo,t as Xo}from"./entry.834fe740.js";const te=(e,t,{checkForDefaultPrevented:o=!0}={})=>r=>{const s=e==null?void 0:e(r);if(o===!1||!s)return t==null?void 0:t(r)},fa=e=>t=>t.pointerType==="mouse"?e(t):void 0,Go=()=>Math.floor(Math.random()*1e4),Jt=Symbol("scrollbarContextKey"),at=Symbol("popper"),Zt=Symbol("popperContent"),it=Symbol("elTooltip"),Jo=Ft({type:H(Boolean),default:null}),Zo=Ft({type:H(Function)}),Qo=e=>{const t=`update:${e}`,o=`onUpdate:${e}`,n=[t],r={[e]:Jo,[o]:Zo};return{useModelToggle:({indicator:a,toggleReason:l,shouldHideWhenRouteChanges:i,shouldProceed:u,onShow:f,onHide:p})=>{const b=Ao(),{emit:h}=b,y=b.props,g=I(()=>We(y[o])),T=I(()=>y[e]===null),S=w=>{a.value!==!0&&(a.value=!0,l&&(l.value=w),We(f)&&f(w))},P=w=>{a.value!==!1&&(a.value=!1,l&&(l.value=w),We(p)&&p(w))},c=w=>{if(y.disabled===!0||We(u)&&!u())return;const C=g.value&&ye;C&&h(t,!0),(T.value||!C)&&S(w)},m=w=>{if(y.disabled===!0||!ye)return;const C=g.value&&ye;C&&h(t,!1),(T.value||!C)&&P(w)},d=w=>{!Ze(w)||(y.disabled&&w?g.value&&h(t,!1):a.value!==w&&(w?S():P()))},O=()=>{a.value?m():c()};return $(()=>y[e],d),i&&b.appContext.config.globalProperties.$route!==void 0&&$(()=>({...b.proxy.$route}),()=>{i.value&&a.value&&m()}),Ue(()=>{d(y[e])}),{hide:m,show:c,toggle:O,hasUpdateHandler:g}},useModelToggleProps:r,useModelToggleEmits:n}};function en(){let e;const t=(n,r)=>{o(),e=window.setTimeout(n,r)},o=()=>window.clearTimeout(e);return xo(()=>o()),{registerTimeout:t,cancelTimeout:o}}let Rt;const tn=Ro("namespace",_o),Qt=`${tn.value}-popper-container-${Go()}`,eo=`#${Qt}`,on=()=>{const e=document.createElement("div");return e.id=Qt,document.body.appendChild(e),e},nn=()=>{Bo(()=>{!ye||(!Rt||!document.body.querySelector(eo))&&(Rt=on())})},rn=Y({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),an=({showAfter:e,hideAfter:t,open:o,close:n})=>{const{registerTimeout:r}=en();return{onOpen:l=>{r(()=>{o(l)},v(e))},onClose:l=>{r(()=>{n(l)},v(t))}}},to=Symbol("elForwardRef"),sn=e=>{we(to,{setForwardRef:o=>{e.value=o}})},ln=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),be=4,un={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"}},cn=({move:e,size:t,bar:o})=>({[o.size]:t,transform:`translate${o.axis}(${e}%)`}),pn=Y({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),fn="Thumb",dn=N({__name:"thumb",props:pn,setup(e){const t=e,o=ae(Jt),n=ve("scrollbar");o||Mo(fn,"can not inject scrollbar context");const r=A(),s=A(),a=A({}),l=A(!1);let i=!1,u=!1,f=ye?document.onselectstart:null;const p=I(()=>un[t.vertical?"vertical":"horizontal"]),b=I(()=>cn({size:t.size,move:t.move,bar:p.value})),h=I(()=>r.value[p.value.offset]**2/o.wrapElement[p.value.scrollSize]/t.ratio/s.value[p.value.offset]),y=O=>{var w;if(O.stopPropagation(),O.ctrlKey||[1,2].includes(O.button))return;(w=window.getSelection())==null||w.removeAllRanges(),T(O);const C=O.currentTarget;!C||(a.value[p.value.axis]=C[p.value.offset]-(O[p.value.client]-C.getBoundingClientRect()[p.value.direction]))},g=O=>{if(!s.value||!r.value||!o.wrapElement)return;const w=Math.abs(O.target.getBoundingClientRect()[p.value.direction]-O[p.value.client]),C=s.value[p.value.offset]/2,_=(w-C)*100*h.value/r.value[p.value.offset];o.wrapElement[p.value.scroll]=_*o.wrapElement[p.value.scrollSize]/100},T=O=>{O.stopImmediatePropagation(),i=!0,document.addEventListener("mousemove",S),document.addEventListener("mouseup",P),f=document.onselectstart,document.onselectstart=()=>!1},S=O=>{if(!r.value||!s.value||i===!1)return;const w=a.value[p.value.axis];if(!w)return;const C=(r.value.getBoundingClientRect()[p.value.direction]-O[p.value.client])*-1,_=s.value[p.value.offset]-w,B=(C-_)*100*h.value/r.value[p.value.offset];o.wrapElement[p.value.scroll]=B*o.wrapElement[p.value.scrollSize]/100},P=()=>{i=!1,a.value[p.value.axis]=0,document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",P),d(),u&&(l.value=!1)},c=()=>{u=!1,l.value=!!t.size},m=()=>{u=!0,l.value=i};Le(()=>{d(),document.removeEventListener("mouseup",P)});const d=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return Qe(Me(o,"scrollbarElement"),"mousemove",c),Qe(Me(o,"scrollbarElement"),"mouseleave",m),(O,w)=>(j(),oe(qt,{name:v(n).b("fade"),persisted:""},{default:G(()=>[nt(et("div",{ref_key:"instance",ref:r,class:re([v(n).e("bar"),v(n).is(v(p).key)]),onMousedown:g},[et("div",{ref_key:"thumb",ref:s,class:re(v(n).e("thumb")),style:qe(v(b)),onMousedown:y},null,38)],34),[[Kt,O.always||l.value]])]),_:1},8,["name"]))}});var _t=Q(dn,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const vn=Y({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),mn=N({__name:"bar",props:vn,setup(e,{expose:t}){const o=e,n=A(0),r=A(0);return t({handleScroll:a=>{if(a){const l=a.offsetHeight-be,i=a.offsetWidth-be;r.value=a.scrollTop*100/l*o.ratioY,n.value=a.scrollLeft*100/i*o.ratioX}}}),(a,l)=>(j(),Oe(Vt,null,[de(_t,{move:n.value,ratio:a.ratioX,size:a.width,always:a.always},null,8,["move","ratio","size","always"]),de(_t,{move:r.value,ratio:a.ratioY,size:a.height,vertical:"",always:a.always},null,8,["move","ratio","size","always"])],64))}});var gn=Q(mn,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const hn=Y({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:H([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}}),bn={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Re)},yn=N({name:"ElScrollbar"}),wn=N({...yn,props:hn,emits:bn,setup(e,{expose:t,emit:o}){const n=e,r=ve("scrollbar");let s,a;const l=A(),i=A(),u=A(),f=A("0"),p=A("0"),b=A(),h=A(1),y=A(1),g=I(()=>{const d={};return n.height&&(d.height=Ct(n.height)),n.maxHeight&&(d.maxHeight=Ct(n.maxHeight)),[n.wrapStyle,d]}),T=()=>{var d;i.value&&((d=b.value)==null||d.handleScroll(i.value),o("scroll",{scrollTop:i.value.scrollTop,scrollLeft:i.value.scrollLeft}))};function S(d,O){Yt(d)?i.value.scrollTo(d):Re(d)&&Re(O)&&i.value.scrollTo(d,O)}const P=d=>{!Re(d)||(i.value.scrollTop=d)},c=d=>{!Re(d)||(i.value.scrollLeft=d)},m=()=>{if(!i.value)return;const d=i.value.offsetHeight-be,O=i.value.offsetWidth-be,w=d**2/i.value.scrollHeight,C=O**2/i.value.scrollWidth,_=Math.max(w,n.minSize),B=Math.max(C,n.minSize);h.value=w/(d-w)/(_/(d-_)),y.value=C/(O-C)/(B/(O-B)),p.value=_+be<d?`${_}px`:"",f.value=B+be<O?`${B}px`:""};return $(()=>n.noresize,d=>{d?(s==null||s(),a==null||a()):({stop:s}=Io(u,m),a=Qe("resize",m))},{immediate:!0}),$(()=>[n.maxHeight,n.height],()=>{n.native||Pt(()=>{var d;m(),i.value&&((d=b.value)==null||d.handleScroll(i.value))})}),we(Jt,Ho({scrollbarElement:l,wrapElement:i})),Ue(()=>{n.native||Pt(()=>{m()})}),Lo(()=>m()),t({wrap$:i,update:m,scrollTo:S,setScrollTop:P,setScrollLeft:c,handleScroll:T}),(d,O)=>(j(),Oe("div",{ref_key:"scrollbar$",ref:l,class:re(v(r).b())},[et("div",{ref_key:"wrap$",ref:i,class:re([d.wrapClass,v(r).e("wrap"),{[v(r).em("wrap","hidden-default")]:!d.native}]),style:qe(v(g)),onScroll:T},[(j(),oe(No(d.tag),{ref_key:"resize$",ref:u,class:re([v(r).e("view"),d.viewClass]),style:qe(d.viewStyle)},{default:G(()=>[ie(d.$slots,"default")]),_:3},8,["class","style"]))],38),d.native?pe("v-if",!0):(j(),oe(gn,{key:0,ref_key:"barRef",ref:b,height:p.value,width:f.value,always:d.always,"ratio-x":y.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var On=Q(wn,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const da=rt(On),va={LIGHT:"light",DARK:"dark"},En=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],oo=Y({role:{type:String,values:En,default:"tooltip"}}),Tn=N({name:"ElPopperRoot",inheritAttrs:!1}),Sn=N({...Tn,props:oo,setup(e,{expose:t}){const o=e,n=A(),r=A(),s=A(),a=A(),l=I(()=>o.role),i={triggerRef:n,popperInstanceRef:r,contentRef:s,referenceRef:a,role:l};return t(i),we(at,i),(u,f)=>ie(u.$slots,"default")}});var Cn=Q(Sn,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const no=Y({arrowOffset:{type:Number,default:5}}),Pn=N({name:"ElPopperArrow",inheritAttrs:!1}),kn=N({...Pn,props:no,setup(e,{expose:t}){const o=e,n=ve("popper"),{arrowOffset:r,arrowRef:s}=ae(Zt,void 0);return $(()=>o.arrowOffset,a=>{r.value=a}),Le(()=>{s.value=void 0}),t({arrowRef:s}),(a,l)=>(j(),Oe("span",{ref_key:"arrowRef",ref:s,class:re(v(n).e("arrow")),"data-popper-arrow":""},null,2))}});var An=Q(kn,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const xn="ElOnlyChild",Rn=N({name:xn,setup(e,{slots:t,attrs:o}){var n;const r=ae(to),s=ln((n=r==null?void 0:r.setForwardRef)!=null?n:tt);return()=>{var a;const l=(a=t.default)==null?void 0:a.call(t,o);if(!l||l.length>1)return null;const i=ro(l);return i?nt(Do(i,o),[[s]]):null}}});function ro(e){if(!e)return null;const t=e;for(const o of t){if(Yt(o))switch(o.type){case jo:continue;case $o:case"svg":return Bt(o);case Vt:return ro(o.children);default:return o}return Bt(o)}return null}function Bt(e){const t=ve("only-child");return de("span",{class:t.e("content")},[e])}const ao=Y({virtualRef:{type:H(Object)},virtualTriggering:Boolean,onMouseenter:{type:H(Function)},onMouseleave:{type:H(Function)},onClick:{type:H(Function)},onKeydown:{type:H(Function)},onFocus:{type:H(Function)},onBlur:{type:H(Function)},onContextmenu:{type:H(Function)},id:String,open:Boolean}),_n=N({name:"ElPopperTrigger",inheritAttrs:!1}),Bn=N({..._n,props:ao,setup(e,{expose:t}){const o=e,{role:n,triggerRef:r}=ae(at,void 0);sn(r);const s=I(()=>l.value?o.id:void 0),a=I(()=>{if(n&&n.value==="tooltip")return o.open&&o.id?o.id:void 0}),l=I(()=>{if(n&&n.value!=="tooltip")return n.value}),i=I(()=>l.value?`${o.open}`:void 0);let u;return Ue(()=>{$(()=>o.virtualRef,f=>{f&&(r.value=Ut(f))},{immediate:!0}),$(r,(f,p)=>{u==null||u(),u=void 0,Ve(f)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(b=>{var h;const y=o[b];y&&(f.addEventListener(b.slice(2).toLowerCase(),y),(h=p==null?void 0:p.removeEventListener)==null||h.call(p,b.slice(2).toLowerCase(),y))}),u=$([s,a,l,i],b=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,y)=>{Xt(b[y])?f.removeAttribute(h):f.setAttribute(h,b[y])})},{immediate:!0})),Ve(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(b=>p.removeAttribute(b))},{immediate:!0})}),Le(()=>{u==null||u(),u=void 0}),t({triggerRef:r}),(f,p)=>f.virtualTriggering?pe("v-if",!0):(j(),oe(v(Rn),Gt({key:0},f.$attrs,{"aria-controls":v(s),"aria-describedby":v(a),"aria-expanded":v(i),"aria-haspopup":v(l)}),{default:G(()=>[ie(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Mn=Q(Bn,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),z="top",q="bottom",V="right",W="left",st="auto",Ne=[z,q,V,W],Ee="start",Ie="end",In="clippingParents",io="viewport",xe="popper",Hn="reference",Mt=Ne.reduce(function(e,t){return e.concat([t+"-"+Ee,t+"-"+Ie])},[]),lt=[].concat(Ne,[st]).reduce(function(e,t){return e.concat([t,t+"-"+Ee,t+"-"+Ie])},[]),Ln="beforeRead",Nn="read",Dn="afterRead",$n="beforeMain",jn="main",zn="afterMain",Wn="beforeWrite",Fn="write",Kn="afterWrite",qn=[Ln,Nn,Dn,$n,jn,zn,Wn,Fn,Kn];function Z(e){return e?(e.nodeName||"").toLowerCase():null}function X(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Te(e){var t=X(e).Element;return e instanceof t||e instanceof Element}function K(e){var t=X(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ut(e){if(typeof ShadowRoot>"u")return!1;var t=X(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Vn(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var n=t.styles[o]||{},r=t.attributes[o]||{},s=t.elements[o];!K(s)||!Z(s)||(Object.assign(s.style,n),Object.keys(r).forEach(function(a){var l=r[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function Yn(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],s=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:o[n]),l=a.reduce(function(i,u){return i[u]="",i},{});!K(r)||!Z(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(i){r.removeAttribute(i)}))})}}var so={name:"applyStyles",enabled:!0,phase:"write",fn:Vn,effect:Yn,requires:["computeStyles"]};function J(e){return e.split("-")[0]}var fe=Math.max,Ye=Math.min,Se=Math.round;function Ce(e,t){t===void 0&&(t=!1);var o=e.getBoundingClientRect(),n=1,r=1;if(K(e)&&t){var s=e.offsetHeight,a=e.offsetWidth;a>0&&(n=Se(o.width)/a||1),s>0&&(r=Se(o.height)/s||1)}return{width:o.width/n,height:o.height/r,top:o.top/r,right:o.right/n,bottom:o.bottom/r,left:o.left/n,x:o.left/n,y:o.top/r}}function ct(e){var t=Ce(e),o=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:n}}function lo(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&ut(o)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ne(e){return X(e).getComputedStyle(e)}function Un(e){return["table","td","th"].indexOf(Z(e))>=0}function se(e){return((Te(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xe(e){return Z(e)==="html"?e:e.assignedSlot||e.parentNode||(ut(e)?e.host:null)||se(e)}function It(e){return!K(e)||ne(e).position==="fixed"?null:e.offsetParent}function Xn(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&K(e)){var n=ne(e);if(n.position==="fixed")return null}var r=Xe(e);for(ut(r)&&(r=r.host);K(r)&&["html","body"].indexOf(Z(r))<0;){var s=ne(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function De(e){for(var t=X(e),o=It(e);o&&Un(o)&&ne(o).position==="static";)o=It(o);return o&&(Z(o)==="html"||Z(o)==="body"&&ne(o).position==="static")?t:o||Xn(e)||t}function pt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _e(e,t,o){return fe(e,Ye(t,o))}function Gn(e,t,o){var n=_e(e,t,o);return n>o?o:n}function uo(){return{top:0,right:0,bottom:0,left:0}}function co(e){return Object.assign({},uo(),e)}function po(e,t){return t.reduce(function(o,n){return o[n]=e,o},{})}var Jn=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,co(typeof e!="number"?e:po(e,Ne))};function Zn(e){var t,o=e.state,n=e.name,r=e.options,s=o.elements.arrow,a=o.modifiersData.popperOffsets,l=J(o.placement),i=pt(l),u=[W,V].indexOf(l)>=0,f=u?"height":"width";if(!(!s||!a)){var p=Jn(r.padding,o),b=ct(s),h=i==="y"?z:W,y=i==="y"?q:V,g=o.rects.reference[f]+o.rects.reference[i]-a[i]-o.rects.popper[f],T=a[i]-o.rects.reference[i],S=De(s),P=S?i==="y"?S.clientHeight||0:S.clientWidth||0:0,c=g/2-T/2,m=p[h],d=P-b[f]-p[y],O=P/2-b[f]/2+c,w=_e(m,O,d),C=i;o.modifiersData[n]=(t={},t[C]=w,t.centerOffset=w-O,t)}}function Qn(e){var t=e.state,o=e.options,n=o.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!lo(t.elements.popper,r)||(t.elements.arrow=r))}var er={name:"arrow",enabled:!0,phase:"main",fn:Zn,effect:Qn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pe(e){return e.split("-")[1]}var tr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function or(e){var t=e.x,o=e.y,n=window,r=n.devicePixelRatio||1;return{x:Se(t*r)/r||0,y:Se(o*r)/r||0}}function Ht(e){var t,o=e.popper,n=e.popperRect,r=e.placement,s=e.variation,a=e.offsets,l=e.position,i=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,p=e.isFixed,b=a.x,h=b===void 0?0:b,y=a.y,g=y===void 0?0:y,T=typeof f=="function"?f({x:h,y:g}):{x:h,y:g};h=T.x,g=T.y;var S=a.hasOwnProperty("x"),P=a.hasOwnProperty("y"),c=W,m=z,d=window;if(u){var O=De(o),w="clientHeight",C="clientWidth";if(O===X(o)&&(O=se(o),ne(O).position!=="static"&&l==="absolute"&&(w="scrollHeight",C="scrollWidth")),O=O,r===z||(r===W||r===V)&&s===Ie){m=q;var _=p&&O===d&&d.visualViewport?d.visualViewport.height:O[w];g-=_-n.height,g*=i?1:-1}if(r===W||(r===z||r===q)&&s===Ie){c=V;var B=p&&O===d&&d.visualViewport?d.visualViewport.width:O[C];h-=B-n.width,h*=i?1:-1}}var L=Object.assign({position:l},u&&tr),D=f===!0?or({x:h,y:g}):{x:h,y:g};if(h=D.x,g=D.y,i){var E;return Object.assign({},L,(E={},E[m]=P?"0":"",E[c]=S?"0":"",E.transform=(d.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",E))}return Object.assign({},L,(t={},t[m]=P?g+"px":"",t[c]=S?h+"px":"",t.transform="",t))}function nr(e){var t=e.state,o=e.options,n=o.gpuAcceleration,r=n===void 0?!0:n,s=o.adaptive,a=s===void 0?!0:s,l=o.roundOffsets,i=l===void 0?!0:l,u={placement:J(t.placement),variation:Pe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ht(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ht(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var fo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nr,data:{}},Fe={passive:!0};function rr(e){var t=e.state,o=e.instance,n=e.options,r=n.scroll,s=r===void 0?!0:r,a=n.resize,l=a===void 0?!0:a,i=X(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(f){f.addEventListener("scroll",o.update,Fe)}),l&&i.addEventListener("resize",o.update,Fe),function(){s&&u.forEach(function(f){f.removeEventListener("scroll",o.update,Fe)}),l&&i.removeEventListener("resize",o.update,Fe)}}var vo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rr,data:{}},ar={left:"right",right:"left",bottom:"top",top:"bottom"};function Ke(e){return e.replace(/left|right|bottom|top/g,function(t){return ar[t]})}var ir={start:"end",end:"start"};function Lt(e){return e.replace(/start|end/g,function(t){return ir[t]})}function ft(e){var t=X(e),o=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:o,scrollTop:n}}function dt(e){return Ce(se(e)).left+ft(e).scrollLeft}function sr(e){var t=X(e),o=se(e),n=t.visualViewport,r=o.clientWidth,s=o.clientHeight,a=0,l=0;return n&&(r=n.width,s=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,l=n.offsetTop)),{width:r,height:s,x:a+dt(e),y:l}}function lr(e){var t,o=se(e),n=ft(e),r=(t=e.ownerDocument)==null?void 0:t.body,s=fe(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=fe(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-n.scrollLeft+dt(e),i=-n.scrollTop;return ne(r||o).direction==="rtl"&&(l+=fe(o.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:i}}function vt(e){var t=ne(e),o=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function mo(e){return["html","body","#document"].indexOf(Z(e))>=0?e.ownerDocument.body:K(e)&&vt(e)?e:mo(Xe(e))}function Be(e,t){var o;t===void 0&&(t=[]);var n=mo(e),r=n===((o=e.ownerDocument)==null?void 0:o.body),s=X(n),a=r?[s].concat(s.visualViewport||[],vt(n)?n:[]):n,l=t.concat(a);return r?l:l.concat(Be(Xe(a)))}function ot(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ur(e){var t=Ce(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Nt(e,t){return t===io?ot(sr(e)):Te(t)?ur(t):ot(lr(se(e)))}function cr(e){var t=Be(Xe(e)),o=["absolute","fixed"].indexOf(ne(e).position)>=0,n=o&&K(e)?De(e):e;return Te(n)?t.filter(function(r){return Te(r)&&lo(r,n)&&Z(r)!=="body"}):[]}function pr(e,t,o){var n=t==="clippingParents"?cr(e):[].concat(t),r=[].concat(n,[o]),s=r[0],a=r.reduce(function(l,i){var u=Nt(e,i);return l.top=fe(u.top,l.top),l.right=Ye(u.right,l.right),l.bottom=Ye(u.bottom,l.bottom),l.left=fe(u.left,l.left),l},Nt(e,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function go(e){var t=e.reference,o=e.element,n=e.placement,r=n?J(n):null,s=n?Pe(n):null,a=t.x+t.width/2-o.width/2,l=t.y+t.height/2-o.height/2,i;switch(r){case z:i={x:a,y:t.y-o.height};break;case q:i={x:a,y:t.y+t.height};break;case V:i={x:t.x+t.width,y:l};break;case W:i={x:t.x-o.width,y:l};break;default:i={x:t.x,y:t.y}}var u=r?pt(r):null;if(u!=null){var f=u==="y"?"height":"width";switch(s){case Ee:i[u]=i[u]-(t[f]/2-o[f]/2);break;case Ie:i[u]=i[u]+(t[f]/2-o[f]/2);break}}return i}function He(e,t){t===void 0&&(t={});var o=t,n=o.placement,r=n===void 0?e.placement:n,s=o.boundary,a=s===void 0?In:s,l=o.rootBoundary,i=l===void 0?io:l,u=o.elementContext,f=u===void 0?xe:u,p=o.altBoundary,b=p===void 0?!1:p,h=o.padding,y=h===void 0?0:h,g=co(typeof y!="number"?y:po(y,Ne)),T=f===xe?Hn:xe,S=e.rects.popper,P=e.elements[b?T:f],c=pr(Te(P)?P:P.contextElement||se(e.elements.popper),a,i),m=Ce(e.elements.reference),d=go({reference:m,element:S,strategy:"absolute",placement:r}),O=ot(Object.assign({},S,d)),w=f===xe?O:m,C={top:c.top-w.top+g.top,bottom:w.bottom-c.bottom+g.bottom,left:c.left-w.left+g.left,right:w.right-c.right+g.right},_=e.modifiersData.offset;if(f===xe&&_){var B=_[r];Object.keys(C).forEach(function(L){var D=[V,q].indexOf(L)>=0?1:-1,E=[z,q].indexOf(L)>=0?"y":"x";C[L]+=B[E]*D})}return C}function fr(e,t){t===void 0&&(t={});var o=t,n=o.placement,r=o.boundary,s=o.rootBoundary,a=o.padding,l=o.flipVariations,i=o.allowedAutoPlacements,u=i===void 0?lt:i,f=Pe(n),p=f?l?Mt:Mt.filter(function(y){return Pe(y)===f}):Ne,b=p.filter(function(y){return u.indexOf(y)>=0});b.length===0&&(b=p);var h=b.reduce(function(y,g){return y[g]=He(e,{placement:g,boundary:r,rootBoundary:s,padding:a})[J(g)],y},{});return Object.keys(h).sort(function(y,g){return h[y]-h[g]})}function dr(e){if(J(e)===st)return[];var t=Ke(e);return[Lt(e),t,Lt(t)]}function vr(e){var t=e.state,o=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=o.mainAxis,s=r===void 0?!0:r,a=o.altAxis,l=a===void 0?!0:a,i=o.fallbackPlacements,u=o.padding,f=o.boundary,p=o.rootBoundary,b=o.altBoundary,h=o.flipVariations,y=h===void 0?!0:h,g=o.allowedAutoPlacements,T=t.options.placement,S=J(T),P=S===T,c=i||(P||!y?[Ke(T)]:dr(T)),m=[T].concat(c).reduce(function(ue,ee){return ue.concat(J(ee)===st?fr(t,{placement:ee,boundary:f,rootBoundary:p,padding:u,flipVariations:y,allowedAutoPlacements:g}):ee)},[]),d=t.rects.reference,O=t.rects.popper,w=new Map,C=!0,_=m[0],B=0;B<m.length;B++){var L=m[B],D=J(L),E=Pe(L)===Ee,k=[z,q].indexOf(D)>=0,x=k?"width":"height",R=He(t,{placement:L,boundary:f,rootBoundary:p,altBoundary:b,padding:u}),M=k?E?V:W:E?q:z;d[x]>O[x]&&(M=Ke(M));var U=Ke(M),F=[];if(s&&F.push(R[D]<=0),l&&F.push(R[M]<=0,R[U]<=0),F.every(function(ue){return ue})){_=L,C=!1;break}w.set(L,F)}if(C)for(var le=y?3:1,me=function(ue){var ee=m.find(function(je){var Ae=w.get(je);if(Ae)return Ae.slice(0,ue).every(function(ge){return ge})});if(ee)return _=ee,"break"},ke=le;ke>0;ke--){var $e=me(ke);if($e==="break")break}t.placement!==_&&(t.modifiersData[n]._skip=!0,t.placement=_,t.reset=!0)}}var mr={name:"flip",enabled:!0,phase:"main",fn:vr,requiresIfExists:["offset"],data:{_skip:!1}};function Dt(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function $t(e){return[z,V,q,W].some(function(t){return e[t]>=0})}function gr(e){var t=e.state,o=e.name,n=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,a=He(t,{elementContext:"reference"}),l=He(t,{altBoundary:!0}),i=Dt(a,n),u=Dt(l,r,s),f=$t(i),p=$t(u);t.modifiersData[o]={referenceClippingOffsets:i,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}var hr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gr};function br(e,t,o){var n=J(e),r=[W,z].indexOf(n)>=0?-1:1,s=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,a=s[0],l=s[1];return a=a||0,l=(l||0)*r,[W,V].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}function yr(e){var t=e.state,o=e.options,n=e.name,r=o.offset,s=r===void 0?[0,0]:r,a=lt.reduce(function(f,p){return f[p]=br(p,t.rects,s),f},{}),l=a[t.placement],i=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}var wr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yr};function Or(e){var t=e.state,o=e.name;t.modifiersData[o]=go({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var ho={name:"popperOffsets",enabled:!0,phase:"read",fn:Or,data:{}};function Er(e){return e==="x"?"y":"x"}function Tr(e){var t=e.state,o=e.options,n=e.name,r=o.mainAxis,s=r===void 0?!0:r,a=o.altAxis,l=a===void 0?!1:a,i=o.boundary,u=o.rootBoundary,f=o.altBoundary,p=o.padding,b=o.tether,h=b===void 0?!0:b,y=o.tetherOffset,g=y===void 0?0:y,T=He(t,{boundary:i,rootBoundary:u,padding:p,altBoundary:f}),S=J(t.placement),P=Pe(t.placement),c=!P,m=pt(S),d=Er(m),O=t.modifiersData.popperOffsets,w=t.rects.reference,C=t.rects.popper,_=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,B=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(O){if(s){var E,k=m==="y"?z:W,x=m==="y"?q:V,R=m==="y"?"height":"width",M=O[m],U=M+T[k],F=M-T[x],le=h?-C[R]/2:0,me=P===Ee?w[R]:C[R],ke=P===Ee?-C[R]:-w[R],$e=t.elements.arrow,ue=h&&$e?ct($e):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:uo(),je=ee[k],Ae=ee[x],ge=_e(0,w[R],ue[R]),Oo=c?w[R]/2-le-ge-je-B.mainAxis:me-ge-je-B.mainAxis,Eo=c?-w[R]/2+le+ge+Ae+B.mainAxis:ke+ge+Ae+B.mainAxis,Ge=t.elements.arrow&&De(t.elements.arrow),To=Ge?m==="y"?Ge.clientTop||0:Ge.clientLeft||0:0,gt=(E=L==null?void 0:L[m])!=null?E:0,So=M+Oo-gt-To,Co=M+Eo-gt,ht=_e(h?Ye(U,So):U,M,h?fe(F,Co):F);O[m]=ht,D[m]=ht-M}if(l){var bt,Po=m==="x"?z:W,ko=m==="x"?q:V,ce=O[d],ze=d==="y"?"height":"width",yt=ce+T[Po],wt=ce-T[ko],Je=[z,W].indexOf(S)!==-1,Ot=(bt=L==null?void 0:L[d])!=null?bt:0,Et=Je?yt:ce-w[ze]-C[ze]-Ot+B.altAxis,Tt=Je?ce+w[ze]+C[ze]-Ot-B.altAxis:wt,St=h&&Je?Gn(Et,ce,Tt):_e(h?Et:yt,ce,h?Tt:wt);O[d]=St,D[d]=St-ce}t.modifiersData[n]=D}}var Sr={name:"preventOverflow",enabled:!0,phase:"main",fn:Tr,requiresIfExists:["offset"]};function Cr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Pr(e){return e===X(e)||!K(e)?ft(e):Cr(e)}function kr(e){var t=e.getBoundingClientRect(),o=Se(t.width)/e.offsetWidth||1,n=Se(t.height)/e.offsetHeight||1;return o!==1||n!==1}function Ar(e,t,o){o===void 0&&(o=!1);var n=K(t),r=K(t)&&kr(t),s=se(t),a=Ce(e,r),l={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(n||!n&&!o)&&((Z(t)!=="body"||vt(s))&&(l=Pr(t)),K(t)?(i=Ce(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):s&&(i.x=dt(s))),{x:a.left+l.scrollLeft-i.x,y:a.top+l.scrollTop-i.y,width:a.width,height:a.height}}function xr(e){var t=new Map,o=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function r(s){o.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!o.has(l)){var i=t.get(l);i&&r(i)}}),n.push(s)}return e.forEach(function(s){o.has(s.name)||r(s)}),n}function Rr(e){var t=xr(e);return qn.reduce(function(o,n){return o.concat(t.filter(function(r){return r.phase===n}))},[])}function _r(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function Br(e){var t=e.reduce(function(o,n){var r=o[n.name];return o[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,o},{});return Object.keys(t).map(function(o){return t[o]})}var jt={placement:"bottom",modifiers:[],strategy:"absolute"};function zt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function mt(e){e===void 0&&(e={});var t=e,o=t.defaultModifiers,n=o===void 0?[]:o,r=t.defaultOptions,s=r===void 0?jt:r;return function(a,l,i){i===void 0&&(i=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},jt,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],p=!1,b={state:u,setOptions:function(g){var T=typeof g=="function"?g(u.options):g;y(),u.options=Object.assign({},s,u.options,T),u.scrollParents={reference:Te(a)?Be(a):a.contextElement?Be(a.contextElement):[],popper:Be(l)};var S=Rr(Br([].concat(n,u.options.modifiers)));return u.orderedModifiers=S.filter(function(P){return P.enabled}),h(),b.update()},forceUpdate:function(){if(!p){var g=u.elements,T=g.reference,S=g.popper;if(zt(T,S)){u.rects={reference:Ar(T,De(S),u.options.strategy==="fixed"),popper:ct(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(C){return u.modifiersData[C.name]=Object.assign({},C.data)});for(var P=0;P<u.orderedModifiers.length;P++){if(u.reset===!0){u.reset=!1,P=-1;continue}var c=u.orderedModifiers[P],m=c.fn,d=c.options,O=d===void 0?{}:d,w=c.name;typeof m=="function"&&(u=m({state:u,options:O,name:w,instance:b})||u)}}}},update:_r(function(){return new Promise(function(g){b.forceUpdate(),g(u)})}),destroy:function(){y(),p=!0}};if(!zt(a,l))return b;b.setOptions(i).then(function(g){!p&&i.onFirstUpdate&&i.onFirstUpdate(g)});function h(){u.orderedModifiers.forEach(function(g){var T=g.name,S=g.options,P=S===void 0?{}:S,c=g.effect;if(typeof c=="function"){var m=c({state:u,name:T,instance:b,options:P}),d=function(){};f.push(m||d)}})}function y(){f.forEach(function(g){return g()}),f=[]}return b}}mt();var Mr=[vo,ho,fo,so];mt({defaultModifiers:Mr});var Ir=[vo,ho,fo,so,wr,mr,Sr,er,hr],Hr=mt({defaultModifiers:Ir});const Lr=["fixed","absolute"],Nr=Y({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:H(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:lt,default:"bottom"},popperOptions:{type:H(Object),default:()=>({})},strategy:{type:String,values:Lr,default:"absolute"}}),bo=Y({...Nr,id:String,style:{type:H([String,Array,Object])},className:{type:H([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:H([String,Array,Object])},popperStyle:{type:H([String,Array,Object])},referenceEl:{type:H(Object)},triggerTargetEl:{type:H(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Dr={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Wt=(e,t)=>{const{placement:o,strategy:n,popperOptions:r}=e,s={placement:o,strategy:n,...r,modifiers:jr(e)};return zr(s,t),Wr(s,r==null?void 0:r.modifiers),s},$r=e=>{if(!!ye)return Ut(e)};function jr(e){const{offset:t,gpuAcceleration:o,fallbackPlacements:n}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:n}},{name:"computeStyles",options:{gpuAcceleration:o,adaptive:o}}]}function zr(e,{arrowEl:t,arrowOffset:o}){e.modifiers.push({name:"arrow",options:{element:t,padding:o!=null?o:5}})}function Wr(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const Fr=N({name:"ElPopperContent"}),Kr=N({...Fr,props:bo,emits:Dr,setup(e,{expose:t,emit:o}){const n=e,{popperInstanceRef:r,contentRef:s,triggerRef:a,role:l}=ae(at,void 0),i=ae(kt,void 0),{nextZIndex:u}=zo(),f=ve("popper"),p=A(),b=A("first"),h=A(),y=A();we(Zt,{arrowRef:h,arrowOffset:y}),i&&(i.addInputId||i.removeInputId)&&we(kt,{...i,addInputId:tt,removeInputId:tt});const g=A(n.zIndex||u()),T=A(!1);let S;const P=I(()=>$r(n.referenceEl)||v(a)),c=I(()=>[{zIndex:v(g)},n.popperStyle]),m=I(()=>[f.b(),f.is("pure",n.pure),f.is(n.effect),n.popperClass]),d=I(()=>l&&l.value==="dialog"?"false":void 0),O=({referenceEl:k,popperContentEl:x,arrowEl:R})=>{const M=Wt(n,{arrowEl:R,arrowOffset:v(y)});return Hr(k,x,M)},w=(k=!0)=>{var x;(x=v(r))==null||x.update(),k&&(g.value=n.zIndex||u())},C=()=>{var k,x;const R={name:"eventListeners",enabled:n.visible};(x=(k=v(r))==null?void 0:k.setOptions)==null||x.call(k,M=>({...M,modifiers:[...M.modifiers||[],R]})),w(!1),n.visible&&n.focusOnShow?T.value=!0:n.visible===!1&&(T.value=!1)},_=()=>{o("focus")},B=k=>{var x;((x=k.detail)==null?void 0:x.focusReason)!=="pointer"&&(b.value="first",o("blur"))},L=k=>{n.visible&&!T.value&&(k.target&&(b.value=k.target),T.value=!0)},D=k=>{n.trapping||(k.detail.focusReason==="pointer"&&k.preventDefault(),T.value=!1)},E=()=>{T.value=!1,o("close")};return Ue(()=>{let k;$(P,x=>{var R;k==null||k();const M=v(r);if((R=M==null?void 0:M.destroy)==null||R.call(M),x){const U=v(p);s.value=U,r.value=O({referenceEl:x,popperContentEl:U,arrowEl:v(h)}),k=$(()=>x.getBoundingClientRect(),()=>w(),{immediate:!0})}else r.value=void 0},{immediate:!0}),$(()=>n.triggerTargetEl,(x,R)=>{S==null||S(),S=void 0;const M=v(x||p.value),U=v(R||p.value);Ve(M)&&(S=$([l,()=>n.ariaLabel,d,()=>n.id],F=>{["role","aria-label","aria-modal","id"].forEach((le,me)=>{Xt(F[me])?M.removeAttribute(le):M.setAttribute(le,F[me])})},{immediate:!0})),U!==M&&Ve(U)&&["role","aria-label","aria-modal","id"].forEach(F=>{U.removeAttribute(F)})},{immediate:!0}),$(()=>n.visible,C,{immediate:!0}),$(()=>Wt(n,{arrowEl:v(h),arrowOffset:v(y)}),x=>{var R;return(R=r.value)==null?void 0:R.setOptions(x)})}),Le(()=>{S==null||S(),S=void 0}),t({popperContentRef:p,popperInstanceRef:r,updatePopper:w,contentStyle:c}),(k,x)=>(j(),Oe("div",{ref_key:"popperContentRef",ref:p,style:qe(v(c)),class:re(v(m)),tabindex:"-1",onMouseenter:x[0]||(x[0]=R=>k.$emit("mouseenter",R)),onMouseleave:x[1]||(x[1]=R=>k.$emit("mouseleave",R))},[de(v(Wo),{trapped:T.value,"trap-on-focus-in":!0,"focus-trap-el":p.value,"focus-start-el":b.value,onFocusAfterTrapped:_,onFocusAfterReleased:B,onFocusin:L,onFocusoutPrevented:D,onReleaseRequested:E},{default:G(()=>[ie(k.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var qr=Q(Kr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Vr=rt(Cn),Yr=ve("tooltip"),yo=Y({...rn,...bo,appendTo:{type:H([String,Object]),default:eo},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:H(Boolean),default:null},transition:{type:String,default:`${Yr.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),wo=Y({...ao,disabled:Boolean,trigger:{type:H([String,Array]),default:"hover"},triggerKeys:{type:H(Array),default:()=>[At.enter,At.space]}}),{useModelToggleProps:Ur,useModelToggleEmits:Xr,useModelToggle:Gr}=Qo("visible"),Jr=Y({...oo,...Ur,...yo,...wo,...no,openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0}}),Zr=[...Xr,"before-show","before-hide","show","hide","open","close"],Qr=(e,t)=>Fo(e)?e.includes(t):e===t,he=(e,t,o)=>n=>{Qr(v(e),t)&&o(n)},ea=N({name:"ElTooltipTrigger"}),ta=N({...ea,props:wo,setup(e,{expose:t}){const o=e,n=ve("tooltip"),{controlled:r,id:s,open:a,onOpen:l,onClose:i,onToggle:u}=ae(it,void 0),f=A(null),p=()=>{if(v(r)||o.disabled)return!0},b=Me(o,"trigger"),h=te(p,he(b,"hover",l)),y=te(p,he(b,"hover",i)),g=te(p,he(b,"click",m=>{m.button===0&&u(m)})),T=te(p,he(b,"focus",l)),S=te(p,he(b,"focus",i)),P=te(p,he(b,"contextmenu",m=>{m.preventDefault(),u(m)})),c=te(p,m=>{const{code:d}=m;o.triggerKeys.includes(d)&&(m.preventDefault(),u(m))});return t({triggerRef:f}),(m,d)=>(j(),oe(v(Mn),{id:v(s),"virtual-ref":m.virtualRef,open:v(a),"virtual-triggering":m.virtualTriggering,class:re(v(n).e("trigger")),onBlur:v(S),onClick:v(g),onContextmenu:v(P),onFocus:v(T),onMouseenter:v(h),onMouseleave:v(y),onKeydown:v(c)},{default:G(()=>[ie(m.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var oa=Q(ta,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const na=N({name:"ElTooltipContent",inheritAttrs:!1}),ra=N({...na,props:yo,setup(e,{expose:t}){const o=e,n=A(null),r=A(!1),{controlled:s,id:a,open:l,trigger:i,onClose:u,onOpen:f,onShow:p,onHide:b,onBeforeShow:h,onBeforeHide:y}=ae(it,void 0),g=I(()=>o.persistent);Le(()=>{r.value=!0});const T=I(()=>v(g)?!0:v(l)),S=I(()=>o.disabled?!1:v(l)),P=I(()=>{var E;return(E=o.style)!=null?E:{}}),c=I(()=>!v(l)),m=()=>{b()},d=()=>{if(v(s))return!0},O=te(d,()=>{o.enterable&&v(i)==="hover"&&f()}),w=te(d,()=>{v(i)==="hover"&&u()}),C=()=>{var E,k;(k=(E=n.value)==null?void 0:E.updatePopper)==null||k.call(E),h==null||h()},_=()=>{y==null||y()},B=()=>{p(),D=qo(I(()=>{var E;return(E=n.value)==null?void 0:E.popperContentRef}),()=>{if(v(s))return;v(i)!=="hover"&&u()})},L=()=>{o.virtualTriggering||u()};let D;return $(()=>v(l),E=>{E||D==null||D()},{flush:"post"}),$(()=>o.content,()=>{var E,k;(k=(E=n.value)==null?void 0:E.updatePopper)==null||k.call(E)}),t({contentRef:n}),(E,k)=>(j(),oe(Ko,{disabled:!E.teleported,to:E.appendTo},[de(qt,{name:E.transition,onAfterLeave:m,onBeforeEnter:C,onAfterEnter:B,onBeforeLeave:_},{default:G(()=>[v(T)?nt((j(),oe(v(qr),Gt({key:0,id:v(a),ref_key:"contentRef",ref:n},E.$attrs,{"aria-label":E.ariaLabel,"aria-hidden":v(c),"boundaries-padding":E.boundariesPadding,"fallback-placements":E.fallbackPlacements,"gpu-acceleration":E.gpuAcceleration,offset:E.offset,placement:E.placement,"popper-options":E.popperOptions,strategy:E.strategy,effect:E.effect,enterable:E.enterable,pure:E.pure,"popper-class":E.popperClass,"popper-style":[E.popperStyle,v(P)],"reference-el":E.referenceEl,"trigger-target-el":E.triggerTargetEl,visible:v(S),"z-index":E.zIndex,onMouseenter:v(O),onMouseleave:v(w),onBlur:L,onClose:v(u)}),{default:G(()=>[pe(" Workaround bug #6378 "),r.value?pe("v-if",!0):ie(E.$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"])),[[Kt,v(S)]]):pe("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var aa=Q(ra,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const ia=["innerHTML"],sa={key:1},la=N({name:"ElTooltip"}),ua=N({...la,props:Jr,emits:Zr,setup(e,{expose:t,emit:o}){const n=e;nn();const r=I(()=>(xt(n.openDelay),n.openDelay||n.showAfter)),s=I(()=>(xt(n.visibleArrow),Ze(n.visibleArrow)?n.visibleArrow:n.showArrow)),a=Vo(),l=A(),i=A(),u=()=>{var c;const m=v(l);m&&((c=m.popperInstanceRef)==null||c.update())},f=A(!1),p=A(),{show:b,hide:h,hasUpdateHandler:y}=Gr({indicator:f,toggleReason:p}),{onOpen:g,onClose:T}=an({showAfter:r,hideAfter:Me(n,"hideAfter"),open:b,close:h}),S=I(()=>Ze(n.visible)&&!y.value);we(it,{controlled:S,id:a,open:Yo(f),trigger:Me(n,"trigger"),onOpen:c=>{g(c)},onClose:c=>{T(c)},onToggle:c=>{v(f)?T(c):g(c)},onShow:()=>{o("show",p.value)},onHide:()=>{o("hide",p.value)},onBeforeShow:()=>{o("before-show",p.value)},onBeforeHide:()=>{o("before-hide",p.value)},updatePopper:u}),$(()=>n.disabled,c=>{c&&f.value&&(f.value=!1)});const P=()=>{var c,m;const d=(m=(c=i.value)==null?void 0:c.contentRef)==null?void 0:m.popperContentRef;return d&&d.contains(document.activeElement)};return Uo(()=>f.value&&h()),t({popperRef:l,contentRef:i,isFocusInsideContent:P,updatePopper:u,onOpen:g,onClose:T,hide:h}),(c,m)=>(j(),oe(v(Vr),{ref_key:"popperRef",ref:l,role:c.role},{default:G(()=>[de(oa,{disabled:c.disabled,trigger:c.trigger,"trigger-keys":c.triggerKeys,"virtual-ref":c.virtualRef,"virtual-triggering":c.virtualTriggering},{default:G(()=>[c.$slots.default?ie(c.$slots,"default",{key:0}):pe("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),de(aa,{ref_key:"contentRef",ref:i,"aria-label":c.ariaLabel,"boundaries-padding":c.boundariesPadding,content:c.content,disabled:c.disabled,effect:c.effect,enterable:c.enterable,"fallback-placements":c.fallbackPlacements,"hide-after":c.hideAfter,"gpu-acceleration":c.gpuAcceleration,offset:c.offset,persistent:c.persistent,"popper-class":c.popperClass,"popper-style":c.popperStyle,placement:c.placement,"popper-options":c.popperOptions,pure:c.pure,"raw-content":c.rawContent,"reference-el":c.referenceEl,"trigger-target-el":c.triggerTargetEl,"show-after":v(r),strategy:c.strategy,teleported:c.teleported,transition:c.transition,"virtual-triggering":c.virtualTriggering,"z-index":c.zIndex,"append-to":c.appendTo},{default:G(()=>[ie(c.$slots,"content",{},()=>[c.rawContent?(j(),Oe("span",{key:0,innerHTML:c.content},null,8,ia)):(j(),Oe("span",sa,Xo(c.content),1))]),v(s)?(j(),oe(v(An),{key:0,"arrow-offset":c.arrowOffset},null,8,["arrow-offset"])):pe("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 ca=Q(ua,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const ma=rt(ca);export{da as E,Rn as O,ma as a,lt as b,wo as c,te as d,va as e,yo as u,fa as w};