fischer-agentkit/src/agentkit/server/static/assets/base-Cow5GIMt.js

2 lines
65 KiB
JavaScript

var fn=Object.defineProperty;var pn=(t,e,n)=>e in t?fn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Zt=(t,e,n)=>pn(t,typeof e!="symbol"?e+"":e,n);import{z as g,P as T,c as x,aG as jt,J as X,p as Re,bB as Ne,bC as dn,d as q,M as Be,R as nt,r as k,i as G,E as He,T as hn,K as $,f as z,bf as tt,G as Ht,ay as vn,a2 as gn,aP as mn,v as yn,a0 as Jt,a6 as bn,bD as wn,aR as Ie,bb as _n,bE as Qt,F as On,b0 as Tn,b1 as Pn,V as ft,C as Cn,bg as xn,B as Sn,L as An,H as Mn,aK as pt,x as En,y as Ve,A as $n,D as Dn,aF as Rn,bF as Nn,aJ as Bn,bd as Hn,aH as In}from"./index-CMOUF6MJ.js";import{w as Y,l as Vn,M as Le,r as Ln,S as te,b as bt,m as zn,j as It,q as ze,a as Fn,s as Wn,g as ee,f as ne,c as jn,i as kn}from"./_plugin-vue_export-helper-BXCjjis4.js";import{c as wt,d as it,s as st,P as Xn,i as Yn}from"./zoom-BE7hnYTX.js";var Fe=function(){if(typeof Map<"u")return Map;function t(e,n){var o=-1;return e.some(function(r,i){return r[0]===n?(o=i,!0):!1}),o}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var o=t(this.__entries__,n),r=this.__entries__[o];return r&&r[1]},e.prototype.set=function(n,o){var r=t(this.__entries__,n);~r?this.__entries__[r][1]=o:this.__entries__.push([n,o])},e.prototype.delete=function(n){var o=this.__entries__,r=t(o,n);~r&&o.splice(r,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,o){o===void 0&&(o=null);for(var r=0,i=this.__entries__;r<i.length;r++){var s=i[r];n.call(o,s[1],s[0])}},e}()}(),Vt=typeof window<"u"&&typeof document<"u"&&window.document===document,_t=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Un=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(_t):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),Gn=2;function qn(t,e){var n=!1,o=!1,r=0;function i(){n&&(n=!1,t()),o&&a()}function s(){Un(i)}function a(){var u=Date.now();if(n){if(u-r<Gn)return;o=!0}else n=!0,o=!1,setTimeout(s,e);r=u}return a}var Kn=20,Zn=["top","right","bottom","left","width","height","size","weight"],Jn=typeof MutationObserver<"u",Qn=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=qn(this.refresh.bind(this),Kn)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,o=n.indexOf(e);~o&&n.splice(o,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!Vt||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Jn?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!Vt||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,o=n===void 0?"":n,r=Zn.some(function(i){return!!~o.indexOf(i)});r&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),We=function(t,e){for(var n=0,o=Object.keys(e);n<o.length;n++){var r=o[n];Object.defineProperty(t,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return t},ot=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||_t},je=xt(0,0,0,0);function Ot(t){return parseFloat(t)||0}function oe(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(o,r){var i=t["border-"+r+"-width"];return o+Ot(i)},0)}function to(t){for(var e=["top","right","bottom","left"],n={},o=0,r=e;o<r.length;o++){var i=r[o],s=t["padding-"+i];n[i]=Ot(s)}return n}function eo(t){var e=t.getBBox();return xt(0,0,e.width,e.height)}function no(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return je;var o=ot(t).getComputedStyle(t),r=to(o),i=r.left+r.right,s=r.top+r.bottom,a=Ot(o.width),u=Ot(o.height);if(o.boxSizing==="border-box"&&(Math.round(a+i)!==e&&(a-=oe(o,"left","right")+i),Math.round(u+s)!==n&&(u-=oe(o,"top","bottom")+s)),!ro(t)){var l=Math.round(a+i)-e,p=Math.round(u+s)-n;Math.abs(l)!==1&&(a-=l),Math.abs(p)!==1&&(u-=p)}return xt(r.left,r.top,a,u)}var oo=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof ot(t).SVGGraphicsElement}:function(t){return t instanceof ot(t).SVGElement&&typeof t.getBBox=="function"}}();function ro(t){return t===ot(t).document.documentElement}function io(t){return Vt?oo(t)?eo(t):no(t):je}function so(t){var e=t.x,n=t.y,o=t.width,r=t.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(i.prototype);return We(s,{x:e,y:n,width:o,height:r,top:n,right:e+o,bottom:r+n,left:e}),s}function xt(t,e,n,o){return{x:t,y:e,width:n,height:o}}var ao=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=xt(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=io(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),lo=function(){function t(e,n){var o=so(n);We(this,{target:e,contentRect:o})}return t}(),uo=function(){function t(e,n,o){if(this.activeObservations_=[],this.observations_=new Fe,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=o}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ot(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new ao(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ot(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(o){return new lo(o.target,o.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),ke=typeof WeakMap<"u"?new WeakMap:new Fe,Xe=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Qn.getInstance(),o=new uo(e,n,this);ke.set(this,o)}return t}();["observe","unobserve","disconnect"].forEach(function(t){Xe.prototype[t]=function(){var e;return(e=ke.get(this))[t].apply(e,arguments)}});var co=function(){return typeof _t.ResizeObserver<"u"?_t.ResizeObserver:Xe}();const Tt=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],fo=(t,e,n,o,r)=>{const i=t/2,s=0,a=i,u=n*1/Math.sqrt(2),l=i-n*(1-1/Math.sqrt(2)),p=i-e*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+e*(1/Math.sqrt(2)),c=2*i-p,f=d,h=2*i-u,m=l,P=2*i-s,w=a,b=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),O=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:t,height:t,overflow:"hidden","&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${e}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:t/2,background:o,clipPath:{_multi_value_:!0,value:[`polygon(${O}px 100%, 50% ${O}px, ${2*i-O}px 100%, ${O}px 100%)`,`path('M ${s} ${a} A ${n} ${n} 0 0 0 ${u} ${l} L ${p} ${d} A ${e} ${e} 0 0 1 ${c} ${f} L ${h} ${m} A ${n} ${n} 0 0 0 ${P} ${w} Z')`]},content:'""'}}};function po(t,e){return Tt.reduce((n,o)=>{const r=t[`${o}-1`],i=t[`${o}-3`],s=t[`${o}-6`],a=t[`${o}-7`];return g(g({},n),e(o,{lightColor:r,lightBorderColor:i,darkColor:s,textColor:a}))},{})}function ho(){return""}function vo(t){return t?t.ownerDocument:window.document}function Ye(){}const go=()=>({action:T.oneOfType([T.string,T.arrayOf(T.string)]).def([]),showAction:T.any.def([]),hideAction:T.any.def([]),getPopupClassNameFromAlign:T.any.def(ho),onPopupVisibleChange:Function,afterPopupVisibleChange:T.func.def(Ye),popup:T.any,arrow:T.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:T.string.def("rc-trigger-popup"),popupClassName:T.string.def(""),popupPlacement:String,builtinPlacements:T.object,popupTransitionName:String,popupAnimation:T.any,mouseEnterDelay:T.number.def(0),mouseLeaveDelay:T.number.def(.1),zIndex:Number,focusDelay:T.number.def(0),blurDelay:T.number.def(.15),getPopupContainer:Function,getDocument:T.func.def(vo),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:T.object.def(()=>({})),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}),kt={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}},mo=g(g({},kt),{mobile:{type:Object}}),yo=g(g({},kt),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Ue(t){const{prefixCls:e,visible:n,zIndex:o,mask:r,maskAnimation:i,maskTransitionName:s}=t;if(!r)return null;let a={};return(s||i)&&(a=Ne({prefixCls:e,transitionName:s,animation:i})),x(jt,X({appear:!0},a),{default:()=>[Re(x("div",{style:{zIndex:o},class:`${e}-mask`},null),[[dn("if"),n]])]})}Ue.displayName="Mask";const bo=q({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:mo,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,slots:o}=e;const r=k();return n({forceAlign:()=>{},getElement:()=>r.value}),()=>{var i;const{zIndex:s,visible:a,prefixCls:u,mobile:{popupClassName:l,popupStyle:p,popupMotion:d={},popupRender:c}={}}=t,f=g({zIndex:s},p);let h=Be((i=o.default)===null||i===void 0?void 0:i.call(o));h.length>1&&(h=x("div",{class:`${u}-content`},[h])),c&&(h=c(h));const m=nt(u,l);return x(jt,X({ref:r},d),{default:()=>[a?x("div",{class:m,style:f},[h]):null]})}}});var wo=function(t,e,n,o){function r(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{l(o.next(p))}catch(d){s(d)}}function u(p){try{l(o.throw(p))}catch(d){s(d)}}function l(p){p.done?i(p.value):r(p.value).then(a,u)}l((o=o.apply(t,e||[])).next())})};const re=["measure","align",null,"motion"],_o=(t,e)=>{const n=$(null),o=$(),r=$(!1);function i(u){r.value||(n.value=u)}function s(){Y.cancel(o.value)}function a(u){s(),o.value=Y(()=>{let l=n.value;switch(n.value){case"align":l="motion";break;case"motion":l="stable";break}i(l),u==null||u()})}return G(t,()=>{i("measure")},{immediate:!0,flush:"post"}),He(()=>{G(n,()=>{switch(n.value){case"measure":e();break}n.value&&(o.value=Y(()=>wo(void 0,void 0,void 0,function*(){const u=re.indexOf(n.value),l=re[u+1];l&&u!==-1&&i(l)})))},{immediate:!0,flush:"post"})}),hn(()=>{r.value=!0,s()}),[n,a]},Oo=t=>{const e=$({width:0,height:0});function n(r){e.value={width:r.offsetWidth,height:r.offsetHeight}}return[z(()=>{const r={};if(t.value){const{width:i,height:s}=e.value;t.value.indexOf("height")!==-1&&s?r.height=`${s}px`:t.value.indexOf("minHeight")!==-1&&s&&(r.minHeight=`${s}px`),t.value.indexOf("width")!==-1&&i?r.width=`${i}px`:t.value.indexOf("minWidth")!==-1&&i&&(r.minWidth=`${i}px`)}return r}),n]};function ie(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function se(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ie(Object(n),!0).forEach(function(o){To(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Lt(t){"@babel/helpers - typeof";return Lt=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},Lt(t)}function To(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var rt,Po={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function Pt(){if(rt!==void 0)return rt;rt="";var t=document.createElement("p").style,e="Transform";for(var n in Po)n+e in t&&(rt=n);return rt}function Ge(){return Pt()?"".concat(Pt(),"TransitionProperty"):"transitionProperty"}function St(){return Pt()?"".concat(Pt(),"Transform"):"transform"}function ae(t,e){var n=Ge();n&&(t.style[n]=e,n!=="transitionProperty"&&(t.style.transitionProperty=e))}function $t(t,e){var n=St();n&&(t.style[n]=e,n!=="transform"&&(t.style.transform=e))}function Co(t){return t.style.transitionProperty||t.style[Ge()]}function xo(t){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("transform")||e.getPropertyValue(St());if(n&&n!=="none"){var o=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}var So=/matrix\((.*)\)/,Ao=/matrix3d\((.*)\)/;function Mo(t,e){var n=window.getComputedStyle(t,null),o=n.getPropertyValue("transform")||n.getPropertyValue(St());if(o&&o!=="none"){var r,i=o.match(So);if(i)i=i[1],r=i.split(",").map(function(a){return parseFloat(a,10)}),r[4]=e.x,r[5]=e.y,$t(t,"matrix(".concat(r.join(","),")"));else{var s=o.match(Ao)[1];r=s.split(",").map(function(a){return parseFloat(a,10)}),r[12]=e.x,r[13]=e.y,$t(t,"matrix3d(".concat(r.join(","),")"))}}else $t(t,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}var Eo=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,ct;function le(t){var e=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=e}function et(t,e,n){var o=n;if(Lt(e)==="object"){for(var r in e)e.hasOwnProperty(r)&&et(t,r,e[r]);return}if(typeof o<"u"){typeof o=="number"&&(o="".concat(o,"px")),t.style[e]=o;return}return ct(t,e)}function $o(t){var e,n,o,r=t.ownerDocument,i=r.body,s=r&&r.documentElement;return e=t.getBoundingClientRect(),n=Math.floor(e.left),o=Math.floor(e.top),n-=s.clientLeft||i.clientLeft||0,o-=s.clientTop||i.clientTop||0,{left:n,top:o}}function qe(t,e){var n=t["page".concat(e?"Y":"X","Offset")],o="scroll".concat(e?"Top":"Left");if(typeof n!="number"){var r=t.document;n=r.documentElement[o],typeof n!="number"&&(n=r.body[o])}return n}function Ke(t){return qe(t)}function Ze(t){return qe(t,!0)}function lt(t){var e=$o(t),n=t.ownerDocument,o=n.defaultView||n.parentWindow;return e.left+=Ke(o),e.top+=Ze(o),e}function Xt(t){return t!=null&&t==t.window}function Je(t){return Xt(t)?t.document:t.nodeType===9?t:t.ownerDocument}function Do(t,e,n){var o=n,r="",i=Je(t);return o=o||i.defaultView.getComputedStyle(t,null),o&&(r=o.getPropertyValue(e)||o[e]),r}var Ro=new RegExp("^(".concat(Eo,")(?!px)[a-z%]+$"),"i"),No=/^(top|right|bottom|left)$/,Dt="currentStyle",Rt="runtimeStyle",Z="left",Bo="px";function Ho(t,e){var n=t[Dt]&&t[Dt][e];if(Ro.test(n)&&!No.test(e)){var o=t.style,r=o[Z],i=t[Rt][Z];t[Rt][Z]=t[Dt][Z],o[Z]=e==="fontSize"?"1em":n||0,n=o.pixelLeft+Bo,o[Z]=r,t[Rt][Z]=i}return n===""?"auto":n}typeof window<"u"&&(ct=window.getComputedStyle?Do:Ho);function dt(t,e){return t==="left"?e.useCssRight?"right":t:e.useCssBottom?"bottom":t}function ue(t){if(t==="left")return"right";if(t==="right")return"left";if(t==="top")return"bottom";if(t==="bottom")return"top"}function ce(t,e,n){et(t,"position")==="static"&&(t.style.position="relative");var o=-999,r=-999,i=dt("left",n),s=dt("top",n),a=ue(i),u=ue(s);i!=="left"&&(o=999),s!=="top"&&(r=999);var l="",p=lt(t);("left"in e||"top"in e)&&(l=Co(t)||"",ae(t,"none")),"left"in e&&(t.style[a]="",t.style[i]="".concat(o,"px")),"top"in e&&(t.style[u]="",t.style[s]="".concat(r,"px")),le(t);var d=lt(t),c={};for(var f in e)if(e.hasOwnProperty(f)){var h=dt(f,n),m=f==="left"?o:r,P=p[f]-d[f];h===f?c[h]=m+P:c[h]=m-P}et(t,c),le(t),("left"in e||"top"in e)&&ae(t,l);var w={};for(var b in e)if(e.hasOwnProperty(b)){var O=dt(b,n),A=e[b]-p[b];b===O?w[O]=c[O]+A:w[O]=c[O]-A}et(t,w)}function Io(t,e){var n=lt(t),o=xo(t),r={x:o.x,y:o.y};"left"in e&&(r.x=o.x+e.left-n.left),"top"in e&&(r.y=o.y+e.top-n.top),Mo(t,r)}function Vo(t,e,n){if(n.ignoreShake){var o=lt(t),r=o.left.toFixed(0),i=o.top.toFixed(0),s=e.left.toFixed(0),a=e.top.toFixed(0);if(r===s&&i===a)return}n.useCssRight||n.useCssBottom?ce(t,e,n):n.useCssTransform&&St()in document.body.style?Io(t,e):ce(t,e,n)}function Yt(t,e){for(var n=0;n<t.length;n++)e(t[n])}function Qe(t){return ct(t,"boxSizing")==="border-box"}var Lo=["margin","border","padding"],zt=-1,zo=2,Ft=1,Fo=0;function Wo(t,e,n){var o={},r=t.style,i;for(i in e)e.hasOwnProperty(i)&&(o[i]=r[i],r[i]=e[i]);n.call(t);for(i in e)e.hasOwnProperty(i)&&(r[i]=o[i])}function at(t,e,n){var o=0,r,i,s;for(i=0;i<e.length;i++)if(r=e[i],r)for(s=0;s<n.length;s++){var a=void 0;r==="border"?a="".concat(r).concat(n[s],"Width"):a=r+n[s],o+=parseFloat(ct(t,a))||0}return o}var F={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}};Yt(["Width","Height"],function(t){F["doc".concat(t)]=function(e){var n=e.document;return Math.max(n.documentElement["scroll".concat(t)],n.body["scroll".concat(t)],F["viewport".concat(t)](n))},F["viewport".concat(t)]=function(e){var n="client".concat(t),o=e.document,r=o.body,i=o.documentElement,s=i[n];return o.compatMode==="CSS1Compat"&&s||r&&r[n]||s}});function fe(t,e,n){var o=n;if(Xt(t))return e==="width"?F.viewportWidth(t):F.viewportHeight(t);if(t.nodeType===9)return e==="width"?F.docWidth(t):F.docHeight(t);var r=e==="width"?["Left","Right"]:["Top","Bottom"],i=Math.floor(e==="width"?t.getBoundingClientRect().width:t.getBoundingClientRect().height),s=Qe(t),a=0;(i==null||i<=0)&&(i=void 0,a=ct(t,e),(a==null||Number(a)<0)&&(a=t.style[e]||0),a=Math.floor(parseFloat(a))||0),o===void 0&&(o=s?Ft:zt);var u=i!==void 0||s,l=i||a;return o===zt?u?l-at(t,["border","padding"],r):a:u?o===Ft?l:l+(o===zo?-at(t,["border"],r):at(t,["margin"],r)):a+at(t,Lo.slice(o),r)}var jo={position:"absolute",visibility:"hidden",display:"block"};function pe(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o,r=e[0];return r.offsetWidth!==0?o=fe.apply(void 0,e):Wo(r,jo,function(){o=fe.apply(void 0,e)}),o}Yt(["width","height"],function(t){var e=t.charAt(0).toUpperCase()+t.slice(1);F["outer".concat(e)]=function(o,r){return o&&pe(o,t,r?Fo:Ft)};var n=t==="width"?["Left","Right"]:["Top","Bottom"];F[t]=function(o,r){var i=r;if(i!==void 0){if(o){var s=Qe(o);return s&&(i+=at(o,["padding","border"],n)),et(o,t,i)}return}return o&&pe(o,t,zt)}});function tn(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:Je,offset:function(e,n,o){if(typeof n<"u")Vo(e,n,o||{});else return lt(e)},isWindow:Xt,each:Yt,css:et,clone:function(e){var n,o={};for(n in e)e.hasOwnProperty(n)&&(o[n]=e[n]);var r=e.overflow;if(r)for(n in e)e.hasOwnProperty(n)&&(o.overflow[n]=e.overflow[n]);return o},mix:tn,getWindowScrollLeft:function(e){return Ke(e)},getWindowScrollTop:function(e){return Ze(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};tn(y,F);var Nt=y.getParent;function Wt(t){if(y.isWindow(t)||t.nodeType===9)return null;var e=y.getDocument(t),n=e.body,o,r=y.css(t,"position"),i=r==="fixed"||r==="absolute";if(!i)return t.nodeName.toLowerCase()==="html"?null:Nt(t);for(o=Nt(t);o&&o!==n&&o.nodeType!==9;o=Nt(o))if(r=y.css(o,"position"),r!=="static")return o;return null}var de=y.getParent;function ko(t){if(y.isWindow(t)||t.nodeType===9)return!1;var e=y.getDocument(t),n=e.body,o=null;for(o=de(t);o&&o!==n&&o!==e;o=de(o)){var r=y.css(o,"position");if(r==="fixed")return!0}return!1}function Ut(t,e){for(var n={left:0,right:1/0,top:0,bottom:1/0},o=Wt(t),r=y.getDocument(t),i=r.defaultView||r.parentWindow,s=r.body,a=r.documentElement;o;){if((navigator.userAgent.indexOf("MSIE")===-1||o.clientWidth!==0)&&o!==s&&o!==a&&y.css(o,"overflow")!=="visible"){var u=y.offset(o);u.left+=o.clientLeft,u.top+=o.clientTop,n.top=Math.max(n.top,u.top),n.right=Math.min(n.right,u.left+o.clientWidth),n.bottom=Math.min(n.bottom,u.top+o.clientHeight),n.left=Math.max(n.left,u.left)}else if(o===s||o===a)break;o=Wt(o)}var l=null;if(!y.isWindow(t)&&t.nodeType!==9){l=t.style.position;var p=y.css(t,"position");p==="absolute"&&(t.style.position="fixed")}var d=y.getWindowScrollLeft(i),c=y.getWindowScrollTop(i),f=y.viewportWidth(i),h=y.viewportHeight(i),m=a.scrollWidth,P=a.scrollHeight,w=window.getComputedStyle(s);if(w.overflowX==="hidden"&&(m=i.innerWidth),w.overflowY==="hidden"&&(P=i.innerHeight),t.style&&(t.style.position=l),e||ko(t))n.left=Math.max(n.left,d),n.top=Math.max(n.top,c),n.right=Math.min(n.right,d+f),n.bottom=Math.min(n.bottom,c+h);else{var b=Math.max(m,d+f);n.right=Math.min(n.right,b);var O=Math.max(P,c+h);n.bottom=Math.min(n.bottom,O)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Xo(t,e,n,o){var r=y.clone(t),i={width:e.width,height:e.height};return o.adjustX&&r.left<n.left&&(r.left=n.left),o.resizeWidth&&r.left>=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top<n.top&&(r.top=n.top),o.resizeHeight&&r.top>=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),y.mix(r,i)}function Gt(t){var e,n,o;if(!y.isWindow(t)&&t.nodeType!==9)e=y.offset(t),n=y.outerWidth(t),o=y.outerHeight(t);else{var r=y.getWindow(t);e={left:y.getWindowScrollLeft(r),top:y.getWindowScrollTop(r)},n=y.viewportWidth(r),o=y.viewportHeight(r)}return e.width=n,e.height=o,e}function he(t,e){var n=e.charAt(0),o=e.charAt(1),r=t.width,i=t.height,s=t.left,a=t.top;return n==="c"?a+=i/2:n==="b"&&(a+=i),o==="c"?s+=r/2:o==="r"&&(s+=r),{left:s,top:a}}function ht(t,e,n,o,r){var i=he(e,n[1]),s=he(t,n[0]),a=[s.left-i.left,s.top-i.top];return{left:Math.round(t.left-a[0]+o[0]-r[0]),top:Math.round(t.top-a[1]+o[1]-r[1])}}function ve(t,e,n){return t.left<n.left||t.left+e.width>n.right}function ge(t,e,n){return t.top<n.top||t.top+e.height>n.bottom}function Yo(t,e,n){return t.left>n.right||t.left+e.width<n.left}function Uo(t,e,n){return t.top>n.bottom||t.top+e.height<n.top}function vt(t,e,n){var o=[];return y.each(t,function(r){o.push(r.replace(e,function(i){return n[i]}))}),o}function gt(t,e){return t[e]=-t[e],t}function me(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 ye(t,e){t[0]=me(t[0],e.width),t[1]=me(t[1],e.height)}function en(t,e,n,o){var r=n.points,i=n.offset||[0,0],s=n.targetOffset||[0,0],a=n.overflow,u=n.source||t;i=[].concat(i),s=[].concat(s),a=a||{};var l={},p=0,d=!!(a&&a.alwaysByViewport),c=Ut(u,d),f=Gt(u);ye(i,f),ye(s,e);var h=ht(f,e,r,i,s),m=y.merge(f,h);if(c&&(a.adjustX||a.adjustY)&&o){if(a.adjustX&&ve(h,f,c)){var P=vt(r,/[lr]/gi,{l:"r",r:"l"}),w=gt(i,0),b=gt(s,0),O=ht(f,e,P,w,b);Yo(O,f,c)||(p=1,r=P,i=w,s=b)}if(a.adjustY&&ge(h,f,c)){var A=vt(r,/[tb]/gi,{t:"b",b:"t"}),N=gt(i,1),C=gt(s,1),H=ht(f,e,A,N,C);Uo(H,f,c)||(p=1,r=A,i=N,s=C)}p&&(h=ht(f,e,r,i,s),y.mix(m,h));var M=ve(h,f,c),D=ge(h,f,c);if(M||D){var v=r;M&&(v=vt(r,/[lr]/gi,{l:"r",r:"l"})),D&&(v=vt(r,/[tb]/gi,{t:"b",b:"t"})),r=v,i=n.offset||[0,0],s=n.targetOffset||[0,0]}l.adjustX=a.adjustX&&M,l.adjustY=a.adjustY&&D,(l.adjustX||l.adjustY)&&(m=Xo(h,f,c,l))}return m.width!==f.width&&y.css(u,"width",y.width(u)+m.width-f.width),m.height!==f.height&&y.css(u,"height",y.height(u)+m.height-f.height),y.offset(u,{left:m.left,top:m.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:r,offset:i,targetOffset:s,overflow:l}}function Go(t,e){var n=Ut(t,e),o=Gt(t);return!n||o.left+o.width<=n.left||o.top+o.height<=n.top||o.left>=n.right||o.top>=n.bottom}function qt(t,e,n){var o=n.target||e,r=Gt(o),i=!Go(o,n.overflow&&n.overflow.alwaysByViewport);return en(t,r,n,i)}qt.__getOffsetParent=Wt;qt.__getVisibleRectForElement=Ut;function qo(t,e,n){var o,r,i=y.getDocument(t),s=i.defaultView||i.parentWindow,a=y.getWindowScrollLeft(s),u=y.getWindowScrollTop(s),l=y.viewportWidth(s),p=y.viewportHeight(s);"pageX"in e?o=e.pageX:o=a+e.clientX,"pageY"in e?r=e.pageY:r=u+e.clientY;var d={left:o,top:r,width:0,height:0},c=o>=0&&o<=a+l&&r>=0&&r<=u+p,f=[n.points[0],"cc"];return en(t,d,se(se({},n),{},{points:f}),c)}function Ko(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 Zo(t,e){t!==document.activeElement&&tt(e,t)&&typeof t.focus=="function"&&t.focus()}function be(t,e){let n=null,o=null;function r(s){let[{target:a}]=s;if(!document.documentElement.contains(a))return;const{width:u,height:l}=a.getBoundingClientRect(),p=Math.floor(u),d=Math.floor(l);(n!==p||o!==d)&&Promise.resolve().then(()=>{e({width:p,height:d})}),n=p,o=d}const i=new co(r);return t&&i.observe(t),()=>{i.disconnect()}}const Jo=(t,e)=>{let n=!1,o=null;function r(){clearTimeout(o)}function i(s){if(!n||s===!0){if(t()===!1)return;n=!0,r(),o=setTimeout(()=>{n=!1},e.value)}else r(),o=setTimeout(()=>{n=!1,i()},e.value)}return[i,()=>{n=!1,r()}]};function Qo(){this.__data__=[],this.size=0}function nn(t,e){return t===e||t!==t&&e!==e}function At(t,e){for(var n=t.length;n--;)if(nn(t[n][0],e))return n;return-1}var tr=Array.prototype,er=tr.splice;function nr(t){var e=this.__data__,n=At(e,t);if(n<0)return!1;var o=e.length-1;return n==o?e.pop():er.call(e,n,1),--this.size,!0}function or(t){var e=this.__data__,n=At(e,t);return n<0?void 0:e[n][1]}function rr(t){return At(this.__data__,t)>-1}function ir(t,e){var n=this.__data__,o=At(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}function W(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}W.prototype.clear=Qo;W.prototype.delete=nr;W.prototype.get=or;W.prototype.has=rr;W.prototype.set=ir;function sr(){this.__data__=new W,this.size=0}function ar(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function lr(t){return this.__data__.get(t)}function ur(t){return this.__data__.has(t)}var ut=Vn(Object,"create");function cr(){this.__data__=ut?ut(null):{},this.size=0}function fr(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var pr="__lodash_hash_undefined__",dr=Object.prototype,hr=dr.hasOwnProperty;function vr(t){var e=this.__data__;if(ut){var n=e[t];return n===pr?void 0:n}return hr.call(e,t)?e[t]:void 0}var gr=Object.prototype,mr=gr.hasOwnProperty;function yr(t){var e=this.__data__;return ut?e[t]!==void 0:mr.call(e,t)}var br="__lodash_hash_undefined__";function wr(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ut&&e===void 0?br:e,this}function J(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}J.prototype.clear=cr;J.prototype.delete=fr;J.prototype.get=vr;J.prototype.has=yr;J.prototype.set=wr;function _r(){this.size=0,this.__data__={hash:new J,map:new(Le||W),string:new J}}function Or(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Mt(t,e){var n=t.__data__;return Or(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Tr(t){var e=Mt(this,t).delete(t);return this.size-=e?1:0,e}function Pr(t){return Mt(this,t).get(t)}function Cr(t){return Mt(this,t).has(t)}function xr(t,e){var n=Mt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}function Q(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Q.prototype.clear=_r;Q.prototype.delete=Tr;Q.prototype.get=Pr;Q.prototype.has=Cr;Q.prototype.set=xr;var Sr=200;function Ar(t,e){var n=this.__data__;if(n instanceof W){var o=n.__data__;if(!Le||o.length<Sr-1)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Q(o)}return n.set(t,e),this.size=n.size,this}function U(t){var e=this.__data__=new W(t);this.size=e.size}U.prototype.clear=sr;U.prototype.delete=ar;U.prototype.get=lr;U.prototype.has=ur;U.prototype.set=Ar;var Mr="__lodash_hash_undefined__";function Er(t){return this.__data__.set(t,Mr),this}function $r(t){return this.__data__.has(t)}function Ct(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Q;++e<n;)this.add(t[e])}Ct.prototype.add=Ct.prototype.push=Er;Ct.prototype.has=$r;function Dr(t,e){for(var n=-1,o=t==null?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1}function Rr(t,e){return t.has(e)}var Nr=1,Br=2;function on(t,e,n,o,r,i){var s=n&Nr,a=t.length,u=e.length;if(a!=u&&!(s&&u>a))return!1;var l=i.get(t),p=i.get(e);if(l&&p)return l==e&&p==t;var d=-1,c=!0,f=n&Br?new Ct:void 0;for(i.set(t,e),i.set(e,t);++d<a;){var h=t[d],m=e[d];if(o)var P=s?o(m,h,d,e,t,i):o(h,m,d,t,e,i);if(P!==void 0){if(P)continue;c=!1;break}if(f){if(!Dr(e,function(w,b){if(!Rr(f,b)&&(h===w||r(h,w,n,o,i)))return f.push(b)})){c=!1;break}}else if(!(h===m||r(h,m,n,o,i))){c=!1;break}}return i.delete(t),i.delete(e),c}var we=Ln.Uint8Array;function Hr(t){var e=-1,n=Array(t.size);return t.forEach(function(o,r){n[++e]=[r,o]}),n}function Ir(t){var e=-1,n=Array(t.size);return t.forEach(function(o){n[++e]=o}),n}var Vr=1,Lr=2,zr="[object Boolean]",Fr="[object Date]",Wr="[object Error]",jr="[object Map]",kr="[object Number]",Xr="[object RegExp]",Yr="[object Set]",Ur="[object String]",Gr="[object Symbol]",qr="[object ArrayBuffer]",Kr="[object DataView]",_e=te?te.prototype:void 0,Bt=_e?_e.valueOf:void 0;function Zr(t,e,n,o,r,i,s){switch(n){case Kr:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case qr:return!(t.byteLength!=e.byteLength||!i(new we(t),new we(e)));case zr:case Fr:case kr:return nn(+t,+e);case Wr:return t.name==e.name&&t.message==e.message;case Xr:case Ur:return t==e+"";case jr:var a=Hr;case Yr:var u=o&Vr;if(a||(a=Ir),t.size!=e.size&&!u)return!1;var l=s.get(t);if(l)return l==e;o|=Lr,s.set(t,e);var p=on(a(t),a(e),o,r,i,s);return s.delete(t),p;case Gr:if(Bt)return Bt.call(t)==Bt.call(e)}return!1}function Jr(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t}function Qr(t,e,n){var o=e(t);return bt(t)?o:Jr(o,n(t))}function ti(t,e){for(var n=-1,o=t==null?0:t.length,r=0,i=[];++n<o;){var s=t[n];e(s,n,t)&&(i[r++]=s)}return i}function ei(){return[]}var ni=Object.prototype,oi=ni.propertyIsEnumerable,Oe=Object.getOwnPropertySymbols,ri=Oe?function(t){return t==null?[]:(t=Object(t),ti(Oe(t),function(e){return oi.call(t,e)}))}:ei;function ii(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o}var si=9007199254740991,ai=/^(?:0|[1-9]\d*)$/;function li(t,e){var n=typeof t;return e=e??si,!!e&&(n=="number"||n!="symbol"&&ai.test(t))&&t>-1&&t%1==0&&t<e}var ui=Object.prototype,ci=ui.hasOwnProperty;function fi(t,e){var n=bt(t),o=!n&&zn(t),r=!n&&!o&&It(t),i=!n&&!o&&!r&&ze(t),s=n||o||r||i,a=s?ii(t.length,String):[],u=a.length;for(var l in t)(e||ci.call(t,l))&&!(s&&(l=="length"||r&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||li(l,u)))&&a.push(l);return a}function pi(t){return Fn(t)?fi(t):Wn(t)}function Te(t){return Qr(t,pi,ri)}var di=1,hi=Object.prototype,vi=hi.hasOwnProperty;function gi(t,e,n,o,r,i){var s=n&di,a=Te(t),u=a.length,l=Te(e),p=l.length;if(u!=p&&!s)return!1;for(var d=u;d--;){var c=a[d];if(!(s?c in e:vi.call(e,c)))return!1}var f=i.get(t),h=i.get(e);if(f&&h)return f==e&&h==t;var m=!0;i.set(t,e),i.set(e,t);for(var P=s;++d<u;){c=a[d];var w=t[c],b=e[c];if(o)var O=s?o(b,w,c,e,t,i):o(w,b,c,t,e,i);if(!(O===void 0?w===b||r(w,b,n,o,i):O)){m=!1;break}P||(P=c=="constructor")}if(m&&!P){var A=t.constructor,N=e.constructor;A!=N&&"constructor"in t&&"constructor"in e&&!(typeof A=="function"&&A instanceof A&&typeof N=="function"&&N instanceof N)&&(m=!1)}return i.delete(t),i.delete(e),m}var mi=1,Pe="[object Arguments]",Ce="[object Array]",mt="[object Object]",yi=Object.prototype,xe=yi.hasOwnProperty;function bi(t,e,n,o,r,i){var s=bt(t),a=bt(e),u=s?Ce:ee(t),l=a?Ce:ee(e);u=u==Pe?mt:u,l=l==Pe?mt:l;var p=u==mt,d=l==mt,c=u==l;if(c&&It(t)){if(!It(e))return!1;s=!0,p=!1}if(c&&!p)return i||(i=new U),s||ze(t)?on(t,e,n,o,r,i):Zr(t,e,u,n,o,r,i);if(!(n&mi)){var f=p&&xe.call(t,"__wrapped__"),h=d&&xe.call(e,"__wrapped__");if(f||h){var m=f?t.value():t,P=h?e.value():e;return i||(i=new U),r(m,P,n,o,i)}}return c?(i||(i=new U),gi(t,e,n,o,r,i)):!1}function rn(t,e,n,o,r){return t===e?!0:t==null||e==null||!ne(t)&&!ne(e)?t!==t&&e!==e:bi(t,e,n,o,rn,r)}function wi(t,e){return rn(t,e)}const _i={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function Se(t){return typeof t!="function"?null:t()}function Ae(t){return typeof t!="object"||!t?null:t}const Oi=q({compatConfig:{MODE:3},name:"Align",props:_i,emits:["align"],setup(t,e){let{expose:n,slots:o}=e;const r=k({}),i=k(),[s,a]=Jo(()=>{const{disabled:c,target:f,align:h,onAlign:m}=t;if(!c&&f&&i.value){const P=i.value;let w;const b=Se(f),O=Ae(f);r.value.element=b,r.value.point=O,r.value.align=h;const{activeElement:A}=document;return b&&jn(b)?w=qt(P,b,h):O&&(w=qo(P,O,h)),Zo(A,P),m&&w&&m(P,w),!0}return!1},z(()=>t.monitorBufferTime)),u=k({cancel:()=>{}}),l=k({cancel:()=>{}}),p=()=>{const c=t.target,f=Se(c),h=Ae(c);i.value!==l.value.element&&(l.value.cancel(),l.value.element=i.value,l.value.cancel=be(i.value,s)),(r.value.element!==f||!Ko(r.value.point,h)||!wi(r.value.align,t.align))&&(s(),u.value.element!==f&&(u.value.cancel(),u.value.element=f,u.value.cancel=be(f,s)))};He(()=>{Ht(()=>{p()})}),vn(()=>{Ht(()=>{p()})}),G(()=>t.disabled,c=>{c?a():s()},{immediate:!0,flush:"post"});const d=k(null);return G(()=>t.monitorWindowResize,c=>{c?d.value||(d.value=it(window,"resize",s)):d.value&&(d.value.remove(),d.value=null)},{flush:"post"}),gn(()=>{u.value.cancel(),l.value.cancel(),d.value&&d.value.remove(),a()}),n({forceAlign:()=>s(!0)}),()=>{const c=o==null?void 0:o.default();return c?wt(c[0],{ref:i},!0,!0):null}}}),Ti=q({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:kt,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,attrs:o,slots:r}=e;const i=$(),s=$(),a=$(),[u,l]=Oo(bn(t,"stretch")),p=()=>{t.stretch&&l(t.getRootDomNode())},d=$(!1);let c;G(()=>t.visible,C=>{clearTimeout(c),C?c=setTimeout(()=>{d.value=t.visible}):d.value=!1},{immediate:!0});const[f,h]=_o(d,p),m=$(),P=()=>t.point?t.point:t.getRootDomNode,w=()=>{var C;(C=i.value)===null||C===void 0||C.forceAlign()},b=(C,H)=>{var M;const D=t.getClassNameFromAlign(H),v=a.value;a.value!==D&&(a.value=D),f.value==="align"&&(v!==D?Promise.resolve().then(()=>{w()}):h(()=>{var _;(_=m.value)===null||_===void 0||_.call(m)}),(M=t.onAlign)===null||M===void 0||M.call(t,C,H))},O=z(()=>{const C=typeof t.animation=="object"?t.animation:Ne(t);return["onAfterEnter","onAfterLeave"].forEach(H=>{const M=C[H];C[H]=D=>{h(),f.value="stable",M==null||M(D)}}),C}),A=()=>new Promise(C=>{m.value=C});G([O,f],()=>{!O.value&&f.value==="motion"&&h()},{immediate:!0}),n({forceAlign:w,getElement:()=>s.value.$el||s.value});const N=z(()=>{var C;return!(!((C=t.align)===null||C===void 0)&&C.points&&(f.value==="align"||f.value==="stable"))});return()=>{var C;const{zIndex:H,align:M,prefixCls:D,destroyPopupOnHide:v,onMouseenter:_,onMouseleave:L,onTouchstart:E=()=>{},onMousedown:B}=t,S=f.value,R=[g(g({},u.value),{zIndex:H,opacity:S==="motion"||S==="stable"||!d.value?null:0,pointerEvents:!d.value&&S!=="stable"?"none":null}),o.style];let K=Be((C=r.default)===null||C===void 0?void 0:C.call(r,{visible:t.visible}));K.length>1&&(K=x("div",{class:`${D}-content`},[K]));const j=nt(D,o.class,a.value,!t.arrow&&`${D}-arrow-hidden`),Et=d.value||!t.visible?mn(O.value.name,O.value):{};return x(jt,X(X({ref:s},Et),{},{onBeforeEnter:A}),{default:()=>!v||t.visible?Re(x(Oi,{target:P(),key:"popup",ref:i,monitorWindowResize:!0,disabled:N.value,align:M,onAlign:b},{default:()=>x("div",{class:j,onMouseenter:_,onMouseleave:L,onMousedown:Jt(B,["capture"]),[st?"onTouchstartPassive":"onTouchstart"]:Jt(E,["capture"]),style:R},[K])}),[[yn,d.value]]):null})}}}),Pi=q({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:yo,setup(t,e){let{attrs:n,slots:o,expose:r}=e;const i=$(!1),s=$(!1),a=$(),u=$();return G([()=>t.visible,()=>t.mobile],()=>{i.value=t.visible,t.visible&&t.mobile&&(s.value=!0)},{immediate:!0,flush:"post"}),r({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),n),{visible:i.value}),p=s.value?x(bo,X(X({},l),{},{mobile:t.mobile,ref:a}),{default:o.default}):x(Ti,X(X({},l),{},{ref:a}),{default:o.default});return x("div",{ref:u},[x(Ue,l,null),p])}}});function Ci(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function Me(t,e,n){const o=t[e]||{};return g(g({},o),n)}function xi(t,e,n,o){const{points:r}=n,i=Object.keys(t);for(let s=0;s<i.length;s+=1){const a=i[s];if(Ci(t[a].points,r,o))return`${e}-placement-${a}`}return""}const Si={methods:{setState(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=typeof t=="function"?t(this.$data,this.$props):t;if(this.getDerivedStateFromProps){const o=this.getDerivedStateFromProps(wn(this),g(g({},this.$data),n));if(o===null)return;n=g(g({},n),o||{})}g(this.$data,n),this._.isMounted&&this.$forceUpdate(),Ht(()=>{e&&e()})},__emit(){const t=[].slice.call(arguments,0);let e=t[0];e=`on${e[0].toUpperCase()}${e.substring(1)}`;const n=this.$props[e]||this.$attrs[e];if(t.length&&n)if(Array.isArray(n))for(let o=0,r=n.length;o<r;o++)n[o](...t.slice(1));else n(...t.slice(1))}}},Ai=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],Mi=q({compatConfig:{MODE:3},name:"Trigger",mixins:[Si],inheritAttrs:!1,props:go(),setup(t){const e=z(()=>{const{popupPlacement:r,popupAlign:i,builtinPlacements:s}=t;return r&&s?Me(s,r,i):i}),n=$(null),o=r=>{n.value=r};return{vcTriggerContext:Sn("vcTriggerContext",{}),popupRef:n,setPopupRef:o,triggerRef:$(null),align:e,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 e;return this.popupVisible!==void 0?e=!!t.popupVisible:e=!!t.defaultPopupVisible,Ai.forEach(n=>{this[`fire${n}`]=o=>{this.fireEvents(n,o)}}),{prevPopupVisible:e,sPopupVisible:e,point:null}},watch:{popupVisible(t){t!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=t)}},created(){Cn("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),xn(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 n;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(n=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=it(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=it(n,"touchstart",this.onDocumentClick,st?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||t.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=it(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=it(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(t){const{mouseEnterDelay:e}=this.$props;this.fireEvents("onMouseenter",t),this.delaySetPopupVisible(!0,e,e?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 e;if(t&&t.relatedTarget&&!t.relatedTarget.setTimeout&&tt((e=this.popupRef)===null||e===void 0?void 0:e.getElement(),t.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.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){tt(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 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())&&t&&t.preventDefault&&t.preventDefault(),t&&t.domEvent&&t.domEvent.preventDefault();const e=!this.$data.sPopupVisible;(this.isClickToHide()&&!e||e&&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 e=t.target,n=this.getRootDomNode(),o=this.getPopupDomNode();(!tt(n,e)||this.isContextMenuOnly())&&!tt(o,e)&&!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,e,n,o;const{getTriggerDOMNode:r}=this.$props;if(r){const i=((e=(t=this.triggerRef)===null||t===void 0?void 0:t.$el)===null||e===void 0?void 0:e.nodeName)==="#comment"?null:ft(this.triggerRef);return ft(r(i))}try{const i=((o=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||o===void 0?void 0:o.nodeName)==="#comment"?null:ft(this.triggerRef);if(i)return i}catch{}return ft(this)},handleGetPopupClassFromAlign(t){const e=[],n=this.$props,{popupPlacement:o,builtinPlacements:r,prefixCls:i,alignPoint:s,getPopupClassNameFromAlign:a}=n;return o&&r&&e.push(xi(r,i,t,s)),a&&e.push(a(t)),e.join(" ")},getPopupAlign(){const t=this.$props,{popupPlacement:e,popupAlign:n,builtinPlacements:o}=t;return e&&o?Me(o,e,n):n},getComponent(){const t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[st?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:e,getRootDomNode:n,$attrs:o}=this,{prefixCls:r,destroyPopupOnHide:i,popupClassName:s,popupAnimation:a,popupTransitionName:u,popupStyle:l,mask:p,maskAnimation:d,maskTransitionName:c,zIndex:f,stretch:h,alignPoint:m,mobile:P,arrow:w,forceRender:b}=this.$props,{sPopupVisible:O,point:A}=this.$data,N=g(g({prefixCls:r,arrow:w,destroyPopupOnHide:i,visible:O,point:m?A:null,align:this.align,animation:a,getClassNameFromAlign:e,stretch:h,getRootDomNode:n,mask:p,zIndex:f,transitionName:u,maskAnimation:d,maskTransitionName:c,class:s,style:l,onAlign:o.onPopupAlign||Ye},t),{ref:this.setPopupRef,mobile:P,forceRender:b});return x(Pi,N,{default:this.$slots.popup||(()=>Pn(this,"popup"))})},attachParent(t){Y.cancel(this.attachId);const{getPopupContainer:e,getDocument:n}=this.$props,o=this.getRootDomNode();let r;e?(o||e.length===0)&&(r=e(o)):r=n(this.getRootDomNode()).body,r?r.appendChild(t):this.attachId=Y(()=>{this.attachParent(t)})},getContainer(){const{$props:t}=this,{getDocument:e}=t,n=e(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(t,e){const{alignPoint:n,sPopupVisible:o,onPopupVisibleChange:r}=this;this.clearDelayTimer(),o!==t&&(Tn(this,"popupVisible")||this.setState({sPopupVisible:t,prevPopupVisible:o}),r&&r(t)),n&&e&&t&&this.setPoint(e)},setPoint(t){const{alignPoint:e}=this.$props;!e||!t||this.setState({point:{pageX:t.pageX,pageY:t.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(t,e,n){const o=e*1e3;if(this.clearDelayTimer(),o){const r=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(t,r),this.clearDelayTimer()},o)}else this.setPopupVisible(t,n)},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 e=()=>{};const n=Qt(this);return this.childOriginEvents[t]&&n[t]?this[`fire${t}`]:(e=this.childOriginEvents[t]||n[t]||e,e)},isClickToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("click")!==-1||e.indexOf("click")!==-1},isContextMenuOnly(){const{action:t}=this.$props;return t==="contextmenu"||t.length===1&&t[0]==="contextmenu"},isContextmenuToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("contextmenu")!==-1||e.indexOf("contextmenu")!==-1},isClickToHide(){const{action:t,hideAction:e}=this.$props;return t.indexOf("click")!==-1||e.indexOf("click")!==-1},isMouseEnterToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("hover")!==-1||e.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:t,hideAction:e}=this.$props;return t.indexOf("hover")!==-1||e.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("focus")!==-1||e.indexOf("focus")!==-1},isBlurToHide(){const{action:t,hideAction:e}=this.$props;return t.indexOf("focus")!==-1||e.indexOf("blur")!==-1},forcePopupAlign(){var t;this.$data.sPopupVisible&&((t=this.popupRef)===null||t===void 0||t.forceAlign())},fireEvents(t,e){this.childOriginEvents[t]&&this.childOriginEvents[t](e);const n=this.$props[t]||this.$attrs[t];n&&n(e)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:t}=this,e=Ie(_n(this)),{alignPoint:n,getPopupContainer:o}=this.$props,r=e[0];this.childOriginEvents=Qt(r);const i={key:"trigger"};this.isContextmenuToShow()?i.onContextmenu=this.onContextmenu:i.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(i.onClick=this.onClick,i.onMousedown=this.onMousedown,i[st?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(i.onClick=this.createTwoChains("onClick"),i.onMousedown=this.createTwoChains("onMousedown"),i[st?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(i.onMouseenter=this.onMouseenter,n&&(i.onMousemove=this.onMouseMove)):i.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?i.onMouseleave=this.onMouseleave:i.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(i.onFocus=this.onFocus,i.onBlur=this.onBlur):(i.onFocus=this.createTwoChains("onFocus"),i.onBlur=l=>{l&&(!l.relatedTarget||!tt(l.target,l.relatedTarget))&&this.createTwoChains("onBlur")(l)});const s=nt(r&&r.props&&r.props.class,t.class);s&&(i.class=s);const a=wt(r,g(g({},i),{ref:"triggerRef"}),!0,!0),u=x(Xn,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return x(On,null,[a,u])}}),I={adjustX:1,adjustY:1},V=[0,0],sn={left:{points:["cr","cl"],overflow:I,offset:[-4,0],targetOffset:V},right:{points:["cl","cr"],overflow:I,offset:[4,0],targetOffset:V},top:{points:["bc","tc"],overflow:I,offset:[0,-4],targetOffset:V},bottom:{points:["tc","bc"],overflow:I,offset:[0,4],targetOffset:V},topLeft:{points:["bl","tl"],overflow:I,offset:[0,-4],targetOffset:V},leftTop:{points:["tr","tl"],overflow:I,offset:[-4,0],targetOffset:V},topRight:{points:["br","tr"],overflow:I,offset:[0,-4],targetOffset:V},rightTop:{points:["tl","tr"],overflow:I,offset:[4,0],targetOffset:V},bottomRight:{points:["tr","br"],overflow:I,offset:[0,4],targetOffset:V},rightBottom:{points:["bl","br"],overflow:I,offset:[4,0],targetOffset:V},bottomLeft:{points:["tl","bl"],overflow:I,offset:[0,4],targetOffset:V},leftBottom:{points:["br","bl"],overflow:I,offset:[-4,0],targetOffset:V}},Ei={prefixCls:String,id:String,overlayInnerStyle:T.any},$i=q({compatConfig:{MODE:3},name:"TooltipContent",props:Ei,setup(t,e){let{slots:n}=e;return()=>{var o;return x("div",{class:`${t.prefixCls}-inner`,id:t.id,role:"tooltip",style:t.overlayInnerStyle},[(o=n.overlay)===null||o===void 0?void 0:o.call(n)])}}});var Di=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]]);return n};function Ee(){}const Ri=q({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:T.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:T.string.def("right"),transitionName:String,animation:T.any,afterVisibleChange:T.func.def(()=>{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:T.string.def("rc-tooltip"),mouseEnterDelay:T.number.def(.1),mouseLeaveDelay:T.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:T.object.def(()=>({})),arrowContent:T.any.def(null),tipId:String,builtinPlacements:T.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(t,e){let{slots:n,attrs:o,expose:r}=e;const i=$(),s=()=>{const{prefixCls:p,tipId:d,overlayInnerStyle:c}=t;return[t.arrow?x("div",{class:`${p}-arrow`,key:"arrow"},[Mn(n,t,"arrowContent")]):null,x($i,{key:"content",prefixCls:p,id:d,overlayInnerStyle:c},{overlay:n.overlay})]};r({getPopupDomNode:()=>i.value.getPopupDomNode(),triggerDOM:i,forcePopupAlign:()=>{var p;return(p=i.value)===null||p===void 0?void 0:p.forcePopupAlign()}});const u=$(!1),l=$(!1);return An(()=>{const{destroyTooltipOnHide:p}=t;if(typeof p=="boolean")u.value=p;else if(p&&typeof p=="object"){const{keepParent:d}=p;u.value=d===!0,l.value=d===!1}}),()=>{const{overlayClassName:p,trigger:d,mouseEnterDelay:c,mouseLeaveDelay:f,overlayStyle:h,prefixCls:m,afterVisibleChange:P,transitionName:w,animation:b,placement:O,align:A,destroyTooltipOnHide:N,defaultVisible:C}=t,H=Di(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),M=g({},H);t.visible!==void 0&&(M.popupVisible=t.visible);const D=g(g(g({popupClassName:p,prefixCls:m,action:d,builtinPlacements:sn,popupPlacement:O,popupAlign:A,afterPopupVisibleChange:P,popupTransitionName:w,popupAnimation:b,defaultPopupVisible:C,destroyPopupOnHide:u.value,autoDestroy:l.value,mouseLeaveDelay:f,popupStyle:h,mouseEnterDelay:c},M),o),{onPopupVisibleChange:t.onVisibleChange||Ee,onPopupAlign:t.onPopupAlign||Ee,ref:i,arrow:!!t.arrow,popup:s()});return x(Mi,D,{default:n.default})}}}),Ni=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:pt(),overlayInnerStyle:pt(),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:pt(),builtinPlacements:pt(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),Bi={adjustX:1,adjustY:1},$e={adjustX:0,adjustY:0},Hi=[0,0];function De(t){return typeof t=="boolean"?t?Bi:$e:g(g({},$e),t)}function Ii(t){const{arrowWidth:e=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:r,arrowPointAtCenter:i}=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:[-(n+e),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+e)]},topRight:{points:["br","tc"],offset:[n+e,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+e)]},bottomRight:{points:["tr","bc"],offset:[n+e,4]},rightBottom:{points:["bl","cr"],offset:[4,o+e]},bottomLeft:{points:["tl","bc"],offset:[-(n+e),4]},leftBottom:{points:["br","cl"],offset:[-4,o+e]}};return Object.keys(s).forEach(a=>{s[a]=i?g(g({},s[a]),{overflow:De(r),targetOffset:Hi}):g(g({},sn[a]),{overflow:De(r)}),s[a].ignoreShake=!0}),s}function Vi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let e=0,n=t.length;e<n;e++)if(t[e]!==void 0)return t[e]}const Li=Tt.map(t=>`${t}-inverse`),zi=["success","processing","error","default","warning"];function Fi(t){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...Li,...Tt].includes(t):Tt.includes(t)}function ts(t){return zi.includes(t)}function Wi(t,e){const n=Fi(e),o=nt({[`${t}-${e}`]:e&&n}),r={},i={};return e&&!n&&(r.background=e,i["--antd-arrow-background-color"]=e),{className:o,overlayStyle:r,arrowStyle:i}}function yt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return t.map(n=>`${e}${n}`).join(",")}const an=8;function ji(t){const e=an,{sizePopupArrow:n,contentRadius:o,borderRadiusOuter:r,limitVerticalRadius:i}=t,s=n/2-Math.ceil(r*(Math.sqrt(2)-1)),a=(o>12?o+2:12)-s,u=i?e-s:a;return{dropdownArrowOffset:a,dropdownArrowOffsetVertical:u}}function ki(t,e){const{componentCls:n,sizePopupArrow:o,marginXXS:r,borderRadiusXS:i,borderRadiusOuter:s,boxShadowPopoverArrow:a}=t,{colorBg:u,showArrowCls:l,contentRadius:p=t.borderRadiusLG,limitVerticalRadius:d}=e,{dropdownArrowOffsetVertical:c,dropdownArrowOffset:f}=ji({sizePopupArrow:o,contentRadius:p,borderRadiusOuter:s,limitVerticalRadius:d}),h=o/2+r;return{[n]:{[`${n}-arrow`]:[g(g({position:"absolute",zIndex:1,display:"block"},fo(o,i,s,u,a)),{"&:before":{background:u}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:c},[`&-placement-leftBottom ${n}-arrow`]:{bottom:c},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:c},[`&-placement-rightBottom ${n}-arrow`]:{bottom:c},[yt(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(m=>m+=":not(&-arrow-hidden)"),l)]:{paddingBottom:h},[yt(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(m=>m+=":not(&-arrow-hidden)"),l)]:{paddingTop:h},[yt(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(m=>m+=":not(&-arrow-hidden)"),l)]:{paddingRight:{_skip_check_:!0,value:h}},[yt(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(m=>m+=":not(&-arrow-hidden)"),l)]:{paddingLeft:{_skip_check_:!0,value:h}}}}}const Xi=t=>{const{componentCls:e,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:a,boxShadowSecondary:u,paddingSM:l,paddingXS:p,tooltipRadiusOuter:d}=t;return[{[e]:g(g(g(g({},$n(t)),{position:"absolute",zIndex:s,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${e}-inner`]:{minWidth:a,minHeight:a,padding:`${l/2}px ${p}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:u},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${e}-inner`]:{borderRadius:Math.min(i,an)}},[`${e}-content`]:{position:"relative"}}),po(t,(c,f)=>{let{darkColor:h}=f;return{[`&${e}-${c}`]:{[`${e}-inner`]:{backgroundColor:h},[`${e}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},ki(Ve(t,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:i,limitVerticalRadius:!0}),{[`${e}-pure`]:{position:"relative",maxWidth:"none"}}]},Yi=(t,e)=>En("Tooltip",o=>{if((e==null?void 0:e.value)===!1)return[];const{borderRadius:r,colorTextLightSolid:i,colorBgDefault:s,borderRadiusOuter:a}=o,u=Ve(o,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:r,tooltipBg:s,tooltipRadiusOuter:a>4?4:a});return[Xi(u),Yn(o,"zoom-big-fast")]},o=>{let{zIndexPopupBase:r,colorBgSpotlight:i}=o;return{zIndexPopup:r+70,colorBgDefault:i}})(t),Ui=(t,e)=>{const n={},o=g({},t);return e.forEach(r=>{t&&r in t&&(n[r]=t[r],delete o[r])}),{picked:n,omitted:o}},Gi=()=>g(g({},Ni()),{title:T.any}),es=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),qi=q({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:kn(Gi(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(t,e){let{slots:n,emit:o,attrs:r,expose:i}=e;const{prefixCls:s,getPopupContainer:a,direction:u,rootPrefixCls:l}=Dn("tooltip",t),p=z(()=>{var v;return(v=t.open)!==null&&v!==void 0?v:t.visible}),d=k(Vi([t.open,t.visible])),c=k();let f;G(p,v=>{Y.cancel(f),f=Y(()=>{d.value=!!v})});const h=()=>{var v;const _=(v=t.title)!==null&&v!==void 0?v:n.title;return!_&&_!==0},m=v=>{const _=h();p.value===void 0&&(d.value=_?!1:v),_||(o("update:visible",v),o("visibleChange",v),o("update:open",v),o("openChange",v))};i({getPopupDomNode:()=>c.value.getPopupDomNode(),open:d,forcePopupAlign:()=>{var v;return(v=c.value)===null||v===void 0?void 0:v.forcePopupAlign()}});const w=z(()=>{var v;const{builtinPlacements:_,autoAdjustOverflow:L,arrow:E,arrowPointAtCenter:B}=t;let S=B;return typeof E=="object"&&(S=(v=E.pointAtCenter)!==null&&v!==void 0?v:B),_||Ii({arrowPointAtCenter:S,autoAdjustOverflow:L})}),b=v=>v||v==="",O=v=>{const _=v.type;if(typeof _=="object"&&v.props&&((_.__ANT_BUTTON===!0||_==="button")&&b(v.props.disabled)||_.__ANT_SWITCH===!0&&(b(v.props.disabled)||b(v.props.loading))||_.__ANT_RADIO===!0&&b(v.props.disabled))){const{picked:L,omitted:E}=Ui(Hn(v),["position","left","right","top","bottom","float","display","zIndex"]),B=g(g({display:"inline-block"},L),{cursor:"not-allowed",lineHeight:1,width:v.props&&v.props.block?"100%":void 0}),S=g(g({},E),{pointerEvents:"none"}),R=wt(v,{style:S},!0);return x("span",{style:B,class:`${s.value}-disabled-compatible-wrapper`},[R])}return v},A=()=>{var v,_;return(v=t.title)!==null&&v!==void 0?v:(_=n.title)===null||_===void 0?void 0:_.call(n)},N=(v,_)=>{const L=w.value,E=Object.keys(L).find(B=>{var S,R;return L[B].points[0]===((S=_.points)===null||S===void 0?void 0:S[0])&&L[B].points[1]===((R=_.points)===null||R===void 0?void 0:R[1])});if(E){const B=v.getBoundingClientRect(),S={top:"50%",left:"50%"};E.indexOf("top")>=0||E.indexOf("Bottom")>=0?S.top=`${B.height-_.offset[1]}px`:(E.indexOf("Top")>=0||E.indexOf("bottom")>=0)&&(S.top=`${-_.offset[1]}px`),E.indexOf("left")>=0||E.indexOf("Right")>=0?S.left=`${B.width-_.offset[0]}px`:(E.indexOf("right")>=0||E.indexOf("Left")>=0)&&(S.left=`${-_.offset[0]}px`),v.style.transformOrigin=`${S.left} ${S.top}`}},C=z(()=>Wi(s.value,t.color)),H=z(()=>r["data-popover-inject"]),[M,D]=Yi(s,z(()=>!H.value));return()=>{var v,_;const{openClassName:L,overlayClassName:E,overlayStyle:B,overlayInnerStyle:S}=t;let R=(_=Ie((v=n.default)===null||v===void 0?void 0:v.call(n)))!==null&&_!==void 0?_:null;R=R.length===1?R[0]:R;let K=d.value;if(p.value===void 0&&h()&&(K=!1),!R)return null;const j=O(Rn(R)&&!Nn(R)?R:x("span",null,[R])),Kt=nt({[L||`${s.value}-open`]:!0,[j.props&&j.props.class]:j.props&&j.props.class}),Et=nt(E,{[`${s.value}-rtl`]:u.value==="rtl"},C.value.className,D.value),ln=g(g({},C.value.overlayStyle),S),un=C.value.arrowStyle,cn=g(g(g({},r),t),{prefixCls:s.value,arrow:!!t.arrow,getPopupContainer:a==null?void 0:a.value,builtinPlacements:w.value,visible:K,ref:c,overlayClassName:Et,overlayStyle:g(g({},un),B),overlayInnerStyle:ln,onVisibleChange:m,onPopupAlign:N,transitionName:Bn(l.value,"zoom-big-fast",t.transitionName)});return M(x(Ri,cn,{default:()=>[d.value?wt(j,{class:Kt}):j],arrowContent:()=>x("span",{class:`${s.value}-arrow-content`},null),overlay:A}))}}}),ns=In(qi);class os{constructor(e){Zt(this,"baseUrl");this.baseUrl=e}async request(e,n={}){const o=e.startsWith("/api/")?e:`${this.baseUrl}${e}`,r={...n.headers};n.body instanceof FormData||(r["Content-Type"]="application/json");const i=await fetch(o,{...n,headers:r});if(!i.ok){const s={status:i.status,message:i.statusText};try{const a=await i.json();s.detail=a.detail??a.message,s.message=s.detail??s.message}catch{}throw s}return i.json()}createWebSocket(e){const n=window.location.protocol==="https:"?"wss:":"ws:",o=window.location.host;return new WebSocket(`${n}//${o}${this.baseUrl}${e}`)}}export{ns as A,os as B,Q as M,Tt as P,U as S,Mi as T,we as U,Ni as a,ji as b,Ii as c,Si as d,po as e,Vi as f,ki as g,ts as h,Fi as i,fi as j,pi as k,ri as l,Jr as m,Qr as n,Te as o,rn as p,Ct as q,fo as r,ei as s,es as t,Rr as u,wi as v,li as w,nn as x,Ir as y,co as z};