"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5610],{60413:function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var s=new o(n,i||e,a),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=Array(i);o<i;o++)a[o]=n[o].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,i,a){var s=r?r+e:e;if(!this._events[s])return!1;var l,f,c=this._events[s],p=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),p){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,o),!0;case 5:return c.fn.call(c.context,t,n,o,i),!0;case 6:return c.fn.call(c.context,t,n,o,i,a),!0}for(f=1,l=Array(p-1);f<p;f++)l[f-1]=arguments[f];c.fn.apply(c.context,l)}else{var u,d=c.length;for(f=0;f<d;f++)switch(c[f].once&&this.removeListener(e,c[f].fn,void 0,!0),p){case 1:c[f].fn.call(c[f].context);break;case 2:c[f].fn.call(c[f].context,t);break;case 3:c[f].fn.call(c[f].context,t,n);break;case 4:c[f].fn.call(c[f].context,t,n,o);break;default:if(!l)for(u=1,l=Array(p-1);u<p;u++)l[u-1]=arguments[u];c[f].fn.apply(c[f].context,l)}}return!0},s.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||a(this,i);else{for(var l=0,f=[],c=s.length;l<c;l++)(s[l].fn!==t||o&&!s[l].once||n&&s[l].context!==n)&&f.push(s[l]);f.length?this._events[i]=1===f.length?f[0]:f:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s},37259:function(e,t,r){r.d(t,{u:function(){return eF}});var n,o,i,a,s,l={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},f=r(92119),c=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),p={arrowShadowColor:c("--popper-arrow-shadow-color"),arrowSize:c("--popper-arrow-size","8px"),arrowSizeHalf:c("--popper-arrow-size-half"),arrowBg:c("--popper-arrow-bg"),transformOrigin:c("--popper-transform-origin"),arrowOffset:c("--popper-arrow-offset")},u={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},d=e=>u[e],h={scroll:!0,resize:!0},m={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{let t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},v={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{g(e)},effect:({state:e})=>()=>{g(e)}},g=e=>{e.elements.popper.style.setProperty(p.transformOrigin.var,d(e.placement))},y={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{b(e)}},b=e=>{var t;if(!e.placement)return;let r=w(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:p.arrowSize.varRef,height:p.arrowSize.varRef,zIndex:-1});let t={[p.arrowSizeHalf.var]:`calc(${p.arrowSize.varRef} / 2 - 1px)`,[p.arrowOffset.var]:`calc(${p.arrowSizeHalf.varRef} * -1)`};for(let r in t)e.elements.arrow.style.setProperty(r,t[r])}},w=e=>e.startsWith("top")?{property:"bottom",value:p.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:p.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:p.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:p.arrowOffset.varRef}:void 0,x={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{O(e)},effect:({state:e})=>()=>{O(e)}},O=e=>{var t;if(!e.elements.arrow)return;let r=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!r)return;let n=(t=e.placement).includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":t.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":t.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":t.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0;n&&r.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(r.style,{transform:"rotate(45deg)",background:p.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},k={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},E={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},j=r(21803);function C(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _(e){var t=C(e).Element;return e instanceof t||e instanceof Element}function D(e){var t=C(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function P(e){if("undefined"==typeof ShadowRoot)return!1;var t=C(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var R=Math.max,A=Math.min,L=Math.round;function W(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function S(){return!/^((?!chrome|android).)*safari/i.test(W())}function T(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&D(e)&&(o=e.offsetWidth>0&&L(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&L(n.height)/e.offsetHeight||1);var a=(_(e)?C(e):window).visualViewport,s=!S()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/o,f=(n.top+(s&&a?a.offsetTop:0))/i,c=n.width/o,p=n.height/i;return{width:c,height:p,top:f,right:l+c,bottom:f+p,left:l,x:l,y:f}}function B(e){var t=C(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function H(e){return e?(e.nodeName||"").toLowerCase():null}function M(e){return((_(e)?e.ownerDocument:e.document)||window.document).documentElement}function z(e){return T(M(e)).left+B(e).scrollLeft}function q(e){return C(e).getComputedStyle(e)}function N(e){var t=q(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function I(e){var t=T(e),r=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function V(e){return"html"===H(e)?e:e.assignedSlot||e.parentNode||(P(e)?e.host:null)||M(e)}function $(e,t){void 0===t&&(t=[]);var r,n=function e(t){return["html","body","#document"].indexOf(H(t))>=0?t.ownerDocument.body:D(t)&&N(t)?t:e(V(t))}(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=C(n),a=o?[i].concat(i.visualViewport||[],N(n)?n:[]):n,s=t.concat(a);return o?s:s.concat($(V(a)))}function F(e){return D(e)&&"fixed"!==q(e).position?e.offsetParent:null}function U(e){for(var t=C(e),r=F(e);r&&["table","td","th"].indexOf(H(r))>=0&&"static"===q(r).position;)r=F(r);return r&&("html"===H(r)||"body"===H(r)&&"static"===q(r).position)?t:r||function(e){var t=/firefox/i.test(W());if(/Trident/i.test(W())&&D(e)&&"fixed"===q(e).position)return null;var r=V(e);for(P(r)&&(r=r.host);D(r)&&0>["html","body"].indexOf(H(r));){var n=q(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var X="bottom",Y="right",G="left",K="auto",J=["top",X,Y,G],Q="start",Z="viewport",ee="popper",et=J.reduce(function(e,t){return e.concat([t+"-"+Q,t+"-end"])},[]),er=[].concat(J,[K]).reduce(function(e,t){return e.concat([t,t+"-"+Q,t+"-end"])},[]),en=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],eo={placement:"bottom",modifiers:[],strategy:"absolute"};function ei(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var ea={passive:!0};function es(e){return e.split("-")[0]}function el(e){return e.split("-")[1]}function ef(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ec(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?es(o):null,a=o?el(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case"top":t={x:s,y:r.y-n.height};break;case X:t={x:s,y:r.y+r.height};break;case Y:t={x:r.x+r.width,y:l};break;case G:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var f=i?ef(i):null;if(null!=f){var c="y"===f?"height":"width";switch(a){case Q:t[f]=t[f]-(r[c]/2-n[c]/2);break;case"end":t[f]=t[f]+(r[c]/2-n[c]/2)}}return t}var ep={top:"auto",right:"auto",bottom:"auto",left:"auto"};function eu(e){var t,r,n,o,i,a,s,l=e.popper,f=e.popperRect,c=e.placement,p=e.variation,u=e.offsets,d=e.position,h=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,g=e.isFixed,y=u.x,b=void 0===y?0:y,w=u.y,x=void 0===w?0:w,O="function"==typeof v?v({x:b,y:x}):{x:b,y:x};b=O.x,x=O.y;var k=u.hasOwnProperty("x"),E=u.hasOwnProperty("y"),j=G,_="top",D=window;if(m){var P=U(l),R="clientHeight",A="clientWidth";P===C(l)&&"static"!==q(P=M(l)).position&&"absolute"===d&&(R="scrollHeight",A="scrollWidth"),("top"===c||(c===G||c===Y)&&"end"===p)&&(_=X,x-=(g&&P===D&&D.visualViewport?D.visualViewport.height:P[R])-f.height,x*=h?1:-1),(c===G||("top"===c||c===X)&&"end"===p)&&(j=Y,b-=(g&&P===D&&D.visualViewport?D.visualViewport.width:P[A])-f.width,b*=h?1:-1)}var W=Object.assign({position:d},m&&ep),S=!0===v?(t={x:b,y:x},r=C(l),n=t.x,o=t.y,{x:L(n*(i=r.devicePixelRatio||1))/i||0,y:L(o*i)/i||0}):{x:b,y:x};return(b=S.x,x=S.y,h)?Object.assign({},W,((s={})[_]=E?"0":"",s[j]=k?"0":"",s.transform=1>=(D.devicePixelRatio||1)?"translate("+b+"px, "+x+"px)":"translate3d("+b+"px, "+x+"px, 0)",s)):Object.assign({},W,((a={})[_]=E?x+"px":"",a[j]=k?b+"px":"",a.transform="",a))}var ed={left:"right",right:"left",bottom:"top",top:"bottom"};function eh(e){return e.replace(/left|right|bottom|top/g,function(e){return ed[e]})}var em={start:"end",end:"start"};function ev(e){return e.replace(/start|end/g,function(e){return em[e]})}function eg(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&P(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ey(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eb(e,t,r){var n,o,i,a,s,l,f,c,p,u;return t===Z?ey(function(e,t){var r=C(e),n=M(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var f=S();(f||!f&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+z(e),y:l}}(e,r)):_(t)?((n=T(t,!1,"fixed"===r)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):ey((o=M(e),a=M(o),s=B(o),l=null==(i=o.ownerDocument)?void 0:i.body,f=R(a.scrollWidth,a.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),c=R(a.scrollHeight,a.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-s.scrollLeft+z(o),u=-s.scrollTop,"rtl"===q(l||a).direction&&(p+=R(a.clientWidth,l?l.clientWidth:0)-f),{width:f,height:c,x:p,y:u}))}function ew(){return{top:0,right:0,bottom:0,left:0}}function ex(e){return Object.assign({},ew(),e)}function eO(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function ek(e,t){void 0===t&&(t={});var r,n,o,i,a,s,l,f,c=t,p=c.placement,u=void 0===p?e.placement:p,d=c.strategy,h=void 0===d?e.strategy:d,m=c.boundary,v=c.rootBoundary,g=c.elementContext,y=void 0===g?ee:g,b=c.altBoundary,w=c.padding,x=void 0===w?0:w,O=ex("number"!=typeof x?x:eO(x,J)),k=e.rects.popper,E=e.elements[void 0!==b&&b?y===ee?"reference":ee:y],j=(r=_(E)?E:E.contextElement||M(e.elements.popper),n=void 0===m?"clippingParents":m,o=void 0===v?Z:v,l=(s=[].concat("clippingParents"===n?(i=$(V(r)),_(a=["absolute","fixed"].indexOf(q(r).position)>=0&&D(r)?U(r):r)?i.filter(function(e){return _(e)&&eg(e,a)&&"body"!==H(e)}):[]):[].concat(n),[o]))[0],(f=s.reduce(function(e,t){var n=eb(r,t,h);return e.top=R(n.top,e.top),e.right=A(n.right,e.right),e.bottom=A(n.bottom,e.bottom),e.left=R(n.left,e.left),e},eb(r,l,h))).width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f),C=T(e.elements.reference),P=ec({reference:C,element:k,strategy:"absolute",placement:u}),L=ey(Object.assign({},k,P)),W=y===ee?L:C,S={top:j.top-W.top+O.top,bottom:W.bottom-j.bottom+O.bottom,left:j.left-W.left+O.left,right:W.right-j.right+O.right},B=e.modifiersData.offset;if(y===ee&&B){var z=B[u];Object.keys(S).forEach(function(e){var t=[Y,X].indexOf(e)>=0?1:-1,r=["top",X].indexOf(e)>=0?"y":"x";S[e]+=z[r]*t})}return S}function eE(e,t,r){return R(e,A(t,r))}function ej(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function eC(e){return["top",Y,X,G].some(function(t){return e[t]>=0})}var e_=(i=void 0===(o=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,l=C(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(e){e.addEventListener("scroll",r.update,ea)}),s&&l.addEventListener("resize",r.update,ea),function(){i&&f.forEach(function(e){e.removeEventListener("scroll",r.update,ea)}),s&&l.removeEventListener("resize",r.update,ea)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=ec({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=r.adaptive,i=r.roundOffsets,a=void 0===i||i,s={placement:es(t.placement),variation:el(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,eu(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===o||o,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,eu(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];D(o)&&H(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});D(n)&&H(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=er.reduce(function(e,r){var n,o,a,s,l,f;return e[r]=(n=t.rects,a=[G,"top"].indexOf(o=es(r))>=0?-1:1,l=(s="function"==typeof i?i(Object.assign({},n,{placement:r})):i)[0],f=s[1],l=l||0,f=(f||0)*a,[G,Y].indexOf(o)>=0?{x:f,y:l}:{x:l,y:f}),e},{}),s=a[t.placement],l=s.x,f=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,f=r.padding,c=r.boundary,p=r.rootBoundary,u=r.altBoundary,d=r.flipVariations,h=void 0===d||d,m=r.allowedAutoPlacements,v=t.options.placement,g=es(v)===v,y=l||(g||!h?[eh(v)]:function(e){if(es(e)===K)return[];var t=eh(e);return[ev(e),t,ev(t)]}(v)),b=[v].concat(y).reduce(function(e,r){var n,o,i,a,s,l,u,d,v,g,y,b;return e.concat(es(r)===K?(o=(n={placement:r,boundary:c,rootBoundary:p,padding:f,flipVariations:h,allowedAutoPlacements:m}).placement,i=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,d=void 0===(u=n.allowedAutoPlacements)?er:u,0===(y=(g=(v=el(o))?l?et:et.filter(function(e){return el(e)===v}):J).filter(function(e){return d.indexOf(e)>=0})).length&&(y=g),Object.keys(b=y.reduce(function(e,r){return e[r]=ek(t,{placement:r,boundary:i,rootBoundary:a,padding:s})[es(r)],e},{})).sort(function(e,t){return b[e]-b[t]})):r)},[]),w=t.rects.reference,x=t.rects.popper,O=new Map,k=!0,E=b[0],j=0;j<b.length;j++){var C=b[j],_=es(C),D=el(C)===Q,P=["top",X].indexOf(_)>=0,R=P?"width":"height",A=ek(t,{placement:C,boundary:c,rootBoundary:p,altBoundary:u,padding:f}),L=P?D?Y:G:D?X:"top";w[R]>x[R]&&(L=eh(L));var W=eh(L),S=[];if(i&&S.push(A[_]<=0),s&&S.push(A[L]<=0,A[W]<=0),S.every(function(e){return e})){E=C,k=!1;break}O.set(C,S)}if(k)for(var T=h?3:1,B=function(e){var t=b.find(function(t){var r=O.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},H=T;H>0&&"break"!==B(H);H--);t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=r.altAxis,a=r.boundary,s=r.rootBoundary,l=r.altBoundary,f=r.padding,c=r.tether,p=void 0===c||c,u=r.tetherOffset,d=void 0===u?0:u,h=ek(t,{boundary:a,rootBoundary:s,padding:f,altBoundary:l}),m=es(t.placement),v=el(t.placement),g=!v,y=ef(m),b="x"===y?"y":"x",w=t.modifiersData.popperOffsets,x=t.rects.reference,O=t.rects.popper,k="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,E="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(w){if(void 0===o||o){var _,D="y"===y?"top":G,P="y"===y?X:Y,L="y"===y?"height":"width",W=w[y],S=W+h[D],T=W-h[P],B=p?-O[L]/2:0,H=v===Q?x[L]:O[L],M=v===Q?-O[L]:-x[L],z=t.elements.arrow,q=p&&z?I(z):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ew(),V=N[D],$=N[P],F=eE(0,x[L],q[L]),K=g?x[L]/2-B-F-V-E.mainAxis:H-F-V-E.mainAxis,J=g?-x[L]/2+B+F+$+E.mainAxis:M+F+$+E.mainAxis,Z=t.elements.arrow&&U(t.elements.arrow),ee=Z?"y"===y?Z.clientTop||0:Z.clientLeft||0:0,et=null!=(_=null==j?void 0:j[y])?_:0,er=eE(p?A(S,W+K-et-ee):S,W,p?R(T,W+J-et):T);w[y]=er,C[y]=er-W}if(void 0!==i&&i){var en,eo,ei="x"===y?"top":G,ea="x"===y?X:Y,ec=w[b],ep="y"===b?"height":"width",eu=ec+h[ei],ed=ec-h[ea],eh=-1!==["top",G].indexOf(m),em=null!=(eo=null==j?void 0:j[b])?eo:0,ev=eh?eu:ec-x[ep]-O[ep]-em+E.altAxis,eg=eh?ec+x[ep]+O[ep]-em-E.altAxis:ed,ey=p&&eh?(en=eE(ev,ec,eg))>eg?eg:en:eE(p?ev:eu,ec,p?eg:ed);w[b]=ey,C[b]=ey-ec}t.modifiersData[n]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r,n=e.state,o=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=es(n.placement),f=ef(l),c=[G,Y].indexOf(l)>=0?"height":"width";if(a&&s){var p=ex("number"!=typeof(t="function"==typeof(t=i.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:eO(t,J)),u=I(a),d="y"===f?"top":G,h="y"===f?X:Y,m=n.rects.reference[c]+n.rects.reference[f]-s[f]-n.rects.popper[c],v=s[f]-n.rects.reference[f],g=U(a),y=g?"y"===f?g.clientHeight||0:g.clientWidth||0:0,b=p[d],w=y-u[c]-p[h],x=y/2-u[c]/2+(m/2-v/2),O=eE(b,x,w);n.modifiersData[o]=((r={})[f]=O,r.centerOffset=O-x,r)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&eg(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ek(t,{elementContext:"reference"}),s=ek(t,{altBoundary:!0}),l=ej(a,n),f=ej(s,o,i),c=eC(l),p=eC(f);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:f,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}}]}).defaultModifiers)?[]:o,s=void 0===(a=n.defaultOptions)?eo:a,function(e,t,r){void 0===r&&(r=s);var n,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},eo,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],f=!1,c={state:a,setOptions:function(r){var n,o,f,u,d,h="function"==typeof r?r(a.options):r;p(),a.options=Object.assign({},s,a.options,h),a.scrollParents={reference:_(e)?$(e):e.contextElement?$(e.contextElement):[],popper:$(t)};var m=(o=Object.keys(n=[].concat(i,a.options.modifiers).reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{})).map(function(e){return n[e]}),f=new Map,u=new Set,d=[],o.forEach(function(e){f.set(e.name,e)}),o.forEach(function(e){u.has(e.name)||function e(t){u.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!u.has(t)){var r=f.get(t);r&&e(r)}}),d.push(t)}(e)}),en.reduce(function(e,t){return e.concat(d.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=m.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=e.effect;if("function"==typeof n){var o=n({state:a,name:t,instance:c,options:void 0===r?{}:r});l.push(o||function(){})}}),c.update()},forceUpdate:function(){if(!f){var e,t,r,n,o,i,s,l,p,u,d,h,m=a.elements,v=m.reference,g=m.popper;if(ei(v,g)){;a.rects={reference:(t=U(g),r="fixed"===a.options.strategy,n=D(t),l=D(t)&&(i=L((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=L(o.height)/t.offsetHeight||1,1!==i||1!==s),p=M(t),u=T(v,l,r),d={scrollLeft:0,scrollTop:0},h={x:0,y:0},(n||!n&&!r)&&(("body"!==H(t)||N(p))&&(d=(e=t)!==C(e)&&D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:B(e)),D(t)?(h=T(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):p&&(h.x=z(p))),{x:u.left+d.scrollLeft-h.x,y:u.top+d.scrollTop-h.y,width:u.width,height:u.height}),popper:I(g)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var y=0;y<a.orderedModifiers.length;y++){if(!0===a.reset){a.reset=!1,y=-1;continue}var b=a.orderedModifiers[y],w=b.fn,x=b.options,O=void 0===x?{}:x,k=b.name;"function"==typeof w&&(a=w({state:a,options:O,name:k,instance:c})||a)}}}},update:(n=function(){return new Promise(function(e){c.forceUpdate(),e(a)})},function(){return o||(o=new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(n())})})),o}),destroy:function(){p(),f=!0}};if(!ei(e,t))return c;function p(){l.forEach(function(e){return e()}),l=[]}return c.setOptions(r).then(function(e){!f&&r.onFirstUpdate&&r.onFirstUpdate(e)}),c}),eD=r(44194),eP=r(54054);function eR(e,t,r,n){let o=(0,eP.W)(r);return(0,eD.useEffect)(()=>{let i="function"==typeof e?e():null!=e?e:document;if(r&&i)return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}},[t,e,n,o,r]),()=>{let r="function"==typeof e?e():null!=e?e:document;null==r||r.removeEventListener(t,o,n)}}var eA=r(19938),eL=e=>{var t;return(null==(t=e.current)?void 0:t.ownerDocument)||document},eW=e=>{var t,r;return(null==(r=null==(t=e.current)?void 0:t.ownerDocument)?void 0:r.defaultView)||window},eS="chakra-ui:close-tooltip",eT=r(27334),eB=r(95799),eH=r(46638),eM=r(39870),ez=r(42089),eq=r(10629),eN=r(64355),eI=r(63490),eV=r(31549),e$=(0,eB.m)(eN.E.div),eF=(0,eH.G)((e,t)=>{var r,n;let o;let i=(0,eM.mq)("Tooltip",e),a=(0,ez.Lr)(e),s=(0,eq.F)(),{children:c,label:u,shouldWrapChildren:d,"aria-label":g,hasArrow:b,bg:w,portalProps:O,background:C,backgroundColor:_,bgColor:D,motionProps:P,...R}=a,A=null!=(n=null!=(r=null!=C?C:_)?r:w)?n:D;if(A){i.bg=A;let e=(0,ez.K1)(s,"colors",A);i[p.arrowBg.var]=e}let L=function(e={}){let{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:o,closeOnScroll:i,closeOnPointerDown:a=o,closeOnEsc:s=!0,onOpen:l,onClose:c,placement:u,id:d,isOpen:g,defaultIsOpen:b,arrowSize:w=10,arrowShadowColor:O,arrowPadding:C,modifiers:_,isDisabled:D,gutter:P,offset:R,direction:A,...L}=e,{isOpen:W,onOpen:S,onClose:T}=function(e={}){let{onClose:t,onOpen:r,isOpen:n,id:o}=e,i=(0,eP.W)(r),a=(0,eP.W)(t),[s,l]=(0,eD.useState)(e.defaultIsOpen||!1),f=void 0!==n?n:s,c=void 0!==n,p=(0,eD.useId)(),u=null!=o?o:`disclosure-${p}`,d=(0,eD.useCallback)(()=>{c||l(!1),null==a||a()},[c,a]),h=(0,eD.useCallback)(()=>{c||l(!0),null==i||i()},[c,i]),m=(0,eD.useCallback)(()=>{f?d():h()},[f,h,d]);return{isOpen:f,onOpen:h,onClose:d,onToggle:m,isControlled:c,getButtonProps:function(e={}){return{...e,"aria-expanded":f,"aria-controls":u,onClick(t){var r;null==(r=e.onClick)||r.call(e,t),m()}}},getDisclosureProps:function(e={}){return{...e,hidden:!f,id:u}}}}({isOpen:g,defaultIsOpen:b,onOpen:l,onClose:c}),{referenceRef:B,getPopperProps:H,getArrowInnerProps:M,getArrowProps:z}=function(e={}){let{enabled:t=!0,modifiers:r,placement:n="bottom",strategy:o="absolute",arrowPadding:i=8,eventListeners:a=!0,offset:s,gutter:l=8,flip:f=!0,boundary:c="clippingParents",preventOverflow:u=!0,matchWidth:d,direction:g="ltr"}=e,b=(0,eD.useRef)(null),w=(0,eD.useRef)(null),O=(0,eD.useRef)(null),C=function(e,t="ltr"){var r,n;let o=(null==(r=k[e])?void 0:r[t])||e;return"ltr"===t?o:null!=(n=E[e])?n:o}(n,g),_=(0,eD.useRef)(()=>{}),D=(0,eD.useCallback)(()=>{var e;t&&b.current&&w.current&&(null==(e=_.current)||e.call(_),O.current=e_(b.current,w.current,{placement:C,modifiers:[x,y,v,{...m,enabled:!!d},{name:"eventListeners",..."object"==typeof a?{enabled:!0,options:{...h,...a}}:{enabled:a,options:h}},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:null!=s?s:[0,l]}},{name:"flip",enabled:!!f,options:{padding:8}},{name:"preventOverflow",enabled:!!u,options:{boundary:c}},...null!=r?r:[]],strategy:o}),O.current.forceUpdate(),_.current=O.current.destroy)},[C,t,r,d,a,i,s,l,f,u,c,o]);(0,eD.useEffect)(()=>()=>{var e;b.current||w.current||(null==(e=O.current)||e.destroy(),O.current=null)},[]);let P=(0,eD.useCallback)(e=>{b.current=e,D()},[D]),R=(0,eD.useCallback)((e={},t=null)=>({...e,ref:(0,j.lq)(P,t)}),[P]),A=(0,eD.useCallback)(e=>{w.current=e,D()},[D]),L=(0,eD.useCallback)((e={},t=null)=>({...e,ref:(0,j.lq)(A,t),style:{...e.style,position:o,minWidth:d?void 0:"max-content",inset:"0 auto auto 0"}}),[o,A,d]),W=(0,eD.useCallback)((e={},t=null)=>{let{size:r,shadowColor:n,bg:o,style:i,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:function(e){let{size:t,shadowColor:r,bg:n,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),r&&(i["--popper-arrow-shadow-color"]=r),n&&(i["--popper-arrow-bg"]=n),i}(e)}},[]),S=(0,eD.useCallback)((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""}),[]);return{update(){var e;null==(e=O.current)||e.update()},forceUpdate(){var e;null==(e=O.current)||e.forceUpdate()},transformOrigin:p.transformOrigin.varRef,referenceRef:P,popperRef:A,getPopperProps:L,getArrowProps:W,getArrowInnerProps:S,getReferenceProps:R}}({enabled:W,placement:u,arrowPadding:C,modifiers:_,gutter:P,offset:R,direction:A}),q=(0,eD.useId)(),N=`tooltip-${null!=d?d:q}`,I=(0,eD.useRef)(null),V=(0,eD.useRef)(),$=(0,eD.useCallback)(()=>{V.current&&(clearTimeout(V.current),V.current=void 0)},[]),F=(0,eD.useRef)(),U=(0,eD.useCallback)(()=>{F.current&&(clearTimeout(F.current),F.current=void 0)},[]),X=(0,eD.useCallback)(()=>{U(),T()},[T,U]),Y=((0,eD.useEffect)(()=>{let e=eL(I);return e.addEventListener(eS,X),()=>e.removeEventListener(eS,X)},[X,I]),()=>{let e=eL(I),t=eW(I);e.dispatchEvent(new t.CustomEvent(eS))}),G=(0,eD.useCallback)(()=>{if(!D&&!V.current){W&&Y();let e=eW(I);V.current=e.setTimeout(S,t)}},[Y,D,W,S,t]),K=(0,eD.useCallback)(()=>{$();let e=eW(I);F.current=e.setTimeout(X,r)},[r,X,$]),J=(0,eD.useCallback)(()=>{W&&n&&K()},[n,K,W]),Q=(0,eD.useCallback)(()=>{W&&a&&K()},[a,K,W]),Z=(0,eD.useCallback)(e=>{W&&"Escape"===e.key&&K()},[W,K]);eR(()=>eL(I),"keydown",s?Z:void 0),eR(()=>{if(!i)return null;let e=I.current;if(!e)return null;let t=function e(t){return["html","body","#document"].includes(t.localName)?t.ownerDocument.body:(0,f.Re)(t)&&function(e){let{overflow:t,overflowX:r,overflowY:n}=(e.ownerDocument.defaultView||window).getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}(t)?t:e("html"===t.localName?t:t.assignedSlot||t.parentElement||t.ownerDocument.documentElement)}(e);return"body"===t.localName?eW(I):t},"scroll",()=>{W&&i&&X()},{passive:!0,capture:!0}),(0,eD.useEffect)(()=>{D&&($(),W&&T())},[D,W,T,$]),(0,eD.useEffect)(()=>()=>{$(),U()},[$,U]),eR(()=>I.current,"pointerleave",K);let ee=(0,eD.useCallback)((e={},t=null)=>({...e,ref:(0,j.lq)(I,t,B),onPointerEnter:(0,eA.v0)(e.onPointerEnter,e=>{"touch"!==e.pointerType&&G()}),onClick:(0,eA.v0)(e.onClick,J),onPointerDown:(0,eA.v0)(e.onPointerDown,Q),onFocus:(0,eA.v0)(e.onFocus,G),onBlur:(0,eA.v0)(e.onBlur,K),"aria-describedby":W?N:void 0}),[G,K,Q,W,N,J,B]),et=(0,eD.useCallback)((e={},t=null)=>H({...e,style:{...e.style,[p.arrowSize.var]:w?`${w}px`:void 0,[p.arrowShadowColor.var]:O}},t),[H,w,O]);return{isOpen:W,show:G,hide:K,getTriggerProps:ee,getTooltipProps:(0,eD.useCallback)((e={},t=null)=>{let r={...e.style,position:"relative",transformOrigin:p.transformOrigin.varRef};return{ref:t,...L,...e,id:N,role:"tooltip",style:r}},[L,N]),getTooltipPositionerProps:et,getArrowProps:z,getArrowInnerProps:M}}({...R,direction:s.direction});if("string"==typeof c||d)o=(0,eV.jsx)(eB.m.span,{display:"inline-block",tabIndex:0,...L.getTriggerProps(),children:c});else{let e=eD.Children.only(c);o=(0,eD.cloneElement)(e,L.getTriggerProps(e.props,e.ref))}let W=!!g,S=L.getTooltipProps({},t),T=W?function(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}(S,["role","id"]):S,B=function(e,t){let r={};for(let n of t)n in e&&(r[n]=e[n]);return r}(S,["role","id"]);return u?(0,eV.jsxs)(eV.Fragment,{children:[o,(0,eV.jsx)(eI.M,{children:L.isOpen&&(0,eV.jsx)(eT.h,{...O,children:(0,eV.jsx)(eB.m.div,{...L.getTooltipPositionerProps(),__css:{zIndex:i.zIndex,pointerEvents:"none"},children:(0,eV.jsxs)(e$,{variants:l,initial:"exit",animate:"enter",exit:"exit",...P,...T,__css:i,children:[u,W&&(0,eV.jsx)(eB.m.span,{srOnly:!0,...B,children:g}),b&&(0,eV.jsx)(eB.m.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,eV.jsx)(eB.m.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:i.bg}})})]})})})})]}):(0,eV.jsx)(eV.Fragment,{children:c})});eF.displayName="Tooltip"}}]);