/* Copyright © 2024 Melbet - All Rights Reserved */ var ee=Object.defineProperty,ne=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var ct=Object.getOwnPropertySymbols;var _t=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable;var St=(t,e,n)=>e in t?ee(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_=(t,e)=>{for(var n in e||(e={}))_t.call(e,n)&&St(t,n,e[n]);if(ct)for(var n of ct(e))Dt.call(e,n)&&St(t,n,e[n]);return t},z=(t,e)=>ne(t,oe(e));var ht=(t,e)=>{var n={};for(var o in t)_t.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&ct)for(var o of ct(t))e.indexOf(o)<0&&Dt.call(t,o)&&(n[o]=t[o]);return n};import{watchEffect as ie,onScopeDispose as Vt,onMounted as yt,watch as ot,onBeforeUnmount as it,nextTick as re,getCurrentInstance as xt,ref as wt,unref as m,provide as se,inject as ce,computed as j,reactive as le}from"../../../../shared-assets/__shared_vue_deps_SRT2KB67.js";import{unrefElement as ae}from"./_r9fP6sa7pPh.js";import{noopas q,stopElements as fe,checkStopDropdownOutsideEvent as ue,isDef as de}from"./entry-Bl6dkD65.js";let lt;const me=()=>{if(lt)return lt;try{const t=Object.defineProperty({},"passive",{get(){return lt=!0,!0}});window.addEventListener("p",q,t),window.removeEventListener("p",q,t)}catch(t){}return lt};var pe=Object.defineProperty,Pt=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,Ct=(t,e,n)=>e in t?pe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,we=(t,e)=>{for(var n in e||(e={}))he.call(e,n)&&Ct(t,n,e[n]);if(Pt)for(var n of Pt(e))ge.call(e,n)&&Ct(t,n,e[n]);return t};const Lt=t=>{const e=we({passive:!1},typeof t=="boolean"?{capture:t!=null?t:!1}:t);return me()?e:!!e.capture},ve=(t,e=[])=>(t!=null&&t.value&&e.push(t.value),e),mn=(t,e,n,o)=>{if(!t)return q;let i=q;const s=ie(()=>{const l=ae(t);i(),l&&(l.addEventListener(e,n,Lt(o)),i=()=>{l.removeEventListener(e,n,Lt(o)),i=q})},{flush:"post"}),r=()=>{s(),i()};return Vt(r),r},Wt=["mousedown","touchstart","pointerdown"],It=t=>Wt.forEach(e=>document.removeEventListener(e,t,!0)),pn=({checkOutside:t,stopElementsStore:e=fe,isOpen:n,close:o})=>{const i=s=>{const r=ue(e,s.composedPath()),l=t(s);!r&&l&&re(()=>o())};yt(()=>{ot(n,s=>s?(r=>Wt.forEach(l=>document.addEventListener(l,r,!0)))(i):It(i))}),it(()=>{It(i)})},Nt=(...[t,e,n])=>ot(t,(o,i,s)=>{o&&e(o,i,s)},n),hn=({disabled:t,cannotOpen:e,cannotClose:n})=>{const{emit:o}=xt(),i=wt(!1),s=wt(!1),r=()=>{m(e)||m(t)||(i.value=!0)},l=()=>{m(n)||(i.value=!1)};return ot(i,(c,a)=>{c!==a&&(o("change",c),o(c?"open":"close"))}),Nt(t,()=>{i.value=!1}),Nt(i,()=>{s.value=!0},{immediate:!0}),it(()=>l()),{isOpen:i,isOpenOnce:s,open:r,close:l,toggle:c=>{m(c)===!0?r():m(c)===!1||m(i)===!0?l():m(i)===!1&&r()}}},gn=({hoverable:t,hoverableTimeout:e,clickable:n,open:o,close:i,toggle:s,checkLeaveOutside:r})=>{const{emit:l}=xt();let c,a;return it(()=>{clearTimeout(c),clearTimeout(a)}),{onEnter:f=>{l("enter",f),m(t)&&(clearTimeout(a),c=window.setTimeout(o,m(e)))},onLeave:f=>{l("leave",f),m(t)&&(clearTimeout(c),r(f)&&(a=window.setTimeout(i,m(e))))},onClick:f=>{l("click",f),m(n)&&s()}}},et=new Set,$t=(t,e)=>t.$parent!==t.$root&&(t.$parent===e||$t(t.$parent,e)),wn=t=>{const e=xt();return ot(t,n=>{n?et.add(e.proxy):et.delete(e.proxy)}),it(()=>{et.delete(e.proxy)}),{getCurrentDropdown:()=>e.proxy,getOpenedParentDropdowns:()=>ve(e.proxy).filter(n=>et.has(n)),getOpenedChildDropdowns:()=>[...et].filter(n=>$t(n,e.proxy))}},B=Math.min,D=Math.max,ft=Math.round,at=Math.floor,G=t=>({x:t,y:t}),ye={left:"right",right:"left",bottom:"top",top:"bottom"},xe={start:"end",end:"start"};function be(t,e,n){return D(t,B(e,n))}function rt(t,e){return typeof t=="function"?t(e):t}function Y(t){return t.split("-")[0]}function Q(t){return t.split("-")[1]}function Oe(t){return t==="x"?"y":"x"}function bt(t){return t==="y"?"height":"width"}function mt(t){return["top","bottom"].includes(Y(t))?"y":"x"}function Ot(t){return Oe(mt(t))}function Ee(t,e,n){n===void 0&&(n=!1);const o=Q(t),i=Ot(t),s=bt(i);let r=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=ut(r)),[r,ut(r)]}function Te(t){const e=ut(t);return[vt(t),e,vt(e)]}function vt(t){return t.replace(/start|end/g,e=>xe[e])}function Re(t,e,n){const o=["left","right"],i=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?s:r;default:return[]}}function Ae(t,e,n,o){const i=Q(t);let s=Re(Y(t),n==="start",o);return i&&(s=s.map(r=>r+"-"+i),e&&(s=s.concat(s.map(vt)))),s}function ut(t){return t.replace(/left|right|bottom|top/g,e=>ye[e])}function Se(t){return _({top:0,right:0,bottom:0,left:0},t)}function zt(t){return typeof t!="number"?Se(t):{top:t,right:t,bottom:t,left:t}}function dt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Ft(t,e,n){let{reference:o,floating:i}=t;const s=mt(e),r=Ot(e),l=bt(r),c=Y(e),a=s==="y",f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,g=o[l]/2-i[l]/2;let u;switch(c){case"top":u={x:f,y:o.y-i.height};break;case"bottom":u={x:f,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:d};break;case"left":u={x:o.x-i.width,y:d};break;default:u={x:o.x,y:o.y}}switch(Q(e)){case"start":u[r]-=g*(n&&a?-1:1);break;case"end":u[r]+=g*(n&&a?-1:1);break}return u}const _e=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,l=s.filter(Boolean),c=await(r.isRTL==null?void 0:r.isRTL(e));let a=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:d}=Ft(a,o,c),g=o,u={},p=0;for(let h=0;h({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:s,platform:r,elements:l,middlewareData:c}=e,{element:a,padding:f=0}=rt(t,e)||{};if(a==null)return{};const d=zt(f),g={x:n,y:o},u=Ot(i),p=bt(u),h=await r.getDimensions(a),v=u==="y",w=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",E=s.reference[p]+s.reference[u]-g[u]-s.floating[p],x=g[u]-s.reference[u],R=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a));let O=R?R[b]:0;(!O||!await(r.isElement==null?void 0:r.isElement(R)))&&(O=l.floating[b]||s.floating[p]);const T=E/2-x/2,A=O/2-h[p]/2-1,C=B(d[w],A),S=B(d[y],A),I=C,N=O-h[p]-S,F=O/2-h[p]/2+T,W=be(I,F,N),M=!c.arrow&&Q(i)!=null&&F!==W&&s.reference[p]/2-(FN<=0)){var A,C;const N=(((A=s.flip)==null?void 0:A.index)||0)+1,F=x[N];if(F)return{data:{index:N,overflows:T},reset:{placement:F}};let W=(C=T.filter(M=>M.overflows[0]<=0).sort((M,k)=>M.overflows[1]-k.overflows[1])[0])==null?void 0:C.placement;if(!W)switch(u){case"bestFit":{var S;const M=(S=T.map(k=>[k.placement,k.overflows.filter(tt=>tt>0).reduce((tt,te)=>tt+te,0)]).sort((k,tt)=>k[1]-tt[1])[0])==null?void 0:S[0];M&&(W=M);break}case"initialPlacement":W=l;break}if(i!==W)return{reset:{placement:W}}}return{}}}};async function Ce(t,e){const{placement:n,platform:o,elements:i}=t,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),r=Y(n),l=Q(n),c=mt(n)==="y",a=["left","top"].includes(r)?-1:1,f=s&&c?-1:1,d=rt(e,t);let{mainAxis:g,crossAxis:u,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:_({mainAxis:0,crossAxis:0,alignmentAxis:null},d);return l&&typeof p=="number"&&(u=l==="end"?p*-1:p),c?{x:u*f,y:g*a}:{x:g*a,y:u*f}}const Le=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:s,placement:r,middlewareData:l}=e,c=await Ce(e,t);return r===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+c.x,y:s+c.y,data:z(_({},c),{placement:r})}}}},Ie=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:i,elements:s}=e,T=rt(t,e),{apply:r=()=>{}}=T,l=ht(T,["apply"]),c=await Gt(e,l),a=Y(n),f=Q(n),d=mt(n)==="y",{width:g,height:u}=o.floating;let p,h;a==="top"||a==="bottom"?(p=a,h=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(h=a,p=f==="end"?"top":"bottom");const v=u-c.top-c.bottom,w=g-c.left-c.right,y=B(u-c[p],v),b=B(g-c[h],w),E=!e.middlewareData.shift;let x=y,R=b;if(d?R=f||E?B(b,w):w:x=f||E?B(y,v):v,E&&!f){const A=D(c.left,0),C=D(c.right,0),S=D(c.top,0),I=D(c.bottom,0);d?R=g-2*(A!==0||C!==0?A+C:D(c.left,c.right)):x=u-2*(S!==0||I!==0?S+I:D(c.top,c.bottom))}await r(z(_({},e),{availableWidth:R,availableHeight:x}));const O=await i.getDimensions(s.floating);return g!==O.width||u!==O.height?{reset:{rects:!0}}:{}}}};function Z(t){return Ut(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function $(t){var e;return(e=(Ut(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ut(t){return t instanceof Node||t instanceof P(t).Node}function H(t){return t instanceof Element||t instanceof P(t).Element}function V(t){return t instanceof HTMLElement||t instanceof P(t).HTMLElement}function Mt(t){return typeof ShadowRoot=="undefined"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}function st(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=L(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ne(t){return["table","td","th"].includes(Z(t))}function Et(t){const e=Tt(),n=L(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Fe(t){let e=U(t);for(;V(e)&&!J(e);){if(Et(e))return e;e=U(e)}return null}function Tt(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function J(t){return["html","body","#document"].includes(Z(t))}function L(t){return P(t).getComputedStyle(t)}function pt(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function U(t){if(Z(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Mt(t)&&t.host||$(t);return Mt(e)?e.host:e}function jt(t){const e=U(t);return J(e)?t.ownerDocument?t.ownerDocument.body:t.body:V(e)&&st(e)?e:jt(e)}function nt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=jt(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),r=P(i);return s?e.concat(r,r.visualViewport||[],st(i)?i:[],r.frameElement&&n?nt(r.frameElement):[]):e.concat(i,nt(i,[],n))}function Yt(t){const e=L(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=V(t),s=i?t.offsetWidth:n,r=i?t.offsetHeight:o,l=ft(n)!==s||ft(o)!==r;return l&&(n=s,o=r),{width:n,height:o,$:l}}function Rt(t){return H(t)?t:t.contextElement}function K(t){const e=Rt(t);if(!V(e))return G(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Yt(e);let r=(s?ft(n.width):n.width)/o,l=(s?ft(n.height):n.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}const Me=G(0);function Xt(t){const e=P(t);return!Tt()||!e.visualViewport?Me:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ke(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==P(t)?!1:e}function X(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Rt(t);let r=G(1);e&&(o?H(o)&&(r=K(o)):r=K(t));const l=ke(s,n,o)?Xt(s):G(0);let c=(i.left+l.x)/r.x,a=(i.top+l.y)/r.y,f=i.width/r.x,d=i.height/r.y;if(s){const g=P(s),u=o&&H(o)?P(o):o;let p=g,h=p.frameElement;for(;h&&o&&u!==p;){const v=K(h),w=h.getBoundingClientRect(),y=L(h),b=w.left+(h.clientLeft+parseFloat(y.paddingLeft))*v.x,E=w.top+(h.clientTop+parseFloat(y.paddingTop))*v.y;c*=v.x,a*=v.y,f*=v.x,d*=v.y,c+=b,a+=E,p=P(h),h=p.frameElement}}return dt({width:f,height:d,x:c,y:a})}const Be=[":popover-open",":modal"];function At(t){return Be.some(e=>{try{return t.matches(e)}catch(n){return!1}})}function He(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",r=$(o),l=e?At(e.floating):!1;if(o===r||l&&s)return n;let c={scrollLeft:0,scrollTop:0},a=G(1);const f=G(0),d=V(o);if((d||!d&&!s)&&((Z(o)!=="body"||st(r))&&(c=pt(o)),V(o))){const g=X(o);a=K(o),f.x=g.x+o.clientLeft,f.y=g.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x,y:n.y*a.y-c.scrollTop*a.y+f.y}}function Ve(t){return Array.from(t.getClientRects())}function qt(t){return X($(t)).left+pt(t).scrollLeft}function We(t){const e=$(t),n=pt(t),o=t.ownerDocument.body,i=D(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=D(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+qt(t);const l=-n.scrollTop;return L(o).direction==="rtl"&&(r+=D(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:l}}function $e(t,e){const n=P(t),o=$(t),i=n.visualViewport;let s=o.clientWidth,r=o.clientHeight,l=0,c=0;if(i){s=i.width,r=i.height;const a=Tt();(!a||a&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:r,x:l,y:c}}function ze(t,e){const n=X(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=V(t)?K(t):G(1),r=t.clientWidth*s.x,l=t.clientHeight*s.y,c=i*s.x,a=o*s.y;return{width:r,height:l,x:c,y:a}}function kt(t,e,n){let o;if(e==="viewport")o=$e(t,n);else if(e==="document")o=We($(t));else if(H(e))o=ze(e,n);else{const i=Xt(t);o=z(_({},e),{x:e.x-i.x,y:e.y-i.y})}return dt(o)}function Kt(t,e){const n=U(t);return n===e||!H(n)||J(n)?!1:L(n).position==="fixed"||Kt(n,e)}function Ge(t,e){const n=e.get(t);if(n)return n;let o=nt(t,[],!1).filter(l=>H(l)&&Z(l)!=="body"),i=null;const s=L(t).position==="fixed";let r=s?U(t):t;for(;H(r)&&!J(r);){const l=L(r),c=Et(r);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||st(r)&&!c&&Kt(t,r))?o=o.filter(f=>f!==r):i=l,r=U(r)}return e.set(t,o),o}function Ue(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[...n==="clippingAncestors"?At(e)?[]:Ge(e,this._c):[].concat(n),o],l=r[0],c=r.reduce((a,f)=>{const d=kt(e,f,i);return a.top=D(d.top,a.top),a.right=B(d.right,a.right),a.bottom=B(d.bottom,a.bottom),a.left=D(d.left,a.left),a},kt(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function je(t){const{width:e,height:n}=Yt(t);return{width:e,height:n}}function Ye(t,e,n){const o=V(e),i=$(e),s=n==="fixed",r=X(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=G(0);if(o||!o&&!s)if((Z(e)!=="body"||st(i))&&(l=pt(e)),o){const d=X(e,!0,s,e);c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}else i&&(c.x=qt(i));const a=r.left+l.scrollLeft-c.x,f=r.top+l.scrollTop-c.y;return{x:a,y:f,width:r.width,height:r.height}}function gt(t){return L(t).position==="static"}function Bt(t,e){return!V(t)||L(t).position==="fixed"?null:e?e(t):t.offsetParent}function Jt(t,e){const n=P(t);if(At(t))return n;if(!V(t)){let i=U(t);for(;i&&!J(i);){if(H(i)&&!gt(i))return i;i=U(i)}return n}let o=Bt(t,e);for(;o&&Ne(o)&>(o);)o=Bt(o,e);return o&&J(o)&>(o)&&!Et(o)?n:o||Fe(t)||n}const Xe=async function(t){const e=this.getOffsetParent||Jt,n=this.getDimensions,o=await n(t.floating);return{reference:Ye(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function qe(t){return L(t).direction==="rtl"}const Ke={convertOffsetParentRelativeRectToViewportRelativeRect:He,getDocumentElement:$,getClippingRect:Ue,getOffsetParent:Jt,getElementRects:Xe,getClientRects:Ve,getDimensions:je,getScale:K,isElement:H,isRTL:qe};function Je(t,e){let n=null,o;const i=$(t);function s(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function r(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:a,top:f,width:d,height:g}=t.getBoundingClientRect();if(l||e(),!d||!g)return;const u=at(f),p=at(i.clientWidth-(a+d)),h=at(i.clientHeight-(f+g)),v=at(a),y={rootMargin:-u+"px "+-p+"px "+-h+"px "+-v+"px",threshold:D(0,B(1,c))||1};let b=!0;function E(x){const R=x[0].intersectionRatio;if(R!==c){if(!b)return r();R?r(!1,R):o=setTimeout(()=>{r(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(E,z(_({},y),{root:i.ownerDocument}))}catch(x){n=new IntersectionObserver(E,y)}n.observe(t)}return r(!0),s}function Qe(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,a=Rt(t),f=i||s?[...a?nt(a):[],...nt(e)]:[];f.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const d=a&&l?Je(a,n):null;let g=-1,u=null;r&&(u=new ResizeObserver(w=>{let[y]=w;y&&y.target===a&&u&&(u.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var b;(b=u)==null||b.observe(e)})),n()}),a&&!c&&u.observe(a),u.observe(e));let p,h=c?X(t):null;c&&v();function v(){const w=X(t);h&&(w.x!==h.x||w.y!==h.y||w.width!==h.width||w.height!==h.height)&&n(),h=w,p=requestAnimationFrame(v)}return n(),()=>{var w;f.forEach(y=>{i&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),d==null||d(),(w=u)==null||w.disconnect(),u=null,c&&cancelAnimationFrame(p)}}const Ze=Le,tn=Pe,en=Ie,nn=De,on=(t,e,n)=>{const o=new Map,i=_({platform:Ke},n),s=z(_({},i.platform),{_c:o});return _e(t,e,z(_({},i),{platform:s}))},rn=t=>{yt(()=>{m(t)&&window&&window.document.body.appendChild(m(t))}),it(()=>{m(t)&&window&&window.document.body.removeChild(m(t))})};var Qt=(t=>(t.BETTING_FAVORITES_PROVIDED_DATA="BETTING_FAVORITES_PROVIDED_DATA",t.REGISTRATION_PROVIDED_DATA="REGISTRATION_PROVIDED_DATA",t.REGISTRATION_DATA_STORE="REGISTRATION_DATA_STORE",t.MODAL_STORE="MODAL_STORE",t.OFFICE_MENU_STORE="OFFICE_MENU_STORE",t.CHANGE_PASSWORD_FORM="CHANGE_PASSWORD_FORM",t.BETTING_CHAMP_RESULTS_PROVIDED_DATA="BETTING_CHAMP_RESULTS_PROVIDED_DATA",t.RESET_AMOUNT_ON_FIRST_TAP="RESET_AMOUNT_ON_FIRST_TAP",t.BETS_HISTORY_EXACT="BETS_HISTORY_EXACT",t.BETS_HISTORY_TOTO="BETS_HISTORY_TOTO",t.FLOATING="FLOATING",t.COUPON="COUPON",t))(Qt||{});const Zt=Qt.FLOATING,vn=()=>se(Zt,{viewPortPadding:wt({top:0,right:0,bottom:0,left:0})}),sn=()=>ce(Zt);var Ht=(t,e,n)=>new Promise((o,i)=>{var s=c=>{try{l(n.next(c))}catch(a){i(a)}},r=c=>{try{l(n.throw(c))}catch(a){i(a)}},l=c=>c.done?o(c.value):Promise.resolve(c.value).then(s,r);l((n=n.apply(t,e)).next())});const cn=["top","bottom"],ln=t=>cn.includes((e=>e.split("-")[0])(t)),yn=({align:t,arrow:e,direction:n,inside:o,isOpen:i,flexible:s,flippable:r,sameWidth:l,tooltip:c,triangle:a,trigger:f})=>{rn(c);const{viewPortPadding:d}=sn(),g=j(()=>m(d).top+m(d).bottom),u=j(()=>m(t)!=="center"?`${m(n)}-${m(t)}`:m(n)),p={height:0,width:0},h=le({isReady:!1,placement:m(u),tooltip:{height:0,width:0,x:0,y:0},arrow:{x:0,y:0}}),v=j(()=>Ze(({rects:O,placement:T})=>({mainAxis:m(o)?-(ln(T)?O.reference.height:O.reference.width):0}))),w=j(()=>m(r)?tn({padding:m(d)}):void 0),y=j(()=>en({padding:m(d),apply({availableHeight:O,rects:T}){const A=window.innerHeight-T.reference.height-m(g);p.height=m(s)?Math.min(O,A):0,p.width=m(l)?T.reference.width:0}})),b=j(()=>m(a)?nn({element:m(e),padding:0}):void 0),E=j(()=>({placement:m(u),strategy:"absolute",middleware:[m(v),m(w),m(y),m(b)].filter(de)})),x=()=>Ht(void 0,null,function*(){var O,T,A,C;const S=yield on(m(f),m(c),m(E));Object.assign(h,{isReady:!0,placement:S.placement,tooltip:{height:p.height,width:p.width,x:S.x,y:S.y},arrow:{x:(T=(O=S.middlewareData.arrow)==null?void 0:O.x)!=null?T:0,y:(C=(A=S.middlewareData.arrow)==null?void 0:A.y)!=null?C:0}})});let R;return yt(()=>Ht(void 0,null,function*(){let O=q;R=new ResizeObserver(T=>{const[A]=T;A!=null&&A.contentRect.height&&x()}),R.observe(m(c)),ot(i,T=>{T?requestAnimationFrame(()=>{O=Qe(m(f),m(c),x)}):(O(),h.isReady=!1)},{immediate:!0}),Vt(()=>{O(),R.disconnect()})})),{floating:h}};export{hn as a,wn as d,pn as d$1,Lt as getEventListenerOptions,gn as i,vn as m,mn as useEventListener,yn as y};