1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,8061487,e=>{"use strict";var t=e.i(5271645),n=e.i(229315),r=e.i(8574735),o=e.i(3365420),l=e.i(7828918),i=e.i(2446265),s=e.i(8667865),u=e.i(8146376),a=e.i(5439957),c=e.i(2328744),f=e.i(4708445),d=e.i(1108868),g=e.i(5333848),p=e.i(152535),h=e.i(9584446),m=e.i(7596296),b=e.i(3157940),v=e.i(8383976),y=e.i(5958408),w=e.i(1621082),E=e.i(2675606),R=e.i(56434),T=e.i(1451321),k=e.i(8503596);let M={inert:new WeakMap,"aria-hidden":new WeakMap},S="data-base-ui-inert",A={inert:new WeakSet,"aria-hidden":new WeakSet},L=new WeakMap,x=0,P=(e,t)=>t.map(t=>{if(e.contains(t))return t;let r=function e(t){return t?(0,n.isShadowRoot)(t)?t.host:e(t.parentNode):null}(t);return e.contains(r)?r:null}).filter(e=>null!=e),C=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},O=(e,t,r)=>{let o=[],l=e=>{!e||r.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,n.getNodeName)(e)&&(t.has(e)?l(e):o.push(e))})};return l(e),o};function F(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:o=!0}=t,l=(0,d.ownerDocument)(e[0]).body;return function(e,t,n,r,{mark:o=!0}){let l=null;r?l="inert":n&&(l="aria-hidden");let i=null,s=null,u=P(t,e),a=o?O(t,C(u),new Set(u)):[],c=[],f=[];if(l){let e=M[l],n=A[l];s=n,i=e;let r=P(t,Array.from(t.querySelectorAll("[aria-live]"))),o=u.concat(r);O(t,C(o),new Set(o)).forEach(t=>{let r=t.getAttribute(l),o=null!==r&&"false"!==r,i=(e.get(t)||0)+1;e.set(t,i),c.push(t),1===i&&o&&n.add(t),o||t.setAttribute(l,"inert"===l?"":"true")})}return o&&a.forEach(e=>{let t=(L.get(e)||0)+1;L.set(e,t),f.push(e),1===t&&e.setAttribute(S,"")}),x+=1,()=>{i&&c.forEach(e=>{let t=(i.get(e)||0)-1;i.set(e,t),t||(!s?.has(e)&&l&&e.removeAttribute(l),s?.delete(e))}),o&&f.forEach(e=>{let t=(L.get(e)||0)-1;L.set(e,t),t||e.removeAttribute(S)}),(x-=1)||(M.inert=new WeakMap,M["aria-hidden"]=new WeakMap,A.inert=new WeakSet,A["aria-hidden"]=new WeakSet,L=new WeakMap)}}(e,l,n,r,{mark:o})}var W=e.i(8726674),N=e.i(3046420),D=e.i(3638396),I=e.i(2594603),H=e.i(7843476);let Y=[];function B(){Y=Y.filter(e=>e.deref()?.isConnected)}function q(e){B(),e&&"body"!==(0,n.getNodeName)(e)&&(Y.push(new WeakRef(e)),Y.length>20&&(Y=Y.slice(-20)))}function G(){return B(),Y[Y.length-1]?.deref()}function X(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let t=(0,v.focusable)(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,v.isTabbable)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),n=e.getAttribute("tabindex");0===t.length?"0"!==n&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):("-1"!==n||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}e.s(["FloatingFocusManager",0,function(e){let{context:M,children:S,disabled:A=!1,initialFocus:L=!0,returnFocus:x=!0,restoreFocus:P=!1,modal:C=!0,closeOnFocusOut:O=!0,openInteractionType:Y="",nextFocusableElement:$,previousFocusableElement:V,beforeContentFocusGuardRef:j,externalTree:_,getInsideElements:U}=e,K="rootStore"in M?M.rootStore:M,z=K.useState("open"),J=K.useState("domReferenceElement"),Q=K.useState("floatingElement"),{events:Z,dataRef:ee}=K.context,et=(0,s.useStableCallback)(()=>ee.current.floatingContext?.nodeId),en=(0,m.isTypeableCombobox)(J)&&!1===L,er=(0,i.useValueAsRef)(L),eo=(0,i.useValueAsRef)(x),el=(0,i.useValueAsRef)(Y),ei=(0,i.useValueAsRef)(z),es=(0,N.useFloatingTree)(_),eu=(0,W.usePortalContext)(),ea=t.useRef(!1),ec=t.useRef(!1),ef=t.useRef(!1),ed=t.useRef(null),eg=t.useRef(""),ep=t.useRef(""),eh=t.useRef(null),em=t.useRef(null),eb=(0,l.useMergedRefs)(eh,j,eu?.beforeInsideRef),ev=(0,l.useMergedRefs)(em,eu?.afterInsideRef),ey=(0,a.useTimeout)(),ew=(0,a.useTimeout)(),eE=(0,f.useAnimationFrame)(),eR=null!=eu,eT=(0,m.getFloatingFocusElement)(Q),ek=(0,s.use
1StableCallback)((e=eT)=>e?(0,v.tabbable)(e):[]),eM=(0,s.useStableCallback)(()=>U?.().filter(e=>null!=e)??[]);t.useEffect(()=>{if(A||!C)return;let e=(0,d.ownerDocument)(eT);return(0,r.addEventListener)(e,"keydown",function(e){"Tab"===e.key&&(0,h.contains)(eT,(0,h.activeElement)((0,d.ownerDocument)(eT)))&&0===ek().length&&!en&&(0,b.stopEvent)(e)})},[A,eT,C,en,ek]),t.useEffect(()=>{if(A||!z)return;let e=(0,d.ownerDocument)(eT);function t(){ef.current=!1}return(0,o.mergeCleanups)((0,r.addEventListener)(e,"pointerdown",function(e){let t=(0,h.getTarget)(e),n=eM();ef.current=!((0,h.contains)(Q,t)||(0,h.contains)(J,t)||(0,h.contains)(eu?.portalNode,t)||n.some(e=>e===t||(0,h.contains)(e,t))),ep.current=e.pointerType||"keyboard",t?.closest(`[${D.CLICK_TRIGGER_IDENTIFIER}]`)&&(ec.current=!0,ew.start(0,()=>{ec.current=!1}))},!0),(0,r.addEventListener)(e,"pointerup",t,!0),(0,r.addEventListener)(e,"pointercancel",t,!0),(0,r.addEventListener)(e,"keydown",function(){ep.current="keyboard"},!0),t)},[A,Q,J,eT,z,eu,ew,eM]),t.useEffect(()=>{if(A||!O)return;let e=(0,d.ownerDocument)(eT);function t(t){let r=t.relatedTarget,o=t.currentTarget,l=(0,h.getTarget)(t);C&&null==r&&null!=l&&(0,h.contains)(Q,l)&&q(l),queueMicrotask(()=>{let i=et(),s=K.context.triggerElements,u=eM(),a=r?.hasAttribute((0,T.createAttribute)("focus-guard"))&&[eh.current,em.current,eu?.beforeInsideRef.current,eu?.afterInsideRef.current,eu?.beforeOutsideRef.current,eu?.afterOutsideRef.current,(0,I.resolveRef)(V),(0,I.resolveRef)($)].includes(r),c=!((0,h.contains)(J,r)||(0,h.contains)(Q,r)||(0,h.contains)(r,Q)||(0,h.contains)(eu?.portalNode,r)||u.some(e=>e===r||(0,h.contains)(e,r))||s.hasMatchingElement(e=>(0,h.contains)(e,r))||a||es&&((0,y.getNodeChildren)(es.nodesRef.current,i).find(e=>(0,h.contains)(e.context?.elements.floating,r)||(0,h.contains)(e.context?.elements.domReference,r))||(0,y.getNodeAncestors)(es.nodesRef.current,i).find(e=>[e.context?.elements.floating,(0,m.getFloatingFocusElement)(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(o===J&&eT&&X(eT),P&&o!==J&&!(0,w.isElementVisible)(l)&&(0,h.activeElement)(e)===e.body){if((0,n.isHTMLElement)(eT)&&(eT.focus(),"popup"===P))return void eE.request(()=>{eT.focus()});let e=ek(),t=ed.current,r=(t&&e.includes(t)?t:null)||e[e.length-1]||eT;(0,n.isHTMLElement)(r)&&r.focus()}if(ee.current.insideReactTree){ee.current.insideReactTree=!1;return}(en||!C)&&r&&c&&!ec.current&&(en||r!==G())&&(ea.current=!0,K.setOpen(!1,(0,E.createChangeEventDetails)(R.REASONS.focusOut,t)))})}let l=(0,n.isHTMLElement)(J)?J:null;if(Q||l)return(0,o.mergeCleanups)(l&&(0,r.addEventListener)(l,"focusout",t),l&&(0,r.addEventListener)(l,"pointerdown",function(){ec.current=!0,ew.start(0,()=>{ec.current=!1})}),Q&&(0,r.addEventListener)(Q,"focusin",function(e){let t=(0,h.getTarget)(e);(0,v.isTabbable)(t)&&(ed.current=t)}),Q&&(0,r.addEventListener)(Q,"focusout",t),Q&&eu&&(0,r.addEventListener)(Q,"focusout",function(){ef.current||(ee.current.insideReactTree=!0,ey.start(0,()=>{ee.current.insideReactTree=!1}))},!0))},[A,J,Q,eT,C,es,eu,K,O,P,ek,en,et,ee,ey,ew,eE,$,V,eM]),t.useEffect(()=>{if(A||!Q||!z)return;let e=Array.from(eu?.portalNode?.querySelectorAll(`[${(0,T.createAttribute)("portal")}]`)||[]),t=es?(0,y.getNodeAncestors)(es.nodesRef.current,et()):[],n=t.find(e=>(0,m.isTypeableCombobox)(e.context?.elements.domReference||null))?.context?.elements.domReference,r=F([Q,...e,eh.current,em.current,eu?.beforeOutsideRef.current,eu?.afterOutsideRef.current,...eM(),n,(0,I.resolveRef)(V),(0,I.resolveRef)($),en?J:null].filter(e=>null!=e),{ariaHidden:C||en,mark:!1}),o=F([Q,...e].filter(e=>null!=e));return()=>{o(),r()}},[z,A,J,Q,C,eu,en,es,et,$,V,eM]),(0,u.useIsoLayoutEffect)(()=>{if(!z||A||!(0,n.isHTMLElement)(eT))return;eg.current="",ep.current="";let e=(0,d.ownerDocument)(eT),t=(0,h.activeElement)(e);queueMicrotask(()=>{let n,r=er.current,o="function"==typeof r?r(el.current||""):r;if(void 0===o||!1===o||(0,h.contains)(eT,t))return;let l=null,i=()=>(null==l&&(l=ek(eT)),l[0]||eT);n=(n=!0===o||null===o?i():(0,I.resolveRef)(o))||i();let s=(0,h.contains)(eT,(0,h.activeElement)(e));(0,k.enqueueFocus)(n,{preventScroll:n===eT,shouldFocus(){if(!ei.current)return!1;if(s)return!0;let t=(0,h.activeElement)(e);return!(t!==n&&(0,h.contains)(eT,t))}})})},[A,z,eT,ek,er,el,ei]),(0,u.useIsoLayoutEffect)(()=>
1{if(A||!eT)return;let e=(0,d.ownerDocument)(eT),t=(0,h.activeElement)(e),r=null==el.current;function o(e){var t,n;let r;if(e.open||(t=e.nativeEvent,n=ep.current,r=(0,g.ownerWindow)((0,h.getTarget)(t)),eg.current=t instanceof r.KeyboardEvent?"keyboard":t instanceof r.FocusEvent?n||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof r.MouseEvent?n||(0===t.detail?"keyboard":"mouse"):""),e.reason===R.REASONS.triggerHover&&"mouseleave"===e.nativeEvent.type&&(ea.current=!0),e.reason===R.REASONS.outsidePress)if(e.nested)ea.current=!1;else if((0,b.isVirtualClick)(e.nativeEvent)||(0,b.isVirtualPointerEvent)(e.nativeEvent))ea.current=!1;else{let e=!1;(0,d.ownerDocument)(eT).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?ea.current=!1:ea.current=!0}}return q(t),Z.on("openchange",o),()=>{Z.off("openchange",o);let l=(0,h.activeElement)(e),i=eM(),s=(0,h.contains)(Q,l)||i.some(e=>e===l||(0,h.contains)(e,l))||es&&(0,y.getNodeChildren)(es.nodesRef.current,et(),!1).some(e=>(0,h.contains)(e.context?.elements.floating,l)),u=eo.current,a=eg.current,c=function(e){let o=eo.current,l="function"==typeof o?o(e):o;if(void 0===l||!1===l)return null;null===l&&(l=!0);let i=J?.isConnected?J:null,s=t?.isConnected&&"body"!==(0,n.getNodeName)(t)?t:null,u=r?s||i:i||s;return(u||(u=G()||null),"boolean"==typeof l)?u:(0,I.resolveRef)(l)||u||null}(a);queueMicrotask(()=>{let t=c?(0,v.isTabbable)(c)?c:(0,v.tabbable)(c)[0]||c:null;if(u&&!ea.current&&(0,n.isHTMLElement)(t)&&("boolean"!=typeof u||t===l||l===e.body||s)){let e={preventScroll:!0};"keyboard"===a&&(e.focusVisible=!0),t.focus(e)}ea.current=!1})}},[A,Q,eT,eo,el,Z,es,J,et,eM]),(0,u.useIsoLayoutEffect)(()=>{if(!c.platform.engine.webkit||z||!Q)return;let e=(0,h.activeElement)((0,d.ownerDocument)(Q));(0,n.isHTMLElement)(e)&&(0,m.isTypeableElement)(e)&&(0,h.contains)(Q,e)&&e.blur()},[z,Q]),(0,u.useIsoLayoutEffect)(()=>{if(!A&&eu)return eu.setFocusManagerState({modal:C,closeOnFocusOut:O,open:z,onOpenChange:K.setOpen,domReference:J}),()=>{eu.setFocusManagerState(null)}},[A,eu,C,z,K,O,J]),(0,u.useIsoLayoutEffect)(()=>{if(!A&&eT)return X(eT),()=>{queueMicrotask(B)}},[A,eT]);let eS=!A&&(!C||!en)&&(eR||C);return(0,H.jsxs)(t.Fragment,{children:[eS&&(0,H.jsx)(p.FocusGuard,{"data-type":"inside",ref:eb,onFocus:e=>{if(C){let e=ek();(0,k.enqueueFocus)(e[e.length-1])}else if(eu?.portalNode)if(ea.current=!1,(0,v.isOutsideEvent)(e,eu.portalNode)){let e=(0,v.getNextTabbable)(J);e?.focus()}else(0,I.resolveRef)(V??eu.beforeOutsideRef)?.focus()}}),S,eS&&(0,H.jsx)(p.FocusGuard,{"data-type":"inside",ref:ev,onFocus:e=>{if(C)(0,k.enqueueFocus)(ek()[0]);else if(eu?.portalNode)if(O&&(ea.current=!0),(0,v.isOutsideEvent)(e,eu.portalNode)){let e=(0,v.getPreviousTabbable)(J);e?.focus()}else(0,I.resolveRef)($??eu.afterOutsideRef)?.focus()}})]})}],8061487)},385689,e=>{"use strict";var t=e.i(5271645),n=e.i(4708445),r=e.i(5439957),o=e.i(5956789),l=e.i(9584446),i=e.i(7596296),s=e.i(3157940),u=e.i(2675606),a=e.i(56434);e.s(["useClick",0,function(e,c={}){let{enabled:f=!0,event:d="click",toggle:g=!0,ignoreMouse:p=!1,stickIfOpen:h=!0,touchOpenDelay:m=0,reason:b=a.REASONS.triggerPress}=c,v="rootStore"in e?e.rootStore:e,y=v.context.dataRef,w=t.useRef(void 0),E=(0,n.useAnimationFrame)(),R=(0,r.useTimeout)(),T=t.useMemo(()=>{function e(e,t,n,r){let o=(0,u.createChangeEventDetails)(b,t,n);e&&"touch"===r&&m>0?R.start(m,()=>{v.setOpen(!0,o)}):v.setOpen(e,o)}function t(e,t,n){let r=y.current.openEvent,o=v.select("domReferenceElement")!==t;return!!e&&!!o||!e||!g||!!r&&!!h&&!n(r.type)}return{onPointerDown(e){w.current=(0,s.isMouseLikePointerType)(e.pointerType,!0)&&(0,s.isVirtualPointerEvent)(e.nativeEvent)?"virtual":e.pointerType},onMouseDown(n){let r=w.current,o=n.nativeEvent,u=v.select("open");if(0!==n.button||"click"===d||(0,s.isMouseLikePointerType)(r,!0)&&p)return;let a=t(u,n.currentTarget,e=>"click"===e||"mousedown"===e),c=(0,l.getTarget)(o);if((0,i.isTypeableElement)(c))return void e(a,o,c,r);let f=n.currentTarget;E.request(()=>{e(a,o,f,r)})},onClick(n){if("mousedown-only"===d)return;let r=w.current;if("mousedown"===d&&r){w.current=void 0;return}(0,s.isMouseLikePointerType)(r,!0)&&p||e(t(v.select("open"),n.currentTarget,e=>"click"===e||"mousedown"===e||"keydown"===e||"keyup"===e),n.nativeEvent,n.currentTarget,r)},onKeyDown(){w.current=void 0}}},[y,d,p,b,v,h,g,E,R,m]);return t.useMemo(()=>f?{reference:T}:o.EMPTY_OBJECT,[f,T])}])},8503596,e=>{"use strict";var t=e.i(5956789);let n=0;e.s(["enqueueFocus",0,function(e,r={}){let{preventScroll:o=!1,sync:l=!1,shouldFocus:i}=r;function s(){(!i||i())&&e?.focus({preventScroll:o})}if(cancelAnimationFrame(n),l)return s(),t.NOOP;let u=requestAnimationFrame(s);return n=u,()=>{n===u&&(cancelAnimationFrame(u),n=0)}}])},8673327,e=>{"use strict";var t=e.i(229315);let n="ArrowUp",r="ArrowDown",o="ArrowLeft",l="ArrowRight",i="Home",s=new Set([n,r,o,l,i,"End"]),u="Shift",a=[u,"Control","Alt","Meta"];
1function c(e,t,n){let r="left"===n?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);)t=t.offsetParent;return o}function f(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}e.s(["ARROW_DOWN",0,r,"ARROW_LEFT",0,o,"ARROW_RIGHT",0,l,"ARROW_UP",0,n,"COMPOSITE_KEYS",0,s,"END",0,"End","HOME",0,i,"MODIFIER_KEYS",0,a,"PAGE_DOWN",0,"PageDown","PAGE_UP",0,"PageUp","SHIFT",0,u,"isNativeInput",0,function(e){return!!((0,t.isHTMLElement)(e)&&"INPUT"===e.tagName&&null!=e.selectionStart||(0,t.isHTMLElement)(e)&&"TEXTAREA"===e.tagName)},"scrollIntoViewIfNeeded",0,function(e,t,n,r){if(!e||!t||!t.scrollTo)return;let o=e.scrollLeft,l=e.scrollTop,i=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(i&&"vertical"!==r){let r=c(e,t,"left"),l=f(e),i=f(t);"ltr"===n&&(r+t.offsetWidth+i.scrollMarginRight>e.scrollLeft+e.clientWidth-l.scrollPaddingRight?o=r+t.offsetWidth+i.scrollMarginRight-e.clientWidth+l.scrollPaddingRight:r-i.scrollMarginLeft<e.scrollLeft+l.scrollPaddingLeft&&(o=r-i.scrollMarginLeft-l.scrollPaddingLeft)),"rtl"===n&&(r-i.scrollMarginLeft<e.scrollLeft+l.scrollPaddingLeft?o=r-i.scrollMarginLeft-l.scrollPaddingLeft:r+t.offsetWidth+i.scrollMarginRight>e.scrollLeft+e.clientWidth-l.scrollPaddingRight&&(o=r+t.offsetWidth+i.scrollMarginRight-e.clientWidth+l.scrollPaddingRight))}if(s&&"horizontal"!==r){let n=c(e,t,"top"),r=f(e),o=f(t);n-o.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?l=n-o.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+o.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(l=n+t.offsetHeight+o.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:o,top:l,behavior:"auto"})}])},4000426,e=>{"use strict";e.i(6247167);var t=e.i(5271645),n=e.i(7843476);let r=t.forwardRef(function(e,t){let r,{cutout:o,...l}=e;if(o){let e=o.getBoundingClientRect();r=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,n.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...l,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:r}})});e.s(["InternalBackdrop",0,r])},32199,e=>{"use strict";var t=e.i(5271645),n=e.i(8667865),r=e.i(2328744),o=e.i(4606039);function l(e,o){var l;let i,s,{onClick:u,onPointerDown:a}=(l=(0,n.useStableCallback)((t,n)=>{("function"==typeof e?e():e)||o(n||(r.platform.os.ios?"touch":""))}),i=t.useRef(""),s=t.useCallback(e=>{e.defaultPrevented||(i.current=e.pointerType,l(e,e.pointerType))},[l]),{onClick:t.useCallback(e=>{0===e.detail?l(e,"keyboard"):("pointerType"in e?l(e,e.pointerType):l(e,i.current),i.current="")},[l]),onPointerDown:s});return t.useMemo(()=>({onClick:u,onPointerDown:a}),[u,a])}e.s(["useOpenInteractionType",0,function(e){let[n,r]=t.useState(null),i=l(e,r);return(0,o.useValueChanged)(e,t=>{t&&!e&&r(null)}),t.useMemo(()=>({openMethod:n,triggerProps:i}),[n,i])},"useOpenMethodTriggerProps",0,l],32199)},7145484,e=>{"use strict";var t=e.i(229315),n=e.i(8574735),r=e.i(2328744),o=e.i(1108868),l=e.i(5333848),i=e.i(8146376),s=e.i(5439957),u=e.i(4708445);let a={},c={},f="";function d(e,n){return(0,t.isOverflowElement)(e)?e:n}function g(e,t,n){return/hidden|clip/.test(e.getComputedStyle(d(t,n)).overflowY)}class p{lockCount=0;restore=null;timeoutLock=s.Timeout.create();timeoutUnlock=s.Timeout.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){let t,i,s;if(0===this.lockCount||null!==this.restore)return;let p=(0,o.ownerDocument)(e),h=p.documentElement,m=p.body,b=(0,l.ownerWindow)(h);if(g(b,h,m)){let t=new b.MutationObserver(()=>{g(b,h,m)||(t.disconnect(),this.restore=null,this.lock(e))}),n={attributes:!0};t.observe(h,n),t.observe(m,n),this.restore=()=>t.disconnect();return}let v=r.platform.os.ios||!function(e){if("u"<typeof document)return!1;let t=(0,o.ownerDocument)(e);return(0,l.ownerWindow)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=v?(s={overflowY:(i=d((t=(0,o.ownerDocument)(e)).documentElement,t.body)).style.overflowY,overflowX:i.style.overflowX},Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,s)}):function(e){let t=(0,o.ownerDocument)(e),i=t.documentElement,s=t.body,g=(0,l.ownerWindow)(i),p=0,h=0,m=!1,b=u.AnimationFrame.create();
1if(r.platform.engine.webkit&&(g.visualViewport?.scale??1)!==1)return()=>{};function v(){let t=g.getComputedStyle(i),n=g.getComputedStyle(s),r=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";p=i.scrollTop,h=i.scrollLeft,a={scrollbarGutter:i.style.scrollbarGutter,overflowY:i.style.overflowY,overflowX:i.style.overflowX},f=i.style.scrollBehavior,c={position:s.style.position,height:s.style.height,width:s.style.width,boxSizing:s.style.boxSizing,overflowY:s.style.overflowY,overflowX:s.style.overflowX,scrollBehavior:s.style.scrollBehavior};let l=i.scrollHeight>i.clientHeight,u=i.scrollWidth>i.clientWidth,b="scroll"===t.overflowY||"scroll"===n.overflowY,v="scroll"===t.overflowX||"scroll"===n.overflowX,y=Math.max(0,g.innerWidth-s.clientWidth),w=Math.max(0,g.innerHeight-s.clientHeight),E=parseFloat(n.marginTop)+parseFloat(n.marginBottom),R=parseFloat(n.marginLeft)+parseFloat(n.marginRight),T=d(i,s);if(m=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let t=(0,o.ownerDocument)(e),n=t.documentElement,r=d(n,t.body),l=r.style.overflowY,i=n.style.scrollbarGutter;n.style.scrollbarGutter="stable",r.style.overflowY="scroll";let s=r.offsetWidth;r.style.overflowY="hidden";let u=r.offsetWidth;return r.style.overflowY=l,n.style.scrollbarGutter=i,s===u}(e)){i.style.scrollbarGutter=r,T.style.overflowY="hidden",T.style.overflowX="hidden";return}Object.assign(i.style,{scrollbarGutter:r,overflowY:"hidden",overflowX:"hidden"}),(l||b)&&(i.style.overflowY="scroll"),(u||v)&&(i.style.overflowX="scroll"),Object.assign(s.style,{position:"relative",height:E||w?`calc(100dvh - ${E+w}px)`:"100dvh",width:R||y?`calc(100vw - ${R+y}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),s.scrollTop=p,s.scrollLeft=h,i.setAttribute("data-base-ui-scroll-locked",""),i.style.scrollBehavior="unset"}function y(){Object.assign(i.style,a),Object.assign(s.style,c),m||(i.scrollTop=p,i.scrollLeft=h,i.removeAttribute("data-base-ui-scroll-locked"),i.style.scrollBehavior=f)}v();let w=(0,n.addEventListener)(g,"resize",function(){y(),b.request(v)});return()=>{b.cancel(),y(),"function"==typeof g.removeEventListener&&w()}}(e)}}let h=new p;e.s(["useScrollLock",0,function(e=!0,t=null){(0,i.useIsoLayoutEffect)(()=>{if(e)return h.acquire(t)},[e,t])}])}]);
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.