PageSourceSearch

https://peacock.studio/assets/js/raster-pro-min.js

js peacock.studio collected 2026-10-07 03:35:18 UTC 30,625 bytes, 953 lines download raw bytes

1(function () {
2		function Ma() {
3				var b = location.hash.substr(1);
4				return"screen"==b?"raster":"print"==b?"image":null
5		}
6		
7		function R(b, d) {
8				for (var g in d) b.style[g] = d[g];
9		}
10		function ta() {
11				var b = arguments.length - 1,
12						d = arguments[b],
13						g;
14				for (g in d) for (var l = b; l--; ) arguments[l].style[g] = d[g];
15		}
16		function jb(b) {
17				b.style.opacity = "0" == b.style.opacity ? "1" : "0";
18		}
19		function n(b, d, g, l) {
20				return isNaN(b) ? d : b < g ? g : b > l ? l : b;
21		}
22		function Na(b, d, g) {
23				g *= d;
24				d = Math.max(b - g, 0);
25				b = Math.min(b + g, 255);
26				return Math.round(d + Math.random() * (b - d));
27		}
28		function Da(b, d) {
29				return 0.2126 * b[d] + 0.7152 * b[d + 1] + 0.0722 * b[d + 2];
30		}
31		function Oa() {
32				var b = document.createElement("canvas"),
33						d = b.getContext("2d");
34				b.width = b.height = 500;
35				d.fillStyle = "gray";
36				d.fillRect(0, 0, 500, 500);
37				return b.toDataURL();
38		}
39		function Pa(b, d) {
40				var g = document.createElement("canvas"),
41						l = g.getContext("2d"),
42						L = 0.375 * b,
43						n = 0.125 * b;
44				g.width = g.height = b;
45				l.fillStyle = d;
46				l.globalAlpha = 0.125;
47				l.translate(b / 2, b / 2);
48				for (var t = 0; 8 > t; t++) l.beginPath(), l.moveTo(L, 0), l.arc(L, 0, n, 0, 2 * Math.PI), l.fill(), (l.globalAlpha += 0.125), l.rotate(Math.PI / 4);
49				R(g, { position: "absolute", top: 0, left: 0, bottom: 0, right: 0, margin: "auto", width: b + "px", height: b + "px" });
50				return g;
51		}
52		function M() {
53				if (arguments.length && arguments[0] === PASSKEY) {
54						var b = arguments[1],
55								d = b.errorType;
56						if (b.hostClass)
57								var g = b.hostClass.getID(),
58										l = b.hostClass.prototype.className;
59						else (g = M.getID()), (l = "SoftMap");
60				} else (d = 'SoftMap "set"'), (g = M.getID()), (l = "SoftMap");
61				var L = 0,
62						n = N.createHiddenZone,
63						t = N.keyIsObject,
64						R = N.keyIsFixed,
65						O = N.hiddenZoneOf,
66						J = N.keyHasHiddenZone,
67						y = N.keyKnowsID;
68				this.set = function (b, l) {
69						if (!t(b)) return console.log(d + " ERROR: " + b + " is not an Object"), !1;
70						if (J(b)) y(b, g) || (L++, O(b).propsTotal++);
71						else {
72								if (R(b)) return console.log(d + " ERROR: " + b + ' is frozen or its "valueOf" is not configurable'), !1;
73								n(b);
74								L++;
75								O(b).propsTotal++;
76						}
77						O(b)[g] = l;
78						return !0;
79				};
80				this.get = function (b) {
81						if (t(b) && J(b)) return O(b)[g];
82				};
83				this.has = function (b) {
84						return t(b) && J(b) && y(b, g);
85				};
86				this.hasPair = function (b, d) {
87						return this.has(b) && O(b)[g] === d;
88				};
89				this.delete = function (b) {
90						return this.has(b) ? (delete O(b)[g], O(b).propsTotal--, L--, !0) : !1;
91				};
92				Object.defineProperty(this, "size", {
93						get: function () {
94								return L;
95						},
96				});
97				this.traceID = function () {
98						console.log(l + " instance id == " + g);
99				};
100				this.traceCollectionsOf = N.traceCollectionsOf;
101		}
102		function y() {
103				Object.defineProperty(this, "propsTotal", { value: 0, configurable: !1, wrirable: !0, enumerable: !1 });
104		}
105		function t(b, d) {
106				function g(a) {
107						jb(G);
108						jb(m);
109				}
110				function l() {
111						B.addEventListener("mouseenter", g);
112						B.addEventListener("mouseleave", g);
113				}
114				function L() {
115						B.removeEventListener("mouseenter", g);
116						B.removeEventListener("mouseleave", g);
117				}
118				function Qa(a) {
119						a = q;
120						q = Ma();
121						R(G, { opacity: q ? ("image" == q ? "0" : "1") : "0" });
122						R(m, { opacity: q ? ("image" == q ? "1" : "0") : "1" });
123						q ? a || l() : L();
124				}
125				function y() {
126						window.addEventListener("hashchange", Qa, !1);
127				}
128				function N() {
129						window.removeEventListener("hashchange", Qa);
130				}
131				function O() {
132						ua = 0;
133						B.appendChild(da);
134						Sa = setInterval(kb, 1e3 / 15);
135				}
136				function M() {
137						da.parentNode == B && (B.removeChild(da), clearInterval(Sa));
138				}
139				function kb() {
140						ua += 45;
141						da.style[mb] = "rotate(" + ua + "deg)";
142				}
143				function Ra(a, c) {
144						function b() {
145								d = (new Date().getTime() - f) / a;
146								if (1 >
146 d) (m.style.visibility = G.style.visibility = "" + (new Date().getTime() - f) / a), (Ta = setTimeout(b, 1e3 / c));
147								else if (((m.style.visibility = G.style.visibility = "visible"), "onComplete" in e)) e.onComplete();
148						}
149						var f = new Date().getTime(),
150								d,
151								e = {};
152						b();
153						return e;
154				}
155				function lb() {
156						la && (ea && M(), Ra(300, 60));
157				}
158				function fa() {
159						la ? nb() : (ea && M(), (Ra(300, 60).onComplete = nb));
160				}
161				function nb() {
162						if (Ua.hasOwnProperty("onComplete")) Ua.onComplete();
163				}
164				function ma(a) {
165						ta(m, G, { width: "", height: "" });
166						a = B.clientWidth;
167						var c = B.clientHeight,
168								b = a / c;
169						"fit" == na
170								? ta(m, G, b > H ? { height: c + "px", width: c * H + "px", left: 0 } : { height: a / H + "px", width: a + "px", left: 0 })
171								: "cover" == na
172								? b > H
173										? ta(m, G, { height: a / H + "px", width: a + "px", left: 0 })
174										: ta(m, G, { height: c + "px", width: c * H + "px", left: (a - c * H) / 2 + "px" })
175								: ta(m, G, { left: a < m.width ? (a - m.width) / 2 + "px" : 0 });
176				}
177				function u() {
178						Ua.clear();
179						!la && ea && O();
180						va();
181				}
182				function ob() {
183						function a() {
184								for (v = new Date().getTime(); g < d; )
185										if (((e += Da(f, g)), (g += 4), 17 < new Date().getTime() - v)) {
186												S = setTimeout(a, 0);
187												return;
188										}
189								oa = (4 * e) / (255 * d);
190								Va();
191						}
192						var c = document.createElement("canvas"),
193								b = c.getContext("2d");
194						c.width = k.width;
195						c.height = k.height;
196						b.fillStyle = "white";
197						b.fillRect(0, 0, c.width, c.height);
198						b.drawImage(k, 0, 0, k.width, k.height, 0, 0, c.width, c.height);
199						var f = b.getImageData(0, 0, c.width, c.height).data,
200								d = f.length,
201								e = 0,
202								g = 0;
203						a();
204				}
205				function Ea(a) {
206						var c = 255 * wa;
207						return "rgba(" + Na(a.r, c, xa) + "," + Na(a.g, c, ya) + "," + Na(a.b, c, za) + "," + a.a + ")";
208				}
209				function P() {
210						ga = Da(pa, p);
211						ha[C](r, x, ga);
212				}
213				function Fa() {
214						0 > U ? (ga = Wa = Da(pa, p)) : ((Xa = Da(pa, p)), (ga = (Wa + Xa) / 2), (Wa = Xa));
215						ha[C](r, x, ga);
216						return ga;
217				}
218				function Ya() {
219						for (v = new Date().getTime(); p < Y; )
220								if ((r > s.width - 1 && ((x += V), (r = 0)), f.beginPath(), A(), f.fill(), r++, (p += 4), 17 < new Date().getTime() - v)) {
221										S = setTimeout(Ya, 0);
222										return;
223								}
224						fa();
225				}
226				function pb() {
227						f.beginPath();
228						for (v = new Date().getTime(); p < Y; )
229								if ((r > s.width - 1 && ((x += V), (r = 0)), A(), r++, (p += 4), 17 < new Date().getTime() - v)) {
230										f.fill();
231										S = setTimeout(pb, 0);
232										return;
233								}
234						f.fill();
235						fa();
236				}
237				function Za() {
238						for (v = new Date().getTime(); p < Y; )
239								if ((r > s.width - 1 && ((x += V), (r = 0)), (f.fillStyle = Ea(Aa)), f.beginPath(), A(), f.fill(), r++, (p += 4), 17 < new Date().getTime() - v)) {
240										S = setTimeout(Za, 0);
241										return;
242								}
243						fa();
244				}
245				function $a() {
246						for (v = new Date().getTime(); p < Y; ) {
247								if (r > s.width - 1) {
248										if ((w = !w)) f.beginPath(), P(), f.fill();
249										x += V;
250										r = w ? 0 : -0.5;
251										A = w ? P : Fa;
252										U = -1;
253								}
254								f.beginPath();
255								U = A();
256								f.fill();
257								r++;
258								p += 4;
259								if (17 < new Date().getTime() - v) {
260										S = setTimeout($a, 0);
261										return;
262								}
263						}
264						w = !0;
265						A = P;
266						fa();
267				}
268				function qb() {
269						f.beginPath();
270						for (v = new Date().getTime(); p < Y; )
271								if ((r > s.width - 1 && ((w = !w) && P(), (x += V), (r = w ? 0 : -0.5), (A = w ? P : Fa), (U = -1)), (U = A()), r++, (p += 4), 17 < new Date().getTime() - v)) {
272										f.fill();
273										S = setTimeout(qb, 0);
274										return;
275								}
276						f.fill();
277						w = !0;
278						A = P;
279						fa();
280				}
281				function ab() {
282						for (v = new Date().getTime(); p < Y; ) {
283								if (r > s.width - 1) {
284										if ((w = !w)) (f.fillStyle = Ea(Aa)), f.beginPath(), P(), f.fill();
285										x += V;
286										r = w ? 0 : -0.5;
287										A = w ? P : Fa;
288										U = -1;
289								}
290								f.fillStyle = Ea(Aa);
291								f.beginPath();
292								U = A();
293								f.fill();
294								r++;
295								p += 4;
296								if (17 < new Date().getTime() - v) {
297										S = setTimeout(ab, 0);
298										return;
299								}
300						}
301						w = !0;
302						A = P;
303						fa();
304				}
305				function Va() {
306						U = -1;
307						wa ? (Ga[C] ? ab() : Za()) : Ga[C] ? (Ha ? qb() : $a()) : Ha ? pb() : Ya();
308				}
309				function bb() {
310						v = new Date().getTime();
311						I = D;
312						for (var a, c; I.width > 2 * k.width; )
313								if (
314										((a = document.createElement("canvas")),
315										(c = a.getContext("2d")),
316										(a.width = I.width / 2),
317										(a.height = I.height / 2),
318										c.drawImage(I, 0, 0, I.width, I.height, 0, 0, a.width, a.height),
319										(I = a),
320										17 < new Date().getTime() - v)
321								) {
322										S = setTimeout(bb, 0);
323										return;
324								}
325						rb.drawImage(I, 0, 0, I.width, I.height, 0, 0, k.width, k.height);
326						sb();
327				}
328				function sb() {
329						var a = k.width,
330								b = k.height,
331								d = Math.sin(cb),
332								e = Math.cos(cb);
333						s.width = b * d + a * e;
334						s.height = b * e + a * d;
335						E.fillStyle = "white";
336						E.fillRect(0, 0, s.width, s.height);
337						0 > Z ? E.translate(b * d, 0) : E.translate(0, a * d);
338						E.rotate(-Z);
339						E.drawImage(k, 0, 0, k.width, k.height, 0, 0, k.width, k.height);
340						E.drawImage(k, 0, 0, 1, k.height, -49, 0, 50, k.height);
341						E.drawImage(k, k.width - 1, 0, 1, k.height, k.width - 1, 0, 50, k.height);
342						E.drawImage(k, 0, 0, k.width, 1, 0, -49, k.width, 50);
343						E.drawImage(k, 0, k.height - 1, k.width, 1, 0, k.height - 1, k.width, 50);
344						if (C in db) {
345								var e = document.createElement("canvas"),
346										g = e.getContext("2d");
347								e.width = s.width;
348								e.height = s.height / V;
349								g.drawImage(s, 0, 0, s.width, s.height, 0, 0, e.width, e.height);
350								s = e;
351								E = g;
352						}
353						pa = E.getImageData(0, 0, s.width, s.height).data;
354						f.fillStyle = Ia;
355						e = (m.width + 2 * c) / m.width;
356						f.scale(e, e);
357						f.translate(-c, -c);
358						f.rotate(Z);
359						0 > Z ? f.translate(-b * d * c, 0) : f.translate(0, -a * d * c);
360						Y = pa.length;
361						r = x = p = 0;
362						w = !0;
363						A = P;
364						0.5 == z ? ((oa = 0.5), Va()) : ob();
365				}
366				function va() {
367						lb();
368						D.removeEventListener("load", va);
369						V = C in db ? db[C] : 1;
370						H = tb = D.width / D.height;
371						eb = "none" == ia.toLowerCase() || "transparent" == ia.toLowerCase();
372						var a = $,
373								b;
374						b = document.createElement("canvas");
375						b.width = b.height = 1;
376						b = b.getContext("2d");
377						b.save();
378						b.fillStyle = a;
379						b.fillRect(0, 0, 1, 1);
380						a = b.getImageData(0, 0, 1, 1).data;
381						a = { r: a[0], g: a[1], b: a[2], a: a[3] / 255 };
382						b.restore();
383						b.clearRect(0, 0, 2, 2);
384						Aa = a;
385						Ja = "none" == $.toLowerCase() || "transparent" == $.toLowerCase();
386						fb = W ? ub : vb;
387						gb = W ? wb : xb;
388						Ka = W ? yb : zb;
389						qa = W ? Ab : Bb;
390						hb = W ? Cb : Db;
391						Ja ? ((Ia = "black"), (wa = 0)) : ((Ia = $), (wa = Ba));
392						ja ? ((m.width = ja), X ? ((m.height = X), (H = ja / X)) : (m.height = Math.round(m.width / H))) : X ? ((m.height = X), (m.width = Math.round(m.height * H))) : ((m.width = D.width), (m.height = D.height));
393						ma();
394						window.addEventListener("resize", ma);
395						eb || ((f.fillStyle = ia), f.fillRect(0, 0, m.width, m.height));
396						Ja && (f.globalCompositeOperation = "destination-out");
397						k.width = Math.ceil(m.width / c);
398						k.height = Math.ceil(m.height / c);
399						bb();
400				}
401				function Eb(a) {
402						D.src = Oa();
403				}
404				function ib() {
405						D.addEventListener("load", va);
406						D.addEventListener("error", Eb);
407						ea && O();
408						D.src = ra;
409						G.src = ra;
410				}
411				var aa = "string" === typeof b ? document.getElementById(b) : b;
412				if (aa) {
413						t.instances.has(aa) && t.instances.get(aa).destroy();
414						t.instances.set(aa, this);
415						d || (d = {});
416						var q = { image: 1, raster: 1, hash: 1 }[d.HOVER] ? ("hash" == d.HOVER ? Ma() : d.HOVER) : null,
417								ra = d.SOURCE_IMAGE || Oa(),
418								C = d.RASTER_TYPE && d.RASTER_TYPE in Ga ? d.RASTER_TYPE : "circle",
419								ba = n(d.RASTER_ANGLE, 45, La, J),
420								c = n(d.DOT_SIZE, 10, 1, J),
421								K = n(d.LINE_SMOOTHING, 3, La, J) || Fb,
422								ia = "CANVAS_COLOR" in d ? d.CANVAS_COLOR : "white",
423								$ = "DOT_COLOR" in d ? d.DOT_COLOR : "black",
424								Ba = n(d.DOT_COLOR_RANDOMIZATION, 0, 0, 1),
425								xa = n(d.DOT_COLOR_R_RANDOMIZATION, 1, 0, 1),
426								ya = n(d.DOT_COLOR_G_RANDOMIZATION, 1, 0, 1),
427								za = n(d.DOT_COLOR_B_RANDOMIZATION, 1, 0, 1),
428								ja = d.CANVAS_WIDTH,
429								X = d.CANVAS_HEIGHT,
430								na = "SCALE_MODE" in d && d.SCALE_MODE in Gb ? d.SCALE_MODE : "fit",
431								F = n(d.BRIGHTNESS, 0.5, 0, 1),
432								z = n(d.CONTRAST, 0.5, 0, 1),
433								W = d.INVERT,
434								Ha = d.ALLOW_TURBO_RENDERING,
435								la = "SHOW_RENDERING_PROGRESS" in d ? d.SHOW_RENDERING_PROGRESS : !1,
436								ea = "USE_PRELOADER" in d ? d.USE_PRELOADER : !0,
437								Ca = "PRELOADER_COLOR" in d ? d.PRELOADER_COLOR : "gray",
438								ca = Math.round(n(d.PRELOADER_SIZE, 40, 4, J)),
439								ba = ((ba + 270) % 180) - 90,
440								F = 1 < F ? 1 : 0 > F ? 0 : F,
441								z = 1 < z ? 1 : 0 > z ? 0 : z;
442						ca % 2 && ca++;
443						var e = c / 2,
444								sa = c * Math.SQRT1_2,
445								Ua = this,
446								ka = document.body,
447								mb = (function () {
448										if ("" === ka.style.transform) return "transform";
449										if ("" === ka.style.webkitTransform) return "webkitTransform";
450										if ("" === ka.style.mozTransform) return "mozTransform";
451										if ("" === ka.style.oTransform) return "oTransform";
452										if ("" === ka.style.msTransform) return "msTransform";
453										if ("" === ka.style.khtmlTransform) return "khtmlTransform";
454								})(),
455								B = (function () {
456										var a = document.createElement("div");
457										R(a, {
458												position: "relative",
459												width: "100%",
460												height: "100%",
461												top: 0,
462												left: 0,
463												margin: 0,
464												userSelect: "none",
465												MozUserSelect: "none",
466												WebkitUserSelect: "none",
467												MsUserSelect: "none",
468												KhtmlUserSelect: "none",
469												userDrag: "none",
470												WebkitUserDrag: "none",
471												overflow: "hidden",
472												cursor: "default",
473										});
474										a.setAttribute("unselectable", "on");
475										aa.appendChild(a);
476										return a;
477								})(),
478								da = Pa(ca, Ca),
479								ua,
480								Sa,
481								Ta,
482								S,
483								Ia,
484								wa,
485								Aa,
486								D = new Image(),
487								G = (function () {
488										var a = new Image();
489										R(a, { position: "absolute", background: "blue", top: 0, left: 0, bottom: 0, right: 0, margin: "auto", opacity: q ? ("image" == q ? "0" : "1") : "0", visibility: q ? ("image" == q ? "hidden" : "visible") : "hidden", transition: "opacity 0.5s"  });
490										B.appendChild(a);
491										return a;
492								})(),
493								H,
494								tb,
495								m = (function () {
496										var a = document.createElement("canvas");
497										R(a, { position: "absolute", top: 0, left: 0, bottom: 0, right: 0, margin: "auto", visibility: "visible", opacity: q ? ("image" == q ? "1" : "0") : "1", transition: "opacity 0.5s" });
498										B.appendChild(a);
499										return a;
500								})(),
501								f = m.getContext("2d"),
502								k = document.createElement("canvas"),
503								rb = k.getContext("2d"),
504								s = document.createElement("canvas"),
505								E = s.getContext("2d"),
506								I,
507								pa,
508								ga,
509								U,
510								Wa,
511								Xa,
512								oa,
513								V,
514								eb,
515								Ja,
516								Y,
517								p,
518								x,
519								r,
520								v,
521								w,
522								A,
523								Q = function (a) {
524										a /= 255;
525										0.5 != z && ((a = Math.tan((z * Math.PI) / 2) * (a - oa) + oa), (a = a > oa ? Math.min(a, 1) : Math.max(a, 0)));
526										a += 2 * (F - 0.5);
527										return 0 > a ? 0 : 1 < a ? 1 : a;
528								},
529								fb,
530								gb,
531								Ka,
532								qa,
533								hb,
534								vb = function (a, c) {
535										return a * Math.sqrt(1 - Q(c));
536								},
537								xb = function (a, c) {
538										return a * Math.sqrt(1 - Q(c)) * 0.82;
539								},
540								zb = function (a, c) {
541										return a * Math.sqrt(1 - Q(c));
542								},
543								Bb = function (a, c) {
544										return a * (1 - Q(c));
545								},
546								Db = function (a, c) {
547										return a * (1 - Math.sqrt(Q(c)));
548								},
549								ub = function (a, c) {
550										return a * (0.08 + 0.9 * Math.pow(Q(c), 1.05));
551								},
552								wb = function (a, c) {
553										return a * (0 + 0.8 * Math.pow(Q(c), 0.85));
554								},
555								yb = function (a, c) {
556										return a * Math.sqrt(Q(c));
557								},
558								Ab = function (a, c) {
559										return a * Q(c);
560								},
561								Cb = function (a, c) {
562										return a * (1 - Math.sqrt(1 - Q(c)));
563								},
564								T,
565								h,
566								Z = (Math.PI * ba) / 180,
567								cb = Math.abs(Z),
568								ha = {
569										circle: function (a, b, d) {
570												if ((T = fb(sa, d))) f.moveTo(c * a + e + sa, c * b + e), f.arc(c * a + e, c * b + e, T, 0, 2 * Math.PI);
571										},
572										circle2: function (a, b, d) {
573												if ((T = gb(sa, d))) f.moveTo(c * a + e + sa, c * b + e), f.arc(c * a + e, c * b + e, T, 0, 2 * Math.PI);
574										},
575										square: function (a, b, d) {
576												(h = Ka(c, d)) && f.rect(c * a + e - h / 2, c * b + e - h / 2, h, h);
577										},
578										line: function (a, b, d) {
579												if ((h = qa(c, d)))
580														f.moveTo(c * a - K * c, c * b + e),
581																f.lineTo(c * a, c * b + e - h / 2),
582																f.lineTo(c * a + c, c * b + e - h / 2),
583																f.lineTo(c * a + (1 + K) * c, c * b + e),
584																f.lineTo(c * a + c, c * b + e + h / 2),
585																f.lineTo(c * a, c * b + e + h / 2),
586																f.lineTo(c * a - K * c, c * b + e);
587										},
588										cell: function (a, b, d) {
589												if ((h = hb(c, d)))
590														f.moveTo(c * a - K * c, c * b + e),
591																f.lineTo(c * a, c * b + e - h / 2),
592																f.lineTo(c * a + e - h / 2, c * b + e - h / 2),
593																f.lineTo(c * a + e - h / 2, c * b),
594																f.lineTo(c * a + e, c * b - K * c),
595																f.lineTo(c * a + e + h / 2, c * b),
596																f.lineTo(c * a + e + h / 2, c * b + e - h / 2),
597																f.lineTo(c * a + c, c * b + e - h / 2),
598																f.lineTo(c * a + (1 + K) * c, c * b + e),
599																f.lineTo(c * a + c, c * b + e + h / 2),
600																f.lineTo(c * a + e + h / 2, c * b + e + h / 2),
601																f.lineTo(c * a + e + h / 2, c * b + c),
602																f.lineTo(c * a + e, c * b + (1 + K) * c),
603																f.lineTo(c * a + e - h / 2, c * b + c),
604																f.lineTo(c * a + e - h / 2, c * b + e + h / 2),
605																f.lineTo(c * a, c * b + e + h / 2),
606																f.lineTo(c * a - K * c, c * b + e);
607										},
608										triangle: function (a, b, d) {
609												if ((h = qa(2 * c, d))) f.moveTo(c * a + e - h / 2, c * b + c), f.lineTo(c * a + e, c * b + c - h), f.lineTo(c * a + e + h / 2, c * b + c), f.lineTo(c * a + e - h / 2, c * b + c);
610										},
611										rhomb: function (a, b, d) {
612												if ((h = qa(2 * c, d)))
613														f.moveTo(c * a + e, c * b + e - h / 2), f.lineTo(c * a + e + h / 2, c * b + e), f.lineTo(c * a + e, c * b + e + h / 2), f.lineTo(c * a + e - h / 2, c * b + e), f.lineTo(c * a + e, c * b + e - h / 2);
614										},
615										rhomb2: function (a, b, d) {
616												if ((h = qa((128 > d ? 1.5 + (0.5 * d) / 128 : 2) * c, d)))
617														f.moveTo(c * a + e, c * b + e - h / 2), f.lineTo(c * a + e + h / 2, c * b + e), f.lineTo(c * a + e, c * b + e + h / 2), f.lineTo(c * a + e - h / 2, c * b + e), f.lineTo(c * a + e, c * b + e - h / 2);
618										},
619										hexagon: function (a, b, d) {
620												if ((h = Ka(c, d))) {
621														T = h / Math.sqrt(3);
622														phi1 = -Math.PI / 2;
623														f.moveTo(c * a + e + T * Math.cos(phi1), c * b + e + T * Math.sin(phi1));
624														for (d = 1; 6 > d; d++) (phi1 = Math.PI * ((d / 6) * 2 - 0.5)), f.lineTo(c * a + e + T * Math.cos(phi1), c * b + e + T * Math.sin(phi1));
625														f.closePath();
626												}
627										},
628								};
629						ha.square2 = ha.square;
630						ha.triangle2 = ha.triangle;
631						q && l();
632						"hash" == d.HOVER && y();
633						this.update = function () {
634								u();
635						};
636						this.resize = function () {
637								ma();
638						};
639						this.clear = function () {
640								D.removeEventListener("load", va);
641								D.removeEventListener("error", Eb);
642								M();
643								clearTimeout(Ta);
644								clearTimeout(S);
645								m.width = m.width;
646								m.style.visibility = "hidden";
647						};
648						this.destroy = function () {
649								t.instances.delete(aa);
650								this.clear();
651								window.removeEventListener("resize", ma);
652								aa.removeChild(B);
653								aa = b = d = q = ra = C = ba = c = K = ia = $ = Ba = xa = ya = za = ja = X = na = F = z = W = la = ea = Ca = ca = e = sa = ka = mb = B = da = ua = Sa = Ta = S = Ia = wa = Aa = D = G = H = m = f = k = rb = s = E = I = pa = ga = U = oa = V = eb = Ja = Y = p = x = r = v = w = A = Q = fb = gb = Ka = qa = hb = vb = xb = zb = Bb = Db = ub = wb = yb = Ab = Cb = T = h = Z = ha = O = M = kb = Ra = lb = fa = ma = u = ob = Ea = P = Fa = Ya = Za = $a = ab = Va = bb = sb = va = ib = g = l = L = Qa = y = N = null;
654								for (propName in this) delete this[propName];
655								this.update = this.resize = this.clear = this.destroy = function () {};
656						};
657						Object.defineProperties(this, {
658								hover: {
659										get: function () {
660												return q;
661										},
662										set: function (a) {
663												if (a != q) {
664														var c = q;
665														q = { image: 1, raster: 1, hash: 1 }[a] ? ("hash" == a ? Ma() : a) : null;
666														R(G, { visibility: q ? ("image" == q ? "hidden" : "visible") : "hidden" });
667														R(m, { visibility: q ? ("image" == q ? "visible" : "hidden") : "visible" });
668														q ? c || l() : L();
669														"hash" == a ? y() : N();
670												}
671										},
672										configurable: !0,
673								},
674								sourceImage: {
675										get: function () {
676												return ra;
677										},
678										set: function (a) {
679												a != ra && (this.clear(), (ra = a || Oa()), ib());
680										},
681										configurable: !0,
682								},
683								rasterType: {
684										get: function () {
685												return C;
686										},
687										set: function (a) {
688												a != C && ((C = a && a in Ga ? a : "circle"), u());
689										},
690										configurable: !0,
691								},
692								rasterAngle: {
693										get: function () {
694												return ba;
695										},
696										set: function (a) {
697												a != ba && ((ba = n(a, 45, La, J)), (Z = (Math.PI * (((ba + 270) % 180) - 90)) / 180), (cb = Math.abs(Z)), u());
698										},
699										configurable: !0,
700								},
701								dotSize: {
702										get: function () {
703												return c;
704										},
705										set: function (a) {
706												a != c && ((c = n(a, 10, 1, J)), (e = c / 2), (sa = c * Math.SQRT1_2), u());
707										},
708										configurable: !0,
709								},
710								lineSmoothing: {
711										get: function () {
712												return K;
713										},
714										set: function (a) {
715												a != K && ((K = n(a, 3, La, J) || Fb), ("line" != C && "cell" != C) || u());
716										},
717										configurable: !0,
718								},
719								canvasColor: {
720										get: function () {
721												return ia;
722										},
723										set: function (a) {
724												a != ia && ((ia = a), u());
725										},
726										configurable: !0,
727								},
728								dotColor: {
729										get: function () {
730												return $;
731										},
732										set: function (a) {
733												a != $ && (($ = a), u());
734										},
735										configurable: !0,
736								},
737								dotColorRandomization: {
738										get: function () {
739												return Ba;
740										},
741										set: function (a) {
742												a != Ba && ((Ba = n(a, 0, 0, 1)), u());
743										},
744										configurable: !0,
745								},
746								dotColorRRandomization: {
747										get: function () {
748												return xa;
749										},
750										set: function (a) {
751												a != xa && ((xa = n(a, 1, 0, 1)), u());
752										},
753										configurable: !0,
754								},
755								dotColorGRandomization: {
756										get: function () {
757												return ya;
758										},
759										set: function (a) {
760												a != ya && ((ya = n(a, 1, 0, 1)), u());
761										},
762										configurable: !0,
763								},
764								dotColorBRandomization: {
765										get: function () {
766												return za;
767										},
768										set: function (a) {
769												a != za && ((za = n(a, 1, 0, 1)), u());
770										},
771										configurable: !0,
772								},
773								canvasWidth: {
774										get: function () {
775												return ja;
776										},
777										set: function (a) {
778												a != ja && ((ja = a), u());
779										},
780										configurable: !0,
781								},
782								canvasHeight: {
783										get: function () {
784												return X;
785										},
786										set: function (a) {
787												a != X && ((X = a), u());
788										},
789										configurable: !0,
790								},
791								scaleMode: {
792										get: function () {
793												return na;
794										},
795										set: function (a) {
796												a != na && a in Gb && ((na = a), ma());
797										},
798										configurable: !0,
799								},
800								brightness: {
801										get: function () {
802												return F;
803										},
804										set: function (a) {
805												a != F && ((F = n(a, 0.5, 0, 1)), (F = 1 < F ? 1 : 0 > F ? 0 : F), u());
806										},
807										configurable: !0,
808								},
809								contrast: {
810										get: function () {
811												return z;
812										},
813										set: function (a) {
814												a != z && ((z = n(a, 0.5, 0, 1)), (z = 1 < z ? 1 : 0 >
814 z ? 0 : z), u());
815										},
816										configurable: !0,
817								},
818								invert: {
819										get: function () {
820												return W;
821										},
822										set: function (a) {
823												a != W && ((W = a), u());
824										},
825										configurable: !0,
826								},
827								showRenderingProgress: {
828										get: function () {
829												return la;
830										},
831										set: function (a) {
832												la = a;
833										},
834										configurable: !0,
835								},
836								allowTurboRendering: {
837										get: function () {
838												return Ha;
839										},
840										set: function (a) {
841												Ha = a;
842										},
843										configurable: !0,
844								},
845								usePreloader: {
846										get: function () {
847												return ea;
848										},
849										set: function (a) {
850												ea = a;
851										},
852										configurable: !0,
853								},
854								preloaderColor: {
855										get: function () {
856												return Ca;
857										},
858										set: function (a) {
859												Ca = a;
860												da = Pa(ca, a);
861										},
862										configurable: !0,
863								},
864								preloaderSize: {
865										get: function () {
866												return ca;
867										},
868										set: function (a) {
869												ca = Math.round(n(a, 40, 4, J));
870												da = Pa(ca, Ca);
871										},
872										configurable: !0,
873								},
874								sourceImageRatio: {
875										get: function () {
876												return tb;
877										},
878										configurable: !0,
879								},
880						});
881						ib();
882				} else alert("RasterPro ERROR: Incorrect div specified");
883		}
884		var Gb = { none: 1, fit: 1, cover: 1 },
885				Ga = { circle: 0, circle2: 1, square: 0, square2: 1, line: 0, cell: 0, triangle: 0, triangle2: 1, rhomb: 0, rhomb2: 1, hexagon: 1 },
886				db = { hexagon: Math.sqrt(3) / 2, circle2: Math.sqrt(3) / 2 },
887				J = Number.POSITIVE_INFINITY,
888				La = Number.NEGATIVE_INFINITY,
889				Fb = 0.1;
890		PASSKEY = {};
891		M.prototype = { className: "SoftMap", superclassName: "Object", constructor: M };
892		(function () {
893				var b = 0;
894				M.getID = function () {
895						return "SoftMap_" + ++b;
896				};
897		})();
898		y.prototype = { className: "__KeyHiddenZone", superclassName: "Object", constructor: y };
899		var N = {};
900		(function (b) {
901				function d(b) {
902						return b && b instanceof Object;
903				}
904				function g(b) {
905						return b.valueOf(y);
906				}
907				function l(b) {
908						return b.hasOwnProperty("valueOf") && g(b) instanceof y;
909				}
910				b.createHiddenZone = function (b) {
911						var d = new y(),
912								g = b.valueOf;
913						Object.defineProperty(b, "valueOf", {
914								value: function (b) {
915										return b && b === y ? d : g.apply(this, arguments);
916								},
917								configurable: !1,
918								wrirable: !1,
919						});
920				};
921				b.keyIsObject = d;
922				b.keyIsFixed = function (b) {
923						var d = Object.getOwnPropertyDescriptor(b, "valueOf");
924						return (d && !d.configurable) || Object.isFrozen(b);
925				};
926				b.hiddenZoneOf = g;
927				b.keyHasHiddenZone = l;
928				b.keyKnowsID = function (b, d) {
929						return g(b).hasOwnProperty(d);
930				};
931				b.traceCollectionsOf = function (b) {
932						if (d(b) && l(b)) for (str in (console.log(""), console.log("Collections of " + b + ":"), (b = g(b)), b)) "className" != str && "superclassName" != str && "constructor" != str && console.log(str);
933				};
934		})(N);
935		t.instances = new M();
936		t.batchRender = function (b, d) {
937				data = { divs: Array.prototype.slice.call(document.querySelectorAll(b)), instances: [] };
938				for (var g, l, n = 0, y = data.divs.length; n < y; n++) {
939						g = data.divs[n];
940						l = new t(g, d);
941						if ((g = g.dataset.image)) l.sourceImage = g;
942						data.instances[n] = l;
943				}
944				return data;
945		};
946		t.instanceByDiv = function (b) {
947				return t.instances.get(b);
948		};
949		t.uses = function (b) {
950				return t.instances.has(b);
951		};
952		window.hasOwnProperty("RasterPro") ? alert('Unable to load "raster-pro.js". Make sure the document does not contain a global variable named "RasterPro"') : (window.RasterPro = t);
953})();

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.