PageSourceSearch

https://umaef.org/wp-content/themes/umaef/libs/js/jquery.fancybox.min.js

js umaef.org collected 2026-09-28 10:45:15 UTC 89,943 bytes, 1,631 lines download raw bytes

vendor: 14,235 bytes, lines 1-282
1"use strict";
2
3// ==================================================
4// fancyBox v3.5.7
5//
6// Licensed GPLv3 for open source use
7// or fancyBox Commercial License for commercial use
8//
9// http://fancyapps.com/fancybox/
10// Copyright 2019 fancyApps
11//
12// ==================================================
13!function (t, e, n, o) {
14  "use strict";
15
16  function i(t, e) {
17    var o,
18      i,
19      a,
20      s = [],
21      r = 0;
22    t && t.isDefaultPrevented() || (t.preventDefault(), e = e || {}, t && t.data && (e = h(t.data.options, e)), o = e.$target || n(t.currentTarget).trigger("blur"), (a = n.fancybox.getInstance()) && a.$trigger && a.$trigger.is(o) || (e.selector ? s = n(e.selector) : (i = o.attr("data-fancybox") || "", i ? (s = t.data ? t.data.items : [], s = s.length ? s.filter('[data-fancybox="' + i + '"]') : n('[data-fancybox="' + i + '"]')) : s = [o]), r = n(s).index(o), r < 0 && (r = 0), a = n.fancybox.open(s, e, r), a.$trigger = o));
23  }
24  if (t.console = t.console || {
25    info: function (t) {}
26  }, n) {
27    if (n.fn.fancybox) return void console.info("fancyBox already initialized");
28    var a = {
29        closeExisting: !1,
30        loop: !1,
31        gutter: 50,
32        keyboard: !0,
33        preventCaptionOverlap: !0,
34        arrows: !0,
35        infobar: !0,
36        smallBtn: "auto",
37        toolbar: "auto",
38        buttons: ["zoom", "slideShow", "thumbs", "close"],
39        idleTime: 3,
40        protect: !1,
41        modal: !1,
42        image: {
43          preload: !1
44        },
45        ajax: {
46          settings: {
47            data: {
48              fancybox: !0
49            }
50          }
51        },
52        iframe: {
53          tpl: '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',
54          preload: !0,
55          css: {},
56          attr: {
57            scrolling: "auto"
58          }
59        },
60        video: {
61          tpl: '<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',
62          format: "",
63          autoStart: !0
64        },
65        defaultType: "image",
66        animationEffect: "zoom",
67        animationDuration: 366,
68        zoomOpacity: "auto",
69        transitionEffect: "fade",
70        transitionDuration: 366,
71        slideClass: "",
72        baseClass: "",
73        baseTpl: '<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',
74        spinnerTpl: '<div class="fancybox-loading"></div>',
75        errorTpl: '<div class="fancybox-error"><p>{{ERROR}}</p></div>',
76        btnTpl: {
77          download: '<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',
78          zoom: '<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',
79          close: '<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',
80          arrowLeft: '<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',
81          arrowRight: '<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',
82          smallBtn: '<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'
83        },
84        parentEl: "body",
85        hideScrollbar: !0,
86        autoFocus: !0,
87        backFocus: !0,
88        trapFocus: !0,
89        fullScreen: {
90          autoStart: !1
91        },
92        touch: {
93          vertical: !0,
94          momentum: !0
95        },
96        hash: null,
97        media: {},
98        slideShow: {
99          autoStart: !1,
100          speed: 3e3
101        },
102        thumbs: {
103          autoStart: !1,
104          hideOnClose: !0,
105          parentEl: ".fancybox-container",
106          axis: "y"
107        },
108        wheel: "auto",
109        onInit: n.noop,
110        beforeLoad: n.noop,
111        afterLoad: n.noop,
112        beforeShow: n.noop,
113        afterShow: n.noop,
114        beforeClose: n.noop,
115        afterClose: n.noop,
116        onActivate: n.noop,
117        onDeactivate: n.noop,
118        clickContent: function (t, e) {
119          return "image" === t.type && "zoom";
120        },
121        clickSlide: "close",
122        clickOutside: "close",
123        dblclickContent: !1,
124        dblclickSlide: !1,
125        dblclickOutside: !1,
126        mobile: {
127          preventCaptionOverlap: !1,
128          idleTime: !1,
129          clickContent: function (t, e) {
130            return "image" === t.type && "toggleControls";
131          },
132          clickSlide: function (t, e) {
133            return "image" === t.type ? "toggleControls" : "close";
134          },
135          dblclickContent: function (t, e) {
136            return "image" === t.type && "zoom";
137          },
138          dblclickSlide: function (t, e) {
139            return "image" === t.type && "zoom";
140          }
141        },
142        lang: "en",
143        i18n: {
144          en: {
145            CLOSE: "Close",
146            NEXT: "Next",
147            PREV: "Previous",
148            ERROR: "The requested content cannot be loaded. <br/> Please try again later.",
149            PLAY_START: "Start slideshow",
150            PLAY_STOP: "Pause slideshow",
151            FULL_SCREEN: "Full screen",
152            THUMBS: "Thumbnails",
153            DOWNLOAD: "Download",
154            SHARE: "Share",
155            ZOOM: "Zoom"
156          },
157          de: {
158            CLOSE: "Schlie&szlig;en",
159            NEXT: "Weiter",
160            PREV: "Zur&uuml;ck",
161            ERROR: "Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",
162            PLAY_START: "Diaschau starten",
163            PLAY_STOP: "Diaschau beenden",
164            FULL_SCREEN: "Vollbild",
165            THUMBS: "Vorschaubilder",
166            DOWNLOAD: "Herunterladen",
167            SHARE: "Teilen",
168            ZOOM: "Vergr&ouml;&szlig;ern"
169          }
170        }
171      },
172      s = n(t),
173      r = n(e),
174      c = 0,
175      l = function (t) {
176        return t && t.hasOwnProperty && t instanceof n;
177      },
178      d = function () {
179        return t.requestAnimationFrame || t.webkitRequestAnimationFrame || t.mozRequestAnimationFrame || t.oRequestAnimationFrame || function (e) {
180          return t.setTimeout(e, 1e3 / 60);
181        };
182      }(),
183      u = function () {
184        return t.cancelAnimationFrame || t.webkitCancelAnimationFrame || t.mozCancelAnimationFrame || t.oCancelAnimationFrame || function (e) {
185          t.clearTimeout(e);
186        };
187      }(),
188      f = function () {
189        var t,
190          n = e.createElement("fakeelement"),
191          o = {
192            transition: "transitionend",
193            OTransition: "oTransitionEnd",
194            MozTransition: "transitionend",
195            WebkitTransition: "webkitTransitionEnd"
196          };
197        for (t in o) if (void 0 !== n.style[t]) return o[t];
198        return "transitionend";
199      }(),
200      p = function (t) {
201        return t && t.length && t[0].offsetHeight;
202      },
203      h = function (t, e) {
204        var o = n.extend(!0, {}, t, e);
205        return n.each(e, function (t, e) {
206          n.isArray(e) && (o[t] = e);
207        }), o;
208      },
209      g = function (t) {
210        var o, i;
211        return !(!t || t.ownerDocument !== e) && (n(".fancybox-container").css("pointer-events", "none"), o = {
212          x: t.getBoundingClientRect().left + t.offsetWidth / 2,
213          y: t.getBoundingClientRect().top + t.offsetHeight / 2
214        }, i = e.elementFromPoint(o.x, o.y) === t, n(".fancybox-container").css("pointer-events", ""), i);
215      },
216      b = function (t, e, o) {
217        var i = this;
218        i.opts = h({
219          index: o
220        }, n.fancybox.defaults), n.isPlainObject(e) && (i.opts = h(i.opts, e)), n.fancybox.isMobile && (i.opts = h(i.opts, i.opts.mobile)), i.id = i.opts.id || ++c, i.currIndex = parseInt(i.opts.index, 10) || 0, i.prevIndex = null, i.prevPos = null, i.currPos = 0, i.firstRun = !0, i.group = [], i.slides = {}, i.addContent(t), i.group.length && i.init();
221      };
222    n.extend(b.prototype, {
223      init: function () {
224        var o,
225          i,
226          a = this,
227          s = a.group[a.currIndex],
228          r = s.opts;
229        r.closeExisting && n.fancybox.close(!0), n("body").addClass("fancybox-active"), !n.fancybox.getInstance() && !1 !== r.hideScrollbar && !n.fancybox.isMobile && e.body.scrollHeight > t.innerHeight && (n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:' + (t.innerWidth - e.documentElement.clientWidth) + "px;}</style>"), n("body").addClass("compensate-for-scrollbar")), i = "", n.each(r.buttons, function (t, e) {
230          i += r.btnTpl[e] || "";
231        }), o = n(a.translate(a, r.baseTpl.replace("{{buttons}}", i).replace("{{arrows}}", r.btnTpl.arrowLeft + r.btnTpl.arrowRight))).attr("id", "fancybox-container-" + a.id).addClass(r.baseClass).data("FancyBox", a).appendTo(r.parentEl), a.$refs = {
232          container: o
233        }, ["bg", "inner", "infobar", "toolbar", "stage", "caption", "navigation"].forEach(function (t) {
234          a.$refs[t] = o.find(".fancybox-" + t);
235        }), a.trigger("onInit"), a.activate(), a.jumpTo(a.currIndex);
236      },
237      translate: function (t, e) {
238        var n = t.opts.i18n[t.opts.lang] || t.opts.i18n.en;
239        return e.replace(/\{\{(\w+)\}\}/g, function (t, e) {
240          return void 0 === n[e] ? t : n[e];
241        });
242      },
243      addContent: function (t) {
244        var e,
245          o = this,
246          i = n.makeArray(t);
247        n.each(i, function (t, e) {
248          var i,
249            a,
250            s,
251            r,
252            c,
253            l = {},
254            d = {};
255          n.isPlainObject(e) ? (l = e, d = e.opts || e) : "object" === n.type(e) && n(e).length ? (i = n(e), d = i.data() || {}, d = n.extend(!0, {}, d, d.options), d.$orig = i, l.src = o.opts.src || d.src || i.attr("href"), l.type || l.src || (l.type = "inline", l.src = e)) : l = {
256            type: "html",
257            src: e + ""
258          }, l.opts = n.extend(!0, {}, o.opts, d), n.isArray(d.buttons) && (l.opts.buttons = d.buttons), n.fancybox.isMobile && l.opts.mobile && (l.opts = h(l.opts, l.opts.mobile)), a = l.type || l.opts.type, r = l.src || "", !a && r && ((s = r.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i)) ? (a = "video", l.opts.video.format || (l.opts.video.format = "video/" + ("ogv" === s[1] ? "ogg" : s[1]))) : r.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i) ? a = "image" : r.match(/\.(pdf)((\?|#).*)?$/i) ? (a = "iframe", l = n.extend(!0, l, {
259            contentType: "pdf",
260            opts: {
261              iframe: {
262                preload: !1
263              }
264            }
265          })) : "#" === r.charAt(0) && (a = "inline")), a ? l.type = a : o.trigger("objectNeedsType", l), l.contentType || (l.contentType = n.inArray(l.type, ["html", "inline", "ajax"]) > -1 ? "html" : l.type), l.index = o.group.length, "auto" == l.opts.smallBtn && (l.opts.smallBtn = n.inArray(l.type, ["html", "inline", "ajax"]) > -1), "auto" === l.opts.toolbar && (l.opts.toolbar = !l.opts.smallBtn), l.$thumb = l.opts.$thumb || null, l.opts.$trigger && l.index === o.opts.index && (l.$thumb = l.opts.$trigger.find("img:first"), l.$thumb.length && (l.opts.$orig = l.opts.$trigger)), l.$thumb && l.$thumb.length || !l.opts.$orig || (l.$thumb = l.opts.$orig.find("img:first")), l.$thumb && !l.$thumb.length && (l.$thumb = null), l.thumb = l.opts.thumb || (l.$thumb ? l.$thumb[0].src : null), "function" === n.type(l.opts.caption) && (l.opts.caption = l.opts.caption.apply(e, [o, l])), "function" === n.type(o.opts.caption) && (l.opts.caption = o.opts.caption.apply(e, [o, l])), l.opts.caption instanceof n || (l.opts.caption = void 0 === l.opts.caption ? "" : l.opts.caption + ""), "ajax" === l.type && (c = r.split(/\s+/, 2), c.length > 1 && (l.src = c.shift(), l.opts.filter = c.shift())), l.opts.modal && (l.opts = n.extend(!0, l.opts, {
266            trapFocus: !0,
267            infobar: 0,
268            toolbar: 0,
269            smallBtn: 0,
270            keyboard: 0,
271            slideShow: 0,
272            fullScreen: 0,
273            thumbs: 0,
274            touch: 0,
275            clickContent: !1,
276            clickSlide: !1,
277            clickOutside: !1,
278            dblclickContent: !1,
279            dblclickSlide: !1,
280            dblclickOutside: !1
281          })), o.group.push(l);
282        }), Object.keys(o.slides).length && (o.updateControls(), (e = o.Thumbs
282) && e.isActive && (e.create(), e.focus()));
283      },
284      addEvents: function () {
285        var e = this;
286        e.removeEvents(), e.$refs.container.on("click.fb-close", "[data-fancybox-close]", function (t) {
287          t.stopPropagation(), t.preventDefault(), e.close(t);
288        }).on("touchstart.fb-prev click.fb-prev", "[data-fancybox-prev]", function (t) {
289          t.stopPropagation(), t.preventDefault(), e.previous();
290        }).on("touchstart.fb-next click.fb-next", "[data-fancybox-next]", function (t) {
291          t.stopPropagation(), t.preventDefault(), e.next();
292        }).on("click.fb", "[data-fancybox-zoom]", function (t) {
293          e[e.isScaledDown() ? "scaleToActual" : "scaleToFit"]();
294        }), s.on("orientationchange.fb resize.fb", function (t) {
295          t && t.originalEvent && "resize" === t.originalEvent.type ? (e.requestId && u(e.requestId), e.requestId = d(function () {
296            e.update(t);
297          })) : (e.current && "iframe" === e.current.type && e.$refs.stage.hide(), setTimeout(function () {
298            e.$refs.stage.show(), e.update(t);
299          }, n.fancybox.isMobile ? 600 : 250));
300        }
vendor: 74,563 bytes, lines 300-1631
300), r.on("keydown.fb", function (t) {
301          var o = n.fancybox ? n.fancybox.getInstance() : null,
302            i = o.current,
303            a = t.keyCode || t.which;
304          if (9 == a) return void (i.opts.trapFocus && e.focus(t));
305          if (!(!i.opts.keyboard || t.ctrlKey || t.altKey || t.shiftKey || n(t.target).is("input,textarea,video,audio,select"))) return 8 === a || 27 === a ? (t.preventDefault(), void e.close(t)) : 37 === a || 38 === a ? (t.preventDefault(), void e.previous()) : 39 === a || 40 === a ? (t.preventDefault(), void e.next()) : void e.trigger("afterKeydown", t, a);
306        }), e.group[e.currIndex].opts.idleTime && (e.idleSecondsCounter = 0, r.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle", function (t) {
307          e.idleSecondsCounter = 0, e.isIdle && e.showControls(), e.isIdle = !1;
308        }), e.idleInterval = t.setInterval(function () {
309          ++e.idleSecondsCounter >= e.group[e.currIndex].opts.idleTime && !e.isDragging && (e.isIdle = !0, e.idleSecondsCounter = 0, e.hideControls());
310        }, 1e3));
311      },
312      removeEvents: function () {
313        var e = this;
314        s.off("orientationchange.fb resize.fb"), r.off("keydown.fb .fb-idle"), this.$refs.container.off(".fb-close .fb-prev .fb-next"), e.idleInterval && (t.clearInterval(e.idleInterval), e.idleInterval = null);
315      },
316      previous: function (t) {
317        return this.jumpTo(this.currPos - 1, t);
318      },
319      next: function (t) {
320        return this.jumpTo(this.currPos + 1, t);
321      },
322      jumpTo: function (t, e) {
323        var o,
324          i,
325          a,
326          s,
327          r,
328          c,
329          l,
330          d,
331          u,
332          f = this,
333          h = f.group.length;
334        if (!(f.isDragging || f.isClosing || f.isAnimating && f.firstRun)) {
335          if (t = parseInt(t, 10), !(a = f.current ? f.current.opts.loop : f.opts.loop) && (t < 0 || t >= h)) return !1;
336          if (o = f.firstRun = !Object.keys(f.slides).length, r = f.current, f.prevIndex = f.currIndex, f.prevPos = f.currPos, s = f.createSlide(t), h > 1 && ((a || s.index < h - 1) && f.createSlide(t + 1), (a || s.index > 0) && f.createSlide(t - 1)), f.current = s, f.currIndex = s.index, f.currPos = s.pos, f.trigger("beforeShow", o), f.updateControls(), s.forcedDuration = void 0, n.isNumeric(e) ? s.forcedDuration = e : e = s.opts[o ? "animationDuration" : "transitionDuration"], e = parseInt(e, 10), i = f.isMoved(s), s.$slide.addClass("fancybox-slide--current"), o) return s.opts.animationEffect && e && f.$refs.container.css("transition-duration", e + "ms"), f.$refs.container.addClass("fancybox-is-open").trigger("focus"), f.loadSlide(s), void f.preload("image");
337          c = n.fancybox.getTranslate(r.$slide), l = n.fancybox.getTranslate(f.$refs.stage), n.each(f.slides, function (t, e) {
338            n.fancybox.stop(e.$slide, !0);
339          }), r.pos !== s.pos && (r.isComplete = !1), r.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"), i ? (u = c.left - (r.pos * c.width + r.pos * r.opts.gutter), n.each(f.slides, function (t, o) {
340            o.$slide.removeClass("fancybox-animated").removeClass(function (t, e) {
341              return (e.match(/(^|\s)fancybox-fx-\S+/g) || []).join(" ");
342            });
343            var i = o.pos * c.width + o.pos * o.opts.gutter;
344            n.fancybox.setTranslate(o.$slide, {
345              top: 0,
346              left: i - l.left + u
347            }), o.pos !== s.pos && o.$slide.addClass("fancybox-slide--" + (o.pos > s.pos ? "next" : "previous")), p(o.$slide), n.fancybox.animate(o.$slide, {
348              top: 0,
349              left: (o.pos - s.pos) * c.width + (o.pos - s.pos) * o.opts.gutter
350            }, e, function () {
351              o.$slide.css({
352                transform: "",
353                opacity: ""
354              }).removeClass("fancybox-slide--next fancybox-slide--previous"), o.pos === f.currPos && f.complete();
355            });
356          })) : e && s.opts.transitionEffect && (d = "fancybox-animated fancybox-fx-" + s.opts.transitionEffect, r.$slide.addClass("fancybox-slide--" + (r.pos > s.pos ? "next" : "previous")), n.fancybox.animate(r.$slide, d, e, function () {
357            r.$slide.removeClass(d).removeClass("fancybox-slide--next fancybox-slide--previous");
358          }, !1)), s.isLoaded ? f.revealContent(s) : f.loadSlide(s), f.preload("image");
359        }
360      },
361      createSlide: function (t) {
362        var e,
363          o,
364          i = this;
365        return o = t % i.group.length, o = o < 0 ? i.group.length + o : o, !i.slides[t] && i.group[o] && (e = n('<div class="fancybox-slide"></div>').appendTo(i.$refs.stage), i.slides[t] = n.extend(!0, {}, i.group[o], {
366          pos: t,
367          $slide: e,
368          isLoaded: !1
369        }), i.updateSlide(i.slides[t])), i.slides[t];
370      },
371      scaleToActual: function (t, e, o) {
372        var i,
373          a,
374          s,
375          r,
376          c,
377          l = this,
378          d = l.current,
379          u = d.$content,
380          f = n.fancybox.getTranslate(d.$slide).width,
381          p = n.fancybox.getTranslate(d.$slide).height,
382          h = d.width,
383          g = d.height;
384        l.isAnimating || l.isMoved() || !u || "image" != d.type || !d.isLoaded || d.hasError || (l.isAnimating = !0, n.fancybox.stop(u), t = void 0 === t ? .5 * f : t, e = void 0 === e ? .5 * p : e, i = n.fancybox.getTranslate(u), i.top -= n.fancybox.getTranslate(d.$slide).top, i.left -= n.fancybox.getTranslate(d.$slide).left, r = h / i.width, c = g / i.height, a = .5 * f - .5 * h, s = .5 * p - .5 * g, h > f && (a = i.left * r - (t * r - t), a > 0 && (a = 0), a < f - h && (a = f - h)), g > p && (s = i.top * c - (e * c - e), s > 0 && (s = 0), s < p - g && (s = p - g)), l.updateCursor(h, g), n.fancybox.animate(u, {
385          top: s,
386          left: a,
387          scaleX: r,
388          scaleY: c
389        }, o || 366, function () {
390          l.isAnimating = !1;
391        }), l.SlideShow && l.SlideShow.isActive && l.SlideShow.stop());
392      },
393      scaleToFit: function (t) {
394        var e,
395          o = this,
396          i = o.current,
397          a = i.$content;
398        o.isAnimating || o.isMoved() || !a || "image" != i.type || !i.isLoaded || i.hasError || (o.isAnimating = !0, n.fancybox.stop(a), e = o.getFitPos(i), o.updateCursor(e.width, e.height), n.fancybox.animate(a, {
399          top: e.top,
400          left: e.left,
401          scaleX: e.width / a.width(),
402          scaleY: e.height / a.height()
403        }, t || 366, function () {
404          o.isAnimating = !1;
405        }));
406      },
407      getFitPos: function (t) {
408        var e,
409          o,
410          i,
411          a,
412          s = this,
413          r = t.$content,
414          c = t.$slide,
415          l = t.width || t.opts.width,
416          d = t.height || t.opts.height,
417          u = {};
418        return !!(t.isLoaded && r && r.length) && (e = n.fancybox.getTranslate(s.$refs.stage).width, o = n.fancybox.getTranslate(s.$refs.stage).height, e -= parseFloat(c.css("paddingLeft")) + parseFloat(c.css("paddingRight")) + parseFloat(r.css("marginLeft")) + parseFloat(r.css("marginRight")), o -= parseFloat(c.css("paddingTop")) + parseFloat(c.css("paddingBottom")) + parseFloat(r.css("marginTop")) + parseFloat(r.css("marginBottom")), l && d || (l = e, d = o), i = Math.min(1, e / l, o / d), l *= i, d *= i, l > e - .5 && (l = e), d > o - .5 && (d = o), "image" === t.type ? (u.top = Math.floor(.5 * (o - d)) + parseFloat(c.css("paddingTop")), u.left = Math.floor(.5 * (e - l)) + parseFloat(c.css("paddingLeft"))) : "video" === t.contentType && (a = t.opts.width && t.opts.height ? l / d : t.opts.ratio || 16 / 9, d > l / a ? d = l / a : l > d * a && (l = d * a)), u.width = l, u.height = d, u);
419      },
420      update: function (t) {
421        var e = this;
422        n.each(e.slides, function (n, o) {
423          e.updateSlide(o, t);
424        });
425      },
426      updateSlide: function (t, e) {
427        var o = this,
428          i = t && t.$content,
429          a = t.width || t.opts.width,
430          s = t.height || t.opts.height,
431          r = t.$slide;
432        o.adjustCaption(t), i && (a || s || "video" === t.contentType) && !t.hasError && (n.fancybox.stop(i), n.fancybox.setTranslate(i, o.getFitPos(t)), t.pos === o.currPos && (o.isAnimating = !1, o.updateCursor())), o.adjustLayout(t), r.length && (r.trigger("refresh"), t.pos === o.currPos && o.$refs.toolbar.add(o.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar", r.get(0).scrollHeight > r.get(0).clientHeight)), o.trigger("onUpdate", t, e);
433      },
434      centerSlide: function (t) {
435        var e = this,
436          o = e.current,
437          i = o.$slide;
438        !e.isClosing && o && (i.siblings().css({
439          transform: "",
440          opacity: ""
441        }), i.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"), n.fancybox.animate(i, {
442          top: 0,
443          left: 0,
444          opacity: 1
445        }, void 0 === t ? 0 : t, function () {
446          i.css({
447            transform: "",
448            opacity: ""
449          }), o.isComplete || e.complete();
450        }, !1));
451      },
452      isMoved: function (t) {
453        var e,
454          o,
455          i = t || this.current;
456        return !!i && (o = n.fancybox.getTranslate(this.$refs.stage), e = n.fancybox.getTranslate(i.$slide), !i.$slide.hasClass("fancybox-animated") && (Math.abs(e.top - o.top) > .5 || Math.abs(e.left - o.left) > .5));
457      },
458      updateCursor: function (t, e) {
459        var o,
460          i,
461          a = this,
462          s = a.current,
463          r = a.$refs.container;
464        s && !a.isClosing && a.Guestures && (r.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"), o = a.canPan(t, e), i = !!o || a.isZoomable(), r.toggleClass("fancybox-is-zoomable", i), n("[data-fancybox-zoom]").prop("disabled", !i), o ? r.addClass("fancybox-can-pan") : i && ("zoom" === s.opts.clickContent || n.isFunction(s.opts.clickContent) && "zoom" == s.opts.clickContent(s)) ? r.addClass("fancybox-can-zoomIn") : s.opts.touch && (s.opts.touch.vertical || a.group.length > 1) && "video" !== s.contentType && r.addClass("fancybox-can-swipe"));
465      },
466      isZoomable: function () {
467        var t,
468          e = this,
469          n = e.current;
470        if (n && !e.isClosing && "image" === n.type && !n.hasError) {
471          if (!n.isLoaded) return !0;
472          if ((t = e.getFitPos(n)) && (n.width > t.width || n.height > t.height)) return !0;
473        }
474        return !1;
475      },
476      isScaledDown: function (t, e) {
477        var o = this,
478          i = !1,
479          a = o.current,
480          s = a.$content;
481        return void 0 !== t && void 0 !== e ? i = t < a.width && e < a.height : s && (i = n.fancybox.getTranslate(s), i = i.width < a.width && i.height < a.height), i;
482      },
483      canPan: function (t, e) {
484        var o = this,
485          i = o.current,
486          a = null,
487          s = !1;
488        return "image" === i.type && (i.isComplete || t && e) && !i.hasError && (s = o.getFitPos(i), void 0 !== t && void 0 !== e ? a = {
489          width: t,
490          height: e
491        } : i.isComplete && (a = n.fancybox.getTranslate(i.$content)), a && s && (s = Math.abs(a.width - s.width) > 1.5 || Math.abs(a.height - s.height) > 1.5)), s;
492      },
493      loadSlide: function (t) {
494        var e,
495          o,
496          i,
497          a = this;
498        if (!t.isLoading && !t.isLoaded) {
499          if (t.isLoading = !0, !1 === a.trigger("beforeLoad", t)) return t.isLoading = !1, !1;
500          switch (e = t.type, o = t.$slide, o.off("refresh").trigger("onReset").addClass(t.opts.slideClass), e) {
501            case "image":
502              a.setImage(t);
503              break;
504            case "iframe":
505              a.setIframe(t);
506              break;
507            case "html":
508              a.setContent(t, t.src || t.content);
509              break;
510            case "video":
511              a.setContent(t, t.opts.video.tpl.replace(/\{\{src\}\}/gi, t.src).replace("{{format}}", t.opts.videoFormat || t.opts.video.format || "").replace("{{poster}}", t.thumb || ""));
512              break;
513            case "inline":
514              n(t.src).length ? a.setContent(t, n(t.src)) : a.setError(t);
515              break;
516            case "ajax":
517              a.showLoading(t), i = n.ajax(n.extend({}, t.opts.ajax.settings, {
518                url: t.src,
519                success: function (e, n) {
520                  "success" === n && a.setContent(t, e);
521                },
522                error: function (e, n) {
523                  e && "abort" !== n && a.setError(t);
524                }
525              })), o.one("onReset", function () {
526                i.abort();
527              });
528              break;
529            default:
530              a.setError(t);
531          }
532          return !0;
533        }
534      },
535      setImage: function (t) {
536        var o,
537          i = this;
538        setTimeout(function () {
539          var e = t.$image;
540          i.isClosing || !t.isLoading || e && e.length && e[0].complete || t.hasError || i.showLoading(t);
541        }, 50), i.checkSrcset(t), t.$content = n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image")), !1 !== t.opts.preload && t.opts.width && t.opts.height && t.thumb && (t.width = t.opts.width, t.height = t.opts.height, o = e.createElement("img"), o.onerror = function () {
542          n(this).remove(), t.$ghost = null;
543        }, o.onload = function () {
544          i.afterLoad(t);
545        }, t.$ghost = n(o).addClass("fancybox-image").appendTo(t.$content).attr("src", t.thumb)), i.setBigImage(t);
546      },
547      checkSrcset: function (e) {
548        var n,
549          o,
550          i,
551          a,
552          s = e.opts.srcset || e.opts.image.srcset;
553        if (s) {
554          i = t.devicePixelRatio || 1, a = t.innerWidth * i, o = s.split(",").map(function (t) {
555            var e = {};
556            return t.trim().split(/\s+/).forEach(function (t, n) {
557              var o = parseInt(t.substring(0, t.length - 1), 10);
558              if (0 === n) return e.url = t;
559              o && (e.value = o, e.postfix = t[t.length - 1]);
560            }), e;
561          }), o.sort(function (t, e) {
562            return t.value - e.value;
563          });
564          for (var r = 0; r < o.length; r++) {
565            var c = o[r];
566            if ("w" === c.postfix && c.value >= a || "x" === c.postfix && c.value >= i) {
567              n = c;
568              break;
569            }
570          }
571          !n && o.length && (n = o[o.length - 1]), n && (e.src = n.url, e.width && e.height && "w" == n.postfix && (e.height = e.width / e.height * n.value, e.width = n.value), e.opts.srcset = s);
572        }
573      },
574      setBigImage: function (t) {
575        var o = this,
576          i = e.createElement("img"),
577          a = n(i);
578        t.$image = a.one("error", function () {
579          o.setError(t);
580        }).one("load", function () {
581          var e;
582          t.$ghost || (o.resolveImageSlideSize(t, this.naturalWidth, this.naturalHeight), o.afterLoad(t)), o.isClosing || (t.opts.srcset && (e = t.opts.sizes, e && "auto" !== e || (e = (t.width / t.height > 1 && s.width() / s.height() > 1 ? "100" : Math.round(t.width / t.height * 100)) + "vw"), a.attr("sizes", e).attr("srcset", t.opts.srcset)), t.$ghost && setTimeout(function () {
583            t.$ghost && !o.isClosing && t.$ghost.hide();
584          }, Math.min(300, Math.max(1e3, t.height / 1600))), o.hideLoading(t));
585        }).addClass("fancybox-image").attr("src", t.src).appendTo(t.$content), (i.complete || "complete" == i.readyState) && a.naturalWidth && a.naturalHeight ? a.trigger("load") : i.error && a.trigger("error");
586      },
587      resolveImageSlideSize: function (t, e, n) {
588        var o = parseInt(t.opts.width, 10),
589          i = parseInt(t.opts.height, 10);
590        t.width = e, t.height = n, o > 0 && (t.width = o, t.height = Math.floor(o * n / e)), i > 0 && (t.width = Math.floor(i * e / n), t.height = i);
591      },
592      setIframe: function (t) {
593        var e,
594          o = this,
595          i = t.opts.iframe,
596          a = t.$slide;
597        t.$content = n('<div class="fancybox-content' + (i.preload ? " fancybox-is-hidden" : "") + '"></div>').css(i.css).appendTo(a), a.addClass("fancybox-slide--" + t.contentType), t.$iframe = e = n(i.tpl.replace(/\{rnd\}/g, new Date().getTime())).attr(i.attr).appendTo(t.$content), i.preload ? (o.showLoading(t), e.on("load.fb error.fb", function (e) {
598          this.isReady = 1, t.$slide.trigger("refresh"), o.afterLoad(t);
599        }), a.on("refresh.fb", function () {
600          var n,
601            o,
602            s = t.$content,
603            r = i.css.width,
604            c = i.css.height;
605          if (1 === e[0].isReady) {
606            try {
607              n = e.contents(), o = n.find("body");
608            } catch (t) {}
609            o && o.length && o.children().length && (a.css("overflow", "visible"), s.css({
610              width: "100%",
611              "max-width": "100%",
612              height: "9999px"
613            }), void 0 === r && (r = Math.ceil(Math.max(o[0].clientWidth, o.outerWidth(!0)))), s.css("width", r || "").css("max-width", ""), void 0 === c && (c = Math.ceil(Math.max(o[0].clientHeight, o.outerHeight(!0)))), s.css("height", c || ""), a.css("overflow", "auto")), s.removeClass("fancybox-is-hidden");
614          }
615        })) : o.afterLoad(t), e.attr("src", t.src), a.one("onReset", function () {
616          try {
617            n(this).find("iframe").hide().unbind().attr("src", "//about:blank");
618          } catch (t) {}
619          n(this).off("refresh.fb").empty(), t.isLoaded = !1, t.isRevealed = !1;
620        });
621      },
622      setContent: function (t, e) {
623        var o = this;
624        o.isClosing || (o.hideLoading(t), t.$content && n.fancybox.stop(t.$content), t.$slide.empty(), l(e) && e.parent().length ? ((e.hasClass("fancybox-content") || e.parent().hasClass("fancybox-content")) && e.parents(".fancybox-slide").trigger("onReset"), t.$placeholder = n("<div>").hide().insertAfter(e), e.css("display", "inline-block")) : t.hasError || ("string" === n.type(e) && (e = n("<div>").append(n.trim(e)).contents()), t.opts.filter && (e = n("<div>").html(e).find(t.opts.filter))), t.$slide.one("onReset", function () {
625          n(this).find("video,audio").trigger("pause"), t.$placeholder && (t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove(), t.$placeholder = null), t.$smallBtn && (t.$smallBtn.remove(), t.$smallBtn = null), t.hasError || (n(this).empty(), t.isLoaded = !1, t.isRevealed = !1);
626        }), n(e).appendTo(t.$slide), n(e).is("video,audio") && (n(e).addClass("fancybox-video"), n(e).wrap("<div></div>"), t.contentType = "video", t.opts.width = t.opts.width || n(e).attr("width"), t.opts.height = t.opts.height || n(e).attr("height")), t.$content = t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(), t.$content.siblings().hide(), t.$content.length || (t.$content = t.$slide.wrapInner("<div></div>").children().first()), t.$content.addClass("fancybox-content"), t.$slide.addClass("fancybox-slide--" + t.contentType), o.afterLoad(t));
627      },
628      setError: function (t) {
629        t.hasError = !0, t.$slide.trigger("onReset").removeClass("fancybox-slide--" + t.contentType).addClass("fancybox-slide--error"), t.contentType = "html", this.setContent(t, this.translate(t, t.opts.errorTpl)), t.pos === this.currPos && (this.isAnimating = !1);
630      },
631      showLoading: function (t) {
632        var e = this;
633        (t = t || e.current) && !t.$spinner && (t.$spinner = n(e.translate(e, e.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"));
634      },
635      hideLoading: function (t) {
636        var e = this;
637        (t = t || e.current) && t.$spinner && (t.$spinner.stop().remove(), delete t.$spinner);
638      },
639      afterLoad: function (t) {
640        var e = this;
641        e.isClosing || (t.isLoading = !1, t.isLoaded = !0, e.trigger("afterLoad", t), e.hideLoading(t), !t.opts.smallBtn || t.$smallBtn && t.$smallBtn.length || (t.$smallBtn = n(e.translate(t, t.opts.btnTpl.smallBtn)).appendTo(t.$content)), t.opts.protect && t.$content && !t.hasError && (t.$content.on("contextmenu.fb", function (t) {
642          return 2 == t.button && t.preventDefault(), !0;
643        }), "image" === t.type && n('<div class="fancybox-spaceball"></div>').appendTo(t.$content)), e.adjustCaption(t), e.adjustLayout(t), t.pos === e.currPos && e.updateCursor(), e.revealContent(t));
644      },
645      adjustCaption: function (t) {
646        var e,
647          n = this,
648          o = t || n.current,
649          i = o.opts.caption,
650          a = o.opts.preventCaptionOverlap,
651          s = n.$refs.caption,
652          r = !1;
653        s.toggleClass("fancybox-caption--separate", a), a && i && i.length && (o.pos !== n.currPos ? (e = s.clone().appendTo(s.parent()), e.children().eq(0).empty().html(i), r = e.outerHeight(!0), e.empty().remove()) : n.$caption && (r = n.$caption.outerHeight(!0)), o.$slide.css("padding-bottom", r || ""));
654      },
655      adjustLayout: function (t) {
656        var e,
657          n,
658          o,
659          i,
660          a = this,
661          s = t || a.current;
662        s.isLoaded && !0 !== s.opts.disableLayoutFix && (s.$content.css("margin-bottom", ""), s.$content.outerHeight() > s.$slide.height() + .5 && (o = s.$slide[0].style["padding-bottom"], i = s.$slide.css("padding-bottom"), parseFloat(i) > 0 && (e = s.$slide[0].scrollHeight, s.$slide.css("padding-bottom", 0), Math.abs(e - s.$slide[0].scrollHeight) < 1 && (n = i), s.$slide.css("padding-bottom", o))), s.$content.css("margin-bottom", n));
663      },
664      revealContent: function (t) {
665        var e,
666          o,
667          i,
668          a,
669          s = this,
670          r = t.$slide,
671          c = !1,
672          l = !1,
673          d = s.isMoved(t),
674          u = t.isRevealed;
675        return t.isRevealed = !0, e = t.opts[s.firstRun ? "animationEffect" : "transitionEffect"], i = t.opts[s.firstRun ? "animationDuration" : "transitionDuration"], i = parseInt(void 0 === t.forcedDuration ? i : t.forcedDuration, 10), !d && t.pos === s.currPos && i || (e = !1), "zoom" === e && (t.pos === s.currPos && i && "image" === t.type && !t.hasError && (l = s.getThumbPos(t)) ? c = s.getFitPos(t) : e = "fade"), "zoom" === e ? (s.isAnimating = !0, c.scaleX = c.width / l.width, c.scaleY = c.height / l.height, a = t.opts.zoomOpacity, "auto" == a && (a = Math.abs(t.width / t.height - l.width / l.height) > .1), a && (l.opacity = .1, c.opacity = 1), n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"), l), p(t.$content), void n.fancybox.animate(t.$content, c, i, function () {
676          s.isAnimating = !1, s.complete();
677        })) : (s.updateSlide(t), e ? (n.fancybox.stop(r), o = "fancybox-slide--" + (t.pos >= s.prevPos ? "next" : "previous") + " fancybox-animated fancybox-fx-" + e, r.addClass(o).removeClass("fancybox-slide--current"), t.$content.removeClass("fancybox-is-hidden"), p(r), "image" !== t.type && t.$content.hide().show(0), void n.fancybox.animate(r, "fancybox-slide--current", i, function () {
678          r.removeClass(o).css({
679            transform: "",
680            opacity: ""
681          }), t.pos === s.currPos && s.complete();
682        }, !0)) : (t.$content.removeClass("fancybox-is-hidden"), u || !d || "image" !== t.type || t.hasError || t.$content.hide().fadeIn("fast"), void (t.pos === s.currPos && s.complete())));
683      },
684      getThumbPos: function (t) {
685        var e,
686          o,
687          i,
688          a,
689          s,
690          r = !1,
691          c = t.$thumb;
692        return !(!c || !g(c[0])) && (e = n.fancybox.getTranslate(c), o = parseFloat(c.css("border-top-width") || 0), i = parseFloat(c.css("border-right-width") || 0), a = parseFloat(c.css("border-bottom-width") || 0), s = parseFloat(c.css("border-left-width") || 0), r = {
693          top: e.top + o,
694          left: e.left + s,
695          width: e.width - i - s,
696          height: e.height - o - a,
697          scaleX: 1,
698          scaleY: 1
699        }, e.width > 0 && e.height > 0 && r);
700      },
701      complete: function () {
702        var t,
703          e = this,
704          o = e.current,
705          i = {};
706        !e.isMoved() && o.isLoaded && (o.isComplete || (o.isComplete = !0, o.$slide.siblings().trigger("onReset"), e.preload("inline"), p(o.$slide), o.$slide.addClass("fancybox-slide--complete"), n.each(e.slides, function (t, o) {
707          o.pos >= e.currPos - 1 && o.pos <= e.currPos + 1 ? i[o.pos] = o : o && (n.fancybox.stop(o.$slide), o.$slide.off().remove());
708        }), e.slides = i), e.isAnimating = !1, e.updateCursor(), e.trigger("afterShow"), o.opts.video.autoStart && o.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended", function () {
709          Document.exitFullscreen ? Document.exitFullscreen() : this.webkitExitFullscreen && this.webkitExitFullscreen(), e.next();
710        }), o.opts.autoFocus && "html" === o.contentType && (t = o.$content.find("input[autofocus]:enabled:visible:first"), t.length ? t.trigger("focus") : e.focus(null, !0)), o.$slide.scrollTop(0).scrollLeft(0));
711      },
712      preload: function (t) {
713        var e,
714          n,
715          o = this;
716        o.group.length < 2 || (n = o.slides[o.currPos + 1], e = o.slides[o.currPos - 1], e && e.type === t && o.loadSlide(e), n && n.type === t && o.loadSlide(n));
717      },
718      focus: function (t, o) {
719        var i,
720          a,
721          s = this,
722          r = ["a[href]", "area[href]", 'input:not([disabled]):not([type="hidden"]):not([aria-hidden])', "select:not([disabled]):not([aria-hidden])", "textarea:not([disabled]):not([aria-hidden])", "button:not([disabled]):not([aria-hidden])", "iframe", "object", "embed", "video", "audio", "[contenteditable]", '[tabindex]:not([tabindex^="-"])'].join(",");
723        s.isClosing || (i = !t && s.current && s.current.isComplete ? s.current.$slide.find("*:visible" + (o ? ":not(.fancybox-close-small)" : "")) : s.$refs.container.find("*:visible"), i = i.filter(r).filter(function () {
724          return "hidden" !== n(this).css("visibility") && !n(this).hasClass("disabled");
725        }), i.length ? (a = i.index(e.activeElement), t && t.shiftKey ? (a < 0 || 0 == a) && (t.preventDefault(), i.eq(i.length - 1).trigger("focus")) : (a < 0 || a == i.length - 1) && (t && t.preventDefault(), i.eq(0).trigger("focus"))) : s.$refs.container.trigger("focus"));
726      },
727      activate: function () {
728        var t = this;
729        n(".fancybox-container").each(function () {
730          var e = n(this).data("FancyBox");
731          e && e.id !== t.id && !e.isClosing && (e.trigger("onDeactivate"), e.removeEvents(), e.isVisible = !1);
732        }), t.isVisible = !0, (t.current || t.isIdle) && (t.update(), t.updateControls()), t.trigger("onActivate"), t.addEvents();
733      },
734      close: function (t, e) {
735        var o,
736          i,
737          a,
738          s,
739          r,
740          c,
741          l,
742          u = this,
743          f = u.current,
744          h = function () {
745            u.cleanUp(t);
746          };
747        return !u.isClosing && (u.isClosing = !0, !1 === u.trigger("beforeClose", t) ? (u.isClosing = !1, d(function () {
748          u.update();
749        }), !1) : (u.removeEvents(), a = f.$content, o = f.opts.animationEffect, i = n.isNumeric(e) ? e : o ? f.opts.animationDuration : 0, f.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"), !0 !== t ? n.fancybox.stop(f.$slide) : o = !1, f.$slide.siblings().trigger("onReset").remove(), i && u.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration", i + "ms"), u.hideLoading(f), u.hideControls(!0), u.updateCursor(), "zoom" !== o || a && i && "image" === f.type && !u.isMoved() && !f.hasError && (l = u.getThumbPos(f)) || (o = "fade"), "zoom" === o ? (n.fancybox.stop(a), s = n.fancybox.getTranslate(a), c = {
750          top: s.top,
751          left: s.left,
752          scaleX: s.width / l.width,
753          scaleY: s.height / l.height,
754          width: l.width,
755          height: l.height
756        }, r = f.opts.zoomOpacity, "auto" == r && (r = Math.abs(f.width / f.height - l.width / l.height) > .1), r && (l.opacity = 0), n.fancybox.setTranslate(a, c), p(a), n.fancybox.animate(a, l, i, h), !0) : (o && i ? n.fancybox.animate(f.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"), "fancybox-animated fancybox-fx-" + o, i, h) : !0 === t ? setTimeout(h, i) : h(), !0)));
757      },
758      cleanUp: function (e) {
759        var o,
760          i,
761          a,
762          s = this,
763          r = s.current.opts.$orig;
764        s.current.$slide.trigger("onReset"), s.$refs.container.empty().remove(), s.trigger("afterClose", e), s.current.opts.backFocus && (r && r.length && r.is(":visible") || (r = s.$trigger), r && r.length && (i = t.scrollX, a = t.scrollY, r.trigger("focus"), n("html, body").scrollTop(a).scrollLeft(i))), s.current = null, o = n.fancybox.getInstance(), o ? o.activate() : (n("body").removeClass("fancybox-active compensate-for-scrollbar"), n("#fancybox-style-noscroll").remove());
765      },
766      trigger: function (t, e) {
767        var o,
768          i = Array.prototype.slice.call(arguments, 1),
769          a = this,
770          s = e && e.opts ? e : a.current;
771        if (s ? i.unshift(s) : s = a, i.unshift(a), n.isFunction(s.opts[t]) && (o = s.opts[t].apply(s, i)), !1 === o) return o;
772        "afterClose" !== t && a.$refs ? a.$refs.container.trigger(t + ".fb", i) : r.trigger(t + ".fb", i);
773      },
774      updateControls: function () {
775        var t = this,
776          o = t.current,
777          i = o.index,
778          a = t.$refs.container,
779          s = t.$refs.caption,
780          r = o.opts.caption;
781        o.$slide.trigger("refresh"), r && r.length ? (t.$caption = s, s.children().eq(0).html(r)) : t.$caption = null, t.hasHiddenControls || t.isIdle || t.showControls(), a.find("[data-fancybox-count]").html(t.group.length), a.find("[data-fancybox-index]").html(i + 1), a.find("[data-fancybox-prev]").prop("disabled", !o.opts.loop && i <= 0), a.find("[data-fancybox-next]").prop("disabled", !o.opts.loop && i >= t.group.length - 1), "image" === o.type ? a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href", o.opts.image.src || o.src).show() : o.opts.toolbar && a.find("[data-fancybox-download],[data-fancybox-zoom]").hide(), n(e.activeElement).is(":hidden,[disabled]") && t.$refs.container.trigger("focus");
782      },
783      hideControls: function (t) {
784        var e = this,
785          n = ["infobar", "toolbar", "nav"];
786        !t && e.current.opts.preventCaptionOverlap || n.push("caption"), this.$refs.container.removeClass(n.map(function (t) {
787          return "fancybox-show-" + t;
788        }).join(" ")), this.hasHiddenControls = !0;
789      },
790      showControls: function () {
791        var t = this,
792          e = t.current ? t.current.opts : t.opts,
793          n = t.$refs.container;
794        t.hasHiddenControls = !1, t.idleSecondsCounter = 0, n.toggleClass("fancybox-show-toolbar", !(!e.toolbar || !e.buttons)).toggleClass("fancybox-show-infobar", !!(e.infobar && t.group.length > 1)).toggleClass("fancybox-show-caption", !!t.$caption).toggleClass("fancybox-show-nav", !!(e.arrows && t.group.length > 1)).toggleClass("fancybox-is-modal", !!e.modal);
795      },
796      toggleControls: function () {
797        this.hasHiddenControls ? this.showControls() : this.hideControls();
798      }
799    }), n.fancybox = {
800      version: "3.5.7",
801      defaults: a,
802      getInstance: function (t) {
803        var e = n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),
804          o = Array.prototype.slice.call(arguments, 1);
805        return e instanceof b && ("string" === n.type(t) ? e[t].apply(e, o) : "function" === n.type(t) && t.apply(e, o), e);
806      },
807      open: function (t, e, n) {
808        return new b(t, e, n);
809      },
810      close: function (t) {
811        var e = this.getInstance();
812        e && (e.close(), !0 === t && this.close(t));
813      },
814      destroy: function () {
815        this.close(!0), r.add("body").off("click.fb-start", "**");
816      },
817      isMobile: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),
818      use3d: function () {
819        var n = e.createElement("div");
820        return t.getComputedStyle && t.getComputedStyle(n) && t.getComputedStyle(n).getPropertyValue("transform") && !(e.documentMode && e.documentMode < 11);
821      }(),
822      getTranslate: function (t) {
823        var e;
824        return !(!t || !t.length) && (e = t[0].getBoundingClientRect(), {
825          top: e.top || 0,
826          left: e.left || 0,
827          width: e.width,
828          height: e.height,
829          opacity: parseFloat(t.css("opacity"))
830        });
831      },
832      setTranslate: function (t, e) {
833        var n = "",
834          o = {};
835        if (t && e) return void 0 === e.left && void 0 === e.top || (n = (void 0 === e.left ? t.position().left : e.left) + "px, " + (void 0 === e.top ? t.position().top : e.top) + "px", n = this.use3d ? "translate3d(" + n + ", 0px)" : "translate(" + n + ")"), void 0 !== e.scaleX && void 0 !== e.scaleY ? n += " scale(" + e.scaleX + ", " + e.scaleY + ")" : void 0 !== e.scaleX && (n += " scaleX(" + e.scaleX + ")"), n.length && (o.transform = n), void 0 !== e.opacity && (o.opacity = e.opacity), void 0 !== e.width && (o.width = e.width), void 0 !== e.height && (o.height = e.height), t.css(o);
836      },
837      animate: function (t, e, o, i, a) {
838        var s,
839          r = this;
840        n.isFunction(o) && (i = o, o = null), r.stop(t), s = r.getTranslate(t), t.on(f, function (c) {
841          (!c || !c.originalEvent || t.is(c.originalEvent.target) && "z-index" != c.originalEvent.propertyName) && (r.stop(t), n.isNumeric(o) && t.css("transition-duration", ""), n.isPlainObject(e) ? void 0 !== e.scaleX && void 0 !== e.scaleY && r.setTranslate(t, {
842            top: e.top,
843            left: e.left,
844            width: s.width * e.scaleX,
845            height: s.height * e.scaleY,
846            scaleX: 1,
847            scaleY: 1
848          }) : !0 !== a && t.removeClass(e), n.isFunction(i) && i(c));
849        }), n.isNumeric(o) && t.css("transition-duration", o + "ms"), n.isPlainObject(e) ? (void 0 !== e.scaleX && void 0 !== e.scaleY && (delete e.width, delete e.height, t.parent().hasClass("fancybox-slide--image") && t.parent().addClass("fancybox-is-scaling")), n.fancybox.setTranslate(t, e)) : t.addClass(e), t.data("timer", setTimeout(function () {
850          t.trigger(f);
851        }, o + 33));
852      },
853      stop: function (t, e) {
854        t && t.length && (clearTimeout(t.data("timer")), e && t.trigger(f), t.off(f).css("transition-duration", ""), t.parent().removeClass("fancybox-is-scaling"));
855      }
856    }, n.fn.fancybox = function (t) {
857      var e;
858      return t = t || {}, e = t.selector || !1, e ? n("body").off("click.fb-start", e).on("click.fb-start", e, {
859        options: t
860      }, i) : this.off("click.fb-start").on("click.fb-start", {
861        items: this,
862        options: t
863      }, i), this;
864    }, r.on("click.fb-start", "[data-fancybox]", i), r.on("click.fb-start", "[data-fancybox-trigger]", function (t) {
865      n('[data-fancybox="' + n(this).attr("data-fancybox-trigger") + '"]').eq(n(this).attr("data-fancybox-index") || 0).trigger("click.fb-start", {
866        $trigger: n(this)
867      });
868    }), function () {
869      var t = null;
870      r.on("mousedown mouseup focus blur", ".fancybox-button", function (e) {
871        switch (e.type) {
872          case "mousedown":
873            t = n(this);
874            break;
875          case "mouseup":
876            t = null;
877            break;
878          case "focusin":
879            n(".fancybox-button").removeClass("fancybox-focus"), n(this).is(t) || n(this).is("[disabled]") || n(this).addClass("fancybox-focus");
880            break;
881          case "focusout":
882            n(".fancybox-button").removeClass("fancybox-focus");
883        }
884      });
885    }();
886  }
887}(window, document, jQuery), function (t) {
888  "use strict";
889
890  var e = {
891      youtube: {
892        matcher: /(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,
893        params: {
894          autoplay: 1,
895          autohide: 1,
896          fs: 1,
897          rel: 0,
898          hd: 1,
899          wmode: "transparent",
900          enablejsapi: 1,
901          html5: 1
902        },
903        paramPlace: 8,
904        type: "iframe",
905        url: "https://www.youtube-nocookie.com/embed/$4",
906        thumb: "https://img.youtube.com/vi/$4/hqdefault.jpg"
907      },
908      vimeo: {
909        matcher: /^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,
910        params: {
911          autoplay: 1,
912          hd: 1,
913          show_title: 1,
914          show_byline: 1,
915          show_portrait: 0,
916          fullscreen: 1
917        },
918        paramPlace: 3,
919        type: "iframe",
920        url: "//player.vimeo.com/video/$2"
921      },
922      instagram: {
923        matcher: /(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,
924        type: "image",
925        url: "//$1/p/$2/media/?size=l"
926      },
927      gmap_place: {
928        matcher: /(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,
929        type: "iframe",
930        url: function (t) {
931          return "//maps.google." + t[2] + "/?ll=" + (t[9] ? t[9] + "&z=" + Math.floor(t[10]) + (t[12] ? t[12].replace(/^\//, "&") : "") : t[12] + "").replace(/\?/, "&") + "&output=" + (t[12] && t[12].indexOf("layer=c") > 0 ? "svembed" : "embed");
932        }
933      },
934      gmap_search: {
935        matcher: /(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,
936        type: "iframe",
937        url: function (t) {
938          return "//maps.google." + t[2] + "/maps?q=" + t[5].replace("query=", "q=").replace("api=1", "") + "&output=embed";
939        }
940      }
941    },
942    n = function (e, n, o) {
943      if (e) return o = o || "", "object" === t.type(o) && (o = t.param(o, !0)), t.each(n, function (t, n) {
944        e = e.replace("$" + t, n || "");
945      }), o.length && (e += (e.indexOf("?") > 0 ? "&" : "?") + o), e;
946    };
947  t(document).on("objectNeedsType.fb", function (o, i, a) {
948    var s,
949      r,
950      c,
951      l,
952      d,
953      u,
954      f,
955      p = a.src || "",
956      h = !1;
957    s = t.extend(!0, {}, e, a.opts.media), t.each(s, function (e, o) {
958      if (c = p.match(o.matcher)) {
959        if (h = o.type, f = e, u = {}, o.paramPlace && c[o.paramPlace]) {
960          d = c[o.paramPlace], "?" == d[0] && (d = d.substring(1)), d = d.split("&");
961          for (var i = 0; i < d.length; ++i) {
962            var s = d[i].split("=", 2);
963            2 == s.length && (u[s[0]] = decodeURIComponent(s[1].replace(/\+/g, " ")));
964          }
965        }
966        return l = t.extend(!0, {}, o.params, a.opts[e], u), p = "function" === t.type(o.url) ? o.url.call(this, c, l, a) : n(o.url, c, l), r = "function" === t.type(o.thumb) ? o.thumb.call(this, c, l, a) : n(o.thumb, c), "youtube" === e ? p = p.replace(/&t=((\d+)m)?(\d+)s/, function (t, e, n, o) {
967          return "&start=" + ((n ? 60 * parseInt(n, 10) : 0) + parseInt(o, 10));
968        }) : "vimeo" === e && (p = p.replace("&%23", "#")), !1;
969      }
970    }), h ? (a.opts.thumb || a.opts.$thumb && a.opts.$thumb.length || (a.opts.thumb = r), "iframe" === h && (a.opts = t.extend(!0, a.opts, {
971      iframe: {
972        preload: !1,
973        attr: {
974          scrolling: "no"
975        }
976      }
977    })), t.extend(a, {
978      type: h,
979      src: p,
980      origSrc: a.src,
981      contentSource: f,
982      contentType: "image" === h ? "image" : "gmap_place" == f || "gmap_search" == f ? "map" : "video"
983    })) : p && (a.type = a.opts.defaultType);
984  });
985  var o = {
986    youtube: {
987      src: "https://www.youtube.com/iframe_api",
988      class: "YT",
989      loading: !1,
990      loaded: !1
991    },
992    vimeo: {
993      src: "https://player.vimeo.com/api/player.js",
994      class: "Vimeo",
995      loading: !1,
996      loaded: !1
997    },
998    load: function (t) {
999      var e,
1000        n = this;
1001      if (this[t].loaded) return void setTimeout(function () {
1002        n.done(t);
1003      });
1004      this[t].loading || (this[t].loading = !0, e = document.createElement("script"), e.type = "text/javascript", e.src = this[t].src, "youtube" === t ? window.onYouTubeIframeAPIReady = function () {
1005        n[t].loaded = !0, n.done(t);
1006      } : e.onload = function () {
1007        n[t].loaded = !0, n.done(t);
1008      }, document.body.appendChild(e));
1009    },
1010    done: function (e) {
1011      var n, o, i;
1012      "youtube" === e && delete window.onYouTubeIframeAPIReady, (n = t.fancybox.getInstance()) && (o = n.current.$content.find("iframe"), "youtube" === e && void 0 !== YT && YT ? i = new YT.Player(o.attr("id"), {
1013        events: {
1014          onStateChange: function (t) {
1015            0 == t.data && n.next();
1016          }
1017        }
1018      }) : "vimeo" === e && void 0 !== Vimeo && Vimeo && (i = new Vimeo.Player(o), i.on("ended", function () {
1019        n.next();
1020      })));
1021    }
1022  };
1023  t(document).on({
1024    "afterShow.fb": function (t, e, n) {
1025      e.group.length > 1 && ("youtube" === n.contentSource || "vimeo" === n.contentSource) && o.load(n.contentSource);
1026    }
1027  });
1028}(jQuery), function (t, e, n) {
1029  "use strict";
1030
1031  var o = function () {
1032      return t.requestAnimationFrame || t.webkitRequestAnimationFrame || t.mozRequestAnimationFrame || t.oRequestAnimationFrame || function (e) {
1033        return t.setTimeout(e, 1e3 / 60);
1034      };
1035    }(),
1036    i = function () {
1037      return t.cancelAnimationFrame || t.webkitCancelAnimationFrame || t.mozCancelAnimationFrame || t.oCancelAnimationFrame || function (e) {
1038        t.clearTimeout(e);
1039      };
1040    }(),
1041    a = function (e) {
1042      var n = [];
1043      e = e.originalEvent || e || t.e, e = e.touches && e.touches.length ? e.touches : e.changedTouches && e.changedTouches.length ? e.changedTouches : [e];
1044      for (var o in e) e[o].pageX ? n.push({
1045        x: e[o].pageX,
1046        y: e[o].pageY
1047      }) : e[o].clientX && n.push({
1048        x: e[o].clientX,
1049        y: e[o].clientY
1050      });
1051      return n;
1052    },
1053    s = function (t, e, n) {
1054      return e && t ? "x" === n ? t.x - e.x : "y" === n ? t.y - e.y : Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)) : 0;
1055    },
1056    r = function (t) {
1057      if (t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe') || n.isFunction(t.get(0).onclick) || t.data("selectable")) return !0;
1058      for (var e = 0, o = t[0].attributes, i = o.length; e < i; e++) if ("data-fancybox-" === o[e].nodeName.substr(0, 14)) return !0;
1059      return !1;
1060    },
1061    c = function (e) {
1062      var n = t.getComputedStyle(e)["overflow-y"],
1063        o = t.getComputedStyle(e)["overflow-x"],
1064        i = ("scroll" === n || "auto" === n) && e.scrollHeight > e.clientHeight,
1065        a = ("scroll" === o || "auto" === o) && e.scrollWidth > e.clientWidth;
1066      return i || a;
1067    },
1068    l = function (t) {
1069      for (var e = !1;;) {
1070        if (e = c(t.get(0))) break;
1071        if (t = t.parent(), !t.length || t.hasClass("fancybox-stage") || t.is("body")) break;
1072      }
1073      return e;
1074    },
1075    d = function (t) {
1076      var e = this;
1077      e.instance = t, e.$bg = t.$refs.bg, e.$stage = t.$refs.stage, e.$container = t.$refs.container, e.destroy(), e.$container.on("touchstart.fb.touch mousedown.fb.touch", n.proxy(e, "ontouchstart"));
1078    };
1079  d.prototype.destroy = function () {
1080    var t = this;
1081    t.$container.off(".fb.touch"), n(e).off(".fb.touch"), t.requestId && (i(t.requestId), t.requestId = null), t.tapped && (clearTimeout(t.tapped), t.tapped = null);
1082  }, d.prototype.ontouchstart = function (o) {
1083    var i = this,
1084      c = n(o.target),
1085      d = i.instance,
1086      u = d.current,
1087      f = u.$slide,
1088      p = u.$content,
1089      h = "touchstart" == o.type;
1090    if (h && i.$container.off("mousedown.fb.touch"), (!o.originalEvent || 2 != o.originalEvent.button) && f.length && c.length && !r(c) && !r(c.parent()) && (c.is("img") || !(o.originalEvent.clientX > c[0].clientWidth + c.offset().left))) {
1091      if (!u || d.isAnimating || u.$slide.hasClass("fancybox-animated")) return o.stopPropagation(), void o.preventDefault();
1092      i.realPoints = i.startPoints = a(o), i.startPoints.length && (u.touch && o.stopPropagation(), i.startEvent = o, i.canTap = !0, i.$target = c, i.$content = p, i.opts = u.opts.touch, i.isPanning = !1, i.isSwiping = !1, i.isZooming = !1, i.isScrolling = !1, i.canPan = d.canPan(), i.startTime = new Date().getTime(), i.distanceX = i.distanceY = i.distance = 0, i.canvasWidth = Math.round(f[0].clientWidth), i.canvasHeight = Math.round(f[0].clientHeight), i.contentLastPos = null, i.contentStartPos = n.fancybox.getTranslate(i.$content) || {
1093        top: 0,
1094        left: 0
1095      }, i.sliderStartPos = n.fancybox.getTranslate(f), i.stagePos = n.fancybox.getTranslate(d.$refs.stage), i.sliderStartPos.top -= i.stagePos.top, i.sliderStartPos.left -= i.stagePos.left, i.contentStartPos.top -= i.stagePos.top, i.contentStartPos.left -= i.stagePos.left, n(e).off(".fb.touch").on(h ? "touchend.fb.touch touchcancel.fb.touch" : "mouseup.fb.touch mouseleave.fb.touch", n.proxy(i, "ontouchend")).on(h ? "touchmove.fb.touch" : "mousemove.fb.touch", n.proxy(i, "ontouchmove")), n.fancybox.isMobile && e.addEventListener("scroll", i.onscroll, !0), ((i.opts || i.canPan) && (c.is(i.$stage) || i.$stage.find(c).length) || (c.is(".fancybox-image") && o.preventDefault(), n.fancybox.isMobile && c.parents(".fancybox-caption").length)) && (i.isScrollable = l(c) || l(c.parent()), n.fancybox.isMobile && i.isScrollable || o.preventDefault(), (1 === i.startPoints.length || u.hasError) && (i.canPan ? (n.fancybox.stop(i.$content), i.isPanning = !0) : i.isSwiping = !0, i.$container.addClass("fancybox-is-grabbing")), 2 === i.startPoints.length && "image" === u.type && (u.isLoaded || u.$ghost) && (i.canTap = !1, i.isSwiping = !1, i.isPanning = !1, i.isZooming = !0, n.fancybox.stop(i.$content), i.centerPointStartX = .5 * (i.startPoints[0].x + i.startPoints[1].x) - n(t).scrollLeft(), i.centerPointStartY = .5 * (i.startPoints[0].y + i.startPoints[1].y) - n(t).scrollTop(), i.percentageOfImageAtPinchPointX = (i.centerPointStartX - i.contentStartPos.left) / i.contentStartPos.width, i.percentageOfImageAtPinchPointY = (i.centerPointStartY - i.contentStartPos.top) / i.contentStartPos.height, i.startDistanceBetweenFingers = s(i.startPoints[0], i.startPoints[1]))));
1096    }
1097  }, d.prototype.onscroll = function (t) {
1098    var n = this;
1099    n.isScrolling = !0, e.removeEventListener("scroll", n.onscroll, !0);
1100  }, d.prototype.ontouchmove = function (t) {
1101    var e = this;
1102    return void 0 !== t.originalEvent.buttons && 0 === t.originalEvent.buttons ? void e.ontouchend(t) : e.isScrolling ? void (e.canTap = !1) : (e.newPoints = a(t), void ((e.opts || e.canPan) && e.newPoints.length && e.newPoints.length && (e.isSwiping && !0 === e.isSwiping || t.preventDefault(), e.distanceX = s(e.newPoints[0], e.startPoints[0], "x"), e.distanceY = s(e.newPoints[0], e.startPoints[0], "y"), e.distance = s(e.newPoints[0], e.startPoints[0]), e.distance > 0 && (e.isSwiping ? e.onSwipe(t) : e.isPanning ? e.onPan() : e.isZooming && e.onZoom()))));
1103  }, d.prototype.onSwipe = function (e) {
1104    var a,
1105      s = this,
1106      r = s.instance,
1107      c = s.isSwiping,
1108      l = s.sliderStartPos.left || 0;
1109    if (!0 !== c) "x" == c && (s.distanceX > 0 && (s.instance.group.length < 2 || 0 === s.instance.current.index && !s.instance.current.opts.loop) ? l += Math.pow(s.distanceX, .8) : s.distanceX < 0 && (s.instance.group.length < 2 || s.instance.current.index === s.instance.group.length - 1 && !s.instance.current.opts.loop) ? l -= Math.pow(-s.distanceX, .8) : l += s.distanceX), s.sliderLastPos = {
1110      top: "x" == c ? 0 : s.sliderStartPos.top + s.distanceY,
1111      left: l
1112    }, s.requestId && (i(s.requestId), s.requestId = null), s.requestId = o(function () {
1113      s.sliderLastPos && (n.each(s.instance.slides, function (t, e) {
1114        var o = e.pos - s.instance.currPos;
1115        n.fancybox.setTranslate(e.$slide, {
1116          top: s.sliderLastPos.top,
1117          left: s.sliderLastPos.left + o * s.canvasWidth + o * e.opts.gutter
1118        });
1119      }), s.$container.addClass("fancybox-is-sliding"));
1120    });else if (Math.abs(s.distance) > 10) {
1121      if (s.canTap = !1, r.group.length < 2 && s.opts.vertical ? s.isSwiping = "y" : r.isDragging || !1 === s.opts.vertical || "auto" === s.opts.vertical && n(t).width() > 800 ? s.isSwiping = "x" : (a = Math.abs(180 * Math.atan2(s.distanceY, s.distanceX) / Math.PI), s.isSwiping = a > 45 && a < 135 ? "y" : "x"), "y" === s.isSwiping && n.fancybox.isMobile && s.isScrollable) return void (s.isScrolling = !0);
1122      r.isDragging = s.isSwiping, s.startPoints = s.newPoints, n.each(r.slides, function (t, e) {
1123        var o, i;
1124        n.fancybox.stop(e.$slide), o = n.fancybox.getTranslate(e.$slide), i = n.fancybox.getTranslate(r.$refs.stage), e.$slide.css({
1125          transform: "",
1126          opacity: "",
1127          "transition-duration": ""
1128        }).removeClass("fancybox-animated").removeClass(function (t, e) {
1129          return (e.match(/(^|\s)fancybox-fx-\S+/g) || []).join(" ");
1130        }), e.pos === r.current.pos && (s.sliderStartPos.top = o.top - i.top, s.sliderStartPos.left = o.left - i.left), n.fancybox.setTranslate(e.$slide, {
1131          top: o.top - i.top,
1132          left: o.left - i.left
1133        });
1134      }), r.SlideShow && r.SlideShow.isActive && r.SlideShow.stop();
1135    }
1136  }, d.prototype.onPan = function () {
1137    var t = this;
1138    if (s(t.newPoints[0], t.realPoints[0]) < (n.fancybox.isMobile ? 10 : 5)) return void (t.startPoints = t.newPoints);
1139    t.canTap = !1, t.contentLastPos = t.limitMovement(), t.requestId && i(t.requestId), t.requestId = o(function () {
1140      n.fancybox.setTranslate(t.$content, t.contentLastPos);
1141    });
1142  }, d.prototype.limitMovement = function () {
1143    var t,
1144      e,
1145      n,
1146      o,
1147      i,
1148      a,
1149      s = this,
1150      r = s.canvasWidth,
1151      c = s.canvasHeight,
1152      l = s.distanceX,
1153      d = s.distanceY,
1154      u = s.contentStartPos,
1155      f = u.left,
1156      p = u.top,
1157      h = u.width,
1158      g = u.height;
1159    return i = h > r ? f + l : f, a = p + d, t = Math.max(0, .5 * r - .5 * h), e = Math.max(0, .5 * c - .5 * g), n = Math.min(r - h, .5 * r - .5 * h), o = Math.min(c - g, .5 * c - .5 * g), l > 0 && i > t && (i = t - 1 + Math.pow(-t + f + l, .8) || 0), l < 0 && i < n && (i = n + 1 - Math.pow(n - f - l, .8) || 0), d > 0 && a > e && (a = e - 1 + Math.pow(-e + p + d, .8) || 0), d < 0 && a < o && (a = o + 1 - Math.pow(o - p - d, .8) || 0), {
1160      top: a,
1161      left: i
1162    };
1163  }, d.prototype.limitPosition = function (t, e, n, o) {
1164    var i = this,
1165      a = i.canvasWidth,
1166      s = i.canvasHeight;
1167    return n > a ? (t = t > 0 ? 0 : t, t = t < a - n ? a - n : t) : t = Math.max(0, a / 2 - n / 2), o > s ? (e = e > 0 ? 0 : e, e = e < s - o ? s - o : e) : e = Math.max(0, s / 2 - o / 2), {
1168      top: e,
1169      left: t
1170    };
1171  }, d.prototype.onZoom = function () {
1172    var e = this,
1173      a = e.contentStartPos,
1174      r = a.width,
1175      c = a.height,
1176      l = a.left,
1177      d = a.top,
1178      u = s(e.newPoints[0], e.newPoints[1]),
1179      f = u / e.startDistanceBetweenFingers,
1180      p = Math.floor(r * f),
1181      h = Math.floor(c * f),
1182      g = (r - p) * e.percentageOfImageAtPinchPointX,
1183      b = (c - h) * e.percentageOfImageAtPinchPointY,
1184      m = (e.newPoints[0].x + e.newPoints[1].x) / 2 - n(t).scrollLeft(),
1185      v = (e.newPoints[0].y + e.newPoints[1].y) / 2 - n(t).scrollTop(),
1186      y = m - e.centerPointStartX,
1187      x = v - e.centerPointStartY,
1188      w = l + (g + y),
1189      $ = d + (b + x),
1190      S = {
1191        top: $,
1192        left: w,
1193        scaleX: f,
1194        scaleY: f
1195      };
1196    e.canTap = !1, e.newWidth = p, e.newHeight = h, e.contentLastPos = S, e.requestId && i(e.requestId), e.requestId = o(function () {
1197      n.fancybox.setTranslate(e.$content, e.contentLastPos);
1198    });
1199  }, d.prototype.ontouchend = function (t) {
1200    var o = this,
1201      s = o.isSwiping,
1202      r = o.isPanning,
1203      c = o.isZooming,
1204      l = o.isScrolling;
1205    if (o.endPoints = a(t), o.dMs = Math.max(new Date().getTime() - o.startTime, 1), o.$container.removeClass("fancybox-is-grabbing"), n(e).off(".fb.touch"), e.removeEventListener("scroll", o.onscroll, !0), o.requestId && (i(o.requestId), o.requestId = null), o.isSwiping = !1, o.isPanning = !1, o.isZooming = !1, o.isScrolling = !1, o.instance.isDragging = !1, o.canTap) return o.onTap(t);
1206    o.speed = 100, o.velocityX = o.distanceX / o.dMs * .5, o.velocityY = o.distanceY / o.dMs * .5, r ? o.endPanning() : c ? o.endZooming() : o.endSwiping(s, l);
1207  }, d.prototype.endSwiping = function (t, e) {
1208    var o = this,
1209      i = !1,
1210      a = o.instance.group.length,
1211      s = Math.abs(o.distanceX),
1212      r = "x" == t && a > 1 && (o.dMs > 130 && s > 10 || s > 50);
1213    o.sliderLastPos = null, "y" == t && !e && Math.abs(o.distanceY) > 50 ? (n.fancybox.animate(o.instance.current.$slide, {
1214      top: o.sliderStartPos.top + o.distanceY + 150 * o.velocityY,
1215      opacity: 0
1216    }, 200), i = o.instance.close(!0, 250)) : r && o.distanceX > 0 ? i = o.instance.previous(300) : r && o.distanceX < 0 && (i = o.instance.next(300)), !1 !== i || "x" != t && "y" != t || o.instance.centerSlide(200), o.$container.removeClass("fancybox-is-sliding");
1217  }, d.prototype.endPanning = function () {
1218    var t,
1219      e,
1220      o,
1221      i = this;
1222    i.contentLastPos && (!1 === i.opts.momentum || i.dMs > 350 ? (t = i.contentLastPos.left, e = i.contentLastPos.top) : (t = i.contentLastPos.left + 500 * i.velocityX, e = i.contentLastPos.top + 500 * i.velocityY), o = i.limitPosition(t, e, i.contentStartPos.width, i.contentStartPos.height), o.width = i.contentStartPos.width, o.height = i.contentStartPos.height, n.fancybox.animate(i.$content, o, 366));
1223  }, d.prototype.endZooming = function () {
1224    var t,
1225      e,
1226      o,
1227      i,
1228      a = this,
1229      s = a.instance.current,
1230      r = a.newWidth,
1231      c = a.newHeight;
1232    a.contentLastPos && (t = a.contentLastPos.left, e = a.contentLastPos.top, i = {
1233      top: e,
1234      left: t,
1235      width: r,
1236      height: c,
1237      scaleX: 1,
1238      scaleY: 1
1239    }, n.fancybox.setTranslate(a.$content, i), r < a.canvasWidth && c < a.canvasHeight ? a.instance.scaleToFit(150) : r > s.width || c > s.height ? a.instance.scaleToActual(a.centerPointStartX, a.centerPointStartY, 150) : (o = a.limitPosition(t, e, r, c), n.fancybox.animate(a.$content, o, 150)));
1240  }, d.prototype.onTap = function (e) {
1241    var o,
1242      i = this,
1243      s = n(e.target),
1244      r = i.instance,
1245      c = r.current,
1246      l = e && a(e) || i.startPoints,
1247      d = l[0] ? l[0].x - n(t).scrollLeft() - i.stagePos.left : 0,
1248      u = l[0] ? l[0].y - n(t).scrollTop() - i.stagePos.top : 0,
1249      f = function (t) {
1250        var o = c.opts[t];
1251        if (n.isFunction(o) && (o = o.apply(r, [c, e])), o) switch (o) {
1252          case "close":
1253            r.close(i.startEvent);
1254            break;
1255          case "toggleControls":
1256            r.toggleControls();
1257            break;
1258          case "next":
1259            r.next();
1260            break;
1261          case "nextOrClose":
1262            r.group.length > 1 ? r.next() : r.close(i.startEvent);
1263            break;
1264          case "zoom":
1265            "image" == c.type && (c.isLoaded || c.$ghost) && (r.canPan() ? r.scaleToFit() : r.isScaledDown() ? r.scaleToActual(d, u) : r.group.length < 2 && r.close(i.startEvent));
1266        }
1267      };
1268    if ((!e.originalEvent || 2 != e.originalEvent.button) && (s.is("img") || !(d > s[0].clientWidth + s.offset().left))) {
1269      if (s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container")) o = "Outside";else if (s.is(".fancybox-slide")) o = "Slide";else {
1270        if (!r.current.$content || !r.current.$content.find(s).addBack().filter(s).length) return;
1271        o = "Content";
1272      }
1273      if (i.tapped) {
1274        if (clearTimeout(i.tapped), i.tapped = null, Math.abs(d - i.tapX) > 50 || Math.abs(u - i.tapY) > 50) return this;
1275        f("dblclick" + o);
1276      } else i.tapX = d, i.tapY = u, c.opts["dblclick" + o] && c.opts["dblclick" + o] !== c.opts["click" + o] ? i.tapped = setTimeout(function () {
1277        i.tapped = null, r.isAnimating || f("click" + o);
1278      }, 500) : f("click" + o);
1279      return this;
1280    }
1281  }, n(e).on("onActivate.fb", function (t, e) {
1282    e && !e.Guestures && (e.Guestures = new d(e));
1283  }).on("beforeClose.fb", function (t, e) {
1284    e && e.Guestures && e.Guestures.destroy();
1285  });
1286}(window, document, jQuery), function (t, e) {
1287  "use strict";
1288
1289  e.extend(!0, e.fancybox.defaults, {
1290    btnTpl: {
1291      slideShow: '<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'
1292    },
1293    slideShow: {
1294      autoStart: !1,
1295      speed: 3e3,
1296      progress: !0
1297    }
1298  });
1299  var n = function (t) {
1300    this.instance = t, this.init();
1301  };
1302  e.extend(n.prototype, {
1303    timer: null,
1304    isActive: !1,
1305    $button: null,
1306    init: function () {
1307      var t = this,
1308        n = t.instance,
1309        o = n.group[n.currIndex].opts.slideShow;
1310      t.$button = n.$refs.toolbar.find("[data-fancybox-play]").on("click", function () {
1311        t.toggle();
1312      }), n.group.length < 2 || !o ? t.$button.hide() : o.progress && (t.$progress = e('<div class="fancybox-progress"></div>').appendTo(n.$refs.inner));
1313    },
1314    set: function (t) {
1315      var n = this,
1316        o = n.instance,
1317        i = o.current;
1318      i && (!0 === t || i.opts.loop || o.currIndex < o.group.length - 1) ? n.isActive && "video" !== i.contentType && (n.$progress && e.fancybox.animate(n.$progress.show(), {
1319        scaleX: 1
1320      }, i.opts.slideShow.speed), n.timer = setTimeout(function () {
1321        o.current.opts.loop || o.current.index != o.group.length - 1 ? o.next() : o.jumpTo(0);
1322      }, i.opts.slideShow.speed)) : (n.stop(), o.idleSecondsCounter = 0, o.showControls());
1323    },
1324    clear: function () {
1325      var t = this;
1326      clearTimeout(t.timer), t.timer = null, t.$progress && t.$progress.removeAttr("style").hide();
1327    },
1328    start: function () {
1329      var t = this,
1330        e = t.instance.current;
1331      e && (t.$button.attr("title", (e.opts.i18n[e.opts.lang] || e.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"), t.isActive = !0, e.isComplete && t.set(!0), t.instance.trigger("onSlideShowChange", !0));
1332    },
1333    stop: function () {
1334      var t = this,
1335        e = t.instance.current;
1336      t.clear(), t.$button.attr("title", (e.opts.i18n[e.opts.lang] || e.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"), t.isActive = !1, t.instance.trigger("onSlideShowChange", !1), t.$progress && t.$progress.removeAttr("style").hide();
1337    },
1338    toggle: function () {
1339      var t = this;
1340      t.isActive ? t.stop() : t.start();
1341    }
1342  }), e(t).on({
1343    "onInit.fb": function (t, e) {
1344      e && !e.SlideShow && (e.SlideShow = new n(e));
1345    },
1346    "beforeShow.fb": function (t, e, n, o) {
1347      var i = e && e.SlideShow;
1348      o ? i && n.opts.slideShow.autoStart && i.start() : i && i.isActive && i.clear();
1349    },
1350    "afterShow.fb": function (t, e, n) {
1351      var o = e && e.SlideShow;
1352      o && o.isActive && o.set();
1353    },
1354    "afterKeydown.fb": function (n, o, i, a, s) {
1355      var r = o && o.SlideShow;
1356      !r || !i.opts.slideShow || 80 !== s && 32 !== s || e(t.activeElement).is("button,a,input") || (a.preventDefault(), r.toggle());
1357    },
1358    "beforeClose.fb onDeactivate.fb": function (t, e) {
1359      var n = e && e.SlideShow;
1360      n && n.stop();
1361    }
1362  }), e(t).on("visibilitychange", function () {
1363    var n = e.fancybox.getInstance(),
1364      o = n && n.SlideShow;
1365    o && o.isActive && (t.hidden ? o.clear() : o.set());
1366  });
1367}(document, jQuery), function (t, e) {
1368  "use strict";
1369
1370  var n = function () {
1371    for (var e = [["requestFullscreen", "exitFullscreen", "fullscreenElement", "fullscreenEnabled", "fullscreenchange", "fullscreenerror"], ["webkitRequestFullscreen", "webkitExitFullscreen", "webkitFullscreenElement", "webkitFullscreenEnabled", "webkitfullscreenchange", "webkitfullscreenerror"], ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitCurrentFullScreenElement", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitfullscreenerror"], ["mozRequestFullScreen", "mozCancelFullScreen", "mozFullScreenElement", "mozFullScreenEnabled", "mozfullscreenchange", "mozfullscreenerror"], ["msRequestFullscreen", "msExitFullscreen", "msFullscreenElement", "msFullscreenEnabled", "MSFullscreenChange", "MSFullscreenError"]], n = {}, o = 0; o < e.length; o++) {
1372      var i = e[o];
1373      if (i && i[1] in t) {
1374        for (var a = 0; a < i.length; a++) n[e[0][a]] = i[a];
1375        return n;
1376      }
1377    }
1378    return !1;
1379  }();
1380  if (n) {
1381    var o = {
1382      request: function (e) {
1383        e = e || t.documentElement, e[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT);
1384      },
1385      exit: function () {
1386        t[n.exitFullscreen]();
1387      },
1388      toggle: function (e) {
1389        e = e || t.documentElement, this.isFullscreen() ? this.exit() : this.request(e);
1390      },
1391      isFullscreen: function () {
1392        return Boolean(t[n.fullscreenElement]);
1393      },
1394      enabled: function () {
1395        return Boolean(t[n.fullscreenEnabled]);
1396      }
1397    };
1398    e.extend(!0, e.fancybox.defaults, {
1399      btnTpl: {
1400        fullScreen: '<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'
1401      },
1402      fullScreen: {
1403        autoStart: !1
1404      }
1405    }), e(t).on(n.fullscreenchange, function () {
1406      var t = o.isFullscreen(),
1407        n = e.fancybox.getInstance();
1408      n && (n.current && "image" === n.current.type && n.isAnimating && (n.isAnimating = !1, n.update(!0, !0, 0), n.isComplete || n.complete()), n.trigger("onFullscreenChange", t), n.$refs.container.toggleClass("fancybox-is-fullscreen", t), n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter", !t).toggleClass("fancybox-button--fsexit", t));
1409    });
1410  }
1411  e(t).on({
1412    "onInit.fb": function (t, e) {
1413      var i;
1414      if (!n) return void e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove();
1415      e && e.group[e.currIndex].opts.fullScreen ? (i = e.$refs.container, i.on("click.fb-fullscreen", "[data-fancybox-fullscreen]", function (t) {
1416        t.stopPropagation(), t.preventDefault(), o.toggle();
1417      }), e.opts.fullScreen && !0 === e.opts.fullScreen.autoStart && o.request(), e.FullScreen = o) : e && e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide();
1418    },
1419    "afterKeydown.fb": function (t, e, n, o, i) {
1420      e && e.FullScreen && 70 === i && (o.preventDefault(), e.FullScreen.toggle());
1421    },
1422    "beforeClose.fb": function (t, e) {
1423      e && e.FullScreen && e.$refs.container.hasClass("fancybox-is-fullscreen") && o.exit();
1424    }
1425  });
1426}(document, jQuery), function (t, e) {
1427  "use strict";
1428
1429  var n = "fancybox-thumbs";
1430  e.fancybox.defaults = e.extend(!0, {
1431    btnTpl: {
1432      thumbs: '<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'
1433    },
1434    thumbs: {
1435      autoStart: !1,
1436      hideOnClose: !0,
1437      parentEl: ".fancybox-container",
1438      axis: "y"
1439    }
1440  }, e.fancybox.defaults);
1441  var o = function (t) {
1442    this.init(t);
1443  };
1444  e.extend(o.prototype, {
1445    $button: null,
1446    $grid: null,
1447    $list: null,
1448    isVisible: !1,
1449    isActive: !1,
1450    init: function (t) {
1451      var e = this,
1452        n = t.group,
1453        o = 0;
1454      e.instance = t, e.opts = n[t.currIndex].opts.thumbs, t.Thumbs = e, e.$button = t.$refs.toolbar.find("[data-fancybox-thumbs]");
1455      for (var i = 0, a = n.length; i < a && (n[i].thumb && o++, !(o > 1)); i++);
1456      o > 1 && e.opts ? (e.$button.removeAttr("style").on("click", function () {
1457        e.toggle();
1458      }), e.isActive = !0) : e.$button.hide();
1459    },
1460    create: function () {
1461      var t,
1462        o = this,
1463        i = o.instance,
1464        a = o.opts.parentEl,
1465        s = [];
1466      o.$grid || (o.$grid = e('<div class="' + n + " " + n + "-" + o.opts.axis + '"></div>').appendTo(i.$refs.container.find(a).addBack().filter(a)), o.$grid.on("click", "a", function () {
1467        i.jumpTo(e(this).attr("data-index"));
1468      })), o.$list || (o.$list = e('<div class="' + n + '__list">').appendTo(o.$grid)), e.each(i.group, function (e, n) {
1469        t = n.thumb, t || "image" !== n.type || (t = n.src), s.push('<a href="javascript:;" tabindex="0" data-index="' + e + '"' + (t && t.length ? ' style="background-image:url(' + t + ')"' : 'class="fancybox-thumbs-missing"') + "></a>");
1470      }), o.$list[0].innerHTML = s.join(""), "x" === o.opts.axis && o.$list.width(parseInt(o.$grid.css("padding-right"), 10) + i.group.length * o.$list.children().eq(0).outerWidth(!0));
1471    },
1472    focus: function (t) {
1473      var e,
1474        n,
1475        o = this,
1476        i = o.$list,
1477        a = o.$grid;
1478      o.instance.current && (e = i.children().removeClass("fancybox-thumbs-active").filter('[data-index="' + o.instance.current.index + '"]').addClass("fancybox-thumbs-active"), n = e.position(), "y" === o.opts.axis && (n.top < 0 || n.top > i.height() - e.outerHeight()) ? i.stop().animate({
1479        scrollTop: i.scrollTop() + n.top
1480      }, t) : "x" === o.opts.axis && (n.left < a.scrollLeft() || n.left > a.scrollLeft() + (a.width() - e.outerWidth())) && i.parent().stop().animate({
1481        scrollLeft: n.left
1482      }, t));
1483    },
1484    update: function () {
1485      var t = this;
1486      t.instance.$refs.container.toggleClass("fancybox-show-thumbs", this.isVisible), t.isVisible ? (t.$grid || t.create(), t.instance.trigger("onThumbsShow"), t.focus(0)) : t.$grid && t.instance.trigger("onThumbsHide"), t.instance.update();
1487    },
1488    hide: function () {
1489      this.isVisible = !1, this.update();
1490    },
1491    show: function () {
1492      this.isVisible = !0, this.update();
1493    },
1494    toggle: function () {
1495      this.isVisible = !this.isVisible, this.update();
1496    }
1497  }), e(t).on({
1498    "onInit.fb": function (t, e) {
1499      var n;
1500      e && !e.Thumbs && (n = new o(e), n.isActive && !0 === n.opts.autoStart && n.show());
1501    },
1502    "beforeShow.fb": function (t, e, n, o) {
1503      var i = e && e.Thumbs;
1504      i && i.isVisible && i.focus(o ? 0 : 250);
1505    },
1506    "afterKeydown.fb": function (t, e, n, o, i) {
1507      var a = e && e.Thumbs;
1508      a && a.isActive && 71 === i && (o.preventDefault(), a.toggle());
1509    },
1510    "beforeClose.fb": function (t, e) {
1511      var n = e && e.Thumbs;
1512      n && n.isVisible && !1 !== n.opts.hideOnClose && n.$grid.hide();
1513    }
1514  });
1515}(document, jQuery), function (t, e) {
1516  "use strict";
1517
1518  function n(t) {
1519    var e = {
1520      "&": "&amp;",
1521      "<": "&lt;",
1522      ">": "&gt;",
1523      '"': "&quot;",
1524      "'": "&#39;",
1525      "/": "&#x2F;",
1526      "`": "&#x60;",
1527      "=": "&#x3D;"
1528    };
1529    return String(t).replace(/[&<>"'`=\/]/g, function (t) {
1530      return e[t];
1531    });
1532  }
1533  e.extend(!0, e.fancybox.defaults, {
1534    btnTpl: {
1535      share: '<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'
1536    },
1537    share: {
1538      url: function (t, e) {
1539        return !t.currentHash && "inline" !== e.type && "html" !== e.type && (e.origSrc || e.src) || window.location;
1540      },
1541      tpl: '<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'
1542    }
1543  }), e(t).on("click", "[data-fancybox-share]", function () {
1544    var t,
1545      o,
1546      i = e.fancybox.getInstance(),
1547      a = i.current || null;
1548    a && ("function" === e.type(a.opts.share.url) && (t = a.opts.share.url.apply(a, [i, a])), o = a.opts.share.tpl.replace(/\{\{media\}\}/g, "image" === a.type ? encodeURIComponent(a.src) : "").replace(/\{\{url\}\}/g, encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g, n(t)).replace(/\{\{descr\}\}/g, i.$caption ? encodeURIComponent(i.$caption.text()) : ""), e.fancybox.open({
1549      src: i.translate(i, o),
1550      type: "html",
1551      opts: {
1552        touch: !1,
1553        animationEffect: !1,
1554        afterLoad: function (t, e) {
1555          i.$refs.container.one("beforeClose.fb", function () {
1556            t.close(null, 0);
1557          }), e.$content.find(".fancybox-share__button").click(function () {
1558            return window.open(this.href, "Share", "width=550, height=450"), !1;
1559          });
1560        },
1561        mobile: {
1562          autoFocus: !1
1563        }
1564      }
1565    }));
1566  });
1567}(document, jQuery), function (t, e, n) {
1568  "use strict";
1569
1570  function o() {
1571    var e = t.location.hash.substr(1),
1572      n = e.split("-"),
1573      o = n.length > 1 && /^\+?\d+$/.test(n[n.length - 1]) ? parseInt(n.pop(-1), 10) || 1 : 1,
1574      i = n.join("-");
1575    return {
1576      hash: e,
1577      index: o < 1 ? 1 : o,
1578      gallery: i
1579    };
1580  }
1581  function i(t) {
1582    "" !== t.gallery && n("[data-fancybox='" + n.escapeSelector(t.gallery) + "']").eq(t.index - 1).focus().trigger("click.fb-start");
1583  }
1584  function a(t) {
1585    var e, n;
1586    return !!t && (e = t.current ? t.current.opts : t.opts, "" !== (n = e.hash || (e.$orig ? e.$orig.data("fancybox") || e.$orig.data("fancybox-trigger") : "")) && n);
1587  }
1588  n.escapeSelector || (n.escapeSelector = function (t) {
1589    return (t + "").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g, function (t, e) {
1590      return e ? "\0" === t ? "�" : t.slice(0, -1) + "\\" + t.charCodeAt(t.length - 1).toString(16) + " " : "\\" + t;
1591    });
1592  }), n(function () {
1593    !1 !== n.fancybox.defaults.hash && (n(e).on({
1594      "onInit.fb": function (t, e) {
1595        var n, i;
1596        !1 !== e.group[e.currIndex].opts.hash && (n = o(), (i = a(e)) && n.gallery && i == n.gallery && (e.currIndex = n.index - 1));
1597      },
1598      "beforeShow.fb": function (n, o, i, s) {
1599        var r;
1600        i && !1 !== i.opts.hash && (r = a(o)) && (o.currentHash = r + (o.group.length > 1 ? "-" + (i.index + 1) : ""), t.location.hash !== "#" + o.currentHash && (s && !o.origHash && (o.origHash = t.location.hash), o.hashTimer && clearTimeout(o.hashTimer), o.hashTimer = setTimeout(function () {
1601          "replaceState" in t.history ? (t.history[s ? "pushState" : "replaceState"]({}, e.title, t.location.pathname + t.location.search + "#" + o.currentHash), s && (o.hasCreatedHistory = !0)) : t.location.hash = o.currentHash, o.hashTimer = null;
1602        }, 300)));
1603      },
1604      "beforeClose.fb": function (n, o, i) {
1605        i && !1 !== i.opts.hash && (clearTimeout(o.hashTimer), o.currentHash && o.hasCreatedHistory ? t.history.back() : o.currentHash && ("replaceState" in t.history ? t.history.replaceState({}, e.title, t.location.pathname + t.location.search + (o.origHash || "")) : t.location.hash = o.origHash), o.currentHash = null);
1606      }
1607    }), n(t).on("hashchange.fb", function () {
1608      var t = o(),
1609        e = null;
1610      n.each(n(".fancybox-container").get().reverse(), function (t, o) {
1611        var i = n(o).data("FancyBox");
1612        if (i && i.currentHash) return e = i, !1;
1613      }), e ? e.currentHash === t.gallery + "-" + t.index || 1 === t.index && e.currentHash == t.gallery || (e.currentHash = null, e.close()) : "" !== t.gallery && i(t);
1614    }), setTimeout(function () {
1615      n.fancybox.getInstance() || i(o());
1616    }, 50));
1617  });
1618}(window, document, jQuery), function (t, e) {
1619  "use strict";
1620
1621  var n = new Date().getTime();
1622  e(t).on({
1623    "onInit.fb": function (t, e, o) {
1624      e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll", function (t) {
1625        var o = e.current,
1626          i = new Date().getTime();
1627        e.group.length < 2 || !1 === o.opts.wheel || "auto" === o.opts.wheel && "image" !== o.type || (t.preventDefault(), t.stopPropagation(), o.$slide.hasClass("fancybox-animated") || (t = t.originalEvent || t, i - n < 250 || (n = i, e[(-t.deltaY || -t.deltaX || t.wheelDelta || -t.detail) < 0 ? "next" : "previous"]())));
1628      });
1629    }
1630  });
1631}(document, jQuery);

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.