OwlCyberSecurity - MANAGER
Edit File: 2034-b6ee9baf8082b7dc.js
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2034],{39763:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(2265),i={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"};let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),l=(e,t)=>{let n=(0,r.forwardRef)((n,l)=>{let{color:a="currentColor",size:f=24,strokeWidth:c=2,absoluteStrokeWidth:u,className:s="",children:d,...p}=n;return(0,r.createElement)("svg",{ref:l,...i,width:f,height:f,stroke:a,strokeWidth:u?24*Number(c)/Number(f):c,className:["lucide","lucide-".concat(o(e)),s].join(" "),...p},[...t.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(d)?d:[d]])});return n.displayName="".concat(e),n}},30401:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},40875:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},71605:function(e,t,n){n.d(t,{B:function(){return s}});var r=n(2265),i=n(73966),o=n(98575),l=n(1119);let a=(0,r.forwardRef)((e,t)=>{let{children:n,...i}=e,o=r.Children.toArray(n),a=o.find(u);if(a){let e=a.props.children,n=o.map(t=>t!==a?t:r.Children.count(e)>1?r.Children.only(null):(0,r.isValidElement)(e)?e.props.children:null);return(0,r.createElement)(f,(0,l.Z)({},i,{ref:t}),(0,r.isValidElement)(e)?(0,r.cloneElement)(e,void 0,n):null)}return(0,r.createElement)(f,(0,l.Z)({},i,{ref:t}),n)});a.displayName="Slot";let f=(0,r.forwardRef)((e,t)=>{let{children:n,...i}=e;return(0,r.isValidElement)(n)?(0,r.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props),ref:t?(0,o.F)(t,n.ref):n.ref}):r.Children.count(n)>1?r.Children.only(null):null});f.displayName="SlotClone";let c=({children:e})=>(0,r.createElement)(r.Fragment,null,e);function u(e){return(0,r.isValidElement)(e)&&e.type===c}function s(e){let t=e+"CollectionProvider",[n,l]=(0,i.b)(t),[f,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=e+"CollectionSlot",s=r.forwardRef((e,t)=>{let{scope:n,children:i}=e,l=c(u,n),f=(0,o.e)(t,l.collectionRef);return r.createElement(a,{ref:f},i)}),d=e+"CollectionItemSlot",p="data-radix-collection-item";return[{Provider:e=>{let{scope:t,children:n}=e,i=r.useRef(null),o=r.useRef(new Map).current;return r.createElement(f,{scope:t,itemMap:o,collectionRef:i},n)},Slot:s,ItemSlot:r.forwardRef((e,t)=>{let{scope:n,children:i,...l}=e,f=r.useRef(null),u=(0,o.e)(t,f),s=c(d,n);return r.useEffect(()=>(s.itemMap.set(f,{ref:f,...l}),()=>void s.itemMap.delete(f))),r.createElement(a,{[p]:"",ref:u},i)})},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},l]}},29114:function(e,t,n){n.d(t,{_9:function(){return o},gm:function(){return l}});var r=n(2265);let i=(0,r.createContext)(void 0),o=e=>{let{dir:t,children:n}=e;return(0,r.createElement)(i.Provider,{value:t},n)};function l(e){let t=(0,r.useContext)(i);return e||t||"ltr"}},26008:function(e,t,n){n.d(t,{ee:function(){return eM},Eh:function(){return eF},VY:function(){return eD},fC:function(){return eW},D7:function(){return ex}});var r=n(1119),i=n(2265);let o=["top","right","bottom","left"],l=Math.min,a=Math.max,f=Math.round,c=Math.floor,u=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function p(e,t){return"function"==typeof e?e(t):e}function h(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function y(e){return"y"===e?"height":"width"}function w(e){return["top","bottom"].includes(h(e))?"y":"x"}function v(e){return e.replace(/start|end/g,e=>d[e])}function x(e){return e.replace(/left|right|bottom|top/g,e=>s[e])}function b(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function R(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function E(e,t,n){let r,{reference:i,floating:o}=e,l=w(t),a=g(w(t)),f=y(a),c=h(t),u="y"===l,s=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,p=i[f]/2-o[f]/2;switch(c){case"top":r={x:s,y:i.y-o.height};break;case"bottom":r={x:s,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:d};break;case"left":r={x:i.x-o.width,y:d};break;default:r={x:i.x,y:i.y}}switch(m(t)){case"start":r[a]-=p*(n&&u?-1:1);break;case"end":r[a]+=p*(n&&u?-1:1)}return r}let A=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)),c=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:s}=E(c,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:v}=await m({x:u,y:s,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});if(u=null!=g?g:u,s=null!=y?y:s,p={...p,[o]:{...p[o],...w}},v&&h<=50){h++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(c=!0===v.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):v.rects),{x:u,y:s}=E(c,d,f)),n=-1;continue}}return{x:u,y:s,placement:d,strategy:i,middlewareData:p}};async function C(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:a,strategy:f}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:s="floating",altBoundary:d=!1,padding:h=0}=p(t,e),m=b(h),g=a[d?"floating"===s?"reference":"floating":s],y=R(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:c,rootBoundary:u,strategy:f})),w="floating"===s?{...l.floating,x:r,y:i}:l.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),x=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},E=R(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:w,offsetParent:v,strategy:f}):w);return{top:(y.top-E.top+m.top)/x.y,bottom:(E.bottom-y.bottom+m.bottom)/x.y,left:(y.left-E.left+m.left)/x.x,right:(E.right-y.right+m.right)/x.x}}function S(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function P(e){return o.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=h(n),a=m(n),f="y"===w(n),c=["left","top"].includes(l)?-1:1,u=o&&f?-1:1,s=p(t,e),{mainAxis:d,crossAxis:g,alignmentAxis:y}="number"==typeof s?{mainAxis:s,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...s};return a&&"number"==typeof y&&(g="end"===a?-1*y:y),f?{x:g*u,y:d*c}:{x:d*c,y:g*u}}function O(e){return H(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function T(e){var t;return null==(t=(H(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function H(e){return e instanceof Node||e instanceof k(e).Node}function W(e){return e instanceof Element||e instanceof k(e).Element}function M(e){return e instanceof HTMLElement||e instanceof k(e).HTMLElement}function D(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof k(e).ShadowRoot)}function F(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=N(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function V(e){let t=$(),n=N(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"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function _(e){return["html","body","#document"].includes(O(e))}function N(e){return k(e).getComputedStyle(e)}function z(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function B(e){if("html"===O(e))return e;let t=e.assignedSlot||e.parentNode||D(e)&&e.host||T(e);return D(t)?t.host:t}function Z(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=B(t);return _(n)?t.ownerDocument?t.ownerDocument.body:t.body:M(n)&&F(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=k(i);return o?t.concat(l,l.visualViewport||[],F(i)?i:[],l.frameElement&&n?Z(l.frameElement):[]):t.concat(i,Z(i,[],n))}function j(e){let t=N(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=M(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,a=f(n)!==o||f(r)!==l;return a&&(n=o,r=l),{width:n,height:r,$:a}}function I(e){return W(e)?e:e.contextElement}function Y(e){let t=I(e);if(!M(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=j(t),l=(o?f(n.width):n.width)/r,a=(o?f(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let X=u(0);function q(e){let t=k(e);return $()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:X}function G(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=I(e),a=u(1);t&&(r?W(r)&&(a=Y(r)):a=Y(e));let f=(void 0===(i=n)&&(i=!1),r&&(!i||r===k(l))&&i)?q(l):u(0),c=(o.left+f.x)/a.x,s=(o.top+f.y)/a.y,d=o.width/a.x,p=o.height/a.y;if(l){let e=k(l),t=r&&W(r)?k(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=Y(n),t=n.getBoundingClientRect(),r=N(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,d*=e.x,p*=e.y,c+=i,s+=o,n=k(n).frameElement}}return R({width:d,height:p,x:c,y:s})}function J(e){return G(T(e)).left+z(e).scrollLeft}function K(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=k(e),r=T(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)r=function(e){let t=T(e),n=z(e),r=e.ownerDocument.body,i=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+J(e),f=-n.scrollTop;return"rtl"===N(r).direction&&(l+=a(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:l,y:f}}(T(e));else if(W(t))r=function(e,t){let n=G(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=M(e)?Y(e):u(1),l=e.clientWidth*o.x;return{width:l,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{let n=q(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return R(r)}function Q(e,t){return M(e)&&"fixed"!==N(e).position?t?t(e):e.offsetParent:null}function U(e,t){let n=k(e);if(!M(e))return n;let r=Q(e,t);for(;r&&["table","td","th"].includes(O(r))&&"static"===N(r).position;)r=Q(r,t);return r&&("html"===O(r)||"body"===O(r)&&"static"===N(r).position&&!V(r))?n:r||function(e){let t=B(e);for(;M(t)&&!_(t);){if(V(t))return t;t=B(t)}return null}(e)||n}let ee=async function(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||U,o=this.getDimensions;return{reference:function(e,t,n){let r=M(t),i=T(t),o="fixed"===n,l=G(e,!0,o,t),a={scrollLeft:0,scrollTop:0},f=u(0);if(r||!r&&!o){if(("body"!==O(t)||F(i))&&(a=z(t)),r){let e=G(t,!0,o,t);f.x=e.x+t.clientLeft,f.y=e.y+t.clientTop}else i&&(f.x=J(i))}return{x:l.left+a.scrollLeft-f.x,y:l.top+a.scrollTop-f.y,width:l.width,height:l.height}}(t,await i(n),r),floating:{x:0,y:0,...await o(n)}}},et={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=M(n),o=T(n);if(n===o)return t;let l={scrollLeft:0,scrollTop:0},a=u(1),f=u(0);if((i||!i&&"fixed"!==r)&&(("body"!==O(n)||F(o))&&(l=z(n)),M(n))){let e=G(n);a=Y(n),f.x=e.x+n.clientLeft,f.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-l.scrollLeft*a.x+f.x,y:t.y*a.y-l.scrollTop*a.y+f.y}},getDocumentElement:T,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=Z(e,[],!1).filter(e=>W(e)&&"body"!==O(e)),i=null,o="fixed"===N(e).position,l=o?B(e):e;for(;W(l)&&!_(l);){let t=N(l),n=V(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||!W(r)||_(r))&&("fixed"===N(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),r],f=o[0],c=o.reduce((e,n)=>{let r=K(t,n,i);return e.top=a(r.top,e.top),e.right=l(r.right,e.right),e.bottom=l(r.bottom,e.bottom),e.left=a(r.left,e.left),e},K(t,f,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:U,getElementRects:ee,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=j(e);return{width:t,height:n}},getScale:Y,isElement:W,isRTL:function(e){return"rtl"===N(e).direction}},en=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:f,elements:c,middlewareData:u}=t,{element:s,padding:d=0}=p(e,t)||{};if(null==s)return{};let h=b(d),v={x:n,y:r},x=g(w(i)),R=y(x),E=await f.getDimensions(s),A="y"===x,C=A?"clientHeight":"clientWidth",S=o.reference[R]+o.reference[x]-v[x]-o.floating[R],P=v[x]-o.reference[x],L=await (null==f.getOffsetParent?void 0:f.getOffsetParent(s)),O=L?L[C]:0;O&&await (null==f.isElement?void 0:f.isElement(L))||(O=c.floating[C]||o.floating[R]);let k=O/2-E[R]/2-1,T=l(h[A?"top":"left"],k),H=l(h[A?"bottom":"right"],k),W=O-E[R]-H,M=O/2-E[R]/2+(S/2-P/2),D=a(T,l(M,W)),F=!u.arrow&&null!=m(i)&&M!=D&&o.reference[R]/2-(M<T?T:H)-E[R]/2<0,V=F?M<T?M-T:M-W:0;return{[x]:v[x]+V,data:{[x]:D,centerOffset:M-D-V,...F&&{alignmentOffset:V}},reset:F}}}),er=(e,t,n)=>{let r=new Map,i={platform:et,...n},o={...i.platform,_c:r};return A(e,t,{...i,platform:o})};var ei=n(54887);let eo=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;if(n&&({}).hasOwnProperty.call(n,"current")){if(null!=n.current)return en({element:n.current,padding:r}).fn(t)}else if(n)return en({element:n,padding:r}).fn(t);return{}}});var el="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function ea(e,t){let n,r,i;if(e===t)return!0;if(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(!ea(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)&&!ea(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ef(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ec(e,t){let n=ef(e);return Math.round(t*n)/n}function eu(e){let t=i.useRef(e);return el(()=>{t.current=e}),t}var es=n(82912);let ed=(0,i.forwardRef)((e,t)=>{let{children:n,width:o=10,height:l=5,...a}=e;return(0,i.createElement)(es.WV.svg,(0,r.Z)({},a,{ref:t,width:o,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,i.createElement)("polygon",{points:"0,0 30,0 15,10"}))});var ep=n(98575),eh=n(73966),em=n(26606),eg=n(61188),ey=n(90420);let ew="Popper",[ev,ex]=(0,eh.b)(ew),[eb,eR]=ev(ew),eE=(0,i.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:o,...l}=e,a=eR("PopperAnchor",n),f=(0,i.useRef)(null),c=(0,ep.e)(t,f);return(0,i.useEffect)(()=>{a.onAnchorChange((null==o?void 0:o.current)||f.current)}),o?null:(0,i.createElement)(es.WV.div,(0,r.Z)({},l,{ref:c}))}),eA="PopperContent",[eC,eS]=ev(eA),eP=(0,i.forwardRef)((e,t)=>{var n,o,f,u,s,d,b,R,E,A,O,k,H,W;let{__scopePopper:M,side:D="bottom",sideOffset:F=0,align:V="center",alignOffset:$=0,arrowPadding:_=0,avoidCollisions:N=!0,collisionBoundary:z=[],collisionPadding:B=0,sticky:j="partial",hideWhenDetached:Y=!1,updatePositionStrategy:X="optimized",onPlaced:q,...J}=e,K=eR(eA,M),[Q,U]=(0,i.useState)(null),ee=(0,ep.e)(t,e=>U(e)),[et,en]=(0,i.useState)(null),ed=(0,ey.t)(et),eh=null!==(n=null==ed?void 0:ed.width)&&void 0!==n?n:0,ew=null!==(o=null==ed?void 0:ed.height)&&void 0!==o?o:0,ev="number"==typeof B?B:{top:0,right:0,bottom:0,left:0,...B},ex=Array.isArray(z)?z:[z],eb=ex.length>0,eE={padding:ev,boundary:ex.filter(ek),altBoundary:eb},{refs:eS,floatingStyles:eP,placement:eL,isPositioned:eO,middlewareData:eW}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:a}={},transform:f=!0,whileElementsMounted:c,open:u}=e,[s,d]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=i.useState(r);ea(p,r)||h(r);let[m,g]=i.useState(null),[y,w]=i.useState(null),v=i.useCallback(e=>{e!=E.current&&(E.current=e,g(e))},[g]),x=i.useCallback(e=>{e!==A.current&&(A.current=e,w(e))},[w]),b=l||m,R=a||y,E=i.useRef(null),A=i.useRef(null),C=i.useRef(s),S=eu(c),P=eu(o),L=i.useCallback(()=>{if(!E.current||!A.current)return;let e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),er(E.current,A.current,e).then(e=>{let t={...e,isPositioned:!0};O.current&&!ea(C.current,t)&&(C.current=t,ei.flushSync(()=>{d(t)}))})},[p,t,n,P]);el(()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let O=i.useRef(!1);el(()=>(O.current=!0,()=>{O.current=!1}),[]),el(()=>{if(b&&(E.current=b),R&&(A.current=R),b&&R){if(S.current)return S.current(b,R,L);L()}},[b,R,L,S]);let k=i.useMemo(()=>({reference:E,floating:A,setReference:v,setFloating:x}),[v,x]),T=i.useMemo(()=>({reference:b,floating:R}),[b,R]),H=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!T.floating)return e;let t=ec(T.floating,s.x),r=ec(T.floating,s.y);return f?{...e,transform:"translate("+t+"px, "+r+"px)",...ef(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,f,T.floating,s.x,s.y]);return i.useMemo(()=>({...s,update:L,refs:k,elements:T,floatingStyles:H}),[s,L,k,T,H])}({strategy:"fixed",placement:D+("center"!==V?"-"+V:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:f=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=I(e),h=o||f?[...p?Z(p):[],...Z(t)]:[];h.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),f&&e.addEventListener("resize",n)});let m=p&&s?function(e,t){let n,r=null,i=T(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}return!function f(u,s){void 0===u&&(u=!1),void 0===s&&(s=1),o();let{left:d,top:p,width:h,height:m}=e.getBoundingClientRect();if(u||t(),!h||!m)return;let g=c(p),y=c(i.clientWidth-(d+h)),w={rootMargin:-g+"px "+-y+"px "+-c(i.clientHeight-(p+m))+"px "+-c(d)+"px",threshold:a(0,l(1,s))||1},v=!0;function x(e){let t=e[0].intersectionRatio;if(t!==s){if(!v)return f();t?f(!1,t):n=setTimeout(()=>{f(!1,1e-7)},100)}v=!1}try{r=new IntersectionObserver(x,{...w,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(x,w)}r.observe(e)}(!0),o}(p,n):null,g=-1,y=null;u&&(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?G(e):null;return d&&function t(){let r=G(e);w&&(r.x!==w.x||r.y!==w.y||r.width!==w.width||r.height!==w.height)&&n(),w=r,i=requestAnimationFrame(t)}(),n(),()=>{h.forEach(e=>{o&&e.removeEventListener("scroll",n),f&&e.removeEventListener("resize",n)}),m&&m(),y&&y.disconnect(),y=null,d&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===X}),elements:{reference:K.anchor},middleware:[{name:"offset",options:E={mainAxis:F+ew,alignmentAxis:$},async fn(e){var t,n;let{x:r,y:i,placement:o,middlewareData:l}=e,a=await L(e,E);return o===(null==(t=l.offset)?void 0:t.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:o}}}},N&&{name:"shift",options:O={mainAxis:!0,crossAxis:!1,limiter:"partial"===j?(void 0===A&&(A={}),{options:A,fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:o}=e,{offset:l=0,mainAxis:a=!0,crossAxis:f=!0}=p(A,e),c={x:t,y:n},u=w(r),s=g(u),d=c[s],m=c[u],y=p(l,e),v="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){let e="y"===s?"height":"width",t=i.reference[s]-i.floating[e]+v.mainAxis,n=i.reference[s]+i.reference[e]-v.mainAxis;d<t?d=t:d>n&&(d=n)}if(f){var x,b;let e="y"===s?"width":"height",t=["top","left"].includes(h(r)),n=i.reference[u]-i.floating[e]+(t&&(null==(x=o.offset)?void 0:x[u])||0)+(t?0:v.crossAxis),l=i.reference[u]+i.reference[e]+(t?0:(null==(b=o.offset)?void 0:b[u])||0)-(t?v.crossAxis:0);m<n?m=n:m>l&&(m=l)}return{[s]:d,[u]:m}}}):void 0,...eE},async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:f={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=p(O,e),u={x:t,y:n},s=await C(e,c),d=w(h(r)),m=g(d),y=u[m],v=u[d];if(i){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=y+s[e],r=y-s[t];y=a(n,l(y,r))}if(o){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=v+s[e],r=v-s[t];v=a(n,l(v,r))}let x=f.fn({...e,[m]:y,[d]:v});return{...x,data:{x:x.x-t,y:x.y-n}}}},N&&{name:"flip",options:k={...eE},async fn(e){var t,n,r,i,o;let{placement:l,middlewareData:a,rects:f,initialPlacement:c,platform:u,elements:s}=e,{mainAxis:d=!0,crossAxis:b=!0,fallbackPlacements:R,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:S=!0,...P}=p(k,e);if(null!=(t=a.arrow)&&t.alignmentOffset)return{};let L=h(l),O=h(c)===c,T=await (null==u.isRTL?void 0:u.isRTL(s.floating)),H=R||(O||!S?[x(c)]:function(e){let t=x(e);return[v(e),t,v(t)]}(c));R||"none"===A||H.push(...function(e,t,n,r){let i=m(e),o=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[]}}(h(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(v)))),o}(c,S,A,T));let W=[c,...H],M=await C(e,P),D=[],F=(null==(n=a.flip)?void 0:n.overflows)||[];if(d&&D.push(M[L]),b){let e=function(e,t,n){void 0===n&&(n=!1);let r=m(e),i=g(w(e)),o=y(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=x(l)),[l,x(l)]}(l,f,T);D.push(M[e[0]],M[e[1]])}if(F=[...F,{placement:l,overflows:D}],!D.every(e=>e<=0)){let e=((null==(r=a.flip)?void 0:r.index)||0)+1,t=W[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(i=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(E){case"bestFit":{let e=null==(o=F.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=c}if(l!==n)return{reset:{placement:n}}}return{}}},{name:"size",options:H={...eE,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;let{placement:r,rects:i,platform:o,elements:f}=e,{apply:c=()=>{},...u}=p(H,e),s=await C(e,u),d=h(r),g=m(r),y="y"===w(r),{width:v,height:x}=i.floating;"top"===d||"bottom"===d?(t=d,n=g===(await (null==o.isRTL?void 0:o.isRTL(f.floating))?"start":"end")?"left":"right"):(n=d,t="end"===g?"top":"bottom");let b=x-s[t],R=v-s[n],E=!e.middlewareData.shift,A=b,S=R;if(y){let e=v-s.left-s.right;S=g||E?l(R,e):e}else{let e=x-s.top-s.bottom;A=g||E?l(b,e):e}if(E&&!g){let e=a(s.left,0),t=a(s.right,0),n=a(s.top,0),r=a(s.bottom,0);y?S=v-2*(0!==e||0!==t?e+t:a(s.left,s.right)):A=x-2*(0!==n||0!==r?n+r:a(s.top,s.bottom))}await c({...e,availableWidth:S,availableHeight:A});let P=await o.getDimensions(f.floating);return v!==P.width||x!==P.height?{reset:{rects:!0}}:{}}},et&&eo({element:et,padding:_}),eT({arrowWidth:eh,arrowHeight:ew}),Y&&{name:"hide",options:W={strategy:"referenceHidden",...eE},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...r}=p(W,e);switch(n){case"referenceHidden":{let n=S(await C(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:P(n)}}}case"escaped":{let n=S(await C(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:P(n)}}}default:return{}}}}]}),[eM,eD]=eH(eL),eF=(0,em.W)(q);(0,eg.b)(()=>{eO&&(null==eF||eF())},[eO,eF]);let eV=null===(f=eW.arrow)||void 0===f?void 0:f.x,e$=null===(u=eW.arrow)||void 0===u?void 0:u.y,e_=(null===(s=eW.arrow)||void 0===s?void 0:s.centerOffset)!==0,[eN,ez]=(0,i.useState)();return(0,eg.b)(()=>{Q&&ez(window.getComputedStyle(Q).zIndex)},[Q]),(0,i.createElement)("div",{ref:eS.setFloating,"data-radix-popper-content-wrapper":"",style:{...eP,transform:eO?eP.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eN,"--radix-popper-transform-origin":[null===(d=eW.transformOrigin)||void 0===d?void 0:d.x,null===(b=eW.transformOrigin)||void 0===b?void 0:b.y].join(" ")},dir:e.dir},(0,i.createElement)(eC,{scope:M,placedSide:eM,onArrowChange:en,arrowX:eV,arrowY:e$,shouldHideArrow:e_},(0,i.createElement)(es.WV.div,(0,r.Z)({"data-side":eM,"data-align":eD},J,{ref:ee,style:{...J.style,animation:eO?void 0:"none",opacity:null!==(R=eW.hide)&&void 0!==R&&R.referenceHidden?0:void 0}}))))}),eL={top:"bottom",right:"left",bottom:"top",left:"right"},eO=(0,i.forwardRef)(function(e,t){let{__scopePopper:n,...o}=e,l=eS("PopperArrow",n),a=eL[l.placedSide];return(0,i.createElement)("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0}},(0,i.createElement)(ed,(0,r.Z)({},o,{ref:t,style:{...o.style,display:"block"}})))});function ek(e){return null!==e}let eT=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,l;let{placement:a,rects:f,middlewareData:c}=t,u=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,s=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[p,h]=eH(a),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(r=null===(i=c.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+s/2,y=(null!==(o=null===(l=c.arrow)||void 0===l?void 0:l.y)&&void 0!==o?o:0)+d/2,w="",v="";return"bottom"===p?(w=u?m:`${g}px`,v=`${-d}px`):"top"===p?(w=u?m:`${g}px`,v=`${f.floating.height+d}px`):"right"===p?(w=`${-d}px`,v=u?m:`${y}px`):"left"===p&&(w=`${f.floating.width+d}px`,v=u?m:`${y}px`),{data:{x:w,y:v}}}});function eH(e){let[t,n="center"]=e.split("-");return[t,n]}let eW=e=>{let{__scopePopper:t,children:n}=e,[r,o]=(0,i.useState)(null);return(0,i.createElement)(eb,{scope:t,anchor:r,onAnchorChange:o},n)},eM=eE,eD=eP,eF=eO},90420:function(e,t,n){n.d(t,{t:function(){return o}});var r=n(2265),i=n(61188);function o(e){let[t,n]=(0,r.useState)(void 0);return(0,i.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}}}]);