index-33c9ec48.js 47 KB

1
  1. import{H as d,c as P,aF as Nt,bi as rn,aI as ke,d as L,x,J as Dt,W as G,$ as X,Z as Be,U as an,E as te,b0 as Je,s as N,bj as ee,bk as un,Y as le,aA as Ee,al as sn,au as ze,a5 as Rt,L as Et,aw as re,ax as ln,aS as fn,aG as cn,bl as et,o as ye,av as ae,bm as vn,ak as dn,Q as tt,q as S,bn as pn,T as $t,bo as nt,a0 as Ft,bp as hn,bq as de,bf as mn,be as gn,br as it,an as _t,bs as yn,z as Vt,G as se,a4 as Ht,ah as wn,X as bn,A as kt,ac as Pn,n as Cn,aO as ot}from"./main-4801cc52.js";import{_ as xn,a as Tn,R as rt,A as On}from"./useFlexGapSupport-310043de.js";var Bt=["moz","ms","webkit"];function Sn(){var t=0;return function(e){var n=new Date().getTime(),i=Math.max(0,16-(n-t)),o=window.setTimeout(function(){e(n+i)},i);return t=n+i,o}}function Mn(){if(typeof window>"u")return function(){};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var t=Bt.filter(function(e){return"".concat(e,"RequestAnimationFrame")in window})[0];return t?window["".concat(t,"RequestAnimationFrame")]:Sn()}function An(t){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(t);var e=Bt.filter(function(n){return"".concat(n,"CancelAnimationFrame")in window||"".concat(n,"CancelRequestAnimationFrame")in window})[0];return e?(window["".concat(e,"CancelAnimationFrame")]||window["".concat(e,"CancelRequestAnimationFrame")]).call(this,t):clearTimeout(t)}var at=Mn(),Nn=function(e){return An(e.id)},Dn=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Date.now();function o(){Date.now()-i>=n?e.call():r.id=at(o)}var r={id:at(o)};return r},Ie={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}},Rn=d(d({},Ie),{},{mobile:{type:Object}}),En=d(d({},Ie),{},{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function zt(t){var e=t.prefixCls,n=t.animation,i=t.transitionName;return n?{name:"".concat(e,"-").concat(n)}:i?{name:i}:{}}function It(t){var e=t.prefixCls,n=t.visible,i=t.zIndex,o=t.mask,r=t.maskAnimation,a=t.maskTransitionName;if(!o)return null;var u={};return(a||r)&&(u=zt({prefixCls:e,transitionName:a,animation:r})),P(ke,d({appear:!0},u),{default:function(){return[Nt(P("div",{style:{zIndex:i},class:"".concat(e,"-mask")},null),[[rn("if"),n]])]}})}It.displayName="Mask";const $n=L({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:Rn,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,n){var i=n.expose,o=n.slots,r=x();return i({forceAlign:function(){},getElement:function(){return r.value}}),function(){var a,u=e.zIndex,s=e.visible,l=e.prefixCls,f=e.mobile,w=f===void 0?{}:f,v=w.popupClassName,c=w.popupStyle,h=w.popupMotion,p=h===void 0?{}:h,m=w.popupRender,b=d({zIndex:u},c),g=Dt((a=o.default)===null||a===void 0?void 0:a.call(o));g.length>1&&(g=P("div",{class:"".concat(l,"-content")},[g])),m&&(g=m(g));var C=G(l,v);return P(ke,d({ref:r},p),{default:function(){return[s?P("div",{class:C,style:b},[g]):null]}})}}});var ut=["measure","align",null,"motion"];const Fn=function(t,e){var n=x(null),i=x(),o=x(!1);function r(s){o.value||(n.value=s)}function a(){te.cancel(i.value)}function u(s){a(),i.value=te(function(){var l=n.value;switch(n.value){case"align":l="motion";break;case"motion":l="stable";break}r(l),s==null||s()})}return X(t,function(){r("measure")},{immediate:!0,flush:"post"}),Be(function(){X(n,function(){switch(n.value){case"measure":e();break}n.value&&(i.value=te(xn(Je.mark(function s(){var l,f;return Je.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:l=ut.indexOf(n.value),f=ut[l+1],f&&l!==-1&&r(f);case 3:case"end":return v.stop()}},s)}))))},{immediate:!0,flush:"post"})}),an(function(){o.value=!0,a()}),[n,u]},_n=function(t){var e=x({width:0,height:0});function n(o){e.value={width:o.offsetWidth,height:o.offsetHeight}}var i=N(function(){var o={};if(t.value){var r=e.value,a=r.width,u=r.height;t.value.indexOf("height")!==-1&&u?o.height="".concat(u,"px"):t.value.indexOf("minHeight")!==-1&&u&&(o.minHeight="".concat(u,"px")),t.value.indexOf("width")!==-1&&a?o.width="".concat(a,"px"):t.value.indexOf("minWidth")!==-1&&a&&(o.minWidth="".concat(a,"px"))}return o});return[i,n]};function st(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function lt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?st(Object(n),!0).forEach(function(i){Vn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function $e(t){return $e=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},$e(t)}function Vn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var oe,Hn={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function be(){if(oe!==void 0)return oe;oe="";var t=document.createElement("p").style,e="Transform";for(var n in Hn)n+e in t&&(oe=n);return oe}function Wt(){return be()?"".concat(be(),"TransitionProperty"):"transitionProperty"}function Pe(){return be()?"".concat(be(),"Transform"):"transform"}function ft(t,e){var n=Wt();n&&(t.style[n]=e,n!=="transitionProperty"&&(t.style.transitionProperty=e))}function Ae(t,e){var n=Pe();n&&(t.style[n]=e,n!=="transform"&&(t.style.transform=e))}function kn(t){return t.style.transitionProperty||t.style[Wt()]}function Bn(t){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("transform")||e.getPropertyValue(Pe());if(n&&n!=="none"){var i=n.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 zn=/matrix\((.*)\)/,In=/matrix3d\((.*)\)/;function Wn(t,e){var n=window.getComputedStyle(t,null),i=n.getPropertyValue("transform")||n.getPropertyValue(Pe());if(i&&i!=="none"){var o,r=i.match(zn);if(r)r=r[1],o=r.split(",").map(function(u){return parseFloat(u,10)}),o[4]=e.x,o[5]=e.y,Ae(t,"matrix(".concat(o.join(","),")"));else{var a=i.match(In)[1];o=a.split(",").map(function(u){return parseFloat(u,10)}),o[12]=e.x,o[13]=e.y,Ae(t,"matrix3d(".concat(o.join(","),")"))}}else Ae(t,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}var jn=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,ce;function ct(t){var e=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=e}function ne(t,e,n){var i=n;if($e(e)==="object"){for(var o in e)e.hasOwnProperty(o)&&ne(t,o,e[o]);return}if(typeof i<"u"){typeof i=="number"&&(i="".concat(i,"px")),t.style[e]=i;return}return ce(t,e)}function Ln(t){var e,n,i,o=t.ownerDocument,r=o.body,a=o&&o.documentElement;return e=t.getBoundingClientRect(),n=Math.floor(e.left),i=Math.floor(e.top),n-=a.clientLeft||r.clientLeft||0,i-=a.clientTop||r.clientTop||0,{left:n,top:i}}function jt(t,e){var n=t["page".concat(e?"Y":"X","Offset")],i="scroll".concat(e?"Top":"Left");if(typeof n!="number"){var o=t.document;n=o.documentElement[i],typeof n!="number"&&(n=o.body[i])}return n}function Lt(t){return jt(t)}function Xt(t){return jt(t,!0)}function fe(t){var e=Ln(t),n=t.ownerDocument,i=n.defaultView||n.parentWindow;return e.left+=Lt(i),e.top+=Xt(i),e}function We(t){return t!=null&&t==t.window}function Yt(t){return We(t)?t.document:t.nodeType===9?t:t.ownerDocument}function Xn(t,e,n){var i=n,o="",r=Yt(t);return i=i||r.defaultView.getComputedStyle(t,null),i&&(o=i.getPropertyValue(e)||i[e]),o}var Yn=new RegExp("^(".concat(jn,")(?!px)[a-z%]+$"),"i"),Un=/^(top|right|bottom|left)$/,Ne="currentStyle",De="runtimeStyle",q="left",Kn="px";function qn(t,e){var n=t[Ne]&&t[Ne][e];if(Yn.test(n)&&!Un.test(e)){var i=t.style,o=i[q],r=t[De][q];t[De][q]=t[Ne][q],i[q]=e==="fontSize"?"1em":n||0,n=i.pixelLeft+Kn,i[q]=o,t[De][q]=r}return n===""?"auto":n}typeof window<"u"&&(ce=window.getComputedStyle?Xn:qn);function pe(t,e){return t==="left"?e.useCssRight?"right":t:e.useCssBottom?"bottom":t}function vt(t){if(t==="left")return"right";if(t==="right")return"left";if(t==="top")return"bottom";if(t==="bottom")return"top"}function dt(t,e,n){ne(t,"position")==="static"&&(t.style.position="relative");var i=-999,o=-999,r=pe("left",n),a=pe("top",n),u=vt(r),s=vt(a);r!=="left"&&(i=999),a!=="top"&&(o=999);var l="",f=fe(t);("left"in e||"top"in e)&&(l=kn(t)||"",ft(t,"none")),"left"in e&&(t.style[u]="",t.style[r]="".concat(i,"px")),"top"in e&&(t.style[s]="",t.style[a]="".concat(o,"px")),ct(t);var w=fe(t),v={};for(var c in e)if(e.hasOwnProperty(c)){var h=pe(c,n),p=c==="left"?i:o,m=f[c]-w[c];h===c?v[h]=p+m:v[h]=p-m}ne(t,v),ct(t),("left"in e||"top"in e)&&ft(t,l);var b={};for(var g in e)if(e.hasOwnProperty(g)){var C=pe(g,n),M=e[g]-f[g];g===C?b[C]=v[C]+M:b[C]=v[C]-M}ne(t,b)}function Gn(t,e){var n=fe(t),i=Bn(t),o={x:i.x,y:i.y};"left"in e&&(o.x=i.x+e.left-n.left),"top"in e&&(o.y=i.y+e.top-n.top),Wn(t,o)}function Qn(t,e,n){if(n.ignoreShake){var i=fe(t),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}n.useCssRight||n.useCssBottom?dt(t,e,n):n.useCssTransform&&Pe()in document.body.style?Gn(t,e):dt(t,e,n)}function je(t,e){for(var n=0;n<t.length;n++)e(t[n])}function Ut(t){return ce(t,"boxSizing")==="border-box"}var Zn=["margin","border","padding"],Fe=-1,Jn=2,_e=1,ei=0;function ti(t,e,n){var i={},o=t.style,r;for(r in e)e.hasOwnProperty(r)&&(i[r]=o[r],o[r]=e[r]);n.call(t);for(r in e)e.hasOwnProperty(r)&&(o[r]=i[r])}function ue(t,e,n){var i=0,o,r,a;for(r=0;r<e.length;r++)if(o=e[r],o)for(a=0;a<n.length;a++){var u=void 0;o==="border"?u="".concat(o).concat(n[a],"Width"):u=o+n[a],i+=parseFloat(ce(t,u))||0}return i}var j={getParent:function(e){var n=e;do n.nodeType===11&&n.host?n=n.host:n=n.parentNode;while(n&&n.nodeType!==1&&n.nodeType!==9);return n}};je(["Width","Height"],function(t){j["doc".concat(t)]=function(e){var n=e.document;return Math.max(n.documentElement["scroll".concat(t)],n.body["scroll".concat(t)],j["viewport".concat(t)](n))},j["viewport".concat(t)]=function(e){var n="client".concat(t),i=e.document,o=i.body,r=i.documentElement,a=r[n];return i.compatMode==="CSS1Compat"&&a||o&&o[n]||a}});function pt(t,e,n){var i=n;if(We(t))return e==="width"?j.viewportWidth(t):j.viewportHeight(t);if(t.nodeType===9)return e==="width"?j.docWidth(t):j.docHeight(t);var o=e==="width"?["Left","Right"]:["Top","Bottom"],r=Math.floor(e==="width"?t.getBoundingClientRect().width:t.getBoundingClientRect().height),a=Ut(t),u=0;(r==null||r<=0)&&(r=void 0,u=ce(t,e),(u==null||Number(u)<0)&&(u=t.style[e]||0),u=Math.floor(parseFloat(u))||0),i===void 0&&(i=a?_e:Fe);var s=r!==void 0||a,l=r||u;return i===Fe?s?l-ue(t,["border","padding"],o):u:s?i===_e?l:l+(i===Jn?-ue(t,["border"],o):ue(t,["margin"],o)):u+ue(t,Zn.slice(i),o)}var ni={position:"absolute",visibility:"hidden",display:"block"};function ht(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i,o=e[0];return o.offsetWidth!==0?i=pt.apply(void 0,e):ti(o,ni,function(){i=pt.apply(void 0,e)}),i}je(["width","height"],function(t){var e=t.charAt(0).toUpperCase()+t.slice(1);j["outer".concat(e)]=function(i,o){return i&&ht(i,t,o?ei:_e)};var n=t==="width"?["Left","Right"]:["Top","Bottom"];j[t]=function(i,o){var r=o;if(r!==void 0){if(i){var a=Ut(i);return a&&(r+=ue(i,["padding","border"],n)),ne(i,t,r)}return}return i&&ht(i,t,Fe)}});function Kt(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var y={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var n=e.ownerDocument||e;return n.defaultView||n.parentWindow},getDocument:Yt,offset:function(e,n,i){if(typeof n<"u")Qn(e,n,i||{});else return fe(e)},isWindow:We,each:je,css:ne,clone:function(e){var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);var o=e.overflow;if(o)for(n in e)e.hasOwnProperty(n)&&(i.overflow[n]=e.overflow[n]);return i},mix:Kt,getWindowScrollLeft:function(e){return Lt(e)},getWindowScrollTop:function(e){return Xt(e)},merge:function(){for(var e={},n=0;n<arguments.length;n++)y.mix(e,n<0||arguments.length<=n?void 0:arguments[n]);return e},viewportWidth:0,viewportHeight:0};Kt(y,j);var Re=y.getParent;function Ve(t){if(y.isWindow(t)||t.nodeType===9)return null;var e=y.getDocument(t),n=e.body,i,o=y.css(t,"position"),r=o==="fixed"||o==="absolute";if(!r)return t.nodeName.toLowerCase()==="html"?null:Re(t);for(i=Re(t);i&&i!==n&&i.nodeType!==9;i=Re(i))if(o=y.css(i,"position"),o!=="static")return i;return null}var mt=y.getParent;function ii(t){if(y.isWindow(t)||t.nodeType===9)return!1;var e=y.getDocument(t),n=e.body,i=null;for(i=mt(t);i&&i!==n&&i!==e;i=mt(i)){var o=y.css(i,"position");if(o==="fixed")return!0}return!1}function Le(t,e){for(var n={left:0,right:1/0,top:0,bottom:1/0},i=Ve(t),o=y.getDocument(t),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&&y.css(i,"overflow")!=="visible"){var s=y.offset(i);s.left+=i.clientLeft,s.top+=i.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+i.clientWidth),n.bottom=Math.min(n.bottom,s.top+i.clientHeight),n.left=Math.max(n.left,s.left)}else if(i===a||i===u)break;i=Ve(i)}var l=null;if(!y.isWindow(t)&&t.nodeType!==9){l=t.style.position;var f=y.css(t,"position");f==="absolute"&&(t.style.position="fixed")}var w=y.getWindowScrollLeft(r),v=y.getWindowScrollTop(r),c=y.viewportWidth(r),h=y.viewportHeight(r),p=u.scrollWidth,m=u.scrollHeight,b=window.getComputedStyle(a);if(b.overflowX==="hidden"&&(p=r.innerWidth),b.overflowY==="hidden"&&(m=r.innerHeight),t.style&&(t.style.position=l),e||ii(t))n.left=Math.max(n.left,w),n.top=Math.max(n.top,v),n.right=Math.min(n.right,w+c),n.bottom=Math.min(n.bottom,v+h);else{var g=Math.max(p,w+c);n.right=Math.min(n.right,g);var C=Math.max(m,v+h);n.bottom=Math.min(n.bottom,C)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function oi(t,e,n,i){var o=y.clone(t),r={width:e.width,height:e.height};return i.adjustX&&o.left<n.left&&(o.left=n.left),i.resizeWidth&&o.left>=n.left&&o.left+r.width>n.right&&(r.width-=o.left+r.width-n.right),i.adjustX&&o.left+r.width>n.right&&(o.left=Math.max(n.right-r.width,n.left)),i.adjustY&&o.top<n.top&&(o.top=n.top),i.resizeHeight&&o.top>=n.top&&o.top+r.height>n.bottom&&(r.height-=o.top+r.height-n.bottom),i.adjustY&&o.top+r.height>n.bottom&&(o.top=Math.max(n.bottom-r.height,n.top)),y.mix(o,r)}function Xe(t){var e,n,i;if(!y.isWindow(t)&&t.nodeType!==9)e=y.offset(t),n=y.outerWidth(t),i=y.outerHeight(t);else{var o=y.getWindow(t);e={left:y.getWindowScrollLeft(o),top:y.getWindowScrollTop(o)},n=y.viewportWidth(o),i=y.viewportHeight(o)}return e.width=n,e.height=i,e}function gt(t,e){var n=e.charAt(0),i=e.charAt(1),o=t.width,r=t.height,a=t.left,u=t.top;return n==="c"?u+=r/2:n==="b"&&(u+=r),i==="c"?a+=o/2:i==="r"&&(a+=o),{left:a,top:u}}function he(t,e,n,i,o){var r=gt(e,n[1]),a=gt(t,n[0]),u=[a.left-r.left,a.top-r.top];return{left:Math.round(t.left-u[0]+i[0]-o[0]),top:Math.round(t.top-u[1]+i[1]-o[1])}}function yt(t,e,n){return t.left<n.left||t.left+e.width>n.right}function wt(t,e,n){return t.top<n.top||t.top+e.height>n.bottom}function ri(t,e,n){return t.left>n.right||t.left+e.width<n.left}function ai(t,e,n){return t.top>n.bottom||t.top+e.height<n.top}function me(t,e,n){var i=[];return y.each(t,function(o){i.push(o.replace(e,function(r){return n[r]}))}),i}function ge(t,e){return t[e]=-t[e],t}function bt(t,e){var n;return/%$/.test(t)?n=parseInt(t.substring(0,t.length-1),10)/100*e:n=parseInt(t,10),n||0}function Pt(t,e){t[0]=bt(t[0],e.width),t[1]=bt(t[1],e.height)}function qt(t,e,n,i){var o=n.points,r=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,s=n.source||t;r=[].concat(r),a=[].concat(a),u=u||{};var l={},f=0,w=!!(u&&u.alwaysByViewport),v=Le(s,w),c=Xe(s);Pt(r,c),Pt(a,e);var h=he(c,e,o,r,a),p=y.merge(c,h);if(v&&(u.adjustX||u.adjustY)&&i){if(u.adjustX&&yt(h,c,v)){var m=me(o,/[lr]/gi,{l:"r",r:"l"}),b=ge(r,0),g=ge(a,0),C=he(c,e,m,b,g);ri(C,c,v)||(f=1,o=m,r=b,a=g)}if(u.adjustY&&wt(h,c,v)){var M=me(o,/[tb]/gi,{t:"b",b:"t"}),F=ge(r,1),A=ge(a,1),_=he(c,e,M,F,A);ai(_,c,v)||(f=1,o=M,r=F,a=A)}f&&(h=he(c,e,o,r,a),y.mix(p,h));var E=yt(h,c,v),z=wt(h,c,v);if(E||z){var k=o;E&&(k=me(o,/[lr]/gi,{l:"r",r:"l"})),z&&(k=me(o,/[tb]/gi,{t:"b",b:"t"})),o=k,r=n.offset||[0,0],a=n.targetOffset||[0,0]}l.adjustX=u.adjustX&&E,l.adjustY=u.adjustY&&z,(l.adjustX||l.adjustY)&&(p=oi(h,c,v,l))}return p.width!==c.width&&y.css(s,"width",y.width(s)+p.width-c.width),p.height!==c.height&&y.css(s,"height",y.height(s)+p.height-c.height),y.offset(s,{left:p.left,top:p.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:r,targetOffset:a,overflow:l}}function ui(t,e){var n=Le(t,e),i=Xe(t);return!n||i.left+i.width<=n.left||i.top+i.height<=n.top||i.left>=n.right||i.top>=n.bottom}function Ye(t,e,n){var i=n.target||e,o=Xe(i),r=!ui(i,n.overflow&&n.overflow.alwaysByViewport);return qt(t,o,n,r)}Ye.__getOffsetParent=Ve;Ye.__getVisibleRectForElement=Le;function si(t,e,n){var i,o,r=y.getDocument(t),a=r.defaultView||r.parentWindow,u=y.getWindowScrollLeft(a),s=y.getWindowScrollTop(a),l=y.viewportWidth(a),f=y.viewportHeight(a);"pageX"in e?i=e.pageX:i=u+e.clientX,"pageY"in e?o=e.pageY:o=s+e.clientY;var w={left:i,top:o,width:0,height:0},v=i>=0&&i<=u+l&&o>=0&&o<=s+f,c=[n.points[0],"cc"];return qt(t,w,lt(lt({},n),{},{points:c}),v)}const li=function(t){if(!t)return!1;if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox();if(e.width||e.height)return!0}if(t.getBoundingClientRect){var n=t.getBoundingClientRect();if(n.width||n.height)return!0}return!1};function fi(t,e){return t===e?!0:!t||!e?!1:"pageX"in e&&"pageY"in e?t.pageX===e.pageX&&t.pageY===e.pageY:"clientX"in e&&"clientY"in e?t.clientX===e.clientX&&t.clientY===e.clientY:!1}function ci(t,e){t!==document.activeElement&&ee(e,t)&&typeof t.focus=="function"&&t.focus()}function Ct(t,e){var n=null,i=null;function o(a){var u=le(a,1),s=u[0].target;if(document.documentElement.contains(s)){var l=s.getBoundingClientRect(),f=l.width,w=l.height,v=Math.floor(f),c=Math.floor(w);(n!==v||i!==c)&&Promise.resolve().then(function(){e({width:v,height:c})}),n=v,i=c}}var r=new un(o);return t&&r.observe(t),function(){r.disconnect()}}const vi=function(t,e){var n=!1,i=null;function o(){clearTimeout(i)}function r(a){if(!n||a===!0){if(t()===!1)return;n=!0,o(),i=setTimeout(function(){n=!1},e.value)}else o(),i=setTimeout(function(){n=!1,r()},e.value)}return[r,function(){n=!1,o()}]};var di={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function xt(t){return typeof t!="function"?null:t()}function Tt(t){return Et(t)!=="object"||!t?null:t}const pi=L({compatConfig:{MODE:3},name:"Align",props:di,emits:["align"],setup:function(e,n){var i=n.expose,o=n.slots,r=x({}),a=x(),u=vi(function(){var p=e.disabled,m=e.target,b=e.align,g=e.onAlign;if(!p&&m&&a.value){var C=a.value,M,F=xt(m),A=Tt(m);r.value.element=F,r.value.point=A,r.value.align=b;var _=document,E=_.activeElement;return F&&li(F)?M=Ye(C,F,b):A&&(M=si(C,A,b)),ci(E,C),g&&M&&g(C,M),!0}return!1},N(function(){return e.monitorBufferTime})),s=le(u,2),l=s[0],f=s[1],w=x({cancel:function(){}}),v=x({cancel:function(){}}),c=function(){var m=e.target,b=xt(m),g=Tt(m);a.value!==v.value.element&&(v.value.cancel(),v.value.element=a.value,v.value.cancel=Ct(a.value,l)),(r.value.element!==b||!fi(r.value.point,g)||!Tn(r.value.align,e.align))&&(l(),w.value.element!==b&&(w.value.cancel(),w.value.element=b,w.value.cancel=Ct(b,l)))};Be(function(){Ee(function(){c()})}),sn(function(){Ee(function(){c()})}),X(function(){return e.disabled},function(p){p?f():l()},{immediate:!0,flush:"post"});var h=x(null);return X(function(){return e.monitorWindowResize},function(p){p?h.value||(h.value=re(window,"resize",l)):h.value&&(h.value.remove(),h.value=null)},{flush:"post"}),ze(function(){w.value.cancel(),v.value.cancel(),h.value&&h.value.remove(),f()}),i({forceAlign:function(){return l(!0)}}),function(){var p=o==null?void 0:o.default();return p?Rt(p[0],{ref:a},!0,!0):null}}}),hi=L({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:Ie,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,n){var i=n.expose,o=n.attrs,r=n.slots,a=x(),u=x(),s=x(),l=_n(ln(e,"stretch")),f=le(l,2),w=f[0],v=f[1],c=function(){e.stretch&&v(e.getRootDomNode())},h=x(!1),p;X(function(){return e.visible},function(D){clearTimeout(p),D?p=setTimeout(function(){h.value=e.visible}):h.value=!1},{immediate:!0});var m=Fn(h,c),b=le(m,2),g=b[0],C=b[1],M=x(),F=function(){return e.point?e.point:e.getRootDomNode},A=function(){var V;(V=a.value)===null||V===void 0||V.forceAlign()},_=function(V,H){var I=e.getClassNameFromAlign(H),Y=s.value;if(s.value!==I&&(s.value=I),g.value==="align"){var O;Y!==I?Promise.resolve().then(function(){A()}):C(function(){var T;(T=M.value)===null||T===void 0||T.call(M)}),(O=e.onAlign)===null||O===void 0||O.call(e,V,H)}},E=N(function(){var D=Et(e.animation)==="object"?e.animation:zt(e);return["onAfterEnter","onAfterLeave"].forEach(function(V){var H=D[V];D[V]=function(I){C(),g.value="stable",H==null||H(I)}}),D}),z=function(){return new Promise(function(V){M.value=V})};X([E,g],function(){!E.value&&g.value==="motion"&&C()},{immediate:!0}),i({forceAlign:A,getElement:function(){return u.value.$el||u.value}});var k=N(function(){var D;return!((D=e.align)!==null&&D!==void 0&&D.points&&(g.value==="align"||g.value==="stable"))});return function(){var D,V=e.zIndex,H=e.align,I=e.prefixCls,Y=e.destroyPopupOnHide,O=e.onMouseenter,T=e.onMouseleave,R=e.onTouchstart,$=R===void 0?function(){}:R,U=e.onMousedown,Q=g.value,xe=[d(d({},w.value),{},{zIndex:V,opacity:Q==="motion"||Q==="stable"||!h.value?null:0,pointerEvents:!h.value&&Q!=="stable"?"none":null}),o.style],K=Dt((D=r.default)===null||D===void 0?void 0:D.call(r,{visible:e.visible}));K.length>1&&(K=P("div",{class:"".concat(I,"-content")},[K]));var ve=G(I,o.class,s.value),Te=h.value||!e.visible,Oe=Te?fn(E.value.name,E.value):{};return P(ke,d(d({ref:u},Oe),{},{onBeforeEnter:z}),{default:function(){return!Y||e.visible?Nt(P(pi,{target:F(),key:"popup",ref:a,monitorWindowResize:!0,disabled:k.value,align:H,onAlign:_},{default:function(){return P("div",d(d({class:ve,onMouseenter:O,onMouseleave:T,onMousedown:et(U,["capture"])},ye({},ae?"onTouchstartPassive":"onTouchstart",et($,["capture"]))),{},{style:xe}),[K])}}),[[cn,h.value]]):null}})}}}),mi=L({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:En,setup:function(e,n){var i=n.attrs,o=n.slots,r=n.expose,a=x(!1),u=x(!1),s=x();return X([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=s.value)===null||f===void 0||f.forceAlign()},getElement:function(){var f;return(f=s.value)===null||f===void 0?void 0:f.getElement()}}),function(){var l=d(d(d({},e),i),{},{visible:a.value}),f=u.value?P($n,d(d({},l),{},{mobile:e.mobile,ref:s}),{default:o.default}):P(hi,d(d({},l),{},{ref:s}),{default:o.default});return P("div",null,[P(It,l,null),f])}}});function gi(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function Ot(t,e,n){var i=t[e]||{};return d(d({},i),n)}function yi(t,e,n,i){for(var o=n.points,r=Object.keys(t),a=0;a<r.length;a+=1){var u=r[a];if(gi(t[u].points,o,i))return"".concat(e,"-placement-").concat(u)}return""}const wi={methods:{setState:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){var o=this.getDerivedStateFromProps(vn(this),d(d({},this.$data),i));if(o===null)return;i=d(d({},i),o||{})}dn(this.$data,i),this._.isMounted&&this.$forceUpdate(),Ee(function(){n&&n()})},__emit:function(){var e=[].slice.call(arguments,0),n=e[0];n="on".concat(n[0].toUpperCase()).concat(n.substring(1));var i=this.$props[n]||this.$attrs[n];if(e.length&&i)if(Array.isArray(i))for(var o=0,r=i.length;o<r;o++)i[o].apply(i,tt(e.slice(1)));else i.apply(void 0,tt(e.slice(1)))}}};function St(){}function bi(){return""}function Pi(t){return t?t.ownerDocument:window.document}var Ci=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"];const Li=L({compatConfig:{MODE:3},name:"Trigger",mixins:[wi],inheritAttrs:!1,props:{action:S.oneOfType([S.string,S.arrayOf(S.string)]).def([]),showAction:S.any.def([]),hideAction:S.any.def([]),getPopupClassNameFromAlign:S.any.def(bi),onPopupVisibleChange:Function,afterPopupVisibleChange:S.func.def(St),popup:S.any,popupStyle:{type:Object,default:void 0},prefixCls:S.string.def("rc-trigger-popup"),popupClassName:S.string.def(""),popupPlacement:String,builtinPlacements:S.object,popupTransitionName:String,popupAnimation:S.any,mouseEnterDelay:S.number.def(0),mouseLeaveDelay:S.number.def(.1),zIndex:Number,focusDelay:S.number.def(0),blurDelay:S.number.def(.15),getPopupContainer:Function,getDocument:S.func.def(Pi),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:S.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 n=N(function(){var s=e.popupPlacement,l=e.popupAlign,f=e.builtinPlacements;return s&&f?Ot(f,s,l):l}),i=pn(e.tryPopPortal),o=i.setPortal,r=i.popPortal,a=x(null),u=function(l){a.value=l};return{popPortal:r,setPortal:o,vcTriggerContext:$t("vcTriggerContext",{}),popupRef:a,setPopupRef:u,triggerRef:x(null),align:n,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,n,i=this.$props,o;return this.popupVisible!==void 0?o=!!i.popupVisible:o=!!i.defaultPopupVisible,Ci.forEach(function(r){e["fire".concat(r)]=function(a){e.fireEvents(r,a)}}),(n=this.setPortal)===null||n===void 0||n.call(this,P(nt,{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(){Ft("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown}),hn(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),te.cancel(this.attachId)},methods:{updatedCal:function(){var e=this.$props,n=this.$data;if(n.sPopupVisible){var i;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(i=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=re(i,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(i=i||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=re(i,"touchstart",this.onDocumentClick,ae?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(i=i||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=re(i,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=re(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter:function(e){var n=this.$props.mouseEnterDelay;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,n,n?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 n;e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&ee((n=this.popupRef)===null||n===void 0?void 0:n.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){ee(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 n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-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,n=this.vcTriggerContext,i=n===void 0?{}:n;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 n=e.target,i=this.getRootDomNode(),o=this.getPopupDomNode();(!ee(i,n)||this.isContextMenuOnly())&&!ee(o,n)&&!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 n=de(this.triggerRef);return de(e(n))}try{var i=de(this.triggerRef);if(i)return i}catch{}return de(this)},handleGetPopupClassFromAlign:function(e){var n=[],i=this.$props,o=i.popupPlacement,r=i.builtinPlacements,a=i.prefixCls,u=i.alignPoint,s=i.getPopupClassNameFromAlign;return o&&r&&n.push(yi(r,a,e,u)),s&&n.push(s(e)),n.join(" ")},getPopupAlign:function(){var e=this.$props,n=e.popupPlacement,i=e.popupAlign,o=e.builtinPlacements;return n&&o?Ot(o,n,i):i},getComponent:function(){var e=this,n={};this.isMouseEnterToShow()&&(n.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(n.onMouseleave=this.onPopupMouseleave),n.onMousedown=this.onPopupMouseDown,n[ae?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;var i=this.handleGetPopupClassFromAlign,o=this.getRootDomNode,r=this.getContainer,a=this.$attrs,u=this.$props,s=u.prefixCls,l=u.destroyPopupOnHide,f=u.popupClassName,w=u.popupAnimation,v=u.popupTransitionName,c=u.popupStyle,h=u.mask,p=u.maskAnimation,m=u.maskTransitionName,b=u.zIndex,g=u.stretch,C=u.alignPoint,M=u.mobile,F=u.forceRender,A=this.$data,_=A.sPopupVisible,E=A.point,z=d(d({prefixCls:s,destroyPopupOnHide:l,visible:_,point:C?E:null,align:this.align,animation:w,getClassNameFromAlign:i,stretch:g,getRootDomNode:o,mask:h,zIndex:b,transitionName:v,maskAnimation:p,maskTransitionName:m,getContainer:r,class:f,style:c,onAlign:a.onPopupAlign||St},n),{},{ref:this.setPopupRef,mobile:M,forceRender:F});return P(mi,z,{default:this.$slots.popup||function(){return mn(e,"popup")}})},attachParent:function(e){var n=this;te.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=te(function(){n.attachParent(e)})},getContainer:function(){var e=this.$props,n=e.getDocument,i=n(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,n){var i=this.alignPoint,o=this.sPopupVisible,r=this.onPopupVisibleChange;this.clearDelayTimer(),o!==e&&(gn(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:o}),r&&r(e)),i&&n&&e&&this.setPoint(n)},setPoint:function(e){var n=this.$props.alignPoint;!n||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate:function(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible:function(e,n,i){var o=this,r=n*1e3;if(this.clearDelayTimer(),r){var a=i?{pageX:i.pageX,pageY:i.pageY}:null;this.delayTimer=Dn(function(){o.setPopupVisible(e,a),o.clearDelayTimer()},r)}else this.setPopupVisible(e,i)},clearDelayTimer:function(){this.delayTimer&&(Nn(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 n=function(){},i=it(this);return this.childOriginEvents[e]&&i[e]?this["fire".concat(e)]:(n=this.childOriginEvents[e]||i[e]||n,n)},isClickToShow:function(){var e=this.$props,n=e.action,i=e.showAction;return n.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,n=e.action,i=e.showAction;return n.indexOf("contextmenu")!==-1||i.indexOf("contextmenu")!==-1},isClickToHide:function(){var e=this.$props,n=e.action,i=e.hideAction;return n.indexOf("click")!==-1||i.indexOf("click")!==-1},isMouseEnterToShow:function(){var e=this.$props,n=e.action,i=e.showAction;return n.indexOf("hover")!==-1||i.indexOf("mouseenter")!==-1},isMouseLeaveToHide:function(){var e=this.$props,n=e.action,i=e.hideAction;return n.indexOf("hover")!==-1||i.indexOf("mouseleave")!==-1},isFocusToShow:function(){var e=this.$props,n=e.action,i=e.showAction;return n.indexOf("focus")!==-1||i.indexOf("focus")!==-1},isBlurToHide:function(){var e=this.$props,n=e.action,i=e.hideAction;return n.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,n){this.childOriginEvents[e]&&this.childOriginEvents[e](n);var i=this.$props[e]||this.$attrs[e];i&&i(n)},close:function(){this.setPopupVisible(!1)}},render:function(){var e=this,n=this.$attrs,i=_t(yn(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[ae?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(a.onClick=this.createTwoChains("onClick"),a.onMousedown=this.createTwoChains("onMousedown"),a[ae?"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||!ee(f.target,f.relatedTarget))&&e.createTwoChains("onBlur")(f)});var u=G(r&&r.props&&r.props.class,n.class);u&&(a.class=u);var s=Rt(r,d(d({},a),{},{ref:"triggerRef"}),!0,!0);if(this.popPortal)return s;var l=P(nt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent});return P(Vt,null,[l,s])}});var Gt=Symbol("OverflowContextProviderKey"),He=L({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup:function(e,n){var i=n.slots;return Ft(Gt,N(function(){return e.value})),function(){var o;return(o=i.default)===null||o===void 0?void 0:o.call(i)}}}),xi=function(){return $t(Gt,N(function(){return null}))},Ti=["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"],J=void 0;const we=L({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:S.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:S.any,invalidate:Boolean},setup:function(e,n){var i=n.slots,o=n.expose,r=N(function(){return e.responsive&&!e.display}),a=x();o({itemNodeRef:a});function u(s){e.registerSize(e.itemKey,s)}return ze(function(){u(null)}),function(){var s,l=e.prefixCls,f=e.invalidate,w=e.item,v=e.renderItem,c=e.responsive;e.registerSize,e.itemKey,e.display;var h=e.order,p=e.component,m=p===void 0?"div":p,b=se(e,Ti),g=(s=i.default)===null||s===void 0?void 0:s.call(i),C=v&&w!==J?v(w):g,M;f||(M={opacity:r.value?0:1,height:r.value?0:J,overflowY:r.value?"hidden":J,order:c?h:J,pointerEvents:r.value?"none":J,position:r.value?"absolute":J});var F={};return r.value&&(F["aria-hidden"]=!0),P(Ht,{disabled:!c,onResize:function(_){var E=_.offsetWidth;u(E)}},{default:function(){return P(m,d(d(d({class:G(!f&&l),style:M},F),b),{},{ref:a}),{default:function(){return[C]}})}})}}});var Oi=["component"],Si=["className"],Mi=["class"];const Ai=L({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:S.any,title:S.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function}},setup:function(e,n){var i=n.slots,o=n.attrs,r=xi();return function(){if(!r.value){var a,u=e.component,s=u===void 0?"div":u,l=se(e,Oi);return P(s,d(d({},l),o),{default:function(){return[(a=i.default)===null||a===void 0?void 0:a.call(i)]}})}var f=r.value,w=f.className,v=se(f,Si),c=o.class,h=se(o,Mi);return P(He,{value:null},{default:function(){return[P(we,d(d(d({class:G(w,c)},v),h),e),i)]}})}}});var Ni=["class","style"],Qt="responsive",Zt="invalidate";function Di(t){return"+ ".concat(t.length," ...")}var Ri=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:S.any,component:String,itemComponent:S.any,onVisibleChange:Function,ssr:String,onMousedown:Function}},Ce=L({name:"Overflow",inheritAttrs:!1,props:Ri(),emits:["visibleChange"],setup:function(e,n){var i=n.attrs,o=n.emit,r=n.slots,a=N(function(){return e.ssr==="full"}),u=x(null),s=N(function(){return u.value||0}),l=x(new Map),f=x(0),w=x(0),v=x(0),c=x(null),h=x(null),p=N(function(){return h.value===null&&a.value?Number.MAX_SAFE_INTEGER:h.value||0}),m=x(!1),b=N(function(){return"".concat(e.prefixCls,"-item")}),g=N(function(){return Math.max(f.value,w.value)}),C=N(function(){return!!(e.data.length&&e.maxCount===Qt)}),M=N(function(){return e.maxCount===Zt}),F=N(function(){return C.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount}),A=N(function(){var O=e.data;return C.value?u.value===null&&a.value?O=e.data:O=e.data.slice(0,Math.min(e.data.length,s.value/e.itemWidth)):typeof e.maxCount=="number"&&(O=e.data.slice(0,e.maxCount)),O}),_=N(function(){return C.value?e.data.slice(p.value+1):e.data.slice(A.value.length)}),E=function(T,R){var $;return typeof e.itemKey=="function"?e.itemKey(T):($=e.itemKey&&(T==null?void 0:T[e.itemKey]))!==null&&$!==void 0?$:R},z=N(function(){return e.renderItem||function(O){return O}}),k=function(T,R){h.value=T,R||(m.value=T<e.data.length-1,o("visibleChange",T))},D=function(T,R){u.value=R.clientWidth},V=function(T,R){var $=new Map(l.value);R===null?$.delete(T):$.set(T,R),l.value=$},H=function(T,R){f.value=w.value,w.value=R},I=function(T,R){v.value=R},Y=function(T){return l.value.get(E(A.value[T],T))};return X([s,l,w,v,function(){return e.itemKey},A],function(){if(s.value&&g.value&&A.value){var O=v.value,T=A.value.length,R=T-1;if(!T){k(0),c.value=null;return}for(var $=0;$<T;$+=1){var U=Y($);if(U===void 0){k($-1,!0);break}if(O+=U,R===0&&O<=s.value||$===R-1&&O+Y(R)<=s.value){k(R),c.value=null;break}else if(O+g.value>s.value){k($-1),c.value=O-U-v.value+w.value;break}}e.suffix&&Y(0)+v.value>s.value&&(c.value=null)}}),function(){var O=m.value&&!!_.value.length,T=e.itemComponent,R=e.renderRawItem,$=e.renderRawRest,U=e.renderRest,Q=e.prefixCls,xe=Q===void 0?"rc-overflow":Q,K=e.suffix,ve=e.component,Te=ve===void 0?"div":ve,Oe=e.id,qe=e.onMousedown,Ge=i.class,Jt=i.style,en=se(i,Ni),Qe={};c.value!==null&&C.value&&(Qe={position:"absolute",left:"".concat(c.value,"px"),top:0});var ie={prefixCls:b.value,responsive:C.value,component:T,invalidate:M.value},tn=R?function(W,B){var Z=E(W,B);return P(He,{key:Z,value:d(d({},ie),{},{order:B,item:W,itemKey:Z,registerSize:V,display:B<=p.value})},{default:function(){return[R(W,B)]}})}:function(W,B){var Z=E(W,B);return P(we,d(d({},ie),{},{order:B,key:Z,item:W,renderItem:z.value,itemKey:Z,registerSize:V,display:B<=p.value}),null)},Se=function(){return null},Ze={order:O?p.value:Number.MAX_SAFE_INTEGER,className:"".concat(b.value," ").concat(b.value,"-rest"),registerSize:H,display:O};if($)$&&(Se=function(){return P(He,{value:d(d({},ie),Ze)},{default:function(){return[$(_.value)]}})});else{var Me=U||Di;Se=function(){return P(we,d(d({},ie),Ze),{default:function(){return typeof Me=="function"?Me(_.value):Me}})}}var nn=function(){var B;return P(Te,d({id:Oe,class:G(!M.value&&xe,Ge),style:Jt,onMousedown:qe},en),{default:function(){return[A.value.map(tn),F.value?Se():null,K&&P(we,d(d({},ie),{},{order:p.value,class:"".concat(b.value,"-suffix"),registerSize:I,display:!0,style:Qe}),{default:function(){return K}}),(B=r.default)===null||B===void 0?void 0:B.call(r)]}})};return P(Ht,{disabled:!C.value,onResize:D},{default:nn})}}});Ce.Item=Ai;Ce.RESPONSIVE=Qt;Ce.INVALIDATE=Zt;const Xi=Ce;function Yi(){var t=x({}),e=null;return Be(function(){e=rt.subscribe(function(n){t.value=n})}),ze(function(){rt.unsubscribe(e)}),t}function Ui(t){var e=wn();return bn(function(){e.value=t()},{flush:"sync"}),e}function Ki(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=0,n=t.length;e<n;e++)if(t[e]!==void 0)return t[e]}var Ei={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const $i=Ei;function Mt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),i.forEach(function(o){Fi(t,o,n[o])})}return t}function Fi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ue=function(e,n){var i=Mt({},e,n.attrs);return P(kt,Mt({},i,{icon:$i}),null)};Ue.displayName="RightOutlined";Ue.inheritAttrs=!1;const qi=Ue;var Gi=Symbol("siderCollapsed"),Qi=Symbol("siderHookProvider"),_i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const Vi=_i;function At(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),i.forEach(function(o){Hi(t,o,n[o])})}return t}function Hi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ke=function(e,n){var i=At({},e,n.attrs);return P(kt,At({},i,{icon:Vi}),null)};Ke.displayName="LeftOutlined";Ke.inheritAttrs=!1;const Zi=Ke;var ki={small:8,middle:16,large:24},Bi=function(){return{prefixCls:String,size:{type:[String,Number,Array]},direction:S.oneOf(ot("horizontal","vertical")).def("horizontal"),align:S.oneOf(ot("start","end","center","baseline")),wrap:{type:Boolean,default:void 0}}};function zi(t){return typeof t=="string"?ki[t]:t||0}var Ii=L({compatConfig:{MODE:3},name:"ASpace",props:Bi(),slots:["split"],setup:function(e,n){var i=n.slots,o=Cn("space",e),r=o.prefixCls,a=o.space,u=o.direction,s=On(),l=N(function(){var m,b,g;return(m=(b=e.size)!==null&&b!==void 0?b:(g=a.value)===null||g===void 0?void 0:g.size)!==null&&m!==void 0?m:"small"}),f=x(),w=x();X(l,function(){var m=(Array.isArray(l.value)?l.value:[l.value,l.value]).map(function(g){return zi(g)}),b=le(m,2);f.value=b[0],w.value=b[1]},{immediate:!0});var v=N(function(){return e.align===void 0&&e.direction==="horizontal"?"center":e.align}),c=N(function(){var m;return G(r.value,"".concat(r.value,"-").concat(e.direction),(m={},ye(m,"".concat(r.value,"-rtl"),u.value==="rtl"),ye(m,"".concat(r.value,"-align-").concat(v.value),v.value),m))}),h=N(function(){return u.value==="rtl"?"marginLeft":"marginRight"}),p=N(function(){var m={};return s.value&&(m.columnGap="".concat(f.value,"px"),m.rowGap="".concat(w.value,"px")),d(d({},m),e.wrap&&{flexWrap:"wrap",marginBottom:"".concat(-w.value,"px")})});return function(){var m,b,g=e.wrap,C=e.direction,M=C===void 0?"horizontal":C,F=_t((m=i.default)===null||m===void 0?void 0:m.call(i)),A=F.length;if(A===0)return null;var _=(b=i.split)===null||b===void 0?void 0:b.call(i),E="".concat(r.value,"-item"),z=f.value,k=A-1;return P("div",{class:c.value,style:p.value},[F.map(function(D,V){var H={};return s.value||(M==="vertical"?V<k&&(H={marginBottom:"".concat(z/(_?2:1),"px")}):H=d(d({},V<k&&ye({},h.value,"".concat(z/(_?2:1),"px"))),g&&{paddingBottom:"".concat(w.value,"px")})),P(Vt,null,[P("div",{class:E,style:H},[D]),V<k&&_&&P("span",{class:"".concat(E,"-split"),style:H},[_])])})])}}});const Ji=Pn(Ii);export{wi as B,Zi as L,Xi as O,qi as R,Ji as S,Li as T,Gi as a,Qi as b,Ui as e,Ki as f,li as i,Yi as u};