"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9409],{53948:function(e,n,r){r.d(n,{x:function(){return l}});var t=r(6560),o=r(67294);function l(e){let n=o.Children.only(e.children),{getTriggerProps:r}=(0,t.lp)();return(0,o.cloneElement)(n,r(n.props,n.ref))}l.displayName="PopoverTrigger"},82042:function(e,n,r){r.d(n,{J:function(){return _}});var t=r(93694),o=r(57134),l=()=>"undefined"!=typeof window,u=e=>l()&&e.test(navigator.vendor),i=e=>l()&&e.test(function(){var e;let n=navigator.userAgentData;return null!=(e=null==n?void 0:n.platform)?e:navigator.platform}()),a=()=>i(/mac|iphone|ipad|ipod/i),c=()=>a()&&u(/apple/i),s=r(32654),d=r(85075),f=r(756),p=r(17738),v=r(81103),m=r(25432),h=r(92625),y=r(67294),C={click:"click",hover:"hover"};function w(e,n){return e===n||(null==e?void 0:e.contains(n))}function k(e){var n;let r=e.currentTarget.ownerDocument.activeElement;return null!=(n=e.relatedTarget)?n:r}var x=r(6560),b=r(35098);function g(){let e=(0,y.useContext)(b.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var P=r(23008),E=r(33179),S=r(21759),T=r(38554),M=r(69590),R=r(85893);function _(e){let n=function(e,n={}){return function(e,n={}){var r;let{styleConfig:t,...o}=n,{theme:l,colorMode:u}=function(){let e=(0,P.If)(),n=g();return{...e,theme:n}}(),i=e?(0,S.Wf)(l,`components.${e}`):void 0,a=t||i,c=T({theme:l,colorMode:u},null!=(r=null==a?void 0:a.defaultProps)?r:{},(0,S.YU)((0,S.CE)(o,["children"]))),s=(0,y.useRef)({});if(a){let e=(0,E.Ud)(a)(c);M(s.current,e)||(s.current=e)}return s.current}(e,n)}("Popover",e),{children:r,...l}=(0,E.Lr)(e),u=g(),i=function(e={}){let{closeOnBlur:n=!0,closeOnEsc:r=!0,initialFocusRef:l,id:u,returnFocusOnClose:i=!0,autoFocus:a=!0,arrowSize:x,arrowShadowColor:b,trigger:g=C.click,openDelay:P=200,closeDelay:E=200,isLazy:S,lazyBehavior:T="unmount",computePositionOnMount:M,...R}=e,{isOpen:_,onClose:D,onOpen:N,onToggle:q}=(0,d.q)(e),B=(0,y.useRef)(null),F=(0,y.useRef)(null),G=(0,y.useRef)(null),L=(0,y.useRef)(!1),O=(0,y.useRef)(!1);_&&(O.current=!0);let[j,I]=(0,y.useState)(!1),[U,A]=(0,y.useState)(!1),K=(0,y.useId)(),W=null!=u?u:K,[$,H,V,Z]=["popover-trigger","popover-content","popover-header","popover-body"].map(e=>`${e}-${W}`),{referenceRef:z,getArrowProps:Y,getPopperProps:J,getArrowInnerProps:Q,forceUpdate:X}=(0,f.D)({...R,enabled:_||!!M}),ee=(0,t.h)({isOpen:_,ref:G});!function(e){let{ref:n,elements:r,enabled:t}=e,l=()=>{var e,r;return null!=(r=null==(e=n.current)?void 0:e.ownerDocument)?r:document};(0,o.O)(l,"pointerdown",e=>{if(!c()||!t)return;let o=e.target,u=(null!=r?r:[n]).some(e=>{let n="current"in e?e.current:e;return(null==n?void 0:n.contains(o))||n===o});l().activeElement!==o&&u&&(e.preventDefault(),o.focus())})}({enabled:_,ref:F}),(0,s.C)(G,{focusRef:F,visible:_,shouldFocus:i&&g===C.click}),(0,s.G)(G,{focusRef:l,visible:_,shouldFocus:a&&g===C.click});let en=(0,h.k)({wasSelected:O.current,enabled:S,mode:T,isSelected:ee.present}),er=(0,y.useCallback)((e={},t=null)=>{let o={...e,style:{...e.style,transformOrigin:p.Dq.transformOrigin.varRef,[p.Dq.arrowSize.var]:x?`${x}px`:void 0,[p.Dq.arrowShadowColor.var]:b},ref:(0,v.lq)(G,t),children:en?e.children:null,id:H,tabIndex:-1,role:"dialog",onKeyDown:(0,m.v0)(e.onKeyDown,e=>{r&&"Escape"===e.key&&D()}),onBlur:(0,m.v0)(e.onBlur,e=>{let r=k(e),t=w(G.current,r),o=w(F.current,r);_&&n&&!t&&!o&&D()}),"aria-labelledby":j?V:void 0,"aria-describedby":U?Z:void 0};return g===C.hover&&(o.role="tooltip",o.onMouseEnter=(0,m.v0)(e.onMouseEnter,()=>{L.current=!0}),o.onMouseLeave=(0,m.v0)(e.onMouseLeave,e=>{null!==e.nativeEvent.relatedTarget&&(L.current=!1,setTimeout(()=>D(),E))})),o},[en,H,j,V,U,Z,g,r,D,_,n,E,b,x]),et=(0,y.useCallback)((e={},n=null)=>J({...e,style:{visibility:_?"visible":"hidden",...e.style}},n),[_,J]),eo=(0,y.useCallback)((e,n=null)=>({...e,ref:(0,v.lq)(n,B,z)}),[B,z]),el=(0,y.useRef)(),eu=(0,y.useRef)(),ei=(0,y.useCallback)(e=>{null==B.current&&z(e)},[z]),ea=(0,y.useCallback)((e={},r=null)=>{let t={...e,ref:(0,v.lq)(F,r,ei),id:$,"aria-haspopup":"dialog","aria-expanded":_,"aria-controls":H};return g===C.click&&(t.onClick=(0,m.v0)(e.onClick,q)),g===C.hover&&(t.onFocus=(0,m.v0)(e.onFocus,()=>{void 0===el.current&&N()}),t.onBlur=(0,m.v0)(e.onBlur,e=>{let r=k(e),t=!w(G.current,r);_&&n&&t&&D()}),t.onKeyDown=(0,m.v0)(e.onKeyDown,e=>{"Escape"===e.key&&D()}),t.onMouseEnter=(0,m.v0)(e.onMouseEnter,()=>{L.current=!0,el.current=window.setTimeout(()=>N(),P)}),t.onMouseLeave=(0,m.v0)(e.onMouseLeave,()=>{L.current=!1,el.current&&(clearTimeout(el.current),el.current=void 0),eu.current=window.setTimeout(()=>{!1===L.current&&D()},E)})),t},[$,_,H,g,ei,q,N,n,D,P,E]);(0,y.useEffect)(()=>()=>{el.current&&clearTimeout(el.current),eu.current&&clearTimeout(eu.current)},[]);let ec=(0,y.useCallback)((e={},n=null)=>({...e,id:V,ref:(0,v.lq)(n,e=>{I(!!e)})}),[V]),es=(0,y.useCallback)((e={},n=null)=>({...e,id:Z,ref:(0,v.lq)(n,e=>{A(!!e)})}),[Z]);return{forceUpdate:X,isOpen:_,onAnimationComplete:ee.onComplete,onClose:D,getAnchorProps:eo,getArrowProps:Y,getArrowInnerProps:Q,getPopoverPositionerProps:et,getPopoverProps:er,getTriggerProps:ea,getHeaderProps:ec,getBodyProps:es}}({...l,direction:u.direction});return(0,R.jsx)(x.H2,{value:i,children:(0,R.jsx)(x.WG,{value:n,children:(0,m.Pu)(r,{isOpen:i.isOpen,onClose:i.onClose,forceUpdate:i.forceUpdate})})})}_.displayName="Popover"},6560:function(e,n,r){r.d(n,{H2:function(){return o},SV:function(){return i},WG:function(){return u},lp:function(){return l}});var t=r(55227),[o,l]=(0,t.k)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[u,i]=(0,t.k)({name:"PopoverStylesContext",errorMessage:"usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "})},44416:function(e,n,r){r.d(n,{y:function(){return f}});var t=r(6560),o=r(7932),l=r(56420),u=r(52188),i=r(85893),a={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},c=(0,o.m)(u.E.section),s=(0,l.G)(function(e,n){let{variants:r=a,...o}=e,{isOpen:l}=(0,t.lp)();return(0,i.jsx)(c,{ref:n,variants:function(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}(r),initial:!1,animate:l?"enter":"exit",...o})});s.displayName="PopoverTransition";var d=r(25432),f=(0,l.G)(function(e,n){let{rootProps:r,motionProps:l,...u}=e,{getPopoverProps:a,getPopoverPositionerProps:c,onAnimationComplete:f}=(0,t.lp)(),p=(0,t.SV)(),v={position:"relative",display:"flex",flexDirection:"column",...p.content};return(0,i.jsx)(o.m.div,{...c(r),__css:p.popper,className:"chakra-popover__popper",children:(0,i.jsx)(s,{...l,...a(u,n),onAnimationComplete:(0,d.PP)(f,u.onAnimationComplete),className:(0,d.cx)("chakra-popover__content",e.className),__css:v})})});f.displayName="PopoverContent"},23008:function(e,n,r){r.d(n,{If:function(){return l}});var t=r(67294),o=(0,t.createContext)({});function l(){let e=(0,t.useContext)(o);if(void 0===e)throw Error("useColorMode must be used within a ColorModeProvider");return e}o.displayName="ColorModeContext"},7932:function(e,n,r){r.d(n,{m:function(){return y}});var t,o=r(33179),l=new Set([...o.cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),u=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function i(e){return u.has(e)||!l.has(e)}var a=r(23008),c=r(21759),s=r(36597),d=r(20888),f=r(24351),p=r(67294),v=null!=(t=f.Z.default)?t:f.Z,m=({baseStyle:e})=>n=>{let{theme:r,css:t,__css:l,sx:u,...i}=n,a=(0,c.lw)(i,(e,n)=>(0,o.ZR)(n)),f=(0,s.Pu)(e,n),p=(0,d.V8)({},l,f,(0,c.YU)(a),u),v=(0,o.iv)(p)(n.theme);return t?[v,t]:v};function h(e,n){let{baseStyle:r,...t}=null!=n?n:{};t.shouldForwardProp||(t.shouldForwardProp=i);let o=m({baseStyle:r}),l=v(e,t)(o);return p.forwardRef(function(e,n){let{colorMode:r,forced:t}=(0,a.If)();return p.createElement(l,{ref:n,"data-theme":t?r:void 0,...e})})}var y=function(){let e=new Map;return new Proxy(h,{apply:(e,n,r)=>h(...r),get:(n,r)=>(e.has(r)||e.set(r,h(r)),e.get(r))})}()},56420:function(e,n,r){r.d(n,{G:function(){return o}});var t=r(67294);function o(e){return(0,t.forwardRef)(e)}}}]);