static.zdassets.com Open in urlscan Pro
104.18.72.113  Public Scan

URL: https://static.zdassets.com/hc/assets/61618-7a8c9da55fa9f022ca4279f74e1f55b2.js
Submission: On October 14 via api from IT — Scanned from IT

Form analysis 0 forms found in the DOM

Text Content

/*! For license information please see 61618-7a8c9da55fa9f022ca4279f74e1f55b2.js.LICENSE.txt */
(self.webpackChunkhelp_center=self.webpackChunkhelp_center||[]).push([[61618,48684],{90093:function(e,t,n){var r=n(28196);e.exports=r},15684:function(e,t,n){var r=n(19373);e.exports=r},65362:function(e,t,n){var r=n(63383);e.exports=r},73151:function(e,t,n){var r=n(9534);e.exports=r},45012:function(e,t,n){var r=n(23059);e.exports=r},27700:function(e,t,n){n(73381);var r=n(35703);e.exports=r("Function").bind},16246:function(e,t,n){var r=n(7046),o=n(27700),a=Function.prototype;e.exports=function(e){var t=e.bind;return e===a||r(a,e)&&t===a.bind?o:t}},14122:function(e,t,n){e.exports=n(89097)},69447:function(e,t,n){e.exports=n(628)},60269:function(e,t,n){e.exports=n(76936)},84710:function(e,t,n){e.exports=n(14058)},93799:function(e,t,n){e.exports=n(92093)},89097:function(e,t,n){var r=n(90093);e.exports=r},628:function(e,t,n){var r=n(15684);e.exports=r},76936:function(e,t,n){var r=n(65362);e.exports=r},14058:function(e,t,n){var r=n(73151);e.exports=r},92093:function(e,t,n){var r=n(45012);e.exports=r},98308:function(e,t,n){"use strict";var r=n(95329),o=n(24883),a=n(10941),i=n(90953),u=n(93765),c=n(18285),l=Function,s=r([].concat),d=r([].join),f={},p=function(e,t,n){if(!i(f,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";f[t]=l("C,a","return new C("+d(r,",")+")")}return f[t](e,n)};e.exports=c?l.bind:function(e){var t=o(this),n=t.prototype,r=u(arguments,1),i=function(){var n=s(r,u(arguments));return this instanceof i?p(t,n.length,n):t.apply(e,n)};return a(n)&&(i.prototype=n),i}},73381:function(e,t,n){var r=n(76887),o=n(98308);r({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},28196:function(e,t,n){var r=n(16246);e.exports=r},48216:function(e,t,n){e.exports=n(14122)},51791:function(e,t,n){e.exports=n(69447)},67552:function(e,t,n){e.exports=n(60269)},52020:function(e,t,n){e.exports=n(84710)},62079:function(e,t,n){e.exports=n(93799)},73126:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(67552),o=n(48216);function a(){var e;return a=r?o(e=r).call(e):function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}},41266:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(52020),o=n(51791),a=n(62079);function i(e,t){if(null==e)return{};var n,i,u=function(e,t){if(null==e)return{};var n,r,i={},u=a(e);for(r=0;r<u.length;r++)n=u[r],o(t).call(t,n)>=0||(i[n]=e[n]);return i}(e,t);if(r){var c=r(e);for(i=0;i<c.length;i++)n=c[i],o(t).call(t,n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u}},80956:function(e,t,n){"use strict";n.d(t,{v2:function(){return A},j2:function(){return j},sN:function(){return F},sd:function(){return B},Uk:function(){return $},qy:function(){return q},YI:function(){return K}});var r=n(67294),o=n.t(r,2),a=n(19142),i=n(72677),u=!1,c=0;function l(){return++c}var s=o["useId".toString()];function d({context:e,children:t,items:n,set:o}){let a=r.useCallback((({element:e,index:t,...n})=>e?(o((r=>{if(null!=t&&-1!==t)return p(r,{element:e,index:t,...n},t);if(0===r.length)return[{...n,element:e,index:0}];if(r.find((t=>t.element===e)))return console.warn("[reach-ui]: `useDescendant` was called with an element that was already registered.\n\nIf you are using the `@reach/descendants` package directly, make sure to only register descendants once. Registering a descendant more than once will lead to bugs in your app.\n\nIf you are using another `reach-ui` package, this is probably our bug!\n\nTo report a bug, open a new issue:\n\n  https://github.com/reach/reach-ui/issues/new?assignees=&labels=&template=Bug_report.md\n\nIMPORTANT: this check will only run in the development build, so if you see this warning please be aware that your app may crash when deployed."),function(e){return e.sort(((e,t)=>e.element&&t.element?f(e.element,t.element)?-1:1:0)).map(((e,t)=>({...e,index:t})))}(r);let o,a=function(e,t){if(!t)return-1;if(!e.length)return-1;let n=e.length;for(;n--;){let r=e[n].element;if(r&&f(r,t))return n+1}return-1}(r,e);return o=-1===a?[...r,{...n,element:e,index:r.length}]:p(r,{...n,element:e,index:a},a),o})),()=>{e&&o((t=>t.filter((t=>e!==t.element))))}):i.ZT),[]);return r.createElement(e.Provider,{value:r.useMemo((()=>({descendants:n,registerDescendant:a})),[n,a])},t)}function f(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function p(e,t,n){return null!=n&&n in e?[...e.slice(0,n),t,...e.slice(n)]:[...e,t]}var h="CLEAR_SELECTION_INDEX",m="CLICK_MENU_ITEM",v="CLOSE_MENU",w="OPEN_MENU_AT_INDEX",g="OPEN_MENU_CLEARED",y="SEARCH_FOR_ITEM",b="SELECT_ITEM_AT_INDEX",E="SET_BUTTON_ID",x=function(e,t={}){let n=r.createContext({descendants:[],registerDescendant:()=>i.ZT,...t});return n.displayName=e,n}("DropdownDescendantContext"),[R,I]=(0,i.kr)("Dropdown"),D={triggerId:null,isExpanded:!1,typeaheadQuery:"",selectionIndex:-1},k=({id:e,children:t})=>{let n=r.useRef(null),o=r.useRef(null),a=r.useRef(null),[c,f]=r.useState([]),p=function(e){if(void 0!==s){let t=s();return e??t}let t=e??(u?l():null),[n,o]=r.useState(t);return(0,i.LI)((()=>{null===n&&o(l())}),[]),r.useEffect((()=>{!1===u&&(u=!0)}),[]),e??n??void 0}(e),h=e||(0,i.qR)("menu",p),m=(0,i.qR)("menu-button",h),[v,w]=r.useReducer(O,{...D,triggerId:m}),g=r.useRef(!1),y=r.useRef([]),b=r.useRef(!1),E=r.useRef({x:0,y:0});return r.useEffect((()=>{v.isExpanded?(window.__REACH_DISABLE_TOOLTIPS=!0,window.requestAnimationFrame((()=>{L(o.current)}))):window.__REACH_DISABLE_TOOLTIPS=!1}),[v.isExpanded]),r.createElement(d,{context:x,items:c,set:f},r.createElement(R,{dispatch:w,dropdownId:h,dropdownRef:o,mouseDownStartPosRef:E,popoverRef:a,readyToSelect:b,selectCallbacks:y,state:v,triggerClickedRef:g,triggerRef:n},(0,i.mf)(t)?t({isExpanded:v.isExpanded,isOpen:v.isExpanded}):t))};function M({onKeyDown:e,onMouseDown:t,id:n,ref:o,...a}){let{dispatch:u,dropdownId:c,mouseDownStartPosRef:l,triggerClickedRef:s,triggerRef:d,state:{triggerId:f,isExpanded:p}}=I("useDropdownTrigger"),h=(0,i.ex)(d,o),m=P(),y=r.useMemo((()=>m.findIndex((e=>!e.disabled))),[m]);return r.useEffect((()=>{null!=n&&n!==f&&u({type:E,payload:n})}),[f,u,n]),r.useEffect((()=>{null==n&&u({type:E,payload:(0,i.qR)("menu-button",c)})}),[c,u,n]),{data:{isExpanded:p,controls:c},props:{...a,ref:h,id:f||void 0,onKeyDown:(0,i.Mj)(e,(function(e){switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),u({type:w,payload:{index:y}});break;case"Enter":case" ":u({type:w,payload:{index:y}})}})),onMouseDown:(0,i.Mj)(t,(function(e){(0,i.dO)(e.nativeEvent)||(l.current={x:e.clientX,y:e.clientY},p||(s.current=!0),u(p?{type:v}:{type:g}))})),type:"button"}}}function S({index:e,isLink:t=!1,onClick:n,onDragStart:o,onMouseDown:a,onMouseEnter:u,onMouseLeave:c,onMouseMove:l,onMouseUp:s,onSelect:d,disabled:f,onFocus:p,valueText:v,ref:w,...g}){let{dispatch:y,dropdownRef:E,mouseDownStartPosRef:R,readyToSelect:D,selectCallbacks:k,triggerRef:M,state:{selectionIndex:S,isExpanded:C}}=I("useDropdownItem"),N=r.useRef(null),[O,P]=r.useState(v||""),_=r.useCallback((e=>{!v&&e?.textContent&&P(e.textContent)}),[v]),A=r.useRef(!1),[j,U]=(0,i.BR)(N,null),F=function(e,t,n){let o=(0,i.NW)(),{registerDescendant:a,descendants:u}=r.useContext(t),c=n??u.findIndex((t=>t.element===e.element));return(0,i.LI)((()=>(e.element||o(),a({...e,index:c}))),[e,o,c,a,...Object.values(e)]),c}(r.useMemo((()=>({element:j,key:O,disabled:f,isLink:t})),[f,j,t,O]),x,e),B=F===S&&!f,$=(0,i.ex)(w,U,_);function q(){L(M.current),d&&d(),y({type:m})}return k.current[F]=d,r.useEffect((()=>{if(C){let e=window.setTimeout((()=>{D.current=!0}),400);return()=>{window.clearTimeout(e)}}D.current=!1}),[C,D]),r.useEffect((()=>{let e=(0,i.r3)(N.current);return e.addEventListener("mouseup",t),()=>{e.removeEventListener("mouseup",t)};function t(){A.current=!1}}),[]),{data:{disabled:f},props:{id:T(F),tabIndex:-1,...g,ref:$,"data-disabled":f?"":void 0,"data-selected":B?"":void 0,"data-valuetext":O,onClick:(0,i.Mj)(n,(function(e){(0,i.dO)(e.nativeEvent)||t&&(f?e.preventDefault():q())})),onDragStart:(0,i.Mj)(o,(function(e){t&&e.preventDefault()})),onMouseDown:(0,i.Mj)(a,(function(e){(0,i.dO)(e.nativeEvent)||(t?A.current=!0:e.preventDefault())})),onMouseEnter:(0,i.Mj)(u,(function(e){let t=(0,i.r3)(E.current);B||null==F||f||(E?.current&&E.current!==t.activeElement&&N.current!==t.activeElement&&E.current.focus(),y({type:b,payload:{index:F}}))})),onMouseLeave:(0,i.Mj)(c,(function(e){y({type:h})})),onMouseMove:(0,i.Mj)(l,(function(e){if(!D.current){let t=8,n=Math.abs(e.clientX-R.current.x),r=Math.abs(e.clientY-R.current.y);(n>t||r>t)&&(D.current=!0)}B||null==F||f||y({type:b,payload:{index:F,dropdownRef:E}})})),onFocus:(0,i.Mj)(p,(function(){D.current=!0,B||null==F||f||y({type:b,payload:{index:F}})})),onMouseUp:(0,i.Mj)(s,(function(e){(0,i.dO)(e.nativeEvent)||(D.current?t?A.current?A.current=!1:N.current&&N.current.click():f||q():D.current=!0)}))}}}function C({id:e,onKeyDown:t,ref:n,...o}){let{dispatch:a,triggerRef:u,dropdownRef:c,selectCallbacks:l,dropdownId:s,state:{isExpanded:d,triggerId:f,selectionIndex:p,typeaheadQuery:h}}=I("useDropdownItems"),w=P(),g=(0,i.ex)(c,n);r.useEffect((()=>{let e=function(e,t=""){if(!t)return null;let n=e.find((e=>!e.disabled&&e.element?.dataset?.valuetext?.toLowerCase().startsWith(t)));return n?e.indexOf(n):null}(w,h);h&&null!=e&&a({type:b,payload:{index:e,dropdownRef:c}});let t=window.setTimeout((()=>h&&a({type:y,payload:""})),1e3);return()=>window.clearTimeout(t)}),[a,w,h,c]);let E=(0,i.D9)(w.length),R=(0,i.D9)(w[p]),D=(0,i.D9)(p);r.useEffect((()=>{p>w.length-1?a({type:b,payload:{index:w.length-1,dropdownRef:c}}):E!==w.length&&p>-1&&R&&D===p&&w[p]!==R&&a({type:b,payload:{index:w.findIndex((e=>e.key===R?.key)),dropdownRef:c}})}),[c,a,w,E,R,D,p]);let k=(0,i.Mj)((function(e){let{key:t}=e;if(d)switch(t){case"Enter":case" ":let n=w.find((e=>e.index===p));n&&!n.disabled&&(e.preventDefault(),n.isLink&&n.element?n.element.click():(L(u.current),l.current[n.index]&&l.current[n.index](),a({type:m})));break;case"Escape":L(u.current),a({type:v});break;case"Tab":e.preventDefault();break;default:if((0,i.HD)(t)&&1===t.length){let e=h+t.toLowerCase();a({type:y,payload:e})}}}),function(e,t){let{descendants:n}=r.useContext(e),{callback:o,currentIndex:a,filter:i,key:u="index",orientation:c="vertical",rotate:l=!0,rtl:s=!1}=t;return function(e){if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(e.key))return;let t=a??-1,r=i?n.filter(i):n;if(!r.length)return;let d=r.findIndex((e=>e.index===a));function f(){return t===m().index?l?h():r[d]:r[(d+1)%r.length]}function p(){return t===h().index?l?m():r[d]:r[(d-1+r.length)%r.length]}function h(){return r[0]}function m(){return r[r.length-1]}switch(e.key){case"ArrowDown":if("vertical"===c||"both"===c){e.preventDefault();let t=f();o("option"===u?t:t[u])}break;case"ArrowUp":if("vertical"===c||"both"===c){e.preventDefault();let t=p();o("option"===u?t:t[u])}break;case"ArrowLeft":if("horizontal"===c||"both"===c){e.preventDefault();let t=(s?f:p)();o("option"===u?t:t[u])}break;case"ArrowRight":if("horizontal"===c||"both"===c){e.preventDefault();let t=(s?p:f)();o("option"===u?t:t[u])}break;case"PageUp":e.preventDefault();let t=(e.ctrlKey?p:h)();o("option"===u?t:t[u]);break;case"Home":e.preventDefault();let n=h();o("option"===u?n:n[u]);break;case"PageDown":e.preventDefault();let r=(e.ctrlKey?f:m)();o("option"===u?r:r[u]);break;case"End":e.preventDefault();let a=m();o("option"===u?a:a[u])}}}(x,{currentIndex:p,orientation:"vertical",rotate:!1,filter:e=>!e.disabled,callback:e=>{a({type:b,payload:{index:e,dropdownRef:c}})},key:"index"}));return{data:{activeDescendant:T(p)||void 0,triggerId:f},props:{tabIndex:-1,...o,ref:g,id:s,onKeyDown:(0,i.Mj)(t,k)}}}function N({onBlur:e,portal:t=!0,position:n,ref:o,...a}){let{triggerRef:u,triggerClickedRef:c,dispatch:l,dropdownRef:s,popoverRef:d,state:{isExpanded:f}}=I("useDropdownPopover"),p=(0,i.ex)(d,o);return r.useEffect((()=>{if(!f)return;let e=(0,i.r3)(d.current);function t(e){var t,n;c.current?c.current=!1:(t=d.current,n=e.target,t&&t.contains(n)||l({type:v}))}return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[c,u,l,s,d,f]),{data:{portal:t,position:n,targetRef:u,isExpanded:f},props:{ref:p,hidden:!f,onBlur:(0,i.Mj)(e,(e=>{e.currentTarget.contains(e.relatedTarget)||l({type:v})})),...a}}}function T(e){let{dropdownId:t}=I("useItemId");return null!=e&&e>-1?(0,i.qR)(`option-${e}`,t):void 0}function L(e){e&&e.focus()}function O(e,t={}){switch(t.type){case m:case v:return{...e,isExpanded:!1,selectionIndex:-1};case"OPEN_MENU_AT_FIRST_ITEM":return{...e,isExpanded:!0,selectionIndex:0};case w:return{...e,isExpanded:!0,selectionIndex:t.payload.index};case g:return{...e,isExpanded:!0,selectionIndex:-1};case b:{let{dropdownRef:n={current:null}}=t.payload;if(t.payload.index>=0&&t.payload.index!==e.selectionIndex){if(n.current){let e=(0,i.r3)(n.current);n.current!==e?.activeElement&&n.current.focus()}return{...e,selectionIndex:null!=t.payload.max?Math.min(Math.max(t.payload.index,0),t.payload.max):Math.max(t.payload.index,0)}}return e}case h:return{...e,selectionIndex:-1};case E:return{...e,triggerId:t.payload};case y:return void 0!==t.payload?{...e,typeaheadQuery:t.payload}:e;default:return e}}function P(){return e=x,r.useContext(e).descendants;var e}k.displayName="DropdownProvider",r.forwardRef((({as:e="button",...t},n)=>{let{props:o}=M({...t,ref:n});return r.createElement(e,{"data-reach-dropdown-trigger":"",...o})})).displayName="DropdownTrigger",r.forwardRef((({as:e="div",...t},n)=>{let{props:o}=S({...t,ref:n});return r.createElement(e,{"data-reach-dropdown-item":"",...o})})).displayName="DropdownItem",r.forwardRef((({as:e="div",...t},n)=>{let{props:o}=C({...t,ref:n});return r.createElement(e,{"data-reach-dropdown-items":"",...o})})).displayName="DropdownItems",r.forwardRef((({as:e="div",...t},n)=>{let{data:{portal:o,targetRef:i,position:u},props:c}=N({...t,ref:n}),l={"data-reach-dropdown-popover":""};return o?r.createElement(a.J2,{...c,...l,as:e,targetRef:i,position:u,unstable_skipInitialPortalRender:!0}):r.createElement(e,{...c,...l})})).displayName="DropdownPopover";var _=n(59864),A=r.forwardRef((({as:e=r.Fragment,id:t,children:n,...o},a)=>{let i=r.useMemo((()=>{try{return(0,_.isFragment)(r.createElement(e,null))}catch(e){return!1}}),[e])?{}:{ref:a,id:t,"data-reach-menu":"",...o};return r.createElement(e,{...i},r.createElement(k,{id:t,children:n}))}));A.displayName="Menu";var j=r.forwardRef((({as:e="button",...t},n)=>{let{data:{isExpanded:o,controls:a},props:i}=M({...t,ref:n});return r.createElement(e,{"aria-expanded":!!o||void 0,"aria-haspopup":!0,"aria-controls":a,...i,"data-reach-menu-button":""})}));j.displayName="MenuButton";var U=r.forwardRef((({as:e="div",...t},n)=>{let{data:{disabled:o},props:a}=S({...t,ref:n});return r.createElement(e,{role:"menuitem",...a,"aria-disabled":o||void 0,"data-reach-menu-item":""})}));U.displayName="MenuItemImpl";var F=r.forwardRef((({as:e="div",...t},n)=>r.createElement(U,{...t,ref:n,as:e})));F.displayName="MenuItem";var B=r.forwardRef((({as:e="div",...t},n)=>{let{data:{activeDescendant:o,triggerId:a},props:i}=C({...t,ref:n});return r.createElement(e,{"aria-activedescendant":o,"aria-labelledby":a||void 0,role:"menu",...i,"data-reach-menu-items":""})}));B.displayName="MenuItems";var $=r.forwardRef((({as:e="a",component:t,onSelect:n,...o},a)=>(r.useEffect((()=>{t&&console.warn("[@reach/menu-button]: Please use the `as` prop instead of `component`")}),[t]),r.createElement(U,{...o,ref:a,"data-reach-menu-link":"",as:e,isLink:!0,onSelect:n||i.ZT}))));$.displayName="MenuLink";var q=r.forwardRef((({portal:e=!0,...t},n)=>r.createElement(K,{portal:e},r.createElement(B,{...t,ref:n,"data-reach-menu-list":""}))));q.displayName="MenuList";var K=r.forwardRef((({as:e="div",...t},n)=>{let{data:{portal:o,targetRef:i,position:u},props:c}=N({...t,ref:n}),l={"data-reach-menu-popover":""};return o?r.createElement(a.J2,{...c,...l,as:e,targetRef:i,position:u,unstable_skipInitialPortalRender:!0}):r.createElement(e,{...c,...l})}));K.displayName="MenuPopover"},19142:function(e,t,n){"use strict";n.d(t,{J2:function(){return T},Kp:function(){return A}});var r=n(67294),o=n(72677),a=n(73935),i=({children:e,type:t="reach-portal",containerRef:n})=>{let i=r.useRef(null),u=r.useRef(null),c=(0,o.NW)();return r.useEffect((()=>{null!=n&&("object"==typeof n&&"current"in n?null==n.current&&console.warn("@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html."):console.warn("@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`."))}),[n]),(0,o.LI)((()=>{if(!i.current)return;let e=i.current.ownerDocument,r=n?.current||e.body;return u.current=e?.createElement(t),r.appendChild(u.current),c(),()=>{u.current&&r&&r.removeChild(u.current)}}),[t,c,n]),u.current?(0,a.createPortal)(e,u.current):r.createElement("span",{ref:i})},u=({unstable_skipInitialRender:e,...t})=>{let[n,o]=r.useState(!1);return r.useEffect((()=>{e&&o(!0)}),[e]),e&&!n?null:r.createElement(i,{...t})};u.displayName="Portal";var c,l=["bottom","height","left","right","top","width"],s=new Map,d=function e(){var t=[];s.forEach((function(e,n){var r,o,a=n.getBoundingClientRect();r=a,o=e.rect,void 0===r&&(r={}),void 0===o&&(o={}),l.some((function(e){return r[e]!==o[e]}))&&(e.rect=a,t.push(e))})),t.forEach((function(e){e.callbacks.forEach((function(t){return t(e.rect)}))})),c=window.requestAnimationFrame(e)};var f=function(e,t){return{observe:function(){var n=0===s.size;s.has(e)?s.get(e).callbacks.push(t):s.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),n&&d()},unobserve:function(){var n=s.get(e);if(n){var r=n.callbacks.indexOf(t);r>=0&&n.callbacks.splice(r,1),n.callbacks.length||s.delete(e),s.size||cancelAnimationFrame(c)}}}};function p(e,t,n){let a,i;(0,o.jn)(t)?a=t:(a=t?.observe??!0,i=t?.onChange),(0,o.mf)(n)&&(i=n),r.useEffect((()=>{(0,o.jn)(t)&&console.warn("Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe")}),[t]),r.useEffect((()=>{(0,o.mf)(n)&&console.warn("Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange")}),[n]);let[u,c]=r.useState(e.current),l=r.useRef(!1),s=r.useRef(!1),[d,p]=r.useState(null),h=r.useRef(i);return(0,o.LI)((()=>{h.current=i,e.current!==u&&c(e.current)})),(0,o.LI)((()=>{u&&!l.current&&(l.current=!0,p(u.getBoundingClientRect()))}),[u]),(0,o.LI)((()=>{if(!a)return;let t=u;if(s.current||(s.current=!0,t=e.current),!t)return void console.warn("You need to place the ref");let n=f(t,(e=>{h.current?.(e),p(e)}));return n.observe(),()=>{n.unobserve()}}),[a,u,e]),d}var h=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],m=h.join(","),v="undefined"==typeof Element,w=v?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,g=!v&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},y=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(m));return t&&w.call(e,m)&&r.unshift(e),r=r.filter(n)},b=function e(t,n,r){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if("SLOT"===i.tagName){var u=i.assignedElements(),c=e(u.length?u:i.children,!0,r);r.flatten?o.push.apply(o,c):o.push({scope:i,candidates:c})}else{w.call(i,m)&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var l=i.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(i),s=!r.shadowRootFilter||r.shadowRootFilter(i);if(l&&s){var d=e(!0===l?i.children:l.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scope:i,candidates:d})}else a.unshift.apply(a,i.children)}}return o},E=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},x=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},R=function(e){return"INPUT"===e.tagName},I=function(e){return function(e){return R(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||g(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},D=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},k=function(e,t){return!(t.disabled||function(e){return R(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=w.call(e,"details>summary:first-of-type")?e.parentElement:e;if(w.call(o,"details:not([open]) *"))return!0;var a=g(e).host,i=(null==a?void 0:a.ownerDocument.contains(a))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return D(e)}else{if("function"==typeof r){for(var u=e;e;){var c=e.parentElement,l=g(e);if(c&&!c.shadowRoot&&!0===r(c))return D(e);e=e.assignedSlot?e.assignedSlot:c||l===e.ownerDocument?c:l.host}e=u}if(i)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!w.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},M=function(e,t){return!(I(t)||E(t)<0||!k(e,t))},S=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},C=function e(t){var n=[],r=[];return t.forEach((function(t,o){var a=!!t.scope,i=a?t.scope:t,u=E(i,a),c=a?e(t.candidates):i;0===u?a?n.push.apply(n,c):n.push(i):r.push({documentOrder:o,tabIndex:u,item:t,isScope:a,content:c})})),r.sort(x).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},N=function(e,t){var n;return n=(t=t||{}).getShadowRoot?b([e],t.includeContainer,{filter:M.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:S}):y(e,t.includeContainer,M.bind(null,t)),C(n)},T=r.forwardRef((function({unstable_skipInitialPortalRender:e,...t},n){return r.createElement(u,{unstable_skipInitialRender:e},r.createElement(L,{ref:n,...t}))}));T.displayName="Popover";var L=r.forwardRef((function({as:e="div",targetRef:t,position:n=_,unstable_observableRefs:a=[],...i},u){const c=r.useRef(null),l=p(c,{observe:!i.hidden}),s=p(t,{observe:!0}),d=(0,o.ex)(c,u);return function(e,t){const n=(0,o.r3)(e.current);function a(e){"Tab"===e.key&&t.current&&0===N(t.current).length||("Tab"===e.key&&e.shiftKey?d(e)?f(e):p(e)?h(e):v(e)&&g():"Tab"===e.key&&(u()?c(e):l()?s(e):m(e)&&g()))}function i(){const r=N(n),o=r&&e.current?r.indexOf(e.current):-1,a=r&&r[o+1];return(!t.current||!t.current.contains(a||null))&&a}function u(){return!!e.current&&e.current===n.activeElement}function c(e){const n=t.current&&N(t.current);n&&n[0]&&(e.preventDefault(),n[0].focus())}function l(){if(!!t.current&&t.current.contains(n.activeElement||null)){const e=t.current&&N(t.current);return Boolean(e&&e[e.length-1]===n.activeElement)}return!1}function s(e){const t=i();t&&(e.preventDefault(),t.focus())}function d(e){if(!e.shiftKey)return;const t=i();return e.target===t}function f(e){const n=t.current&&N(t.current),r=n&&n[n.length-1];r&&(e.preventDefault(),r.focus())}function p(e){const n=t.current&&N(t.current);return!!n&&(0!==n.length&&e.target===n[0])}function h(t){t.preventDefault(),e.current?.focus()}function m(e){const r=t.current?N(n).filter((e=>!t.current.contains(e))):null;return!!r&&e.target===r[r.length-1]}function v(e){return e.target===N(n)[0]}r.useEffect((()=>(n.addEventListener("keydown",a),()=>{n.removeEventListener("keydown",a)})),[]);let w=[];function g(){const e=t.current&&N(t.current);e&&(e.forEach((e=>{w.push([e,e.tabIndex]),e.tabIndex=-1})),n.addEventListener("focusin",y))}function y(){n.removeEventListener("focusin",y),w.forEach((([e,t])=>{e.tabIndex=t}))}}(t,c),r.createElement(e,{"data-reach-popover":"",ref:d,...i,style:{position:"absolute",...O(n,s,l,...a),...i.style}})}));function O(e,t,n,...r){return n?e(t,n,...r.map((e=>e.current))):{visibility:"hidden"}}function P(e,t,n){return{top:n?`${e.top-t.height+window.pageYOffset}px`:`${e.top+e.height+window.pageYOffset}px`}}L.displayName="PopoverImpl";var _=(e,t)=>{if(!e||!t)return{};const{directionRight:n,directionUp:r}=j(e,t);return{left:n?`${e.right-t.width+window.pageXOffset}px`:`${e.left+window.pageXOffset}px`,...P(e,t,r)}},A=(e,t)=>{if(!e||!t)return{};const{directionLeft:n,directionUp:r}=j(e,t);return{left:n?`${e.left+window.pageXOffset}px`:`${e.right-t.width+window.pageXOffset}px`,...P(e,t,r)}};function j(e,t,n=0,r=0){const o={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0};return{directionRight:o.right&&!o.left,directionLeft:o.left&&!o.right,directionUp:o.bottom&&!o.top,directionDown:o.top&&!o.bottom}}},72677:function(e,t,n){"use strict";n.d(t,{BR:function(){return y},D9:function(){return g},HD:function(){return c},LI:function(){return w},Mj:function(){return a},NW:function(){return v},ZT:function(){return m},dO:function(){return p},ex:function(){return s},jn:function(){return i},kr:function(){return f},mf:function(){return u},qR:function(){return h},r3:function(){return d}});var r=n(67294);function o(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function a(e,t){return n=>{if(e&&e(n),!n.defaultPrevented)return t(n)}}function i(e){return"boolean"==typeof e}function u(e){return!(!e||"[object Function]"!={}.toString.call(e))}function c(e){return"string"==typeof e}function l(e,t){if(null!=e)if(u(e))e(t);else try{e.current=t}catch(n){throw new Error(`Cannot assign value "${t}" to ref "${e}"`)}}function s(...e){return(0,r.useCallback)((t=>{for(let n of e)l(n,t)}),e)}function d(e){return o()?e?e.ownerDocument:document:null}function f(e,t){let n=r.createContext(t);function o(e){let{children:t,...o}=e,a=r.useMemo((()=>o),Object.values(o));return r.createElement(n.Provider,{value:a},t)}return n.displayName=`${e}Context`,o.displayName=`${e}Provider`,[o,function(o){let a=r.useContext(n);if(a)return a;if(t)return t;throw Error(`${o} must be rendered inside of a ${e} component.`)}]}function p(e){return"which"in e?3===e.which:"button"in e&&2===e.button}function h(...e){return e.filter((e=>null!=e)).join("--")}function m(){}function v(){let[,e]=(0,r.useState)(Object.create(null));return(0,r.useCallback)((()=>{e(Object.create(null))}),[])}var w=o()?r.useLayoutEffect:r.useEffect;function g(e){const t=(0,r.useRef)(null);return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}function y(e,t){let[n,o]=(0,r.useState)(t);return[n,(0,r.useCallback)((t=>{e.current=t,o(t)}),[])]}}}]);