Files
appco_dist/.output/public/_nuxt/CwW7ictx.js
T
2025-07-27 10:51:22 +03:30

2 lines
49 KiB
JavaScript

import{aX as w,aI as g,bS as ne,C as x,U as xt,aQ as X,a7 as ie,ak as Oe,d as U,r as L,bT as re,aP as Q,s as A,a1 as z,o as se,b6 as Y,e as xe,k as j,bU as Z,bV as Se,ae as wt,bW as Me,bX as tt,ag as $e,a_ as ft,bY as De,bs as Ae,a8 as Ne,bZ as _t,b_ as et,b$ as Ee,aZ as ae,c0 as _e,c1 as kt,c2 as ke,a2 as Ve,c3 as Be,c4 as Re,c5 as rt,bn as He,c6 as je,bm as We,b7 as Ie,bg as Fe,aW as st,bc as Le,bd as le,c7 as Xe,be as Ye,aK as ze,aL as Ue,bb as qe,c8 as Ge,c9 as Ze,ca as Ke,cb as Qe}from"./vNwORUzZ.js";import{i as Je}from"./B1PUzC5B.js";import{i as to}from"./DrLtTiRh.js";import{i as eo,g as oo}from"./B5Zazp3a.js";const no=(t,o,e,n,i)=>{const r=t/2,s=0,a=r,u=e*1/Math.sqrt(2),l=r-e*(1-1/Math.sqrt(2)),p=r-o*(1/Math.sqrt(2)),f=e*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),d=2*r-p,c=f,m=2*r-u,y=l,S=2*r-s,O=a,T=r*Math.sqrt(2)+e*(Math.sqrt(2)-2),C=e*(Math.sqrt(2)-1);return{pointerEvents:"none",width:t,height:t,overflow:"hidden","&::after":{content:'""',position:"absolute",width:T,height:T,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${o}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:t/2,background:n,clipPath:{_multi_value_:!0,value:[`polygon(${C}px 100%, 50% ${C}px, ${2*r-C}px 100%, ${C}px 100%)`,`path('M ${s} ${a} A ${e} ${e} 0 0 0 ${u} ${l} L ${p} ${f} A ${o} ${o} 0 0 1 ${d} ${c} L ${m} ${y} A ${e} ${e} 0 0 0 ${S} ${O} Z')`]},content:'""'}}};function io(){return""}function ro(t){return t?t.ownerDocument:window.document}function ue(){}const so=()=>({action:w.oneOfType([w.string,w.arrayOf(w.string)]).def([]),showAction:w.any.def([]),hideAction:w.any.def([]),getPopupClassNameFromAlign:w.any.def(io),onPopupVisibleChange:Function,afterPopupVisibleChange:w.func.def(ue),popup:w.any,arrow:w.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:w.string.def("rc-trigger-popup"),popupClassName:w.string.def(""),popupPlacement:String,builtinPlacements:w.object,popupTransitionName:String,popupAnimation:w.any,mouseEnterDelay:w.number.def(0),mouseLeaveDelay:w.number.def(.1),zIndex:Number,focusDelay:w.number.def(0),blurDelay:w.number.def(.15),getPopupContainer:Function,getDocument:w.func.def(ro),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:w.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),St={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,arrow:{type:Boolean,default:!0},animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},ao=g(g({},St),{mobile:{type:Object}}),lo=g(g({},St),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function ce(t){const{prefixCls:o,visible:e,zIndex:n,mask:i,maskAnimation:r,maskTransitionName:s}=t;if(!i)return null;let a={};return(s||r)&&(a=ne({prefixCls:o,transitionName:s,animation:r})),x(xt,X({appear:!0},a),{default:()=>[ie(x("div",{style:{zIndex:n},class:`${o}-mask`},null),[[Oe("if"),e]])]})}ce.displayName="Mask";const uo=U({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:ao,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,o){let{expose:e,slots:n}=o;const i=L();return e({forceAlign:()=>{},getElement:()=>i.value}),()=>{var r;const{zIndex:s,visible:a,prefixCls:u,mobile:{popupClassName:l,popupStyle:p,popupMotion:f={},popupRender:d}={}}=t,c=g({zIndex:s},p);let m=re((r=n.default)===null||r===void 0?void 0:r.call(n));m.length>1&&(m=x("div",{class:`${u}-content`},[m])),d&&(m=d(m));const y=Q(u,l);return x(xt,X({ref:i},f),{default:()=>[a?x("div",{class:y,style:c},[m]):null]})}}});var co=function(t,o,e,n){function i(r){return r instanceof e?r:new e(function(s){s(r)})}return new(e||(e=Promise))(function(r,s){function a(p){try{l(n.next(p))}catch(f){s(f)}}function u(p){try{l(n.throw(p))}catch(f){s(f)}}function l(p){p.done?r(p.value):i(p.value).then(a,u)}l((n=n.apply(t,o||[])).next())})};const Vt=["measure","align",null,"motion"],po=(t,o)=>{const e=A(null),n=A(),i=A(!1);function r(u){i.value||(e.value=u)}function s(){Y.cancel(n.value)}function a(u){s(),n.value=Y(()=>{let l=e.value;switch(e.value){case"align":l="motion";break;case"motion":l="stable";break}r(l),u==null||u()})}return z(t,()=>{r("measure")},{immediate:!0,flush:"post"}),se(()=>{z(e,()=>{switch(e.value){case"measure":o();break}e.value&&(n.value=Y(()=>co(void 0,void 0,void 0,function*(){const u=Vt.indexOf(e.value),l=Vt[u+1];l&&u!==-1&&r(l)})))},{immediate:!0,flush:"post"})}),xe(()=>{i.value=!0,s()}),[e,a]},fo=t=>{const o=A({width:0,height:0});function e(i){o.value={width:i.offsetWidth,height:i.offsetHeight}}return[j(()=>{const i={};if(t.value){const{width:r,height:s}=o.value;t.value.indexOf("height")!==-1&&s?i.height=`${s}px`:t.value.indexOf("minHeight")!==-1&&s&&(i.minHeight=`${s}px`),t.value.indexOf("width")!==-1&&r?i.width=`${r}px`:t.value.indexOf("minWidth")!==-1&&r&&(i.minWidth=`${r}px`)}return i}),e]};function Bt(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);o&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function Rt(t){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?Bt(Object(e),!0).forEach(function(n){ho(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Bt(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Pt(t){"@babel/helpers - typeof";return Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Pt(t)}function ho(t,o,e){return o in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}var J,go={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function dt(){if(J!==void 0)return J;J="";var t=document.createElement("p").style,o="Transform";for(var e in go)e+o in t&&(J=e);return J}function pe(){return dt()?"".concat(dt(),"TransitionProperty"):"transitionProperty"}function ht(){return dt()?"".concat(dt(),"Transform"):"transform"}function Ht(t,o){var e=pe();e&&(t.style[e]=o,e!=="transitionProperty"&&(t.style.transitionProperty=o))}function mt(t,o){var e=ht();e&&(t.style[e]=o,e!=="transform"&&(t.style.transform=o))}function mo(t){return t.style.transitionProperty||t.style[pe()]}function vo(t){var o=window.getComputedStyle(t,null),e=o.getPropertyValue("transform")||o.getPropertyValue(ht());if(e&&e!=="none"){var n=e.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(n[12]||n[4],0),y:parseFloat(n[13]||n[5],0)}}return{x:0,y:0}}var yo=/matrix\((.*)\)/,bo=/matrix3d\((.*)\)/;function wo(t,o){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("transform")||e.getPropertyValue(ht());if(n&&n!=="none"){var i,r=n.match(yo);if(r)r=r[1],i=r.split(",").map(function(a){return parseFloat(a,10)}),i[4]=o.x,i[5]=o.y,mt(t,"matrix(".concat(i.join(","),")"));else{var s=n.match(bo)[1];i=s.split(",").map(function(a){return parseFloat(a,10)}),i[12]=o.x,i[13]=o.y,mt(t,"matrix3d(".concat(i.join(","),")"))}}else mt(t,"translateX(".concat(o.x,"px) translateY(").concat(o.y,"px) translateZ(0)"))}var Po=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,it;function jt(t){var o=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=o}function K(t,o,e){var n=e;if(Pt(o)==="object"){for(var i in o)o.hasOwnProperty(i)&&K(t,i,o[i]);return}if(typeof n<"u"){typeof n=="number"&&(n="".concat(n,"px")),t.style[o]=n;return}return it(t,o)}function To(t){var o,e,n,i=t.ownerDocument,r=i.body,s=i&&i.documentElement;return o=t.getBoundingClientRect(),e=Math.floor(o.left),n=Math.floor(o.top),e-=s.clientLeft||r.clientLeft||0,n-=s.clientTop||r.clientTop||0,{left:e,top:n}}function fe(t,o){var e=t["page".concat(o?"Y":"X","Offset")],n="scroll".concat(o?"Top":"Left");if(typeof e!="number"){var i=t.document;e=i.documentElement[n],typeof e!="number"&&(e=i.body[n])}return e}function de(t){return fe(t)}function he(t){return fe(t,!0)}function nt(t){var o=To(t),e=t.ownerDocument,n=e.defaultView||e.parentWindow;return o.left+=de(n),o.top+=he(n),o}function Mt(t){return t!=null&&t==t.window}function ge(t){return Mt(t)?t.document:t.nodeType===9?t:t.ownerDocument}function Co(t,o,e){var n=e,i="",r=ge(t);return n=n||r.defaultView.getComputedStyle(t,null),n&&(i=n.getPropertyValue(o)||n[o]),i}var Oo=new RegExp("^(".concat(Po,")(?!px)[a-z%]+$"),"i"),xo=/^(top|right|bottom|left)$/,vt="currentStyle",yt="runtimeStyle",G="left",So="px";function Mo(t,o){var e=t[vt]&&t[vt][o];if(Oo.test(e)&&!xo.test(o)){var n=t.style,i=n[G],r=t[yt][G];t[yt][G]=t[vt][G],n[G]=o==="fontSize"?"1em":e||0,e=n.pixelLeft+So,n[G]=i,t[yt][G]=r}return e===""?"auto":e}typeof window<"u"&&(it=window.getComputedStyle?Co:Mo);function at(t,o){return t==="left"?o.useCssRight?"right":t:o.useCssBottom?"bottom":t}function Wt(t){if(t==="left")return"right";if(t==="right")return"left";if(t==="top")return"bottom";if(t==="bottom")return"top"}function It(t,o,e){K(t,"position")==="static"&&(t.style.position="relative");var n=-999,i=-999,r=at("left",e),s=at("top",e),a=Wt(r),u=Wt(s);r!=="left"&&(n=999),s!=="top"&&(i=999);var l="",p=nt(t);("left"in o||"top"in o)&&(l=mo(t)||"",Ht(t,"none")),"left"in o&&(t.style[a]="",t.style[r]="".concat(n,"px")),"top"in o&&(t.style[u]="",t.style[s]="".concat(i,"px")),jt(t);var f=nt(t),d={};for(var c in o)if(o.hasOwnProperty(c)){var m=at(c,e),y=c==="left"?n:i,S=p[c]-f[c];m===c?d[m]=y+S:d[m]=y-S}K(t,d),jt(t),("left"in o||"top"in o)&&Ht(t,l);var O={};for(var T in o)if(o.hasOwnProperty(T)){var C=at(T,e),_=o[T]-p[T];T===C?O[C]=d[C]+_:O[C]=d[C]-_}K(t,O)}function $o(t,o){var e=nt(t),n=vo(t),i={x:n.x,y:n.y};"left"in o&&(i.x=n.x+o.left-e.left),"top"in o&&(i.y=n.y+o.top-e.top),wo(t,i)}function Do(t,o,e){if(e.ignoreShake){var n=nt(t),i=n.left.toFixed(0),r=n.top.toFixed(0),s=o.left.toFixed(0),a=o.top.toFixed(0);if(i===s&&r===a)return}e.useCssRight||e.useCssBottom?It(t,o,e):e.useCssTransform&&ht()in document.body.style?$o(t,o):It(t,o,e)}function $t(t,o){for(var e=0;e<t.length;e++)o(t[e])}function me(t){return it(t,"boxSizing")==="border-box"}var Ao=["margin","border","padding"],Tt=-1,No=2,Ct=1,Eo=0;function _o(t,o,e){var n={},i=t.style,r;for(r in o)o.hasOwnProperty(r)&&(n[r]=i[r],i[r]=o[r]);e.call(t);for(r in o)o.hasOwnProperty(r)&&(i[r]=n[r])}function ot(t,o,e){var n=0,i,r,s;for(r=0;r<o.length;r++)if(i=o[r],i)for(s=0;s<e.length;s++){var a=void 0;i==="border"?a="".concat(i).concat(e[s],"Width"):a=i+e[s],n+=parseFloat(it(t,a))||0}return n}var W={getParent:function(o){var e=o;do e.nodeType===11&&e.host?e=e.host:e=e.parentNode;while(e&&e.nodeType!==1&&e.nodeType!==9);return e}};$t(["Width","Height"],function(t){W["doc".concat(t)]=function(o){var e=o.document;return Math.max(e.documentElement["scroll".concat(t)],e.body["scroll".concat(t)],W["viewport".concat(t)](e))},W["viewport".concat(t)]=function(o){var e="client".concat(t),n=o.document,i=n.body,r=n.documentElement,s=r[e];return n.compatMode==="CSS1Compat"&&s||i&&i[e]||s}});function Ft(t,o,e){var n=e;if(Mt(t))return o==="width"?W.viewportWidth(t):W.viewportHeight(t);if(t.nodeType===9)return o==="width"?W.docWidth(t):W.docHeight(t);var i=o==="width"?["Left","Right"]:["Top","Bottom"],r=Math.floor(o==="width"?t.getBoundingClientRect().width:t.getBoundingClientRect().height),s=me(t),a=0;(r==null||r<=0)&&(r=void 0,a=it(t,o),(a==null||Number(a)<0)&&(a=t.style[o]||0),a=Math.floor(parseFloat(a))||0),n===void 0&&(n=s?Ct:Tt);var u=r!==void 0||s,l=r||a;return n===Tt?u?l-ot(t,["border","padding"],i):a:u?n===Ct?l:l+(n===No?-ot(t,["border"],i):ot(t,["margin"],i)):a+ot(t,Ao.slice(n),i)}var ko={position:"absolute",visibility:"hidden",display:"block"};function Lt(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];var n,i=o[0];return i.offsetWidth!==0?n=Ft.apply(void 0,o):_o(i,ko,function(){n=Ft.apply(void 0,o)}),n}$t(["width","height"],function(t){var o=t.charAt(0).toUpperCase()+t.slice(1);W["outer".concat(o)]=function(n,i){return n&&Lt(n,t,i?Eo:Ct)};var e=t==="width"?["Left","Right"]:["Top","Bottom"];W[t]=function(n,i){var r=i;if(r!==void 0){if(n){var s=me(n);return s&&(r+=ot(n,["padding","border"],e)),K(n,t,r)}return}return n&&Lt(n,t,Tt)}});function ve(t,o){for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e]);return t}var v={getWindow:function(o){if(o&&o.document&&o.setTimeout)return o;var e=o.ownerDocument||o;return e.defaultView||e.parentWindow},getDocument:ge,offset:function(o,e,n){if(typeof e<"u")Do(o,e,n||{});else return nt(o)},isWindow:Mt,each:$t,css:K,clone:function(o){var e,n={};for(e in o)o.hasOwnProperty(e)&&(n[e]=o[e]);var i=o.overflow;if(i)for(e in o)o.hasOwnProperty(e)&&(n.overflow[e]=o.overflow[e]);return n},mix:ve,getWindowScrollLeft:function(o){return de(o)},getWindowScrollTop:function(o){return he(o)},merge:function(){for(var o={},e=0;e<arguments.length;e++)v.mix(o,e<0||arguments.length<=e?void 0:arguments[e]);return o},viewportWidth:0,viewportHeight:0};ve(v,W);var bt=v.getParent;function Ot(t){if(v.isWindow(t)||t.nodeType===9)return null;var o=v.getDocument(t),e=o.body,n,i=v.css(t,"position"),r=i==="fixed"||i==="absolute";if(!r)return t.nodeName.toLowerCase()==="html"?null:bt(t);for(n=bt(t);n&&n!==e&&n.nodeType!==9;n=bt(n))if(i=v.css(n,"position"),i!=="static")return n;return null}var Xt=v.getParent;function Vo(t){if(v.isWindow(t)||t.nodeType===9)return!1;var o=v.getDocument(t),e=o.body,n=null;for(n=Xt(t);n&&n!==e&&n!==o;n=Xt(n)){var i=v.css(n,"position");if(i==="fixed")return!0}return!1}function Dt(t,o){for(var e={left:0,right:1/0,top:0,bottom:1/0},n=Ot(t),i=v.getDocument(t),r=i.defaultView||i.parentWindow,s=i.body,a=i.documentElement;n;){if((navigator.userAgent.indexOf("MSIE")===-1||n.clientWidth!==0)&&n!==s&&n!==a&&v.css(n,"overflow")!=="visible"){var u=v.offset(n);u.left+=n.clientLeft,u.top+=n.clientTop,e.top=Math.max(e.top,u.top),e.right=Math.min(e.right,u.left+n.clientWidth),e.bottom=Math.min(e.bottom,u.top+n.clientHeight),e.left=Math.max(e.left,u.left)}else if(n===s||n===a)break;n=Ot(n)}var l=null;if(!v.isWindow(t)&&t.nodeType!==9){l=t.style.position;var p=v.css(t,"position");p==="absolute"&&(t.style.position="fixed")}var f=v.getWindowScrollLeft(r),d=v.getWindowScrollTop(r),c=v.viewportWidth(r),m=v.viewportHeight(r),y=a.scrollWidth,S=a.scrollHeight,O=window.getComputedStyle(s);if(O.overflowX==="hidden"&&(y=r.innerWidth),O.overflowY==="hidden"&&(S=r.innerHeight),t.style&&(t.style.position=l),o||Vo(t))e.left=Math.max(e.left,f),e.top=Math.max(e.top,d),e.right=Math.min(e.right,f+c),e.bottom=Math.min(e.bottom,d+m);else{var T=Math.max(y,f+c);e.right=Math.min(e.right,T);var C=Math.max(S,d+m);e.bottom=Math.min(e.bottom,C)}return e.top>=0&&e.left>=0&&e.bottom>e.top&&e.right>e.left?e:null}function Bo(t,o,e,n){var i=v.clone(t),r={width:o.width,height:o.height};return n.adjustX&&i.left<e.left&&(i.left=e.left),n.resizeWidth&&i.left>=e.left&&i.left+r.width>e.right&&(r.width-=i.left+r.width-e.right),n.adjustX&&i.left+r.width>e.right&&(i.left=Math.max(e.right-r.width,e.left)),n.adjustY&&i.top<e.top&&(i.top=e.top),n.resizeHeight&&i.top>=e.top&&i.top+r.height>e.bottom&&(r.height-=i.top+r.height-e.bottom),n.adjustY&&i.top+r.height>e.bottom&&(i.top=Math.max(e.bottom-r.height,e.top)),v.mix(i,r)}function At(t){var o,e,n;if(!v.isWindow(t)&&t.nodeType!==9)o=v.offset(t),e=v.outerWidth(t),n=v.outerHeight(t);else{var i=v.getWindow(t);o={left:v.getWindowScrollLeft(i),top:v.getWindowScrollTop(i)},e=v.viewportWidth(i),n=v.viewportHeight(i)}return o.width=e,o.height=n,o}function Yt(t,o){var e=o.charAt(0),n=o.charAt(1),i=t.width,r=t.height,s=t.left,a=t.top;return e==="c"?a+=r/2:e==="b"&&(a+=r),n==="c"?s+=i/2:n==="r"&&(s+=i),{left:s,top:a}}function lt(t,o,e,n,i){var r=Yt(o,e[1]),s=Yt(t,e[0]),a=[s.left-r.left,s.top-r.top];return{left:Math.round(t.left-a[0]+n[0]-i[0]),top:Math.round(t.top-a[1]+n[1]-i[1])}}function zt(t,o,e){return t.left<e.left||t.left+o.width>e.right}function Ut(t,o,e){return t.top<e.top||t.top+o.height>e.bottom}function Ro(t,o,e){return t.left>e.right||t.left+o.width<e.left}function Ho(t,o,e){return t.top>e.bottom||t.top+o.height<e.top}function ut(t,o,e){var n=[];return v.each(t,function(i){n.push(i.replace(o,function(r){return e[r]}))}),n}function ct(t,o){return t[o]=-t[o],t}function qt(t,o){var e;return/%$/.test(t)?e=parseInt(t.substring(0,t.length-1),10)/100*o:e=parseInt(t,10),e||0}function Gt(t,o){t[0]=qt(t[0],o.width),t[1]=qt(t[1],o.height)}function ye(t,o,e,n){var i=e.points,r=e.offset||[0,0],s=e.targetOffset||[0,0],a=e.overflow,u=e.source||t;r=[].concat(r),s=[].concat(s),a=a||{};var l={},p=0,f=!!(a&&a.alwaysByViewport),d=Dt(u,f),c=At(u);Gt(r,c),Gt(s,o);var m=lt(c,o,i,r,s),y=v.merge(c,m);if(d&&(a.adjustX||a.adjustY)&&n){if(a.adjustX&&zt(m,c,d)){var S=ut(i,/[lr]/gi,{l:"r",r:"l"}),O=ct(r,0),T=ct(s,0),C=lt(c,o,S,O,T);Ro(C,c,d)||(p=1,i=S,r=O,s=T)}if(a.adjustY&&Ut(m,c,d)){var _=ut(i,/[tb]/gi,{t:"b",b:"t"}),I=ct(r,1),P=ct(s,1),V=lt(c,o,_,I,P);Ho(V,c,d)||(p=1,i=_,r=I,s=P)}p&&(m=lt(c,o,i,r,s),v.mix(y,m));var $=zt(m,c,d),N=Ut(m,c,d);if($||N){var h=i;$&&(h=ut(i,/[lr]/gi,{l:"r",r:"l"})),N&&(h=ut(i,/[tb]/gi,{t:"b",b:"t"})),i=h,r=e.offset||[0,0],s=e.targetOffset||[0,0]}l.adjustX=a.adjustX&&$,l.adjustY=a.adjustY&&N,(l.adjustX||l.adjustY)&&(y=Bo(m,c,d,l))}return y.width!==c.width&&v.css(u,"width",v.width(u)+y.width-c.width),y.height!==c.height&&v.css(u,"height",v.height(u)+y.height-c.height),v.offset(u,{left:y.left,top:y.top},{useCssRight:e.useCssRight,useCssBottom:e.useCssBottom,useCssTransform:e.useCssTransform,ignoreShake:e.ignoreShake}),{points:i,offset:r,targetOffset:s,overflow:l}}function jo(t,o){var e=Dt(t,o),n=At(t);return!e||n.left+n.width<=e.left||n.top+n.height<=e.top||n.left>=e.right||n.top>=e.bottom}function Nt(t,o,e){var n=e.target||o,i=At(n),r=!jo(n,e.overflow&&e.overflow.alwaysByViewport);return ye(t,i,e,r)}Nt.__getOffsetParent=Ot;Nt.__getVisibleRectForElement=Dt;function Wo(t,o,e){var n,i,r=v.getDocument(t),s=r.defaultView||r.parentWindow,a=v.getWindowScrollLeft(s),u=v.getWindowScrollTop(s),l=v.viewportWidth(s),p=v.viewportHeight(s);"pageX"in o?n=o.pageX:n=a+o.clientX,"pageY"in o?i=o.pageY:i=u+o.clientY;var f={left:n,top:i,width:0,height:0},d=n>=0&&n<=a+l&&i>=0&&i<=u+p,c=[e.points[0],"cc"];return ye(t,f,Rt(Rt({},e),{},{points:c}),d)}function Io(t,o){return t===o?!0:!t||!o?!1:"pageX"in o&&"pageY"in o?t.pageX===o.pageX&&t.pageY===o.pageY:"clientX"in o&&"clientY"in o?t.clientX===o.clientX&&t.clientY===o.clientY:!1}function Fo(t,o){t!==document.activeElement&&Z(o,t)&&typeof t.focus=="function"&&t.focus()}function Zt(t,o){let e=null,n=null;function i(s){let[{target:a}]=s;if(!document.documentElement.contains(a))return;const{width:u,height:l}=a.getBoundingClientRect(),p=Math.floor(u),f=Math.floor(l);(e!==p||n!==f)&&Promise.resolve().then(()=>{o({width:p,height:f})}),e=p,n=f}const r=new Je(i);return t&&r.observe(t),()=>{r.disconnect()}}const Lo=(t,o)=>{let e=!1,n=null;function i(){clearTimeout(n)}function r(s){if(!e||s===!0){if(t()===!1)return;e=!0,i(),n=setTimeout(()=>{e=!1},o.value)}else i(),n=setTimeout(()=>{e=!1,r()},o.value)}return[r,()=>{e=!1,i()}]},Xo={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function Kt(t){return typeof t!="function"?null:t()}function Qt(t){return typeof t!="object"||!t?null:t}const Yo=U({compatConfig:{MODE:3},name:"Align",props:Xo,emits:["align"],setup(t,o){let{expose:e,slots:n}=o;const i=L({}),r=L(),[s,a]=Lo(()=>{const{disabled:d,target:c,align:m,onAlign:y}=t;if(!d&&c&&r.value){const S=r.value;let O;const T=Kt(c),C=Qt(c);i.value.element=T,i.value.point=C,i.value.align=m;const{activeElement:_}=document;return T&&Se(T)?O=Nt(S,T,m):C&&(O=Wo(S,C,m)),Fo(_,S),y&&O&&y(S,O),!0}return!1},j(()=>t.monitorBufferTime)),u=L({cancel:()=>{}}),l=L({cancel:()=>{}}),p=()=>{const d=t.target,c=Kt(d),m=Qt(d);r.value!==l.value.element&&(l.value.cancel(),l.value.element=r.value,l.value.cancel=Zt(r.value,s)),(i.value.element!==c||!Io(i.value.point,m)||!to(i.value.align,t.align))&&(s(),u.value.element!==c&&(u.value.cancel(),u.value.element=c,u.value.cancel=Zt(c,s)))};se(()=>{wt(()=>{p()})}),Me(()=>{wt(()=>{p()})}),z(()=>t.disabled,d=>{d?a():s()},{immediate:!0,flush:"post"});const f=L(null);return z(()=>t.monitorWindowResize,d=>{d?f.value||(f.value=tt(window,"resize",s)):f.value&&(f.value.remove(),f.value=null)},{flush:"post"}),$e(()=>{u.value.cancel(),l.value.cancel(),f.value&&f.value.remove(),a()}),e({forceAlign:()=>s(!0)}),()=>{const d=n==null?void 0:n.default();return d?ft(d[0],{ref:r},!0,!0):null}}}),zo=U({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:St,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,o){let{expose:e,attrs:n,slots:i}=o;const r=A(),s=A(),a=A(),[u,l]=fo(De(t,"stretch")),p=()=>{t.stretch&&l(t.getRootDomNode())},f=A(!1);let d;z(()=>t.visible,P=>{clearTimeout(d),P?d=setTimeout(()=>{f.value=t.visible}):f.value=!1},{immediate:!0});const[c,m]=po(f,p),y=A(),S=()=>t.point?t.point:t.getRootDomNode,O=()=>{var P;(P=r.value)===null||P===void 0||P.forceAlign()},T=(P,V)=>{var $;const N=t.getClassNameFromAlign(V),h=a.value;a.value!==N&&(a.value=N),c.value==="align"&&(h!==N?Promise.resolve().then(()=>{O()}):m(()=>{var b;(b=y.value)===null||b===void 0||b.call(y)}),($=t.onAlign)===null||$===void 0||$.call(t,P,V))},C=j(()=>{const P=typeof t.animation=="object"?t.animation:ne(t);return["onAfterEnter","onAfterLeave"].forEach(V=>{const $=P[V];P[V]=N=>{m(),c.value="stable",$==null||$(N)}}),P}),_=()=>new Promise(P=>{y.value=P});z([C,c],()=>{!C.value&&c.value==="motion"&&m()},{immediate:!0}),e({forceAlign:O,getElement:()=>s.value.$el||s.value});const I=j(()=>{var P;return!(!((P=t.align)===null||P===void 0)&&P.points&&(c.value==="align"||c.value==="stable"))});return()=>{var P;const{zIndex:V,align:$,prefixCls:N,destroyPopupOnHide:h,onMouseenter:b,onMouseleave:H,onTouchstart:D=()=>{},onMousedown:k}=t,M=c.value,E=[g(g({},u.value),{zIndex:V,opacity:M==="motion"||M==="stable"||!f.value?null:0,pointerEvents:!f.value&&M!=="stable"?"none":null}),n.style];let q=re((P=i.default)===null||P===void 0?void 0:P.call(i,{visible:t.visible}));q.length>1&&(q=x("div",{class:`${N}-content`},[q]));const F=Q(N,n.class,a.value,!t.arrow&&`${N}-arrow-hidden`),gt=f.value||!t.visible?Ae(C.value.name,C.value):{};return x(xt,X(X({ref:s},gt),{},{onBeforeEnter:_}),{default:()=>!h||t.visible?ie(x(Yo,{target:S(),key:"popup",ref:r,monitorWindowResize:!0,disabled:I.value,align:$,onAlign:T},{default:()=>x("div",{class:F,onMouseenter:b,onMouseleave:H,onMousedown:_t(k,["capture"]),[et?"onTouchstartPassive":"onTouchstart"]:_t(D,["capture"]),style:E},[q])}),[[Ne,f.value]]):null})}}}),Uo=U({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:lo,setup(t,o){let{attrs:e,slots:n,expose:i}=o;const r=A(!1),s=A(!1),a=A(),u=A();return z([()=>t.visible,()=>t.mobile],()=>{r.value=t.visible,t.visible&&t.mobile&&(s.value=!0)},{immediate:!0,flush:"post"}),i({forceAlign:()=>{var l;(l=a.value)===null||l===void 0||l.forceAlign()},getElement:()=>{var l;return(l=a.value)===null||l===void 0?void 0:l.getElement()}}),()=>{const l=g(g(g({},t),e),{visible:r.value}),p=s.value?x(uo,X(X({},l),{},{mobile:t.mobile,ref:a}),{default:n.default}):x(zo,X(X({},l),{},{ref:a}),{default:n.default});return x("div",{ref:u},[x(ce,l,null),p])}}});function qo(t,o,e){return e?t[0]===o[0]:t[0]===o[0]&&t[1]===o[1]}function Jt(t,o,e){const n=t[o]||{};return g(g({},n),e)}function Go(t,o,e,n){const{points:i}=e,r=Object.keys(t);for(let s=0;s<r.length;s+=1){const a=r[s];if(qo(t[a].points,i,n))return`${o}-placement-${a}`}return""}const Zo={methods:{setState(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,e=typeof t=="function"?t(this.$data,this.$props):t;if(this.getDerivedStateFromProps){const n=this.getDerivedStateFromProps(Ee(this),g(g({},this.$data),e));if(n===null)return;e=g(g({},e),n||{})}g(this.$data,e),this._.isMounted&&this.$forceUpdate(),wt(()=>{o&&o()})},__emit(){const t=[].slice.call(arguments,0);let o=t[0];o=`on${o[0].toUpperCase()}${o.substring(1)}`;const e=this.$props[o]||this.$attrs[o];if(t.length&&e)if(Array.isArray(e))for(let n=0,i=e.length;n<i;n++)e[n](...t.slice(1));else e(...t.slice(1))}}},Ko=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],Qo=U({compatConfig:{MODE:3},name:"Trigger",mixins:[Zo],inheritAttrs:!1,props:so(),setup(t){const o=j(()=>{const{popupPlacement:i,popupAlign:r,builtinPlacements:s}=t;return i&&s?Jt(s,i,r):r}),e=A(null),n=i=>{e.value=i};return{vcTriggerContext:We("vcTriggerContext",{}),popupRef:e,setPopupRef:n,triggerRef:A(null),align:o,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const t=this.$props;let o;return this.popupVisible!==void 0?o=!!t.popupVisible:o=!!t.defaultPopupVisible,Ko.forEach(e=>{this[`fire${e}`]=n=>{this.fireEvents(e,n)}}),{prevPopupVisible:o,sPopupVisible:o,point:null}},watch:{popupVisible(t){t!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=t)}},created(){He("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),je(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Y.cancel(this.attachId)},methods:{updatedCal(){const t=this.$props;if(this.$data.sPopupVisible){let e;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=tt(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=tt(e,"touchstart",this.onDocumentClick,et?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=tt(e,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=tt(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(t){const{mouseEnterDelay:o}=this.$props;this.fireEvents("onMouseenter",t),this.delaySetPopupVisible(!0,o,o?null:t)},onMouseMove(t){this.fireEvents("onMousemove",t),this.setPoint(t)},onMouseleave(t){this.fireEvents("onMouseleave",t),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:t={}}=this;t.onPopupMouseenter&&t.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(t){var o;if(t&&t.relatedTarget&&!t.relatedTarget.setTimeout&&Z((o=this.popupRef)===null||o===void 0?void 0:o.getElement(),t.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:e={}}=this;e.onPopupMouseleave&&e.onPopupMouseleave(t)},onFocus(t){this.fireEvents("onFocus",t),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(t){this.fireEvents("onMousedown",t),this.preClickTime=Date.now()},onTouchstart(t){this.fireEvents("onTouchstart",t),this.preTouchTime=Date.now()},onBlur(t){Z(t.target,t.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",t),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(t){t.preventDefault(),this.fireEvents("onContextmenu",t),this.setPopupVisible(!0,t)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(t){if(this.fireEvents("onClick",t),this.focusTime){let e;if(this.preClickTime&&this.preTouchTime?e=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?e=this.preClickTime:this.preTouchTime&&(e=this.preTouchTime),Math.abs(e-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault(),t&&t.domEvent&&t.domEvent.preventDefault();const o=!this.$data.sPopupVisible;(this.isClickToHide()&&!o||o&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,t)},onPopupMouseDown(){const{vcTriggerContext:t={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),t.onPopupMouseDown&&t.onPopupMouseDown(...arguments)},onDocumentClick(t){if(this.$props.mask&&!this.$props.maskClosable)return;const o=t.target,e=this.getRootDomNode(),n=this.getPopupDomNode();(!Z(e,o)||this.isContextMenuOnly())&&!Z(n,o)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var t;return((t=this.popupRef)===null||t===void 0?void 0:t.getElement())||null},getRootDomNode(){var t,o,e,n;const{getTriggerDOMNode:i}=this.$props;if(i){const r=((o=(t=this.triggerRef)===null||t===void 0?void 0:t.$el)===null||o===void 0?void 0:o.nodeName)==="#comment"?null:rt(this.triggerRef);return rt(i(r))}try{const r=((n=(e=this.triggerRef)===null||e===void 0?void 0:e.$el)===null||n===void 0?void 0:n.nodeName)==="#comment"?null:rt(this.triggerRef);if(r)return r}catch{}return rt(this)},handleGetPopupClassFromAlign(t){const o=[],e=this.$props,{popupPlacement:n,builtinPlacements:i,prefixCls:r,alignPoint:s,getPopupClassNameFromAlign:a}=e;return n&&i&&o.push(Go(i,r,t,s)),a&&o.push(a(t)),o.join(" ")},getPopupAlign(){const t=this.$props,{popupPlacement:o,popupAlign:e,builtinPlacements:n}=t;return o&&n?Jt(n,o,e):e},getComponent(){const t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[et?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:o,getRootDomNode:e,$attrs:n}=this,{prefixCls:i,destroyPopupOnHide:r,popupClassName:s,popupAnimation:a,popupTransitionName:u,popupStyle:l,mask:p,maskAnimation:f,maskTransitionName:d,zIndex:c,stretch:m,alignPoint:y,mobile:S,arrow:O,forceRender:T}=this.$props,{sPopupVisible:C,point:_}=this.$data,I=g(g({prefixCls:i,arrow:O,destroyPopupOnHide:r,visible:C,point:y?_:null,align:this.align,animation:a,getClassNameFromAlign:o,stretch:m,getRootDomNode:e,mask:p,zIndex:c,transitionName:u,maskAnimation:f,maskTransitionName:d,class:s,style:l,onAlign:n.onPopupAlign||ue},t),{ref:this.setPopupRef,mobile:S,forceRender:T});return x(Uo,I,{default:this.$slots.popup||(()=>Re(this,"popup"))})},attachParent(t){Y.cancel(this.attachId);const{getPopupContainer:o,getDocument:e}=this.$props,n=this.getRootDomNode();let i;o?(n||o.length===0)&&(i=o(n)):i=e(this.getRootDomNode()).body,i?i.appendChild(t):this.attachId=Y(()=>{this.attachParent(t)})},getContainer(){const{$props:t}=this,{getDocument:o}=t,e=o(this.getRootDomNode()).createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",this.attachParent(e),e},setPopupVisible(t,o){const{alignPoint:e,sPopupVisible:n,onPopupVisibleChange:i}=this;this.clearDelayTimer(),n!==t&&(Be(this,"popupVisible")||this.setState({sPopupVisible:t,prevPopupVisible:n}),i&&i(t)),e&&o&&t&&this.setPoint(o)},setPoint(t){const{alignPoint:o}=this.$props;!o||!t||this.setState({point:{pageX:t.pageX,pageY:t.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(t,o,e){const n=o*1e3;if(this.clearDelayTimer(),n){const i=e?{pageX:e.pageX,pageY:e.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(t,i),this.clearDelayTimer()},n)}else this.setPopupVisible(t,e)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(t){let o=()=>{};const e=kt(this);return this.childOriginEvents[t]&&e[t]?this[`fire${t}`]:(o=this.childOriginEvents[t]||e[t]||o,o)},isClickToShow(){const{action:t,showAction:o}=this.$props;return t.indexOf("click")!==-1||o.indexOf("click")!==-1},isContextMenuOnly(){const{action:t}=this.$props;return t==="contextmenu"||t.length===1&&t[0]==="contextmenu"},isContextmenuToShow(){const{action:t,showAction:o}=this.$props;return t.indexOf("contextmenu")!==-1||o.indexOf("contextmenu")!==-1},isClickToHide(){const{action:t,hideAction:o}=this.$props;return t.indexOf("click")!==-1||o.indexOf("click")!==-1},isMouseEnterToShow(){const{action:t,showAction:o}=this.$props;return t.indexOf("hover")!==-1||o.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:t,hideAction:o}=this.$props;return t.indexOf("hover")!==-1||o.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:t,showAction:o}=this.$props;return t.indexOf("focus")!==-1||o.indexOf("focus")!==-1},isBlurToHide(){const{action:t,hideAction:o}=this.$props;return t.indexOf("focus")!==-1||o.indexOf("blur")!==-1},forcePopupAlign(){var t;this.$data.sPopupVisible&&((t=this.popupRef)===null||t===void 0||t.forceAlign())},fireEvents(t,o){this.childOriginEvents[t]&&this.childOriginEvents[t](o);const e=this.$props[t]||this.$attrs[t];e&&e(o)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:t}=this,o=ae(_e(this)),{alignPoint:e,getPopupContainer:n}=this.$props,i=o[0];this.childOriginEvents=kt(i);const r={key:"trigger"};this.isContextmenuToShow()?r.onContextmenu=this.onContextmenu:r.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(r.onClick=this.onClick,r.onMousedown=this.onMousedown,r[et?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(r.onClick=this.createTwoChains("onClick"),r.onMousedown=this.createTwoChains("onMousedown"),r[et?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(r.onMouseenter=this.onMouseenter,e&&(r.onMousemove=this.onMouseMove)):r.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?r.onMouseleave=this.onMouseleave:r.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(r.onFocus=this.onFocus,r.onBlur=this.onBlur):(r.onFocus=this.createTwoChains("onFocus"),r.onBlur=l=>{l&&(!l.relatedTarget||!Z(l.target,l.relatedTarget))&&this.createTwoChains("onBlur")(l)});const s=Q(i&&i.props&&i.props.class,t.class);s&&(r.class=s);const a=ft(i,g(g({},r),{ref:"triggerRef"}),!0,!0),u=x(ke,{key:"portal",getContainer:n&&(()=>n(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return x(Ve,null,[a,u])}}),B={adjustX:1,adjustY:1},R=[0,0],be={left:{points:["cr","cl"],overflow:B,offset:[-4,0],targetOffset:R},right:{points:["cl","cr"],overflow:B,offset:[4,0],targetOffset:R},top:{points:["bc","tc"],overflow:B,offset:[0,-4],targetOffset:R},bottom:{points:["tc","bc"],overflow:B,offset:[0,4],targetOffset:R},topLeft:{points:["bl","tl"],overflow:B,offset:[0,-4],targetOffset:R},leftTop:{points:["tr","tl"],overflow:B,offset:[-4,0],targetOffset:R},topRight:{points:["br","tr"],overflow:B,offset:[0,-4],targetOffset:R},rightTop:{points:["tl","tr"],overflow:B,offset:[4,0],targetOffset:R},bottomRight:{points:["tr","br"],overflow:B,offset:[0,4],targetOffset:R},rightBottom:{points:["bl","br"],overflow:B,offset:[4,0],targetOffset:R},bottomLeft:{points:["tl","bl"],overflow:B,offset:[0,4],targetOffset:R},leftBottom:{points:["br","bl"],overflow:B,offset:[-4,0],targetOffset:R}},Jo={prefixCls:String,id:String,overlayInnerStyle:w.any},tn=U({compatConfig:{MODE:3},name:"TooltipContent",props:Jo,setup(t,o){let{slots:e}=o;return()=>{var n;return x("div",{class:`${t.prefixCls}-inner`,id:t.id,role:"tooltip",style:t.overlayInnerStyle},[(n=e.overlay)===null||n===void 0?void 0:n.call(e)])}}});var en=function(t,o){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&o.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)o.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(e[n[i]]=t[n[i]]);return e};function te(){}const on=U({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:w.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:w.string.def("right"),transitionName:String,animation:w.any,afterVisibleChange:w.func.def(()=>{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:w.string.def("rc-tooltip"),mouseEnterDelay:w.number.def(.1),mouseLeaveDelay:w.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:w.object.def(()=>({})),arrowContent:w.any.def(null),tipId:String,builtinPlacements:w.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(t,o){let{slots:e,attrs:n,expose:i}=o;const r=A(),s=()=>{const{prefixCls:p,tipId:f,overlayInnerStyle:d}=t;return[t.arrow?x("div",{class:`${p}-arrow`,key:"arrow"},[Fe(e,t,"arrowContent")]):null,x(tn,{key:"content",prefixCls:p,id:f,overlayInnerStyle:d},{overlay:e.overlay})]};i({getPopupDomNode:()=>r.value.getPopupDomNode(),triggerDOM:r,forcePopupAlign:()=>{var p;return(p=r.value)===null||p===void 0?void 0:p.forcePopupAlign()}});const u=A(!1),l=A(!1);return Ie(()=>{const{destroyTooltipOnHide:p}=t;if(typeof p=="boolean")u.value=p;else if(p&&typeof p=="object"){const{keepParent:f}=p;u.value=f===!0,l.value=f===!1}}),()=>{const{overlayClassName:p,trigger:f,mouseEnterDelay:d,mouseLeaveDelay:c,overlayStyle:m,prefixCls:y,afterVisibleChange:S,transitionName:O,animation:T,placement:C,align:_,destroyTooltipOnHide:I,defaultVisible:P}=t,V=en(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),$=g({},V);t.visible!==void 0&&($.popupVisible=t.visible);const N=g(g(g({popupClassName:p,prefixCls:y,action:f,builtinPlacements:be,popupPlacement:C,popupAlign:_,afterPopupVisibleChange:S,popupTransitionName:O,popupAnimation:T,defaultPopupVisible:P,destroyPopupOnHide:u.value,autoDestroy:l.value,mouseLeaveDelay:c,popupStyle:m,mouseEnterDelay:d},$),n),{onPopupVisibleChange:t.onVisibleChange||te,onPopupAlign:t.onPopupAlign||te,ref:r,arrow:!!t.arrow,popup:s()});return x(Qo,N,{default:e.default})}}}),nn=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:st(),overlayInnerStyle:st(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},arrow:{type:[Boolean,Object],default:!0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:st(),builtinPlacements:st(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),rn={adjustX:1,adjustY:1},ee={adjustX:0,adjustY:0},sn=[0,0];function oe(t){return typeof t=="boolean"?t?rn:ee:g(g({},ee),t)}function an(t){const{arrowWidth:o=4,horizontalArrowShift:e=16,verticalArrowShift:n=8,autoAdjustOverflow:i,arrowPointAtCenter:r}=t,s={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(e+o),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(n+o)]},topRight:{points:["br","tc"],offset:[e+o,-4]},rightTop:{points:["tl","cr"],offset:[4,-(n+o)]},bottomRight:{points:["tr","bc"],offset:[e+o,4]},rightBottom:{points:["bl","cr"],offset:[4,n+o]},bottomLeft:{points:["tl","bc"],offset:[-(e+o),4]},leftBottom:{points:["br","cl"],offset:[-4,n+o]}};return Object.keys(s).forEach(a=>{s[a]=r?g(g({},s[a]),{overflow:oe(i),targetOffset:sn}):g(g({},be[a]),{overflow:oe(i)}),s[a].ignoreShake=!0}),s}function ln(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let o=0,e=t.length;o<e;o++)if(t[o]!==void 0)return t[o]}function un(t,o){const e=eo(o),n=Q({[`${t}-${o}`]:o&&e}),i={},r={};return o&&!e&&(i.background=o,r["--antd-arrow-background-color"]=o),{className:n,overlayStyle:i,arrowStyle:r}}function pt(t){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return t.map(e=>`${o}${e}`).join(",")}const we=8;function cn(t){const o=we,{sizePopupArrow:e,contentRadius:n,borderRadiusOuter:i,limitVerticalRadius:r}=t,s=e/2-Math.ceil(i*(Math.sqrt(2)-1)),a=(n>12?n+2:12)-s,u=r?o-s:a;return{dropdownArrowOffset:a,dropdownArrowOffsetVertical:u}}function pn(t,o){const{componentCls:e,sizePopupArrow:n,marginXXS:i,borderRadiusXS:r,borderRadiusOuter:s,boxShadowPopoverArrow:a}=t,{colorBg:u,showArrowCls:l,contentRadius:p=t.borderRadiusLG,limitVerticalRadius:f}=o,{dropdownArrowOffsetVertical:d,dropdownArrowOffset:c}=cn({sizePopupArrow:n,contentRadius:p,borderRadiusOuter:s,limitVerticalRadius:f}),m=n/2+i;return{[e]:{[`${e}-arrow`]:[g(g({position:"absolute",zIndex:1,display:"block"},no(n,r,s,u,a)),{"&:before":{background:u}})],[[`&-placement-top ${e}-arrow`,`&-placement-topLeft ${e}-arrow`,`&-placement-topRight ${e}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${e}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${e}-arrow`]:{left:{_skip_check_:!0,value:c}},[`&-placement-topRight ${e}-arrow`]:{right:{_skip_check_:!0,value:c}},[[`&-placement-bottom ${e}-arrow`,`&-placement-bottomLeft ${e}-arrow`,`&-placement-bottomRight ${e}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${e}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${e}-arrow`]:{left:{_skip_check_:!0,value:c}},[`&-placement-bottomRight ${e}-arrow`]:{right:{_skip_check_:!0,value:c}},[[`&-placement-left ${e}-arrow`,`&-placement-leftTop ${e}-arrow`,`&-placement-leftBottom ${e}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${e}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${e}-arrow`]:{top:d},[`&-placement-leftBottom ${e}-arrow`]:{bottom:d},[[`&-placement-right ${e}-arrow`,`&-placement-rightTop ${e}-arrow`,`&-placement-rightBottom ${e}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${e}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${e}-arrow`]:{top:d},[`&-placement-rightBottom ${e}-arrow`]:{bottom:d},[pt(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(y=>y+=":not(&-arrow-hidden)"),l)]:{paddingBottom:m},[pt(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(y=>y+=":not(&-arrow-hidden)"),l)]:{paddingTop:m},[pt(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(y=>y+=":not(&-arrow-hidden)"),l)]:{paddingRight:{_skip_check_:!0,value:m}},[pt(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(y=>y+=":not(&-arrow-hidden)"),l)]:{paddingLeft:{_skip_check_:!0,value:m}}}}}const fn=t=>{const{componentCls:o,tooltipMaxWidth:e,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:r,zIndexPopup:s,controlHeight:a,boxShadowSecondary:u,paddingSM:l,paddingXS:p,tooltipRadiusOuter:f}=t;return[{[o]:g(g(g(g({},Ye(t)),{position:"absolute",zIndex:s,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:e,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${o}-inner`]:{minWidth:a,minHeight:a,padding:`${l/2}px ${p}px`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:r,boxShadow:u},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:Math.min(r,we)}},[`${o}-content`]:{position:"relative"}}),oo(t,(d,c)=>{let{darkColor:m}=c;return{[`&${o}-${d}`]:{[`${o}-inner`]:{backgroundColor:m},[`${o}-arrow`]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},pn(le(t,{borderRadiusOuter:f}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:r,limitVerticalRadius:!0}),{[`${o}-pure`]:{position:"relative",maxWidth:"none"}}]},dn=(t,o)=>Le("Tooltip",n=>{if((o==null?void 0:o.value)===!1)return[];const{borderRadius:i,colorTextLightSolid:r,colorBgDefault:s,borderRadiusOuter:a}=n,u=le(n,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:i,tooltipBg:s,tooltipRadiusOuter:a>4?4:a});return[fn(u),Xe(n,"zoom-big-fast")]},n=>{let{zIndexPopupBase:i,colorBgSpotlight:r}=n;return{zIndexPopup:i+70,colorBgDefault:r}})(t),hn=(t,o)=>{const e={},n=g({},t);return o.forEach(i=>{t&&i in t&&(e[i]=t[i],delete n[i])}),{picked:e,omitted:n}},gn=()=>g(g({},nn()),{title:w.any}),Pn=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),mn=U({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:ze(gn(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(t,o){let{slots:e,emit:n,attrs:i,expose:r}=o;const{prefixCls:s,getPopupContainer:a,direction:u,rootPrefixCls:l}=Ue("tooltip",t),p=j(()=>{var h;return(h=t.open)!==null&&h!==void 0?h:t.visible}),f=L(ln([t.open,t.visible])),d=L();let c;z(p,h=>{Y.cancel(c),c=Y(()=>{f.value=!!h})});const m=()=>{var h;const b=(h=t.title)!==null&&h!==void 0?h:e.title;return!b&&b!==0},y=h=>{const b=m();p.value===void 0&&(f.value=b?!1:h),b||(n("update:visible",h),n("visibleChange",h),n("update:open",h),n("openChange",h))};r({getPopupDomNode:()=>d.value.getPopupDomNode(),open:f,forcePopupAlign:()=>{var h;return(h=d.value)===null||h===void 0?void 0:h.forcePopupAlign()}});const O=j(()=>{var h;const{builtinPlacements:b,autoAdjustOverflow:H,arrow:D,arrowPointAtCenter:k}=t;let M=k;return typeof D=="object"&&(M=(h=D.pointAtCenter)!==null&&h!==void 0?h:k),b||an({arrowPointAtCenter:M,autoAdjustOverflow:H})}),T=h=>h||h==="",C=h=>{const b=h.type;if(typeof b=="object"&&h.props&&((b.__ANT_BUTTON===!0||b==="button")&&T(h.props.disabled)||b.__ANT_SWITCH===!0&&(T(h.props.disabled)||T(h.props.loading))||b.__ANT_RADIO===!0&&T(h.props.disabled))){const{picked:H,omitted:D}=hn(Ke(h),["position","left","right","top","bottom","float","display","zIndex"]),k=g(g({display:"inline-block"},H),{cursor:"not-allowed",lineHeight:1,width:h.props&&h.props.block?"100%":void 0}),M=g(g({},D),{pointerEvents:"none"}),E=ft(h,{style:M},!0);return x("span",{style:k,class:`${s.value}-disabled-compatible-wrapper`},[E])}return h},_=()=>{var h,b;return(h=t.title)!==null&&h!==void 0?h:(b=e.title)===null||b===void 0?void 0:b.call(e)},I=(h,b)=>{const H=O.value,D=Object.keys(H).find(k=>{var M,E;return H[k].points[0]===((M=b.points)===null||M===void 0?void 0:M[0])&&H[k].points[1]===((E=b.points)===null||E===void 0?void 0:E[1])});if(D){const k=h.getBoundingClientRect(),M={top:"50%",left:"50%"};D.indexOf("top")>=0||D.indexOf("Bottom")>=0?M.top=`${k.height-b.offset[1]}px`:(D.indexOf("Top")>=0||D.indexOf("bottom")>=0)&&(M.top=`${-b.offset[1]}px`),D.indexOf("left")>=0||D.indexOf("Right")>=0?M.left=`${k.width-b.offset[0]}px`:(D.indexOf("right")>=0||D.indexOf("Left")>=0)&&(M.left=`${-b.offset[0]}px`),h.style.transformOrigin=`${M.left} ${M.top}`}},P=j(()=>un(s.value,t.color)),V=j(()=>i["data-popover-inject"]),[$,N]=dn(s,j(()=>!V.value));return()=>{var h,b;const{openClassName:H,overlayClassName:D,overlayStyle:k,overlayInnerStyle:M}=t;let E=(b=ae((h=e.default)===null||h===void 0?void 0:h.call(e)))!==null&&b!==void 0?b:null;E=E.length===1?E[0]:E;let q=f.value;if(p.value===void 0&&m()&&(q=!1),!E)return null;const F=C(qe(E)&&!Ge(E)?E:x("span",null,[E])),Et=Q({[H||`${s.value}-open`]:!0,[F.props&&F.props.class]:F.props&&F.props.class}),gt=Q(D,{[`${s.value}-rtl`]:u.value==="rtl"},P.value.className,N.value),Pe=g(g({},P.value.overlayStyle),M),Te=P.value.arrowStyle,Ce=g(g(g({},i),t),{prefixCls:s.value,arrow:!!t.arrow,getPopupContainer:a==null?void 0:a.value,builtinPlacements:O.value,visible:q,ref:d,overlayClassName:gt,overlayStyle:g(g({},Te),k),overlayInnerStyle:Pe,onVisibleChange:y,onPopupAlign:I,transitionName:Ze(l.value,"zoom-big-fast",t.transitionName)});return $(x(on,Ce,{default:()=>[f.value?ft(F,{class:Et}):F],arrowContent:()=>x("span",{class:`${s.value}-arrow-content`},null),overlay:_}))}}}),Tn=Qe(mn);export{Zo as B,Qo as T,Tn as _,nn as a,gn as b,cn as c,an as d,ln as f,pn as g,no as r,Pn as t};