vendor: 2,675 bytes, line 1
1import{P as bt}from"./C7UZQNV0.js";import{g as P,x as z,M as ee,y as ht,cN as ne,cO as oe,cP as Q,k as T,e as at,i as Ft,o as At,w as Ct,O as ft,ax as Vt,cQ as Nt,a6 as ie,cd as re,cR as se,cS as le,aB as ce,c as ae,b as fe,m as ue,ay as de}from"./DBJrdZQJ.js";import{u as It}from"./o8Z_Uzia.js";const pe=["top","right","bottom","left"],j=Math.min,k=Math.max,st=Math.round,rt=Math.floor,_=t=>({x:t,y:t}),he={left:"right",right:"left",bottom:"top",top:"bottom"},me={start:"end",end:"start"};function gt(t,e,n){return k(t,j(e,n))}function N(t,e){return typeof t=="function"?t(e):t}function I(t){return t.split("-")[0]}function tt(t){return t.split("-")[1]}function Ot(t){return t==="x"?"y":"x"}function Pt(t){return t==="y"?"height":"width"}function et(t){return["top","bottom"].includes(I(t))?"y":"x"}function Rt(t){return Ot(et(t))}function ge(t,e,n){n===void 0&&(n=!1);const o=tt(t),i=Rt(t),s=Pt(i);let r=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=lt(r)),[r,lt(r)]}function we(t){const e=lt(t);return[wt(t),e,wt(e)]}function wt(t){return t.replace(/start|end/g,e=>me[e])}function ye(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 ve(t,e,n,o){const i=tt(t);let s=ye(I(t),n==="start",o);return i&&(s=s.map(r=>r+"-"+i),e&&(s=s.concat(s.map(wt)))),s}function lt(t){return t.replace(/left|right|bottom|top/g,e=>he[e])}function xe(t){return{top:0,right:0,bottom:0,left:0,...t}}function jt(t){return typeof t!="number"?xe(t):{top:t,right:t,bottom:t,left:t}}function ct(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 kt(t,e,n){let{reference:o,floating:i}=t;const s=et(e),r=Rt(e),c=Pt(r),l=I(e),a=s==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,h=o[c]/2-i[c]/2;let f;switch(l){case"top":f={x:d,y:o.y-i.height};break;case"bottom":f={x:d,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:u};break;case"left":f={x:o.x-i.width,y:u};break;default:f={x:o.x,y:o.y}}switch(tt(e)){case"start":f[r]-=h*(n&&a?-1:1);break;case"end":f[r]+=h*(n&&a?-1:1);break}return f}const be=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,c=s.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(e));let a=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=kt(a,o,l),h=o,f={},p=0;for(let m=0;m<c.length;m++){const{name:g,fn:w}=c[m],{x:v,y,data:x,reset:A}=await w({x:d,y:u,initialPlacement:o,placement:h,strategy:i,middlewareData:f,re
vendor: 5,043 bytes, line 1
1cts:a,platform:r,elements:{reference:t,floating:e}});d=v??d,u=y??u,f={...f,[g]:{...f[g],...x}},A&&p<=50&&(p++,typeof A=="object"&&(A.placement&&(h=A.placement),A.rects&&(a=A.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:i}):A.rects),{x:d,y:u}=kt(a,h,l)),m=-1)}return{x:d,y:u,placement:h,strategy:i,middlewareData:f}};async function nt(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:r,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:f=0}=N(e,t),p=jt(f),g=c[h?u==="floating"?"reference":"floating":u],w=ct(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:a,rootBoundary:d,strategy:l})),v=u==="floating"?{...r.floating,x:o,y:i}:r.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=ct(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:y,strategy:l}):v);return{top:(w.top-A.top+p.top)/x.y,bottom:(A.bottom-w.bottom+p.bottom)/x.y,left:(w.left-A.left+p.left)/x.x,right:(A.right-w.right+p.right)/x.x}}const Ae=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:s,platform:r,elements:c,middlewareData:l}=e,{element:a,padding:d=0}=N(t,e)||{};if(a==null)return{};const u=jt(d),h={x:n,y:o},f=Rt(i),p=Pt(f),m=await r.getDimensions(a),g=f==="y",w=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",x=s.reference[p]+s.reference[f]-h[f]-s.floating[p],A=h[f]-s.reference[f],C=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a));let b=C?C[y]:0;(!b||!await(r.isElement==null?void 0:r.isElement(C)))&&(b=c.floating[y]||s.floating[p]);const O=x/2-A/2,L=b/2-m[p]/2-1,X=j(u[w],L),S=j(u[v],L),R=X,U=b-m[p]-S,E=b/2-m[p]/2+O,$=gt(R,E,U),M=!l.arrow&&tt(i)!=null&&E!==$&&s.reference[p]/2-(E<R?X:S)-m[p]/2<0,D=M?E<R?E-R:E-U:0;return{[f]:h[f]+D,data:{[f]:$,centerOffset:E-$-D,...M&&{alignmentOffset:D}},reset:M}}}),Ce=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:r,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=N(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=I(i),v=I(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(a.floating)),x=h||(v||!m?[lt(c)]:we(c));!h&&p!=="none"&&x.push(...ve(c,m,p,y));const A=[c,...x],C=await nt(e,g),b=[];let O=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&b.push(C[w]),u){const R=ge(i,r,y);b.push(C[R[0]],C[R[1]])}if(O=[...O,{placement:i,overflows:b}],!b.every(R=>R<=0)){var L,X;const R=(((L=s.flip)==null?void 0:L.index)||0)+1,U=A[R];if(U)return{data:{index:R,overflows:O},reset:{placement:U}};let E=(X=O.filter($=>$.overflows[0]<=0).sort(($,M)=>$.overflows[1]-M.overflows[1])[0])==null?void 0:X.placement;if(!E)switch(f){case"bestFit":{var S;const $=(S=O.map(M=>[M.placement,M.overflows.filter(D=>D>0).reduce((D,te)=>D+te,0)]).sort((M,D)=>M[1]-D[1])[0])==null?void 0:S[0];$&&(E=$);break}case"initialPlacement":E=c;break}if(i!==E)return{reset:{placement:E}}}return{}}}};function Bt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function $t(t){return pe.some(e=>t[e]>=0)}const Oe=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=N(t,e);switch(o){case"referenceHidden":{const s=await nt(e,{...i,elementContext:"reference"}),r=Bt(s,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:$t(r)}}}case"escaped":{const s=await nt(e,{...i,altBoundary:!0}),r=Bt(s,n.floating);return{data:{escapedOffsets:r,escaped:$t(r)}}}default:return{}}}}};async function Pe(t,e){const{placement:n,platform:o,elements:i}=t,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),r=I(n),c=tt(n),l=et(n)==="y",a=["left","top"].includes(r)?-1:1,d=s&&l?-1:1,u=N(e,t);let{mainAxis:h,crossAxis:f,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return c&&typeof p=="number"&&(f=c==="end"?p*-1:p),l?{x:f*d,y:h*a}:{x:h*a,y:f*d}}const Re=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:c}=e,l=await Pe(e,t);return r===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:r}}}}},Se=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:r=!1,limiter:c={fn:g=>{let{x:w,y:v}=g;return{x:w,y:v}}},...l}=N(t,e),a={x:n,y:o},d=await nt(e,l),u=et(I(i)),h=Ot(u);
1let f=a[h],p=a[u];if(s){const g=h==="y"?"top":"left",w=h==="y"?"bottom":"right",v=f+d[g],y=f-d[w];f=gt(v,f,y)}if(r){const g=u==="y"?"top":"left",w=u==="y"?"bottom":"right",v=p+d[g],y=p-d[w];p=gt(v,p,y)}const m=c.fn({...e,[h]:f,[u]:p});return{...m,data:{x:m.x-n,y:m.y-o}}}}},Ee=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:s,middlewareData:r}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=N(t,e),d={x:n,y:o},u=et(i),h=Ot(u);let f=d[h],p=d[u];const m=N(c,e),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const y=h==="y"?"height":"width",x=s.reference[h]-s.floating[y]+g.mainAxis,A=s.reference[h]+s.reference[y]-g.mainAxis;f<x?f=x:f>A&&(f=A)}if(a){var w,v;const y=h==="y"?"width":"height",x=["top","left"].includes(I(i)),A=s.reference[u]-s.floating[y]+(x&&((w=r.offset)==null?void 0:w[u])||0)+(x?0:g.crossAxis),C=s.reference[u]+s.reference[y]+(x?0:((v=r.offset)==null?void 0:v[u])||0)-(x?g.crossAxis:0);p<A?p=A:p>C&&(p=C)}return{[h]:f,[u]:p}}}},De=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:i,elements:s}=e,{apply:r=()=>{},...c}=N(t,e),l=await nt(e,c),a=I(n),d=tt(n),u=et(n)==="y",{width:h,height:f}=o.floating;let p,m;a==="top"||a==="bottom"?(p=a,m=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(m=a,p=d==="end"?"top":"bottom");const g=f-l[p],w=h-l[m],v=!e.middlewareData.shift;let y=g,x=w;if(u){const C=h-l.left-l.right;x=d||v?j(w,C):C}else{const C=f-l.top-l.bottom;y=d||v?j(g,C):C}if(v&&!d){const C=k(l.left,0),b=k(l.right,0),O=k(l.top,0),L=k(l.bottom,0);u?x=h-2*(C!==0||b!==0?C+b:k(l.left,l.right)):y=f-2*(O!==0||L!==0?O+L:k(l.top,l.bottom))}await r({...e,availableWidth:x,availableHeight:y});const A=await i.getDimensions(s.floating);return h!==A.width||f!==A.height?{reset:{rects:!0}}:{}}}};function ut(){return typeof window<"u"}function K(t){return St(t)?(t.nodeName||"").toLowerCase():"#document"}function B(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function V(t){var e;return(e=(St(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function St(t){return ut()?t instanceof Node||t instanceof B(t).Node:!1}function W(t){return ut()?t instanceof Element||t instanceof B(t).Element:!1}function F(t){return ut()?t instanceof HTMLElement||t instanceof B(t).HTMLElement:!1}function Mt(t){return!ut()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof B(t).ShadowRoot}function it(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=H(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Le(t){return["table","td","th"].includes(K(t))}function dt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Et(t){const e=Dt(),n=W(t)?H(t):t;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Te(t){let e=Y(t);for(;F(e)&&!J(e);){if(Et(e))return e;if(dt(e))return null;e=Y(e)}return null}function Dt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function J(t){return["html","body","#document"].includes(K(t))}function H(t){return B(t).getComputedStyle(t)}function pt(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Y(t){if(K(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Mt(t)&&t.host||V(t);return Mt(e)?e.host:e}function Yt(t){const e=Y(t);return J(e)?t.ownerDocument?t.ownerDocument.body:t.body:F(e)&&it(e)?e:Yt(e)}function ot(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Yt(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),r=B(i);if(s){const c=yt(r);
vendor: 5,639 bytes, line 1
1return e.concat(r,r.visualViewport||[],it(i)?i:[],c&&n?ot(c):[])}return e.concat(i,ot(i,[],n))}function yt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Xt(t){const e=H(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=F(t),s=i?t.offsetWidth:n,r=i?t.offsetHeight:o,c=st(n)!==s||st(o)!==r;return c&&(n=s,o=r),{width:n,height:o,$:c}}function Lt(t){return W(t)?t:t.contextElement}function G(t){const e=Lt(t);if(!F(e))return _(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Xt(e);let r=(s?st(n.width):n.width)/o,c=(s?st(n.height):n.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}const ke=_(0);function Ut(t){const e=B(t);return!Dt()||!e.visualViewport?ke:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Be(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==B(t)?!1:e}function q(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Lt(t);let r=_(1);e&&(o?W(o)&&(r=G(o)):r=G(t));const c=Be(s,n,o)?Ut(s):_(0);let l=(i.left+c.x)/r.x,a=(i.top+c.y)/r.y,d=i.width/r.x,u=i.height/r.y;if(s){const h=B(s),f=o&&W(o)?B(o):o;let p=h,m=yt(p);for(;m&&o&&f!==p;){const g=G(m),w=m.getBoundingClientRect(),v=H(m),y=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*g.x,x=w.top+(m.clientTop+parseFloat(v.paddingTop))*g.y;l*=g.x,a*=g.y,d*=g.x,u*=g.y,l+=y,a+=x,p=B(m),m=yt(p)}}return ct({width:d,height:u,x:l,y:a})}function Tt(t,e){const n=pt(t).scrollLeft;return e?e.left+n:q(V(t)).left+n}function qt(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=o.left+e.scrollLeft-(n?0:Tt(t,o)),s=o.top+e.scrollTop;return{x:i,y:s}}function $e(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",r=V(o),c=e?dt(e.floating):!1;if(o===r||c&&s)return n;let l={scrollLeft:0,scrollTop:0},a=_(1);const d=_(0),u=F(o);if((u||!u&&!s)&&((K(o)!=="body"||it(r))&&(l=pt(o)),F(o))){const f=q(o);a=G(o),d.x=f.x+o.clientLeft,d.y=f.y+o.clientTop}const h=r&&!u&&!s?qt(r,l,!0):_(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+d.x+h.x,y:n.y*a.y-l.scrollTop*a.y+d.y+h.y}}function Me(t){return Array.from(t.getClientRects())}function We(t){const e=V(t),n=pt(t),o=t.ownerDocument.body,i=k(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=k(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+Tt(t);const c=-n.scrollTop;return H(o).direction==="rtl"&&(r+=k(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:c}}function He(t,e){const n=B(t),o=V(t),i=n.visualViewport;let s=o.clientWidth,r=o.clientHeight,c=0,l=0;if(i){s=i.width,r=i.height;const a=Dt();(!a||a&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:s,height:r,x:c,y:l}}function ze(t,e){const n=q(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=F(t)?G(t):_(1),r=t.clientWidth*s.x,c=t.clientHeight*s.y,l=i*s.x,a=o*s.y;return{width:r,height:c,x:l,y:a}}function Wt(t,e,n){let o;if(e==="viewport")o=He(t,n);else if(e==="document")o=We(V(t));else if(W(e))o=ze(e,n);else{const i=Ut(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return ct(o)}function Kt(t,e){const n=Y(t);return n===e||!W(n)||J(n)?!1:H(n).position==="fixed"||Kt(n,e)}function _e(t,e){const n=e.get(t);if(n)return n;let o=ot(t,[],!1).filter(c=>W(c)&&K(c)!=="body"),i=null;const s=H(t).position==="fixed";let r=s?Y(t):t;for(;W(r)&&!J(r);){const c=H(r),l=Et(r);!l&&c.position==="fixed"&&(i=null),(s?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||it(r)&&!l&&Kt(t,r))?o=o.filter(d=>d!==r):i=c,r=Y(r)}return e.set(t,o),o}function Fe(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[...n==="clippingAncestors"?dt(e)?[]:_e(e,this._c):[].concat(n),o],c=r[0],l=r.reduce((a,d)=>{const u=Wt(e,d,i);return a.top=k(u.top,a.top),a.right=j(u.right,a.right),a.bottom=j(u.bottom,a.bottom),a.left=k(u.left,a.left),a},Wt(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ve(t){const{width:e,height:n}=Xt(t);return{width:e,height:n}}function Ne(t,e,n){const o=F(e),i=V(e),s=n==="fixed",r=q(t,!0,s,e);let c={scrollLeft:0,scrollTop:0};const l=_(0);if(o||!o&&!s)if((K(e)!=="body"||it(i))&&(c=pt(e)),o){const h=q(e,!0,s,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&(l.x=Tt(i));const a=i&&!o&&!s?qt(i,c):_(0),d=r.left+c.scrollLeft-l.x-a.x,u=r.top+c.scrollTop-l.y-a.y;return{x:d,y:u,width:r.width,height:r.height}}function mt(t){return H(t).position==="static"}function Ht(t,e){if(!F(t)||H(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function Qt(t,e){const n=B(t);if(dt(t))return n;if(!F(t)){let i=Y(t);for(;i&&!J(i);){if(W(i)&&!mt(i))return i;i=Y(i)}return n}let o=Ht(t,e);for(;o&&Le(o)&&mt(o);)o=Ht(o,e);return o&&J(o)&&mt(o)&&!Et(o)?n:o||Te(t)||n}const Ie=async function(t){const e=this.getOffsetParent||Qt,n=this.getDimensions,o=await n(t.floating);return{reference:Ne(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function je(t){return H(t).direction==="rtl"}const Ye={convertOffsetParentRelativeRectToViewportRelativeRect:$e,getDocumentElement:V,getClippingRect:Fe,getOffsetParent:Qt,getElementRects:Ie,getClientRects:Me,getDimensions:Ve,getScale:G,isElement:W,isRTL:je};function Zt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Xe(t,e){let n=null,o;const i=V(t);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function r(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const a=t.getBoundingClientRect(),{left:d,top:u,width:h,height:f}=a;
1if(c||e(),!h||!f)return;const p=rt(u),m=rt(i.clientWidth-(d+h)),g=rt(i.clientHeight-(u+f)),w=rt(d),y={rootMargin:-p+"px "+-m+"px "+-g+"px "+-w+"px",threshold:k(0,j(1,l))||1};let x=!0;function A(C){const b=C[0].intersectionRatio;if(b!==l){if(!x)return r();b?r(!1,b):o=setTimeout(()=>{r(!1,1e-7)},1e3)}b===1&&!Zt(a,t.getBoundingClientRect())&&r(),x=!1}try{n=new IntersectionObserver(A,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,y)}n.observe(t)}return r(!0),s}function Ue(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Lt(t),d=i||s?[...a?ot(a):[],...ot(e)]:[];d.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const u=a&&c?Xe(a,n):null;let h=-1,f=null;r&&(f=new ResizeObserver(w=>{let[v]=w;v&&v.target===a&&f&&(f.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(e)})),n()}),a&&!l&&f.observe(a),f.observe(e));let p,m=l?q(t):null;l&&g();function g(){const w=q(t);m&&!Zt(m,w)&&n(),m=w,p=requestAnimationFrame(g)}return n(),()=>{var w;d.forEach(v=>{i&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),u?.(),(w=f)==null||w.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const qe=Re,Ke=Se,zt=Ce,Qe=De,Ze=Oe,Ge=Ae,Je=Ee,tn=(t,e,n)=>{const o=new Map,i={platform:Ye,...n},s={...i.platform,_c:o};return be(t,e,{...i,platform:s})};function en(t){return t!=null&&typeof t=="object"&&"$el"in t}function vt(t){if(en(t)){const e=t.$el;return St(e)&&K(e)==="#comment"?null:e}return t}function Z(t){return typeof t=="function"?t():T(t)}function nn(t){return{name:"arrow",options:t,fn(e){const n=vt(Z(t.element));return n==null?{}:Ge({element:n,padding:t.padding}).fn(e)}}}function Gt(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function _t(t,e){const n=Gt(t);return Math.round(e*n)/n}function on(t,e,n){n===void 0&&(n={});const o=n.whileElementsMounted,i=P(()=>{var b;return(b=Z(n.open))!=null?b:!0}),s=P(()=>Z(n.middleware)),r=P(()=>{var b;return(b=Z(n.placement))!=null?b:"bottom"}),c=P(()=>{var b;return(b=Z(n.strategy))!=null?b:"absolute"}),l=P(()=>{var b;return(b=Z(n.transform))!=null?b:!0}),a=P(()=>vt(t.value)),d=P(()=>vt(e.value)),u=z(0),h=z(0),f=z(c.value),p=z(r.value),m=ee({}),g=z(!1),w=P(()=>{const b={position:f.value,left:"0",top:"0"};if(!d.value)return b;const O=_t(d.value,u.value),L=_t(d.value,h.value);return l.value?{...b,transform:"translate("+O+"px, "+L+"px)",...Gt(d.value)>=1.5&&{willChange:"transform"}}:{position:f.value,left:O+"px",top:L+"px"}});let v;function y(){if(a.value==null||d.value==null)return;const b=i.value;tn(a.value,d.value,{middleware:s.value,placement:r.value,strategy:c.value}).then(O=>{u.value=O.x,h.value=O.y,f.value=O.strategy,p.value=O.placement,m.value=O.middlewareData,g.value=b!==!1})}function x(){typeof v=="function"&&(v(),v=void 0)}function A(){if(x(),o===void 0){y();return}if(a.value!=null&&d.value!=null){v=o(a.value,d.value,y);return}}function C(){i.value||(g.value=!1)}return ht([s,r,c,i],y,{flush:"sync"}),ht([a,d],A,{flush:"sync"}),ht(i,C,{flush:"sync"}),ne()&&oe(x),{x:Q(u),y:Q(h),strategy:Q(f),placement:Q(p),middlewareData:Q(m),isPositioned:Q(g),floatingStyles:w,update:y}}const hn=at({__name:"VisuallyHidden",props:{feature:{default:"focusable"},asChild:{type:Boolean},as:{default:"span"}},setup(t){return(e,n)=>(At(),Ft(T(bt),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature==="focusable"?"true":void 0,"data-hidden":e.feature==="fully-hidden"?"":void 0,tabindex:e.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:Ct(()=>[ft(e.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),[Jt,rn]=Vt("PopperRoot"),mn=at({inheritAttrs:!1,__name:"PopperRoot",setup(t){const e=z();return rn({anchor:e,onAnchorChange:n=>e.value=n}),(n,o)=>ft(n.$slots,"default")}}),gn=at({__name:"PopperAnchor",props:{reference:{},asChild:{type:Boolean},as:{}},setup(t){const e=t,{forwardRef:n,currentElement:o}=It(),i=Jt();return Nt(()=>{i.onAnchorChange(e.reference??o.value)}),(s,r)=>(At(),Ft(T(bt),{ref:T(n),as:s.as,"as-child":s.asChild},{default:Ct(()=>[ft(s.$slots,"default")]),_:3},8,["as","as-child"]))}});function sn(t){return t!==null}function ln(t){return{name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:i}=e,r=i.arrow?.centerOffset!==0,c=r?0:t.arrowWidth,l=r?0:t.arrowHeight,[a,d]=xt(n),u={start:"0%",center:"50%",end:"100%"}[d],h=(i.arrow?.x??0)+c/2,f=(i.arrow?.y??0)+l/2;let p="",m="";return a==="bottom"?(p=r?u:`${h}px`,m=`${-l}px`):a==="top"?(p=r?u:`${h}px`,m=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,m=r?u:`${f}px`):a==="left"&&(p=`${o.floating.width+l}px`,m=r?u:`${f}px`),{data:{x:p,y:m}}}}}function xt(t){const[e,n="center"]=t.split("-");return[e,n]}function cn(t){const e=z(),n=P(()=>e.value?.width??0),o=P(()=>e.value?.height??0);return ie(()=>{const i=re(t);if(i){e.value={width:i.offsetWidth,height:i.offsetHeight};const s=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const c=r[0];let l,a;if("borderBoxSize"in c){const d=c.borderBoxSize,u=Array.isArray(d)?d[0]:d;l=u.inlineSize,a=u.blockSize}else l=i.offsetWidth,a=i.offsetHeight;e.value={width:l,height:a}});return s.observe(i,{box:"border-box"}),()=>s.unobserve(i)}else e.value=void 0}),{width:n,height:o}}const an={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[wn,fn]=Vt("PopperContent"),yn=at({inheritAttrs:!1,__name:"PopperContent",props:se({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{}},{...an}),emits:["placed"],setup(t,{emit:e}){const n=t,o=e,i=Jt(),{forwardRef:s,currentElement:r}=It(),c=z(),l=z(),{width:a,height:d}=cn(l),u=P(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),h=P(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),f=P(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),p=P(()=>({padding:h.value,boundary:f.value.filter(sn),altBoundary:f.value.length>0})),m=le(()=>[qe({mainAxis:n.sideOffset+d.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&zt({...p.value}),n.avoidCollisions&&Ke({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?Je():void 0,...p.value}),!n.prioritizePosition&&n.avoidCollisions&&zt({...p.value}),Qe({...p.value,apply:({elements:S,rects:R,availableWidth:U,availableHeight:E})=>{const{width:$,height:M}=R.reference,D=S.floating.style;D.setProperty("--reka-popper-available-width",`${U}px`),D.setProperty("--reka-popper-available-height",`${E}px`),D.setProperty("--reka-popper-anchor-width",`${$}px`),D.setProperty("--reka-popper-anchor-height",`${M}px`)}}),l.value&&nn({element:l.value,padding:n.arrowPadding}),ln({arrowWidth:a.value,arrowHeight:d.value}),n.hideWhenDetached&&Ze({strategy:"referenceHidden",...p.value})]),g=P(()=>n.reference??i.anchor.value),{floatingStyles:w,placement:v,isPositioned:y,middlewareData:x}=on(g,c,{strategy:n.positionStrategy,placement:u,whileElementsMounted:(...S)=>Ue(...S,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:m}),A=P(()=>xt(v.value)[0]),C=P(()=>xt(v.value)[1]);Nt(()=>{y.value&&o("placed")});const b=P(()=>x.value.arrow?.centerOffset!==0),O=z("");ce(()=>{r.value&&(O.value=window.getComputedStyle(r.value).zIndex)});const L=P(()=>x.value.arrow?.x??0),X=P(()=>x.value.arrow?.y??0);return fn({placedSide:A,onArrowChange:S=>l.value=S,arrowX:L,arrowY:X,shouldHideArrow:b}),(S,R)=>(At(),ae("div",{ref_key:"floatingRef",ref:c,"data-reka-popper-content-wrapper":"",style:de({...T(w),transform:T(y)?T(w).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O.value,"--reka-popper-transform-origin":[T(x).transformOrigin?.x,T(x).transformOrigin?.y].join(" "),...T(x).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[fe(T(bt),ue({ref:T(s)},S.$attrs,{"as-child":n.asChild,as:S.as,"data-side":A.value,"data-align":C.value,style:{animation:T(y)?void 0:"none"}}),{default:Ct(()=>[ft(S.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}});
1export{an as P,hn as _,mn as a,yn as b,gn as c,Ue as d,nn as e,qe as o,on as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.