"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7916],{7916:(t,e,n)=>{n.d(e,{UE:()=>td,ll:()=>tl,rD:()=>tp,UU:()=>ta,jD:()=>tu,ER:()=>th,cY:()=>tf,BN:()=>tc,Ej:()=>ts});let i=["top","right","bottom","left"],o=Math.min,r=Math.max,l=Math.round,f=Math.floor,c=t=>({x:t,y:t}),a={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function u(t,e){return"function"==typeof t?t(e):t}function d(t){return t.split("-")[0]}function h(t){return t.split("-")[1]}function p(t){return"x"===t?"y":"x"}function m(t){return"y"===t?"height":"width"}function g(t){return["top","bottom"].includes(d(t))?"y":"x"}function w(t){return t.replace(/start|end/g,t=>s[t])}function y(t){return t.replace(/left|right|bottom|top/g,t=>a[t])}function x(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function v(t){let{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function b(t,e,n){let i,{reference:o,floating:r}=t,l=g(e),f=p(g(e)),c=m(f),a=d(e),s="y"===l,u=o.x+o.width/2-r.width/2,w=o.y+o.height/2-r.height/2,y=o[c]/2-r[c]/2;switch(a){case"top":i={x:u,y:o.y-r.height};break;case"bottom":i={x:u,y:o.y+o.height};break;case"right":i={x:o.x+o.width,y:w};break;case"left":i={x:o.x-r.width,y:w};break;default:i={x:o.x,y:o.y}}switch(h(e)){case"start":i[f]-=y*(n&&s?-1:1);break;case"end":i[f]+=y*(n&&s?-1:1)}return i}let R=async(t,e,n)=>{let{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:l}=n,f=r.filter(Boolean),c=await (null==l.isRTL?void 0:l.isRTL(e)),a=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:s,y:u}=b(a,i,c),d=i,h={},p=0;for(let n=0;n<f.length;n++){let{name:r,fn:m}=f[n],{x:g,y:w,data:y,reset:x}=await m({x:s,y:u,initialPlacement:i,placement:d,strategy:o,middlewareData:h,rects:a,platform:l,elements:{reference:t,floating:e}});s=null!=g?g:s,u=null!=w?w:u,h={...h,[r]:{...h[r],...y}},x&&p<=50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(a=!0===x.rects?await l.getElementRects({reference:t,floating:e,strategy:o}):x.rects),{x:s,y:u}=b(a,d,c)),n=-1)}return{x:s,y:u,placement:d,strategy:o,middlewareData:h}};async function T(t,e){var n;void 0===e&&(e={});let{x:i,y:o,platform:r,rects:l,elements:f,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:s="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=u(e,t),m=x(p),g=f[h?"floating"===d?"reference":"floating":d],w=v(await r.getClippingRect({element:null==(n=await (null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await (null==r.getDocumentElement?void 0:r.getDocumentElement(f.floating)),boundary:a,rootBoundary:s,strategy:c})),y="floating"===d?{x:i,y:o,width:l.floating.width,height:l.floating.height}:l.reference,b=await (null==r.getOffsetParent?void 0:r.getOffsetParent(f.floating)),R=await (null==r.isElement?void 0:r.isElement(b))&&await (null==r.getScale?void 0:r.getScale(b))||{x:1,y:1},T=v(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:y,offsetParent:b,strategy:c}):y);return{top:(w.top-T.top+m.top)/R.y,bottom:(T.bottom-w.bottom+m.bottom)/R.y,left:(w.left-T.left+m.left)/R.x,right:(T.right-w.right+m.right)/R.x}}function L(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function E(t){return i.some(e=>t[e]>=0)}async function A(t,e){let{placement:n,platform:i,elements:o}=t,r=await (null==i.isRTL?void 0:i.isRTL(o.floating)),l=d(n),f=h(n),c="y"===g(n),a=["left","top"].includes(l)?-1:1,s=r&&c?-1:1,p=u(e,t),{mainAxis:m,crossAxis:w,alignmentAxis:y}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return f&&"number"==typeof y&&(w="end"===f?-1*y:y),c?{x:w*s,y:m*a}:{x:m*a,y:w*s}}function D(){return"undefined"!=typeof window}function O(t){return H(t)?(t.nodeName||"").toLowerCase():"#document"}function C(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function k(t){var e;return null==(e=(H(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function H(t){return!!D()&&(t instanceof Node||t instanceof C(t).Node)}function F(t){return!!D()&&(t instanceof Element||t instanceof C(t).Element)}function P(t){return!!D()&&(t instanceof HTMLElement||t instanceof C(t).HTMLElement)}function S(t){return!!D()&&"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof C(t).ShadowRoot)}function W(t){let{overflow:e,overflowX:n,overflowY:i,display:o}=_(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o)}function B(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch(t){return!1}})}function N(t){let e=V(),n=F(t)?_(t):t;return["transform","translate","scale","rotate","perspective"].some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(t=>(n.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(n.contain||"").includes(t))}function V(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function M(t){return["html","body","#document"].includes(O(t))}function _(t){return C(t).getComputedStyle(t)}function z(t){return F(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function j(t){if("html"===O(t))return t;let e=t.assignedSlot||t.parentNode||S(t)&&t.host||k(t);return S(e)?e.host:e}function I(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);let o=function t(e){let n=j(e);return M(n)?e.ownerDocument?e.ownerDocument.body:e.body:P(n)&&W(n)?n:t(n)}(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),l=C(o);if(r){let t=U(l);return e.concat(l,l.visualViewport||[],W(o)?o:[],t&&n?I(t):[])}return e.concat(o,I(o,[],n))}function U(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function q(t){let e=_(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=P(t),r=o?t.offsetWidth:n,f=o?t.offsetHeight:i,c=l(n)!==r||l(i)!==f;return c&&(n=r,i=f),{width:n,height:i,$:c}}function Y(t){return F(t)?t:t.contextElement}function X(t){let e=Y(t);if(!P(e))return c(1);let n=e.getBoundingClientRect(),{width:i,height:o,$:r}=q(e),f=(r?l(n.width):n.width)/i,a=(r?l(n.height):n.height)/o;return f&&Number.isFinite(f)||(f=1),a&&Number.isFinite(a)||(a=1),{x:f,y:a}}let $=c(0);function G(t){let e=C(t);return V()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:$}function J(t,e,n,i){var o;void 0===e&&(e=!1),void 0===n&&(n=!1);let r=t.getBoundingClientRect(),l=Y(t),f=c(1);e&&(i?F(i)&&(f=X(i)):f=X(t));let a=(void 0===(o=n)&&(o=!1),i&&(!o||i===C(l))&&o)?G(l):c(0),s=(r.left+a.x)/f.x,u=(r.top+a.y)/f.y,d=r.width/f.x,h=r.height/f.y;if(l){let t=C(l),e=i&&F(i)?C(i):i,n=t,o=U(n);for(;o&&i&&e!==n;){let t=X(o),e=o.getBoundingClientRect(),i=_(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,l=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;s*=t.x,u*=t.y,d*=t.x,h*=t.y,s+=r,u+=l,o=U(n=C(o))}}return v({width:d,height:h,x:s,y:u})}function K(t,e){let n=z(t).scrollLeft;return e?e.left+n:J(k(t)).left+n}function Q(t,e,n){void 0===n&&(n=!1);let i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(n?0:K(t,i)),y:i.top+e.scrollTop}}function Z(t,e,n){let i;if("viewport"===e)i=function(t,e){let n=C(t),i=k(t),o=n.visualViewport,r=i.clientWidth,l=i.clientHeight,f=0,c=0;if(o){r=o.width,l=o.height;let t=V();(!t||t&&"fixed"===e)&&(f=o.offsetLeft,c=o.offsetTop)}return{width:r,height:l,x:f,y:c}}(t,n);else if("document"===e)i=function(t){let e=k(t),n=z(t),i=t.ownerDocument.body,o=r(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),l=r(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),f=-n.scrollLeft+K(t),c=-n.scrollTop;return"rtl"===_(i).direction&&(f+=r(e.clientWidth,i.clientWidth)-o),{width:o,height:l,x:f,y:c}}(k(t));else if(F(e))i=function(t,e){let n=J(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=P(t)?X(t):c(1),l=t.clientWidth*r.x;return{width:l,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{let n=G(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return v(i)}function tt(t){return"static"===_(t).position}function te(t,e){if(!P(t)||"fixed"===_(t).position)return null;if(e)return e(t);let n=t.offsetParent;return k(t)===n&&(n=n.ownerDocument.body),n}function tn(t,e){let n=C(t);if(B(t))return n;if(!P(t)){let e=j(t);for(;e&&!M(e);){if(F(e)&&!tt(e))return e;e=j(e)}return n}let i=te(t,e);for(;i&&["table","td","th"].includes(O(i))&&tt(i);)i=te(i,e);return i&&M(i)&&tt(i)&&!N(i)?n:i||function(t){let e=j(t);for(;P(e)&&!M(e);){if(N(e))return e;if(B(e))break;e=j(e)}return null}(t)||n}let ti=async function(t){let e=this.getOffsetParent||tn,n=this.getDimensions,i=await n(t.floating);return{reference:function(t,e,n){let i=P(e),o=k(e),r="fixed"===n,l=J(t,!0,r,e),f={scrollLeft:0,scrollTop:0},a=c(0);if(i||!i&&!r){if(("body"!==O(e)||W(o))&&(f=z(e)),i){let t=J(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else o&&(a.x=K(o))}let s=!o||i||r?c(0):Q(o,f);return{x:l.left+f.scrollLeft-a.x-s.x,y:l.top+f.scrollTop-a.y-s.y,width:l.width,height:l.height}}(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},to={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t,r="fixed"===o,l=k(i),f=!!e&&B(e.floating);if(i===l||f&&r)return n;let a={scrollLeft:0,scrollTop:0},s=c(1),u=c(0),d=P(i);if((d||!d&&!r)&&(("body"!==O(i)||W(l))&&(a=z(i)),P(i))){let t=J(i);s=X(i),u.x=t.x+i.clientLeft,u.y=t.y+i.clientTop}let h=!l||d||r?c(0):Q(l,a,!0);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-a.scrollLeft*s.x+u.x+h.x,y:n.y*s.y-a.scrollTop*s.y+u.y+h.y}},getDocumentElement:k,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:l}=t,f=[..."clippingAncestors"===n?B(e)?[]:function(t,e){let n=e.get(t);if(n)return n;let i=I(t,[],!1).filter(t=>F(t)&&"body"!==O(t)),o=null,r="fixed"===_(t).position,l=r?j(t):t;for(;F(l)&&!M(l);){let e=_(l),n=N(l);n||"fixed"!==e.position||(o=null),(r?!n&&!o:!n&&"static"===e.position&&!!o&&["absolute","fixed"].includes(o.position)||W(l)&&!n&&function t(e,n){let i=j(e);return!(i===n||!F(i)||M(i))&&("fixed"===_(i).position||t(i,n))}(t,l))?i=i.filter(t=>t!==l):o=e,l=j(l)}return e.set(t,i),i}(e,this._c):[].concat(n),i],c=f[0],a=f.reduce((t,n)=>{let i=Z(e,n,l);return t.top=r(i.top,t.top),t.right=o(i.right,t.right),t.bottom=o(i.bottom,t.bottom),t.left=r(i.left,t.left),t},Z(e,c,l));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:tn,getElementRects:ti,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:e,height:n}=q(t);return{width:e,height:n}},getScale:X,isElement:F,isRTL:function(t){return"rtl"===_(t).direction}};function tr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function tl(t,e,n,i){let l;void 0===i&&(i={});let{ancestorScroll:c=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:d=!1}=i,h=Y(t),p=c||a?[...h?I(h):[],...I(e)]:[];p.forEach(t=>{c&&t.addEventListener("scroll",n,{passive:!0}),a&&t.addEventListener("resize",n)});let m=h&&u?function(t,e){let n,i=null,l=k(t);function c(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return!function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),c();let d=t.getBoundingClientRect(),{left:h,top:p,width:m,height:g}=d;if(s||e(),!m||!g)return;let w=f(p),y=f(l.clientWidth-(h+m)),x={rootMargin:-w+"px "+-y+"px "+-f(l.clientHeight-(p+g))+"px "+-f(h)+"px",threshold:r(0,o(1,u))||1},v=!0;function b(e){let i=e[0].intersectionRatio;if(i!==u){if(!v)return a();i?a(!1,i):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==i||tr(d,t.getBoundingClientRect())||a(),v=!1}try{i=new IntersectionObserver(b,{...x,root:l.ownerDocument})}catch(t){i=new IntersectionObserver(b,x)}i.observe(t)}(!0),c}(h,n):null,g=-1,w=null;s&&(w=new ResizeObserver(t=>{let[i]=t;i&&i.target===h&&w&&(w.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=w)||t.observe(e)})),n()}),h&&!d&&w.observe(h),w.observe(e));let y=d?J(t):null;return d&&function e(){let i=J(t);y&&!tr(y,i)&&n(),y=i,l=requestAnimationFrame(e)}(),n(),()=>{var t;p.forEach(t=>{c&&t.removeEventListener("scroll",n),a&&t.removeEventListener("resize",n)}),null==m||m(),null==(t=w)||t.disconnect(),w=null,d&&cancelAnimationFrame(l)}}let tf=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:o,y:r,placement:l,middlewareData:f}=e,c=await A(e,t);return l===(null==(n=f.offset)?void 0:n.placement)&&null!=(i=f.arrow)&&i.alignmentOffset?{}:{x:o+c.x,y:r+c.y,data:{...c,placement:l}}}}},tc=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:l}=e,{mainAxis:f=!0,crossAxis:c=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=u(t,e),h={x:n,y:i},m=await T(e,s),w=g(d(l)),y=p(w),x=h[y],v=h[w];if(f){let t="y"===y?"top":"left",e="y"===y?"bottom":"right",n=x+m[t],i=x-m[e];x=r(n,o(x,i))}if(c){let t="y"===w?"top":"left",e="y"===w?"bottom":"right",n=v+m[t],i=v-m[e];v=r(n,o(v,i))}let b=a.fn({...e,[y]:x,[w]:v});return{...b,data:{x:b.x-n,y:b.y-i,enabled:{[y]:f,[w]:c}}}}}},ta=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i,o,r,l;let{placement:f,middlewareData:c,rects:a,initialPlacement:s,platform:x,elements:v}=e,{mainAxis:b=!0,crossAxis:R=!0,fallbackPlacements:L,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:D=!0,...O}=u(t,e);if(null!=(n=c.arrow)&&n.alignmentOffset)return{};let C=d(f),k=g(s),H=d(s)===s,F=await (null==x.isRTL?void 0:x.isRTL(v.floating)),P=L||(H||!D?[y(s)]:function(t){let e=y(t);return[w(t),e,w(e)]}(s)),S="none"!==A;!L&&S&&P.push(...function(t,e,n,i){let o=h(t),r=function(t,e,n){let i=["left","right"],o=["right","left"];switch(t){case"top":case"bottom":if(n)return e?o:i;return e?i:o;case"left":case"right":return e?["top","bottom"]:["bottom","top"];default:return[]}}(d(t),"start"===n,i);return o&&(r=r.map(t=>t+"-"+o),e&&(r=r.concat(r.map(w)))),r}(s,D,A,F));let W=[s,...P],B=await T(e,O),N=[],V=(null==(i=c.flip)?void 0:i.overflows)||[];if(b&&N.push(B[C]),R){let t=function(t,e,n){void 0===n&&(n=!1);let i=h(t),o=p(g(t)),r=m(o),l="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=y(l)),[l,y(l)]}(f,a,F);N.push(B[t[0]],B[t[1]])}if(V=[...V,{placement:f,overflows:N}],!N.every(t=>t<=0)){let t=((null==(o=c.flip)?void 0:o.index)||0)+1,e=W[t];if(e)return{data:{index:t,overflows:V},reset:{placement:e}};let n=null==(r=V.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:r.placement;if(!n)switch(E){case"bestFit":{let t=null==(l=V.filter(t=>{if(S){let e=g(t.placement);return e===k||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:l[0];t&&(n=t);break}case"initialPlacement":n=s}if(f!==n)return{reset:{placement:n}}}return{}}}},ts=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,i;let l,f;let{placement:c,rects:a,platform:s,elements:p}=e,{apply:m=()=>{},...w}=u(t,e),y=await T(e,w),x=d(c),v=h(c),b="y"===g(c),{width:R,height:L}=a.floating;"top"===x||"bottom"===x?(l=x,f=v===(await (null==s.isRTL?void 0:s.isRTL(p.floating))?"start":"end")?"left":"right"):(f=x,l="end"===v?"top":"bottom");let E=L-y.top-y.bottom,A=R-y.left-y.right,D=o(L-y[l],E),O=o(R-y[f],A),C=!e.middlewareData.shift,k=D,H=O;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(H=A),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(k=E),C&&!v){let t=r(y.left,0),e=r(y.right,0),n=r(y.top,0),i=r(y.bottom,0);b?H=R-2*(0!==t||0!==e?t+e:r(y.left,y.right)):k=L-2*(0!==n||0!==i?n+i:r(y.top,y.bottom))}await m({...e,availableWidth:H,availableHeight:k});let F=await s.getDimensions(p.floating);return R!==F.width||L!==F.height?{reset:{rects:!0}}:{}}}},tu=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:i="referenceHidden",...o}=u(t,e);switch(i){case"referenceHidden":{let t=L(await T(e,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:E(t)}}}case"escaped":{let t=L(await T(e,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:E(t)}}}default:return{}}}}},td=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:l,rects:f,platform:c,elements:a,middlewareData:s}=e,{element:d,padding:w=0}=u(t,e)||{};if(null==d)return{};let y=x(w),v={x:n,y:i},b=p(g(l)),R=m(b),T=await c.getDimensions(d),L="y"===b,E=L?"clientHeight":"clientWidth",A=f.reference[R]+f.reference[b]-v[b]-f.floating[R],D=v[b]-f.reference[b],O=await (null==c.getOffsetParent?void 0:c.getOffsetParent(d)),C=O?O[E]:0;C&&await (null==c.isElement?void 0:c.isElement(O))||(C=a.floating[E]||f.floating[R]);let k=C/2-T[R]/2-1,H=o(y[L?"top":"left"],k),F=o(y[L?"bottom":"right"],k),P=C-T[R]-F,S=C/2-T[R]/2+(A/2-D/2),W=r(H,o(S,P)),B=!s.arrow&&null!=h(l)&&S!==W&&f.reference[R]/2-(S<H?H:F)-T[R]/2<0,N=B?S<H?S-H:S-P:0;return{[b]:v[b]+N,data:{[b]:W,centerOffset:S-W-N,...B&&{alignmentOffset:N}},reset:B}}}),th=function(t){return void 0===t&&(t={}),{options:t,fn(e){let{x:n,y:i,placement:o,rects:r,middlewareData:l}=e,{offset:f=0,mainAxis:c=!0,crossAxis:a=!0}=u(t,e),s={x:n,y:i},h=g(o),m=p(h),w=s[m],y=s[h],x=u(f,e),v="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){let t="y"===m?"height":"width",e=r.reference[m]-r.floating[t]+v.mainAxis,n=r.reference[m]+r.reference[t]-v.mainAxis;w<e?w=e:w>n&&(w=n)}if(a){var b,R;let t="y"===m?"width":"height",e=["top","left"].includes(d(o)),n=r.reference[h]-r.floating[t]+(e&&(null==(b=l.offset)?void 0:b[h])||0)+(e?0:v.crossAxis),i=r.reference[h]+r.reference[t]+(e?0:(null==(R=l.offset)?void 0:R[h])||0)-(e?v.crossAxis:0);y<n?y=n:y>i&&(y=i)}return{[m]:w,[h]:y}}}},tp=(t,e,n)=>{let i=new Map,o={platform:to,...n},r={...o.platform,_c:i};return R(t,e,{...o,platform:r})}}}]);