1 |
- import{Q as v,f as M,Z as ft,bs as Et,aQ as Se,d as z,r as D,ah as ct,W as J,w as W,a5 as Ae,P as I,bt as Vt,a8 as $t,bu as Be,I as U,bv as X,bw as Bt,a9 as fe,B as Pe,am as Ht,bc as Q,a3 as Rt,a0 as ce,af as de,bj as kt,ap as Ft,aP as jt,aR as _t,bx as He,X as ue,aj as Z,by as It,a1 as Wt,T as Re,U as T,bz as zt,Y as Lt,bA as ke,a2 as Xt,bB as Yt,bC as oe,b0 as Ut,b3 as qt,bD as Fe,aX as pt,b2 as Gt,F as Qt,b as Zt,V as Kt,aO as Jt,aV as dt,ac as en,ay as tn,aZ as nn,ae as on,bE as rn,b7 as an}from"./offline.ee04b43a.js";var vt=["moz","ms","webkit"];function sn(){var n=0;return function(e){var t=new Date().getTime(),i=Math.max(0,16-(t-n)),o=window.setTimeout(function(){e(t+i)},i);return n=t+i,o}}function ln(){if(typeof window>"u")return function(){};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var n=vt.filter(function(e){return"".concat(e,"RequestAnimationFrame")in window})[0];return n?window["".concat(n,"RequestAnimationFrame")]:sn()}function un(n){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(n);var e=vt.filter(function(t){return"".concat(t,"CancelAnimationFrame")in window||"".concat(t,"CancelRequestAnimationFrame")in window})[0];return e?(window["".concat(e,"CancelAnimationFrame")]||window["".concat(e,"CancelRequestAnimationFrame")]).call(this,n):clearTimeout(n)}var je=ln(),fn=function(e){return un(e.id)},cn=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Date.now();function o(){Date.now()-i>=t?e.call():r.id=je(o)}var r={id:je(o)};return r},De={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},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},pn=v(v({},De),{},{mobile:{type:Object}}),dn=v(v({},De),{},{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function ht(n){var e=n.prefixCls,t=n.animation,i=n.transitionName;return t?{name:"".concat(e,"-").concat(t)}:i?{name:i}:{}}function gt(n){var e=n.prefixCls,t=n.visible,i=n.zIndex,o=n.mask,r=n.maskAnimation,a=n.maskTransitionName;if(!o)return null;var s={};return(a||r)&&(s=ht({prefixCls:e,transitionName:a,animation:r})),M(Se,v({appear:!0},s),{default:function(){return[ft(M("div",{style:{zIndex:i},class:"".concat(e,"-mask")},null),[[Et("if"),t]])]}})}gt.displayName="Mask";const vn=z({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:pn,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,t){var i=t.expose,o=t.slots,r=D();return i({forceAlign:function(){},getElement:function(){return r.value}}),function(){var a,s=e.zIndex,l=e.visible,u=e.prefixCls,f=e.mobile;f=f===void 0?{}:f;var m=f.popupClassName,c=f.popupStyle,d=f.popupMotion,g=d===void 0?{}:d,y=f.popupRender,S=v({zIndex:s},c),P=ct((a=o.default)===null||a===void 0?void 0:a.call(o));P.length>1&&(P=M("div",{class:"".concat(u,"-content")},[P])),y&&(P=y(P));var C=J(u,m);return M(Se,v({ref:r},g),{default:function(){return[l?M("div",{class:C,style:S},[P]):null]}})}}});var _e=["measure","align",null,"motion"];const hn=function(n,e){var t=D(null),i=D(),o=D(!1);function r(l){o.value||(t.value=l)}function a(){I.cancel(i.value)}function s(l){a(),i.value=I(function(){var u=t.value;switch(t.value){case"align":u="motion";break;case"motion":u="stable";break}r(u),l==null||l()})}return W(n,function(){r("measure")},{immediate:!0,flush:"post"}),Ae(function(){W(t,function(){switch(t.value){case"measure":e();break}t.value&&(i.value=I(Vt(Be.mark(function l(){var u,f;return Be.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:u=_e.indexOf(t.value),f=_e[u+1],f&&u!==-1&&r(f);case 3:case"end":return c.stop()}},l)}))))},{immediate:!0,flush:"post"})}),$t(function(){o.value=!0,a()}),[t,s]},gn=function(n){var e=D({width:0,height:0});function t(o){e.value={width:o.offsetWidth,height:o.offsetHeight}}var i=U(function(){var o={};if(n.value){var r=e.value,a=r.width,s=r.height;n.value.indexOf("height")!==-1&&s?o.height="".concat(s,"px"):n.value.indexOf("minHeight")!==-1&&s&&(o.minHeight="".concat(s,"px")),n.value.indexOf("width")!==-1&&a?o.width="".concat(a,"px"):n.value.indexOf("minWidth")!==-1&&a&&(o.minWidth="".concat(a,"px"))}return o});return[i,t]};function Ie(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,i)}return t}function We(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ie(Object(t),!0).forEach(function(i){mn(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Ie(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function Ce(n){return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(n)}function mn(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var G,yn={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function pe(){if(G!==void 0)return G;G="";var n=document.createElement("p").style,e="Transform";for(var t in yn)t+e in n&&(G=t);return G}function mt(){return pe()?"".concat(pe(),"TransitionProperty"):"transitionProperty"}function ve(){return pe()?"".concat(pe(),"Transform"):"transform"}function ze(n,e){var t=mt();t&&(n.style[t]=e,t!=="transitionProperty"&&(n.style.transitionProperty=e))}function me(n,e){var t=ve();t&&(n.style[t]=e,t!=="transform"&&(n.style.transform=e))}function bn(n){return n.style.transitionProperty||n.style[mt()]}function wn(n){var e=window.getComputedStyle(n,null),t=e.getPropertyValue("transform")||e.getPropertyValue(ve());if(t&&t!=="none"){var i=t.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(i[12]||i[4],0),y:parseFloat(i[13]||i[5],0)}}return{x:0,y:0}}var Pn=/matrix\((.*)\)/,Cn=/matrix3d\((.*)\)/;function Tn(n,e){var t=window.getComputedStyle(n,null),i=t.getPropertyValue("transform")||t.getPropertyValue(ve());if(i&&i!=="none"){var o,r=i.match(Pn);if(r)r=r[1],o=r.split(",").map(function(s){return parseFloat(s,10)}),o[4]=e.x,o[5]=e.y,me(n,"matrix(".concat(o.join(","),")"));else{var a=i.match(Cn)[1];o=a.split(",").map(function(s){return parseFloat(s,10)}),o[12]=e.x,o[13]=e.y,me(n,"matrix3d(".concat(o.join(","),")"))}}else me(n,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}var xn=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,te;function Le(n){var e=n.style.display;n.style.display="none",n.offsetHeight,n.style.display=e}function Y(n,e,t){var i=t;if(Ce(e)==="object"){for(var o in e)e.hasOwnProperty(o)&&Y(n,o,e[o]);return}if(typeof i<"u"){typeof i=="number"&&(i="".concat(i,"px")),n.style[e]=i;return}return te(n,e)}function On(n){var e,t,i,o=n.ownerDocument,r=o.body,a=o&&o.documentElement;return e=n.getBoundingClientRect(),t=Math.floor(e.left),i=Math.floor(e.top),t-=a.clientLeft||r.clientLeft||0,i-=a.clientTop||r.clientTop||0,{left:t,top:i}}function yt(n,e){var t=n["page".concat(e?"Y":"X","Offset")],i="scroll".concat(e?"Top":"Left");if(typeof t!="number"){var o=n.document;t=o.documentElement[i],typeof t!="number"&&(t=o.body[i])}return t}function bt(n){return yt(n)}function wt(n){return yt(n,!0)}function ee(n){var e=On(n),t=n.ownerDocument,i=t.defaultView||t.parentWindow;return e.left+=bt(i),e.top+=wt(i),e}function Me(n){return n!=null&&n==n.window}function Pt(n){return Me(n)?n.document:n.nodeType===9?n:n.ownerDocument}function Sn(n,e,t){var i=t,o="",r=Pt(n);return i=i||r.defaultView.getComputedStyle(n,null),i&&(o=i.getPropertyValue(e)||i[e]),o}var An=new RegExp("^(".concat(xn,")(?!px)[a-z%]+$"),"i"),Dn=/^(top|right|bottom|left)$/,ye="currentStyle",be="runtimeStyle",L="left",Mn="px";function Nn(n,e){var t=n[ye]&&n[ye][e];if(An.test(t)&&!Dn.test(e)){var i=n.style,o=i[L],r=n[be][L];n[be][L]=n[ye][L],i[L]=e==="fontSize"?"1em":t||0,t=i.pixelLeft+Mn,i[L]=o,n[be][L]=r}return t===""?"auto":t}typeof window<"u"&&(te=window.getComputedStyle?Sn:Nn);function re(n,e){return n==="left"?e.useCssRight?"right":n:e.useCssBottom?"bottom":n}function Xe(n){if(n==="left")return"right";if(n==="right")return"left";if(n==="top")return"bottom";if(n==="bottom")return"top"}function Ye(n,e,t){Y(n,"position")==="static"&&(n.style.position="relative");var i=-999,o=-999,r=re("left",t),a=re("top",t),s=Xe(r),l=Xe(a);r!=="left"&&(i=999),a!=="top"&&(o=999);var u="",f=ee(n);("left"in e||"top"in e)&&(u=bn(n)||"",ze(n,"none")),"left"in e&&(n.style[s]="",n.style[r]="".concat(i,"px")),"top"in e&&(n.style[l]="",n.style[a]="".concat(o,"px")),Le(n);var m=ee(n),c={};for(var d in e)if(e.hasOwnProperty(d)){var g=re(d,t),y=d==="left"?i:o,S=f[d]-m[d];g===d?c[g]=y+S:c[g]=y-S}Y(n,c),Le(n),("left"in e||"top"in e)&&ze(n,u);var P={};for(var C in e)if(e.hasOwnProperty(C)){var A=re(C,t),E=e[C]-f[C];C===A?P[A]=c[A]+E:P[A]=c[A]-E}Y(n,P)}function En(n,e){var t=ee(n),i=wn(n),o={x:i.x,y:i.y};"left"in e&&(o.x=i.x+e.left-t.left),"top"in e&&(o.y=i.y+e.top-t.top),Tn(n,o)}function Vn(n,e,t){if(t.ignoreShake){var i=ee(n),o=i.left.toFixed(0),r=i.top.toFixed(0),a=e.left.toFixed(0),s=e.top.toFixed(0);if(o===a&&r===s)return}t.useCssRight||t.useCssBottom?Ye(n,e,t):t.useCssTransform&&ve()in document.body.style?En(n,e):Ye(n,e,t)}function Ne(n,e){for(var t=0;t<n.length;t++)e(n[t])}function Ct(n){return te(n,"boxSizing")==="border-box"}var $n=["margin","border","padding"],Te=-1,Bn=2,xe=1,Hn=0;function Rn(n,e,t){var i={},o=n.style,r;for(r in e)e.hasOwnProperty(r)&&(i[r]=o[r],o[r]=e[r]);t.call(n);for(r in e)e.hasOwnProperty(r)&&(o[r]=i[r])}function K(n,e,t){var i=0,o,r,a;for(r=0;r<e.length;r++)if(o=e[r],o)for(a=0;a<t.length;a++){var s=void 0;o==="border"?s="".concat(o).concat(t[a],"Width"):s=o+t[a],i+=parseFloat(te(n,s))||0}return i}var F={getParent:function(e){var t=e;do t.nodeType===11&&t.host?t=t.host:t=t.parentNode;while(t&&t.nodeType!==1&&t.nodeType!==9);return t}};Ne(["Width","Height"],function(n){F["doc".concat(n)]=function(e){var t=e.document;return Math.max(t.documentElement["scroll".concat(n)],t.body["scroll".concat(n)],F["viewport".concat(n)](t))},F["viewport".concat(n)]=function(e){var t="client".concat(n),i=e.document,o=i.body,r=i.documentElement,a=r[t];return i.compatMode==="CSS1Compat"&&a||o&&o[t]||a}});function Ue(n,e,t){var i=t;if(Me(n))return e==="width"?F.viewportWidth(n):F.viewportHeight(n);if(n.nodeType===9)return e==="width"?F.docWidth(n):F.docHeight(n);var o=e==="width"?["Left","Right"]:["Top","Bottom"],r=Math.floor(e==="width"?n.getBoundingClientRect().width:n.getBoundingClientRect().height),a=Ct(n),s=0;(r==null||r<=0)&&(r=void 0,s=te(n,e),(s==null||Number(s)<0)&&(s=n.style[e]||0),s=Math.floor(parseFloat(s))||0),i===void 0&&(i=a?xe:Te);var l=r!==void 0||a,u=r||s;return i===Te?l?u-K(n,["border","padding"],o):s:l?i===xe?u:u+(i===Bn?-K(n,["border"],o):K(n,["margin"],o)):s+K(n,$n.slice(i),o)}var kn={position:"absolute",visibility:"hidden",display:"block"};function qe(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var i,o=e[0];return o.offsetWidth!==0?i=Ue.apply(void 0,e):Rn(o,kn,function(){i=Ue.apply(void 0,e)}),i}Ne(["width","height"],function(n){var e=n.charAt(0).toUpperCase()+n.slice(1);F["outer".concat(e)]=function(i,o){return i&&qe(i,n,o?Hn:xe)};var t=n==="width"?["Left","Right"]:["Top","Bottom"];F[n]=function(i,o){var r=o;if(r!==void 0){if(i){var a=Ct(i);return a&&(r+=K(i,["padding","border"],t)),Y(i,n,r)}return}return i&&qe(i,n,Te)}});function Tt(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}var h={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:Pt,offset:function(e,t,i){if(typeof t<"u")Vn(e,t,i||{});else return ee(e)},isWindow:Me,each:Ne,css:Y,clone:function(e){var t,i={};for(t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);var o=e.overflow;if(o)for(t in e)e.hasOwnProperty(t)&&(i.overflow[t]=e.overflow[t]);return i},mix:Tt,getWindowScrollLeft:function(e){return bt(e)},getWindowScrollTop:function(e){return wt(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)h.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};Tt(h,F);var we=h.getParent;function Oe(n){if(h.isWindow(n)||n.nodeType===9)return null;var e=h.getDocument(n),t=e.body,i,o=h.css(n,"position"),r=o==="fixed"||o==="absolute";if(!r)return n.nodeName.toLowerCase()==="html"?null:we(n);for(i=we(n);i&&i!==t&&i.nodeType!==9;i=we(i))if(o=h.css(i,"position"),o!=="static")return i;return null}var Ge=h.getParent;function Fn(n){if(h.isWindow(n)||n.nodeType===9)return!1;var e=h.getDocument(n),t=e.body,i=null;for(i=Ge(n);i&&i!==t&&i!==e;i=Ge(i)){var o=h.css(i,"position");if(o==="fixed")return!0}return!1}function Ee(n,e){for(var t={left:0,right:1/0,top:0,bottom:1/0},i=Oe(n),o=h.getDocument(n),r=o.defaultView||o.parentWindow,a=o.body,s=o.documentElement;i;){if((navigator.userAgent.indexOf("MSIE")===-1||i.clientWidth!==0)&&i!==a&&i!==s&&h.css(i,"overflow")!=="visible"){var l=h.offset(i);l.left+=i.clientLeft,l.top+=i.clientTop,t.top=Math.max(t.top,l.top),t.right=Math.min(t.right,l.left+i.clientWidth),t.bottom=Math.min(t.bottom,l.top+i.clientHeight),t.left=Math.max(t.left,l.left)}else if(i===a||i===s)break;i=Oe(i)}var u=null;if(!h.isWindow(n)&&n.nodeType!==9){u=n.style.position;var f=h.css(n,"position");f==="absolute"&&(n.style.position="fixed")}var m=h.getWindowScrollLeft(r),c=h.getWindowScrollTop(r),d=h.viewportWidth(r),g=h.viewportHeight(r),y=s.scrollWidth,S=s.scrollHeight,P=window.getComputedStyle(a);if(P.overflowX==="hidden"&&(y=r.innerWidth),P.overflowY==="hidden"&&(S=r.innerHeight),n.style&&(n.style.position=u),e||Fn(n))t.left=Math.max(t.left,m),t.top=Math.max(t.top,c),t.right=Math.min(t.right,m+d),t.bottom=Math.min(t.bottom,c+g);else{var C=Math.max(y,m+d);t.right=Math.min(t.right,C);var A=Math.max(S,c+g);t.bottom=Math.min(t.bottom,A)}return t.top>=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}function jn(n,e,t,i){var o=h.clone(n),r={width:e.width,height:e.height};return i.adjustX&&o.left<t.left&&(o.left=t.left),i.resizeWidth&&o.left>=t.left&&o.left+r.width>t.right&&(r.width-=o.left+r.width-t.right),i.adjustX&&o.left+r.width>t.right&&(o.left=Math.max(t.right-r.width,t.left)),i.adjustY&&o.top<t.top&&(o.top=t.top),i.resizeHeight&&o.top>=t.top&&o.top+r.height>t.bottom&&(r.height-=o.top+r.height-t.bottom),i.adjustY&&o.top+r.height>t.bottom&&(o.top=Math.max(t.bottom-r.height,t.top)),h.mix(o,r)}function Ve(n){var e,t,i;if(!h.isWindow(n)&&n.nodeType!==9)e=h.offset(n),t=h.outerWidth(n),i=h.outerHeight(n);else{var o=h.getWindow(n);e={left:h.getWindowScrollLeft(o),top:h.getWindowScrollTop(o)},t=h.viewportWidth(o),i=h.viewportHeight(o)}return e.width=t,e.height=i,e}function Qe(n,e){var t=e.charAt(0),i=e.charAt(1),o=n.width,r=n.height,a=n.left,s=n.top;return t==="c"?s+=r/2:t==="b"&&(s+=r),i==="c"?a+=o/2:i==="r"&&(a+=o),{left:a,top:s}}function ae(n,e,t,i,o){var r=Qe(e,t[1]),a=Qe(n,t[0]),s=[a.left-r.left,a.top-r.top];return{left:Math.round(n.left-s[0]+i[0]-o[0]),top:Math.round(n.top-s[1]+i[1]-o[1])}}function Ze(n,e,t){return n.left<t.left||n.left+e.width>t.right}function Ke(n,e,t){return n.top<t.top||n.top+e.height>t.bottom}function _n(n,e,t){return n.left>t.right||n.left+e.width<t.left}function In(n,e,t){return n.top>t.bottom||n.top+e.height<t.top}function se(n,e,t){var i=[];return h.each(n,function(o){i.push(o.replace(e,function(r){return t[r]}))}),i}function le(n,e){return n[e]=-n[e],n}function Je(n,e){var t;return/%$/.test(n)?t=parseInt(n.substring(0,n.length-1),10)/100*e:t=parseInt(n,10),t||0}function et(n,e){n[0]=Je(n[0],e.width),n[1]=Je(n[1],e.height)}function xt(n,e,t,i){var o=t.points,r=t.offset||[0,0],a=t.targetOffset||[0,0],s=t.overflow,l=t.source||n;r=[].concat(r),a=[].concat(a),s=s||{};var u={},f=0,m=!!(s&&s.alwaysByViewport),c=Ee(l,m),d=Ve(l);et(r,d),et(a,e);var g=ae(d,e,o,r,a),y=h.merge(d,g);if(c&&(s.adjustX||s.adjustY)&&i){if(s.adjustX&&Ze(g,d,c)){var S=se(o,/[lr]/gi,{l:"r",r:"l"}),P=le(r,0),C=le(a,0),A=ae(d,e,S,P,C);_n(A,d,c)||(f=1,o=S,r=P,a=C)}if(s.adjustY&&Ke(g,d,c)){var E=se(o,/[tb]/gi,{t:"b",b:"t"}),x=le(r,1),p=le(a,1),b=ae(d,e,E,x,p);In(b,d,c)||(f=1,o=E,r=x,a=p)}f&&(g=ae(d,e,o,r,a),h.mix(y,g));var N=Ze(g,d,c),O=Ke(g,d,c);if(N||O){var B=o;N&&(B=se(o,/[lr]/gi,{l:"r",r:"l"})),O&&(B=se(o,/[tb]/gi,{t:"b",b:"t"})),o=B,r=t.offset||[0,0],a=t.targetOffset||[0,0]}u.adjustX=s.adjustX&&N,u.adjustY=s.adjustY&&O,(u.adjustX||u.adjustY)&&(y=jn(g,d,c,u))}return y.width!==d.width&&h.css(l,"width",h.width(l)+y.width-d.width),y.height!==d.height&&h.css(l,"height",h.height(l)+y.height-d.height),h.offset(l,{left:y.left,top:y.top},{useCssRight:t.useCssRight,useCssBottom:t.useCssBottom,useCssTransform:t.useCssTransform,ignoreShake:t.ignoreShake}),{points:o,offset:r,targetOffset:a,overflow:u}}function Wn(n,e){var t=Ee(n,e),i=Ve(n);return!t||i.left+i.width<=t.left||i.top+i.height<=t.top||i.left>=t.right||i.top>=t.bottom}function $e(n,e,t){var i=t.target||e,o=Ve(i),r=!Wn(i,t.overflow&&t.overflow.alwaysByViewport);return xt(n,o,t,r)}$e.__getOffsetParent=Oe;$e.__getVisibleRectForElement=Ee;function zn(n,e,t){var i,o,r=h.getDocument(n),a=r.defaultView||r.parentWindow,s=h.getWindowScrollLeft(a),l=h.getWindowScrollTop(a),u=h.viewportWidth(a),f=h.viewportHeight(a);"pageX"in e?i=e.pageX:i=s+e.clientX,"pageY"in e?o=e.pageY:o=l+e.clientY;var m={left:i,top:o,width:0,height:0},c=i>=0&&i<=s+u&&o>=0&&o<=l+f,d=[t.points[0],"cc"];return xt(n,m,We(We({},t),{},{points:d}),c)}const Ln=function(n){if(!n)return!1;if(n.offsetParent)return!0;if(n.getBBox){var e=n.getBBox();if(e.width||e.height)return!0}if(n.getBoundingClientRect){var t=n.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function Xn(n,e){return n===e?!0:!n||!e?!1:"pageX"in e&&"pageY"in e?n.pageX===e.pageX&&n.pageY===e.pageY:"clientX"in e&&"clientY"in e?n.clientX===e.clientX&&n.clientY===e.clientY:!1}function Yn(n,e){n!==document.activeElement&&X(e,n)&&typeof n.focus=="function"&&n.focus()}function tt(n,e){var t=null,i=null;function o(a){var s=fe(a,1),l=s[0].target;if(!!document.documentElement.contains(l)){var u=l.getBoundingClientRect(),f=u.width,m=u.height,c=Math.floor(f),d=Math.floor(m);(t!==c||i!==d)&&Promise.resolve().then(function(){e({width:c,height:d})}),t=c,i=d}}var r=new Bt(o);return n&&r.observe(n),function(){r.disconnect()}}const Un=function(n,e){var t=!1,i=null;function o(){clearTimeout(i)}function r(a){if(!t||a===!0){if(n()===!1)return;t=!0,o(),i=setTimeout(function(){t=!1},e.value)}else o(),i=setTimeout(function(){t=!1,r()},e.value)}return[r,function(){t=!1,o()}]};var qn={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function nt(n){return typeof n!="function"?null:n()}function it(n){return de(n)!=="object"||!n?null:n}const Gn=z({compatConfig:{MODE:3},name:"Align",props:qn,emits:["align"],setup:function(e,t){var i=t.expose,o=t.slots,r=D({}),a=D(),s=Un(function(){var y=e.disabled,S=e.target,P=e.align,C=e.onAlign;if(!y&&S&&a.value){var A=a.value,E,x=nt(S),p=it(S);r.value.element=x,r.value.point=p,r.value.align=P;var b=document,N=b.activeElement;return x&&Ln(x)?E=$e(A,x,P):p&&(E=zn(A,p,P)),Yn(N,A),C&&E&&C(A,E),!0}return!1},U(function(){return e.monitorBufferTime})),l=fe(s,2),u=l[0],f=l[1],m=D({cancel:function(){}}),c=D({cancel:function(){}}),d=function(){var S=e.target,P=nt(S),C=it(S);a.value!==c.value.element&&(c.value.cancel(),c.value.element=a.value,c.value.cancel=tt(a.value,u)),(r.value.element!==P||!Xn(r.value.point,C)||!kt(r.value.align,e.align))&&(u(),m.value.element!==P&&(m.value.cancel(),m.value.element=P,m.value.cancel=tt(P,u)))};Ae(function(){Pe(function(){d()})}),Ht(function(){Pe(function(){d()})}),W(function(){return e.disabled},function(y){y?f():u()},{immediate:!0,flush:"post"});var g=D(null);return W(function(){return e.monitorWindowResize},function(y){y?g.value||(g.value=Q(window,"resize",u)):g.value&&(g.value.remove(),g.value=null)},{flush:"post"}),Rt(function(){m.value.cancel(),c.value.cancel(),g.value&&g.value.remove(),f()}),i({forceAlign:function(){return u(!0)}}),function(){var y=o==null?void 0:o.default();return y?ce(y[0],{ref:a},!0,!0):null}}}),Qn=z({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:De,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,t){var i=t.expose,o=t.attrs,r=t.slots,a=D(),s=D(),l=D(),u=gn(Ft(e,"stretch")),f=fe(u,2),m=f[0],c=f[1],d=function(){e.stretch&&c(e.getRootDomNode())},g=D(!1),y;W(function(){return e.visible},function(w){clearTimeout(y),w?y=setTimeout(function(){g.value=e.visible}):g.value=!1},{immediate:!0});var S=hn(g,d),P=fe(S,2),C=P[0],A=P[1],E=D(),x=function(){return e.point?e.point:e.getRootDomNode},p=function(){var V;(V=a.value)===null||V===void 0||V.forceAlign()},b=function(V,$){var k=e.getClassNameFromAlign($),q=l.value;if(l.value!==k&&(l.value=k),C.value==="align"){var j;q!==k?Promise.resolve().then(function(){p()}):A(function(){var _;(_=E.value)===null||_===void 0||_.call(E)}),(j=e.onAlign)===null||j===void 0||j.call(e,V,$)}},N=U(function(){var w=de(e.animation)==="object"?e.animation:ht(e);return["onAfterEnter","onAfterLeave"].forEach(function(V){var $=w[V];w[V]=function(k){A(),C.value="stable",$==null||$(k)}}),w}),O=function(){return new Promise(function(V){E.value=V})};W([N,C],function(){!N.value&&C.value==="motion"&&A()},{immediate:!0}),i({forceAlign:p,getElement:function(){return s.value.$el||s.value}});var B=U(function(){var w;return!((w=e.align)!==null&&w!==void 0&&w.points&&(C.value==="align"||C.value==="stable"))});return function(){var w,V=e.zIndex,$=e.align,k=e.prefixCls,q=e.destroyPopupOnHide,j=e.onMouseenter,_=e.onMouseleave,ne=e.onTouchstart,he=ne===void 0?function(){}:ne,St=e.onMousedown,ge=C.value,At=[v(v({},m.value),{},{zIndex:V,opacity:ge==="motion"||ge==="stable"||!g.value?null:0,pointerEvents:!g.value&&ge!=="stable"?"none":null}),o.style],ie=ct((w=r.default)===null||w===void 0?void 0:w.call(r,{visible:e.visible}));ie.length>1&&(ie=M("div",{class:"".concat(k,"-content")},[ie]));var Dt=J(k,o.class,l.value),Mt=g.value||!e.visible,Nt=Mt?jt(N.value.name,N.value):{};return M(Se,v(v({ref:s},Nt),{},{onBeforeEnter:O}),{default:function(){return!q||e.visible?ft(M(Gn,{target:x(),key:"popup",ref:a,monitorWindowResize:!0,disabled:B.value,align:$,onAlign:b},{default:function(){return M("div",v(v({class:Dt,onMouseenter:j,onMouseleave:_,onMousedown:He(St,["capture"])},ue({},Z?"onTouchstartPassive":"onTouchstart",He(he,["capture"]))),{},{style:At}),[ie])}}),[[_t,g.value]]):null}})}}}),Zn=z({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:dn,setup:function(e,t){var i=t.attrs,o=t.slots,r=t.expose,a=D(!1),s=D(!1),l=D();return W([function(){return e.visible},function(){return e.mobile}],function(){a.value=e.visible,e.visible&&e.mobile&&(s.value=!0)},{immediate:!0,flush:"post"}),r({forceAlign:function(){var f;(f=l.value)===null||f===void 0||f.forceAlign()},getElement:function(){var f;return(f=l.value)===null||f===void 0?void 0:f.getElement()}}),function(){var u=v(v(v({},e),i),{},{visible:a.value}),f=s.value?M(vn,v(v({},u),{},{mobile:e.mobile,ref:l}),{default:o.default}):M(Qn,v(v({},u),{},{ref:l}),{default:o.default});return M("div",null,[M(gt,u,null),f])}}});function Kn(n,e,t){return t?n[0]===e[0]:n[0]===e[0]&&n[1]===e[1]}function ot(n,e,t){var i=n[e]||{};return v(v({},i),t)}function Jn(n,e,t,i){for(var o=t.points,r=Object.keys(n),a=0;a<r.length;a+=1){var s=r[a];if(Kn(n[s].points,o,i))return"".concat(e,"-placement-").concat(s)}return""}const ei={methods:{setState:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,i=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){var o=this.getDerivedStateFromProps(It(this),v(v({},this.$data),i));if(o===null)return;i=v(v({},i),o||{})}Wt(this.$data,i),this._.isMounted&&this.$forceUpdate(),Pe(function(){t&&t()})},__emit:function(){var e=[].slice.call(arguments,0),t=e[0];t="on".concat(t[0].toUpperCase()).concat(t.substring(1));var i=this.$props[t]||this.$attrs[t];if(e.length&&i)if(Array.isArray(i))for(var o=0,r=i.length;o<r;o++)i[o].apply(i,Re(e.slice(1)));else i.apply(void 0,Re(e.slice(1)))}}};function rt(){}function ti(){return""}function ni(n){return n?n.ownerDocument:window.document}var ii=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"];const oi=z({compatConfig:{MODE:3},name:"Trigger",mixins:[ei],inheritAttrs:!1,props:{action:T.oneOfType([T.string,T.arrayOf(T.string)]).def([]),showAction:T.any.def([]),hideAction:T.any.def([]),getPopupClassNameFromAlign:T.any.def(ti),onPopupVisibleChange:Function,afterPopupVisibleChange:T.func.def(rt),popup:T.any,popupStyle:{type:Object,default:void 0},prefixCls:T.string.def("rc-trigger-popup"),popupClassName:T.string.def(""),popupPlacement:String,builtinPlacements:T.object,popupTransitionName:String,popupAnimation:T.any,mouseEnterDelay:T.number.def(0),mouseLeaveDelay:T.number.def(.1),zIndex:Number,focusDelay:T.number.def(0),blurDelay:T.number.def(.15),getPopupContainer:Function,getDocument:T.func.def(ni),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:T.object.def(function(){return{}}),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,tryPopPortal:Boolean},setup:function(e){var t=U(function(){var l=e.popupPlacement,u=e.popupAlign,f=e.builtinPlacements;return l&&f?ot(f,l,u):u}),i=zt(e.tryPopPortal),o=i.setPortal,r=i.popPortal,a=D(null),s=function(u){a.value=u};return{popPortal:r,setPortal:o,vcTriggerContext:Lt("vcTriggerContext",{}),popupRef:a,setPopupRef:s,triggerRef:D(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data:function(){var e=this,t,i=this.$props,o;return this.popupVisible!==void 0?o=!!i.popupVisible:o=!!i.defaultPopupVisible,ii.forEach(function(r){e["fire".concat(r)]=function(a){e.fireEvents(r,a)}}),(t=this.setPortal)===null||t===void 0||t.call(this,M(ke,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent})),{prevPopupVisible:o,sPopupVisible:o,point:null}},watch:{popupVisible:function(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created:function(){Xt("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown}),Yt(this)},deactivated:function(){this.setPopupVisible(!1)},mounted:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},updated:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},beforeUnmount:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),I.cancel(this.attachId)},methods:{updatedCal:function(){var e=this.$props,t=this.$data;if(t.sPopupVisible){var i;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(i=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Q(i,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(i=i||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Q(i,"touchstart",this.onDocumentClick,Z?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(i=i||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Q(i,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Q(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter:function(e){var t=this.$props.mouseEnterDelay;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove:function(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave:function(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter:function(){this.clearDelayTimer()},onPopupMouseleave:function(e){var t;e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&X((t=this.popupRef)===null||t===void 0?void 0:t.getElement(),e.relatedTarget)||this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onFocus:function(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown:function(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart:function(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur:function(e){X(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu:function(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose:function(){this.isContextmenuToShow()&&this.close()},onClick:function(e){if(this.fireEvents("onClick",e),this.focusTime){var t;if(this.preClickTime&&this.preTouchTime?t=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?t=this.preClickTime:this.preTouchTime&&(t=this.preTouchTime),Math.abs(t-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();var i=!this.$data.sPopupVisible;(this.isClickToHide()&&!i||i&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown:function(){var e=this,t=this.vcTriggerContext,i=t===void 0?{}:t;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(function(){e.hasPopupMouseDown=!1},0),i.onPopupMouseDown&&i.onPopupMouseDown.apply(i,arguments)},onDocumentClick:function(e){if(!(this.$props.mask&&!this.$props.maskClosable)){var t=e.target,i=this.getRootDomNode(),o=this.getPopupDomNode();(!X(i,t)||this.isContextMenuOnly())&&!X(o,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)}},getPopupDomNode:function(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode:function(){var e=this.$props.getTriggerDOMNode;if(e){var t=oe(this.triggerRef);return oe(e(t))}try{var i=oe(this.triggerRef);if(i)return i}catch{}return oe(this)},handleGetPopupClassFromAlign:function(e){var t=[],i=this.$props,o=i.popupPlacement,r=i.builtinPlacements,a=i.prefixCls,s=i.alignPoint,l=i.getPopupClassNameFromAlign;return o&&r&&t.push(Jn(r,a,e,s)),l&&t.push(l(e)),t.join(" ")},getPopupAlign:function(){var e=this.$props,t=e.popupPlacement,i=e.popupAlign,o=e.builtinPlacements;return t&&o?ot(o,t,i):i},getComponent:function(){var e=this,t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[Z?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;var i=this.handleGetPopupClassFromAlign,o=this.getRootDomNode,r=this.getContainer,a=this.$attrs,s=this.$props,l=s.prefixCls,u=s.destroyPopupOnHide,f=s.popupClassName,m=s.popupAnimation,c=s.popupTransitionName,d=s.popupStyle,g=s.mask,y=s.maskAnimation,S=s.maskTransitionName,P=s.zIndex,C=s.stretch,A=s.alignPoint,E=s.mobile,x=s.forceRender,p=this.$data,b=p.sPopupVisible,N=p.point,O=v(v({prefixCls:l,destroyPopupOnHide:u,visible:b,point:A?N:null,align:this.align,animation:m,getClassNameFromAlign:i,stretch:C,getRootDomNode:o,mask:g,zIndex:P,transitionName:c,maskAnimation:y,maskTransitionName:S,getContainer:r,class:f,style:d,onAlign:a.onPopupAlign||rt},t),{},{ref:this.setPopupRef,mobile:E,forceRender:x});return M(Zn,O,{default:this.$slots.popup||function(){return Ut(e,"popup")}})},attachParent:function(e){var t=this;I.cancel(this.attachId);var i=this.$props,o=i.getPopupContainer,r=i.getDocument,a=this.getRootDomNode(),s;o?(a||o.length===0)&&(s=o(a)):s=r(this.getRootDomNode()).body,s?s.appendChild(e):this.attachId=I(function(){t.attachParent(e)})},getContainer:function(){var e=this.$props,t=e.getDocument,i=t(this.getRootDomNode()).createElement("div");return i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.width="100%",this.attachParent(i),i},setPopupVisible:function(e,t){var i=this.alignPoint,o=this.sPopupVisible,r=this.onPopupVisibleChange;this.clearDelayTimer(),o!==e&&(qt(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:o}),r&&r(e)),i&&t&&e&&this.setPoint(t)},setPoint:function(e){var t=this.$props.alignPoint;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate:function(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible:function(e,t,i){var o=this,r=t*1e3;if(this.clearDelayTimer(),r){var a=i?{pageX:i.pageX,pageY:i.pageY}:null;this.delayTimer=cn(function(){o.setPopupVisible(e,a),o.clearDelayTimer()},r)}else this.setPopupVisible(e,i)},clearDelayTimer:function(){this.delayTimer&&(fn(this.delayTimer),this.delayTimer=null)},clearOutsideHandler:function(){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:function(e){var t=function(){},i=Fe(this);return this.childOriginEvents[e]&&i[e]?this["fire".concat(e)]:(t=this.childOriginEvents[e]||i[e]||t,t)},isClickToShow:function(){var e=this.$props,t=e.action,i=e.showAction;return t.indexOf("click")!==-1||i.indexOf("click")!==-1},isContextMenuOnly:function(){var e=this.$props.action;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow:function(){var e=this.$props,t=e.action,i=e.showAction;return t.indexOf("contextmenu")!==-1||i.indexOf("contextmenu")!==-1},isClickToHide:function(){var e=this.$props,t=e.action,i=e.hideAction;return t.indexOf("click")!==-1||i.indexOf("click")!==-1},isMouseEnterToShow:function(){var e=this.$props,t=e.action,i=e.showAction;return t.indexOf("hover")!==-1||i.indexOf("mouseenter")!==-1},isMouseLeaveToHide:function(){var e=this.$props,t=e.action,i=e.hideAction;return t.indexOf("hover")!==-1||i.indexOf("mouseleave")!==-1},isFocusToShow:function(){var e=this.$props,t=e.action,i=e.showAction;return t.indexOf("focus")!==-1||i.indexOf("focus")!==-1},isBlurToHide:function(){var e=this.$props,t=e.action,i=e.hideAction;return t.indexOf("focus")!==-1||i.indexOf("blur")!==-1},forcePopupAlign:function(){if(this.$data.sPopupVisible){var e;(e=this.popupRef)===null||e===void 0||e.forceAlign()}},fireEvents:function(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);var i=this.$props[e]||this.$attrs[e];i&&i(t)},close:function(){this.setPopupVisible(!1)}},render:function(){var e=this,t=this.$attrs,i=pt(Gt(this)),o=this.$props.alignPoint,r=i[0];this.childOriginEvents=Fe(r);var a={key:"trigger"};this.isContextmenuToShow()?a.onContextmenu=this.onContextmenu:a.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(a.onClick=this.onClick,a.onMousedown=this.onMousedown,a[Z?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(a.onClick=this.createTwoChains("onClick"),a.onMousedown=this.createTwoChains("onMousedown"),a[Z?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(a.onMouseenter=this.onMouseenter,o&&(a.onMousemove=this.onMouseMove)):a.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?a.onMouseleave=this.onMouseleave:a.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(a.onFocus=this.onFocus,a.onBlur=this.onBlur):(a.onFocus=this.createTwoChains("onFocus"),a.onBlur=function(f){f&&(!f.relatedTarget||!X(f.target,f.relatedTarget))&&e.createTwoChains("onBlur")(f)});var s=J(r&&r.props&&r.props.class,t.class);s&&(a.class=s);var l=ce(r,v(v({},a),{},{ref:"triggerRef"}),!0,!0);if(this.popPortal)return l;var u=M(ke,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent});return M(Qt,null,[u,l])}});var H={adjustX:1,adjustY:1},R=[0,0],Ot={left:{points:["cr","cl"],overflow:H,offset:[-4,0],targetOffset:R},right:{points:["cl","cr"],overflow:H,offset:[4,0],targetOffset:R},top:{points:["bc","tc"],overflow:H,offset:[0,-4],targetOffset:R},bottom:{points:["tc","bc"],overflow:H,offset:[0,4],targetOffset:R},topLeft:{points:["bl","tl"],overflow:H,offset:[0,-4],targetOffset:R},leftTop:{points:["tr","tl"],overflow:H,offset:[-4,0],targetOffset:R},topRight:{points:["br","tr"],overflow:H,offset:[0,-4],targetOffset:R},rightTop:{points:["tl","tr"],overflow:H,offset:[4,0],targetOffset:R},bottomRight:{points:["tr","br"],overflow:H,offset:[0,4],targetOffset:R},rightBottom:{points:["bl","br"],overflow:H,offset:[4,0],targetOffset:R},bottomLeft:{points:["tl","bl"],overflow:H,offset:[0,4],targetOffset:R},leftBottom:{points:["br","bl"],overflow:H,offset:[-4,0],targetOffset:R}},ri={prefixCls:String,id:String,overlayInnerStyle:T.any};const ai=z({compatConfig:{MODE:3},name:"Content",props:ri,slots:["overlay"],setup:function(e,t){var i=t.slots;return function(){var o;return M("div",{class:"".concat(e.prefixCls,"-inner"),id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(o=i.overlay)===null||o===void 0?void 0:o.call(i)])}}});var si=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"];function at(){}const li=z({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:T.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:T.string.def("right"),transitionName:String,animation:T.any,afterVisibleChange:T.func.def(function(){}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:T.string.def("rc-tooltip"),mouseEnterDelay:T.number.def(.1),mouseLeaveDelay:T.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:T.object.def(function(){return{}}),arrowContent:T.any.def(null),tipId:String,builtinPlacements:T.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},slots:["arrowContent","overlay"],setup:function(e,t){var i=t.slots,o=t.attrs,r=t.expose,a=D(),s=function(){var c=e.prefixCls,d=e.tipId,g=e.overlayInnerStyle;return[M("div",{class:"".concat(c,"-arrow"),key:"arrow"},[Jt(i,e,"arrowContent")]),M(ai,{key:"content",prefixCls:c,id:d,overlayInnerStyle:g},{overlay:i.overlay})]},l=function(){return a.value.getPopupDomNode()};r({getPopupDomNode:l,triggerDOM:a,forcePopupAlign:function(){var c;return(c=a.value)===null||c===void 0?void 0:c.forcePopupAlign()}});var u=D(!1),f=D(!1);return Zt(function(){var m=e.destroyTooltipOnHide;if(typeof m=="boolean")u.value=m;else if(m&&de(m)==="object"){var c=m.keepParent;u.value=c===!0,f.value=c===!1}}),function(){var m=e.overlayClassName,c=e.trigger,d=e.mouseEnterDelay,g=e.mouseLeaveDelay,y=e.overlayStyle,S=e.prefixCls,P=e.afterVisibleChange,C=e.transitionName,A=e.animation,E=e.placement,x=e.align;e.destroyTooltipOnHide;var p=e.defaultVisible,b=Kt(e,si),N=v({},b);e.visible!==void 0&&(N.popupVisible=e.visible);var O=v(v(v({popupClassName:m,prefixCls:S,action:c,builtinPlacements:Ot,popupPlacement:E,popupAlign:x,afterPopupVisibleChange:P,popupTransitionName:C,popupAnimation:A,defaultPopupVisible:p,destroyPopupOnHide:u.value,autoDestroy:f.value,mouseLeaveDelay:g,popupStyle:y,mouseEnterDelay:d},N),o),{},{onPopupVisibleChange:e.onVisibleChange||at,onPopupAlign:e.onPopupAlign||at,ref:a,popup:s()});return M(oi,O,{default:i.default})}}});dt("success","processing","error","default","warning");var ui=dt("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");const fi=function(){return{trigger:[String,Array],visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:{type:Object,default:void 0},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:{type:Object,default:void 0},builtinPlacements:{type:Object,default:void 0},children:Array,onVisibleChange:Function,"onUpdate:visible":Function}};var ci={adjustX:1,adjustY:1},st={adjustX:0,adjustY:0},pi=[0,0];function lt(n){return typeof n=="boolean"?n?ci:st:v(v({},st),n)}function di(n){var e=n.arrowWidth,t=e===void 0?4:e,i=n.horizontalArrowShift,o=i===void 0?16:i,r=n.verticalArrowShift,a=r===void 0?8:r,s=n.autoAdjustOverflow,l=n.arrowPointAtCenter,u={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:[-(o+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(a+t)]},topRight:{points:["br","tc"],offset:[o+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(a+t)]},bottomRight:{points:["tr","bc"],offset:[o+t,4]},rightBottom:{points:["bl","cr"],offset:[4,a+t]},bottomLeft:{points:["tl","bc"],offset:[-(o+t),4]},leftBottom:{points:["br","cl"],offset:[-4,a+t]}};return Object.keys(u).forEach(function(f){u[f]=l?v(v({},u[f]),{},{overflow:lt(s),targetOffset:pi}):v(v({},Ot[f]),{},{overflow:lt(s)}),u[f].ignoreShake=!0}),u}function vi(){for(var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=0,t=n.length;e<t;e++)if(n[e]!==void 0)return n[e]}var hi=function(e,t){var i={},o=v({},e);return t.forEach(function(r){e&&r in e&&(i[r]=e[r],delete o[r])}),{picked:i,omitted:o}},ut=new RegExp("^(".concat(ui.join("|"),")(-inverse)?$")),gi=function(){return v(v({},fi()),{},{title:T.any})};const mi=z({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:en(gi(),{trigger:"hover",transitionName:"zoom-big-fast",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:["title"],setup:function(e,t){var i=t.slots,o=t.emit,r=t.attrs,a=t.expose,s=tn("tooltip",e),l=s.prefixCls,u=s.getPopupContainer,f=D(vi([e.visible,e.defaultVisible])),m=D();Ae(function(){nn(e.defaultVisible===void 0,"Tooltip","'defaultVisible' is deprecated, please use 'v-model:visible'")});var c;W(function(){return e.visible},function(x){I.cancel(c),c=I(function(){f.value=!!x})});var d=function(){var p,b=(p=e.title)!==null&&p!==void 0?p:i.title;return!b&&b!==0},g=function(p){var b=d();e.visible===void 0&&(f.value=b?!1:p),b||(o("update:visible",p),o("visibleChange",p))},y=function(){return m.value.getPopupDomNode()};a({getPopupDomNode:y,visible:f,forcePopupAlign:function(){var p;return(p=m.value)===null||p===void 0?void 0:p.forcePopupAlign()}});var S=U(function(){var x=e.builtinPlacements,p=e.arrowPointAtCenter,b=e.autoAdjustOverflow;return x||di({arrowPointAtCenter:p,autoAdjustOverflow:b})}),P=function(p){return p||p===""},C=function(p){var b=p.type;if(de(b)==="object"&&p.props&&((b.__ANT_BUTTON===!0||b==="button")&&P(p.props.disabled)||b.__ANT_SWITCH===!0&&(P(p.props.disabled)||P(p.props.loading)))){var N=hi(rn(p),["position","left","right","top","bottom","float","display","zIndex"]),O=N.picked,B=N.omitted,w=v(v({display:"inline-block"},O),{},{cursor:"not-allowed",lineHeight:1,width:p.props&&p.props.block?"100%":null}),V=v(v({},B),{},{pointerEvents:"none"}),$=ce(p,{style:V},!0);return M("span",{style:w,class:"".concat(l.value,"-disabled-compatible-wrapper")},[$])}return p},A=function(){var p,b;return(p=e.title)!==null&&p!==void 0?p:(b=i.title)===null||b===void 0?void 0:b.call(i)},E=function(p,b){var N=S.value,O=Object.keys(N).find(function(V){return N[V].points[0]===b.points[0]&&N[V].points[1]===b.points[1]});if(!!O){var B=p.getBoundingClientRect(),w={top:"50%",left:"50%"};O.indexOf("top")>=0||O.indexOf("Bottom")>=0?w.top="".concat(B.height-b.offset[1],"px"):(O.indexOf("Top")>=0||O.indexOf("bottom")>=0)&&(w.top="".concat(-b.offset[1],"px")),O.indexOf("left")>=0||O.indexOf("Right")>=0?w.left="".concat(B.width-b.offset[0],"px"):(O.indexOf("right")>=0||O.indexOf("Left")>=0)&&(w.left="".concat(-b.offset[0],"px")),p.style.transformOrigin="".concat(w.left," ").concat(w.top)}};return function(){var x,p,b,N=e.openClassName,O=e.color,B=e.overlayClassName,w=(x=pt((p=i.default)===null||p===void 0?void 0:p.call(i)))!==null&&x!==void 0?x:null;w=w.length===1?w[0]:w;var V=f.value;if(e.visible===void 0&&d()&&(V=!1),!w)return null;var $=C(on(w)?w:M("span",null,[w])),k=J((b={},ue(b,N||"".concat(l.value,"-open"),!0),ue(b,$.props&&$.props.class,$.props&&$.props.class),b)),q=J(B,ue({},"".concat(l.value,"-").concat(O),O&&ut.test(O))),j,_;O&&!ut.test(O)&&(j={backgroundColor:O},_={"--antd-arrow-background-color":O});var ne=v(v(v({},r),e),{},{prefixCls:l.value,getPopupContainer:u.value,builtinPlacements:S.value,visible:V,ref:m,overlayClassName:q,overlayInnerStyle:j,onVisibleChange:g,onPopupAlign:E});return M(li,ne,{default:function(){return[f.value?ce($,{class:k}):$]},arrowContent:function(){return M("span",{class:"".concat(l.value,"-arrow-content"),style:_},null)},overlay:A})}}}),Pi=an(mi);export{ei as B,oi as T,Pi as a,vi as f,di as g,Ln as i,gi as t};
|