PageSourceSearch

https://tsu.ru/local/assets/js/svg4everybody.min.js

js tsu.ru collected 2026-10-01 08:59:53 UTC 2,973 bytes, 96 lines download raw bytes

1!(function (a, b) {
2  'function' == typeof define && define.amd
3    ? define([], function () {
4        return (a.svg4everybody = b())
5      })
6    : 'object' == typeof module && module.exports
7    ? (module.exports = b())
8    : (a.svg4everybody = b())
9})(this, function () {
10  function a(a, b, c) {
11    if (c) {
12      var d = document.createDocumentFragment(),
13        e = !b.hasAttribute('viewBox') && c.getAttribute('viewBox')
14      e && b.setAttribute('viewBox', e)
15      for (var f = c.cloneNode(!0); f.childNodes.length; )
16        d.appendChild(f.firstChild)
17      a.appendChild(d)
18    }
19  }
20  function b(b) {
21    ;(b.onreadystatechange = function () {
22      if (4 === b.readyState) {
23        var c = b._cachedDocument
24        c ||
25          ((c = b._cachedDocument =
26            document.implementation.createHTMLDocument('')),
27          (c.body.innerHTML = b.responseText),
28          (b._cachedTarget = {})),
29          b._embeds.splice(0).map(function (d) {
30            var e = b._cachedTarget[d.id]
31            e || (e = b._cachedTarget[d.id] = c.getElementById(d.id)),
32              a(d.parent, d.svg, e)
33          })
34      }
35    }),
36      b.onreadystatechange()
37  }
38  function c(c) {
39    function e() {
40      for (var c = 0; c < o.length; ) {
41        var h = o[c],
42          i = h.parentNode,
43          j = d(i),
44          k = h.getAttribute('xlink:href') || h.getAttribute('href')
45        if (
46          (!k && g.attributeName && (k = h.getAttribute(g.attributeName)),
47          j && k)
48        ) {
49          if (f)
50            if (!g.validate || g.validate(k, j, h)) {
51              i.removeChild(h)
52              var l = k.split('#'),
53                q = l.shift(),
54                r = l.join('#')
55              if (q.length) {
56                var s = m[q]
57                s ||
58                  ((s = m[q] = new XMLHttpRequest()),
59                  s.open('GET', q),
60                  s.send(),
61                  (s._embeds = [])),
62                  s._embeds.push({ parent: i, svg: j, id: r }),
63                  b(s)
64              } else a(i, j, document.getElementById(r))
65            } else ++c, ++p
66        } else ++c
67      }
68      ;(!o.length || o.length - p > 0) && n(e, 67)
69    }
70    var f,
71      g = Object(c),
72      h = /\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/,
73      i = /\bAppleWebKit\/(\d+)\b/,
74      j = /\bEdge\/12\.(\d+)\b/,
75      k = /\bEdge\/.(\d+)\b/,
76      l = window.top !== window.self
77    f =
78      'polyfill' in g
79        ? g.polyfill
80        : h.test(navigator.userAgent) ||
81          (navigator.userAgent.match(j) || [])[1] < 10547 ||
82          (navigator.userAgent.match(i) || [])[1] < 537 ||
83          (k.test(navigator.userAgent) && l)
84    var m = {},
85      n = window.requestAnimationFrame || setTimeout,
86      o = document.getElementsByTagName('use'),
87      p = 0
88    f && e()
89  }
90  function d(a) {
91    for (var b = a; 'svg' !== b.nodeName.toLowerCase() && (b = b.parentNode); );
92    return b
93  }
94  return c
95})
96svg4everybody()

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.