Files
machartaa_admin_dist/dist/assets/index-36614f01.js
T
2025-10-06 15:42:41 +03:30

2 lines
52 KiB
JavaScript

import{l as c,b as x,c6 as Nt,bu as on,az as We,d as L,r as A,s as Et,y as G,h as K,i as ze,H as rn,ci as et,g as B,cf as Ce,n as _e,ad as an,v as Rt,_ as xe,bJ as un,cj as ln,b_ as sn,Z as tt,k as we,cX as fn,I as cn,E as nt,P as T,A as $t,C as Vt,cQ as pe,cv as vn,cu as dn,cY as it,q as Ft,cL as pn,F as hn,x as oe,c1 as mn,j as gn,f as yn,cs as wn,cl as bn,cZ as Cn,m as Pn}from"./index-be457ac4.js";import{_ as Tn,V as xn,c as Pe,E as On,R as _t}from"./styleChecker-7765134f.js";import{d as ie,a as le,s as se,f as Sn,c as ot,e as An,P as Dn}from"./colors-a7645274.js";import{w as q,i as Mn}from"./raf-cdd2e009.js";var Bt=["moz","ms","webkit"];function Nn(){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 En(){if(typeof window>"u")return function(){};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var n=Bt.filter(function(e){return"".concat(e,"RequestAnimationFrame")in window})[0];return n?window["".concat(n,"RequestAnimationFrame")]:Nn()}function Rn(n){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(n);var e=Bt.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 rt=En(),$n=function(e){return Rn(e.id)},Vn=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=rt(o)}var r={id:rt(o)};return r},Le={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}},Fn=c(c({},Le),{},{mobile:{type:Object}}),_n=c(c({},Le),{},{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 It(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 u={};return(a||r)&&(u=Ht({prefixCls:e,transitionName:a,animation:r})),x(We,c({appear:!0},u),{default:function(){return[Nt(x("div",{style:{zIndex:i},class:"".concat(e,"-mask")},null),[[on("if"),t]])]}})}It.displayName="Mask";const Bn=L({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:Fn,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,t){var i=t.expose,o=t.slots,r=A();return i({forceAlign:function(){},getElement:function(){return r.value}}),function(){var a,u=e.zIndex,l=e.visible,s=e.prefixCls,f=e.mobile,h=f===void 0?{}:f,v=h.popupClassName,p=h.popupStyle,m=h.popupMotion,g=m===void 0?{}:m,D=h.popupRender,P=c({zIndex:u},p),b=Et((a=o.default)===null||a===void 0?void 0:a.call(o));b.length>1&&(b=x("div",{class:"".concat(s,"-content")},[b])),D&&(b=D(b));var O=G(s,v);return x(We,c({ref:r},g),{default:function(){return[l?x("div",{class:O,style:P},[b]):null]}})}}});var at=["measure","align",null,"motion"];const Hn=function(n,e){var t=A(null),i=A(),o=A(!1);function r(l){o.value||(t.value=l)}function a(){q.cancel(i.value)}function u(l){a(),i.value=q(function(){var s=t.value;switch(t.value){case"align":s="motion";break;case"motion":s="stable";break}r(s),l==null||l()})}return K(n,function(){r("measure")},{immediate:!0,flush:"post"}),ze(function(){K(t,function(){switch(t.value){case"measure":e();break}t.value&&(i.value=q(Tn(et.mark(function l(){var s,f;return et.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:s=at.indexOf(t.value),f=at[s+1],f&&s!==-1&&r(f);case 3:case"end":return v.stop()}},l)}))))},{immediate:!0,flush:"post"})}),rn(function(){o.value=!0,a()}),[t,u]},In=function(n){var e=A({width:0,height:0});function t(o){e.value={width:o.offsetWidth,height:o.offsetHeight}}var i=B(function(){var o={};if(n.value){var r=e.value,a=r.width,u=r.height;n.value.indexOf("height")!==-1&&u?o.height="".concat(u,"px"):n.value.indexOf("minHeight")!==-1&&u&&(o.minHeight="".concat(u,"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 ut(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 lt(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ut(Object(t),!0).forEach(function(i){kn(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ut(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function Be(n){"@babel/helpers - typeof";return Be=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},Be(n)}function kn(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var ue,jn={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function Te(){if(ue!==void 0)return ue;ue="";var n=document.createElement("p").style,e="Transform";for(var t in jn)t+e in n&&(ue=t);return ue}function kt(){return Te()?"".concat(Te(),"TransitionProperty"):"transitionProperty"}function Oe(){return Te()?"".concat(Te(),"Transform"):"transform"}function st(n,e){var t=kt();t&&(n.style[t]=e,t!=="transitionProperty"&&(n.style.transitionProperty=e))}function Re(n,e){var t=Oe();t&&(n.style[t]=e,t!=="transform"&&(n.style.transform=e))}function Wn(n){return n.style.transitionProperty||n.style[kt()]}function zn(n){var e=window.getComputedStyle(n,null),t=e.getPropertyValue("transform")||e.getPropertyValue(Oe());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 Ln=/matrix\((.*)\)/,Xn=/matrix3d\((.*)\)/;function Yn(n,e){var t=window.getComputedStyle(n,null),i=t.getPropertyValue("transform")||t.getPropertyValue(Oe());if(i&&i!=="none"){var o,r=i.match(Ln);if(r)r=r[1],o=r.split(",").map(function(u){return parseFloat(u,10)}),o[4]=e.x,o[5]=e.y,Re(n,"matrix(".concat(o.join(","),")"));else{var a=i.match(Xn)[1];o=a.split(",").map(function(u){return parseFloat(u,10)}),o[12]=e.x,o[13]=e.y,Re(n,"matrix3d(".concat(o.join(","),")"))}}else Re(n,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}var Un=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,ve;function ft(n){var e=n.style.display;n.style.display="none",n.offsetHeight,n.style.display=e}function re(n,e,t){var i=t;if(Be(e)==="object"){for(var o in e)e.hasOwnProperty(o)&&re(n,o,e[o]);return}if(typeof i<"u"){typeof i=="number"&&(i="".concat(i,"px")),n.style[e]=i;return}return ve(n,e)}function Kn(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 jt(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 Wt(n){return jt(n)}function zt(n){return jt(n,!0)}function ce(n){var e=Kn(n),t=n.ownerDocument,i=t.defaultView||t.parentWindow;return e.left+=Wt(i),e.top+=zt(i),e}function Xe(n){return n!=null&&n==n.window}function Lt(n){return Xe(n)?n.document:n.nodeType===9?n:n.ownerDocument}function qn(n,e,t){var i=t,o="",r=Lt(n);return i=i||r.defaultView.getComputedStyle(n,null),i&&(o=i.getPropertyValue(e)||i[e]),o}var Gn=new RegExp("^(".concat(Un,")(?!px)[a-z%]+$"),"i"),Zn=/^(top|right|bottom|left)$/,$e="currentStyle",Ve="runtimeStyle",J="left",Qn="px";function Jn(n,e){var t=n[$e]&&n[$e][e];if(Gn.test(t)&&!Zn.test(e)){var i=n.style,o=i[J],r=n[Ve][J];n[Ve][J]=n[$e][J],i[J]=e==="fontSize"?"1em":t||0,t=i.pixelLeft+Qn,i[J]=o,n[Ve][J]=r}return t===""?"auto":t}typeof window<"u"&&(ve=window.getComputedStyle?qn:Jn);function he(n,e){return n==="left"?e.useCssRight?"right":n:e.useCssBottom?"bottom":n}function ct(n){if(n==="left")return"right";if(n==="right")return"left";if(n==="top")return"bottom";if(n==="bottom")return"top"}function vt(n,e,t){re(n,"position")==="static"&&(n.style.position="relative");var i=-999,o=-999,r=he("left",t),a=he("top",t),u=ct(r),l=ct(a);r!=="left"&&(i=999),a!=="top"&&(o=999);var s="",f=ce(n);("left"in e||"top"in e)&&(s=Wn(n)||"",st(n,"none")),"left"in e&&(n.style[u]="",n.style[r]="".concat(i,"px")),"top"in e&&(n.style[l]="",n.style[a]="".concat(o,"px")),ft(n);var h=ce(n),v={};for(var p in e)if(e.hasOwnProperty(p)){var m=he(p,t),g=p==="left"?i:o,D=f[p]-h[p];m===p?v[m]=g+D:v[m]=g-D}re(n,v),ft(n),("left"in e||"top"in e)&&st(n,s);var P={};for(var b in e)if(e.hasOwnProperty(b)){var O=he(b,t),$=e[b]-f[b];b===O?P[O]=v[O]+$:P[O]=v[O]-$}re(n,P)}function ei(n,e){var t=ce(n),i=zn(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),Yn(n,o)}function ti(n,e,t){if(t.ignoreShake){var i=ce(n),o=i.left.toFixed(0),r=i.top.toFixed(0),a=e.left.toFixed(0),u=e.top.toFixed(0);if(o===a&&r===u)return}t.useCssRight||t.useCssBottom?vt(n,e,t):t.useCssTransform&&Oe()in document.body.style?ei(n,e):vt(n,e,t)}function Ye(n,e){for(var t=0;t<n.length;t++)e(n[t])}function Xt(n){return ve(n,"boxSizing")==="border-box"}var ni=["margin","border","padding"],He=-1,ii=2,Ie=1,oi=0;function ri(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 fe(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 u=void 0;o==="border"?u="".concat(o).concat(t[a],"Width"):u=o+t[a],i+=parseFloat(ve(n,u))||0}return i}var Y={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}};Ye(["Width","Height"],function(n){Y["doc".concat(n)]=function(e){var t=e.document;return Math.max(t.documentElement["scroll".concat(n)],t.body["scroll".concat(n)],Y["viewport".concat(n)](t))},Y["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 dt(n,e,t){var i=t;if(Xe(n))return e==="width"?Y.viewportWidth(n):Y.viewportHeight(n);if(n.nodeType===9)return e==="width"?Y.docWidth(n):Y.docHeight(n);var o=e==="width"?["Left","Right"]:["Top","Bottom"],r=Math.floor(e==="width"?n.getBoundingClientRect().width:n.getBoundingClientRect().height),a=Xt(n),u=0;(r==null||r<=0)&&(r=void 0,u=ve(n,e),(u==null||Number(u)<0)&&(u=n.style[e]||0),u=Math.floor(parseFloat(u))||0),i===void 0&&(i=a?Ie:He);var l=r!==void 0||a,s=r||u;return i===He?l?s-fe(n,["border","padding"],o):u:l?i===Ie?s:s+(i===ii?-fe(n,["border"],o):fe(n,["margin"],o)):u+fe(n,ni.slice(i),o)}var ai={position:"absolute",visibility:"hidden",display:"block"};function pt(){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=dt.apply(void 0,e):ri(o,ai,function(){i=dt.apply(void 0,e)}),i}Ye(["width","height"],function(n){var e=n.charAt(0).toUpperCase()+n.slice(1);Y["outer".concat(e)]=function(i,o){return i&&pt(i,n,o?oi:Ie)};var t=n==="width"?["Left","Right"]:["Top","Bottom"];Y[n]=function(i,o){var r=o;if(r!==void 0){if(i){var a=Xt(i);return a&&(r+=fe(i,["padding","border"],t)),re(i,n,r)}return}return i&&pt(i,n,He)}});function Yt(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}var w={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:Lt,offset:function(e,t,i){if(typeof t<"u")ti(e,t,i||{});else return ce(e)},isWindow:Xe,each:Ye,css:re,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:Yt,getWindowScrollLeft:function(e){return Wt(e)},getWindowScrollTop:function(e){return zt(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)w.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};Yt(w,Y);var Fe=w.getParent;function ke(n){if(w.isWindow(n)||n.nodeType===9)return null;var e=w.getDocument(n),t=e.body,i,o=w.css(n,"position"),r=o==="fixed"||o==="absolute";if(!r)return n.nodeName.toLowerCase()==="html"?null:Fe(n);for(i=Fe(n);i&&i!==t&&i.nodeType!==9;i=Fe(i))if(o=w.css(i,"position"),o!=="static")return i;return null}var ht=w.getParent;function ui(n){if(w.isWindow(n)||n.nodeType===9)return!1;var e=w.getDocument(n),t=e.body,i=null;for(i=ht(n);i&&i!==t&&i!==e;i=ht(i)){var o=w.css(i,"position");if(o==="fixed")return!0}return!1}function Ue(n,e){for(var t={left:0,right:1/0,top:0,bottom:1/0},i=ke(n),o=w.getDocument(n),r=o.defaultView||o.parentWindow,a=o.body,u=o.documentElement;i;){if((navigator.userAgent.indexOf("MSIE")===-1||i.clientWidth!==0)&&i!==a&&i!==u&&w.css(i,"overflow")!=="visible"){var l=w.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===u)break;i=ke(i)}var s=null;if(!w.isWindow(n)&&n.nodeType!==9){s=n.style.position;var f=w.css(n,"position");f==="absolute"&&(n.style.position="fixed")}var h=w.getWindowScrollLeft(r),v=w.getWindowScrollTop(r),p=w.viewportWidth(r),m=w.viewportHeight(r),g=u.scrollWidth,D=u.scrollHeight,P=window.getComputedStyle(a);if(P.overflowX==="hidden"&&(g=r.innerWidth),P.overflowY==="hidden"&&(D=r.innerHeight),n.style&&(n.style.position=s),e||ui(n))t.left=Math.max(t.left,h),t.top=Math.max(t.top,v),t.right=Math.min(t.right,h+p),t.bottom=Math.min(t.bottom,v+m);else{var b=Math.max(g,h+p);t.right=Math.min(t.right,b);var O=Math.max(D,v+m);t.bottom=Math.min(t.bottom,O)}return t.top>=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}function li(n,e,t,i){var o=w.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)),w.mix(o,r)}function Ke(n){var e,t,i;if(!w.isWindow(n)&&n.nodeType!==9)e=w.offset(n),t=w.outerWidth(n),i=w.outerHeight(n);else{var o=w.getWindow(n);e={left:w.getWindowScrollLeft(o),top:w.getWindowScrollTop(o)},t=w.viewportWidth(o),i=w.viewportHeight(o)}return e.width=t,e.height=i,e}function mt(n,e){var t=e.charAt(0),i=e.charAt(1),o=n.width,r=n.height,a=n.left,u=n.top;return t==="c"?u+=r/2:t==="b"&&(u+=r),i==="c"?a+=o/2:i==="r"&&(a+=o),{left:a,top:u}}function me(n,e,t,i,o){var r=mt(e,t[1]),a=mt(n,t[0]),u=[a.left-r.left,a.top-r.top];return{left:Math.round(n.left-u[0]+i[0]-o[0]),top:Math.round(n.top-u[1]+i[1]-o[1])}}function gt(n,e,t){return n.left<t.left||n.left+e.width>t.right}function yt(n,e,t){return n.top<t.top||n.top+e.height>t.bottom}function si(n,e,t){return n.left>t.right||n.left+e.width<t.left}function fi(n,e,t){return n.top>t.bottom||n.top+e.height<t.top}function ge(n,e,t){var i=[];return w.each(n,function(o){i.push(o.replace(e,function(r){return t[r]}))}),i}function ye(n,e){return n[e]=-n[e],n}function wt(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 bt(n,e){n[0]=wt(n[0],e.width),n[1]=wt(n[1],e.height)}function Ut(n,e,t,i){var o=t.points,r=t.offset||[0,0],a=t.targetOffset||[0,0],u=t.overflow,l=t.source||n;r=[].concat(r),a=[].concat(a),u=u||{};var s={},f=0,h=!!(u&&u.alwaysByViewport),v=Ue(l,h),p=Ke(l);bt(r,p),bt(a,e);var m=me(p,e,o,r,a),g=w.merge(p,m);if(v&&(u.adjustX||u.adjustY)&&i){if(u.adjustX&&gt(m,p,v)){var D=ge(o,/[lr]/gi,{l:"r",r:"l"}),P=ye(r,0),b=ye(a,0),O=me(p,e,D,P,b);si(O,p,v)||(f=1,o=D,r=P,a=b)}if(u.adjustY&&yt(m,p,v)){var $=ge(o,/[tb]/gi,{t:"b",b:"t"}),S=ye(r,1),d=ye(a,1),y=me(p,e,$,S,d);fi(y,p,v)||(f=1,o=$,r=S,a=d)}f&&(m=me(p,e,o,r,a),w.mix(g,m));var R=gt(m,p,v),N=yt(m,p,v);if(R||N){var I=o;R&&(I=ge(o,/[lr]/gi,{l:"r",r:"l"})),N&&(I=ge(o,/[tb]/gi,{t:"b",b:"t"})),o=I,r=t.offset||[0,0],a=t.targetOffset||[0,0]}s.adjustX=u.adjustX&&R,s.adjustY=u.adjustY&&N,(s.adjustX||s.adjustY)&&(g=li(m,p,v,s))}return g.width!==p.width&&w.css(l,"width",w.width(l)+g.width-p.width),g.height!==p.height&&w.css(l,"height",w.height(l)+g.height-p.height),w.offset(l,{left:g.left,top:g.top},{useCssRight:t.useCssRight,useCssBottom:t.useCssBottom,useCssTransform:t.useCssTransform,ignoreShake:t.ignoreShake}),{points:o,offset:r,targetOffset:a,overflow:s}}function ci(n,e){var t=Ue(n,e),i=Ke(n);return!t||i.left+i.width<=t.left||i.top+i.height<=t.top||i.left>=t.right||i.top>=t.bottom}function qe(n,e,t){var i=t.target||e,o=Ke(i),r=!ci(i,t.overflow&&t.overflow.alwaysByViewport);return Ut(n,o,t,r)}qe.__getOffsetParent=ke;qe.__getVisibleRectForElement=Ue;function vi(n,e,t){var i,o,r=w.getDocument(n),a=r.defaultView||r.parentWindow,u=w.getWindowScrollLeft(a),l=w.getWindowScrollTop(a),s=w.viewportWidth(a),f=w.viewportHeight(a);"pageX"in e?i=e.pageX:i=u+e.clientX,"pageY"in e?o=e.pageY:o=l+e.clientY;var h={left:i,top:o,width:0,height:0},v=i>=0&&i<=u+s&&o>=0&&o<=l+f,p=[t.points[0],"cc"];return Ut(n,h,lt(lt({},t),{},{points:p}),v)}const di=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 pi(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 hi(n,e){n!==document.activeElement&&ie(e,n)&&typeof n.focus=="function"&&n.focus()}function Ct(n,e){var t=null,i=null;function o(a){var u=Ce(a,1),l=u[0].target;if(document.documentElement.contains(l)){var s=l.getBoundingClientRect(),f=s.width,h=s.height,v=Math.floor(f),p=Math.floor(h);(t!==v||i!==p)&&Promise.resolve().then(function(){e({width:v,height:p})}),t=v,i=p}}var r=new xn(o);return n&&r.observe(n),function(){r.disconnect()}}const mi=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 gi={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function Pt(n){return typeof n!="function"?null:n()}function Tt(n){return xe(n)!=="object"||!n?null:n}const yi=L({compatConfig:{MODE:3},name:"Align",props:gi,emits:["align"],setup:function(e,t){var i=t.expose,o=t.slots,r=A({}),a=A(),u=mi(function(){var g=e.disabled,D=e.target,P=e.align,b=e.onAlign;if(!g&&D&&a.value){var O=a.value,$,S=Pt(D),d=Tt(D);r.value.element=S,r.value.point=d,r.value.align=P;var y=document,R=y.activeElement;return S&&di(S)?$=qe(O,S,P):d&&($=vi(O,d,P)),hi(R,O),b&&$&&b(O,$),!0}return!1},B(function(){return e.monitorBufferTime})),l=Ce(u,2),s=l[0],f=l[1],h=A({cancel:function(){}}),v=A({cancel:function(){}}),p=function(){var D=e.target,P=Pt(D),b=Tt(D);a.value!==v.value.element&&(v.value.cancel(),v.value.element=a.value,v.value.cancel=Ct(a.value,s)),(r.value.element!==P||!pi(r.value.point,b)||!On(r.value.align,e.align))&&(s(),h.value.element!==P&&(h.value.cancel(),h.value.element=P,h.value.cancel=Ct(P,s)))};ze(function(){_e(function(){p()})}),an(function(){_e(function(){p()})}),K(function(){return e.disabled},function(g){g?f():s()},{immediate:!0,flush:"post"});var m=A(null);return K(function(){return e.monitorWindowResize},function(g){g?m.value||(m.value=le(window,"resize",s)):m.value&&(m.value.remove(),m.value=null)},{flush:"post"}),Rt(function(){h.value.cancel(),v.value.cancel(),m.value&&m.value.remove(),f()}),i({forceAlign:function(){return s(!0)}}),function(){var g=o==null?void 0:o.default();return g?Pe(g[0],{ref:a},!0,!0):null}}}),wi=L({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:Le,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,t){var i=t.expose,o=t.attrs,r=t.slots,a=A(),u=A(),l=A(),s=In(un(e,"stretch")),f=Ce(s,2),h=f[0],v=f[1],p=function(){e.stretch&&v(e.getRootDomNode())},m=A(!1),g;K(function(){return e.visible},function(C){clearTimeout(g),C?g=setTimeout(function(){m.value=e.visible}):m.value=!1},{immediate:!0});var D=Hn(m,p),P=Ce(D,2),b=P[0],O=P[1],$=A(),S=function(){return e.point?e.point:e.getRootDomNode},d=function(){var F;(F=a.value)===null||F===void 0||F.forceAlign()},y=function(F,H){var j=e.getClassNameFromAlign(H),U=l.value;if(l.value!==j&&(l.value=j),b.value==="align"){var E;U!==j?Promise.resolve().then(function(){d()}):O(function(){var M;(M=$.value)===null||M===void 0||M.call($)}),(E=e.onAlign)===null||E===void 0||E.call(e,F,H)}},R=B(function(){var C=xe(e.animation)==="object"?e.animation:Ht(e);return["onAfterEnter","onAfterLeave"].forEach(function(F){var H=C[F];C[F]=function(j){O(),b.value="stable",H==null||H(j)}}),C}),N=function(){return new Promise(function(F){$.value=F})};K([R,b],function(){!R.value&&b.value==="motion"&&O()},{immediate:!0}),i({forceAlign:d,getElement:function(){return u.value.$el||u.value}});var I=B(function(){var C;return!((C=e.align)!==null&&C!==void 0&&C.points&&(b.value==="align"||b.value==="stable"))});return function(){var C,F=e.zIndex,H=e.align,j=e.prefixCls,U=e.destroyPopupOnHide,E=e.onMouseenter,M=e.onMouseleave,V=e.onTouchstart,_=V===void 0?function(){}:V,Z=e.onMousedown,ee=b.value,Ae=[c(c({},h.value),{},{zIndex:F,opacity:ee==="motion"||ee==="stable"||!m.value?null:0,pointerEvents:!m.value&&ee!=="stable"?"none":null}),o.style],Q=Et((C=r.default)===null||C===void 0?void 0:C.call(r,{visible:e.visible}));Q.length>1&&(Q=x("div",{class:"".concat(j,"-content")},[Q]));var de=G(j,o.class,l.value),De=m.value||!e.visible,Me=De?ln(R.value.name,R.value):{};return x(We,c(c({ref:u},Me),{},{onBeforeEnter:N}),{default:function(){return!U||e.visible?Nt(x(yi,{target:S(),key:"popup",ref:a,monitorWindowResize:!0,disabled:I.value,align:H,onAlign:y},{default:function(){return x("div",c(c({class:de,onMouseenter:E,onMouseleave:M,onMousedown:tt(Z,["capture"])},we({},se?"onTouchstartPassive":"onTouchstart",tt(_,["capture"]))),{},{style:Ae}),[Q])}}),[[sn,m.value]]):null}})}}}),bi=L({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:_n,setup:function(e,t){var i=t.attrs,o=t.slots,r=t.expose,a=A(!1),u=A(!1),l=A();return K([function(){return e.visible},function(){return e.mobile}],function(){a.value=e.visible,e.visible&&e.mobile&&(u.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 s=c(c(c({},e),i),{},{visible:a.value}),f=u.value?x(Bn,c(c({},s),{},{mobile:e.mobile,ref:l}),{default:o.default}):x(wi,c(c({},s),{},{ref:l}),{default:o.default});return x("div",null,[x(It,s,null),f])}}});function Ci(n,e,t){return t?n[0]===e[0]:n[0]===e[0]&&n[1]===e[1]}function xt(n,e,t){var i=n[e]||{};return c(c({},i),t)}function Pi(n,e,t,i){for(var o=t.points,r=Object.keys(n),a=0;a<r.length;a+=1){var u=r[a];if(Ci(n[u].points,o,i))return"".concat(e,"-placement-").concat(u)}return""}const Ti={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(fn(this),c(c({},this.$data),i));if(o===null)return;i=c(c({},i),o||{})}cn(this.$data,i),this._.isMounted&&this.$forceUpdate(),_e(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,nt(e.slice(1)));else i.apply(void 0,nt(e.slice(1)))}}};function Ot(){}function xi(){return""}function Oi(n){return n?n.ownerDocument:window.document}var Si=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"];const Ai=L({compatConfig:{MODE:3},name:"Trigger",mixins:[Ti],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(xi),onPopupVisibleChange:Function,afterPopupVisibleChange:T.func.def(Ot),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(Oi),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=B(function(){var l=e.popupPlacement,s=e.popupAlign,f=e.builtinPlacements;return l&&f?xt(f,l,s):s}),i=Sn(e.tryPopPortal),o=i.setPortal,r=i.popPortal,a=A(null),u=function(s){a.value=s};return{popPortal:r,setPortal:o,vcTriggerContext:$t("vcTriggerContext",{}),popupRef:a,setPopupRef:u,triggerRef:A(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,Si.forEach(function(r){e["fire".concat(r)]=function(a){e.fireEvents(r,a)}}),(t=this.setPortal)===null||t===void 0||t.call(this,x(ot,{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(){Vt("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown}),An(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),q.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=le(i,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(i=i||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=le(i,"touchstart",this.onDocumentClick,se?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(i=i||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=le(i,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=le(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&&ie((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){ie(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();(!ie(i,t)||this.isContextMenuOnly())&&!ie(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=pe(this.triggerRef);return pe(e(t))}try{var i=pe(this.triggerRef);if(i)return i}catch{}return pe(this)},handleGetPopupClassFromAlign:function(e){var t=[],i=this.$props,o=i.popupPlacement,r=i.builtinPlacements,a=i.prefixCls,u=i.alignPoint,l=i.getPopupClassNameFromAlign;return o&&r&&t.push(Pi(r,a,e,u)),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?xt(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[se?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;var i=this.handleGetPopupClassFromAlign,o=this.getRootDomNode,r=this.getContainer,a=this.$attrs,u=this.$props,l=u.prefixCls,s=u.destroyPopupOnHide,f=u.popupClassName,h=u.popupAnimation,v=u.popupTransitionName,p=u.popupStyle,m=u.mask,g=u.maskAnimation,D=u.maskTransitionName,P=u.zIndex,b=u.stretch,O=u.alignPoint,$=u.mobile,S=u.forceRender,d=this.$data,y=d.sPopupVisible,R=d.point,N=c(c({prefixCls:l,destroyPopupOnHide:s,visible:y,point:O?R:null,align:this.align,animation:h,getClassNameFromAlign:i,stretch:b,getRootDomNode:o,mask:m,zIndex:P,transitionName:v,maskAnimation:g,maskTransitionName:D,getContainer:r,class:f,style:p,onAlign:a.onPopupAlign||Ot},t),{},{ref:this.setPopupRef,mobile:$,forceRender:S});return x(bi,N,{default:this.$slots.popup||function(){return vn(e,"popup")}})},attachParent:function(e){var t=this;q.cancel(this.attachId);var i=this.$props,o=i.getPopupContainer,r=i.getDocument,a=this.getRootDomNode(),u;o?(a||o.length===0)&&(u=o(a)):u=r(this.getRootDomNode()).body,u?u.appendChild(e):this.attachId=q(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&&(dn(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=Vn(function(){o.setPopupVisible(e,a),o.clearDelayTimer()},r)}else this.setPopupVisible(e,i)},clearDelayTimer:function(){this.delayTimer&&($n(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=it(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=Ft(pn(this)),o=this.$props.alignPoint,r=i[0];this.childOriginEvents=it(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[se?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(a.onClick=this.createTwoChains("onClick"),a.onMousedown=this.createTwoChains("onMousedown"),a[se?"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||!ie(f.target,f.relatedTarget))&&e.createTwoChains("onBlur")(f)});var u=G(r&&r.props&&r.props.class,t.class);u&&(a.class=u);var l=Pe(r,c(c({},a),{},{ref:"triggerRef"}),!0,!0);if(this.popPortal)return l;var s=x(ot,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent});return x(hn,null,[s,l])}});var Kt=Symbol("OverflowContextProviderKey"),je=L({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup:function(e,t){var i=t.slots;return Vt(Kt,B(function(){return e.value})),function(){var o;return(o=i.default)===null||o===void 0?void 0:o.call(i)}}}),Di=function(){return $t(Kt,B(function(){return null}))},Mi=["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"],ne=void 0;const be=L({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:T.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:T.any,invalidate:Boolean},setup:function(e,t){var i=t.slots,o=t.expose,r=B(function(){return e.responsive&&!e.display}),a=A();o({itemNodeRef:a});function u(l){e.registerSize(e.itemKey,l)}return Rt(function(){u(null)}),function(){var l,s=e.prefixCls,f=e.invalidate,h=e.item,v=e.renderItem,p=e.responsive;e.registerSize,e.itemKey,e.display;var m=e.order,g=e.component,D=g===void 0?"div":g,P=oe(e,Mi),b=(l=i.default)===null||l===void 0?void 0:l.call(i),O=v&&h!==ne?v(h):b,$;f||($={opacity:r.value?0:1,height:r.value?0:ne,overflowY:r.value?"hidden":ne,order:p?m:ne,pointerEvents:r.value?"none":ne,position:r.value?"absolute":ne});var S={};return r.value&&(S["aria-hidden"]=!0),x(_t,{disabled:!p,onResize:function(y){var R=y.offsetWidth;u(R)}},{default:function(){return x(D,c(c(c({class:G(!f&&s),style:$},S),P),{},{ref:a}),{default:function(){return[O]}})}})}}});var Ni=["component"],Ei=["className"],Ri=["class"];const $i=L({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:T.any,title:T.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function}},setup:function(e,t){var i=t.slots,o=t.attrs,r=Di();return function(){if(!r.value){var a,u=e.component,l=u===void 0?"div":u,s=oe(e,Ni);return x(l,c(c({},s),o),{default:function(){return[(a=i.default)===null||a===void 0?void 0:a.call(i)]}})}var f=r.value,h=f.className,v=oe(f,Ei),p=o.class,m=oe(o,Ri);return x(je,{value:null},{default:function(){return[x(be,c(c(c({class:G(h,p)},v),m),e),i)]}})}}});var Vi=["class","style"],qt="responsive",Gt="invalidate";function Fi(n){return"+ ".concat(n.length," ...")}var _i=function(){return{id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:T.any,component:String,itemComponent:T.any,onVisibleChange:Function,ssr:String,onMousedown:Function}},Se=L({name:"Overflow",inheritAttrs:!1,props:_i(),emits:["visibleChange"],setup:function(e,t){var i=t.attrs,o=t.emit,r=t.slots,a=B(function(){return e.ssr==="full"}),u=A(null),l=B(function(){return u.value||0}),s=A(new Map),f=A(0),h=A(0),v=A(0),p=A(null),m=A(null),g=B(function(){return m.value===null&&a.value?Number.MAX_SAFE_INTEGER:m.value||0}),D=A(!1),P=B(function(){return"".concat(e.prefixCls,"-item")}),b=B(function(){return Math.max(f.value,h.value)}),O=B(function(){return!!(e.data.length&&e.maxCount===qt)}),$=B(function(){return e.maxCount===Gt}),S=B(function(){return O.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount}),d=B(function(){var E=e.data;return O.value?u.value===null&&a.value?E=e.data:E=e.data.slice(0,Math.min(e.data.length,l.value/e.itemWidth)):typeof e.maxCount=="number"&&(E=e.data.slice(0,e.maxCount)),E}),y=B(function(){return O.value?e.data.slice(g.value+1):e.data.slice(d.value.length)}),R=function(M,V){var _;return typeof e.itemKey=="function"?e.itemKey(M):(_=e.itemKey&&(M==null?void 0:M[e.itemKey]))!==null&&_!==void 0?_:V},N=B(function(){return e.renderItem||function(E){return E}}),I=function(M,V){m.value=M,V||(D.value=M<e.data.length-1,o("visibleChange",M))},C=function(M,V){u.value=V.clientWidth},F=function(M,V){var _=new Map(s.value);V===null?_.delete(M):_.set(M,V),s.value=_},H=function(M,V){f.value=h.value,h.value=V},j=function(M,V){v.value=V},U=function(M){return s.value.get(R(d.value[M],M))};return K([l,s,h,v,function(){return e.itemKey},d],function(){if(l.value&&b.value&&d.value){var E=v.value,M=d.value.length,V=M-1;if(!M){I(0),p.value=null;return}for(var _=0;_<M;_+=1){var Z=U(_);if(Z===void 0){I(_-1,!0);break}if(E+=Z,V===0&&E<=l.value||_===V-1&&E+U(V)<=l.value){I(V),p.value=null;break}else if(E+b.value>l.value){I(_-1),p.value=E-Z-v.value+h.value;break}}e.suffix&&U(0)+v.value>l.value&&(p.value=null)}}),function(){var E=D.value&&!!y.value.length,M=e.itemComponent,V=e.renderRawItem,_=e.renderRawRest,Z=e.renderRest,ee=e.prefixCls,Ae=ee===void 0?"rc-overflow":ee,Q=e.suffix,de=e.component,De=de===void 0?"div":de,Me=e.id,Ge=e.onMousedown,Ze=i.class,Qt=i.style,Jt=oe(i,Vi),Qe={};p.value!==null&&O.value&&(Qe={position:"absolute",left:"".concat(p.value,"px"),top:0});var ae={prefixCls:P.value,responsive:O.value,component:M,invalidate:$.value},en=V?function(X,k){var te=R(X,k);return x(je,{key:te,value:c(c({},ae),{},{order:k,item:X,itemKey:te,registerSize:F,display:k<=g.value})},{default:function(){return[V(X,k)]}})}:function(X,k){var te=R(X,k);return x(be,c(c({},ae),{},{order:k,key:te,item:X,renderItem:N.value,itemKey:te,registerSize:F,display:k<=g.value}),null)},Ne=function(){return null},Je={order:E?g.value:Number.MAX_SAFE_INTEGER,className:"".concat(P.value," ").concat(P.value,"-rest"),registerSize:H,display:E};if(_)_&&(Ne=function(){return x(je,{value:c(c({},ae),Je)},{default:function(){return[_(y.value)]}})});else{var Ee=Z||Fi;Ne=function(){return x(be,c(c({},ae),Je),{default:function(){return typeof Ee=="function"?Ee(y.value):Ee}})}}var tn=function(){var k;return x(De,c({id:Me,class:G(!$.value&&Ae,Ze),style:Qt,onMousedown:Ge},Jt),{default:function(){return[d.value.map(en),S.value?Ne():null,Q&&x(be,c(c({},ae),{},{order:g.value,class:"".concat(P.value,"-suffix"),registerSize:j,display:!0,style:Qe}),{default:function(){return Q}}),(k=r.default)===null||k===void 0?void 0:k.call(r)]}})};return x(_t,{disabled:!O.value,onResize:C},{default:tn})}}});Se.Item=$i;Se.RESPONSIVE=qt;Se.INVALIDATE=Gt;const Ji=Se;var W={adjustX:1,adjustY:1},z=[0,0],Zt={left:{points:["cr","cl"],overflow:W,offset:[-4,0],targetOffset:z},right:{points:["cl","cr"],overflow:W,offset:[4,0],targetOffset:z},top:{points:["bc","tc"],overflow:W,offset:[0,-4],targetOffset:z},bottom:{points:["tc","bc"],overflow:W,offset:[0,4],targetOffset:z},topLeft:{points:["bl","tl"],overflow:W,offset:[0,-4],targetOffset:z},leftTop:{points:["tr","tl"],overflow:W,offset:[-4,0],targetOffset:z},topRight:{points:["br","tr"],overflow:W,offset:[0,-4],targetOffset:z},rightTop:{points:["tl","tr"],overflow:W,offset:[4,0],targetOffset:z},bottomRight:{points:["tr","br"],overflow:W,offset:[0,4],targetOffset:z},rightBottom:{points:["bl","br"],overflow:W,offset:[4,0],targetOffset:z},bottomLeft:{points:["tl","bl"],overflow:W,offset:[0,4],targetOffset:z},leftBottom:{points:["br","bl"],overflow:W,offset:[-4,0],targetOffset:z}},Bi={prefixCls:String,id:String,overlayInnerStyle:T.any};const Hi=L({compatConfig:{MODE:3},name:"Content",props:Bi,slots:["overlay"],setup:function(e,t){var i=t.slots;return function(){var o;return x("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 Ii=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"];function St(){}const ki=L({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=A(),u=function(){var v=e.prefixCls,p=e.tipId,m=e.overlayInnerStyle;return[x("div",{class:"".concat(v,"-arrow"),key:"arrow"},[gn(i,e,"arrowContent")]),x(Hi,{key:"content",prefixCls:v,id:p,overlayInnerStyle:m},{overlay:i.overlay})]},l=function(){return a.value.getPopupDomNode()};r({getPopupDomNode:l,triggerDOM:a,forcePopupAlign:function(){var v;return(v=a.value)===null||v===void 0?void 0:v.forcePopupAlign()}});var s=A(!1),f=A(!1);return mn(function(){var h=e.destroyTooltipOnHide;if(typeof h=="boolean")s.value=h;else if(h&&xe(h)==="object"){var v=h.keepParent;s.value=v===!0,f.value=v===!1}}),function(){var h=e.overlayClassName,v=e.trigger,p=e.mouseEnterDelay,m=e.mouseLeaveDelay,g=e.overlayStyle,D=e.prefixCls,P=e.afterVisibleChange,b=e.transitionName,O=e.animation,$=e.placement,S=e.align;e.destroyTooltipOnHide;var d=e.defaultVisible,y=oe(e,Ii),R=c({},y);e.visible!==void 0&&(R.popupVisible=e.visible);var N=c(c(c({popupClassName:h,prefixCls:D,action:v,builtinPlacements:Zt,popupPlacement:$,popupAlign:S,afterPopupVisibleChange:P,popupTransitionName:b,popupAnimation:O,defaultPopupVisible:d,destroyPopupOnHide:s.value,autoDestroy:f.value,mouseLeaveDelay:m,popupStyle:g,mouseEnterDelay:p},R),o),{},{onPopupVisibleChange:e.onVisibleChange||St,onPopupAlign:e.onPopupAlign||St,ref:a,popup:u()});return x(Ai,N,{default:i.default})}}}),ji=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 Wi={adjustX:1,adjustY:1},At={adjustX:0,adjustY:0},zi=[0,0];function Dt(n){return typeof n=="boolean"?n?Wi:At:c(c({},At),n)}function Li(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,u=n.autoAdjustOverflow,l=n.arrowPointAtCenter,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:[-(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(s).forEach(function(f){s[f]=l?c(c({},s[f]),{},{overflow:Dt(u),targetOffset:zi}):c(c({},Zt[f]),{},{overflow:Dt(u)}),s[f].ignoreShake=!0}),s}function Xi(){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 Yi=function(e,t){var i={},o=c({},e);return t.forEach(function(r){e&&r in e&&(i[r]=e[r],delete o[r])}),{picked:i,omitted:o}},Mt=new RegExp("^(".concat(Dn.join("|"),")(-inverse)?$")),Ui=function(){return c(c({},ji()),{},{title:T.any})},eo=function(){return{trigger:"hover",transitionName:"zoom-big-fast",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}};const Ki=L({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:Mn(Ui(),{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,u=yn("tooltip",e),l=u.prefixCls,s=u.getPopupContainer,f=A(Xi([e.visible,e.defaultVisible])),h=A();ze(function(){wn(e.defaultVisible===void 0,"Tooltip","'defaultVisible' is deprecated, please use 'v-model:visible'")});var v;K(function(){return e.visible},function(S){q.cancel(v),v=q(function(){f.value=!!S})});var p=function(){var d,y=(d=e.title)!==null&&d!==void 0?d:i.title;return!y&&y!==0},m=function(d){var y=p();e.visible===void 0&&(f.value=y?!1:d),y||(o("update:visible",d),o("visibleChange",d))},g=function(){return h.value.getPopupDomNode()};a({getPopupDomNode:g,visible:f,forcePopupAlign:function(){var d;return(d=h.value)===null||d===void 0?void 0:d.forcePopupAlign()}});var D=B(function(){var S=e.builtinPlacements,d=e.arrowPointAtCenter,y=e.autoAdjustOverflow;return S||Li({arrowPointAtCenter:d,autoAdjustOverflow:y})}),P=function(d){return d||d===""},b=function(d){var y=d.type;if(xe(y)==="object"&&d.props&&((y.__ANT_BUTTON===!0||y==="button")&&P(d.props.disabled)||y.__ANT_SWITCH===!0&&(P(d.props.disabled)||P(d.props.loading)))){var R=Yi(Cn(d),["position","left","right","top","bottom","float","display","zIndex"]),N=R.picked,I=R.omitted,C=c(c({display:"inline-block"},N),{},{cursor:"not-allowed",lineHeight:1,width:d.props&&d.props.block?"100%":null}),F=c(c({},I),{},{pointerEvents:"none"}),H=Pe(d,{style:F},!0);return x("span",{style:C,class:"".concat(l.value,"-disabled-compatible-wrapper")},[H])}return d},O=function(){var d,y;return(d=e.title)!==null&&d!==void 0?d:(y=i.title)===null||y===void 0?void 0:y.call(i)},$=function(d,y){var R=D.value,N=Object.keys(R).filter(function(F){return R[F].points[0]===y.points[0]&&R[F].points[1]===y.points[1]})[0];if(N){var I=d.getBoundingClientRect(),C={top:"50%",left:"50%"};N.indexOf("top")>=0||N.indexOf("Bottom")>=0?C.top="".concat(I.height-y.offset[1],"px"):(N.indexOf("Top")>=0||N.indexOf("bottom")>=0)&&(C.top="".concat(-y.offset[1],"px")),N.indexOf("left")>=0||N.indexOf("Right")>=0?C.left="".concat(I.width-y.offset[0],"px"):(N.indexOf("right")>=0||N.indexOf("Left")>=0)&&(C.left="".concat(-y.offset[0],"px")),d.style.transformOrigin="".concat(C.left," ").concat(C.top)}};return function(){var S,d,y,R=e.openClassName,N=e.color,I=e.overlayClassName,C=(S=Ft((d=i.default)===null||d===void 0?void 0:d.call(i)))!==null&&S!==void 0?S:null;C=C.length===1?C[0]:C;var F=f.value;if(e.visible===void 0&&p()&&(F=!1),!C)return null;var H=b(bn(C)?C:x("span",null,[C])),j=G((y={},we(y,R||"".concat(l.value,"-open"),!0),we(y,H.props&&H.props.class,H.props&&H.props.class),y)),U=G(I,we({},"".concat(l.value,"-").concat(N),N&&Mt.test(N))),E,M;N&&!Mt.test(N)&&(E={backgroundColor:N},M={backgroundColor:N});var V=c(c(c({},r),e),{},{prefixCls:l.value,getPopupContainer:s.value,builtinPlacements:D.value,visible:F,ref:h,overlayClassName:U,overlayInnerStyle:E,onVisibleChange:m,onPopupAlign:$});return x(ki,V,{default:function(){return[f.value?Pe(H,{class:j}):H]},arrowContent:function(){return x("span",{class:"".concat(l.value,"-arrow-content"),style:M},null)},overlay:O})}}}),to=Pn(Ki);export{Ti as B,Ji as O,to as T,ji as a,Ai as b,Xi as f,Li as g,di as i,eo as t};