PageSourceSearch

https://mybusinessapp.co.za/_next/static/chunks/6223107feb8baa62.js

js mybusinessapp.co.za collected 2026-10-02 02:11:56 UTC 26,067 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,484650,543489,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(225913),o=e.i(651648);e.i(247167);var u=e.i(229315),l=(e.i(343084),e.i(397126));function i(){return/apple/i.test(navigator.vendor)}let c="data-floating-ui-focusable";function s(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function a(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,u.isShadowRoot)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function f(e){return"composedPath"in e?e.composedPath()[0]:e.target}function d(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function v(e){return(null==e?void 0:e.ownerDocument)||document}function m(e){return(0,u.isHTMLElement)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function p(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...p(e,t.id,n)])}function g(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var E="u">typeof document?n.useLayoutEffect:function(){};function b(e){let t=n.useRef(e);return E(()=>{t.current=e}),t}let h={...n}.useInsertionEffect||(e=>e());function y(e){let t=n.useRef(()=>{});return h(()=>{t.current=e}),n.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}let R=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function w(e,t){let n=(0,l.tabbable)(e,R()),r=n.length;if(0===r)return;let o=s(v(e)),u=n.indexOf(o);return n[-1===u?1===t?0:r-1:u+t]}function x(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!a(n,r)}function C(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}var L=e.i(174080),k=e.i(258950);let M="active",T="selected",P={...n},A=!1,S=0,D=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+S++,N=P.useId||function(){let[e,t]=n.useState(()=>A?D():void 0);return E(()=>{null==e&&t(D())},[]),n.useEffect(()=>{A=!0},[]),e},O=n.createContext(null),j=n.createContext(null),B=()=>{var e;return(null==(e=n.useContext(O))?void 0:e.id)||null};function K(e){return"data-floating-ui-"+e}function _(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}let I=K("safe-polygon");function F(e,t,n){if(n&&!g(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){let n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function H(e){return"function"==typeof e?e():e}function W(e,t){void 0===t&&(t={});let{open:r,onOpenChange:o,dataRef:l,events:i,elements:c}=e,{enabled:s=!0,delay:f=0,handleClose:d=null,mouseOnly:m=!1,restMs:p=0,move:h=!0}=t,R=n.useContext(j),w=B(),x=b(d),C=b(f),L=b(r),k=b(p),M=n.useRef(),T=n.useRef(-1),P=n.useRef(),A=n.useRef(-1),S=n.useRef(!0),D=n.useRef(!1),N=n.useRef(()=>{}),O=n.useRef(!1),K=y(()=>{var e;let t=null==(e=l.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});n.useEffect(()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(_(T),_(A),S.current=!0,O.current=!1)}},[s,i]),n.useEffect(()=>{if(!s||!x.current||!r)return;function e(e){K()&&o(!1,e,"hover")}let t=v(c.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[c.floating,r,o,s,x,K]);let W=n.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let r=F(C.current,"close",M.current);r&&!P.current?(_(T),T.current=window.setTimeout(()=>o(!1,e,n),r)):t&&(_(T),o(!1,e,n))},[C,o]),X=y(()=>{N.current(),P.current=void 0}),U=y(()=>
1{if(D.current){let e=v(c.floating).body;e.style.pointerEvents="",e.removeAttribute(I),D.current=!1}}),Y=y(()=>!!l.current.openEvent&&["click","mousedown"].includes(l.current.openEvent.type));n.useEffect(()=>{if(s&&(0,u.isElement)(c.domReference)){let o=c.domReference,u=c.floating;return r&&o.addEventListener("mouseleave",n),h&&o.addEventListener("mousemove",e,{once:!0}),o.addEventListener("mouseenter",e),o.addEventListener("mouseleave",t),u&&(u.addEventListener("mouseleave",n),u.addEventListener("mouseenter",i),u.addEventListener("mouseleave",f)),()=>{r&&o.removeEventListener("mouseleave",n),h&&o.removeEventListener("mousemove",e),o.removeEventListener("mouseenter",e),o.removeEventListener("mouseleave",t),u&&(u.removeEventListener("mouseleave",n),u.removeEventListener("mouseenter",i),u.removeEventListener("mouseleave",f))}}function e(e){if(_(T),S.current=!1,m&&!g(M.current)||H(k.current)>0&&!F(C.current,"open"))return;let t=F(C.current,"open",M.current);t?T.current=window.setTimeout(()=>{L.current||o(!0,e,"hover")},t):r||o(!0,e,"hover")}function t(e){if(Y())return void U();N.current();let t=v(c.floating);if(_(A),O.current=!1,x.current&&l.current.floatingContext){r||_(T),P.current=x.current({...l.current.floatingContext,tree:R,x:e.clientX,y:e.clientY,onClose(){U(),X(),Y()||W(e,!0,"safe-polygon")}});let n=P.current;t.addEventListener("mousemove",n),N.current=()=>{t.removeEventListener("mousemove",n)};return}"touch"===M.current&&a(c.floating,e.relatedTarget)||W(e)}function n(e){Y()||l.current.floatingContext&&(null==x.current||x.current({...l.current.floatingContext,tree:R,x:e.clientX,y:e.clientY,onClose(){U(),X(),Y()||W(e)}})(e))}function i(){_(T)}function f(e){Y()||W(e,!1)}},[c,s,e,m,h,W,X,U,o,r,L,R,C,x,l,Y,k]),E(()=>{var e,t;if(s&&r&&null!=(e=x.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&K()){D.current=!0;let e=c.floating;if((0,u.isElement)(c.domReference)&&e){let n=v(c.floating).body;n.setAttribute(I,"");let r=c.domReference,o=null==R||null==(t=R.nodesRef.current.find(e=>e.id===w))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[s,r,w,c,R,x,K]),E(()=>{r||(M.current=void 0,O.current=!1,X(),U())},[r,X,U]),n.useEffect(()=>()=>{X(),_(T),_(A),U()},[s,c.domReference,X,U]);let q=n.useMemo(()=>{function e(e){M.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function n(){S.current||L.current||o(!0,t,"hover")}m&&!g(M.current)||r||0===H(k.current)||O.current&&e.movementX**2+e.movementY**2<2||(_(A),"touch"===M.current?n():(O.current=!0,A.current=window.setTimeout(n,H(k.current))))}}},[m,o,r,L,k]);return n.useMemo(()=>s?{reference:q}:{},[s,q])}function X(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,u.isShadowRoot)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}let U={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Y=n.forwardRef(function(e,r){let[o,u]=n.useState();E(()=>{i()&&u("button")},[]);let l={ref:r,tabIndex:0,role:o,"aria-hidden":!o||void 0,[K("focus-guard")]:"",style:U};return(0,t.jsx)("span",{...e,...l})}),q={clipPath:"inset(50%)",position:"fixed",top:0,left:0},z=n.createContext(null),V=K("portal");function G(e){let{children:r,id:o,root:i,preserveTabOrder:c=!0}=e,s=function(e){void 0===e&&(e={});let{id:t,root:r}=e,o=N(),l=J(),[i,c]=n.useState(null),s=n.useRef(null);return E(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{s.current=null})},[i]),E(()=>{if(!o||s.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement("div");n.id=o,n.setAttribute(V,""),e.appendChild(n),s.current=n,c(n)},[t,o]),E(()=>{if(null===r||!o||s.current)return;let e=r||(null==l?void 0:l.portalNode);e&&!(0,u.isNode)(e)&&(e=e.current),e=e||document.body;let n=null;t&&((n=document.createElement("div")).id=t,e.appendChild(n));let i=document.createElement("div");i.id=o,i.setAttribute(V,""),(e=n||e).appendChild(i),s.current=i,c(i)},[t,r,o,l]),i}({id:o,root:i}),[a,f]=n.useState(null),d=n.useRef(null),m=n.useRef(null),p=n.useRef(null),g=n.useRef(null),b=null==a?void 0:a.modal,h=null==a?void 0:a.open,y=!!a&&!a.modal&&a.open&&c&&!!(i||s);return n.useEffect(()=>{if(s&&c&&!b)return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){s&&x(e)&&("focusin"===e.type?C:function(e){(0,l.tabbable)(e,R()).forEac
1h(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(s)}},[s,c,b]),n.useEffect(()=>{!s||h||C(s)},[h,s]),(0,t.jsxs)(z.Provider,{value:n.useMemo(()=>({preserveTabOrder:c,beforeOutsideRef:d,afterOutsideRef:m,beforeInsideRef:p,afterInsideRef:g,portalNode:s,setFocusManagerState:f}),[c,s]),children:[y&&s&&(0,t.jsx)(Y,{"data-type":"outside",ref:d,onFocus:e=>{var t,n;if(x(e,s))null==(t=p.current)||t.focus();else{let e=w(v(n=a?a.domReference:null).body,-1)||n;null==e||e.focus()}}}),y&&s&&(0,t.jsx)("span",{"aria-owns":s.id,style:q}),s&&L.createPortal(r,s),y&&s&&(0,t.jsx)(Y,{"data-type":"outside",ref:m,onFocus:e=>{var t,n;if(x(e,s))null==(t=g.current)||t.focus();else{let t=w(v(n=a?a.domReference:null).body,1)||n;null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}let J=()=>n.useContext(z);function Q(e){return(0,u.isHTMLElement)(e.target)&&"BUTTON"===e.target.tagName}function Z(e,t){void 0===t&&(t={});let{open:r,onOpenChange:o,dataRef:l,elements:{domReference:i}}=e,{enabled:c=!0,event:s="click",toggle:a=!0,ignoreMouse:f=!1,keyboardHandlers:d=!0,stickIfOpen:v=!0}=t,p=n.useRef(),E=n.useRef(!1),b=n.useMemo(()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){let t=p.current;0!==e.button||"click"===s||g(t,!0)&&f||(r&&a&&(!l.current.openEvent||!v||"mousedown"===l.current.openEvent.type)?o(!1,e.nativeEvent,"click"):(e.preventDefault(),o(!0,e.nativeEvent,"click")))},onClick(e){let t=p.current;if("mousedown"===s&&p.current){p.current=void 0;return}g(t,!0)&&f||(r&&a&&(!l.current.openEvent||!v||"click"===l.current.openEvent.type)?o(!1,e.nativeEvent,"click"):o(!0,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,!(e.defaultPrevented||!d||Q(e))&&(" "!==e.key||m(i)||(e.preventDefault(),E.current=!0),(0,u.isHTMLElement)(e.target)&&"A"===e.target.tagName||"Enter"!==e.key||(r&&a?o(!1,e.nativeEvent,"click"):o(!0,e.nativeEvent,"click")))},onKeyUp(e){!(e.defaultPrevented||!d||Q(e)||m(i))&&" "===e.key&&E.current&&(E.current=!1,r&&a?o(!1,e.nativeEvent,"click"):o(!0,e.nativeEvent,"click"))}}),[l,i,s,f,d,o,r,v,a]);return n.useMemo(()=>c?{reference:b}:{},[c,b])}let $={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ee={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},et=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function en(e,t){void 0===t&&(t={});let{open:r,onOpenChange:o,elements:l,dataRef:i}=e,{enabled:c=!0,escapeKey:s=!0,outsidePress:m=!0,outsidePressEvent:g="pointerdown",referencePress:E=!1,referencePressEvent:b="pointerdown",ancestorScroll:h=!1,bubbles:R,capture:w}=t,x=n.useContext(j),C=y("function"==typeof m?m:()=>!1),L="function"==typeof m?C:m,k=n.useRef(!1),{escapeKey:M,outsidePress:T}=et(R),{escapeKey:P,outsidePress:A}=et(w),S=n.useRef(!1),D=y(e=>{var t;if(!r||!c||!s||"Escape"!==e.key||S.current)return;let n=null==(t=i.current.floatingContext)?void 0:t.nodeId,u=x?p(x.nodesRef.current,n):[];if(!M&&(e.stopPropagation(),u.length>0)){let e=!0;if(u.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}o(!1,"nativeEvent"in e?e.nativeEvent:e,"escape-key")}),N=y(e=>{var t;let n=()=>{var t;D(e),null==(t=f(e))||t.removeEventListener("keydown",n)};null==(t=f(e))||t.addEventListener("keydown",n)}),O=y(e=>{var t;let n=i.current.insideReactTree;i.current.insideReactTree=!1;let r=k.current;if(k.current=!1,"click"===g&&r||n||"function"==typeof L&&!L(e))return;let c=f(e),s="["+K("inert")+"]",m=v(l.floating).querySelectorAll(s),E=(0,u.isElement)(c)?c:null;for(;E&&!(0,u.isLastTraversableNode)(E);){let e=(0,u.getParentNode)(E);if((0,u.isLastTraversableNode)(e)||!(0,u.isElement)(e))break;E=e}if(m.length&&(0,u.isElement)(c)&&!c.matches("html,body")&&!a(c,l.floating)&&Array.from(m).every(e=>!a(E,e)))return;if((0,u.isHTMLElement)(c)&&I){let t=(0,u.isLastTraversableNode)(c),n=(0,u.getComputedStyle)(c),r=/auto|scroll/,o=t||r.test(n.overflowX),l=t||r.test(n.overflowY),i=o&&c.clientWidth>0&&c.scrollWidth>c.clientWidth,s=l&&c.clientHeight>0&&c.scrollHeight>c.clientHeight,a="rtl"===n.direction,f=s&&(a?e.offsetX<=c.offsetWidth-c.clientWidth:e.offsetX>c.clientWidth),d=i&&e.offsetY>c.clientHeight;if(f||d)return}let b=null==(t=i.current.floatingContext)?void 0:t.nodeId,h=x&&p(x.nodesRef.current,b).some(t=>{var n;return d(e,null==(n=t.context)?void 0:n.elements.floating)});if(d(e,l.floating)||d(e,l.domReference)||h)return;let y=x?p(x.nodesRef.current,b):[];if(y.length>0){let e=!0;if(y.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}o(!1,e,"outside-press")}),B=y(e=>{var t;let n=()=>{var t;O(e),null==(t=f(e))||t.removeEventListener(g,n)};null==(t=f(e))||t.addEventListener(g,n)});n.useEffect(()=>{if(!r||!c)return;i.current.__escapeKeyBubbles=M,i.current.__outsidePressBubbles=T;let e=-1;function t(e){o(!1,e,"ancestor-scroll")}function n(){window.clearTimeout(e),S.current=!0}function a(){e=window.setTimeout(()=>{S.current=!1},5*!!(0,u.isWebKit)())}let f=v(l.floating);
1s&&(f.addEventListener("keydown",P?N:D,P),f.addEventListener("compositionstart",n),f.addEventListener("compositionend",a)),L&&f.addEventListener(g,A?B:O,A);let d=[];return h&&((0,u.isElement)(l.domReference)&&(d=(0,u.getOverflowAncestors)(l.domReference)),(0,u.isElement)(l.floating)&&(d=d.concat((0,u.getOverflowAncestors)(l.floating))),!(0,u.isElement)(l.reference)&&l.reference&&l.reference.contextElement&&(d=d.concat((0,u.getOverflowAncestors)(l.reference.contextElement)))),(d=d.filter(e=>{var t;return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{s&&(f.removeEventListener("keydown",P?N:D,P),f.removeEventListener("compositionstart",n),f.removeEventListener("compositionend",a)),L&&f.removeEventListener(g,A?B:O,A),d.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,l,s,L,g,r,o,h,c,M,T,D,P,N,O,A,B]),n.useEffect(()=>{i.current.insideReactTree=!1},[i,L,g]);let _=n.useMemo(()=>({onKeyDown:D,...E&&{[$[b]]:e=>{o(!1,e.nativeEvent,"reference-press")},..."click"!==b&&{onClick(e){o(!1,e.nativeEvent,"reference-press")}}}}),[D,o,E,b]),I=n.useMemo(()=>{function e(e){0===e.button&&(k.current=!0)}return{onKeyDown:D,onMouseDown:e,onMouseUp:e,[ee[g]]:()=>{i.current.insideReactTree=!0}}},[D,g,i]);return n.useMemo(()=>c?{reference:_,floating:I}:{},[c,_,I])}function er(e){void 0===e&&(e={});let{nodeId:t}=e,r=function(e){let{open:t=!1,onOpenChange:r,elements:o}=e,u=N(),l=n.useRef({}),[i]=n.useState(()=>{let e;return e=new Map,{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}),c=null!=B(),[s,a]=n.useState(o.reference),f=y((e,t,n)=>{l.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:n,nested:c}),null==r||r(e,t,n)}),d=n.useMemo(()=>({setPositionReference:a}),[]),v=n.useMemo(()=>({reference:s||o.reference||null,floating:o.floating||null,domReference:o.reference}),[s,o.reference,o.floating]);return n.useMemo(()=>({dataRef:l,open:t,onOpenChange:f,elements:v,events:i,floatingId:u,refs:d}),[t,f,v,i,u,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||r,l=o.elements,[i,c]=n.useState(null),[s,a]=n.useState(null),f=(null==l?void 0:l.domReference)||i,d=n.useRef(null),v=n.useContext(j);E(()=>{f&&(d.current=f)},[f]);let m=(0,k.useFloating)({...e,elements:{...l,...s&&{reference:s}}}),p=n.useCallback(e=>{let t=(0,u.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;a(t),m.refs.setReference(t)},[m.refs]),g=n.useCallback(e=>{((0,u.isElement)(e)||null===e)&&(d.current=e,c(e)),((0,u.isElement)(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!(0,u.isElement)(e))&&m.refs.setReference(e)},[m.refs]),b=n.useMemo(()=>({...m.refs,setReference:g,setPositionReference:p,domReference:d}),[m.refs,g,p]),h=n.useMemo(()=>({...m.elements,domReference:f}),[m.elements,f]),R=n.useMemo(()=>({...m,...o,refs:b,elements:h,nodeId:t}),[m,b,h,t,o]);return E(()=>{o.dataRef.current.floatingContext=R;let e=null==v?void 0:v.nodesRef.current.find(e=>e.id===t);e&&(e.context=R)}),n.useMemo(()=>({...m,context:R,refs:b,elements:h}),[m,b,h,R])}function eo(){let e;return(null!=(e=navigator.userAgentData)&&e.platform?e.platform:navigator.platform).toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&i()}function eu(e,t){void 0===t&&(t={});let{open:r,onOpenChange:o,events:l,dataRef:i,elements:c}=e,{enabled:d=!0,visibleOnly:p=!0}=t,g=n.useRef(!1),E=n.useRef(-1),b=n.useRef(!0);n.useEffect(()=>{if(!d)return;let e=(0,u.getWindow)(c.domReference);function t(){!r&&(0,u.isHTMLElement)(c.domReference)&&c.domReference===s(v(c.domReference))&&(g.current=!0)}function n(){b.current=!0}function o(){b.current=!1}return e.addEventListener("blur",t),eo()&&(e.addEventListener("keydown",n,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),eo()&&(e.removeEventListener("keydown",n,!0),e.removeEventListener("pointerdown",o,!0))}},[c.domReference,r,d]),n.useEffect(()=>{if(d)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(g.current=!0)}},[l,d]),n.useEffect(()=>()=>{_(E)},[]);let h=n.useMemo(()=>({onMouseLeave(){g.current=!1},onFocus(e){if(g.current)return;let t=f(e.nativeEvent);if(p&&(0,u.isElement)(t)){if(eo()&&!e.relatedTarget){if(!b.current&&!m(t))return}else if(!function(e){let t;if(!e||((t=navigator.userAgentData)&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent).includes("jsdom/"))return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return}o(!0,e.nativeEvent,"focus")},onBlur(e){g.current=!1;let t=e.relatedTarget,n=e.nativeEvent,r=(0,u.isElement)(t)&&t.hasAttribute(K("focus-guard"))&&"outside"===t.getAttribute("data-type");E.current=window.setTimeout(()=>{var e;let u=s(c.domReference?c.domReference.ownerDocument:document);!t&&u===c.domReference||a(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,u)||a(c.domReference,u)||r||o(!1,n,"focus")})}}),[i,c.domReference,o,p]);return n.useMemo(()=>d?{reference:h}:{},[d,h])}function el(e,t,n){let r=new Map,o="item"===n,u=e;if(o&&e){let{[M]:t,[T]:n,...r}=e;u=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...u,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>
1(t&&Object.entries(t).forEach(t=>{let[n,u]=t;if(!(o&&[M,T].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof u){var l;null==(l=r.get(n))||l.push(u),e[n]=function(){for(var e,t=arguments.length,o=Array(t),u=0;u<t;u++)o[u]=arguments[u];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}}else e[n]=u}),e),{})}}function ei(e){void 0===e&&(e=[]);let t=e.map(e=>null==e?void 0:e.reference),r=e.map(e=>null==e?void 0:e.floating),o=e.map(e=>null==e?void 0:e.item),u=n.useCallback(t=>el(t,e,"reference"),t),l=n.useCallback(t=>el(t,e,"floating"),r),i=n.useCallback(t=>el(t,e,"item"),o);return n.useMemo(()=>({getReferenceProps:u,getFloatingProps:l,getItemProps:i}),[u,l,i])}let ec=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function es(e,t){var r,o;void 0===t&&(t={});let{open:u,elements:l,floatingId:i}=e,{enabled:s=!0,role:a="dialog"}=t,f=N(),d=(null==(r=l.domReference)?void 0:r.id)||f,v=n.useMemo(()=>{var e,t;return(null==(e=(t=l.floating)?t.hasAttribute(c)?t:t.querySelector("["+c+"]")||t:null)?void 0:e.id)||i},[l.floating,i]),m=null!=(o=ec.get(a))?o:a,p=null!=B(),g=n.useMemo(()=>"tooltip"===m||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:u?v:void 0}:{"aria-expanded":u?"true":"false","aria-haspopup":"alertdialog"===m?"dialog":m,"aria-controls":u?v:void 0,..."listbox"===m&&{role:"combobox"},..."menu"===m&&{id:d},..."menu"===m&&p&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}},[m,v,p,u,d,a]),E=n.useMemo(()=>{let e={id:v,...m&&{role:m}};return"tooltip"===m||"label"===a?e:{...e,..."menu"===m&&{"aria-labelledby":d}}},[m,v,d,a]),b=n.useCallback(e=>{let{active:t,selected:n}=e,r={role:"option",...t&&{id:v+"-fui-option"}};switch(a){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[v,a]);return n.useMemo(()=>s?{reference:g,floating:E,item:b}:{},[s,g,E,b])}function ea(e,t){let[n,r]=e,o=!1,u=t.length;for(let e=0,l=u-1;e<u;l=e++){let[u,i]=t[e]||[0,0],[c,s]=t[l]||[0,0];i>=r!=s>=r&&n<=(c-u)*(r-i)/(s-i)+u&&(o=!o)}return o}function ef(e){void 0===e&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o={current:-1},l=!1,i=null,c=null,s="u">typeof performance?performance.now():0,a=e=>{let{x:n,y:a,placement:f,elements:d,onClose:v,nodeId:m,tree:p}=e;return function(e){function g(){_(o),v()}if(_(o),!d.domReference||!d.floating||null==f||null==n||null==a)return;let{clientX:E,clientY:b}=e,h=[E,b],y="composedPath"in e?e.composedPath()[0]:e.target,R="mouseleave"===e.type,w=X(d.floating,y),x=X(d.domReference,y),C=d.domReference.getBoundingClientRect(),L=d.floating.getBoundingClientRect(),k=f.split("-")[0],M=n>L.right-L.width/2,T=a>L.bottom-L.height/2,P=h[0]>=C.x&&h[0]<=C.x+C.width&&h[1]>=C.y&&h[1]<=C.y+C.height,A=L.width>C.width,S=L.height>C.height,D=(A?C:L).left,N=(A?C:L).right,O=(S?C:L).top,j=(S?C:L).bottom;if(w&&(l=!0,!R))return;if(x&&(l=!1),x&&!R){l=!0;return}if(R&&(0,u.isElement)(e.relatedTarget)&&X(d.floating,e.relatedTarget)||p&&function e(t,n,r){return void 0===r&&(r=!0),t.filter(e=>{var t;return e.parentId===n&&(!r||(null==(t=e.context)?void 0:t.open))}).flatMap(n=>[n,...e(t,n.id,r)])}(p.nodesRef.current,m).length)return;if("top"===k&&a>=C.bottom-1||"bottom"===k&&a<=C.top+1||"left"===k&&n>=C.right-1||"right"===k&&n<=C.left+1)return g();let B=[];switch(k){case"top":B=[[D,C.top+1],[D,L.bottom-1],[N,L.bottom-1],[N,C.top+1]];break;case"bottom":B=[[D,L.top+1],[D,C.bottom-1],[N,C.bottom-1],[N,L.top+1]];break;case"left":B=[[L.right-1,j],[L.right-1,O],[C.left+1,O],[C.left+1,j]];break;case"right":B=[[C.right-1,j],[C.right-1,O],[L.left+1,O],[L.left+1,j]]}if(!ea([E,b],B)){if(l&&!P)return g();if(!R&&r){let t=function(e,t){let n=performance.now(),r=n-s;if(null===i||null===c||0===r)return i=e,c=t,s=n,null;let o=e-i,u=t-c,l=Math.sqrt(o*o+u*u);return i=e,c=t,s=n,l/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}ea([E,b],function(e){let[n,r]=e;switch(k){case"top":{let e=[[L.left,M||A?L.bottom-t:L.top],[L.right,M?A?L.bottom-t:L.top:L.bottom-t]];return[[A?n+t/2:M?n+4*t:n-4*t,r+t+1],[A?n-t/2:M?n+4*t:n-4*t,r+t+1],...e]}case"bottom":{let e=[[L.left,M||A?L.top+t:L.bottom],[L.right,M?A?L.top+t:L.bottom:L.top+t]];return[[A?n+t/2:M?n+4*t:n-4*t,r-t],[A?n-t/2:M?n+4*t:n-4*t,r-t],...e]}case"left":return[[T||S?L.right-t:L.left,L.top],[T?S?L.right-t:L.left:L.right-t,L.bottom],[n+t+1,S?r+t/2:T?r+4*t:r-4*t],[n+t+1,S?r-t/2:T?r+4*t:r-4*t]];case"right":{let e=[[T||S?L.left+t:L.right,L.top],[T?S?L.left+t:L.right:L.left+t,L.bottom]];return[[n-t,S?r+t/2:T?r+4*t:r-4*t],[n-t,S?r-t/2:T?r+4*t:r-4*t],...e]}}}([n,a]))?!l&&r&&(o.current=window.setTimeout(g,40)):g()}}};return a.__options={blockPointerEvents:n},a}e.s(["FloatingPortal",()=>G,"safePolygon",()=>ef,"useClick",()=>Z,"useDismiss",()=>en,"useFloating",()=>er,"useFocus",()=>eu,"useHover",()=>W,"useInteractions",()=>ei,"useRole",()=>es],543489);var ed=e.i(953760);let ev=(0,r.cva)("p-2 bg-gray-800 text-white text-sm rounded-md shadow-md max-w-xs z-90000000000000000",{variants:{size:{default:"p-2",sm:"p-1 text-xs",lg:"p-3"}},defaultVariants:{size:"default"}});e.s(["Tooltip",0,({as:e,tooltipId:r,delayShow:u=300,tooltipContent:l,tooltipPlace:i="top",tooltipClickable:c,tooltipOpenEvents:s={mouseenter:!0},tooltipCloseEvents:a={mouseleave:!0},className:f,size:d,children:v,ref:m,...p})=>
1{let[g,E]=(0,n.useState)(!1),[b,h]=(0,n.useState)(!1),y=(0,n.useRef)(null),R=(0,n.useRef)(null),{refs:w,floatingStyles:x,context:C}=er({placement:i,open:g,onOpenChange:E,middleware:[(0,k.offset)(10),(0,k.flip)(),(0,k.shift)()],whileElementsMounted:ed.autoUpdate});(0,n.useLayoutEffect)(()=>{if(g){let e=setTimeout(()=>{h(!0)},20);return()=>clearTimeout(e)}h(!1)},[g]);let{getReferenceProps:L,getFloatingProps:M}=ei([W(C,{enabled:s?.mouseenter!==!1,delay:{open:u}}),eu(C,{enabled:!!s?.focus}),Z(C,{enabled:!!s?.click}),en(C),es(C,{role:"tooltip"})]),T=(0,n.useCallback)(e=>{R.current!==e&&(R.current=e,w.setReference(e),"function"==typeof m?m(e):m&&(m.current=e),y.current=e)},[m,w]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e??"span",{ref:T,className:(0,o.cn)(f),...L(),...p,children:v}),g&&l&&(0,t.jsx)(G,{children:(0,t.jsx)("div",{ref:w.setFloating,style:{...x,opacity:+!!b,transition:"opacity 150ms ease-out"},className:(0,o.cn)(ev({size:d})),id:r,...M({onClick:e=>{c||e.stopPropagation()}}),children:l})})]})}],484650)}]);

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.