1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,853660,e=>{"use strict";var t=e.i(271645);let n=["top","right","bottom","left"],r=Math.min,i=Math.max,o=Math.round,l=Math.floor,a=e=>({x:e,y:e}),f={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function c(e,t){return"function"==typeof e?e(t):e}function u(e){return e.split("-")[0]}function d(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function m(e){return["top","bottom"].includes(u(e))?"y":"x"}function g(e){return e.replace(/start|end/g,e=>s[e])}function y(e){return e.replace(/left|right|bottom|top/g,e=>f[e])}function w(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function x(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function v(e,t,n){let r,{reference:i,floating:o}=e,l=m(t),a=p(m(t)),f=h(a),s=u(t),c="y"===l,g=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,w=i[f]/2-o[f]/2;switch(s){case"top":r={x:g,y:i.y-o.height};break;case"bottom":r={x:g,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:y};break;case"left":r={x:i.x-o.width,y:y};break;default:r={x:i.x,y:i.y}}switch(d(t)){case"start":r[a]-=w*(n&&c?-1:1);break;case"end":r[a]+=w*(n&&c?-1:1)}return r}let b=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),f=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:u}=v(s,r,f),d=r,p={},h=0;for(let n=0;n<a.length;n++){let{name:o,fn:m}=a[n],{x:g,y:y,data:w,reset:x}=await m({x:c,y:u,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});if(c=null!=g?g:c,u=null!=y?y:u,p={...p,[o]:{...p[o],...w}},x&&h<=50){h++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(s=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:c,y:u}=v(s,d,f)),n=-1;continue}}return{x:c,y:u,placement:d,strategy:i,middlewareData:p}};async function R(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:a,strategy:f}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=c(t,e),m=w(h),g=a[p?"floating"===d?"reference":"floating":d],y=x(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:s,rootBoundary:u,strategy:f})),v="floating"===d?{...l.floating,x:r,y:i}:l.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),R=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},A=x(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:f}):v);return{top:(y.top-A.top+m.top)/R.y,bottom:(A.bottom-y.bottom+m.bottom)/R.y,left:(y.left-A.left+m.left)/R.x,right:(A.right-y.right+m.right)/R.x}}let A=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:l,rects:a,platform:f,elements:s,middlewareData:u}=t,{element:g,padding:y=0}=c(e,t)||{};if(null==g)return{};let x=w(y),v={x:n,y:o},b=p(m(l)),R=h(b),A=await f.getDimensions(g),T="y"===b,E=T?"clientHeight":"clientWidth",L=a.reference[R]+a.reference[b]-v[b]-a.floating[R],P=v[b]-a.reference[b],C=await (null==f.getOffsetParent?void 0:f.getOffsetParent(g)),S=C?C[E]:0;S&&await (null==f.isElement?void 0:f.isElement(C))||(S=s.floating[E]||a.floating[R]);let O=S/2-A[R]/2-1,H=r(x[T?"top":"left"],O),k=r(x[T?"bottom":"right"],O),D=S-A[R]-k,F=S/2-A[R]/2+(L/2-P/2),j=i(H,r(F,D)),$=!u.arrow&&null!=d(l)&&F!=j&&a.reference[R]/2-(F<H?H:k)-A[R]/2<0,M=$?F<H?F-H:F-D:0;return{[b]:v[b]+M,data:{[b]:j,centerOffset:F-j-M,...$&&{alignmentOffset:M}},reset:$}}});function T(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function E(e){return n.some(t=>e[t]>=0)}async function L(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=u(n),a=d(n),f="y"===m(n),s=["left","top"].includes(l)?-1:1,p=o&&f?-1:1,h=c(t,e),{mainAxis:g,crossAxis:y,alignmentAxis:w}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&"number"==typeof w&&(y="end"===a?-1*w:w),f?{x:y*p,y:g*s}:{x:g*s,y:y*p}}function P(e){return O(e)?(e.nodeName||"").toLowerCase():"#document"}function C(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function S(e){var t;return null==(t=(O(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function O(e){return e instanceof Node||e instanceof C(e).Node}function H(e){return e instanceof Element||e instanceof C(e).Element}function k(e){return e instanceof HTMLElement||e instanceof C(e).HTMLElement}function D(e){return!("u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof C(e).ShadowRoot)}function F(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=W(e);
1return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function j(e){let t=$(),n=W(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function $(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function M(e){return["html","body","#document"].includes(P(e))}function W(e){return C(e).getComputedStyle(e)}function N(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function B(e){if("html"===P(e))return e;let t=e.assignedSlot||e.parentNode||D(e)&&e.host||S(e);return D(t)?t.host:t}function V(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=B(t);return M(n)?t.ownerDocument?t.ownerDocument.body:t.body:k(n)&&F(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=C(i);return o?t.concat(l,l.visualViewport||[],F(i)?i:[],l.frameElement&&n?V(l.frameElement):[]):t.concat(i,V(i,[],n))}function z(e){let t=W(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=k(e),l=i?e.offsetWidth:n,a=i?e.offsetHeight:r,f
1=o(n)!==l||o(r)!==a;return f&&(n=l,r=a),{width:n,height:r,$:f}}function I(e){return H(e)?e:e.contextElement}function Y(e){let t=I(e);if(!k(t))return a(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:l}=z(t),f=(l?o(n.width):n.width)/r,s=(l?o(n.height):n.height)/i;return f&&Number.isFinite(f)||(f=1),s&&Number.isFinite(s)||(s=1),{x:f,y:s}}let X=a(0);function _(e){let t=C(e);return $()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:X}function q(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=I(e),f=a(1);t&&(r?H(r)&&(f=Y(r)):f=Y(e));let s=(void 0===(i=n)&&(i=!1),r&&(!i||r===C(l))&&i)?_(l):a(0),c=(o.left+s.x)/f.x,u=(o.top+s.y)/f.y,d=o.width/f.x,p=o.height/f.y;if(l){let e=C(l),t=r&&H(r)?C(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=Y(n),t=n.getBoundingClientRect(),r=W(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,p*=e.y,c+=i,u+=o,n=C(n).frameElement}}return x({width:d,height:p,x:c,y:u})}function K(e){return q(S(e)).left+N(e).scrollLeft}function U(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=C(e),r=S(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,f=0;if(i){o=i.width,l=i.height;let e=$();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,f=i.offsetTop)}return{width:o,height:l,x:a,y:f}}(e,n);else if("document"===t){let t,n,l,a,f,s,c;r=S(e),t=S(r),n=N(r),l=r.ownerDocument.body,a=i(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),f=i(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight),s=-n.scrollLeft+K(r),c=-n.scrollTop,"rtl"===W(l).direction&&(s+=i(t.clientWidth,l.clientWidth)-a),o={width:a,height:f,x:s,y:c}}else if(H(t)){let e,r,i,l,f,s;r=(e=q(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=k(t)?Y(t):a(1),f=t.clientWidth*l.x,s=t.clientHeight*l.y,o={width:f,height:s,x:i*l.x,y:r*l.y}}else{let n=_(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return x(o)}function G(e,t){return k(e)&&"fixed"!==W(e).position?t?t(e):e.offsetParent:null}function J(e,t){let n=C(e);if(!k(e))return n;let r=G(e,t);for(;r&&["table","td","th"].includes(P(r))&&"static"===W(r).position;)r=G(r,t);return r&&("html"===P(r)||"body"===P(r)&&"static"===W(r).position&&!j(r))?n:r||function(e){let t=B(e);for(;k(t)&&!M(t);)if(j(t))return t;else t=B(t);return null}(e)||n}let Q=async function(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||J,o=this.getDimensions;return{reference:function(e,t,n){let r=k(t),i=S(t),o="fixed"===n,l=q(e,!0,o,t),f={scrollLeft:0,scrollTop:0},s=a(0);if(r||!r&&!o)if(("body"!==P(t)||F(i))&&(f=N(t)),r){let e=q(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=K(i));return{x:l.left+f.scrollLeft-s.x,y:l.top+f.scrollTop-s.y,width:l.width,height:l.height}}(t,await i(n),r),floating:{x:0,y:0,...await o(n)}}},Z={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=k(n),o=S(n);if(n===o)return t;let l={scrollLeft:0,scrollTop:0},f=a(1),s=a(0);if((i||!i&&"fixed"!==r)&&(("body"!==P(n)||F(o))&&(l=N(n)),k(n))){let e=q(n);f=Y(n),s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-l.scrollLeft*f.x+s.x,y:t.y*f.y-l.scrollTop*f.y+s.y}},getDocumentElement:S,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:l}=e,a=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=V(e,[],!1).filter(e=>H(e)&&"body"!==P(e)),i=null,o="fixed"===W(e).position,l=o?B(e):e;for(;H(l)&&!M(l);){let t=W(l),n=j(l);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||F(l)&&!n&&function e(t,n){let r=B(t);return!(r===n||!H(r)||M(r))&&("fixed"===W(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):i=t,l=B(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],f=a[0],s=a.reduce((e,n)=>{let o=U(t,n,l);return e.top=i(o.top,e.top),e.right=r(o.right,e.right),e.bottom=r(o.bottom,e.bottom),e.left=i(o.left,e.left),e},U(t,f,l));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:J,getElementRects:Q,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return z(e)},getScale:Y,isElement:H,isRTL:function(e){return"rtl"===W(e).direction}};var ee=e.i(174080),et="u">typeof document?t.useLayoutEffect:t.useEffect;function en(e,t){let n,r,i;if(e===t)return!0;
1if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!en(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!en(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function er(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ei(e,t){let n=er(e);return Math.round(t*n)/n}function eo(e){let n=t.useRef(e);return et(()=>{n.current=e}),n}var el=e.i(248425),ea=e.i(843476),ef=t.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,ea.jsx)(el.Primitive.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ea.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ef.displayName="Arrow";var es=e.i(820783),ec=e.i(30030),eu=e.i(309937),ed=e.i(934620),ep=e.i(635804),eh="Popper",[em,eg]=(0,ec.createContextScope)(eh),[ey,ew]=em(eh),ex=e=>{let{__scopePopper:n,children:r}=e,[i,o]=t.useState(null);return(0,ea.jsx)(ey,{scope:n,anchor:i,onAnchorChange:o,children:r})};ex.displayName=eh;var ev="PopperAnchor",eb=t.forwardRef((e,n)=>{let{__scopePopper:r,virtualRef:i,...o}=e,l=ew(ev,r),a=t.useRef(null),f=(0,es.useComposedRefs)(n,a);return t.useEffect(()=>{l.onAnchorChange(i?.current||a.current)}),i?null:(0,ea.jsx)(el.Primitive.div,{...o,ref:f})});eb.displayName=ev;var eR="PopperContent",[eA,eT]=em(eR),eE=t.forwardRef((e,n)=>{var o,a,f,s,w,x,v;let{__scopePopper:P,side:C="bottom",sideOffset:O=0,align:H="center",alignOffset:k=0,arrowPadding:D=0,avoidCollisions:F=!0,collisionBoundary:j=[],collisionPadding:$=0,sticky:M="partial",hideWhenDetached:W=!1,updatePositionStrategy:N="optimized",onPlaced:B,...z}=e,Y=ew(eR,P),[X,_]=t.useState(null),K=(0,es.useComposedRefs)(n,e=>_(e)),[U,G]=t.useState(null),J=(0,ep.useSize)(U),Q=J?.width??0,ef=J?.height??0,ec="number"==typeof $?$:{top:0,right:0,bottom:0,left:0,...$},eh=Array.isArray(j)?j:[j],em=eh.length>
10,eg={padding:ec,boundary:eh.filter(eS),altBoundary:em},{refs:ey,floatingStyles:ex,placement:ev,isPositioned:eb,middlewareData:eT}=function(e){void 0===e&&(e={});let{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:a}={},transform:f=!0,whileElementsMounted:s,open:c}=e,[u,d]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,h]=t.useState(i);en(p,i)||h(i);let[m,g]=t.useState(null),[y,w]=t.useState(null),x=t.useCallback(e=>{e!=T.current&&(T.current=e,g(e))},[g]),v=t.useCallback(e=>{e!==E.current&&(E.current=e,w(e))},[w]),R=l||m,A=a||y,T=t.useRef(null),E=t.useRef(null),L=t.useRef(u),P=eo(s),C=eo(o),S=t.useCallback(()=>{var e,t;let i,o,l;if(!T.current||!E.current)return;let a={placement:n,strategy:r,middleware:p};C.current&&(a.platform=C.current),(e=T.current,t=E.current,i=new Map,l={...(o={platform:Z,...a}).platform,_c:i},b(e,t,{...o,platform:l})).then(e=>{let t={...e,isPositioned:!0};O.current&&!en(L.current,t)&&(L.current=t,ee.flushSync(()=>{d(t)}))})},[p,n,r,C]);et(()=>{!1===c&&L.current.isPositioned&&(L.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let O=t.useRef(!1);et(()=>(O.current=!0,()=>{O.current=!1}),[]),et(()=>{if(R&&(T.current=R),A&&(E.current=A),R&&A)if(P.current)return P.current(R,A,S);else S()},[R,A,S,P]);let H=t.useMemo(()=>({reference:T,floating:E,setReference:x,setFloating:v}),[x,v]),k=t.useMemo(()=>({reference:R,floating:A}),[R,A]),D=t.useMemo(()=>{let e={position:r,left:0,top:0};if(!k.floating)return e;let t=ei(k.floating,u.x),n=ei(k.floating,u.y);return f?{...e,transform:"translate("+t+"px, "+n+"px)",...er(k.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,f,k.floating,u.x,u.y]);return t.useMemo(()=>({...u,update:S,refs:H,elements:k,floatingStyles:D}),[u,S,H,k,D])}({strategy:"fixed",placement:C+("center"!==H?"-"+H:""),whileElementsMounted:(...e)=>(function(e,t,n,o){let a;void 0===o&&(o={});let{ancestorScroll:f=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,p=I(e),h=f||s?[...p?V(p):[],...V(t)]:[];h.forEach(e=>{f&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let m=p&&u?function(e,t){let n,o=null,a=S(e);function f(){clearTimeout(n),o&&o.disconnect(),o=null}return!function s(c,u){void 0===c&&(c=!1),void 0===u&&(u=1),f();let{left:d,top:p,width:h,height:m}=e.getBoundingClientRect();if(c||t(),!h||!m)return;let g={rootMargin:-l(p)+"px "+-l(a.clientWidth-(d+h))+"px "+-l(a.clientHeight-(p+m))+"px "+-l(d)+"px",threshold:i(0,r(1,u))||1},y=!0;function w(e){let t=e[0].intersectionRatio;if(t!==u){if(!y)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},100)}y=!1}try{o=new IntersectionObserver(w,{...g,root:a.ownerDocument})}catch(e){o=new IntersectionObserver(w,g)}o.observe(e)}(!0),f}(p,n):null,g=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{y&&y.observe(t)})),n()}),p&&!d&&y.observe(p),y.observe(t));let w=d?q(e):null;return d&&function t(){let r=q(e);w&&(r.x!==w.x||r.y!==w.y||r.width!==w.width||r.height!==w.height)&&n(),w=r,a=requestAnimationFrame(t)}(),n(),()=>{h.forEach(e=>{f&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),m&&m(),y&&y.disconnect(),y=null,d&&cancelAnimationFrame(a)}})(...e,{animationFrame:"always"===N}),elements:{reference:Y.anchor},middleware:[{name:"offset",options:o={mainAxis:O+ef,alignmentAxis:k},async fn(e){let{x:t,y:n}=e,r=await L(e,o);return{x:t+r.x,y:n+r.y,data:r}}},F&&{name:"shift",options:f={mainAxis:!0,crossAxis:!1,limiter:"partial"===M?(void 0===a&&(a={}),{options:a,fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:o}=e,{offset:l=0,mainAxis:f=!0,crossAxis:s=!0}=c(a,e),d={x:t,y:n},h=m(r),g=p(h),y=d[g],w=d[h],x=c(l,e),v="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(f){let e="y"===g?"height":"width",t=i.reference[g]-i.floating[e]+v.mainAxis,n=i.reference[g]+i.reference[e]-v.mainAxis;y<t?y=t:y>n&&(y=n)}if(s){var b,R;let e="y"===g?"width":"height",t=["top","left"].includes(u(r)),n=i.reference[h]-i.floating[e]+(t&&(null==(b=o.offset)?void 0:b[h])||0)+(t?0:v.crossAxis),l=i.reference[h]+i.reference[e]+(t?0:(null==(R=o.offset)?void 0:R[h])||0)-(t?v.crossAxis:0);w<n?w=n:w>l&&(w=l)}return{[g]:y,[h]:w}}}):void 0,...eg},async fn(e){let{x:t,y:n,placement:o}=e,{mainAxis:l=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=c(f,e),h={x:t,y:n},g=await R(e,d),y=m(u(o)),w=p(y),x=h[w],v=h[y];if(l){let e="y"===w?"top":"left",t="y"===w?"bottom":"right",n=x+g[e],o=x-g[t];x=i(n,r(x,o))}if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=v+g[e],o=v-g[t];v=i(n,r(v,o))}let b=s.fn({...e,[w]:x,[y]:v});return{...b,data:{x:b.x-t,y:b.y-n}}}},F&&{name:"flip",options:s={...eg},async fn(e){var t,n,r,i,o,l,a,f;let w,x,v,{placement:b,middlewareData:A,rects:T,initialPlacement:E,platform:L,elements:P}=e,{mainAxis:C=!0,crossAxis:S=!0,fallbackPlacements:O,fallbackStrategy:H="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:D=!0,...F}=c(s,e);if(null!=(t=A.arrow)&&t.alignmentOffset)return{};let j=u(b),$=u(E)===E,M=await (null==L.isRTL?void 0:L.isRTL(P.floating)),W=O||($||!D?[y(E)]:(w=y(E),[g(E),w,g(w)])
1);O||"none"===k||W.push(...(x=d(E),v=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(u(E),"start"===k,M),x&&(v=v.map(e=>e+"-"+x),D&&(v=v.concat(v.map(g)))),v));let N=[E,...W],B=await R(e,F),V=[],z=(null==(n=A.flip)?void 0:n.overflows)||[];if(C&&V.push(B[j]),S){let e,t,n,r,i=(l=b,a=T,void 0===(f=M)&&(f=!1),e=d(l),n=h(t=p(m(l))),r="x"===t?e===(f?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[n]>a.floating[n]&&(r=y(r)),[r,y(r)]);V.push(B[i[0]],B[i[1]])}if(z=[...z,{placement:b,overflows:V}],!V.every(e=>e<=0)){let e=((null==(r=A.flip)?void 0:r.index)||0)+1,t=N[e];if(t)return{data:{index:e,overflows:z},reset:{placement:t}};let n=null==(i=z.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(H){case"bestFit":{let e=null==(o=z.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=E}if(b!==n)return{reset:{placement:n}}}return{}}},{name:"size",options:w={...eg,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){let t,n,{placement:o,rects:l,platform:a,elements:f}=e,{apply:s=()=>{},...p}=c(w,e),h=await R(e,p),g=u(o),y=d(o),x="y"===m(o),{width:v,height:b}=l.floating;"top"===g||"bottom"===g?(t=g,n=y===(await (null==a.isRTL?void 0:a.isRTL(f.floating))?"start":"end")?"left":"right"):(n=g,t="end"===y?"top":"bottom");let A=b-h[t],T=v-h[n],E=!e.middlewareData.shift,L=A,P=T;if(x){let e=v-h.left-h.right;P=y||E?r(T,e):e}else{let e=b-h.top-h.bottom;L=y||E?r(A,e):e}if(E&&!y){let e=i(h.left,0),t=i(h.right,0),n=i(h.top,0),r=i(h.bottom,0);x?P=v-2*(0!==e||0!==t?e+t:i(h.left,h.right)):L=b-2*(0!==n||0!==r?n+r:i(h.top,h.bottom))}await s({...e,availableWidth:P,availableHeight:L});let C=await a.getDimensions(f.floating);return v!==C.width||b!==C.height?{reset:{rects:!0}}:{}}},U&&{name:"arrow",options:x={element:U,padding:D},fn(e){let{element:t,padding:n}="function"==typeof x?x(e):x;if(t&&({}).hasOwnProperty.call(t,"current")){if(null!=t.current)return A({element:t.current,padding:n}).fn(e)}else if(t)return A({element:t,padding:n}).fn(e);return{}}},eO({arrowWidth:Q,arrowHeight:ef}),W&&{name:"hide",options:v={strategy:"referenceHidden",...eg},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...r}=c(v,e);switch(n){case"referenceHidden":{let n=T(await R(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:E(n)}}}case"escaped":{let n=T(await R(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:E(n)}}}default:return{}}}}]}),[eE,eL]=eH(ev),eP=(0,eu.useCallbackRef)(B);(0,ed.useLayoutEffect)(()=>{eb&&eP?.()},[eb,eP]);let eC=eT.arrow?.x,ek=eT.arrow?.y,eD=eT.arrow?.centerOffset!==0,[eF,ej]=t.useState();return(0,ed.useLayoutEffect)(()=>{X&&ej(window.getComputedStyle(X).zIndex)},[X]),(0,ea.jsx)("div",{ref:ey.setFloating,"data-radix-popper-content-wrapper":"",style:{...ex,transform:eb?ex.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eF,"--radix-popper-transform-origin":[eT.transformOrigin?.x,eT.transformOrigin?.y].join(" "),...eT.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ea.jsx)(eA,{scope:P,placedSide:eE,onArrowChange:G,arrowX:eC,arrowY:ek,shouldHideArrow:eD,children:(0,ea.jsx)(el.Primitive.div,{"data-side":eE,"data-align":eL,...z,ref:K,style:{...z.style,animation:eb?void 0:"none"}})})})});eE.displayName=eR;var eL="PopperArrow",eP={top:"bottom",right:"left",bottom:"top",left:"right"},eC=t.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eT(eL,n),o=eP[i.placedSide];return(0,ea.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,ea.jsx)(ef,{...r,ref:t,style:{...r.style,display:"block"}})})});function eS(e){return null!==e}eC.displayName=eL;var eO=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[f,s]=eH(n),c={start:"0%",center:"50%",end:"100%"}[s],u=(i.arrow?.x??0)+l/2,d=(i.arrow?.y??0)+a/2,p="",h="";return"bottom"===f?(p=o?c:`${u}px`,h=`${-a}px`):"top"===f?(p=o?c:`${u}px`,h=`${r.floating.height+a}px`):"right"===f?(p=`${-a}px`,h=o?c:`${d}px`):"left"===f&&(p=`${r.floating.width+a}px`,h=o?c:`${d}px`),{data:{x:p,y:h}}}});function eH(e){let[t,n="center"]=e.split("-");return[t,n]}e.s(["Anchor",0,eb,"Arrow",0,eC,"Content",0,eE,"Root",0,ex,"createPopperScope",0,eg],853660)}]);
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.