PageSourceSearch

https://cofacts.ai/assets/useAnchorPositioning-BaejesB1.js

js cofacts.ai collected 2026-10-05 11:55:24 UTC 42,631 bytes, 1 lines download raw bytes

1import{r as O,S as vn,E as _,C as ne,U as En,b4 as St,n as oe,b5 as ve,v as Rn,b6 as Cn,u as On,b7 as Tn,j as q,l as An,af as Xt,b8 as Ze,i as N,b9 as se,g as de,ba as Mt,bb as ie,bc as jt,bd as tt,aA as Ae,az as Fe,be as Pn,bf as Ut,bg as Sn,bh as nt,bi as ot,bj as Ve,aE as Kt,am as Mn,z as qt,a4 as Zt,bk as Dn,ad as Ln,B as it,aT as kn,d as In,bl as Fn,aS as Je,h as Jt,a7 as fe,o as Ee,k as Gt,y as pe,f as ue,bm as Bn,bn as $n}from"./main-DluSCR0V.js";const Hn=O.createContext(void 0);function Wn(t=!1){const e=O.useContext(Hn);if(e===void 0&&!t)throw new Error(vn(16));return e}function Vn(t){const{focusableWhenDisabled:e,disabled:n,composite:o=!1,tabIndex:i=0,isNativeButton:r}=t,s=o&&e!==!1,l=o&&e===!1;return{props:O.useMemo(()=>{const c={onKeyDown(f){n&&e&&f.key!=="Tab"&&f.preventDefault()}};return o||(c.tabIndex=i,!r&&n&&(c.tabIndex=e?i:-1)),(r&&(e||s)||!r&&n)&&(c["aria-disabled"]=n),r&&(!e||l)&&(c.disabled=n),c},[o,n,e,s,l,r,i])}}function ci(t={}){const{disabled:e=!1,focusableWhenDisabled:n,tabIndex:o=0,native:i=!0}=t,r=O.useRef(null),s=Wn(!0)!==void 0,l=_(()=>{const m=r.current;return!!(m?.tagName==="A"&&m?.href)}),{props:u}=Vn({focusableWhenDisabled:n,disabled:e,composite:s,tabIndex:o,isNativeButton:i}),c=O.useCallback(()=>{const m=r.current;Nn(m)&&s&&e&&u.disabled===void 0&&m.disabled&&(m.disabled=!1)},[e,u.disabled,s]);ne(c,[c]);const f=O.useCallback((m={})=>{const{onClick:h,onMouseDown:p,onKeyUp:a,onKeyDown:y,onPointerDown:x,...E}=m;return En({type:i?"button":void 0,onClick(g){if(e){g.preventDefault();return}h?.(g)},onMouseDown(g){e||p?.(g)},onKeyDown(g){if(e||(St(g),y?.(g)),g.baseUIHandlerPrevented)return;const T=g.target===g.currentTarget&&!i&&!l()&&!e,R=g.key==="Enter",C=g.key===" ";T&&((C||R)&&g.preventDefault(),R&&h?.(g))},onKeyUp(g){e||(St(g),a?.(g)),!g.baseUIHandlerPrevented&&g.target===g.currentTarget&&!i&&!e&&g.key===" "&&h?.(g)},onPointerDown(g){if(e){g.preventDefault();return}x?.(g)}},i?void 0:{role:"button"},u,E)},[e,u,i,l]),d=_(m=>{r.current=m,c()});return{getButtonProps:f,buttonRef:d}}function Nn(t){return oe(t)&&t.tagName==="BUTTON"}const Yn=["top","right","bottom","left"],Re=Math.min,X=Math.max,Be=Math.round,Le=Math.floor,Q=t=>({x:t,y:t}),_n={left:"right",right:"left",bottom:"top",top:"bottom"},zn={start:"end",end:"start"};function Ge(t,e,n){return X(t,Re(e,n))}function re(t,e){return typeof t=="function"?t(e):t}function z(t){return t.split("-")[0]}function me(t){return t.split("-")[1]}function rt(t){return t==="x"?"y":"x"}function st(t){return t==="y"?"height":"width"}const Xn=new Set(["top","bottom"]);function U(t){return Xn.has(z(t))?"y":"x"}function ct(t){return rt(U(t))}function jn(t,e,n){n===void 0&&(n=!1);const o=me(t),i=ct(t),r=st(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=$e(s)),[s,$e(s)]}function Un(t){const e=$e(t);return[Qe(t),e,Qe(e)]}function Qe(t){return t.replace(/start|end/g,e=>zn[e])}const Dt=["left","right"],Lt=["right","left"],Kn=["top","bottom"],qn=["bottom","top"];function Zn(t,e,n){switch(t){case"top":case"bottom":return n?e?Lt:Dt:e?Dt:Lt;case"left":case"right":return e?Kn:qn;default:return[]}}function Jn(t,e,n,o){const i=me(t);let r=Zn(z(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(Qe)))),r}function $e(t){return t.replace(/left|right|bottom|top/g,e=>_n[e])}function Gn(t){return{top:0,right:0,bottom:0,left:0,...t}}function Qt(t){return typeof t!="number"?Gn(t):{top:t,right:t,bottom:t,left:t}}function He(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 je(t,e,n){if(n&&!ve(n))return 0;if(typeof t=="number")return t;if(typeof t=="function"){const o=t();return typeof o=="number"?o:o?.[e]}return t?.[e]}function li(t,e={}){const n="rootStore"in t?t.rootStore:t,o=n.context.dataRef,{enabled:i=!0,event:r="click",toggle:s=!0,ignoreMouse:l=!1,stickIfOpen:u=!0,touchOpenDelay:c=0,reason:f=Rn}=e,d=O.useRef(void 0),m=Cn(),h=On(),p=O.useMemo(()=>({onPointerDown(a){d.current=a.pointerType},onMouseDown(a){const y=d.current,x=a.nativeEvent,E=n.select("open");if(a.button!==0||r==="click"||ve(y,!0)&&l)return;const w=o.current.openEvent,g=w?.type,T=n.select("domReferenceElement")!==a.currentTarget,R=E&&T||!(E&&s&&(!(w&&u)||g==="click"||g==="mousedown"));if(An(x.target)){const S=q(f,x,x.target);R&&y==="touch"&&c>0?h.start(c,()=>{n.setOpen(!0,S)}):n.setOpen(R,S);return}const C=a.currentTarget;m.request(()=>{const S=q(f,x,C);R&&y==="touch"&&c>0?h.start(c,()=>{n.setOpen(!0,S)}):n.setOpen(R,S)})}
vendor: 8,455 bytes, line 1
1,onClick(a){if(r==="mousedown-only")return;const y=d.current;if(r==="mousedown"&&y){d.current=void 0;return}if(ve(y,!0)&&l)return;const x=n.select("open"),E=o.current.openEvent,w=n.select("domReferenceElement")!==a.currentTarget,g=x&&w||!(x&&s&&(!(E&&u)||Tn(E))),T=q(f,a.nativeEvent,a.currentTarget);g&&y==="touch"&&c>0?h.start(c,()=>{n.setOpen(!0,T)}):n.setOpen(g,T)},onKeyDown(){d.current=void 0}}),[o,r,l,n,u,s,m,h,c,f]);return O.useMemo(()=>i?{reference:p}:Xt,[i,p])}function kt(t,e,n){let{reference:o,floating:i}=t;const r=U(e),s=ct(e),l=st(s),u=z(e),c=r==="y",f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,m=o[l]/2-i[l]/2;let h;switch(u){case"top":h={x:f,y:o.y-i.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:d};break;case"left":h={x:o.x-i.width,y:d};break;default:h={x:o.x,y:o.y}}switch(me(e)){case"start":h[s]-=m*(n&&c?-1:1);break;case"end":h[s]+=m*(n&&c?-1:1);break}return h}async function Qn(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:l,strategy:u}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:h=0}=re(e,t),p=Qt(h),y=l[m?d==="floating"?"reference":"floating":d],x=He(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(y)))==null||n?y:y.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:f,strategy:u})),E=d==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),g=await(r.isElement==null?void 0:r.isElement(w))?await(r.getScale==null?void 0:r.getScale(w))||{x:1,y:1}:{x:1,y:1},T=He(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:E,offsetParent:w,strategy:u}):E);return{top:(x.top-T.top+p.top)/g.y,bottom:(T.bottom-x.bottom+p.bottom)/g.y,left:(x.left-T.left+p.left)/g.x,right:(T.right-x.right+p.right)/g.x}}const eo=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,l=r.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:d}=kt(c,o,u),m=o,h={},p=0;for(let y=0;y<l.length;y++){var a;const{name:x,fn:E}=l[y],{x:w,y:g,data:T,reset:R}=await E({x:f,y:d,initialPlacement:o,placement:m,strategy:i,middlewareData:h,rects:c,platform:{...s,detectOverflow:(a=s.detectOverflow)!=null?a:Qn},elements:{reference:t,floating:e}});f=w??f,d=g??d,h={...h,[x]:{...h[x],...T}},R&&p<=50&&(p++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(c=R.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):R.rects),{x:f,y:d}=kt(c,m,u)),y=-1)}return{x:f,y:d,placement:m,strategy:i,middlewareData:h}},to=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:l,platform:u,elements:c}=e,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:a=!0,...y}=re(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const x=z(i),E=U(l),w=z(l)===l,g=await(u.isRTL==null?void 0:u.isRTL(c.floating)),T=m||(w||!a?[$e(l)]:Un(l)),R=p!=="none";!m&&R&&T.push(...Jn(l,a,p,g));const C=[l,...T],S=await u.detectOverflow(e,y),H=[];let A=((o=r.flip)==null?void 0:o.overflows)||[];if(f&&H.push(S[x]),d){const M=jn(i,s,g);H.push(S[M[0]],S[M[1]])}if(A=[...A,{placement:i,overflows:H}],!H.every(M=>M<=0)){var L,D;const M=(((L=r.flip)==null?void 0:L.index)||0)+1,k=C[M];if(k&&(!(d==="alignment"?E!==U(k):!1)||A.every(v=>U(v.placement)===E?v.overflows[0]>0:!0)))return{data:{index:M,overflows:A},reset:{placement:k}};let I=(D=A.filter(F=>F.overflows[0]<=0).sort((F,v)=>F.overflows[1]-v.overflows[1])[0])==null?void 0:D.placement;if(!I)switch(h){case"bestFit":{var b;const F=(b=A.filter(v=>{if(R){const P=U(v.placement);return P===E||P==="y"}return!0}).map(v=>[v.placement,v.overflows.filter(P=>P>0).reduce((P,V)=>P+V,0)]).sort((v,P)=>v[1]-P[1])[0])==null?void 0:b[0];F&&(I=F);break}case"initialPlacement":I=l;break}if(i!==I)return{reset:{placement:I}}}return{}}}};function It(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ft(t){return Yn.some(e=>t[e]>=0)}const no=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:o}=e,{strategy:i="referenceHidden",...r}=re(t,e);switch(i){case"referenceHidden":{const s=await o.detectOverflow(e,{...r,elementContext:"reference"}),l=It(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Ft(l)}}}case"escaped":{const s=await o.detectOverflow(e,{...r,altBoundary:!0}),l=It(s,n.floating);return{data:{escapedOffsets:l,escaped:Ft(l)}}}default:return{}}}}},en=new Set(["left","top"]);async function oo(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=z(n),l=me(n),u=U(n)==="y",c=en.has(s)?-1:1,f=r&&u?-1:1,d=re(e,t);let{mainAxis:m,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof p=="number"&&(h=l==="end"?p*-1:p),u?{x:h*f,y:m*c}:{x:m*c,y:h*f}}const io=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:l}=e,u=await oo(e,t);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+u.x,y:r+u.y,data:{...u,placement:s}}}}},ro=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:r}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:x=>{let{x:E,y:w}=x;return{x:E,y:w}}},...c}=re(t,e),f={x:n,y:o},d=await r.detectOverflow(e,c),m=U(z(i)),h=rt(m);let p=f[h],a=f[m];if(s){const x=h==="y"?"top":"left",E=h==="y"?"bottom":"right",w=p+d[x],g=p-d[E];p=Ge(w,p,g)}if(l){const x=m==="y"?"top":"left",E=m==="y"?"bottom":"right",w=a+d[x],g=a-d[E];a=Ge(w,a,g)}const y=u.fn({...e,[h]:p,[m]:a});return{...y,data:{x:y.x-n,y:y.y-o,enabled:{[h]:s,[m]:l}}}}}},so=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=re(t,e),f={x:n,y:o},d=U(i),m=rt(d);let h=f[m],p=f[d];const a=re(l,e),y=typeof a=="number"?{mainAxis:a,crossAxis:0}:{mainAxis:0,crossAxis:0,...a};if(u){const w=m==="y"?"height":"width",g=r.reference[m]-r.floating[w]+y.mainAxis,T=r.reference[m]+r.reference[w]-y.mainAxis;h<g?h=g:h>T&&(h=T)}if(c){var x,E;const w=m==="y"?"width":"height",g=en.has(z(i)),T=r.reference[d]-r.floating[w]+(g&&((x=s.offset)==null?void 0:x[d])||0)+(g?0:y.crossAxis),R=r.reference[d]+r.reference[w]+(g?0:((E=s.offset)==null?void 0:E[d])||0)-(g?y.crossAxis:0);p<T?p=T:p>R&&(p=R)}return{[m]:h,[d]:p}}}},co=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:l}=e,{apply:u=()=>{},...c}=re(t,e),f=await s.detectOverflow(e,c),d=z(i),m=me(i),h=U(i)==="y",{width:p,height:a}=r.floating;let y,x;d==="top"||d==="bottom"?(y=d,x=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(x=d,y=m==="end"?"top":"bottom");const E=a-f.top-f.bottom,w=p-f.left-f.right,g=Re(a-f[y],E),T=Re(p-f[x],w),R=!e.middlewareData.shift;let C=g,S=T;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(S=w),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(C=E),R&&!m){const A=X(f.left,0),L=X(f.right,0),D=X(f.top,0),b=X(f.bottom,0);h?S=p-2*(A!==0||L!==0?A+L:X(f.left,f.right)):C=a-2*(D!==0||b!==0?D+b:X(f.top,f.bottom))}await u({...e,availableWidth:S,availableHeight:C});const H=await s.getDimensions(l.floating);return p!==H.width||a!==H.height?{reset:{rects:!0}}:{}}}};function tn(t){const e=ie(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=oe(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,l=Be(n)!==r||Be(o)!==s;return l&&(n=r,o=s),{width:n,height:o,$:l}}function lt(t){return N(t)?t:t.contextElement}function be(t){const e=lt(t);if(!oe(e))return Q(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=tn(e);let s=(r?Be(n.width):n.width)/o,l=(r?Be(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const lo=Q(0);function nn(t){const e=de(t);
vendor: 6,847 bytes, line 1
1return!jt()||!e.visualViewport?lo:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ao(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==de(t)?!1:e}function ye(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=lt(t);let s=Q(1);e&&(o?N(o)&&(s=be(o)):s=be(t));const l=ao(r,n,o)?nn(r):Q(0);let u=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,f=i.width/s.x,d=i.height/s.y;if(r){const m=de(r),h=o&&N(o)?de(o):o;let p=m,a=Mt(p);for(;a&&o&&h!==p;){const y=be(a),x=a.getBoundingClientRect(),E=ie(a),w=x.left+(a.clientLeft+parseFloat(E.paddingLeft))*y.x,g=x.top+(a.clientTop+parseFloat(E.paddingTop))*y.y;u*=y.x,c*=y.y,f*=y.x,d*=y.y,u+=w,c+=g,p=de(a),a=Mt(p)}}return He({width:f,height:d,x:u,y:c})}function Ne(t,e){const n=Ve(t).scrollLeft;return e?e.left+n:ye(se(t)).left+n}function on(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-Ne(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function fo(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=se(o),l=e?tt(e.floating):!1;if(o===s||l&&r)return n;let u={scrollLeft:0,scrollTop:0},c=Q(1);const f=Q(0),d=oe(o);if((d||!d&&!r)&&((nt(o)!=="body"||ot(s))&&(u=Ve(o)),oe(o))){const h=ye(o);c=be(o),f.x=h.x+o.clientLeft,f.y=h.y+o.clientTop}const m=s&&!d&&!r?on(s,u):Q(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x+m.x,y:n.y*c.y-u.scrollTop*c.y+f.y+m.y}}function uo(t){return Array.from(t.getClientRects())}function mo(t){const e=se(t),n=Ve(t),o=t.ownerDocument.body,i=X(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=X(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Ne(t);const l=-n.scrollTop;return ie(o).direction==="rtl"&&(s+=X(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:l}}const Bt=25;function go(t,e){const n=de(t),o=se(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,l=0,u=0;if(i){r=i.width,s=i.height;const f=jt();(!f||f&&e==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}const c=Ne(o);if(c<=0){const f=o.ownerDocument,d=f.body,m=getComputedStyle(d),h=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,p=Math.abs(o.clientWidth-d.clientWidth-h);p<=Bt&&(r-=p)}else c<=Bt&&(r+=c);return{width:r,height:s,x:l,y:u}}const ho=new Set(["absolute","fixed"]);function po(t,e){const n=ye(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=oe(t)?be(t):Q(1),s=t.clientWidth*r.x,l=t.clientHeight*r.y,u=i*r.x,c=o*r.y;return{width:s,height:l,x:u,y:c}}function $t(t,e,n){let o;if(e==="viewport")o=go(t,n);else if(e==="document")o=mo(se(t));else if(N(e))o=po(e,n);else{const i=nn(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return He(o)}function rn(t,e){const n=Ae(t);return n===e||!N(n)||Fe(n)?!1:ie(n).position==="fixed"||rn(n,e)}function yo(t,e){const n=e.get(t);if(n)return n;let o=Ze(t,[],!1).filter(l=>N(l)&&nt(l)!=="body"),i=null;const r=ie(t).position==="fixed";let s=r?Ae(t):t;for(;N(s)&&!Fe(s);){const l=ie(s),u=Ut(s);!u&&l.position==="fixed"&&(i=null),(r?!u&&!i:!u&&l.position==="static"&&!!i&&ho.has(i.position)||ot(s)&&!u&&rn(t,s))?o=o.filter(f=>f!==s):i=l,s=Ae(s)}return e.set(t,o),o}function wo(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?tt(e)?[]:yo(e,this._c):[].concat(n),o],l=s[0],u=s.reduce((c,f)=>{const d=$t(e,f,i);return c.top=X(d.top,c.top),c.right=Re(d.right,c.right),c.bottom=Re(d.bottom,c.bottom),c.left=X(d.left,c.left),c},$t(e,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function xo(t){const{width:e,height:n}=tn(t);return{width:e,height:n}}function bo(t,e,n){const o=oe(e),i=se(e),r=n==="fixed",s=ye(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const u=Q(0);function c(){u.x=Ne(i)}if(o||!o&&!r)if((nt(e)!=="body"||ot(i))&&(l=Ve(e)),o){const h=ye(e,!0,r,e);u.x=h.x+e.clientLeft,u.y=h.y+e.clientTop}else i&&c();r&&!o&&i&&c();const f=i&&!o&&!r?on(i,l):Q(0),d=s.left+l.scrollLeft-u.x-f.x,m=s.top+l.scrollTop-u.y-f.y;return{x:d,y:m,width:s.width,height:s.height}}function Ue(t){return ie(t).position==="static"}function Ht(t,e){if(!oe(t)||ie(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return se(t)===n&&(n=n.ownerDocument.body),n}function sn(t,e){const n=de(t);if(tt(t))return n;if(!oe(t)){let i=Ae(t);for(;i&&!Fe(i);){if(N(i)&&!Ue(i))return i;i=Ae(i)}return n}let o=Ht(t,e);for(;o&&Pn(o)&&Ue(o);)o=Ht(o,e);return o&&Fe(o)&&Ue(o)&&!Ut(o)?n:o||Sn(t)||n}const vo=async function(t){const e=this.getOffsetParent||sn,n=this.getDimensions,o=await n(t.floating);return{reference:bo(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Eo(t){return ie(t).direction==="rtl"}const Ro={convertOffsetParentRelativeRectToViewportRelativeRect:fo,getDocumentElement:se,getClippingRect:wo,getOffsetParent:sn,getElementRects:vo,getClientRects:uo,getDimensions:xo,getScale:be,isElement:N,isRTL:Eo};function cn(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Co(t,e){let n=null,o;const i=se(t);function r(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),r();const c=t.getBoundingClientRect(),{left:f,top:d,width:m,height:h}=c;if(l||e(),!m||!h)return;const p=Le(d),a=Le(i.clientWidth-(f+m)),y=Le(i.clientHeight-(d+h)),x=Le(f),w={rootMargin:-p+"px "+-a+"px "+-y+"px "+-x+"px",threshold:X(0,Re(1,u))||1};let g=!0;function T(R){const C=R[0].intersectionRatio;if(C!==u){if(!g)return s();C?s(!1,C):o=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!cn(c,t.getBoundingClientRect())&&s(),g=!1}try{n=new IntersectionObserver(T,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(T,w)}n.observe(t)}return s(!0),r}function Wt(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,c=lt(t),f=i||r?[...c?Ze(c):[],...Ze(e)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),r&&x.addEventListener("resize",n)});const d=c&&l?Co(c,n):null;let m=-1,h=null;s&&(h=new ResizeObserver(x=>{let[E]=x;E&&E.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(e)})),n()}),c&&!u&&h.observe(c),h.observe(e));let p,a=u?ye(t):null;u&&y();function y(){const x=ye(t);a&&!cn(a,x)&&n(),a=x,p=requestAnimationFrame(y)}return n(),()=>{var x;f.forEach(E=>{i&&E.removeEventListener("scroll",n),r&&E.removeEventListener("resize",n)}),d?.(),(x=h)==null||x.disconnect(),h=null,u&&cancelAnimationFrame(p)}}const Oo=io,To=ro,Ao=to,Po=co,So=no,Mo=so,Do=(t,e,n)=>{const o=new Map,i={platform:Ro,...n},r={...i.platform,_c:o};return eo(t,e,{...i,platform:r})};var Lo=typeof document<"u",ko=function(){},ke=Lo?O.useLayoutEffect:ko;function We(t,e){if(t===e)return!0;
vendor: 4,846 bytes, line 1
1if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!We(t[o],e[o]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&t.$$typeof)&&!We(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function ln(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Vt(t,e){const n=ln(t);return Math.round(e*n)/n}function Ke(t){const e=O.useRef(t);return ke(()=>{e.current=t}),e}function Io(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=t,[f,d]=O.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,h]=O.useState(o);We(m,o)||h(o);const[p,a]=O.useState(null),[y,x]=O.useState(null),E=O.useCallback(v=>{v!==R.current&&(R.current=v,a(v))},[]),w=O.useCallback(v=>{v!==C.current&&(C.current=v,x(v))},[]),g=r||p,T=s||y,R=O.useRef(null),C=O.useRef(null),S=O.useRef(f),H=u!=null,A=Ke(u),L=Ke(i),D=Ke(c),b=O.useCallback(()=>{if(!R.current||!C.current)return;const v={placement:e,strategy:n,middleware:m};L.current&&(v.platform=L.current),Do(R.current,C.current,v).then(P=>{const V={...P,isPositioned:D.current!==!1};M.current&&!We(S.current,V)&&(S.current=V,Kt.flushSync(()=>{d(V)}))})},[m,e,n,L,D]);ke(()=>{c===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,d(v=>({...v,isPositioned:!1})))},[c]);const M=O.useRef(!1);ke(()=>(M.current=!0,()=>{M.current=!1}),[]),ke(()=>{if(g&&(R.current=g),T&&(C.current=T),g&&T){if(A.current)return A.current(g,T,b);b()}},[g,T,b,A,H]);const k=O.useMemo(()=>({reference:R,floating:C,setReference:E,setFloating:w}),[E,w]),I=O.useMemo(()=>({reference:g,floating:T}),[g,T]),F=O.useMemo(()=>{const v={position:n,left:0,top:0};if(!I.floating)return v;const P=Vt(I.floating,f.x),V=Vt(I.floating,f.y);return l?{...v,transform:"translate("+P+"px, "+V+"px)",...ln(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:V}},[n,l,I.floating,f.x,f.y]);return O.useMemo(()=>({...f,update:b,refs:k,elements:I,floatingStyles:F}),[f,b,k,I,F])}const Fo=(t,e)=>({...Oo(t),options:[t,e]}),Bo=(t,e)=>({...To(t),options:[t,e]}),$o=(t,e)=>({...Mo(t),options:[t,e]}),Ho=(t,e)=>({...Ao(t),options:[t,e]}),Wo=(t,e)=>({...Po(t),options:[t,e]}),Vo=(t,e)=>({...So(t),options:[t,e]});function No(t){const{open:e=!1,onOpenChange:n,elements:o={}}=t,i=Mn(),r=qt()!=null,s=Zt(()=>new Dn({open:e,onOpenChange:n,referenceElement:o.reference??null,floatingElement:o.floating??null,triggerElements:new Ln,floatingId:i,nested:r,noEmit:!1})).current;return ne(()=>{const l={open:e,floatingId:i};o.reference!==void 0&&(l.referenceElement=o.reference,l.domReferenceElement=N(o.reference)?o.reference:null),o.floating!==void 0&&(l.floatingElement=o.floating),s.update(l)},[e,i,o.reference,o.floating,s]),s.context.onOpenChange=n,s.context.nested=r,s.context.noEmit=!1,s}function Yo(t={}){const{nodeId:e,externalTree:n}=t,o=No(t),i=t.rootContext||o,r={reference:i.useState("referenceElement"),floating:i.useState("floatingElement"),domReference:i.useState("domReferenceElement")},[s,l]=O.useState(null),u=O.useRef(null),c=it(n);ne(()=>{r.domReference&&(u.current=r.domReference)},[r.domReference]);const f=Io({...t,elements:{...r,...s&&{reference:s}}}),d=O.useCallback(C=>{const S=N(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),getClientRects:()=>C.getClientRects(),contextElement:C}:C;l(S),f.refs.setReference(S)},[f.refs]),[m,h]=O.useState(null),[p,a]=O.useState(null);i.useSyncedValue("referenceElement",m),i.useSyncedValue("domReferenceElement",N(m)?m:null),i.useSyncedValue("floatingElement",p);const y=O.useCallback(C=>{(N(C)||C===null)&&(u.current=C,h(C)),(N(f.refs.reference.current)||f.refs.reference.current===null||C!==null&&!N(C))&&f.refs.setReference(C)},[f.refs,h]),x=O.useCallback(C=>{a(C),f.refs.setFloating(C)},[f.refs]),E=O.useMemo(()=>({...f.refs,setReference:y,setFloating:x,setPositionReference:d,domReference:u}),[f.refs,y,x,d]),w=O.useMemo(()=>({...f.elements,domReference:r.domReference}),[f.elements,r.domReference]),g=i.useState("open"),T=i.useState("floatingId"),R=O.useMemo(()=>({...f,dataRef:i.context.dataRef,open:g,onOpenChange:i.setOpen,events:i.context.events,floatingId:T,refs:E,elements:w,nodeId:e,rootStore:i}),[f,E,w,e,i,g,T]);return ne(()=>{i.context.dataRef.current.floatingContext=R;const C=c?.nodesRef.current.find(S=>S.id===e);C&&(C.context=R)}),O.useMemo(()=>({...f,context:R,refs:E,elements:w,rootStore:i}),[f,E,w,R,i])}const et=In("safe-polygon"),_o=`button,a,[role="button"],select,[tabindex]:not
1([tabindex="-1"]),${Fn}`;function zo(t){return t?!!t.closest(_o):!1}class at{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.unbindMouseMove=()=>{},this.restTimeoutPending=!1,this.openChangeTimeout=new Je,this.restTimeout=new Je,this.handleCloseOptions=void 0}static create(){return new at}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}function an(t){const e=Zt(at.create).current,n=t.context.dataRef.current;return n.hoverInteractionState||(n.hoverInteractionState=e),kn(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}const Xo=new Set(["click","mousedown"]);function ai(t,e={}){const n="rootStore"in t?t.rootStore:t,o=n.useState("open"),i=n.useState("floatingElement"),r=n.useState("domReferenceElement"),{dataRef:s}=n.context,{enabled:l=!0,closeDelay:u=0}=e,c=an(n),f=it(),d=qt(),m=_(()=>c.interactedInside?!0:s.current.openEvent?Xo.has(s.current.openEvent.type):!1),h=_(()=>{const w=s.current.openEvent?.type;return w?.includes("mouse")&&w!=="mousedown"}),p=_(w=>Jt(w,n.context.triggerElements)),a=O.useCallback((w,g=!0)=>{const T=jo(u,c.pointerType);T&&!c.handler?c.openChangeTimeout.start(T,()=>n.setOpen(!1,q(fe,w))):g&&(c.openChangeTimeout.clear(),n.setOpen(!1,q(fe,w)))},[u,n,c]),y=_(()=>{c.unbindMouseMove(),c.handler=void 0}),x=_(()=>{if(c.performedPointerEventsMutation){const w=Ee(i).body;w.style.pointerEvents="",w.removeAttribute(et),c.performedPointerEventsMutation=!1}}),E=_(w=>{const g=Gt(w);if(!zo(g)){c.interactedInside=!1;return}c.interactedInside=!0});ne(()=>{o||(c.pointerType=void 0,c.restTimeoutPending=!1,c.interactedInside=!1,y(),x())},[o,c,y,x]),O.useEffect(()=>()=>{y()},[y]),O.useEffect(()=>x,[x]),ne(()=>{if(l&&o&&c.handleCloseOptions?.blockPointerEvents&&h()&&N(r)&&i){c.performedPointerEventsMutation=!0;const w=Ee(i).body;w.setAttribute(et,"");const g=r,T=i,R=f?.nodesRef.current.find(C=>C.id===d)?.context?.elements.floating;return R&&(R.style.pointerEvents=""),w.style.pointerEvents="none",g.style.pointerEvents="auto",T.style.pointerEvents="auto",()=>{w.style.pointerEvents="",g.style.pointerEvents="",T.style.pointerEvents=""}}},[l,o,r,i,c,h,f,d]),O.useEffect(()=>{if(!l)return;function w(C){m()||!s.current.floatingContext||!n.select("open")||p(C.relatedTarget)||(x(),y(),m()||a(C))}function g(C){c.openChangeTimeout.clear(),x(),c.handler?.(C),y()}function T(C){m()||a(C,!1)}const R=i;return R&&(R.addEventListener("mouseleave",w),R.addEventListener("mouseenter",g),R.addEventListener("mouseleave",T),R.addEventListener("pointerdown",E,!0)),()=>{R&&(R.removeEventListener("mouseleave",w),R.removeEventListener("mouseenter",g),R.removeEventListener("mouseleave",T),R.removeEventListener("pointerdown",E,!0))}},[l,i,n,s,m,p,a,x,y,E,c])}function jo(t,e){return e&&!ve(e)?0:typeof t=="function"?t():t}function qe(t){return typeof t=="function"?t():t}const Uo={current:null};function fi(t,e={}){const n="rootStore"in t?t.rootStore:t,{dataRef:o,events:i}=n.context,{enabled:r=!0,delay:s=0,handleClose:l=null,mouseOnly:u=!1,restMs:c=0,move:f=!0,triggerElementRef:d=Uo,externalTree:m,isActiveTrigger:h=!0}=e,p=it(m),a=an(n),y=pe(l),x=pe(s),E=pe(c),w=pe(r);h&&(a.handleCloseOptions=y.current?.__options);const g=_(()=>a.interactedInside?!0:o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1),T=_(A=>Jt(A,n.context.triggerElements)),R=O.useCallback((A,L=!0)=>{const D=je(x.current,"close",a.pointerType);D&&!a.handler?a.openChangeTimeout.start(D,()=>n.setOpen(!1,q(fe,A))):L&&(a.openChangeTimeout.clear(),n.setOpen(!1,q(fe,A)))},[x,n,a]),C=_(()=>{a.unbindMouseMove(),a.handler=void 0}),S=_(()=>{if(a.performedPointerEventsMutation){const A=Ee(n.select("domReferenceElement")).body;A.style.pointerEvents="",A.removeAttribute(et),a.performedPointerEventsMutation=!1}});O.useEffect(()=>{if(!r)return;function A(L){L.open||(a.openChangeTimeout.clear(),a.restTimeout.clear(),a.blockMouseMove=!0,a.restTimeoutPending=!1)}return i.on("openchange",A),()=>{i.off("openchange",A)}},[r,i,a]);const H=_(A=>{if(g()||!o.current.floatingContext||T(A.relatedTarget))return;const L=d.current;y.current?.({...o.current.floatingContext,tree:p,x:A.clientX,y:A.clientY,onClose(){S(),C(),!g()&&L===n.select("domReferenceElement")&&R(A)}})(A)});return O.useEffect(()=>{if(!r)return;const A=d.current??(h?n.select("domReferenceElement"):null);if(!N(A))return;function L(M){if(a.openChangeTimeout.clear(),a.blockMouseMove=!1,u&&!ve(a.pointerType)||qe(E.current)>0&&!je(x.current,"open"))return;const k=je(x.current,"open",a.pointerType),I=n.select("domReferenceElement"),F=n.context.triggerElements,v=(F.hasElement(M.target)||F.hasMatchingElement(ee=>ue(ee,M.target)))&&(!I||!ue(I,M.target)),P=M.currentTarget??null,V=n.select("open"),Z=!V||v;v&&V?n.setOpen(!0,q(fe,M,P)):k?a.openChangeTimeout.start(k,()=>{Z&&n.setOpen(!0,q(fe,M,P))}):Z&&n.setOpen(!0,q(fe,M,P))}function D(M){if(g()){S();return}a.unbindMouseMove();const k=n.select("domReferenceElement"),I=Ee(k);if(a.restTimeout.clear(),a.restTimeoutPending=!1,T(M.relatedTarget))return;if(y.current&&o.current.floatingContext){n.select("open")||a.openChangeTimeout.clear();const v=d.current;a.handler=y.current({...o.current.floatingContext,tree:p,x:M.clientX,y:M.clientY,onClose(){S(),C(),w.current&&!g()&&v===n.select("domReferenceElement")&&R(M,!0)}});const P=a.handler;P(M),I.addEventListener("mousemove",P),a.unbindMouseMove=()=>{I.removeEventListener("mousemove",P)};return}(a.pointerType!=="touch"||!ue(n.select("floatingElement"),M.relatedTarget))&&R(M)}function b(M){H(M)}return n.select("open")&&A.addEventListener("mouseleave",b),f&&A.addEventListener("mousemove",L,{once:!0}
vendor: 5,493 bytes, line 1
1),A.addEventListener("mouseenter",L),A.addEventListener("mouseleave",D),()=>{A.removeEventListener("mouseleave",b),f&&A.removeEventListener("mousemove",L),A.removeEventListener("mouseenter",L),A.removeEventListener("mouseleave",D)}},[C,S,o,x,R,n,r,y,H,a,h,g,T,u,f,E,d,p,w]),O.useMemo(()=>{if(!r)return;function A(L){a.pointerType=L.pointerType}return{onPointerDown:A,onPointerEnter:A,onMouseMove(L){const{nativeEvent:D}=L,b=L.currentTarget,M=n.select("domReferenceElement"),k=n.context.triggerElements,I=n.select("open"),F=(k.hasElement(L.target)||k.hasMatchingElement(P=>ue(P,L.target)))&&(!M||!ue(M,L.target));if(u&&!ve(a.pointerType)||I&&!F||qe(E.current)===0||!F&&a.restTimeoutPending&&L.movementX**2+L.movementY**2<2)return;a.restTimeout.clear();function v(){if(a.restTimeoutPending=!1,g())return;const P=n.select("open");!a.blockMouseMove&&(!P||F)&&n.setOpen(!0,q(fe,D,b))}a.pointerType==="touch"?Kt.flushSync(()=>{v()}):F&&I?v():(a.restTimeoutPending=!0,a.restTimeout.start(qe(E.current),v))}}},[r,a,g,u,n,E])}function Nt(t,e){const[n,o]=t;let i=!1;const r=e.length;for(let s=0,l=r-1;s<r;l=s++){const[u,c]=e[s]||[0,0],[f,d]=e[l]||[0,0];c>=o!=d>=o&&n<=(f-u)*(o-c)/(d-c)+u&&(i=!i)}return i}function Ko(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function ui(t={}){const{buffer:e=.5,blockPointerEvents:n=!1,requireIntent:o=!0}=t,i=new Je;let r=!1,s=null,l=null,u=typeof performance<"u"?performance.now():0;function c(d,m){const h=performance.now(),p=h-u;if(s===null||l===null||p===0)return s=d,l=m,u=h,null;const a=d-s,y=m-l,E=Math.sqrt(a*a+y*y)/p;return s=d,l=m,u=h,E}const f=({x:d,y:m,placement:h,elements:p,onClose:a,nodeId:y,tree:x})=>function(w){function g(){i.clear(),a()}if(i.clear(),!p.domReference||!p.floating||h==null||d==null||m==null)return;const{clientX:T,clientY:R}=w,C=[T,R],S=Gt(w),H=w.type==="mouseleave",A=ue(p.floating,S),L=ue(p.domReference,S),D=p.domReference.getBoundingClientRect(),b=p.floating.getBoundingClientRect(),M=h.split("-")[0],k=d>b.right-b.width/2,I=m>b.bottom-b.height/2,F=Ko(C,D),v=b.width>D.width,P=b.height>D.height,V=(v?D:b).left,Z=(v?D:b).right,ee=(P?D:b).top,ge=(P?D:b).bottom;if(A&&(r=!0,!H))return;if(L&&(r=!1),L&&!H){r=!0;return}if(H&&N(w.relatedTarget)&&ue(p.floating,w.relatedTarget)||x&&Bn(x.nodesRef.current,y).some(({context:B})=>B?.open))return;if(M==="top"&&m>=D.bottom-1||M==="bottom"&&m<=D.top+1||M==="left"&&d>=D.right-1||M==="right"&&d<=D.left+1)return g();let J=[];switch(M){case"top":J=[[V,D.top+1],[V,b.bottom-1],[Z,b.bottom-1],[Z,D.top+1]];break;case"bottom":J=[[V,b.top+1],[V,D.bottom-1],[Z,D.bottom-1],[Z,b.top+1]];break;case"left":J=[[b.right-1,ge],[b.right-1,ee],[D.left+1,ee],[D.left+1,ge]];break;case"right":J=[[D.right-1,ge],[D.right-1,ee],[b.left+1,ee],[b.left+1,ge]];break}function ce([B,W]){switch(M){case"top":{const le=[v?B+e/2:k?B+e*4:B-e*4,W+e+1],ae=[v?B-e/2:k?B+e*4:B-e*4,W+e+1],K=[[b.left,k||v?b.bottom-e:b.top],[b.right,k?v?b.bottom-e:b.top:b.bottom-e]];return[le,ae,...K]}case"bottom":{const le=[v?B+e/2:k?B+e*4:B-e*4,W-e],ae=[v?B-e/2:k?B+e*4:B-e*4,W-e],K=[[b.left,k||v?b.top+e:b.bottom],[b.right,k?v?b.top+e:b.bottom:b.top+e]];return[le,ae,...K]}case"left":{const le=[B+e+1,P?W+e/2:I?W+e*4:W-e*4],ae=[B+e+1,P?W-e/2:I?W+e*4:W-e*4];return[...[[I||P?b.right-e:b.left,b.top],[I?P?b.right-e:b.left:b.right-e,b.bottom]],le,ae]}case"right":{const le=[B-e,P?W+e/2:I?W+e*4:W-e*4],ae=[B-e,P?W-e/2:I?W+e*4:W-e*4],K=[[I||P?b.left+e:b.right,b.top],[I?P?b.left+e:b.right:b.left+e,b.bottom]];return[le,ae,...K]}default:return[]}}if(!Nt([T,R],J)){if(r&&!F)return g();if(!H&&o){const B=c(w.clientX,w.clientY);if(B!==null&&B<.1)return g()}Nt([T,R],ce([d,m]))?!r&&o&&i.start(40,g):g()}};return f.__options={blockPointerEvents:n},f}const fn=(...t)=>t.filter((e,n,o)=>!!e&&e.trim()!==""&&o.indexOf(e)===n).join(" ").trim();const qo=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Zo=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,o)=>o?o.toUpperCase():n.toLowerCase());const Yt=t=>{const e=Zo(t);return e.charAt(0).toUpperCase()+e.slice(1)};var Jo={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Go=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};const Qo=O.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:i="",children:r,iconNode:s,...l},u)=>O.createElement("svg",{ref:u,...Jo,width:e,height:e,stroke:t,strokeWidth:o?Number(n)*24/Number(e):n,className:fn("lucide",i),...!r&&!Go(l)&&{"aria-hidden":"true"},...l},[...s.map(([c,f])=>O.createElement(c,f)),...Array.isArray(r)?r:[r]]));const di=(t,e)=>{const n=O.forwardRef(({className:o,...i},r)=>O.createElement(Qo,{ref:r,iconNode:e,className:fn(`lucide-${qo(Yt(t))}`,`lucide-${t}`,o),...i}));return n.displayName=Yt(t),n},ei=O.createContext(void 0);function mi(t){return O.useContext(ei)}function gi(t){return t==="starting"?$n:Xt}const ti=O.createContext(void 0);function ni(){return O.useContext(ti)?.direction??"ltr"}const oi=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:l,middlewareData:u}=e,{element:c,padding:f=0,offsetParent:d="real"}=re(t,e)||{};if(c==null)return{};const m=Qt(f),h={x:n,y:o},p=ct(i),a=st(p),y=await s.getDimensions(c),x=p==="y",E=x?"top":"left",w=x?"bottom":"right",g=x?"clientHeight":"clientWidth",T=r.reference[a]+r.reference[p]-h[p]-r.floating[a],R=h[p
1]-r.reference[p],C=d==="real"?await s.getOffsetParent?.(c):l.floating;let S=l.floating[g]||r.floating[a];(!S||!await s.isElement?.(C))&&(S=l.floating[g]||r.floating[a]);const H=T/2-R/2,A=S/2-y[a]/2-1,L=Math.min(m[E],A),D=Math.min(m[w],A),b=L,M=S-y[a]-D,k=S/2-y[a]/2+H,I=Ge(b,k,M),F=!u.arrow&&me(i)!=null&&k!==I&&r.reference[a]/2-(k<b?L:D)-y[a]/2<0,v=F?k<b?k-b:k-M:0;return{[p]:h[p]+v,data:{[p]:I,centerOffset:k-I-v,...F&&{alignmentOffset:v}},reset:F}}}),ii=(t,e)=>({...oi(t),options:[t,e]}),ri={name:"hide",async fn(t){const{width:e,height:n,x:o,y:i}=t.rects.reference,r=e===0&&n===0&&o===0&&i===0;return{data:{referenceHidden:(await Vo().fn(t)).data?.referenceHidden||r}}}},Ie={sideX:"left",sideY:"top"},hi={name:"adaptiveOrigin",async fn(t){const{x:e,y:n,rects:{floating:o},elements:{floating:i},platform:r,strategy:s,placement:l}=t,u=de(i),c=u.getComputedStyle(i);if(!(c.transitionDuration!=="0s"&&c.transitionDuration!==""))return{x:e,y:n,data:Ie};const d=await r.getOffsetParent?.(i);let m={width:0,height:0};if(s==="fixed"&&u?.visualViewport)m={width:u.visualVie
vendor: 5,132 bytes, line 1
1wport.width,height:u.visualViewport.height};else if(d===u){const E=Ee(i);m={width:E.documentElement.clientWidth,height:E.documentElement.clientHeight}}else await r.isElement?.(d)&&(m=await r.getDimensions(d));const h=z(l);let p=e,a=n;h==="left"&&(p=m.width-(e+o.width)),h==="top"&&(a=m.height-(n+o.height));const y=h==="left"?"right":Ie.sideX,x=h==="top"?"bottom":Ie.sideY;return{x:p,y:a,data:{sideX:y,sideY:x}}}};function un(t,e,n){const o=t==="inline-start"||t==="inline-end";return{top:"top",right:o?n?"inline-start":"inline-end":"right",bottom:"bottom",left:o?n?"inline-end":"inline-start":"left"}[e]}function _t(t,e,n){const{rects:o,placement:i}=t;return{side:un(e,z(i),n),align:me(i)||"center",anchor:{width:o.reference.width,height:o.reference.height},positioner:{width:o.floating.width,height:o.floating.height}}}function pi(t){const{anchor:e,positionMethod:n="absolute",side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,collisionBoundary:l,collisionPadding:u=5,sticky:c=!1,arrowPadding:f=5,disableAnchorTracking:d=!1,keepMounted:m=!1,floatingRootContext:h,mounted:p,collisionAvoidance:a,shiftCrossAxis:y=!1,nodeId:x,adaptiveOrigin:E,lazyFlip:w=!1,externalTree:g}=t,[T,R]=O.useState(null);!p&&T!==null&&R(null);const C=a.side||"flip",S=a.align||"flip",H=a.fallbackAxisSide||"end",A=typeof e=="function"?e:void 0,L=_(A),D=A?L:e,b=pe(e),k=ni()==="rtl",I=T||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":k?"left":"right","inline-start":k?"right":"left"}[o],F=r==="center"?I:`${I}-${r}`;let v=u;const P=1,V=o==="bottom"?P:0,Z=o==="top"?P:0,ee=o==="right"?P:0,ge=o==="left"?P:0;typeof v=="number"?v={top:v+V,right:v+ge,bottom:v+Z,left:v+ee}:v&&(v={top:(v.top||0)+V,right:(v.right||0)+ge,bottom:(v.bottom||0)+Z,left:(v.left||0)+ee});const J={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:v},ce=O.useRef(null),B=pe(i),W=pe(s),K=[Fo($=>{const Y=_t($,o,k),G=typeof B.current=="function"?B.current(Y):B.current,j=typeof W.current=="function"?W.current(Y):W.current;return{mainAxis:G,crossAxis:j,alignmentAxis:j}},[typeof i!="function"?i:0,typeof s!="function"?s:0,k,o])],ft=S==="none"&&C!=="shift",ut=!ft&&(c||y||C==="shift"),dt=C==="none"?null:Ho({...J,padding:{top:v.top+P,right:v.right+P,bottom:v.bottom+P,left:v.left+P},mainAxis:!y&&C==="flip",crossAxis:S==="flip"?"alignment":!1,fallbackAxisSideDirection:H}),mt=ft?null:Bo($=>{const Y=Ee($.elements.floating).documentElement;return{...J,rootBoundary:y?{x:0,y:0,width:Y.clientWidth,height:Y.clientHeight}:void 0,mainAxis:S!=="none",crossAxis:ut,limiter:c||y?void 0:$o(G=>{if(!ce.current)return{};const{width:j,height:te}=ce.current.getBoundingClientRect(),Me=U(z(G.placement)),De=Me==="y"?j:te,ze=Me==="y"?v.left+v.right:v.top+v.bottom;return{offset:De/2+ze/2}})}},[J,c,y,v,S]);C==="shift"||S==="shift"||r==="center"?K.push(mt,dt):K.push(dt,mt),K.push(Wo({...J,apply({elements:{floating:$},rects:{reference:Y},availableWidth:G,availableHeight:j}){const te=$.style;te.setProperty("--available-width",`${G}px`),te.setProperty("--available-height",`${j}px`),te.setProperty("--anchor-width",`${Y.width}px`),te.setProperty("--anchor-height",`${Y.height}px`)}}),ii(()=>({element:ce.current||document.createElement("div"),padding:f,offsetParent:"floating"}),[f]),{name:"transformOrigin",fn($){const{elements:Y,middlewareData:G,placement:j,rects:te,y:Me}=$,De=z(j),ze=U(De),At=ce.current,dn=G.arrow?.x||0,mn=G.arrow?.y||0,gn=At?.clientWidth||0,hn=At?.clientHeight||0,Xe=dn+gn/2,Pt=mn+hn/2,pn=Math.abs(G.shift?.y||0),yn=te.reference.height/2,Te=typeof i=="function"?i(_t($,o,k)):i,wn=pn>Te,xn={top:`${Xe}px calc(100% + ${Te}px)`,bottom:`${Xe}px ${-Te}px`,left:`calc(100% + ${Te}px) ${Pt}px`,right:`${-Te}px ${Pt}px`}[De],bn=`${Xe}px ${te.reference.y+yn-Me}px`;return Y.floating.style.setProperty("--transform-origin",ut&&ze==="y"&&wn?bn:xn),{}}},ri,E),ne(()=>{!p&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[p,h]);const Ye=O.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<"u",layoutShift:!d&&typeof IntersectionObserver<"u"}),[d]),{refs:we,elements:Ce,x:gt,y:ht,middlewareData:xe,update:Pe,placement:pt,context:yt,isPositioned:he,floatingStyles:wt}=Yo({rootContext:h,placement:F,middleware:K,strategy:n,whileElementsMounted:m?void 0:(...$)=>Wt(...$,Ye),nodeId:x,externalTree:g}),{sideX:xt,sideY:bt}=xe.adaptiveOrigin||Ie,_e=he?n:"fixed",vt=O.useMemo(()=>{const $=E?{position:_e,[xt]:gt,[bt]:ht}:{position:_e,...wt};return he||($.opacity=0),$},[E,_e,xt,gt,bt,ht,wt,he]),Se=O.useRef(null);ne(()=>{if(!p)return;const $=b.current,Y=typeof $=="function"?$():$,j=(zt(Y)?Y.current:Y)||null||null;j!==Se.current&&(we.setPositionReference(j),Se.current=j)},[p,we,D,b]),O.useEffect(()=>{if(!p)return;const $=b.current;typeof $!="function"&&zt($)&&$.current!==Se.current&&(we.setPositionReference($.current),Se.current=$.current)},[p,we,D,b]),O.useEffect(()=>{if(m&&p&&Ce.domReference&&Ce.floating)return Wt(Ce.domReference,Ce.floating,Pe,Ye)},[m,p,Ce,Pe,Ye]);const Oe=z(pt),Et=un(o,Oe,k),Rt=me(pt)||"center",Ct=!!xe.hide?.referenceHidden;ne(()=>{w&&p&&he&&R(Oe)},[w,p,he,Oe]);const Ot=O.useMemo(()=>
1({position:"absolute",top:xe.arrow?.y,left:xe.arrow?.x}),[xe.arrow]),Tt=xe.arrow?.centerOffset!==0;return O.useMemo(()=>({positionerStyles:vt,arrowStyles:Ot,arrowRef:ce,arrowUncentered:Tt,side:Et,align:Rt,physicalSide:Oe,anchorHidden:Ct,refs:we,context:yt,isPositioned:he,update:Pe}),[vt,Ot,ce,Tt,Et,Rt,Oe,Ct,we,yt,he,Pe])}function zt(t){return t!=null&&"current"in t}export{mi as a,ai as b,di as c,pi as d,ni as e,Le as f,gi as g,Wn as h,fi as i,li as j,hi as k,ui as s,ci 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.