PageSourceSearch

https://cdn.infourok.ru/assets/core/controllers/pages/main/utils-OzXdz6T.js

js infourok.ru collected 2026-09-24 08:52:59 UTC 525 bytes, 19 lines download raw bytes

1export function setsEqual(a, b) {
2    if (a.size !== b.size) return false;
3    var arr = Array.from(a);
4    return arr.every(function(v) {
5        return b.has(v);
6    });
7}
8export function parseIds(raw) {
9    if (!raw) return [];
10    return raw.split(",").map(function(s) {
11        return Number(s.trim());
12    }).filter(function(n) {
13        return Number.isFinite(n);
14    });
15}
16export function getDocTop(el) {
17    var rect = el.getBoundingClientRect();
18    return rect.top + (window.scrollY || window.pageYOffset || 0);
19}

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.