PageSourceSearch

https://eshop-2025.netlify.app/assets/js/polyfill.js

js eshop-2025.netlify.app collected 2026-10-03 10:42:50 UTC 6,231 bytes, 121 lines download raw bytes

vendor: 6,002 bytes, lines 1-110
1
2!function() {
3  "use strict";
4  function o() {
5      var o = window,
6          t = document;
7      if (!("scrollBehavior" in t.documentElement.style && !0 !== o.__forceSmoothScrollPolyfill__)) {
8          var l,
9              e = o.HTMLElement || o.Element,
10              r = 468,
11              i = {
12                  scroll: o.scroll || o.scrollTo,
13                  scrollBy: o.scrollBy,
14                  elementScroll: e.prototype.scroll || n,
15                  scrollIntoView: e.prototype.scrollIntoView
16              },
17              s = o.performance && o.performance.now ? o.performance.now.bind(o.performance) : Date.now,
18              c = (l = o.navigator.userAgent, new RegExp(["MSIE ", "Trident/", "Edge/"].join("|")).test(l) ? 1 : 0);
19          o.scroll = o.scrollTo = function() {
20              void 0 !== arguments[0] && (!0 !== f(arguments[0]) ? h.call(o, t.body, void 0 !== arguments[0].left ? ~~arguments[0].left : o.scrollX || o.pageXOffset, void 0 !== arguments[0].top ? ~~arguments[0].top : o.scrollY || o.pageYOffset) : i.scroll.call(o, void 0 !== arguments[0].left ? arguments[0].left : "object" != typeof arguments[0] ? arguments[0] : o.scrollX || o.pageXOffset, void 0 !== arguments[0].top ? arguments[0].top : void 0 !== arguments[1] ? arguments[1] : o.scrollY || o.pageYOffset))
21          },
22          o.scrollBy = function() {
23              void 0 !== arguments[0] && (f(arguments[0]) ? i.scrollBy.call(o, void 0 !== arguments[0].left ? arguments[0].left : "object" != typeof arguments[0] ? arguments[0] : 0, void 0 !== arguments[0].top ? arguments[0].top : void 0 !== arguments[1] ? arguments[1] : 0) : h.call(o, t.body, ~~arguments[0].left + (o.scrollX || o.pageXOffset), ~~arguments[0].top + (o.scrollY || o.pageYOffset)))
24          },
25          e.prototype.scroll = e.prototype.scrollTo = function() {
26              if (void 0 !== arguments[0])
27                  if (!0 !== f(arguments[0])) {
28                      var o = arguments[0].left,
29                          t = arguments[0].top;
30                      h.call(this, this, void 0 === o ? this.scrollLeft : ~~o, void 0 === t ? this.scrollTop : ~~t)
31                  } else {
32                      if ("number" == typeof arguments[0] && void 0 === arguments[1])
33                          throw new SyntaxError("Value could not be converted");
34                      i.elementScroll.call(this, void 0 !== arguments[0].left ? ~~arguments[0].left : "object" != typeof arguments[0] ? ~~arguments[0] : this.scrollLeft, void 0 !== arguments[0].top ? ~~arguments[0].top : void 0 !== arguments[1] ? ~~arguments[1] : this.scrollTop)
35                  }
36          },
37          e.prototype.scrollBy = function() {
38              void 0 !== arguments[0] && (!0 !== f(arguments[0]) ? this.scroll({
39                  left: ~~arguments[0].left + this.scrollLeft,
40                  top: ~~arguments[0].top + this.scrollTop,
41                  behavior: arguments[0].behavior
42              }) : i.elementScroll.call(this, void 0 !== arguments[0].left ? ~~arguments[0].left + this.scrollLeft : ~~arguments[0] + this.scrollLeft, void 0 !== arguments[0].top ? ~~arguments[0].top + this.scrollTop : ~~arguments[1] + this.scrollTop))
43          },
44          e.prototype.scrollIntoView = function() {
45              if (!0 !== f(arguments[0])) {
46                  var l = function(o) {
47                          for (; o !== t.body && !1 === (e = p(l = o, "Y") && a(l, "Y"), r = p(l, "X") && a(l, "X"), e || r);)
48                              o = o.parentNode || o.host;
49                          var l,
50                              e,
51                              r;
52                          return o
53                      }(this),
54                      e = l.getBoundingClientRect(),
55                      r = this.getBoundingClientRect();
56                  l !== t.body ? (h.call(this, l, l.scrollLeft + r.left - e.left, l.scrollTop + r.top - e.top), "fixed" !== o.getComputedStyle(l).position && o.scrollBy({
57                      left: e.left,
58                      top: e.top,
59                      behavior: "smooth"
60                  })) : o.scrollBy({
61                      left: r.left,
62                      top: r.top,
63                      behavior: "smooth"
64                  })
65              } else
66                  i.scrollIntoView.call(this, void 0 === arguments[0] || arguments[0])
67          }
68      }
69      function n(o, t) {
70          this.scrollLeft = o,
71          this.scrollTop = t
72      }
73      function f(o) {
74          if (null === o || "object" != typeof o || void 0 === o.behavior || "auto" === o.behavior || "instant" === o.behavior)
75              return !0;
76          if ("object" == typeof o && "smooth" === o.behavior)
77              return !1;
78          throw new TypeError("behavior member of ScrollOptions " + o.behavior + " is not a valid value for enumeration ScrollBehavior.")
79      }
80      function p(o, t) {
81          return "Y" === t ? o.clientHeight + c < o.scrollHeight : "X" === t ? o.clientWidth + c < o.scrollWidth : void 0
82      }
83      function a(t, l) {
84          var e = o.getComputedStyle(t, null)["overflow" + l];
85          return "auto" === e || "scroll" === e
86      }
87      function d(t) {
88          var l,
89              e,
90              i,
91              c,
92              n = (s() - t.startTime) / r;
93          c = n = n > 1 ? 1 : n,
94          l = .5 * (1 - Math.cos(Math.PI * c)),
95          e = t.startX + (t.x - t.startX) * l,
96          i = t.startY + (t.y - t.startY) * l,
97          t.method.call(t.scrollable, e, i),
98          e === t.x && i === t.y || o.requestAnimationFrame(d.bind(o, t))
99      }
100      function h(l, e, r) {
101          var c,
102              f,
103              p,
104              a,
105              h = s();
106          l === t.body ? (c = o, f = o.scrollX || o.pageXOffset, p = o.scrollY || o.pageYOffset, a = i.scroll) : (c = l, f = l.scrollLeft, p = l.scrollTop, a = n),
107          d({
108              scrollable: c,
109              method: a,
110              startTime: h,
111              startX: f,
112              startY: p,
113              x: e,
114              y: r
115          })
116      }
117  }
118  "object" == typeof exports && "undefined" != typeof module ? module.exports = {
119      polyfill: o
120  } : o()
121}();

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.