1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{a as t}from"./vendor-html-parser-DOJ8foyv.js";var n=e(t()),r=function(){};function i(e){var t=[...arguments].slice(1);e&&e.addEventListener&&e.addEventListener.apply(e,t)}function a(e){var t=[...arguments].slice(1);e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var o=typeof window<`u`;function s(e){if(!e)return null;if(e.tagName===`BODY`)return e;if(e.tagName===`IFRAME`){var t=e.contentDocument;return t?t.body:null}return e.offsetParent?s(e.offsetParent):null}function c(e){var t=e||window.event;return t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)}var l=o&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),u=new Map,d=typeof document==`object`?document:void 0,f=!1,p=d?function(e,t){e===void 0&&(e=!0);var r=(0,n.useRef)(d.body);t||=r;var o=function(e){var t=u.get(e);t?u.set(e,{counter:t.counter+1,initialOverflow:t.initialOverflow}):(u.set(e,{counter:1,initialOverflow:e.style.overflow}),l?f||=(i(document,`touchmove`,c,{passive:!1}),!0):e.style.overflow=`hidden`)},p=function(e){var t=u.get(e);t&&(t.counter===1?(u.delete(e),l?(e.ontouchmove=null,f&&=(a(document,`touchmove`,c),!1)):e.style.overflow=t.initialOverflow):u.set(e,{counter:t.counter-1,initialOverflow:t.initialOverflow}))};(0,n.useEffect)(function(){var n=s(t.current);n&&(e?o(n):p(n))},[e,t.current]),(0,n.useEffect)(function(){var e=s(t.current);if(e)return function(){p(e)}},[])}:function(e,t){e===void 0&&(e=!0)};export{i as a,a as i,o as n,r,p as t}; 2//# sourceMappingURL=useLockBodyScroll-BGJrZGjL.js.map
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.