"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[93617],{41691:(t,e,n)=>{n.d(e,{UE:()=>J,cY:()=>Q,BN:()=>Y,we:()=>U});let o=Math.min,i=Math.max,r=Math.round,l=t=>({x:t,y:t}),u={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function c(t,e){return"function"==typeof t?t(e):t}function a(t){return t.split("-")[0]}function s(t){return t.split("-")[1]}function d(t){return"x"===t?"y":"x"}function p(t){return"y"===t?"height":"width"}function h(t){return["top","bottom"].includes(a(t))?"y":"x"}function m(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function g(t){let{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 y(t,e,n){let o,{reference:i,floating:r}=t,l=h(e),u=d(h(e)),f=p(u),c=a(e),m="y"===l,g=i.x+i.width/2-r.width/2,y=i.y+i.height/2-r.height/2,w=i[f]/2-r[f]/2;switch(c){case"top":o={x:g,y:i.y-r.height};break;case"bottom":o={x:g,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:y};break;case"left":o={x:i.x-r.width,y:y};break;default:o={x:i.x,y:i.y}}switch(s(e)){case"start":o[u]-=w*(n&&m?-1:1);break;case"end":o[u]+=w*(n&&m?-1:1)}return o}let w=async(t,e,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,u=r.filter(Boolean),f=await (null==l.isRTL?void 0:l.isRTL(e)),c=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:a,y:s}=y(c,o,f),d=o,p={},h=0;for(let n=0;n(0,b.vq)(t)&&"body"!==(0,b.mq)(t)),i=null,r="fixed"===(0,b.L9)(t).position,l=r?(0,b.$4)(t):t;for(;(0,b.vq)(l)&&!(0,b.eu)(l);){let e=(0,b.L9)(l),n=(0,b.sQ)(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&!!i&&["absolute","fixed"].includes(i.position)||(0,b.ZU)(l)&&!n&&function t(e,n){let o=(0,b.$4)(e);return!(o===n||!(0,b.vq)(o)||(0,b.eu)(o))&&("fixed"===(0,b.L9)(o).position||t(o,n))}(t,l))?o=o.filter(t=>t!==l):i=e,l=(0,b.$4)(l)}return e.set(t,o),o}(e,this._c):[].concat(n),r],f=u[0],c=u.reduce((t,n)=>{let r=O(e,n,l);return t.top=i(r.top,t.top),t.right=o(r.right,t.right),t.bottom=o(r.bottom,t.bottom),t.left=i(r.left,t.left),t},O(e,f,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:q,getElementRects:N,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:e,height:n}=R(t);return{width:e,height:n}},getScale:T,isElement:b.vq,isRTL:function(t){return"rtl"===(0,b.L9)(t).direction}},W=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:r,placement:l,rects:u,platform:f,elements:a,middlewareData:g}=e,{element:y,padding:w=0}=c(t,e)||{};if(null==y)return{};let x=m(w),v={x:n,y:r},b=d(h(l)),R=p(b),L=await f.getDimensions(y),T="y"===b,E=T?"clientHeight":"clientWidth",P=u.reference[R]+u.reference[b]-v[b]-u.floating[R],k=v[b]-u.reference[b],C=await (null==f.getOffsetParent?void 0:f.getOffsetParent(y)),S=C?C[E]:0;S&&await (null==f.isElement?void 0:f.isElement(C))||(S=a.floating[E]||u.floating[R]);let O=S/2-L[R]/2-1,A=o(x[T?"top":"left"],O),D=o(x[T?"bottom":"right"],O),q=S-L[R]-D,N=S/2-L[R]/2+(P/2-k/2),M=i(A,o(N,q)),W=!g.arrow&&null!=s(l)&&N!==M&&u.reference[R]/2-(N{let o=new Map,i={platform:M,...n},r={...i.platform,_c:o};return w(t,e,{...i,platform:r})};var H=n(14232),V=n(98477),$="undefined"!=typeof document?H.useLayoutEffect:H.useEffect;function F(t,e){let n,o,i;if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!==e.length)return!1;for(o=n;0!=o--;)if(!F(t[o],e[o]))return!1;return!0}if((n=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=n;0!=o--;)if(!({}).hasOwnProperty.call(e,i[o]))return!1;for(o=n;0!=o--;){let n=i[o];if(("_owner"!==n||!t.$$typeof)&&!F(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function z(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function B(t,e){let n=z(t);return Math.round(e*n)/n}function j(t){let e=H.useRef(t);return $(()=>{e.current=t}),e}function U(t){void 0===t&&(t={});let{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:l}={},transform:u=!0,whileElementsMounted:f,open:c}=t,[a,s]=H.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[d,p]=H.useState(o);F(d,o)||p(o);let[h,m]=H.useState(null),[g,y]=H.useState(null),w=H.useCallback(t=>{t!==R.current&&(R.current=t,m(t))},[]),x=H.useCallback(t=>{t!==L.current&&(L.current=t,y(t))},[]),v=r||h,b=l||g,R=H.useRef(null),L=H.useRef(null),T=H.useRef(a),E=null!=f,P=j(f),k=j(i),C=j(c),S=H.useCallback(()=>{if(!R.current||!L.current)return;let t={placement:e,strategy:n,middleware:d};k.current&&(t.platform=k.current),_(R.current,L.current,t).then(t=>{let e={...t,isPositioned:!1!==C.current};O.current&&!F(T.current,e)&&(T.current=e,V.flushSync(()=>{s(e)}))})},[d,e,n,k,C]);$(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,s(t=>({...t,isPositioned:!1})))},[c]);let O=H.useRef(!1);$(()=>(O.current=!0,()=>{O.current=!1}),[]),$(()=>{if(v&&(R.current=v),b&&(L.current=b),v&&b){if(P.current)return P.current(v,b,S);S()}},[v,b,S,P,E]);let A=H.useMemo(()=>({reference:R,floating:L,setReference:w,setFloating:x}),[w,x]),D=H.useMemo(()=>({reference:v,floating:b}),[v,b]),q=H.useMemo(()=>{let t={position:n,left:0,top:0};if(!D.floating)return t;let e=B(D.floating,a.x),o=B(D.floating,a.y);return u?{...t,transform:"translate("+e+"px, "+o+"px)",...z(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:o}},[n,u,D.floating,a.x,a.y]);return H.useMemo(()=>({...a,update:S,refs:A,elements:D,floatingStyles:q}),[a,S,A,D,q])}let Z=t=>({name:"arrow",options:t,fn(e){let{element:n,padding:o}="function"==typeof t?t(e):t;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?W({element:n.current,padding:o}).fn(e):{}:n?W({element:n,padding:o}).fn(e):{}}}),Q=(t,e)=>({...function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;let{x:i,y:r,placement:l,middlewareData:u}=e,f=await v(e,t);return l===(null==(n=u.offset)?void 0:n.placement)&&null!=(o=u.arrow)&&o.alignmentOffset?{}:{x:i+f.x,y:r+f.y,data:{...f,placement:l}}}}}(t),options:[t,e]}),Y=(t,e)=>({...function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:r,placement:l}=e,{mainAxis:u=!0,crossAxis:f=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...p}=c(t,e),m={x:n,y:r},g=await x(e,p),y=h(a(l)),w=d(y),v=m[w],b=m[y];if(u){let t="y"===w?"top":"left",e="y"===w?"bottom":"right",n=v+g[t],r=v-g[e];v=i(n,o(v,r))}if(f){let t="y"===y?"top":"left",e="y"===y?"bottom":"right",n=b+g[t],r=b-g[e];b=i(n,o(b,r))}let R=s.fn({...e,[w]:v,[y]:b});return{...R,data:{x:R.x-n,y:R.y-r,enabled:{[w]:u,[y]:f}}}}}}(t),options:[t,e]}),J=(t,e)=>({...Z(t),options:[t,e]})},84974:(t,e,n)=>{function o(){return"undefined"!=typeof window}function i(t){return u(t)?(t.nodeName||"").toLowerCase():"#document"}function r(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function l(t){var e;return null==(e=(u(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function u(t){return!!o()&&(t instanceof Node||t instanceof r(t).Node)}function f(t){return!!o()&&(t instanceof Element||t instanceof r(t).Element)}function c(t){return!!o()&&(t instanceof HTMLElement||t instanceof r(t).HTMLElement)}function a(t){return!!o()&&"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof r(t).ShadowRoot)}function s(t){let{overflow:e,overflowX:n,overflowY:o,display:i}=w(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function d(t){return["table","td","th"].includes(i(t))}function p(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch(t){return!1}})}function h(t){let e=g(),n=f(t)?w(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 m(t){let e=v(t);for(;c(e)&&!y(e);){if(h(e))return e;if(p(e))break;e=v(e)}return null}function g(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function y(t){return["html","body","#document"].includes(i(t))}function w(t){return r(t).getComputedStyle(t)}function x(t){return f(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function v(t){if("html"===i(t))return t;let e=t.assignedSlot||t.parentNode||a(t)&&t.host||l(t);return a(e)?e.host:e}function b(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}n.d(e,{$4:()=>v,CP:()=>x,L9:()=>w,Lv:()=>d,Ng:()=>a,Tc:()=>g,Tf:()=>p,ZU:()=>s,_m:()=>b,ep:()=>l,eu:()=>y,gJ:()=>m,mq:()=>i,sQ:()=>h,sb:()=>c,v9:()=>function t(e,n,o){var i;void 0===n&&(n=[]),void 0===o&&(o=!0);let l=function t(e){let n=v(e);return y(n)?e.ownerDocument?e.ownerDocument.body:e.body:c(n)&&s(n)?n:t(n)}(e),u=l===(null==(i=e.ownerDocument)?void 0:i.body),f=r(l);if(u){let e=b(f);return n.concat(f,f.visualViewport||[],s(l)?l:[],e&&o?t(e):[])}return n.concat(l,t(l,[],o))},vq:()=>f,zk:()=>r})},93663:(t,e,n)=>{n.d(e,{$u:()=>p,EW:()=>d,F2:()=>s,Go:()=>u,O_:()=>f,RS:()=>i,YE:()=>a,gR:()=>r,nr:()=>l,tZ:()=>c});var o=n(84974);function i(t){let e=t.activeElement;for(;(null==(n=e)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}function r(t,e){if(!t||!e)return!1;let n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&(0,o.Ng)(n)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function l(){return/apple/i.test(navigator.vendor)}function u(t,e){let n=["mouse","pen"];return e||n.push("",void 0),n.includes(t)}function f(t){return"nativeEvent"in t}function c(t){return t.matches("html,body")}function a(t){return(null==t?void 0:t.ownerDocument)||document}function s(t,e){return null!=e&&("composedPath"in t?t.composedPath().includes(e):null!=t.target&&e.contains(t.target))}function d(t){return"composedPath"in t?t.composedPath()[0]:t.target}function p(t){return(0,o.sb)(t)&&t.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}}}]);