PageSourceSearch

https://www.hotely.cz/wsngo/js/nds-listing-map/collision.js?v=443138

js hotely.cz collected 2026-10-01 12:40:00 UTC 943 bytes, 1 lines download raw bytes

1export const DEFAULT_COLLISION_GRID_CELL_PX=64,deriveCollisionGridCellPx=o=>{if(!o||o.size===0)return 64;let t=0;for(const r of o.values())t=Math.max(t,r.width??0,r.height??0);return Math.max(64,t)},rectGridKeys=(o,t=64)=>{const r=Math.floor(o.left/t),n=Math.floor(o.right/t),e=Math.floor(o.top/t),L=Math.floor(o.bottom/t),s=n-r+1,_=L-e+1;return Array.from({length:s*_},(l,i)=>{const a=r+Math.floor(i/_),f=e+i%_;return`${String(a)}:${String(f)}`})},rectsOverlap=(o,t)=>!(o.right<=t.left||o.left>=t.right||o.bottom<=t.top||o.top>=t.bottom),orderEntriesForCollision=(o,t,r)=>{const n=o.map(s=>t.get(s)).filter(Boolean);if(!r)return n;const e=n.filter(s=>String(s.data.id)===r),L=n.filter(s=>String(s.data.id)!==r);return[...e,...L]},rectCollides=(o,t,r=64)=>rectGridKeys(t,r).some(n=>{const e=o.get(n);return e?e.some(L=>rectsOverlap(t,L)):!1}),acceptRect=(o,t,r=64)=>{rectGridKeys(t,r).forEach(n=>{const e=o.get(n);e?e.push(t):o.set(n,[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.