3laQJA1P.js 36.7 KB
import{bF as kt,a9 as Ft,aN as dt,p as T,y as fe,s as C,bn as qe,aM as Mt,bG as Ge,bl as Bt,ak as pt,aI as we,ap as $t,aQ as ht,ad as Wt,L as Nt,b1 as qt,aT as ie,bH as Ht,d as le,H as pe,bI as Q,bJ as _e,bK as Vt,bL as It,bM as Le,bN as Qe,o as Z,k as He,w as he,x as ce,g as O,P as Ce,q as zt,bO as Yt,K as mt,Q as gt,c as xe,S as Ve,bP as Ut,bd as jt,bQ as ne,J as Kt,bR as Xt,f as vt,N as yt,bC as Gt}from"./BtEn9SvP.js";const Qt=Ft(()=>{const e=T(new Map),t=T(),n=C(()=>{for(const i of e.value.values())if(i)return!0;return!1}),o=dt({scrollBody:T(!0)});let r=null;const s=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",Ge&&r?.(),t.value=void 0};return fe(n,(i,c)=>{if(!qe)return;if(!i){c&&s();return}t.value===void 0&&(t.value=document.body.style.overflow);const u=window.innerWidth-document.documentElement.clientWidth,d={padding:u,margin:0},l=o.scrollBody?.value?typeof o.scrollBody.value=="object"?Mt({padding:o.scrollBody.value.padding===!0?u:o.scrollBody.value.padding,margin:o.scrollBody.value.margin===!0?u:o.scrollBody.value.margin},d):d:{padding:0,margin:0};u>0&&(document.body.style.paddingRight=typeof l.padding=="number"?`${l.padding}px`:String(l.padding),document.body.style.marginRight=typeof l.margin=="number"?`${l.margin}px`:String(l.margin),document.documentElement.style.setProperty("--scrollbar-width",`${u}px`),document.body.style.overflow="hidden"),Ge&&(r=Bt(document,"touchmove",a=>Jt(a),{passive:!1})),pt(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function Po(e){const t=Math.random().toString(36).substring(2,7),n=Qt();n.value.set(t,e??!1);const o=C({get:()=>n.value.get(t)??!1,set:r=>n.value.set(t,r)});return kt(()=>{n.value.delete(t)}),o}function wt(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:wt(n)}}function Jt(e){const t=e||window.event,n=t.target;return n instanceof Element&&wt(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function Ro(e){const t=dt({dir:T("ltr")});return C(()=>e?.value||t.dir?.value||"ltr")}let Te=0;function _o(){we(e=>{if(!qe)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??Je()),document.body.insertAdjacentElement("beforeend",t[1]??Je()),Te++,e(()=>{Te===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),Te--})})}function Je(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Zt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},oe=new WeakMap,ge=new WeakMap,ve={},De=0,xt=function(e){return e&&(e.host||xt(e.parentNode))},en=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=xt(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},tn=function(e,t,n,o){var r=en(t,Array.isArray(e)?e:[e]);ve[n]||(ve[n]=new WeakMap);var s=ve[n],i=[],c=new Set,u=new Set(r),d=function(a){!a||c.has(a)||(c.add(a),d(a.parentNode))};r.forEach(d);var l=function(a){!a||u.has(a)||Array.prototype.forEach.call(a.children,function(f){if(c.has(f))l(f);else try{var p=f.getAttribute(o),h=p!==null&&p!=="false",m=(oe.get(f)||0)+1,g=(s.get(f)||0)+1;oe.set(f,m),s.set(f,g),i.push(f),m===1&&h&&ge.set(f,!0),g===1&&f.setAttribute(n,"true"),h||f.setAttribute(o,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return l(t),c.clear(),De++,function(){i.forEach(function(a){var f=oe.get(a)-1,p=s.get(a)-1;oe.set(a,f),s.set(a,p),f||(ge.has(a)||a.removeAttribute(o),ge.delete(a)),p||a.removeAttribute(n)}),De--,De||(oe=new WeakMap,oe=new WeakMap,ge=new WeakMap,ve={})}},nn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Zt(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),tn(o,r,n,"aria-hidden")):function(){return null}};function Lo(e){let t;fe(()=>ht(e),n=>{let o=!1;try{o=!!n?.closest("[popover]:not(:popover-open)")}catch{}n&&!o?t=nn(n):t&&t()}),$t(()=>{t&&t()})}function To(e,t="reka"){if(e)return e;let n;return n=Wt?.(),t?`${t}-${n}`:n}function on(e){const t=T(),n=C(()=>t.value?.width??0),o=C(()=>t.value?.height??0);return Nt(()=>{const r=ht(e);if(r){t.value={width:r.offsetWidth,height:r.offsetHeight};const s=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const c=i[0];let u,d;if("borderBoxSize"in c){const l=c.borderBoxSize,a=Array.isArray(l)?l[0]:l;u=a.inlineSize,d=a.blockSize}else u=r.offsetWidth,d=r.offsetHeight;t.value={width:u,height:d}});return s.observe(r,{box:"border-box"}),()=>s.unobserve(r)}else t.value=void 0}),{width:n,height:o}}function Do(e){const t=qt("",1e3);return{search:t,handleTypeaheadSearch:(r,s)=>{t.value=t.value+r;{const i=ie(),c=s.map(f=>({...f,textValue:f.value?.textValue??f.ref.textContent?.trim()??""})),u=c.find(f=>f.ref===i),d=c.map(f=>f.textValue),l=sn(d,t.value,u?.textValue),a=c.find(f=>f.textValue===l);return a&&a.ref.focus(),a?.ref}},resetTypeahead:()=>{t.value=""}}}function rn(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function sn(e,t,n){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=rn(e,Math.max(s,0));r.length===1&&(i=i.filter(d=>d!==n));const u=i.find(d=>d.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}const an=Ht(()=>T([]));function ln(){const e=an();return{add(t){const n=e.value[0];t!==n&&n?.pause(),e.value=Ze(e.value,t),e.value.unshift(t)},remove(t){e.value=Ze(e.value,t),e.value[0]?.resume()}}}function Ze(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}var cn=le({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,o=t,{currentRef:r,currentElement:s}=pe(),i=T(null),c=ln(),u=zt({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});we(l=>{if(!qe)return;const a=s.value;if(!n.trapped)return;function f(g){if(u.paused||!a)return;const v=g.target;a.contains(v)?i.value=v:Q(i.value,{select:!0})}function p(g){if(u.paused||!a)return;const v=g.relatedTarget;v!==null&&(a.contains(v)||Q(i.value,{select:!0}))}function h(g){const v=i.value;if(v===null||!g.some(x=>x.removedNodes.length>0))return;a.contains(v)||Q(a)}document.addEventListener("focusin",f),document.addEventListener("focusout",p);const m=new MutationObserver(h);a&&m.observe(a,{childList:!0,subtree:!0}),l(()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",p),m.disconnect()})}),we(async l=>{const a=s.value;if(await pt(),!a)return;c.add(u);const f=ie();if(!a.contains(f)){const h=new CustomEvent(_e,Qe);a.addEventListener(_e,m=>o("mountAutoFocus",m)),a.dispatchEvent(h),h.defaultPrevented||(Vt(It(a),{select:!0}),ie()===f&&Q(a))}l(()=>{a.removeEventListener(_e,g=>o("mountAutoFocus",g));const h=new CustomEvent(Le,Qe),m=g=>{o("unmountAutoFocus",g)};a.addEventListener(Le,m),a.dispatchEvent(h),setTimeout(()=>{h.defaultPrevented||Q(f??document.body,{select:!0}),a.removeEventListener(Le,m),c.remove(u)},0)})});function d(l){if(!n.loop&&!n.trapped||u.paused)return;const a=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,f=ie();if(a&&f){const p=l.currentTarget,[h,m]=Yt(p);h&&m?!l.shiftKey&&f===m?(l.preventDefault(),n.loop&&Q(h,{select:!0})):l.shiftKey&&f===h&&(l.preventDefault(),n.loop&&Q(m,{select:!0})):f===p&&l.preventDefault()}}return(l,a)=>(Z(),He(O(Ce),{ref_key:"currentRef",ref:r,tabindex:"-1","as-child":l.asChild,as:l.as,onKeydown:d},{default:he(()=>[ce(l.$slots,"default")]),_:3},8,["as-child","as"]))}}),ko=cn;const Fo="menu.itemSelect",et=["Enter"," "],un=["ArrowDown","PageUp","Home"],fn=["ArrowUp","PageDown","End"],Mo=[...un,...fn],Bo={ltr:[...et,"ArrowRight"],rtl:[...et,"ArrowLeft"]},$o={ltr:["ArrowLeft"],rtl:["ArrowRight"]};function Wo(e){return e?"open":"closed"}function dn(e){return e==="indeterminate"}function No(e){return dn(e)?"indeterminate":e?"checked":"unchecked"}function qo(e){const t=ie();for(const n of e)if(n===t||(n.focus(),ie()!==t))return}function pn(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const c=t[s].x,u=t[s].y,d=t[i].x,l=t[i].y;u>o!=l>o&&n<(d-c)*(o-u)/(l-u)+c&&(r=!r)}return r}function Ho(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return pn(n,t)}function Vo(e){return e.pointerType==="mouse"}const[bt,hn]=mt("PopperRoot");var mn=le({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=T();return hn({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>ce(n.$slots,"default")}}),Io=mn,gn=le({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:o}=pe(),r=bt();return gt(()=>{r.onAnchorChange(t.reference??o.value)}),(s,i)=>(Z(),He(O(Ce),{ref:O(n),as:s.as,"as-child":s.asChild},{default:he(()=>[ce(s.$slots,"default")]),_:3},8,["as","as-child"]))}}),zo=gn;const vn={key:0,d:"M0 0L6 6L12 0"},yn={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"};var wn=le({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return pe(),(n,o)=>(Z(),He(O(Ce),Ve(t,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 12 6",preserveAspectRatio:n.asChild?void 0:"none"}),{default:he(()=>[ce(n.$slots,"default",{},()=>[n.rounded?(Z(),xe("path",yn)):(Z(),xe("path",vn))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),xn=wn;function bn(e){return e!==null}function An(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,i=r.arrow?.centerOffset!==0,c=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[d,l]=Me(n),a={start:"0%",center:"50%",end:"100%"}[l],f=(r.arrow?.x??0)+c/2,p=(r.arrow?.y??0)+u/2;let h="",m="";return d==="bottom"?(h=i?a:`${f}px`,m=`${-u}px`):d==="top"?(h=i?a:`${f}px`,m=`${o.floating.height+u}px`):d==="right"?(h=`${-u}px`,m=i?a:`${p}px`):d==="left"&&(h=`${o.floating.width+u}px`,m=i?a:`${p}px`),{data:{x:h,y:m}}}}}function Me(e){const[t,n="center"]=e.split("-");return[t,n]}const Sn=["top","right","bottom","left"],X=Math.min,F=Math.max,be=Math.round,ye=Math.floor,V=e=>({x:e,y:e}),Cn={left:"right",right:"left",bottom:"top",top:"bottom"};function Be(e,t,n){return F(e,X(t,n))}function Y(e,t){return typeof e=="function"?e(t):e}function U(e){return e.split("-")[0]}function ue(e){return e.split("-")[1]}function Ie(e){return e==="x"?"y":"x"}function ze(e){return e==="y"?"height":"width"}function H(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Ye(e){return Ie(H(e))}function On(e,t,n){n===void 0&&(n=!1);const o=ue(e),r=Ye(e),s=ze(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ae(i)),[i,Ae(i)]}function En(e){const t=Ae(e);return[$e(e),t,$e(t)]}function $e(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const tt=["left","right"],nt=["right","left"],Pn=["top","bottom"],Rn=["bottom","top"];function _n(e,t,n){switch(e){case"top":case"bottom":return n?t?nt:tt:t?tt:nt;case"left":case"right":return t?Pn:Rn;default:return[]}}function Ln(e,t,n,o){const r=ue(e);let s=_n(U(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map($e)))),s}function Ae(e){const t=U(e);return Cn[t]+e.slice(t.length)}function Tn(e){return{top:0,right:0,bottom:0,left:0,...e}}function At(e){return typeof e!="number"?Tn(e):{top:e,right:e,bottom:e,left:e}}function Se(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function ot(e,t,n){let{reference:o,floating:r}=e;const s=H(t),i=Ye(t),c=ze(i),u=U(t),d=s==="y",l=o.x+o.width/2-r.width/2,a=o.y+o.height/2-r.height/2,f=o[c]/2-r[c]/2;let p;switch(u){case"top":p={x:l,y:o.y-r.height};break;case"bottom":p={x:l,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:a};break;case"left":p={x:o.x-r.width,y:a};break;default:p={x:o.x,y:o.y}}switch(ue(t)){case"start":p[i]-=f*(n&&d?-1:1);break;case"end":p[i]+=f*(n&&d?-1:1);break}return p}async function Dn(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:l="viewport",elementContext:a="floating",altBoundary:f=!1,padding:p=0}=Y(t,e),h=At(p),g=c[f?a==="floating"?"reference":"floating":a],v=Se(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:l,strategy:u})),w=a==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),x=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},A=Se(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:y,strategy:u}):w);return{top:(v.top-A.top+h.top)/x.y,bottom:(A.bottom-v.bottom+h.bottom)/x.y,left:(v.left-A.left+h.left)/x.x,right:(A.right-v.right+h.right)/x.x}}const kn=50,Fn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,c=i.detectOverflow?i:{...i,detectOverflow:Dn},u=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:l,y:a}=ot(d,o,u),f=o,p=0;const h={};for(let m=0;m<s.length;m++){const g=s[m];if(!g)continue;const{name:v,fn:w}=g,{x:y,y:x,data:A,reset:S}=await w({x:l,y:a,initialPlacement:o,placement:f,strategy:r,middlewareData:h,rects:d,platform:c,elements:{reference:e,floating:t}});l=y??l,a=x??a,h[v]={...h[v],...A},S&&p<kn&&(p++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(d=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:l,y:a}=ot(d,f,u)),m=-1)}return{x:l,y:a,placement:f,strategy:r,middlewareData:h}},Mn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:c,middlewareData:u}=t,{element:d,padding:l=0}=Y(e,t)||{};if(d==null)return{};const a=At(l),f={x:n,y:o},p=Ye(r),h=ze(p),m=await i.getDimensions(d),g=p==="y",v=g?"top":"left",w=g?"bottom":"right",y=g?"clientHeight":"clientWidth",x=s.reference[h]+s.reference[p]-f[p]-s.floating[h],A=f[p]-s.reference[p],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let b=S?S[y]:0;(!b||!await(i.isElement==null?void 0:i.isElement(S)))&&(b=c.floating[y]||s.floating[h]);const P=x/2-A/2,_=b/2-m[h]/2-1,D=X(a[v],_),q=X(a[w],_),E=D,B=b-m[h]-q,R=b/2-m[h]/2+P,z=Be(E,R,B),$=!u.arrow&&ue(r)!=null&&R!==z&&s.reference[h]/2-(R<E?D:q)-m[h]/2<0,k=$?R<E?R-E:R-B:0;return{[p]:f[p]+k,data:{[p]:z,centerOffset:R-z-k,...$&&{alignmentOffset:k}},reset:$}}}),Bn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:l=!0,crossAxis:a=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=Y(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=U(r),w=H(c),y=U(c)===c,x=await(u.isRTL==null?void 0:u.isRTL(d.floating)),A=f||(y||!m?[Ae(c)]:En(c)),S=h!=="none";!f&&S&&A.push(...Ln(c,m,h,x));const b=[c,...A],P=await u.detectOverflow(t,g),_=[];let D=((o=s.flip)==null?void 0:o.overflows)||[];if(l&&_.push(P[v]),a){const R=On(r,i,x);_.push(P[R[0]],P[R[1]])}if(D=[...D,{placement:r,overflows:_}],!_.every(R=>R<=0)){var q,E;const R=(((q=s.flip)==null?void 0:q.index)||0)+1,z=b[R];if(z&&(!(a==="alignment"?w!==H(z):!1)||D.every(L=>H(L.placement)===w?L.overflows[0]>0:!0)))return{data:{index:R,overflows:D},reset:{placement:z}};let $=(E=D.filter(k=>k.overflows[0]<=0).sort((k,L)=>k.overflows[1]-L.overflows[1])[0])==null?void 0:E.placement;if(!$)switch(p){case"bestFit":{var B;const k=(B=D.filter(L=>{if(S){const K=H(L.placement);return K===w||K==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(K=>K>0).reduce((K,Dt)=>K+Dt,0)]).sort((L,K)=>L[1]-K[1])[0])==null?void 0:B[0];k&&($=k);break}case"initialPlacement":$=c;break}if(r!==$)return{reset:{placement:$}}}return{}}}};function rt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function it(e){return Sn.some(t=>e[t]>=0)}const $n=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=Y(e,t);switch(r){case"referenceHidden":{const i=await o.detectOverflow(t,{...s,elementContext:"reference"}),c=rt(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:it(c)}}}case"escaped":{const i=await o.detectOverflow(t,{...s,altBoundary:!0}),c=rt(i,n.floating);return{data:{escapedOffsets:c,escaped:it(c)}}}default:return{}}}}},St=new Set(["left","top"]);async function Wn(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=U(n),c=ue(n),u=H(n)==="y",d=St.has(i)?-1:1,l=s&&u?-1:1,a=Y(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return c&&typeof h=="number"&&(p=c==="end"?h*-1:h),u?{x:p*l,y:f*d}:{x:f*d,y:p*l}}const Nn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:c}=t,u=await Wn(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+u.x,y:s+u.y,data:{...u,placement:i}}}}},qn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:u={fn:v=>{let{x:w,y}=v;return{x:w,y}}},...d}=Y(e,t),l={x:n,y:o},a=await s.detectOverflow(t,d),f=H(U(r)),p=Ie(f);let h=l[p],m=l[f];if(i){const v=p==="y"?"top":"left",w=p==="y"?"bottom":"right",y=h+a[v],x=h-a[w];h=Be(y,h,x)}if(c){const v=f==="y"?"top":"left",w=f==="y"?"bottom":"right",y=m+a[v],x=m-a[w];m=Be(y,m,x)}const g=u.fn({...t,[p]:h,[f]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[p]:i,[f]:c}}}}}},Hn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=Y(e,t),l={x:n,y:o},a=H(r),f=Ie(a);let p=l[f],h=l[a];const m=Y(c,t),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){const y=f==="y"?"height":"width",x=s.reference[f]-s.floating[y]+g.mainAxis,A=s.reference[f]+s.reference[y]-g.mainAxis;p<x?p=x:p>A&&(p=A)}if(d){var v,w;const y=f==="y"?"width":"height",x=St.has(U(r)),A=s.reference[a]-s.floating[y]+(x&&((v=i.offset)==null?void 0:v[a])||0)+(x?0:g.crossAxis),S=s.reference[a]+s.reference[y]+(x?0:((w=i.offset)==null?void 0:w[a])||0)-(x?g.crossAxis:0);h<A?h=A:h>S&&(h=S)}return{[f]:p,[a]:h}}}},Vn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:i,elements:c}=t,{apply:u=()=>{},...d}=Y(e,t),l=await i.detectOverflow(t,d),a=U(r),f=ue(r),p=H(r)==="y",{width:h,height:m}=s.floating;let g,v;a==="top"||a==="bottom"?(g=a,v=f===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(v=a,g=f==="end"?"top":"bottom");const w=m-l.top-l.bottom,y=h-l.left-l.right,x=X(m-l[g],w),A=X(h-l[v],y),S=!t.middlewareData.shift;let b=x,P=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=y),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(b=w),S&&!f){const D=F(l.left,0),q=F(l.right,0),E=F(l.top,0),B=F(l.bottom,0);p?P=h-2*(D!==0||q!==0?D+q:F(l.left,l.right)):b=m-2*(E!==0||B!==0?E+B:F(l.top,l.bottom))}await u({...t,availableWidth:P,availableHeight:b});const _=await i.getDimensions(c.floating);return h!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}};function Oe(){return typeof window<"u"}function te(e){return Ue(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function I(e){var t;return(t=(Ue(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ue(e){return Oe()?e instanceof Node||e instanceof M(e).Node:!1}function W(e){return Oe()?e instanceof Element||e instanceof M(e).Element:!1}function j(e){return Oe()?e instanceof HTMLElement||e instanceof M(e).HTMLElement:!1}function st(e){return!Oe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof M(e).ShadowRoot}function me(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=N(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function In(e){return/^(table|td|th)$/.test(te(e))}function Ee(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const zn=/transform|translate|scale|rotate|perspective|filter/,Yn=/paint|layout|strict|content/,J=e=>!!e&&e!=="none";let ke;function je(e){const t=W(e)?N(e):e;return J(t.transform)||J(t.translate)||J(t.scale)||J(t.rotate)||J(t.perspective)||!Ke()&&(J(t.backdropFilter)||J(t.filter))||zn.test(t.willChange||"")||Yn.test(t.contain||"")}function Un(e){let t=G(e);for(;j(t)&&!ae(t);){if(je(t))return t;if(Ee(t))return null;t=G(t)}return null}function Ke(){return ke==null&&(ke=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ke}function ae(e){return/^(html|body|#document)$/.test(te(e))}function N(e){return M(e).getComputedStyle(e)}function Pe(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function G(e){if(te(e)==="html")return e;const t=e.assignedSlot||e.parentNode||st(e)&&e.host||I(e);return st(t)?t.host:t}function Ct(e){const t=G(e);return ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:j(t)&&me(t)?t:Ct(t)}function de(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Ct(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=M(r);if(s){const c=We(i);return t.concat(i,i.visualViewport||[],me(r)?r:[],c&&n?de(c):[])}else return t.concat(r,de(r,[],n))}function We(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ot(e){const t=N(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=j(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,c=be(n)!==s||be(o)!==i;return c&&(n=s,o=i),{width:n,height:o,$:c}}function Xe(e){return W(e)?e:e.contextElement}function se(e){const t=Xe(e);if(!j(t))return V(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Ot(t);let i=(s?be(n.width):n.width)/o,c=(s?be(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const jn=V(0);function Et(e){const t=M(e);return!Ke()||!t.visualViewport?jn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==M(e)?!1:t}function ee(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Xe(e);let i=V(1);t&&(o?W(o)&&(i=se(o)):i=se(e));const c=Kn(s,n,o)?Et(s):V(0);let u=(r.left+c.x)/i.x,d=(r.top+c.y)/i.y,l=r.width/i.x,a=r.height/i.y;if(s){const f=M(s),p=o&&W(o)?M(o):o;let h=f,m=We(h);for(;m&&o&&p!==h;){const g=se(m),v=m.getBoundingClientRect(),w=N(m),y=v.left+(m.clientLeft+parseFloat(w.paddingLeft))*g.x,x=v.top+(m.clientTop+parseFloat(w.paddingTop))*g.y;u*=g.x,d*=g.y,l*=g.x,a*=g.y,u+=y,d+=x,h=M(m),m=We(h)}}return Se({width:l,height:a,x:u,y:d})}function Re(e,t){const n=Pe(e).scrollLeft;return t?t.left+n:ee(I(e)).left+n}function Pt(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Re(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Xn(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=I(o),c=t?Ee(t.floating):!1;if(o===i||c&&s)return n;let u={scrollLeft:0,scrollTop:0},d=V(1);const l=V(0),a=j(o);if((a||!a&&!s)&&((te(o)!=="body"||me(i))&&(u=Pe(o)),a)){const p=ee(o);d=se(o),l.x=p.x+o.clientLeft,l.y=p.y+o.clientTop}const f=i&&!a&&!s?Pt(i,u):V(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+l.x+f.x,y:n.y*d.y-u.scrollTop*d.y+l.y+f.y}}function Gn(e){return Array.from(e.getClientRects())}function Qn(e){const t=I(e),n=Pe(e),o=e.ownerDocument.body,r=F(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=F(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+Re(e);const c=-n.scrollTop;return N(o).direction==="rtl"&&(i+=F(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:c}}const at=25;function Jn(e,t){const n=M(e),o=I(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,c=0,u=0;if(r){s=r.width,i=r.height;const l=Ke();(!l||l&&t==="fixed")&&(c=r.offsetLeft,u=r.offsetTop)}const d=Re(o);if(d<=0){const l=o.ownerDocument,a=l.body,f=getComputedStyle(a),p=l.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(o.clientWidth-a.clientWidth-p);h<=at&&(s-=h)}else d<=at&&(s+=d);return{width:s,height:i,x:c,y:u}}function Zn(e,t){const n=ee(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=j(e)?se(e):V(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,u=r*s.x,d=o*s.y;return{width:i,height:c,x:u,y:d}}function lt(e,t,n){let o;if(t==="viewport")o=Jn(e,n);else if(t==="document")o=Qn(I(e));else if(W(t))o=Zn(t,n);else{const r=Et(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Se(o)}function Rt(e,t){const n=G(e);return n===t||!W(n)||ae(n)?!1:N(n).position==="fixed"||Rt(n,t)}function eo(e,t){const n=t.get(e);if(n)return n;let o=de(e,[],!1).filter(c=>W(c)&&te(c)!=="body"),r=null;const s=N(e).position==="fixed";let i=s?G(e):e;for(;W(i)&&!ae(i);){const c=N(i),u=je(i);!u&&c.position==="fixed"&&(r=null),(s?!u&&!r:!u&&c.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||me(i)&&!u&&Rt(e,i))?o=o.filter(l=>l!==i):r=c,i=G(i)}return t.set(e,o),o}function to(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?Ee(t)?[]:eo(t,this._c):[].concat(n),o],c=lt(t,i[0],r);let u=c.top,d=c.right,l=c.bottom,a=c.left;for(let f=1;f<i.length;f++){const p=lt(t,i[f],r);u=F(p.top,u),d=X(p.right,d),l=X(p.bottom,l),a=F(p.left,a)}return{width:d-a,height:l-u,x:a,y:u}}function no(e){const{width:t,height:n}=Ot(e);return{width:t,height:n}}function oo(e,t,n){const o=j(t),r=I(t),s=n==="fixed",i=ee(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const u=V(0);function d(){u.x=Re(r)}if(o||!o&&!s)if((te(t)!=="body"||me(r))&&(c=Pe(t)),o){const p=ee(t,!0,s,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else r&&d();s&&!o&&r&&d();const l=r&&!o&&!s?Pt(r,c):V(0),a=i.left+c.scrollLeft-u.x-l.x,f=i.top+c.scrollTop-u.y-l.y;return{x:a,y:f,width:i.width,height:i.height}}function Fe(e){return N(e).position==="static"}function ct(e,t){if(!j(e)||N(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return I(e)===n&&(n=n.ownerDocument.body),n}function _t(e,t){const n=M(e);if(Ee(e))return n;if(!j(e)){let r=G(e);for(;r&&!ae(r);){if(W(r)&&!Fe(r))return r;r=G(r)}return n}let o=ct(e,t);for(;o&&In(o)&&Fe(o);)o=ct(o,t);return o&&ae(o)&&Fe(o)&&!je(o)?n:o||Un(e)||n}const ro=async function(e){const t=this.getOffsetParent||_t,n=this.getDimensions,o=await n(e.floating);return{reference:oo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function io(e){return N(e).direction==="rtl"}const so={convertOffsetParentRelativeRectToViewportRelativeRect:Xn,getDocumentElement:I,getClippingRect:to,getOffsetParent:_t,getElementRects:ro,getClientRects:Gn,getDimensions:no,getScale:se,isElement:W,isRTL:io};function Lt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ao(e,t){let n=null,o;const r=I(e);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function i(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),s();const d=e.getBoundingClientRect(),{left:l,top:a,width:f,height:p}=d;if(c||t(),!f||!p)return;const h=ye(a),m=ye(r.clientWidth-(l+f)),g=ye(r.clientHeight-(a+p)),v=ye(l),y={rootMargin:-h+"px "+-m+"px "+-g+"px "+-v+"px",threshold:F(0,X(1,u))||1};let x=!0;function A(S){const b=S[0].intersectionRatio;if(b!==u){if(!x)return i();b?i(!1,b):o=setTimeout(()=>{i(!1,1e-7)},1e3)}b===1&&!Lt(d,e.getBoundingClientRect())&&i(),x=!1}try{n=new IntersectionObserver(A,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(A,y)}n.observe(e)}return i(!0),s}function lo(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,d=Xe(e),l=r||s?[...d?de(d):[],...t?de(t):[]]:[];l.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const a=d&&c?ao(d,n):null;let f=-1,p=null;i&&(p=new ResizeObserver(v=>{let[w]=v;w&&w.target===d&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(t)})),n()}),d&&!u&&p.observe(d),t&&p.observe(t));let h,m=u?ee(e):null;u&&g();function g(){const v=ee(e);m&&!Lt(m,v)&&n(),m=v,h=requestAnimationFrame(g)}return n(),()=>{var v;l.forEach(w=>{r&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),a?.(),(v=p)==null||v.disconnect(),p=null,u&&cancelAnimationFrame(h)}}const co=Nn,uo=qn,ut=Bn,fo=Vn,po=$n,ho=Mn,mo=Hn,go=(e,t,n)=>{const o=new Map,r={platform:so,...n},s={...r.platform,_c:o};return Fn(e,t,{...r,platform:s})};function vo(e){return e!=null&&typeof e=="object"&&"$el"in e}function Ne(e){if(vo(e)){const t=e.$el;return Ue(t)&&te(t)==="#comment"?null:t}return e}function re(e){return typeof e=="function"?e():O(e)}function yo(e){return{name:"arrow",options:e,fn(t){const n=Ne(re(e.element));return n==null?{}:ho({element:n,padding:e.padding}).fn(t)}}}function Tt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ft(e,t){const n=Tt(e);return Math.round(t*n)/n}function wo(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,r=C(()=>{var b;return(b=re(n.open))!=null?b:!0}),s=C(()=>re(n.middleware)),i=C(()=>{var b;return(b=re(n.placement))!=null?b:"bottom"}),c=C(()=>{var b;return(b=re(n.strategy))!=null?b:"absolute"}),u=C(()=>{var b;return(b=re(n.transform))!=null?b:!0}),d=C(()=>Ne(e.value)),l=C(()=>Ne(t.value)),a=T(0),f=T(0),p=T(c.value),h=T(i.value),m=Kt({}),g=T(!1),v=C(()=>{const b={position:p.value,left:"0",top:"0"};if(!l.value)return b;const P=ft(l.value,a.value),_=ft(l.value,f.value);return u.value?{...b,transform:"translate("+P+"px, "+_+"px)",...Tt(l.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:P+"px",top:_+"px"}});let w;function y(){if(d.value==null||l.value==null)return;const b=r.value;go(d.value,l.value,{middleware:s.value,placement:i.value,strategy:c.value}).then(P=>{a.value=P.x,f.value=P.y,p.value=P.strategy,h.value=P.placement,m.value=P.middlewareData,g.value=b!==!1})}function x(){typeof w=="function"&&(w(),w=void 0)}function A(){if(x(),o===void 0){y();return}if(d.value!=null&&l.value!=null){w=o(d.value,l.value,y);return}}function S(){r.value||(g.value=!1)}return fe([s,i,c,r],y,{flush:"sync"}),fe([d,l],A,{flush:"sync"}),fe(r,S,{flush:"sync"}),Ut()&&jt(x),{x:ne(a),y:ne(f),strategy:ne(p),placement:ne(h),middlewareData:ne(m),isPositioned:ne(g),floatingStyles:v,update:y}}const xo={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[bo,Ao]=mt("PopperContent");var So=le({inheritAttrs:!1,__name:"PopperContent",props:Gt({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...xo}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,r=bt(),{forwardRef:s,currentElement:i}=pe(),c=T(),u=T(),{width:d,height:l}=on(u),a=C(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),f=C(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),p=C(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),h=C(()=>({padding:f.value,boundary:p.value.filter(bn),altBoundary:p.value.length>0})),m=C(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),g=Xt(()=>[co({mainAxis:n.sideOffset+l.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&ut({...h.value,...m.value}),n.avoidCollisions&&uo({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?mo():void 0,...h.value}),!n.prioritizePosition&&n.avoidCollisions&&ut({...h.value,...m.value}),fo({...h.value,apply:({elements:E,rects:B,availableWidth:R,availableHeight:z})=>{const{width:$,height:k}=B.reference,L=E.floating.style;L.setProperty("--reka-popper-available-width",`${R}px`),L.setProperty("--reka-popper-available-height",`${z}px`),L.setProperty("--reka-popper-anchor-width",`${$}px`),L.setProperty("--reka-popper-anchor-height",`${k}px`)}}),u.value&&yo({element:u.value,padding:n.arrowPadding}),An({arrowWidth:d.value,arrowHeight:l.value}),n.hideWhenDetached&&po({strategy:"referenceHidden",...h.value})]),v=C(()=>n.reference??r.anchor.value),{floatingStyles:w,placement:y,isPositioned:x,middlewareData:A}=wo(v,c,{strategy:n.positionStrategy,placement:a,whileElementsMounted:(...E)=>lo(...E,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:g}),S=C(()=>Me(y.value)[0]),b=C(()=>Me(y.value)[1]);gt(()=>{x.value&&o("placed")});const P=C(()=>{const E=A.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&E}),_=T("");we(()=>{i.value&&(_.value=window.getComputedStyle(i.value).zIndex)});const D=C(()=>A.value.arrow?.x??0),q=C(()=>A.value.arrow?.y??0);return Ao({placedSide:S,onArrowChange:E=>u.value=E,arrowX:D,arrowY:q,shouldHideArrow:P}),(E,B)=>(Z(),xe("div",{ref_key:"floatingRef",ref:c,"data-reka-popper-content-wrapper":"",style:yt({...O(w),transform:O(x)?O(w).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_.value,"--reka-popper-transform-origin":[O(A).transformOrigin?.x,O(A).transformOrigin?.y].join(" "),...O(A).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[vt(O(Ce),Ve({ref:O(s)},E.$attrs,{"as-child":n.asChild,as:E.as,"data-side":S.value,"data-align":b.value,style:{animation:O(x)?void 0:"none"}}),{default:he(()=>[ce(E.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),Yo=So;const Co={top:"bottom",right:"left",bottom:"top",left:"right"};var Oo=le({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const{forwardRef:t}=pe(),n=bo(),o=C(()=>Co[n.placedSide.value]);return(r,s)=>(Z(),xe("span",{ref:i=>{O(n).onArrowChange(i??void 0)},style:yt({position:"absolute",left:O(n).arrowX?.value?`${O(n).arrowX?.value}px`:void 0,top:O(n).arrowY?.value?`${O(n).arrowY?.value}px`:void 0,[o.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[O(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[O(n).placedSide.value],visibility:O(n).shouldHideArrow.value?"hidden":void 0})},[vt(xn,Ve(r.$attrs,{ref:O(t),style:{display:"block"},as:r.as,"as-child":r.asChild,rounded:r.rounded,width:r.width,height:r.height}),{default:he(()=>[ce(r.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}}),Uo=Oo;function jo(e,t={}){const n=e.detail.originalEvent,o=n.target;if(!o?.isConnected){e.preventDefault();return}t.scrollable&&(n.offsetX>o.clientWidth||n.offsetY>o.clientHeight)&&e.preventDefault()}export{ko as F,Fo as I,fn as L,Io as P,et as S,To as a,Yo as b,_o as c,Po as d,Lo as e,Do as f,qo as g,Uo as h,zo as i,sn as j,Wo as k,xo as l,Ho as m,Mo as n,Vo as o,jo as p,No as q,dn as r,$o as s,Bo as t,Ro as u};