import{aL as w,aC as v,bM as ue,D as x,U as Et,aJ as L,a6 as ce,aj as ke,d as Y,r as F,bN as fe,aI as Q,s as D,a0 as X,o as pe,bv as z,e as Ve,l as j,bO as Z,bP as Be,af as Ct,bQ as He,bR as et,ag as je,bq as dt,bS as We,b9 as Ie,a7 as Fe,bT as Ht,bU as ot,bV as Le,bb as de,bW as ze,bX as jt,bY as Xe,a1 as Ye,bZ as Ue,b_ as qe,b$ as st,aa as Ge,c0 as Ze,aU as Ke,bc as Qe,bx as Je,aR as at,a$ as to,b0 as he,c1 as eo,b7 as oo,aE as no,b1 as io,c2 as ro,c3 as so,aK as ao,c4 as lo,c5 as uo}from"./CE4SaZgW.js";import{i as co}from"./DFL6LqjW.js";import{i as fo,g as po}from"./CDDBg3Y_.js";var ve=(function(){if(typeof Map<"u")return Map;function t(o,e){var n=-1;return o.some(function(i,r){return i[0]===e?(n=r,!0):!1}),n}return(function(){function o(){this.__entries__=[]}return Object.defineProperty(o.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),o.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},o.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},o.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},o.prototype.has=function(e){return!!~t(this.__entries__,e)},o.prototype.clear=function(){this.__entries__.splice(0)},o.prototype.forEach=function(e,n){n===void 0&&(n=null);for(var i=0,r=this.__entries__;i0},t.prototype.connect_=function(){!xt||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),yo?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!xt||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(o){var e=o.propertyName,n=e===void 0?"":e,i=bo.some(function(r){return!!~n.indexOf(r)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t})(),me=(function(t,o){for(var e=0,n=Object.keys(o);e"u"||!(Element instanceof Object))){if(!(o instanceof J(o).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(o)||(e.set(o,new Mo(o)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(o){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(o instanceof J(o).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(o)&&(e.delete(o),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var o=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&o.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var o=this.callbackCtx_,e=this.activeObservations_.map(function(n){return new Do(n.target,n.broadcastRect())});this.callback_.call(o,e,o),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t})(),be=typeof WeakMap<"u"?new WeakMap:new ve,ye=(function(){function t(o){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=wo.getInstance(),n=new Eo(o,e,this);be.set(this,n)}return t})();["observe","unobserve","disconnect"].forEach(function(t){ye.prototype[t]=function(){var o;return(o=be.get(this))[t].apply(o,arguments)}});var Ao=(function(){return typeof ht.ResizeObserver<"u"?ht.ResizeObserver:ye})();const $o=(t,o,e,n,i)=>{const r=t/2,s=0,a=r,l=e*1/Math.sqrt(2),u=r-e*(1-1/Math.sqrt(2)),f=r-o*(1/Math.sqrt(2)),p=e*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),d=2*r-f,c=p,m=2*r-l,y=u,_=2*r-s,C=a,T=r*Math.sqrt(2)+e*(Math.sqrt(2)-2),P=e*(Math.sqrt(2)-1);return{pointerEvents:"none",width:t,height:t,overflow:"hidden","&::after":{content:'""',position:"absolute",width:T,height:T,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${o}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:t/2,background:n,clipPath:{_multi_value_:!0,value:[`polygon(${P}px 100%, 50% ${P}px, ${2*r-P}px 100%, ${P}px 100%)`,`path('M ${s} ${a} A ${e} ${e} 0 0 0 ${l} ${u} L ${f} ${p} A ${o} ${o} 0 0 1 ${d} ${c} L ${m} ${y} A ${e} ${e} 0 0 0 ${_} ${C} Z')`]},content:'""'}}};function Ro(){return""}function No(t){return t?t.ownerDocument:window.document}function we(){}const ko=()=>({action:w.oneOfType([w.string,w.arrayOf(w.string)]).def([]),showAction:w.any.def([]),hideAction:w.any.def([]),getPopupClassNameFromAlign:w.any.def(Ro),onPopupVisibleChange:Function,afterPopupVisibleChange:w.func.def(we),popup:w.any,popupStyle:{type:Object,default:void 0},prefixCls:w.string.def("rc-trigger-popup"),popupClassName:w.string.def(""),popupPlacement:String,builtinPlacements:w.object,popupTransitionName:String,popupAnimation:w.any,mouseEnterDelay:w.number.def(0),mouseLeaveDelay:w.number.def(.1),zIndex:Number,focusDelay:w.number.def(0),blurDelay:w.number.def(.15),getPopupContainer:Function,getDocument:w.func.def(No),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:w.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),At={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},Vo=v(v({},At),{mobile:{type:Object}}),Bo=v(v({},At),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Oe(t){const{prefixCls:o,visible:e,zIndex:n,mask:i,maskAnimation:r,maskTransitionName:s}=t;if(!i)return null;let a={};return(s||r)&&(a=ue({prefixCls:o,transitionName:s,animation:r})),x(Et,L({appear:!0},a),{default:()=>[ce(x("div",{style:{zIndex:n},class:`${o}-mask`},null),[[ke("if"),e]])]})}Oe.displayName="Mask";const Ho=Y({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:Vo,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,o){let{expose:e,slots:n}=o;const i=F();return e({forceAlign:()=>{},getElement:()=>i.value}),()=>{var r;const{zIndex:s,visible:a,prefixCls:l,mobile:{popupClassName:u,popupStyle:f,popupMotion:p={},popupRender:d}={}}=t,c=v({zIndex:s},f);let m=fe((r=n.default)===null||r===void 0?void 0:r.call(n));m.length>1&&(m=x("div",{class:`${l}-content`},[m])),d&&(m=d(m));const y=Q(l,u);return x(Et,L({ref:i},p),{default:()=>[a?x("div",{class:y,style:c},[m]):null]})}}});var jo=function(t,o,e,n){function i(r){return r instanceof e?r:new e(function(s){s(r)})}return new(e||(e=Promise))(function(r,s){function a(f){try{u(n.next(f))}catch(p){s(p)}}function l(f){try{u(n.throw(f))}catch(p){s(p)}}function u(f){f.done?r(f.value):i(f.value).then(a,l)}u((n=n.apply(t,o||[])).next())})};const It=["measure","align",null,"motion"],Wo=((t,o)=>{const e=D(null),n=D(),i=D(!1);function r(l){i.value||(e.value=l)}function s(){z.cancel(n.value)}function a(l){s(),n.value=z(()=>{let u=e.value;switch(e.value){case"align":u="motion";break;case"motion":u="stable";break}r(u),l?.()})}return X(t,()=>{r("measure")},{immediate:!0,flush:"post"}),pe(()=>{X(e,()=>{e.value==="measure"&&o(),e.value&&(n.value=z(()=>jo(void 0,void 0,void 0,function*(){const l=It.indexOf(e.value),u=It[l+1];u&&l!==-1&&r(u)})))},{immediate:!0,flush:"post"})}),Ve(()=>{i.value=!0,s()}),[e,a]}),Io=(t=>{const o=D({width:0,height:0});function e(i){o.value={width:i.offsetWidth,height:i.offsetHeight}}return[j(()=>{const i={};if(t.value){const{width:r,height:s}=o.value;t.value.indexOf("height")!==-1&&s?i.height=`${s}px`:t.value.indexOf("minHeight")!==-1&&s&&(i.minHeight=`${s}px`),t.value.indexOf("width")!==-1&&r?i.width=`${r}px`:t.value.indexOf("minWidth")!==-1&&r&&(i.minWidth=`${r}px`)}return i}),e]});function Ft(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);o&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function Lt(t){for(var o=1;o=0&&e.left>=0&&e.bottom>e.top&&e.right>e.left?e:null}function fn(t,o,e,n){var i=g.clone(t),r={width:o.width,height:o.height};return n.adjustX&&i.left=e.left&&i.left+r.width>e.right&&(r.width-=i.left+r.width-e.right),n.adjustX&&i.left+r.width>e.right&&(i.left=Math.max(e.right-r.width,e.left)),n.adjustY&&i.top=e.top&&i.top+r.height>e.bottom&&(r.height-=i.top+r.height-e.bottom),n.adjustY&&i.top+r.height>e.bottom&&(i.top=Math.max(e.bottom-r.height,e.top)),g.mix(i,r)}function kt(t){var o,e,n;if(!g.isWindow(t)&&t.nodeType!==9)o=g.offset(t),e=g.outerWidth(t),n=g.outerHeight(t);else{var i=g.getWindow(t);o={left:g.getWindowScrollLeft(i),top:g.getWindowScrollTop(i)},e=g.viewportWidth(i),n=g.viewportHeight(i)}return o.width=e,o.height=n,o}function Kt(t,o){var e=o.charAt(0),n=o.charAt(1),i=t.width,r=t.height,s=t.left,a=t.top;return e==="c"?a+=r/2:e==="b"&&(a+=r),n==="c"?s+=i/2:n==="r"&&(s+=i),{left:s,top:a}}function ut(t,o,e,n,i){var r=Kt(o,e[1]),s=Kt(t,e[0]),a=[s.left-r.left,s.top-r.top];return{left:Math.round(t.left-a[0]+n[0]-i[0]),top:Math.round(t.top-a[1]+n[1]-i[1])}}function Qt(t,o,e){return t.lefte.right}function Jt(t,o,e){return t.tope.bottom}function pn(t,o,e){return t.left>e.right||t.left+o.widthe.bottom||t.top+o.height=e.right||n.top>=e.bottom}function Vt(t,o,e){var n=e.target||o,i=kt(n),r=!hn(n,e.overflow&&e.overflow.alwaysByViewport);return De(t,i,e,r)}Vt.__getOffsetParent=Dt;Vt.__getVisibleRectForElement=Nt;function vn(t,o,e){var n,i,r=g.getDocument(t),s=r.defaultView||r.parentWindow,a=g.getWindowScrollLeft(s),l=g.getWindowScrollTop(s),u=g.viewportWidth(s),f=g.viewportHeight(s);"pageX"in o?n=o.pageX:n=a+o.clientX,"pageY"in o?i=o.pageY:i=l+o.clientY;var p={left:n,top:i,width:0,height:0},d=n>=0&&n<=a+u&&i>=0&&i<=l+f,c=[e.points[0],"cc"];return De(t,p,Lt(Lt({},e),{},{points:c}),d)}function mn(t,o){return t===o?!0:!t||!o?!1:"pageX"in o&&"pageY"in o?t.pageX===o.pageX&&t.pageY===o.pageY:"clientX"in o&&"clientY"in o?t.clientX===o.clientX&&t.clientY===o.clientY:!1}function gn(t,o){t!==document.activeElement&&Z(o,t)&&typeof t.focus=="function"&&t.focus()}function oe(t,o){let e=null,n=null;function i(s){let[{target:a}]=s;if(!document.documentElement.contains(a))return;const{width:l,height:u}=a.getBoundingClientRect(),f=Math.floor(l),p=Math.floor(u);(e!==f||n!==p)&&Promise.resolve().then(()=>{o({width:f,height:p})}),e=f,n=p}const r=new Ao(i);return t&&r.observe(t),()=>{r.disconnect()}}const bn=((t,o)=>{let e=!1,n=null;function i(){clearTimeout(n)}function r(s){if(!e||s===!0){if(t()===!1)return;e=!0,i(),n=setTimeout(()=>{e=!1},o.value)}else i(),n=setTimeout(()=>{e=!1,r()},o.value)}return[r,()=>{e=!1,i()}]}),yn={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function ne(t){return typeof t!="function"?null:t()}function ie(t){return typeof t!="object"||!t?null:t}const wn=Y({compatConfig:{MODE:3},name:"Align",props:yn,emits:["align"],setup(t,o){let{expose:e,slots:n}=o;const i=F({}),r=F(),[s,a]=bn(()=>{const{disabled:d,target:c,align:m,onAlign:y}=t;if(!d&&c&&r.value){const _=r.value;let C;const T=ne(c),P=ie(c);i.value.element=T,i.value.point=P,i.value.align=m;const{activeElement:$}=document;return T&&Be(T)?C=Vt(_,T,m):P&&(C=vn(_,P,m)),gn($,_),y&&C&&y(_,C),!0}return!1},j(()=>t.monitorBufferTime)),l=F({cancel:()=>{}}),u=F({cancel:()=>{}}),f=()=>{const d=t.target,c=ne(d),m=ie(d);r.value!==u.value.element&&(u.value.cancel(),u.value.element=r.value,u.value.cancel=oe(r.value,s)),(i.value.element!==c||!mn(i.value.point,m)||!co(i.value.align,t.align))&&(s(),l.value.element!==c&&(l.value.cancel(),l.value.element=c,l.value.cancel=oe(c,s)))};pe(()=>{Ct(()=>{f()})}),He(()=>{Ct(()=>{f()})}),X(()=>t.disabled,d=>{d?a():s()},{immediate:!0,flush:"post"});const p=F(null);return X(()=>t.monitorWindowResize,d=>{d?p.value||(p.value=et(window,"resize",s)):p.value&&(p.value.remove(),p.value=null)},{flush:"post"}),je(()=>{l.value.cancel(),u.value.cancel(),p.value&&p.value.remove(),a()}),e({forceAlign:()=>s(!0)}),()=>{const d=n?.default();return d?dt(d[0],{ref:r},!0,!0):null}}}),On=Y({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:At,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,o){let{expose:e,attrs:n,slots:i}=o;const r=D(),s=D(),a=D(),[l,u]=Io(We(t,"stretch")),f=()=>{t.stretch&&u(t.getRootDomNode())},p=D(!1);let d;X(()=>t.visible,O=>{clearTimeout(d),O?d=setTimeout(()=>{p.value=t.visible}):p.value=!1},{immediate:!0});const[c,m]=Wo(p,f),y=D(),_=()=>t.point?t.point:t.getRootDomNode,C=()=>{var O;(O=r.value)===null||O===void 0||O.forceAlign()},T=(O,N)=>{var S;const A=t.getClassNameFromAlign(N),h=a.value;a.value!==A&&(a.value=A),c.value==="align"&&(h!==A?Promise.resolve().then(()=>{C()}):m(()=>{var b;(b=y.value)===null||b===void 0||b.call(y)}),(S=t.onAlign)===null||S===void 0||S.call(t,O,N))},P=j(()=>{const O=typeof t.animation=="object"?t.animation:ue(t);return["onAfterEnter","onAfterLeave"].forEach(N=>{const S=O[N];O[N]=A=>{m(),c.value="stable",S?.(A)}}),O}),$=()=>new Promise(O=>{y.value=O});X([P,c],()=>{!P.value&&c.value==="motion"&&m()},{immediate:!0}),e({forceAlign:C,getElement:()=>s.value.$el||s.value});const U=j(()=>{var O;return!(!((O=t.align)===null||O===void 0)&&O.points&&(c.value==="align"||c.value==="stable"))});return()=>{var O;const{zIndex:N,align:S,prefixCls:A,destroyPopupOnHide:h,onMouseenter:b,onMouseleave:B,onTouchstart:R=()=>{},onMousedown:H}=t,M=c.value,E=[v(v({},l.value),{zIndex:N,opacity:M==="motion"||M==="stable"||!p.value?null:0,pointerEvents:!p.value&&M!=="stable"?"none":null}),n.style];let q=fe((O=i.default)===null||O===void 0?void 0:O.call(i,{visible:t.visible}));q.length>1&&(q=x("div",{class:`${A}-content`},[q]));const I=Q(A,n.class,a.value),yt=p.value||!t.visible?Ie(P.value.name,P.value):{};return x(Et,L(L({ref:s},yt),{},{onBeforeEnter:$}),{default:()=>!h||t.visible?ce(x(wn,{target:_(),key:"popup",ref:r,monitorWindowResize:!0,disabled:U.value,align:S,onAlign:T},{default:()=>x("div",{class:I,onMouseenter:b,onMouseleave:B,onMousedown:Ht(H,["capture"]),[ot?"onTouchstartPassive":"onTouchstart"]:Ht(R,["capture"]),style:E},[q])}),[[Fe,p.value]]):null})}}}),Tn=Y({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:Bo,setup(t,o){let{attrs:e,slots:n,expose:i}=o;const r=D(!1),s=D(!1),a=D(),l=D();return X([()=>t.visible,()=>t.mobile],()=>{r.value=t.visible,t.visible&&t.mobile&&(s.value=!0)},{immediate:!0,flush:"post"}),i({forceAlign:()=>{var u;(u=a.value)===null||u===void 0||u.forceAlign()},getElement:()=>{var u;return(u=a.value)===null||u===void 0?void 0:u.getElement()}}),()=>{const u=v(v(v({},t),e),{visible:r.value}),f=s.value?x(Ho,L(L({},u),{},{mobile:t.mobile,ref:a}),{default:n.default}):x(On,L(L({},u),{},{ref:a}),{default:n.default});return x("div",{ref:l},[x(Oe,u,null),f])}}});function Pn(t,o,e){return e?t[0]===o[0]:t[0]===o[0]&&t[1]===o[1]}function re(t,o,e){const n=t[o]||{};return v(v({},n),e)}function Cn(t,o,e,n){const{points:i}=e,r=Object.keys(t);for(let s=0;s0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,e=typeof t=="function"?t(this.$data,this.$props):t;if(this.getDerivedStateFromProps){const n=this.getDerivedStateFromProps(Le(this),v(v({},this.$data),e));if(n===null)return;e=v(v({},e),n||{})}v(this.$data,e),this._.isMounted&&this.$forceUpdate(),Ct(()=>{o&&o()})},__emit(){const t=[].slice.call(arguments,0);let o=t[0];o=`on${o[0].toUpperCase()}${o.substring(1)}`;const e=this.$props[o]||this.$attrs[o];if(t.length&&e)if(Array.isArray(e))for(let n=0,i=e.length;n{const{popupPlacement:i,popupAlign:r,builtinPlacements:s}=t;return i&&s?re(s,i,r):r}),e=D(null),n=i=>{e.value=i};return{vcTriggerContext:Ke("vcTriggerContext",{}),popupRef:e,setPopupRef:n,triggerRef:D(null),align:o,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const t=this.$props;let o;return this.popupVisible!==void 0?o=!!t.popupVisible:o=!!t.defaultPopupVisible,_n.forEach(e=>{this[`fire${e}`]=n=>{this.fireEvents(e,n)}}),{prevPopupVisible:o,sPopupVisible:o,point:null}},watch:{popupVisible(t){t!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=t)}},created(){Ge("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),Ze(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),z.cancel(this.attachId)},methods:{updatedCal(){const t=this.$props;if(this.$data.sPopupVisible){let e;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=et(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=et(e,"touchstart",this.onDocumentClick,ot?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=et(e,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=et(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(t){const{mouseEnterDelay:o}=this.$props;this.fireEvents("onMouseenter",t),this.delaySetPopupVisible(!0,o,o?null:t)},onMouseMove(t){this.fireEvents("onMousemove",t),this.setPoint(t)},onMouseleave(t){this.fireEvents("onMouseleave",t),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:t={}}=this;t.onPopupMouseenter&&t.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(t){var o;if(t&&t.relatedTarget&&!t.relatedTarget.setTimeout&&Z((o=this.popupRef)===null||o===void 0?void 0:o.getElement(),t.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:e={}}=this;e.onPopupMouseleave&&e.onPopupMouseleave(t)},onFocus(t){this.fireEvents("onFocus",t),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(t){this.fireEvents("onMousedown",t),this.preClickTime=Date.now()},onTouchstart(t){this.fireEvents("onTouchstart",t),this.preTouchTime=Date.now()},onBlur(t){Z(t.target,t.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",t),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(t){t.preventDefault(),this.fireEvents("onContextmenu",t),this.setPopupVisible(!0,t)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(t){if(this.fireEvents("onClick",t),this.focusTime){let e;if(this.preClickTime&&this.preTouchTime?e=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?e=this.preClickTime:this.preTouchTime&&(e=this.preTouchTime),Math.abs(e-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault(),t&&t.domEvent&&t.domEvent.preventDefault();const o=!this.$data.sPopupVisible;(this.isClickToHide()&&!o||o&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,t)},onPopupMouseDown(){const{vcTriggerContext:t={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),t.onPopupMouseDown&&t.onPopupMouseDown(...arguments)},onDocumentClick(t){if(this.$props.mask&&!this.$props.maskClosable)return;const o=t.target,e=this.getRootDomNode(),n=this.getPopupDomNode();(!Z(e,o)||this.isContextMenuOnly())&&!Z(n,o)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var t;return((t=this.popupRef)===null||t===void 0?void 0:t.getElement())||null},getRootDomNode(){var t,o,e,n;const{getTriggerDOMNode:i}=this.$props;if(i){const r=((o=(t=this.triggerRef)===null||t===void 0?void 0:t.$el)===null||o===void 0?void 0:o.nodeName)==="#comment"?null:st(this.triggerRef);return st(i(r))}try{const r=((n=(e=this.triggerRef)===null||e===void 0?void 0:e.$el)===null||n===void 0?void 0:n.nodeName)==="#comment"?null:st(this.triggerRef);if(r)return r}catch{}return st(this)},handleGetPopupClassFromAlign(t){const o=[],e=this.$props,{popupPlacement:n,builtinPlacements:i,prefixCls:r,alignPoint:s,getPopupClassNameFromAlign:a}=e;return n&&i&&o.push(Cn(i,r,t,s)),a&&o.push(a(t)),o.join(" ")},getPopupAlign(){const t=this.$props,{popupPlacement:o,popupAlign:e,builtinPlacements:n}=t;return o&&n?re(n,o,e):e},getComponent(){const t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[ot?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:o,getRootDomNode:e,$attrs:n}=this,{prefixCls:i,destroyPopupOnHide:r,popupClassName:s,popupAnimation:a,popupTransitionName:l,popupStyle:u,mask:f,maskAnimation:p,maskTransitionName:d,zIndex:c,stretch:m,alignPoint:y,mobile:_,forceRender:C}=this.$props,{sPopupVisible:T,point:P}=this.$data,$=v(v({prefixCls:i,destroyPopupOnHide:r,visible:T,point:y?P:null,align:this.align,animation:a,getClassNameFromAlign:o,stretch:m,getRootDomNode:e,mask:f,zIndex:c,transitionName:l,maskAnimation:p,maskTransitionName:d,class:s,style:u,onAlign:n.onPopupAlign||we},t),{ref:this.setPopupRef,mobile:_,forceRender:C});return x(Tn,$,{default:this.$slots.popup||(()=>qe(this,"popup"))})},attachParent(t){z.cancel(this.attachId);const{getPopupContainer:o,getDocument:e}=this.$props,n=this.getRootDomNode();let i;o?(n||o.length===0)&&(i=o(n)):i=e(this.getRootDomNode()).body,i?i.appendChild(t):this.attachId=z(()=>{this.attachParent(t)})},getContainer(){const{$props:t}=this,{getDocument:o}=t,e=o(this.getRootDomNode()).createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",this.attachParent(e),e},setPopupVisible(t,o){const{alignPoint:e,sPopupVisible:n,onPopupVisibleChange:i}=this;this.clearDelayTimer(),n!==t&&(Ue(this,"popupVisible")||this.setState({sPopupVisible:t,prevPopupVisible:n}),i&&i(t)),e&&o&&t&&this.setPoint(o)},setPoint(t){const{alignPoint:o}=this.$props;!o||!t||this.setState({point:{pageX:t.pageX,pageY:t.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(t,o,e){const n=o*1e3;if(this.clearDelayTimer(),n){const i=e?{pageX:e.pageX,pageY:e.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(t,i),this.clearDelayTimer()},n)}else this.setPopupVisible(t,e)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(t){let o=()=>{};const e=jt(this);return this.childOriginEvents[t]&&e[t]?this[`fire${t}`]:(o=this.childOriginEvents[t]||e[t]||o,o)},isClickToShow(){const{action:t,showAction:o}=this.$props;return t.indexOf("click")!==-1||o.indexOf("click")!==-1},isContextMenuOnly(){const{action:t}=this.$props;return t==="contextmenu"||t.length===1&&t[0]==="contextmenu"},isContextmenuToShow(){const{action:t,showAction:o}=this.$props;return t.indexOf("contextmenu")!==-1||o.indexOf("contextmenu")!==-1},isClickToHide(){const{action:t,hideAction:o}=this.$props;return t.indexOf("click")!==-1||o.indexOf("click")!==-1},isMouseEnterToShow(){const{action:t,showAction:o}=this.$props;return t.indexOf("hover")!==-1||o.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:t,hideAction:o}=this.$props;return t.indexOf("hover")!==-1||o.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:t,showAction:o}=this.$props;return t.indexOf("focus")!==-1||o.indexOf("focus")!==-1},isBlurToHide(){const{action:t,hideAction:o}=this.$props;return t.indexOf("focus")!==-1||o.indexOf("blur")!==-1},forcePopupAlign(){var t;this.$data.sPopupVisible&&((t=this.popupRef)===null||t===void 0||t.forceAlign())},fireEvents(t,o){this.childOriginEvents[t]&&this.childOriginEvents[t](o);const e=this.$props[t]||this.$attrs[t];e&&e(o)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:t}=this,o=de(ze(this)),{alignPoint:e,getPopupContainer:n}=this.$props,i=o[0];this.childOriginEvents=jt(i);const r={key:"trigger"};this.isContextmenuToShow()?r.onContextmenu=this.onContextmenu:r.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(r.onClick=this.onClick,r.onMousedown=this.onMousedown,r[ot?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(r.onClick=this.createTwoChains("onClick"),r.onMousedown=this.createTwoChains("onMousedown"),r[ot?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(r.onMouseenter=this.onMouseenter,e&&(r.onMousemove=this.onMouseMove)):r.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?r.onMouseleave=this.onMouseleave:r.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(r.onFocus=this.onFocus,r.onBlur=this.onBlur):(r.onFocus=this.createTwoChains("onFocus"),r.onBlur=u=>{u&&(!u.relatedTarget||!Z(u.target,u.relatedTarget))&&this.createTwoChains("onBlur")(u)});const s=Q(i&&i.props&&i.props.class,t.class);s&&(r.class=s);const a=dt(i,v(v({},r),{ref:"triggerRef"}),!0,!0),l=x(Xe,{key:"portal",getContainer:n&&(()=>n(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return x(Ye,null,[a,l])}}),k={adjustX:1,adjustY:1},V=[0,0],Ee={left:{points:["cr","cl"],overflow:k,offset:[-4,0],targetOffset:V},right:{points:["cl","cr"],overflow:k,offset:[4,0],targetOffset:V},top:{points:["bc","tc"],overflow:k,offset:[0,-4],targetOffset:V},bottom:{points:["tc","bc"],overflow:k,offset:[0,4],targetOffset:V},topLeft:{points:["bl","tl"],overflow:k,offset:[0,-4],targetOffset:V},leftTop:{points:["tr","tl"],overflow:k,offset:[-4,0],targetOffset:V},topRight:{points:["br","tr"],overflow:k,offset:[0,-4],targetOffset:V},rightTop:{points:["tl","tr"],overflow:k,offset:[4,0],targetOffset:V},bottomRight:{points:["tr","br"],overflow:k,offset:[0,4],targetOffset:V},rightBottom:{points:["bl","br"],overflow:k,offset:[4,0],targetOffset:V},bottomLeft:{points:["tl","bl"],overflow:k,offset:[0,4],targetOffset:V},leftBottom:{points:["br","bl"],overflow:k,offset:[-4,0],targetOffset:V}},Mn={prefixCls:String,id:String,overlayInnerStyle:w.any},Dn=Y({compatConfig:{MODE:3},name:"TooltipContent",props:Mn,setup(t,o){let{slots:e}=o;return()=>{var n;return x("div",{class:`${t.prefixCls}-inner`,id:t.id,role:"tooltip",style:t.overlayInnerStyle},[(n=e.overlay)===null||n===void 0?void 0:n.call(e)])}}});var En=function(t,o){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&o.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:w.string.def("rc-tooltip"),mouseEnterDelay:w.number.def(.1),mouseLeaveDelay:w.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:w.object.def(()=>({})),arrowContent:w.any.def(null),tipId:String,builtinPlacements:w.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},setup(t,o){let{slots:e,attrs:n,expose:i}=o;const r=D(),s=()=>{const{prefixCls:f,tipId:p,overlayInnerStyle:d}=t;return[x("div",{class:`${f}-arrow`,key:"arrow"},[Je(e,t,"arrowContent")]),x(Dn,{key:"content",prefixCls:f,id:p,overlayInnerStyle:d},{overlay:e.overlay})]};i({getPopupDomNode:()=>r.value.getPopupDomNode(),triggerDOM:r,forcePopupAlign:()=>{var f;return(f=r.value)===null||f===void 0?void 0:f.forcePopupAlign()}});const l=D(!1),u=D(!1);return Qe(()=>{const{destroyTooltipOnHide:f}=t;if(typeof f=="boolean")l.value=f;else if(f&&typeof f=="object"){const{keepParent:p}=f;l.value=p===!0,u.value=p===!1}}),()=>{const{overlayClassName:f,trigger:p,mouseEnterDelay:d,mouseLeaveDelay:c,overlayStyle:m,prefixCls:y,afterVisibleChange:_,transitionName:C,animation:T,placement:P,align:$,destroyTooltipOnHide:U,defaultVisible:O}=t,N=En(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),S=v({},N);t.visible!==void 0&&(S.popupVisible=t.visible);const A=v(v(v({popupClassName:f,prefixCls:y,action:p,builtinPlacements:Ee,popupPlacement:P,popupAlign:$,afterPopupVisibleChange:_,popupTransitionName:C,popupAnimation:T,defaultPopupVisible:O,destroyPopupOnHide:l.value,autoDestroy:u.value,mouseLeaveDelay:c,popupStyle:m,mouseEnterDelay:d},S),n),{onPopupVisibleChange:t.onVisibleChange||se,onPopupAlign:t.onPopupAlign||se,ref:r,popup:s()});return x(Sn,A,{default:e.default})}}}),$n=(()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:at(),overlayInnerStyle:at(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:at(),builtinPlacements:at(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function})),Rn={adjustX:1,adjustY:1},ae={adjustX:0,adjustY:0},Nn=[0,0];function le(t){return typeof t=="boolean"?t?Rn:ae:v(v({},ae),t)}function kn(t){const{arrowWidth:o=4,horizontalArrowShift:e=16,verticalArrowShift:n=8,autoAdjustOverflow:i,arrowPointAtCenter:r}=t,s={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(e+o),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(n+o)]},topRight:{points:["br","tc"],offset:[e+o,-4]},rightTop:{points:["tl","cr"],offset:[4,-(n+o)]},bottomRight:{points:["tr","bc"],offset:[e+o,4]},rightBottom:{points:["bl","cr"],offset:[4,n+o]},bottomLeft:{points:["tl","bc"],offset:[-(e+o),4]},leftBottom:{points:["br","cl"],offset:[-4,n+o]}};return Object.keys(s).forEach(a=>{s[a]=r?v(v({},s[a]),{overflow:le(i),targetOffset:Nn}):v(v({},Ee[a]),{overflow:le(i)}),s[a].ignoreShake=!0}),s}function Vn(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let o=0,e=t.length;o1&&arguments[1]!==void 0?arguments[1]:"";return t.map(e=>`${o}${e}`).join(",")}const Ae=8;function Hn(t){const o=Ae,{sizePopupArrow:e,contentRadius:n,borderRadiusOuter:i,limitVerticalRadius:r}=t,s=e/2-Math.ceil(i*(Math.sqrt(2)-1)),a=(n>12?n+2:12)-s,l=r?o-s:a;return{dropdownArrowOffset:a,dropdownArrowOffsetVertical:l}}function jn(t,o){const{componentCls:e,sizePopupArrow:n,marginXXS:i,borderRadiusXS:r,borderRadiusOuter:s,boxShadowPopoverArrow:a}=t,{colorBg:l,showArrowCls:u,contentRadius:f=t.borderRadiusLG,limitVerticalRadius:p}=o,{dropdownArrowOffsetVertical:d,dropdownArrowOffset:c}=Hn({sizePopupArrow:n,contentRadius:f,borderRadiusOuter:s,limitVerticalRadius:p}),m=n/2+i;return{[e]:{[`${e}-arrow`]:[v(v({position:"absolute",zIndex:1,display:"block"},$o(n,r,s,l,a)),{"&:before":{background:l}})],[[`&-placement-top ${e}-arrow`,`&-placement-topLeft ${e}-arrow`,`&-placement-topRight ${e}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${e}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${e}-arrow`]:{left:{_skip_check_:!0,value:c}},[`&-placement-topRight ${e}-arrow`]:{right:{_skip_check_:!0,value:c}},[[`&-placement-bottom ${e}-arrow`,`&-placement-bottomLeft ${e}-arrow`,`&-placement-bottomRight ${e}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${e}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${e}-arrow`]:{left:{_skip_check_:!0,value:c}},[`&-placement-bottomRight ${e}-arrow`]:{right:{_skip_check_:!0,value:c}},[[`&-placement-left ${e}-arrow`,`&-placement-leftTop ${e}-arrow`,`&-placement-leftBottom ${e}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${e}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${e}-arrow`]:{top:d},[`&-placement-leftBottom ${e}-arrow`]:{bottom:d},[[`&-placement-right ${e}-arrow`,`&-placement-rightTop ${e}-arrow`,`&-placement-rightBottom ${e}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${e}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${e}-arrow`]:{top:d},[`&-placement-rightBottom ${e}-arrow`]:{bottom:d},[pt(["&-placement-topLeft","&-placement-top","&-placement-topRight"],u)]:{paddingBottom:m},[pt(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"],u)]:{paddingTop:m},[pt(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"],u)]:{paddingRight:{_skip_check_:!0,value:m}},[pt(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"],u)]:{paddingLeft:{_skip_check_:!0,value:m}}}}}const Wn=t=>{const{componentCls:o,tooltipMaxWidth:e,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:r,zIndexPopup:s,controlHeight:a,boxShadowSecondary:l,paddingSM:u,paddingXS:f,tooltipRadiusOuter:p}=t;return[{[o]:v(v(v(v({},oo(t)),{position:"absolute",zIndex:s,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:e,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${o}-inner`]:{minWidth:a,minHeight:a,padding:`${u/2}px ${f}px`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:r,boxShadow:l},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:Math.min(r,Ae)}},[`${o}-content`]:{position:"relative"}}),po(t,(d,c)=>{let{darkColor:m}=c;return{[`&${o}-${d}`]:{[`${o}-inner`]:{backgroundColor:m},[`${o}-arrow`]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},jn(he(t,{borderRadiusOuter:p}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:r,limitVerticalRadius:!0}),{[`${o}-pure`]:{position:"relative",maxWidth:"none"}}]},In=((t,o)=>to("Tooltip",n=>{if(o?.value===!1)return[];const{borderRadius:i,colorTextLightSolid:r,colorBgDefault:s,borderRadiusOuter:a}=n,l=he(n,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:i,tooltipBg:s,tooltipRadiusOuter:a>4?4:a});return[Wn(l),eo(n,"zoom-big-fast")]},n=>{let{zIndexPopupBase:i,colorBgSpotlight:r}=n;return{zIndexPopup:i+70,colorBgDefault:r}})(t)),Fn=(t,o)=>{const e={},n=v({},t);return o.forEach(i=>{t&&i in t&&(e[i]=t[i],delete n[i])}),{picked:e,omitted:n}},Ln=()=>v(v({},$n()),{title:w.any}),qn=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),zn=Y({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:ao(Ln(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(t,o){let{slots:e,emit:n,attrs:i,expose:r}=o;const{prefixCls:s,getPopupContainer:a,direction:l,rootPrefixCls:u}=no("tooltip",t),f=j(()=>{var h;return(h=t.open)!==null&&h!==void 0?h:t.visible}),p=F(Vn([t.open,t.visible])),d=F();let c;X(f,h=>{z.cancel(c),c=z(()=>{p.value=!!h})});const m=()=>{var h;const b=(h=t.title)!==null&&h!==void 0?h:e.title;return!b&&b!==0},y=h=>{const b=m();f.value===void 0&&(p.value=b?!1:h),b||(n("update:visible",h),n("visibleChange",h),n("update:open",h),n("openChange",h))};r({getPopupDomNode:()=>d.value.getPopupDomNode(),open:p,forcePopupAlign:()=>{var h;return(h=d.value)===null||h===void 0?void 0:h.forcePopupAlign()}});const C=j(()=>{const{builtinPlacements:h,arrowPointAtCenter:b,autoAdjustOverflow:B}=t;return h||kn({arrowPointAtCenter:b,autoAdjustOverflow:B})}),T=h=>h||h==="",P=h=>{const b=h.type;if(typeof b=="object"&&h.props&&((b.__ANT_BUTTON===!0||b==="button")&&T(h.props.disabled)||b.__ANT_SWITCH===!0&&(T(h.props.disabled)||T(h.props.loading))||b.__ANT_RADIO===!0&&T(h.props.disabled))){const{picked:B,omitted:R}=Fn(lo(h),["position","left","right","top","bottom","float","display","zIndex"]),H=v(v({display:"inline-block"},B),{cursor:"not-allowed",lineHeight:1,width:h.props&&h.props.block?"100%":void 0}),M=v(v({},R),{pointerEvents:"none"}),E=dt(h,{style:M},!0);return x("span",{style:H,class:`${s.value}-disabled-compatible-wrapper`},[E])}return h},$=()=>{var h,b;return(h=t.title)!==null&&h!==void 0?h:(b=e.title)===null||b===void 0?void 0:b.call(e)},U=(h,b)=>{const B=C.value,R=Object.keys(B).find(H=>{var M,E;return B[H].points[0]===((M=b.points)===null||M===void 0?void 0:M[0])&&B[H].points[1]===((E=b.points)===null||E===void 0?void 0:E[1])});if(R){const H=h.getBoundingClientRect(),M={top:"50%",left:"50%"};R.indexOf("top")>=0||R.indexOf("Bottom")>=0?M.top=`${H.height-b.offset[1]}px`:(R.indexOf("Top")>=0||R.indexOf("bottom")>=0)&&(M.top=`${-b.offset[1]}px`),R.indexOf("left")>=0||R.indexOf("Right")>=0?M.left=`${H.width-b.offset[0]}px`:(R.indexOf("right")>=0||R.indexOf("Left")>=0)&&(M.left=`${-b.offset[0]}px`),h.style.transformOrigin=`${M.left} ${M.top}`}},O=j(()=>Bn(s.value,t.color)),N=j(()=>i["data-popover-inject"]),[S,A]=In(s,j(()=>!N.value));return()=>{var h,b;const{openClassName:B,overlayClassName:R,overlayStyle:H,overlayInnerStyle:M}=t;let E=(b=de((h=e.default)===null||h===void 0?void 0:h.call(e)))!==null&&b!==void 0?b:null;E=E.length===1?E[0]:E;let q=p.value;if(f.value===void 0&&m()&&(q=!1),!E)return null;const I=P(io(E)&&!ro(E)?E:x("span",null,[E])),Bt=Q({[B||`${s.value}-open`]:!0,[I.props&&I.props.class]:I.props&&I.props.class}),yt=Q(R,{[`${s.value}-rtl`]:l.value==="rtl"},O.value.className,A.value),$e=v(v({},O.value.overlayStyle),M),Re=O.value.arrowStyle,Ne=v(v(v({},i),t),{prefixCls:s.value,getPopupContainer:a?.value,builtinPlacements:C.value,visible:q,ref:d,overlayClassName:yt,overlayStyle:v(v({},Re),H),overlayInnerStyle:$e,onVisibleChange:y,onPopupAlign:U,transitionName:so(u.value,"zoom-big-fast",t.transitionName)});return S(x(An,Ne,{default:()=>[p.value?dt(I,{class:Bt}):I],arrowContent:()=>x("span",{class:`${s.value}-arrow-content`},null),overlay:$}))}}}),Gn=uo(zn);export{xn as B,Sn as T,Gn as _,$n as a,Ln as b,Vn as f,jn as g,Ao as i,$o as r,qn as t};