vendor: 6,309 bytes, lines 1-10
1import{a as K}from"./chunk-7CAOOJVW.js";import{b as R,f as y}from"./chunk-WIALCYDY.js";import{f as _}from"./chunk-N2ZCN6XY.js";import{a as g}from"./chunk-CB6LZ537.js";import{i as p}from"./chunk-XRTLPMPO.js";import{a as B}from"./chunk-UAA7M346.js";import{s as H}from"./chunk-ZI7TAH2K.js";import{c as I}from"./chunk-GGDEANQW.js";import{c as G}from"./chunk-K46K3RI5.js";var Y="1.6.16";var b=function(){return typeof window>"u"},k=function(i){i=i||navigator.userAgent;var t=/(iPad).*OS\s([\d_]+)/.test(i),r=!t&&/(iPhone\sOS)\s([\d_]+)/.test(i),o=/(Android);?[\s/]+([\d.]+)?/.test(i),n=r||t;return{ios:n,android:o}};function F(e){if(b())return!1;if(!e)throw new Error("options must be provided");var i=!1,t={get passive(){i=!0}},r=function(){},o="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(o,r,t),window.removeEventListener(o,r,t);var n=e.capture;return i?e:typeof n<"u"?n:!1}function J(e){return!1}function A(){return"__BSL_PREVENT_DEFAULT__"in window||(window.__BSL_PREVENT_DEFAULT__=function(e){e.cancelable&&e.preventDefault()}),window.__BSL_PREVENT_DEFAULT__}function Q(e){return e?Array.isArray(e)?e:[e]:[]}function Z(e){var i=window.getComputedStyle(e),t=i.flexDirection;return{column:t==="column-reverse",row:t==="row-reverse"}}function ee(e,i,t){var r=e.scrollTop,o=e.scrollLeft,n=e.scrollWidth,l=e.scrollHeight,c=e.clientWidth,s=e.clientHeight,a=Z(e),d,m;a.column?(d=t>0&&Math.abs(r)+s+1>=l,m=t<0&&Math.abs(r)<=1):(d=t>0&&r===0,m=t<0&&r+s+1>=l);var v,L;return a.row?(v=i>0&&Math.abs(o)+c+1>=n,L=i<0&&Math.abs(o)<=1):(v=i>0&&o===0,L=i<0&&o+c+1>=n),{isOnTop:d,isOnBottom:m,isOnLeft:v,isOnRight:L}}var h={lockedNum:0,lockedElements:[],unLockCallback:null,documentListenerAdded:!1,initialClientPos:{clientX:0,clientY:0}};function E(e){if(b())return h;if(!e?.useGlobalLockState)return E.lockState;var i="__BSL_LOCK_STATE__"in window?Object.assign(Object.assign({},h),window.__BSL_LOCK_STATE__):h;return window.__BSL_LOCK_STATE__=i,i}E.lockState=h;function te(e,i,t){if(i){var r=e.targetTouches[0].clientX-t.clientX,o=e.targetTouches[0].clientY-t.clientY,n=Math.abs(o)>Math.abs(r),l=ee(i,r,o),c=l.isOnTop,s=l.isOnBottom,a=l.isOnLeft,d=l.isOnRight;if(n&&(c||s)||!n&&(a||d))return A()(e)}return e.stopPropagation(),!0}function P(e){var i,t=document.documentElement,r=Object.assign({},t.style),o=(i=e?.withPaddingRight)!==null&&i!==void 0?i:!0,n=window.innerWidth-t.clientWidth,l=parseInt(window.getComputedStyle(t).paddingRight,10);return t.style.overflow="hidden",t.style.boxSizing="border-box",o&&(t.style.paddingRight="".concat(n+l,"px")),function(){["overflow","boxSizing","paddingRight"].forEach(function(c){t.style[c]=r[c]||""})}}function ie(e){var i=document.documentElement,t=document.body,r=i.scrollTop||t.scrollTop,o=Object.assign({},i.style),n=Object.assign({},t.style);return i.style.height="100%",i.style.overflow="hidden",t.style.top="-".concat(r,"px"),t.style.width="100%",t.style.height="auto",t.style.position="fixed",t.style.overflow=e?.overflowType||"hidden",function(){i.style.height=o.height||"",i.style.overflow=o.overflow||"",["top","width","height","overflow","position"].forEach(function(c){t.style[c]=n[c]||""});var l="scrollBehavior"in document.documentElement.style;l?window.scrollTo({top:r,behavior:"instant"}):window.scrollTo(0,r)}}function V(e,i){if(!b()){J(e);var t=k(),r=E(i);t.ios?(Q(e).filter(function(o){return o&&r.lockedElements.indexOf(o)===-1}).forEach(function(o){o.ontouchstart=function(n){var l=n.targetTouches[0],c=l.clientX,s=l.clientY;r.initialClientPos={clientX:c,clientY:s}},o.ontouchmove=function(n){te(n,o,r.initialClientPos)},r.lockedElements.push(o)}),re(r),i?.setOverflowForIOS&&(r.unLockCallback=P(i))):r.lockedNum<=0&&(r.unLockCallback=t.android?ie(i):P(i)),r.lockedNum+=1}}function $(e){var i;if(!b()){var t=E(e);if(t.lockedNum=0,(i=t.unLockCallback)===null||i===void 0||i.call(t),!!k().ios){if(t.lockedElements.length)for(var r=t.lockedElements.pop();r;)r.ontouchmove=null,r.ontouchstart=null,r=t.lockedElements.pop();oe(t)}}}function re(e){k().ios&&(e.documentListenerAdded||(document.addEventListener("touchmove",A(),F({passive:!1})),e.documentListenerAdded=!0))}function oe(e){e.documentListenerAdded&&(document.removeEventListener("touchmove",A(),F({passive:!1})),e.documentListenerAdded=!1)}var M=["when-visible","enable","disable","toggle","smart-nav","preserve"],O={media:{key:"media"},gap:{key:"gap",values:["true","false"]},overflow:{key:"overflow",values:["hidden","clip"]}},W={medium:"(max-width: 991px)",small:"(max-width: 767px)",tiny:"(max-width: 479px)"};var{getElementSelector:u,getAttribute:f,queryAllElements:j,getSettingSelector:ue,hasAttributeValue:fe}=B(H,M,O);var x=!1,N=()=>x,w=e=>{x=!0;let i=f(e,"overflow",{filterInvalid:!0}),t=f(e,"gap",{filterInvalid:!0})!=="false";V(e,{overflowType:i,withPaddingRight:t})},S=()=>{x=!1,$()},T=e=>{if(y(e))return e;let i=e.querySelectorAll("*");for(let t of i)if(p(t)&&y(t))return t};var q=e=>g(window,"click",({target:t})=>{if(!p(t))return;let r=t.closest(u("toggle")),o=r||t.closest(u("disable")),n=r||t.closest(u("enable")),l=o||n;if(!l)return;let c=f(l,"media");if(!(c&&!window.matchMedia(c).matches)){if(N()&&n)S();else if(!N()&&p(o))for(let s of new Set([...e,T(o)||o]))w(s)}});var D=G(K(),1);var U=new Map,C=(e,i)=>{let t=U.get(e);if(!t)return;let{matchMedia:r,firstScrollableElement:o,visible:n}=t;if(r&&!window.matchMedia(r).matches)return;let l=R(e);if(l!==n){if(n&&S(),l)for(let c of new Set([...i,o]))w(c);t.visible=l}},z=e=>{let i=u("smart-nav"),t=document.querySelectorAll(`${u("when-visible")}, ${i}.${_.navMenu}, ${i} .${_.navMenu}`),o=(0,D.default)(s=>{let a=s[0].target;C(a,e)},25),n=new MutationObserver(o);for(let s of t){let a=f(s,"media"),d=s.closest(".w-nav");if(d){let v=d.dataset.collapse;v&&(a=W[v])}let m=T(s)||s;U.set(s,{firstScrollableElement:m,matchMedia:a}),C(s,e),n.observe(s,{attributes:!0,attributeFilter:["style","class"]})}let l=(0,D.default)(()=>{for(let s of t)C(s,e)},250),c=g(window,"resize",l);return()=>{n.disconnect(),c()}};var ne=async()=>{await I();let e=j("preserve"),i=q(e),t=z(e);return{destroy(){i(),t()}}};export{M as ELEMENTS,O as SETTINGS,ne as init,Y as version}; 2/*! Bundled license information: 3 4tua-body-scroll-lock/dist/tua-bsl.mjs: 5 (** 6 * tua-body-scroll-lock v1.6.3 7 * (c) 2026 Evinma, BuptStEve 8 * @license MIT 9 *) 10*/
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.