PageSourceSearch

https://saleup.ai/wp-content/themes/alba/js/pace.min.js?ver=5.0.22

js saleup.ai collected 2026-10-05 13:06:43 UTC 20,700 bytes, 370 lines download raw bytes

1// (function() {
2//     var t, e, n, r, s, o, i, u, a, c, l, p, h, f, d, g, m, y, v, w, b, k, S, q, L, x, P, T, R, j, E, O, M, A, N, _, F, C, U, W, X, D, H, I, z, G, B, J, K, Q = [].slice,
3//         V = {}.hasOwnProperty,
4//         Y = function(t, e) {
5//             function n() {
6//                 this.constructor = t
7//             }
8//             for (var r in e) V.call(e, r) && (t[r] = e[r]);
9//             return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t
10//         },
11//         Z = [].indexOf || function(t) {
12//             for (var e = 0, n = this.length; e < n; e++)
13//                 if (e in this && this[e] === t) return e;
14//             return -1
15//         };
16//     for (b = {
17//             catchupTime: 100,
18//             initialRate: .03,
19//             minTime: 250,
20//             ghostTime: 100,
21//             maxProgressPerFrame: 20,
22//             easeFactor: 1.25,
23//             startOnPageLoad: !0,
24//             restartOnPushState: !0,
25//             restartOnRequestAfter: 500,
26//             target: "body",
27//             elements: {
28//                 checkInterval: 100,
29//                 selectors: ["body"]
30//             },
31//             eventLag: {
32//                 minSamples: 10,
33//                 sampleCount: 3,
34//                 lagThreshold: 3
35//             },
36//             ajax: {
37//                 trackMethods: ["GET"],
38//                 trackWebSockets: !0,
39//                 ignoreURLs: []
40//             }
41//         }, R = function() {
42//             var t;
43//             return null != (t = "undefined" != typeof performance && null !== performance && "function" == typeof performance.now ? performance.now() : void 0) ? t : +new Date
44//         }, E = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame, w = window.cancelAnimationFrame || window.mozCancelAnimationFrame, null == E && (E = function(t) {
45//             return setTimeout(t, 50)
46//         }, w = function(t) {
47//             return clearTimeout(t)
48//         }), M = function(t) {
49//             var e, n;
50//             return e = R(), (n = function() {
51//                 var r;
52//                 return (r = R() - e) >= 33 ? (e = R(), t(r, function() {
53//                     return E(n)
54//                 })) : setTimeout(n, 33 - r)
55//             })()
56//         }, O = function() {
57//             var t, e, n;
58//             return n = arguments[0], e = arguments[1], t = 3 <= arguments.length ? Q.call(arguments, 2) : [], "function" == typeof n[e] ? n[e].apply(n, t) : n[e]
59//         }, k = function() {
60//             var t, e, n, r, s, o, i;
61//             for (e = arguments[0], o = 0, i = (r = 2 <= arguments.length ? Q.call(arguments, 1) : []).length; o < i; o++)
62//                 if (n = r[o])
63//                     for (t in n) V.call(n, t) && (s = n[t], null != e[t] && "object" == typeof e[t] && null != s && "object" == typeof s ? k(e[t], s) : e[t] = s);
64//             return e
65//         }, m = function(t) {
66//             var e, n, r, s, o;
67//             for (n = e = 0, s = 0, o = t.length; s < o; s++) r = t[s], n += Math.abs(r), e++;
68//             return n / e
69//         }, q = function(t, e) {
70//             var n, r, s;
71//             if (null == t && (t = "options"), null == e && (e = !0), s = document.querySelector("[data-pace-" + t + "]")) {
72//                 if (n = s.getAttribute("data-pace-" + t), !e) return n;
73//                 try {
74//                     return JSON.parse(n)
75//                 } catch (t) {
76//                     return r = t, "undefined" != typeof console && null !== console ? console.error("Error parsing inline pace options", r) : void 0
77//                 }
78//             }
79//         }, i = function() {
80//             function t() {}
81//             return t.prototype.on = function(t, e, n, r) {
82//                 var s;
83//                 return null == r && (r = !1), null == this.bindings && (this.bindings = {}), null == (s = this.bindings)[t] && (s[t] = []), this.bindings[t].push({
84//                     handler: e,
85//                     ctx: n,
86//                     once: r
87//                 })
88//             }, t.prototype.once = function(t, e, n) {
89//                 return this.on(t, e, n, !0)
90//             }, t.prototype.off = function(t, e) {
91//                 var n, r, s;
92//                 if (null != (null != (r = this.bindings) ? r[t] : void 0)) {
93//                     if (null == e) return delete this.bindings[t];
94//                     for (n = 0, s = []; n < this.bindings[t].length;) this.bindings[t][n].handler === e ? s.push(this.bindings[t].splice(n, 1)) : s.push(n++);
95//                     return s
96//                 }
97//             }, t.prototype.trigger = function() {
98//                 var t, e, n, r, s, o, i, u, a;
99//                 if (n = arguments[0], t = 2 <= arguments.length ? Q.call(arguments, 1) : [], null != (i = this.bindings) ? i[n] : void 0) {
100//                     for (s = 0, a = []; s < this.bindings[n].length;) r = (u = this.bindings[n][s]).handler, e = u.ctx, o = u.once, r.apply(null != e ? e : this, t), o ? a.push(this.bindings[n].splice(s, 1)) : a.push(s++);
101//                     return a
102//                 }
103//             }, t
104//         }(), c = window.Pace || {}, window.Pace = c, k(c, i.prototype), j = c.options = k({}, b, window.paceOptions, q()), H = 0, z = (B = ["ajax", "document", "eventLag", "elements"]).length; H < z; H++) !0 === j[F = B[H]] && (j[F] = b[F]);
105//     a = function(t) {
106//         function e() {
107//             return J = e.__super__.constructor.apply(this, arguments)
108//         }
109//         return Y(e, t), e
110//     }(Error), e = function() {
111//         function t() {
112//             this.progress = 0
113//         }
114//         return t.prototype.getElement = function() {
115//             var t;
116//             if (null == this.el) {
117//                 if (!(t = document.querySelector(j.target))) throw new a;
118//                 this.el = document.createElement("div"), this.el.className = "pace pace-active", document.body.className = document.body.className.replace(/pace-done/g, ""), document.body.className += " pace-running", this.el.innerHTML = '<div class="pace-progress">\n  <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>', null != t.firstChild ? t.insertBefore(this.el, t.firstChild) : t.appendChild(this.el)
119//             }
120//             return this.el
121//         }, t.prototype.finish = function() {
122//             var t;
123//             return t = this.getElement(), t.className = t.className.replace("pace-active", ""), t.className += " pace-inactive", document.body.className = document.body.className.replace("pace-running", ""), document.body.className += " pace-done"
124//         }, t.prototype.update = function(t) {
125//             return this.progress = t, this.render()
126//         }, t.prototype.destroy = function() {
127//             try {
128//                 this.getElement().parentNode.removeChild(this.getElement())
129//             } catch (t) {
130//                 a = t
131//             }
132//             return this.el = void 0
133//         }, t.prototype.render = function() {
134//             var t, e, n, r, s, o, i;
135//             if (null == document.querySelector(j.target)) return !1;
136//             for (t = this.getElement(), r = "translate3d(" + this.progress + "%, 0, 0)", s = 0, o = (i = ["webkitTransform", "msTransform", "transform"]).length; s < o; s++) e = i[s], t.children[0].style[e] = r;
137//             return (!this.lastRenderedProgress || this.lastRenderedProgress | 0 !== this.progress | 0) && (t.children[0].setAttribute("data-progress-text", (0 | this.progress) + "%"), this.progress >= 100 ? n = "99" : (n = this.progress < 10 ? "0" : "", n += 0 | this.progress), t.children[0].setAttribute("data-progress", "" + n)), this.lastRenderedProgress = this.progress
138//         }, t.prototype.done = function() {
139//             return this.progress >= 100
140//         }, t
141//     }(), u = function() {
142//         function t() {
143//             this.bindings = {}
144//         }
145//         return t.prototype.trigger = function(t, e) {
146//             var n, r, s, o, i;
147//             if (null != this.bindings[t]) {
148//                 for (i = [], r = 0, s = (o = this.bindings[t]).length; r < s; r++) n = o[r], i.push(n.call(this, e));
149//                 return i
150//             }
151//         }, t.prototype.on = function(t, e) {
152//             var n;
153//             return null == (n = this.bindings)[t] && (n[t] = []), this.bindings[t].push(e)
154//         }, t
155//     }(), D = window.XMLHttpRequest, X = window.XDomainRequest, W = window.WebSocket, S = function(t, e) {
156//         var n, r;
157//         r = [];
158//         for (n in e.prototype) try {
159//             null == t[n] && "function" != typeof e[n] ? "function" == typeof Object.defineProperty ? r.push(Object.defineProperty(t, n, {
160//                 get: function() {
161//                     return e.prototype[n]
162//                 },
163//                 configurable: !0,
164//                 enumerable: !0
165//             })) : r.push(t[n] = e.prototype[n]) : r.push(void 0)
166//         } catch (t) {
167//             t
168//         }
169//         return r
170//     }, P = [], c.ignore = function() {
171//         var t, e, n;
172//         return e = arguments[0], t = 2 <= arguments.length ? Q.call(arguments, 1) : [], P.unshift("ignore"), n = e.apply(null, t), P.shift(), n
173//     }, c.track = function() {
174//         var t, e, n;
175//         return e = arguments[0], t = 2 <= arguments.length ? Q.call(arguments, 1) : [], P.unshift("track"), n = e.apply(null, t), P.shift(), n
176//     }, _ = function(t) {
177//         var e;
178//         if (null == t && (t = "GET"), "track" === P[0]) return "force";
179//         if (!P.length && j.ajax) {
180//             if ("socket" === t && j.ajax.trackWebSockets) return !0;
181//             if (e = t.toUpperCase(), Z.call(j.ajax.trackMethods, e) >= 0) return !0
182//         }
183//         return !1
184//     }, l = function(t) {
185//         function e() {
186//             var t, n = this;
187//             e.__super__.constructor.apply(this, arguments), t = function(t) {
188//                 var e;
189//                 return e = t.open, t.open = function(r, s, o) {
190//                     return _(r) && n.trigger("request", {
191//                         type: r,
192//                         url: s,
193//                         request: t
194//                     }), e.apply(t, arguments)
195//                 }
196//             }, window.XMLHttpRequest = function(e) {
197//                 var n;
198//                 return n = new D(e), t(n), n
199//             };
200//             try {
201//                 S(window.XMLHttpRequest, D)
202//             } catch (t) {}
203//             if (null != X) {
204//                 window.XDomainRequest = function() {
205//                     var e;
206//                     return e = new X, t(e), e
207//                 };
208//                 try {
209//                     S(window.XDomainRequest, X)
210//                 } catch (t) {}
211//             }
212//             if (null != W && j.ajax.trackWebSockets) {
213//                 window.WebSocket = function(t, e) {
214//                     var r;
215//                     return r = null != e ? new W(t, e) : new W(t), _("socket") && n.trigger("request", {
216//                         type: "socket",
217//                         url: t,
218//                         protocols: e,
219//                         request: r
220//                     }), r
221//                 };
222//                 try {
223//                     S(window.WebSocket, W)
224//                 } catch (t) {}
225//             }
226//         }
227//         return Y(e, u), e
228//     }(), I = null, N = function(t) {
229//         var e, n, r, s;
230//         for (n = 0, r = (s = j.ajax.ignoreURLs).length; n < r; n++)
231//             if ("string" == typeof(e = s[n])) {
232//                 if (-1 !== t.indexOf(e)) return !0
233//             } else if (e.test(t)) return !0;
234//         return !1
235//     }, (L = function() {
236//         return null == I && (I = new l), I
237//     })().on("request", function(e) {
238//         var n, r, s, o, i;
239//         if (o = e.type, s = e.request, i = e.url, !N(i)) return c.running || !1 === j.restartOnRequestAfter && "force" !== _(o) ? void 0 : (r = arguments, "boolean" == typeof(n = j.restartOnRequestAfter || 0) && (n = 0), setTimeout(function() {
240//             var e, n, i, u, a;
241//             if ("socket" === o ? s.readyState < 2 : 0 < (i = s.readyState) && i < 4) {
242//                 for (c.restart(), a = [], e = 0, n = (u = c.sources).length; e < n; e++) {
243//                     if ((F = u[e]) instanceof t) {
244//                         F.watch.apply(F, r);
245//                         break
246//                     }
247//                     a.push(void 0)
248//                 }
249//                 return a
250//             }
251//         }, n))
252//     }), t = function() {
253//         function t() {
254//             var t = this;
255//             this.elements = [], L().on("request", function() {
256//                 return t.watch.apply(t, arguments)
257//             })
258//         }
259//         return t.prototype.watch = function(t) {
260//             var e, n, r, s;
261//             if (r = t.type, e = t.request, s = t.url, !N(s)) return n = "socket" === r ? new f(e) : new d(e), this.elements.push(n)
262//         }, t
263//     }(), d = function() {
264//         return function(t) {
265//             var e, n, r, s, o, i = this;
266//             if (this.progress = 0, null != window.ProgressEvent)
267//                 for (t.addEventListener("progress", function(t) {
268//                         return t.lengthComputable ? i.progress = 100 * t.loaded / t.total : i.progress = i.progress + (100 - i.progress) / 2
269//                     }, !1), n = 0, r = (o = ["load", "abort", "timeout", "error"]).length; n < r; n++) e = o[n], t.addEventListener(e, function() {
270//                     return i.progress = 100
271//                 }, !1);
272//             else s = t.onreadystatechange, t.onreadystatechange = function() {
273//                 var e;
274//                 return 0 === (e = t.readyState) || 4 === e ? i.progress = 100 : 3 === t.readyState && (i.progress = 50), "function" == typeof s ? s.apply(null, arguments) : void 0
275//             }
276//         }
277//     }(), f = function() {
278//         return function(t) {
279//             var e, n, r, s, o = this;
280//             for (this.progress = 0, n = 0, r = (s = ["error", "open"]).length; n < r; n++) e = s[n], t.addEventListener(e, function() {
281//                 return o.progress = 100
282//             }, !1)
283//         }
284//     }(), r = function() {
285//         return function(t) {
286//             var e, n, r, o;
287//             for (null == t && (t = {}), this.elements = [], null == t.selectors && (t.selectors = []), n = 0, r = (o = t.selectors).length; n < r; n++) e = o[n], this.elements.push(new s(e))
288//         }
289//     }(), s = function() {
290//         function t(t) { 
291//             this.selector = t, this.progress = 0, this.check()
292//         }
293//         return t.prototype.check = function() {
294//             var t = this;
295//             return document.querySelector(this.selector) ? this.done() : setTimeout(function() {
296//                 return t.check()
297//             }, j.elements.checkInterval)
298//         }, t.prototype.done = function() {
299//             return this.progress = 100
300//         }, t
301//     }(), n = function() {
302//         function t() {
303//             var t, e, n = this;
304//             this.progress = null != (e = this.states[document.readyState]) ? e : 100, t = document.onreadystatechange, document.onreadystatechange = function() {
305//                 return null != n.states[document.readyState] && (n.progress = n.states[document.readyState]), "function" == typeof t ? t.apply(null, arguments) : void 0
306//             }
307//         }
308//         return t.prototype.states = {
309//             loading: 0,
310//             interactive: 50,
311//             complete: 100
312//         }, t
313//     }(), o = function() {
314//         return function() {
315//             var t, e, n, r, s, o = this;
316//             this.progress = 0, t = 0, s = [], r = 0, n = R(), e = setInterval(function() {
317//                 var i;
318//                 return i = R() - n - 50, n = R(), s.push(i), s.length >
318 j.eventLag.sampleCount && s.shift(), t = m(s), ++r >= j.eventLag.minSamples && t < j.eventLag.lagThreshold ? (o.progress = 100, clearInterval(e)) : o.progress = 3 / (t + 3) * 100
319//             }, 50)
320//         }
321//     }(), h = function() {
322//         function t(t) {
323//             this.source = t, this.last = this.sinceLastUpdate = 0, this.rate = j.initialRate, this.catchup = 0, this.progress = this.lastProgress = 0, null != this.source && (this.progress = O(this.source, "progress"))
324//         }
325//         return t.prototype.tick = function(t, e) {
326//             var n;
327//             return null == e && (e = O(this.source, "progress")), e >= 100 && (this.done = !0), e === this.last ? this.sinceLastUpdate += t : (this.sinceLastUpdate && (this.rate = (e - this.last) / this.sinceLastUpdate), this.catchup = (e - this.progress) / j.catchupTime, this.sinceLastUpdate = 0, this.last = e), e > this.progress && (this.progress += this.catchup * t), n = 1 - Math.pow(this.progress / 100, j.easeFactor), this.progress += n * this.rate * t, this.progress = Math.min(this.lastProgress + j.maxProgressPerFrame, this.progress), this.progress = Math.max(0, this.progress), this.progress = Math.min(100, this.progress), this.lastProgress = this.progress, this.progress
328//         }, t
329//     }(), C = null, A = null, y = null, U = null, g = null, v = null, c.running = !1, x = function() {
330//         if (j.restartOnPushState) return c.restart()
331//     }, null != window.history.pushState && (G = window.history.pushState, window.history.pushState = function() {
332//         return x(), G.apply(window.history, arguments)
333//     }), null != window.history.replaceState && (K = window.history.replaceState, window.history.replaceState = function() {
334//         return x(), K.apply(window.history, arguments)
335//     }), p = {
336//         ajax: t,
337//         elements: r,
338//         document: n,
339//         eventLag: o
340//     }, (T = function() {
341//         var t, n, r, s, o, i, u, a;
342//         for (c.sources = C = [], n = 0, s = (i = ["ajax", "elements", "document", "eventLag"]).length; n < s; n++) !1 !== j[t = i[n]] && C.push(new p[t](j[t]));
343//         for (r = 0, o = (a = null != (u = j.extraSources) ? u : []).length; r < o; r++) F = a[r], C.push(new F(j));
344//         return c.bar = y = new e, A = [], U = new h
345//     })(), c.stop = function() {
346//         return c.trigger("stop"), c.running = !1, y.destroy(), v = !0, null != g && ("function" == typeof w && w(g), g = null), T()
347//     }, c.restart = function() {
348//         return c.trigger("restart"), c.stop(), c.start()
349//     }, c.go = function() {
350//         var t;
351//         return c.running = !0, y.render(), t = R(), v = !1, g = M(function(e, n) {
352//             var r, s, o, i, u, a, l, p, f, d, g, m, w, b, k;
353//             for (100 - y.progress, s = d = 0, o = !0, a = g = 0, w = C.length; g < w; a = ++g)
354//                 for (F = C[a], f = null != A[a] ? A[a] : A[a] = [], l = m = 0, b = (u = null != (k = F.elements) ? k : [F]).length; m < b; l = ++m) i = u[l], o &= (p = null != f[l] ? f[l] : f[l] = new h(i)).done, p.done || (s++, d += p.tick(e));
355//             return r = d / s, y.update(U.tick(e, r)), y.done() || o || v ? (y.update(100), c.trigger("done"), setTimeout(function() {
356//                 return y.finish(), c.running = !1, c.trigger("hide")
357//             }, Math.max(j.ghostTime, Math.max(j.minTime - (R() - t), 0)))) : n()
358//         })
359//     }, c.start = function(t) {
360//         k(j, t), c.running = !0;
361//         try {
362//             y.render()
363//         } catch (t) {
364//             a = t
365//         }
366//         return document.querySelector(".pace") ? (c.trigger("start"), c.go()) : setTimeout(c.start, 50)
367//     }, "function" == typeof define && define.amd ? define(["pace"], function() {
368//         return c
369//     }) : "object" == typeof exports ? module.exports = c : j.startOnPageLoad && c.start()
370// }).call(this);

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.