1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4736],{5146:function(e,t,n){n.d(t,{e:function(){return eD}});var r,o=n(2265),l=n(64508);let i={},u=0,a=!1,s=null,c=null;"undefined"!=typeof window&&window.document&&window.document.createElement;let d=new Map;var f=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t)){var l=t.length;for(n=0;n<l;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r)}return o}(e))&&(r&&(r+=" "),r+=t);return r};function p(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=function(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}(n,o):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof o?t[e]=f(n,o):"id"===e&&n&&o?t.id=function(e,t){if(e===t)return e;let n=d.get(e);if(n)return n.forEach(e=>e(t)),t;let r=d.get(t);return r?(r.forEach(t=>t(e)),e):t}(n,o):t[e]=void 0!==o?o:n}}return t}var v=n(45246),m=n(11323),g=n(40641),h=n(82457),w=n(62823),b=n(94508);function E(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function y(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function T(e){let t=null;return()=>(null==t&&(t=e()),t)}let P=T(function(){return y(/^Mac/i)}),x=T(function(){return y(/^iPhone/i)}),C=T(function(){return y(/^iPad/i)||P()&&navigator.maxTouchPoints>1}),L=T(function(){return x()||C()});T(function(){return P()||L()});
1let O=T(function(){return E(/AppleWebKit/i)&&!M()}),M=T(function(){return E(/Chrome/i)});T(function(){return E(/Android/i)}),T(function(){return E(/Firefox/i)});var R=n(1433);let D={top:"top",bottom:"top",left:"left",right:"left"},k={top:"bottom",bottom:"top",left:"right",right:"left"},B={top:"left",left:"top"},F={top:"height",left:"width"},H={width:"totalWidth",height:"totalHeight"},N={},W="undefined"!=typeof document?window.visualViewport:null;function z(e){var t,n,r,o,l;let i=0,u=0,a=0,s=0,c=0,d=0,f={},p=(null!==(t=null==W?void 0:W.scale)&&void 0!==t?t:1)>1;if("BODY"===e.tagName){let t=document.documentElement;a=t.clientWidth,s=t.clientHeight,i=null!==(n=null==W?void 0:W.width)&&void 0!==n?n:a,u=null!==(r=null==W?void 0:W.height)&&void 0!==r?r:s,f.top=t.scrollTop||e.scrollTop,f.left=t.scrollLeft||e.scrollLeft,W&&(c=W.offsetTop,d=W.offsetLeft)}else({width:i,height:u,top:c,left:d}=G(e)),f.top=e.scrollTop,f.left=e.scrollLeft,a=i,s=u;return O()&&("BODY"===e.tagName||"HTML"===e.tagName)&&p&&(f.top=0,f.left=0,c=null!==(o=null==W?void 0:W.pageTop)&&void 0!==o?o:0,d=null!==(l=null==W?void 0:W.pageLeft)&&void 0!==l?l:0),{width:i,height:u,totalWidth:a,totalHeight:s,scroll:f,top:c,left:d}}function S(e,t,n,r,o,l,i){var u;let a=null!==(u=o.scroll[e])&&void 0!==u?u:0,s=r[F[e]],c=r.scroll[D[e]]+l,d=s+r.scroll[D[e]]-l,f=t-a+i[e]-r[D[e]],p=t-a+n+i[e]-r[D[e]];return f<c?c-f:p>d?Math.max(d-p,c-f):0}function A(e){if(N[e])return N[e];let[t,n]=e.split(" "),r=D[t]||"right",o=B[r];D[n]||(n="center");let l=F[r],i=F[o];return N[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:l,crossSize:i},N[e]}function I(e,t,n,r,o,l,i,u,a,s){var c,d,f,p,v;let{placement:m,crossPlacement:g,axis:h,crossAxis:w,size:b,crossSize:E}=r,y={};y[w]=null!==(c=e[w])&&void 0!==c?c:0,"center"===g?y[w]+=((null!==(d=e[E])&&void 0!==d?d:0)-(null!==(f=n[E])&&void 0!==f?f:0))/2:g!==w&&(y[w]+=(null!==(p=e[E])&&void 0!==p?p:0)-(null!==(v=n[E])&&void 0!==v?v:0)),y[w]+=l;let T=e[w]-n[E]+a+s,P=e[w]+e[E]-a-s;if(y[w]=(0,R.uZ)(y[w],T,P),m===h){let n=u?i[b]:t[H[b]];y[k[h]]=Math.floor(n-e[h]+o)}else y[h]=Math.floor(e[h]+e[b]+o);return y}function j(e,t,n,r,o,l){var i,u,a;let{placement:s,axis:c,size:d}=l;return s===c?Math.max(0,n[c]-e[c]-(null!==(i=e.scroll[c])&&void 0!==i?i:0)+t[c]-(null!==(u=r[c])&&void 0!==u?u:0)-r[k[c]]-o):Math.max(0,e[d]+e[c]+e.scroll[c]-t[c]-n[c]-n[d]-(null!==(a=r[c])&&void 0!==a?a:0)-r[k[c]]-o)}function G(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:l,scrollLeft:i,clientTop:u,clientLeft:a}=document.documentElement;return{top:t+l-u,left:n+i-a,width:r,height:o}}function K(e,t){let n,r=window.getComputedStyle(e);if("fixed"===r.position){let{top:t,left:r,width:o,height:l}=e.getBoundingClientRect();n={top:t,left:r,width:o,height:l}}else{n=G(e);let r=G(t),o=window.getComputedStyle(t);r.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,r.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=r.top,n.left-=r.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function Z(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}let _=new WeakMap,V="undefined"!=typeof document?o.useLayoutEffect:()=>{},Y=null!==(r=o.useInsertionEffect)&&void 0!==r?r:V;function U(e){let t=(0,o.useRef)(null);return Y(()=>{t.current=e},[e]),(0,o.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}function X(e){let{ref:t,box:n,onResize:r}=e,l=U(r);(0,o.useEffect)(()=>{let e=null==t?void 0:t.current;if(e){if(!(void 0!==window.ResizeObserver))return window.addEventListener("resize",l,!1),()=>{window.removeEventListener("resize",l,!1)};{let t=new window.ResizeObserver(e=>{e.length&&l()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}}},[t,n])}var $=n(25311);let J="undefined"!=typeof document?window.visualViewport:null;var q=n(58127);let Q=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document};function ee(e,t){if(e.button>0)return!1;if(e.target){let t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}function et(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}var en=n(90952);let er=(e=document)=>{var t;if(!(0,en.Wr)())return e.activeElement;let n=e.activeElement;for(;n&&("shadowRoot"in n)&&(null===(t=n.shadowRoot)||void 0===t?void 0:t.activeElement);)n=n.shadowRoot.activeElement;return n},eo=[];var el=n(2646),ei=n(72243),eu=n(26157),ea=n(2357),es=n(97765),ec=n(46763),ed=n(20427),ef=n(88160),ep=n(455),ev=n(41681),em=n(54887),eg=n(87365);let eh=o.createContext(null);function ew(e){let{children:t}=e,n=(0,o.useContext)(eh),[r,l]=(0,o.useState)(0),i=(0,o.useMemo)(()=>({parent:n,modalCount:r,addModal(){l(e=>e+1),n&&n.addModal()},removeModal(){l(e=>e-1),n&&n.removeModal()}}),[n,r]);return o.createElement(eh.Provider,{value:i},t)}function eb(e){let t;let{modalProviderProps:n}={modalProviderProps:{"aria-hidden":!!(t=(0,o.useContext)(eh))&&t.modalCount>0||void 0}};return o.createElement("div",{"data-overlay-container":!0,...e,...n})}function eE(e){return o.createElement(ew,null,o.createElement(eb,e))}
1function ey(e){let t=(0,eg.Av)(),{portalContainer:n=t?null:document.body,...r}=e;if(o.useEffect(()=>{if(null==n?void 0:n.closest("[data-overlay-container]"))throw Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let l=o.createElement(eE,r);return em.createPortal(l,n)}var eT=n(50278),eP=n(9330),ex=n(53458),eC=n(1701),eL=n(27962),eO=n(57437),eM=()=>n.e(6796).then(n.bind(n,66796)).then(e=>e.default),eR=(0,ei.Gp)((e,t)=>{let n;let{Component:r,children:d,content:f,isOpen:E,portalContainer:y,placement:T,disableAnimation:P,motionProps:x,getTriggerProps:C,getTooltipProps:L,getTooltipContentProps:O}=function(e){var t,n;let r=(0,el.w)(),[d,f]=(0,ei.oe)(e,eu.v.variantKeys),{ref:E,as:y,isOpen:T,content:P,children:x,defaultOpen:C,onOpenChange:L,isDisabled:O,trigger:M,shouldFlip:B=!0,containerPadding:F=12,placement:N="top",delay:W=0,closeDelay:Y=500,showArrow:em=!1,offset:eg=7,crossOffset:eh=0,isDismissable:ew,shouldCloseOnBlur:eb=!0,portalContainer:eE,isKeyboardDismissDisabled:ey=!1,updatePositionDeps:eT=[],shouldCloseOnInteractOutside:eP,className:ex,onClose:eC,motionProps:eL,classNames:eO,...eM}=d,eR=null!=(n=null!=(t=null==e?void 0:e.disableAnimation)?t:null==r?void 0:r.disableAnimation)&&n,eD=function(e={}){let{delay:t=1500,closeDelay:n=500}=e,{isOpen:r,open:d,close:f}=(0,l.d)(e),p=(0,o.useMemo)(()=>`${++u}`,[]),v=(0,o.useRef)(null),m=(0,o.useRef)(f),g=()=>{i[p]=b},h=()=>{for(let e in i)e!==p&&(i[e](!0),delete i[e])},w=()=>{v.current&&clearTimeout(v.current),v.current=null,h(),g(),a=!0,d(),s&&(clearTimeout(s),s=null),c&&(clearTimeout(c),c=null)},b=e=>{e||n<=0?(v.current&&clearTimeout(v.current),v.current=null,m.current()):v.current||(v.current=setTimeout(()=>{v.current=null,m.current()},n)),s&&(clearTimeout(s),s=null),a&&(c&&clearTimeout(c),c=setTimeout(()=>{delete i[p],c=null,a=!1},Math.max(500,n)))},E=()=>{h(),g(),r||s||a?r||w():s=setTimeout(()=>{s=null,a=!0,w()},t)};return(0,o.useEffect)(()=>{m.current=f},[f]),(0,o.useEffect)(()=>()=>{v.current&&clearTimeout(v.current),i[p]&&delete i[p]},[p]),{isOpen:r,open:e=>{e||!(t>0)||v.current?w():E()},close:b}}({delay:W,closeDelay:Y,isDisabled:O,defaultOpen:C,isOpen:T,onOpenChange:e=>{null==L||L(e),e||null==eC||eC()}}),ek=(0,o.useRef)(null),eB=(0,o.useRef)(null),eF=(0,o.useId)(),eH=eD.isOpen&&!O;(0,o.useImperativeHandle)(E,()=>(0,ef.fg)(eB));let{triggerProps:eN,tooltipProps:eW}=function(e,t,n){let{isDisabled:r,trigger:l}=e,i=(0,g.Me)(),u=(0,o.useRef)(!1),a=(0,o.useRef)(!1),s=()=>{(u.current||a.current)&&t.open(a.current)},c=e=>{u.current||a.current||t.close(e)};(0,o.useEffect)(()=>{let e=e=>{n&&n.current&&"Escape"===e.key&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}},[n,t]);let d=()=>{a.current=!1,u.current=!1,c(!0)},{hoverProps:f}=(0,m.X)({isDisabled:r,onHoverStart:()=>{"focus"!==l&&("pointer"===(0,v.Jz)()?u.current=!0:u.current=!1,s())},onHoverEnd:()=>{"focus"!==l&&(a.current=!1,u.current=!1,c())}}),{focusableProps:p}=(0,w.kc)({isDisabled:r,onFocus:()=>{(0,v.E)()&&(a.current=!0,s())},onBlur:()=>{a.current=!1,u.current=!1,c(!0)}},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...(0,h.d)(p,f,{onPointerDown:d,onKeyDown:d})},tooltipProps:{id:i}}}({isDisabled:O,trigger:M},eD,ek),{tooltipProps:ez}=function(e,t){let n=(0,b.z)(e,{labelable:!0}),{hoverProps:r}=(0,m.X)({onHoverStart:()=>null==t?void 0:t.open(!0),onHoverEnd:()=>null==t?void 0:t.close()});return{tooltipProps:(0,h.d)(n,r,{role:"tooltip"})}}({isOpen:eH,...p(d,eW)},eD),{overlayProps:eS,placement:eA,updatePosition:eI}=function(e){var t,n,r;let{direction:l}=(0,$.j)(),{arrowSize:i=0,targetRef:u,overlayRef:a,scrollRef:s=a,placement:c="bottom",containerPadding:d=12,shouldFlip:f=!0,boundaryElement:p="undefined"!=typeof document?document.body:null,offset:v=0,crossOffset:m=0,shouldUpdatePosition:g=!0,isOpen:h=!0,onClose:w,maxHeight:b,arrowBoundaryOffset:E=0}=e,[y,T]=(0,o.useState)(null),P=[g,c,a.current,u.current,s.current,d,f,p,v,m,h,l,b,E,i],x=(0,o.useRef)(null==J?void 0:J.scale);(0,o.useEffect)(()=>{h&&(x.current=null==J?void 0:J.scale)},[h]);let C=(0,o.useCallback)(()=>{var e,t,n,r,o;
1if(!1===g||!h||!a.current||!u.current||!p||(null==J?void 0:J.scale)!==x.current)return;let w=null;if(s.current&&s.current.contains(document.activeElement)){let r=null===(e=document.activeElement)||void 0===e?void 0:e.getBoundingClientRect(),o=s.current.getBoundingClientRect();(w={type:"top",offset:(null!==(t=null==r?void 0:r.top)&&void 0!==t?t:0)-o.top}).offset>o.height/2&&(w.type="bottom",w.offset=(null!==(n=null==r?void 0:r.bottom)&&void 0!==n?n:0)-o.bottom)}let y=a.current;!b&&a.current&&(y.style.top="0px",y.style.bottom="",y.style.maxHeight=(null!==(o=null===(r=window.visualViewport)||void 0===r?void 0:r.height)&&void 0!==o?o:window.innerHeight)+"px");let P=function(e){var t,n,r,o;let l;let{placement:i,targetNode:u,overlayNode:a,scrollNode:s,padding:c,shouldFlip:d,boundaryElement:f,offset:p,crossOffset:v,maxHeight:m,arrowSize:g=0,arrowBoundaryOffset:h=0}=e,w=a instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!Z(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!Z(t);)t=t.parentElement;return t||document.documentElement}(a):document.documentElement,b=w===document.documentElement,E=window.getComputedStyle(w).position,y=b?G(u):K(u,w);if(!b){let{marginTop:e,marginLeft:t}=window.getComputedStyle(u);y.top+=parseInt(e,10)||0,y.left+=parseInt(t,10)||0}let T=G(a),P={top:parseInt((l=window.getComputedStyle(a)).marginTop,10)||0,bottom:parseInt(l.marginBottom,10)||0,left:parseInt(l.marginLeft,10)||0,right:parseInt(l.marginRight,10)||0};T.width+=(null!==(t=P.left)&&void 0!==t?t:0)+(null!==(n=P.right)&&void 0!==n?n:0),T.height+=(null!==(r=P.top)&&void 0!==r?r:0)+(null!==(o=P.bottom)&&void 0!==o?o:0);let x={top:s.scrollTop,left:s.scrollLeft,width:s.scrollWidth,height:s.scrollHeight},C=z(f),L=z(w),O="BODY"===f.tagName?G(w):K(w,f);return"HTML"===w.tagName&&"BODY"===f.tagName&&(L.scroll.top=0,L.scroll.left=0),function(e,t,n,r,o,l,i,u,a,s,c,d,f,p,v,m){var g,h,w,b;let E=A(e),{size:y,crossAxis:T,crossSize:P,placement:x,crossPlacement:C}=E,L=I(t,u,n,E,c,d,s,f,v,m),O=c,M=j(u,s,t,o,l+c,E);if(i&&r[y]>M){let e=A(`${k[x]} ${C}`),r=I(t,u,n,e,c,d,s,f,v,m);j(u,s,t,o,l+c,e)>M&&(E=e,L=r,O=c)}let B="bottom";"top"===E.axis?"top"===E.placement?B="top":"bottom"===E.placement&&(B="bottom"):"top"===E.crossAxis&&("top"===E.crossPlacement?B="bottom":"bottom"===E.crossPlacement&&(B="top"));let F=S(T,L[T],n[P],u,a,l,s);L[T]+=F;let N=function(e,t,n,r,o,l,i,u){var a,s,c,d,f,p,v;let m=r?n.height:t[H.height],g=null!=e.top?n.top+e.top:n.top+(m-(null!==(a=e.bottom)&&void 0!==a?a:0)-i),h="top"!==u?Math.max(0,t.height+t.top+(null!==(s=t.scroll.top)&&void 0!==s?s:0)-g-((null!==(c=o.top)&&void 0!==c?c:0)+(null!==(d=o.bottom)&&void 0!==d?d:0)+l)):Math.max(0,g+i-(t.top+(null!==(f=t.scroll.top)&&void 0!==f?f:0))-((null!==(p=o.top)&&void 0!==p?p:0)+(null!==(v=o.bottom)&&void 0!==v?v:0)+l));return Math.min(t.height-2*l,h)}(L,u,s,f,o,l,n.height,B);p&&p<N&&(N=p),n.height=Math.min(n.height,N),F=S(T,(L=I(t,u,n,E,O,d,s,f,v,m))[T],n[P],u,a,l,s),L[T]+=F;let W={},z=t[T]+.5*t[P]-L[T]-o[D[T]],G=v/2+m,K="left"===D[T]?(null!==(g=o.left)&&void 0!==g?g:0)+(null!==(h=o.right)&&void 0!==h?h:0):(null!==(w=o.top)&&void 0!==w?w:0)+(null!==(b=o.bottom)&&void 0!==b?b:0),Z=n[P]-K-v/2-m,_=t[T]+v/2-(L[T]+o[D[T]]),V=t[T]+t[P]-v/2-(L[T]+o[D[T]]),Y=(0,R.uZ)(z,_,V);return W[T]=(0,R.uZ)(Y,G,Z),{position:L,maxHeight:N,arrowOffsetLeft:W.left,arrowOffsetTop:W.top,placement:E.placement}}(i,y,T,x,P,c,d,C,L,O,p,v,!!E&&"static"!==E,m,g,h)}({placement:"rtl"===l?c.replace("start","right").replace("end","left"):c.replace("start","left").replace("end","right"),overlayNode:a.current,targetNode:u.current,scrollNode:s.current||a.current,padding:d,shouldFlip:f,boundaryElement:p,offset:v,crossOffset:m,maxHeight:b,arrowSize:i,arrowBoundaryOffset:E});if(P.position){if(y.style.top="",y.style.bottom="",y.style.left="",y.style.right="",Object.keys(P.position).forEach(e=>y.style[e]=P.position[e]+"px"),y.style.maxHeight=null!=P.maxHeight?P.maxHeight+"px":"",w&&document.activeElement&&s.current){let e=document.activeElement.getBoundingClientRect(),t=s.current.getBoundingClientRect(),n=e[w.type]-t[w.type];s.current.scrollTop+=n-w.offset}T(P)}},P);V(C,P),V(()=>(window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}),[r=C]),X({ref:a,onResize:C}),X({ref:u,onResize:C});let L=(0,o.useRef)(!1);V(()=>{let e;let t=()=>
1{L.current=!0,clearTimeout(e),e=setTimeout(()=>{L.current=!1},500),C()},n=()=>{L.current&&t()};return null==J||J.addEventListener("resize",t),null==J||J.addEventListener("scroll",n),()=>{null==J||J.removeEventListener("resize",t),null==J||J.removeEventListener("scroll",n)}},[C]);let O=(0,o.useCallback)(()=>{L.current||null==w||w()},[w,L]);return!function(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,o.useEffect)(()=>{if(!n||null===r)return;let e=e=>{let n=e.target;if(!t.current||n instanceof Node&&!n.contains(t.current)||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let o=r||_.get(t.current);o&&o()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[n,r,t])}({triggerRef:u,isOpen:h,onClose:w&&O}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...null==y?void 0:y.position,maxHeight:null!==(t=null==y?void 0:y.maxHeight)&&void 0!==t?t:"100vh"}},placement:null!==(n=null==y?void 0:y.placement)&&void 0!==n?n:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:null==y?void 0:y.arrowOffsetLeft,top:null==y?void 0:y.arrowOffsetTop}},updatePosition:C}}({isOpen:eH,targetRef:ek,placement:(0,ep.Yx)(N),overlayRef:eB,offset:em?eg+3:eg,crossOffset:eh,shouldFlip:B,containerPadding:F});(0,ev.G)(()=>{eT.length&&eI()},eT);let{overlayProps:ej}=function(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:l,isDismissable:i=!1,isKeyboardDismissDisabled:u=!1,shouldCloseOnInteractOutside:a}=e;(0,o.useEffect)(()=>(l&&eo.push(t),()=>{let e=eo.indexOf(t);e>=0&&eo.splice(e,1)}),[l,t]);let s=()=>{eo[eo.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:l}=e,i=(0,o.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),u=U(e=>{n&&ee(e,t)&&(l&&l(e),i.current.isPointerDown=!0)}),a=U(e=>{n&&n(e)});(0,o.useEffect)(()=>{let e=i.current;if(r)return;let n=Q(t.current);if("undefined"!=typeof PointerEvent){let r=n=>{e.isPointerDown&&ee(n,t)&&a(n),e.isPointerDown=!1};return n.addEventListener("pointerdown",u,!0),n.addEventListener("click",r,!0),()=>{n.removeEventListener("pointerdown",u,!0),n.removeEventListener("click",r,!0)}}},[t,r])}({ref:t,onInteractOutside:i&&l?e=>{(!a||a(e.target))&&(eo[eo.length-1]===t&&(e.stopPropagation(),e.preventDefault()),s())}:void 0,onInteractOutsideStart:e=>{(!a||a(e.target))&&eo[eo.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=function(e){let t,n,r,l,i,{isDisabled:u,onBlurWithin:a,onFocusWithin:s,onFocusWithinChange:c}=e,d=(0,o.useRef)({isFocusWithin:!1}),{addGlobalListener:f,removeAllGlobalListeners:p}=(t=(0,o.useRef)(new Map),n=(0,o.useCallback)((e,n,r,o)=>{let l=(null==o?void 0:o.once)?(...e)=>{t.current.delete(r),r(...e)}:r;t.current.set(r,{type:n,eventTarget:e,fn:l,options:o}),e.addEventListener(n,l,o)},[]),r=(0,o.useCallback)((e,n,r,o)=>{var l;let i=(null===(l=t.current.get(r))||void 0===l?void 0:l.fn)||r;e.removeEventListener(n,i,o),t.current.delete(r)},[]),l=(0,o.useCallback)(()=>{t.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]),(0,o.useEffect)(()=>l,[l]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:l}),v=(0,o.useCallback)(e=>{e.currentTarget.contains(e.target)&&d.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(d.current.isFocusWithin=!1,p(),a&&a(e),c&&c(!1))},[a,c,d,p]),m=(i=(0,o.useRef)({isFocused:!1,observer:null}),V(()=>{let e=i.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,o.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){i.current.isFocused=!0;let t=e.target;t.addEventListener("focusout",e=>{if(i.current.isFocused=!1,t.disabled){let t=et(e);null==v||v(t)}i.current.observer&&(i.current.observer.disconnect(),i.current.observer=null)},{once:!0}),i.current.observer=new MutationObserver(()=>{if(i.current.isFocused&&t.disabled){var e;null===(e=i.current.observer)||void 0===e||e.disconnect();
1let n=t===document.activeElement?null:document.activeElement;t.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),i.current.observer.observe(t,{attributes:!0,attributeFilter:["disabled"]})}},[v])),g=(0,o.useCallback)(e=>{var t;if(!e.currentTarget.contains(e.target))return;let n=Q(e.target),r=er(n);if(!d.current.isFocusWithin&&r===(t=e.nativeEvent,(0,en.Wr)()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target)){s&&s(e),c&&c(!0),d.current.isFocusWithin=!0,m(e);let t=e.currentTarget;f(n,"focus",e=>{if(d.current.isFocusWithin&&!function(e,t){if(!(0,en.Wr)())return!!t&&!!e&&e.contains(t);if(!e||!t)return!1;let n=t;for(;null!==n;){var r;if(n===e)return!0;n="SLOT"===n.tagName&&n.assignedSlot?n.assignedSlot.parentNode:null!==(r=n)&&"object"==typeof r&&"nodeType"in r&&"number"==typeof r.nodeType&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in r?n.host:n.parentNode}return!1}(t,e.target)){let r=new n.defaultView.FocusEvent("blur",{relatedTarget:e.target});Object.defineProperty(r,"target",{value:t}),Object.defineProperty(r,"currentTarget",{value:t}),v(et(r))}},{capture:!0})}},[s,c,m,f,v]);return u?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:g,onBlur:v}}}({isDisabled:!r,onBlurWithin:e=>{!(!e.relatedTarget||(0,q.cW)(e.relatedTarget))&&(!a||a(e.relatedTarget))&&(null==n||n())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||u||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),s())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}({isOpen:eH,onClose:eD.close,isDismissable:ew,shouldCloseOnBlur:eb,isKeyboardDismissDisabled:ey,shouldCloseOnInteractOutside:eP},eB),eG=(0,o.useMemo)(()=>{var t,n,r;return(0,eu.v)({...f,disableAnimation:eR,radius:null!=(t=null==e?void 0:e.radius)?t:"md",size:null!=(n=null==e?void 0:e.size)?n:"md",shadow:null!=(r=null==e?void 0:e.shadow)?r:"sm"})},[(0,ea.Xx)(f),eR,null==e?void 0:e.radius,null==e?void 0:e.size,null==e?void 0:e.shadow]),eK=(0,o.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...p(eN,e),ref:(0,ed.l)(t,ek),"aria-describedby":eH?eF:void 0}},[eN,eH,eF,eD]),eZ=(0,o.useCallback)(()=>({ref:eB,"data-slot":"base","data-open":(0,es.PB)(eH),"data-arrow":(0,es.PB)(em),"data-disabled":(0,es.PB)(O),"data-placement":(0,ep.sK)(eA||"top",N),...p(ez,ej,eM),style:p(eS.style,eM.style,d.style),className:eG.base({class:null==eO?void 0:eO.base}),id:eF}),[eG,eH,em,O,eA,N,ez,ej,eM,eS,d,eF]),e_=(0,o.useCallback)(()=>({"data-slot":"content","data-open":(0,es.PB)(eH),"data-arrow":(0,es.PB)(em),"data-disabled":(0,es.PB)(O),"data-placement":(0,ep.sK)(eA||"top",N),className:eG.content({class:(0,ec.W)(null==eO?void 0:eO.content,ex)})}),[eG,eH,em,O,eA,N,eO]);return{Component:y||"div",content:P,children:x,isOpen:eH,triggerRef:ek,showArrow:em,portalContainer:eE,placement:N,disableAnimation:eR,isDisabled:O,motionProps:eL,getTooltipContentProps:e_,getTriggerProps:eK,getTooltipProps:eZ}}({...e,ref:t});try{let e=o.Children.count(d);if(1!==e)throw Error();n=(0,o.isValidElement)(d)?(0,o.cloneElement)(d,C(d.props,d.ref)):(0,eO.jsx)("p",{...C(),children:d})}catch(e){n=(0,eO.jsx)("span",{}),(0,eL.Z)("Tooltip must have only one child node. Please, check your code.")}let{ref:M,id:B,style:F,...N}=L(),W=(0,eO.jsx)("div",{ref:M,id:B,style:F,children:(0,eO.jsx)(eT.X,{features:eM,children:(0,eO.jsx)(eP.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:eC.y7.scaleSpring,...p(x,N),style:{...(0,ep.VS)(T)},children:(0,eO.jsx)(r,{...O(),children:f})})})});return(0,eO.jsxs)(eO.Fragment,{children:[n,P&&E?(0,eO.jsx)(ey,{portalContainer:y,children:(0,eO.jsx)("div",{ref:M,id:B,style:F,...N,children:(0,eO.jsx)(r,{...O(),children:f})})}):(0,eO.jsx)(ex.M,{children:E?(0,eO.jsx)(ey,{portalContainer:y,children:W}):null})]})});eR.displayName="NextUI.Tooltip";var eD=eR},24899:function(e,t,n){var r=n(36720),o=n(62958);t.Z=function(e){return(0,o.Z)((0,r.Z)(e).toLowerCase())}}}]);
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.