// ================================================== // fancybox v3.5.7 // // licensed gplv3 for open source use // or fancybox commercial license for commercial use // // http://fancyapps.com/fancybox/ // copyright 2019 fancyapps // // ================================================== ! function(t, e, n, o) { "use strict"; function i(t, e) { var o, i, a, s = [], r = 0; 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)) } if (t.console = t.console || { info: function(t) {} }, n) { if (n.fn.fancybox) return void console.info("fancybox already initialized"); var a = { closeexisting: !1, loop: !1, gutter: 50, keyboard: !0, preventcaptionoverlap: !0, arrows: !0, infobar: !0, smallbtn: "auto", toolbar: "auto", buttons: ["zoom", "slideshow", "thumbs", "close"], idletime: 3, protect: !1, modal: !1, image: { preload: !1 }, ajax: { settings: { data: { fancybox: !0 } } }, iframe: { tpl: '', preload: !0, css: {}, attr: { scrolling: "auto" } }, video: { tpl: '', format: "", autostart: !0 }, defaulttype: "image", animationeffect: "zoom", animationduration: 366, zoomopacity: "auto", transitioneffect: "fade", transitionduration: 366, slideclass: "", baseclass: "", basetpl: '', spinnertpl: '
', errortpl: '

{{error}}

', btntpl: { download: '', zoom: '', close: '', arrowleft: '', arrowright: '', smallbtn: '' }, parentel: "body", hidescrollbar: !0, autofocus: !0, backfocus: !0, trapfocus: !0, fullscreen: { autostart: !1 }, touch: { vertical: !0, momentum: !0 }, hash: null, media: {}, slideshow: { autostart: !1, speed: 3e3 }, thumbs: { autostart: !1, hideonclose: !0, parentel: ".fancybox-container", axis: "y" }, wheel: "auto", oninit: n.noop, beforeload: n.noop, afterload: n.noop, beforeshow: n.noop, aftershow: n.noop, beforeclose: n.noop, afterclose: n.noop, onactivate: n.noop, ondeactivate: n.noop, clickcontent: function(t, e) { return "image" === t.type && "zoom" }, clickslide: "close", clickoutside: "close", dblclickcontent: !1, dblclickslide: !1, dblclickoutside: !1, mobile: { preventcaptionoverlap: !1, idletime: !1, clickcontent: function(t, e) { return "image" === t.type && "togglecontrols" }, clickslide: function(t, e) { return "image" === t.type ? "togglecontrols" : "close" }, dblclickcontent: function(t, e) { return "image" === t.type && "zoom" }, dblclickslide: function(t, e) { return "image" === t.type && "zoom" } }, lang: "en", i18n: { en: { close: "close", next: "next", prev: "previous", error: "the requested content cannot be loaded.
please try again later.", play_start: "start slideshow", play_stop: "pause slideshow", full_screen: "full screen", thumbs: "thumbnails", download: "download", share: "share", zoom: "zoom" }, de: { close: "schließen", next: "weiter", prev: "zurück", error: "die angeforderten daten konnten nicht geladen werden.
bitte versuchen sie es später nochmal.", play_start: "diaschau starten", play_stop: "diaschau beenden", full_screen: "vollbild", thumbs: "vorschaubilder", download: "herunterladen", share: "teilen", zoom: "vergrößern" } } }, s = n(t), r = n(e), c = 0, l = function(t) { return t && t.hasownproperty && t instanceof n }, d = function() { return t.requestanimationframe || t.webkitrequestanimationframe || t.mozrequestanimationframe || t.orequestanimationframe || function(e) { return t.settimeout(e, 1e3 / 60) } }(), u = function() { return t.cancelanimationframe || t.webkitcancelanimationframe || t.mozcancelanimationframe || t.ocancelanimationframe || function(e) { t.cleartimeout(e) } }(), f = function() { var t, n = e.createelement("fakeelement"), o = { transition: "transitionend", otransition: "otransitionend", moztransition: "transitionend", webkittransition: "webkittransitionend" }; for (t in o) if (void 0 !== n.style[t]) return o[t]; return "transitionend" }(), p = function(t) { return t && t.length && t[0].offsetheight }, h = function(t, e) { var o = n.extend(!0, {}, t, e); return n.each(e, function(t, e) { n.isarray(e) && (o[t] = e) }), o }, g = function(t) { var o, i; return !(!t || t.ownerdocument !== e) && (n(".fancybox-container").css("pointer-events", "none"), o = { x: t.getboundingclientrect().left + t.offsetwidth / 2, y: t.getboundingclientrect().top + t.offsetheight / 2 }, i = e.elementfrompoint(o.x, o.y) === t, n(".fancybox-container").css("pointer-events", ""), i) }, b = function(t, e, o) { var i = this; i.opts = h({ index: o }, 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() }; n.extend(b.prototype, { init: function() { var o, i, a = this, s = a.group[a.currindex], r = s.opts; 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('"), n("body").addclass("compensate-for-scrollbar")), i = "", n.each(r.buttons, function(t, e) { i += r.btntpl[e] || "" }), 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 = { container: o }, ["bg", "inner", "infobar", "toolbar", "stage", "caption", "navigation"].foreach(function(t) { a.$refs[t] = o.find(".fancybox-" + t) }), a.trigger("oninit"), a.activate(), a.jumpto(a.currindex) }, translate: function(t, e) { var n = t.opts.i18n[t.opts.lang] || t.opts.i18n.en; return e.replace(/\{\{(\w+)\}\}/g, function(t, e) { return void 0 === n[e] ? t : n[e] }) }, addcontent: function(t) { var e, o = this, i = n.makearray(t); n.each(i, function(t, e) { var i, a, s, r, c, l = {}, d = {}; 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 = { type: "html", src: e + "" }, 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, { contenttype: "pdf", opts: { iframe: { preload: !1 } } })) : "#" === 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, { trapfocus: !0, infobar: 0, toolbar: 0, smallbtn: 0, keyboard: 0, slideshow: 0, fullscreen: 0, thumbs: 0, touch: 0, clickcontent: !1, clickslide: !1, clickoutside: !1, dblclickcontent: !1, dblclickslide: !1, dblclickoutside: !1 })), o.group.push(l) }), object.keys(o.slides).length && (o.updatecontrols(), (e = o.thumbs) && e.isactive && (e.create(), e.focus())) }, addevents: function() { var e = this; e.removeevents(), e.$refs.container.on("click.fb-close", "[data-fancybox-close]", function(t) { t.stoppropagation(), t.preventdefault(), e.close(t) }).on("touchstart.fb-prev click.fb-prev", "[data-fancybox-prev]", function(t) { t.stoppropagation(), t.preventdefault(), e.previous() }).on("touchstart.fb-next click.fb-next", "[data-fancybox-next]", function(t) { t.stoppropagation(), t.preventdefault(), e.next() }).on("click.fb", "[data-fancybox-zoom]", function(t) { e[e.isscaleddown() ? "scaletoactual" : "scaletofit"]() }), s.on("orientationchange.fb resize.fb", function(t) { t && t.originalevent && "resize" === t.originalevent.type ? (e.requestid && u(e.requestid), e.requestid = d(function() { e.update(t) })) : (e.current && "iframe" === e.current.type && e.$refs.stage.hide(), settimeout(function() { e.$refs.stage.show(), e.update(t) }, n.fancybox.ismobile ? 600 : 250)) }), r.on("keydown.fb", function(t) { var o = n.fancybox ? n.fancybox.getinstance() : null, i = o.current, a = t.keycode || t.which; if (9 == a) return void(i.opts.trapfocus && e.focus(t)); 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) }), 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) { e.idlesecondscounter = 0, e.isidle && e.showcontrols(), e.isidle = !1 }), e.idleinterval = t.setinterval(function() {++e.idlesecondscounter >= e.group[e.currindex].opts.idletime && !e.isdragging && (e.isidle = !0, e.idlesecondscounter = 0, e.hidecontrols()) }, 1e3)) }, removeevents: function() { var e = this; 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) }, previous: function(t) { return this.jumpto(this.currpos - 1, t) }, next: function(t) { return this.jumpto(this.currpos + 1, t) }, jumpto: function(t, e) { var o, i, a, s, r, c, l, d, u, f = this, h = f.group.length; if (!(f.isdragging || f.isclosing || f.isanimating && f.firstrun)) { if (t = parseint(t, 10), !(a = f.current ? f.current.opts.loop : f.opts.loop) && (t < 0 || t >= h)) return !1; 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"); c = n.fancybox.gettranslate(r.$slide), l = n.fancybox.gettranslate(f.$refs.stage), n.each(f.slides, function(t, e) { n.fancybox.stop(e.$slide, !0) }), 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) { o.$slide.removeclass("fancybox-animated").removeclass(function(t, e) { return (e.match(/(^|\s)fancybox-fx-\s+/g) || []).join(" ") }); var i = o.pos * c.width + o.pos * o.opts.gutter; n.fancybox.settranslate(o.$slide, { top: 0, left: i - l.left + u }), o.pos !== s.pos && o.$slide.addclass("fancybox-slide--" + (o.pos > s.pos ? "next" : "previous")), p(o.$slide), n.fancybox.animate(o.$slide, { top: 0, left: (o.pos - s.pos) * c.width + (o.pos - s.pos) * o.opts.gutter }, e, function() { o.$slide.css({ transform: "", opacity: "" }).removeclass("fancybox-slide--next fancybox-slide--previous"), o.pos === f.currpos && f.complete() }) })) : 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() { r.$slide.removeclass(d).removeclass("fancybox-slide--next fancybox-slide--previous") }, !1)), s.isloaded ? f.revealcontent(s) : f.loadslide(s), f.preload("image") } }, createslide: function(t) { var e, o, i = this; return o = t % i.group.length, o = o < 0 ? i.group.length + o : o, !i.slides[t] && i.group[o] && (e = n('
').appendto(i.$refs.stage), i.slides[t] = n.extend(!0, {}, i.group[o], { pos: t, $slide: e, isloaded: !1 }), i.updateslide(i.slides[t])), i.slides[t] }, scaletoactual: function(t, e, o) { var i, a, s, r, c, l = this, d = l.current, u = d.$content, f = n.fancybox.gettranslate(d.$slide).width, p = n.fancybox.gettranslate(d.$slide).height, h = d.width, g = d.height; 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, { top: s, left: a, scalex: r, scaley: c }, o || 366, function() { l.isanimating = !1 }), l.slideshow && l.slideshow.isactive && l.slideshow.stop()) }, scaletofit: function(t) { var e, o = this, i = o.current, a = i.$content; 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, { top: e.top, left: e.left, scalex: e.width / a.width(), scaley: e.height / a.height() }, t || 366, function() { o.isanimating = !1 })) }, getfitpos: function(t) { var e, o, i, a, s = this, r = t.$content, c = t.$slide, l = t.width || t.opts.width, d = t.height || t.opts.height, u = {}; 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) }, update: function(t) { var e = this; n.each(e.slides, function(n, o) { e.updateslide(o, t) }) }, updateslide: function(t, e) { var o = this, i = t && t.$content, a = t.width || t.opts.width, s = t.height || t.opts.height, r = t.$slide; 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) }, centerslide: function(t) { var e = this, o = e.current, i = o.$slide;!e.isclosing && o && (i.siblings().css({ transform: "", opacity: "" }), i.parent().children().removeclass("fancybox-slide--previous fancybox-slide--next"), n.fancybox.animate(i, { top: 0, left: 0, opacity: 1 }, void 0 === t ? 0 : t, function() { i.css({ transform: "", opacity: "" }), o.iscomplete || e.complete() }, !1)) }, ismoved: function(t) { var e, o, i = t || this.current; 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)) }, updatecursor: function(t, e) { var o, i, a = this, s = a.current, r = a.$refs.container; 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")) }, iszoomable: function() { var t, e = this, n = e.current; if (n && !e.isclosing && "image" === n.type && !n.haserror) { if (!n.isloaded) return !0; if ((t = e.getfitpos(n)) && (n.width > t.width || n.height > t.height)) return !0 } return !1 }, isscaleddown: function(t, e) { var o = this, i = !1, a = o.current, s = a.$content; 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 }, canpan: function(t, e) { var o = this, i = o.current, a = null, s = !1; return "image" === i.type && (i.iscomplete || t && e) && !i.haserror && (s = o.getfitpos(i), void 0 !== t && void 0 !== e ? a = { width: t, height: e } : 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 }, loadslide: function(t) { var e, o, i, a = this; if (!t.isloading && !t.isloaded) { if (t.isloading = !0, !1 === a.trigger("beforeload", t)) return t.isloading = !1, !1; switch (e = t.type, o = t.$slide, o.off("refresh").trigger("onreset").addclass(t.opts.slideclass), e) { case "image": a.setimage(t); break; case "iframe": a.setiframe(t); break; case "html": a.setcontent(t, t.src || t.content); break; case "video": 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 || "")); break; case "inline": n(t.src).length ? a.setcontent(t, n(t.src)) : a.seterror(t); break; case "ajax": a.showloading(t), i = n.ajax(n.extend({}, t.opts.ajax.settings, { url: t.src, success: function(e, n) { "success" === n && a.setcontent(t, e) }, error: function(e, n) { e && "abort" !== n && a.seterror(t) } })), o.one("onreset", function() { i.abort() }); break; default: a.seterror(t) } return !0 } }, setimage: function(t) { var o, i = this; settimeout(function() { var e = t.$image; i.isclosing || !t.isloading || e && e.length && e[0].complete || t.haserror || i.showloading(t) }, 50), i.checksrcset(t), t.$content = n('
').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() { n(this).remove(), t.$ghost = null }, o.onload = function() { i.afterload(t) }, t.$ghost = n(o).addclass("fancybox-image").appendto(t.$content).attr("src", t.thumb)), i.setbigimage(t) }, checksrcset: function(e) { var n, o, i, a, s = e.opts.srcset || e.opts.image.srcset; if (s) { i = t.devicepixelratio || 1, a = t.innerwidth * i, o = s.split(",").map(function(t) { var e = {}; return t.trim().split(/\s+/).foreach(function(t, n) { var o = parseint(t.substring(0, t.length - 1), 10); if (0 === n) return e.url = t; o && (e.value = o, e.postfix = t[t.length - 1]) }), e }), o.sort(function(t, e) { return t.value - e.value }); for (var r = 0; r < o.length; r++) { var c = o[r]; if ("w" === c.postfix && c.value >= a || "x" === c.postfix && c.value >= i) { n = c; break } }!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) } }, setbigimage: function(t) { var o = this, i = e.createelement("img"), a = n(i); t.$image = a.one("error", function() { o.seterror(t) }).one("load", function() { var e; 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() { t.$ghost && !o.isclosing && t.$ghost.hide() }, math.min(300, math.max(1e3, t.height / 1600))), o.hideloading(t)) }).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") }, resolveimageslidesize: function(t, e, n) { var o = parseint(t.opts.width, 10), i = parseint(t.opts.height, 10); 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) }, setiframe: function(t) { var e, o = this, i = t.opts.iframe, a = t.$slide; t.$content = n('
').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) { this.isready = 1, t.$slide.trigger("refresh"), o.afterload(t) }), a.on("refresh.fb", function() { var n, o, s = t.$content, r = i.css.width, c = i.css.height; if (1 === e[0].isready) { try { n = e.contents(), o = n.find("body") } catch (t) {} o && o.length && o.children().length && (a.css("overflow", "visible"), s.css({ width: "100%", "max-width": "100%", height: "9999px" }), 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") } })) : o.afterload(t), e.attr("src", t.src), a.one("onreset", function() { try { n(this).find("iframe").hide().unbind().attr("src", "//about:blank") } catch (t) {} n(this).off("refresh.fb").empty(), t.isloaded = !1, t.isrevealed = !1 }) }, setcontent: function(t, e) { var o = this; 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("
").hide().insertafter(e), e.css("display", "inline-block")) : t.haserror || ("string" === n.type(e) && (e = n("
").append(n.trim(e)).contents()), t.opts.filter && (e = n("
").html(e).find(t.opts.filter))), t.$slide.one("onreset", function() { 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) }), n(e).appendto(t.$slide), n(e).is("video,audio") && (n(e).addclass("fancybox-video"), n(e).wrap("
"), 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("
").children().first()), t.$content.addclass("fancybox-content"), t.$slide.addclass("fancybox-slide--" + t.contenttype), o.afterload(t)) }, seterror: function(t) { 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) }, showloading: function(t) { var e = this; (t = t || e.current) && !t.$spinner && (t.$spinner = n(e.translate(e, e.opts.spinnertpl)).appendto(t.$slide).hide().fadein("fast")) }, hideloading: function(t) { var e = this; (t = t || e.current) && t.$spinner && (t.$spinner.stop().remove(), delete t.$spinner) }, afterload: function(t) { var e = this; 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) { return 2 == t.button && t.preventdefault(), !0 }), "image" === t.type && n('
').appendto(t.$content)), e.adjustcaption(t), e.adjustlayout(t), t.pos === e.currpos && e.updatecursor(), e.revealcontent(t)) }, adjustcaption: function(t) { var e, n = this, o = t || n.current, i = o.opts.caption, a = o.opts.preventcaptionoverlap, s = n.$refs.caption, r = !1; 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 || "")) }, adjustlayout: function(t) { var e, n, o, i, a = this, s = t || a.current; 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)) }, revealcontent: function(t) { var e, o, i, a, s = this, r = t.$slide, c = !1, l = !1, d = s.ismoved(t), u = t.isrevealed; 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() { s.isanimating = !1, s.complete() })) : (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() { r.removeclass(o).css({ transform: "", opacity: "" }), t.pos === s.currpos && s.complete() }, !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()))) }, getthumbpos: function(t) { var e, o, i, a, s, r = !1, c = t.$thumb; 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 = { top: e.top + o, left: e.left + s, width: e.width - i - s, height: e.height - o - a, scalex: 1, scaley: 1 }, e.width > 0 && e.height > 0 && r) }, complete: function() { var t, e = this, o = e.current, i = {};!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) { o.pos >= e.currpos - 1 && o.pos <= e.currpos + 1 ? i[o.pos] = o : o && (n.fancybox.stop(o.$slide), o.$slide.off().remove()) }), 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() { document.exitfullscreen ? document.exitfullscreen() : this.webkitexitfullscreen && this.webkitexitfullscreen(), e.next() }), 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)) }, preload: function(t) { var e, n, o = this; 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)) }, focus: function(t, o) { var i, a, s = this, 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(","); 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() { return "hidden" !== n(this).css("visibility") && !n(this).hasclass("disabled") }), 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")) }, activate: function() { var t = this; n(".fancybox-container").each(function() { var e = n(this).data("fancybox"); e && e.id !== t.id && !e.isclosing && (e.trigger("ondeactivate"), e.removeevents(), e.isvisible = !1) }), t.isvisible = !0, (t.current || t.isidle) && (t.update(), t.updatecontrols()), t.trigger("onactivate"), t.addevents() }, close: function(t, e) { var o, i, a, s, r, c, l, u = this, f = u.current, h = function() { u.cleanup(t) }; return !u.isclosing && (u.isclosing = !0, !1 === u.trigger("beforeclose", t) ? (u.isclosing = !1, d(function() { u.update() }), !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 = { top: s.top, left: s.left, scalex: s.width / l.width, scaley: s.height / l.height, width: l.width, height: l.height }, 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))) }, cleanup: function(e) { var o, i, a, s = this, r = s.current.opts.$orig; 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()) }, trigger: function(t, e) { var o, i = array.prototype.slice.call(arguments, 1), a = this, s = e && e.opts ? e : a.current; 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; "afterclose" !== t && a.$refs ? a.$refs.container.trigger(t + ".fb", i) : r.trigger(t + ".fb", i) }, updatecontrols: function() { var t = this, o = t.current, i = o.index, a = t.$refs.container, s = t.$refs.caption, r = o.opts.caption; 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") }, hidecontrols: function(t) { var e = this, n = ["infobar", "toolbar", "nav"];!t && e.current.opts.preventcaptionoverlap || n.push("caption"), this.$refs.container.removeclass(n.map(function(t) { return "fancybox-show-" + t }).join(" ")), this.hashiddencontrols = !0 }, showcontrols: function() { var t = this, e = t.current ? t.current.opts : t.opts, n = t.$refs.container; 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) }, togglecontrols: function() { this.hashiddencontrols ? this.showcontrols() : this.hidecontrols() } }), n.fancybox = { version: "3.5.7", defaults: a, getinstance: function(t) { var e = n('.fancybox-container:not(".fancybox-is-closing"):last').data("fancybox"), o = array.prototype.slice.call(arguments, 1); return e instanceof b && ("string" === n.type(t) ? e[t].apply(e, o) : "function" === n.type(t) && t.apply(e, o), e) }, open: function(t, e, n) { return new b(t, e, n) }, close: function(t) { var e = this.getinstance(); e && (e.close(), !0 === t && this.close(t)) }, destroy: function() { this.close(!0), r.add("body").off("click.fb-start", "**") }, ismobile: /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.useragent), use3d: function() { var n = e.createelement("div"); return t.getcomputedstyle && t.getcomputedstyle(n) && t.getcomputedstyle(n).getpropertyvalue("transform") && !(e.documentmode && e.documentmode < 11) }(), gettranslate: function(t) { var e; return !(!t || !t.length) && (e = t[0].getboundingclientrect(), { top: e.top || 0, left: e.left || 0, width: e.width, height: e.height, opacity: parsefloat(t.css("opacity")) }) }, settranslate: function(t, e) { var n = "", o = {}; 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) }, animate: function(t, e, o, i, a) { var s, r = this; n.isfunction(o) && (i = o, o = null), r.stop(t), s = r.gettranslate(t), t.on(f, function(c) { (!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, { top: e.top, left: e.left, width: s.width * e.scalex, height: s.height * e.scaley, scalex: 1, scaley: 1 }) : !0 !== a && t.removeclass(e), n.isfunction(i) && i(c)) }), 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() { t.trigger(f) }, o + 33)) }, stop: function(t, e) { t && t.length && (cleartimeout(t.data("timer")), e && t.trigger(f), t.off(f).css("transition-duration", ""), t.parent().removeclass("fancybox-is-scaling")) } }, n.fn.fancybox = function(t) { var e; return t = t || {}, e = t.selector || !1, e ? n("body").off("click.fb-start", e).on("click.fb-start", e, { options: t }, i) : this.off("click.fb-start").on("click.fb-start", { items: this, options: t }, i), this }, r.on("click.fb-start", "[data-fancybox]", i), r.on("click.fb-start", "[data-fancybox-trigger]", function(t) { n('[data-fancybox="' + n(this).attr("data-fancybox-trigger") + '"]').eq(n(this).attr("data-fancybox-index") || 0).trigger("click.fb-start", { $trigger: n(this) }) }), function() { var t = null; r.on("mousedown mouseup focus blur", ".fancybox-button", function(e) { switch (e.type) { case "mousedown": t = n(this); break; case "mouseup": t = null; break; case "focusin": n(".fancybox-button").removeclass("fancybox-focus"), n(this).is(t) || n(this).is("[disabled]") || n(this).addclass("fancybox-focus"); break; case "focusout": n(".fancybox-button").removeclass("fancybox-focus") } }) }() } }(window, document, jquery), function(t) { "use strict"; var e = { youtube: { matcher: /(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listtype=(.*)&list=(.*))(.*)/i, params: { autoplay: 1, autohide: 1, fs: 1, rel: 0, hd: 1, wmode: "transparent", enablejsapi: 1, html5: 1 }, paramplace: 8, type: "iframe", url: "https://www.youtube-nocookie.com/embed/$4", thumb: "https://img.youtube.com/vi/$4/hqdefault.jpg" }, vimeo: { matcher: /^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/, params: { autoplay: 1, hd: 1, show_title: 1, show_byline: 1, show_portrait: 0, fullscreen: 1 }, paramplace: 3, type: "iframe", url: "//player.vimeo.com/video/$2" }, instagram: { matcher: /(instagr\.am|instagram\.com)\/p\/([a-za-z0-9_\-]+)\/?/i, type: "image", url: "//$1/p/$2/media/?size=l" }, gmap_place: { matcher: /(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i, type: "iframe", url: function(t) { 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") } }, gmap_search: { matcher: /(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i, type: "iframe", url: function(t) { return "//maps.google." + t[2] + "/maps?q=" + t[5].replace("query=", "q=").replace("api=1", "") + "&output=embed" } } }, n = function(e, n, o) { if (e) return o = o || "", "object" === t.type(o) && (o = t.param(o, !0)), t.each(n, function(t, n) { e = e.replace("$" + t, n || "") }), o.length && (e += (e.indexof("?") > 0 ? "&" : "?") + o), e }; t(document).on("objectneedstype.fb", function(o, i, a) { var s, r, c, l, d, u, f, p = a.src || "", h = !1; s = t.extend(!0, {}, e, a.opts.media), t.each(s, function(e, o) { if (c = p.match(o.matcher)) { if (h = o.type, f = e, u = {}, o.paramplace && c[o.paramplace]) { d = c[o.paramplace], "?" == d[0] && (d = d.substring(1)), d = d.split("&"); for (var i = 0; i < d.length; ++i) { var s = d[i].split("=", 2); 2 == s.length && (u[s[0]] = decodeuricomponent(s[1].replace(/\+/g, " "))) } } 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) { return "&start=" + ((n ? 60 * parseint(n, 10) : 0) + parseint(o, 10)) }) : "vimeo" === e && (p = p.replace("&%23", "#")), !1 } }), h ? (a.opts.thumb || a.opts.$thumb && a.opts.$thumb.length || (a.opts.thumb = r), "iframe" === h && (a.opts = t.extend(!0, a.opts, { iframe: { preload: !1, attr: { scrolling: "no" } } })), t.extend(a, { type: h, src: p, origsrc: a.src, contentsource: f, contenttype: "image" === h ? "image" : "gmap_place" == f || "gmap_search" == f ? "map" : "video" })) : p && (a.type = a.opts.defaulttype) }); var o = { youtube: { src: "https://www.youtube.com/iframe_api", class: "yt", loading: !1, loaded: !1 }, vimeo: { src: "https://player.vimeo.com/api/player.js", class: "vimeo", loading: !1, loaded: !1 }, load: function(t) { var e, n = this; if (this[t].loaded) return void settimeout(function() { n.done(t) }); 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() { n[t].loaded = !0, n.done(t) } : e.onload = function() { n[t].loaded = !0, n.done(t) }, document.body.appendchild(e)) }, done: function(e) { var n, o, i; "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"), { events: { onstatechange: function(t) { 0 == t.data && n.next() } } }) : "vimeo" === e && void 0 !== vimeo && vimeo && (i = new vimeo.player(o), i.on("ended", function() { n.next() }))) } }; t(document).on({ "aftershow.fb": function(t, e, n) { e.group.length > 1 && ("youtube" === n.contentsource || "vimeo" === n.contentsource) && o.load(n.contentsource) } }) }(jquery), function(t, e, n) { "use strict"; var o = function() { return t.requestanimationframe || t.webkitrequestanimationframe || t.mozrequestanimationframe || t.orequestanimationframe || function(e) { return t.settimeout(e, 1e3 / 60) } }(), i = function() { return t.cancelanimationframe || t.webkitcancelanimationframe || t.mozcancelanimationframe || t.ocancelanimationframe || function(e) { t.cleartimeout(e) } }(), a = function(e) { var n = []; e = e.originalevent || e || t.e, e = e.touches && e.touches.length ? e.touches : e.changedtouches && e.changedtouches.length ? e.changedtouches : [e]; for (var o in e) e[o].pagex ? n.push({ x: e[o].pagex, y: e[o].pagey }) : e[o].clientx && n.push({ x: e[o].clientx, y: e[o].clienty }); return n }, s = function(t, e, n) { 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 }, r = function(t) { 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; 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; return !1 }, c = function(e) { var n = t.getcomputedstyle(e)["overflow-y"], o = t.getcomputedstyle(e)["overflow-x"], i = ("scroll" === n || "auto" === n) && e.scrollheight > e.clientheight, a = ("scroll" === o || "auto" === o) && e.scrollwidth > e.clientwidth; return i || a }, l = function(t) { for (var e = !1;;) { if (e = c(t.get(0))) break; if (t = t.parent(), !t.length || t.hasclass("fancybox-stage") || t.is("body")) break } return e }, d = function(t) { var e = this; 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")) }; d.prototype.destroy = function() { var t = this; 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) }, d.prototype.ontouchstart = function(o) { var i = this, c = n(o.target), d = i.instance, u = d.current, f = u.$slide, p = u.$content, h = "touchstart" == o.type; 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))) { if (!u || d.isanimating || u.$slide.hasclass("fancybox-animated")) return o.stoppropagation(), void o.preventdefault(); 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) || { top: 0, left: 0 }, 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])))) } }, d.prototype.onscroll = function(t) { var n = this; n.isscrolling = !0, e.removeeventlistener("scroll", n.onscroll, !0) }, d.prototype.ontouchmove = function(t) { var e = this; 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())))) }, d.prototype.onswipe = function(e) { var a, s = this, r = s.instance, c = s.isswiping, l = s.sliderstartpos.left || 0; 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 = { top: "x" == c ? 0 : s.sliderstartpos.top + s.distancey, left: l }, s.requestid && (i(s.requestid), s.requestid = null), s.requestid = o(function() { s.sliderlastpos && (n.each(s.instance.slides, function(t, e) { var o = e.pos - s.instance.currpos; n.fancybox.settranslate(e.$slide, { top: s.sliderlastpos.top, left: s.sliderlastpos.left + o * s.canvaswidth + o * e.opts.gutter }) }), s.$container.addclass("fancybox-is-sliding")) }); else if (math.abs(s.distance) > 10) { 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); r.isdragging = s.isswiping, s.startpoints = s.newpoints, n.each(r.slides, function(t, e) { var o, i; n.fancybox.stop(e.$slide), o = n.fancybox.gettranslate(e.$slide), i = n.fancybox.gettranslate(r.$refs.stage), e.$slide.css({ transform: "", opacity: "", "transition-duration": "" }).removeclass("fancybox-animated").removeclass(function(t, e) { return (e.match(/(^|\s)fancybox-fx-\s+/g) || []).join(" ") }), e.pos === r.current.pos && (s.sliderstartpos.top = o.top - i.top, s.sliderstartpos.left = o.left - i.left), n.fancybox.settranslate(e.$slide, { top: o.top - i.top, left: o.left - i.left }) }), r.slideshow && r.slideshow.isactive && r.slideshow.stop() } }, d.prototype.onpan = function() { var t = this; if (s(t.newpoints[0], t.realpoints[0]) < (n.fancybox.ismobile ? 10 : 5)) return void(t.startpoints = t.newpoints); t.cantap = !1, t.contentlastpos = t.limitmovement(), t.requestid && i(t.requestid), t.requestid = o(function() { n.fancybox.settranslate(t.$content, t.contentlastpos) }) }, d.prototype.limitmovement = function() { var t, e, n, o, i, a, s = this, r = s.canvaswidth, c = s.canvasheight, l = s.distancex, d = s.distancey, u = s.contentstartpos, f = u.left, p = u.top, h = u.width, g = u.height; 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), { top: a, left: i } }, d.prototype.limitposition = function(t, e, n, o) { var i = this, a = i.canvaswidth, s = i.canvasheight; 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), { top: e, left: t } }, d.prototype.onzoom = function() { var e = this, a = e.contentstartpos, r = a.width, c = a.height, l = a.left, d = a.top, u = s(e.newpoints[0], e.newpoints[1]), f = u / e.startdistancebetweenfingers, p = math.floor(r * f), h = math.floor(c * f), g = (r - p) * e.percentageofimageatpinchpointx, b = (c - h) * e.percentageofimageatpinchpointy, m = (e.newpoints[0].x + e.newpoints[1].x) / 2 - n(t).scrollleft(), v = (e.newpoints[0].y + e.newpoints[1].y) / 2 - n(t).scrolltop(), y = m - e.centerpointstartx, x = v - e.centerpointstarty, w = l + (g + y), $ = d + (b + x), s = { top: $, left: w, scalex: f, scaley: f }; e.cantap = !1, e.newwidth = p, e.newheight = h, e.contentlastpos = s, e.requestid && i(e.requestid), e.requestid = o(function() { n.fancybox.settranslate(e.$content, e.contentlastpos) }) }, d.prototype.ontouchend = function(t) { var o = this, s = o.isswiping, r = o.ispanning, c = o.iszooming, l = o.isscrolling; 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); 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) }, d.prototype.endswiping = function(t, e) { var o = this, i = !1, a = o.instance.group.length, s = math.abs(o.distancex), r = "x" == t && a > 1 && (o.dms > 130 && s > 10 || s > 50); o.sliderlastpos = null, "y" == t && !e && math.abs(o.distancey) > 50 ? (n.fancybox.animate(o.instance.current.$slide, { top: o.sliderstartpos.top + o.distancey + 150 * o.velocityy, opacity: 0 }, 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") }, d.prototype.endpanning = function() { var t, e, o, i = this; 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)) }, d.prototype.endzooming = function() { var t, e, o, i, a = this, s = a.instance.current, r = a.newwidth, c = a.newheight; a.contentlastpos && (t = a.contentlastpos.left, e = a.contentlastpos.top, i = { top: e, left: t, width: r, height: c, scalex: 1, scaley: 1 }, 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))) }, d.prototype.ontap = function(e) { var o, i = this, s = n(e.target), r = i.instance, c = r.current, l = e && a(e) || i.startpoints, d = l[0] ? l[0].x - n(t).scrollleft() - i.stagepos.left : 0, u = l[0] ? l[0].y - n(t).scrolltop() - i.stagepos.top : 0, f = function(t) { var o = c.opts[t]; if (n.isfunction(o) && (o = o.apply(r, [c, e])), o) switch (o) { case "close": r.close(i.startevent); break; case "togglecontrols": r.togglecontrols(); break; case "next": r.next(); break; case "nextorclose": r.group.length > 1 ? r.next() : r.close(i.startevent); break; case "zoom": "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)) } }; if ((!e.originalevent || 2 != e.originalevent.button) && (s.is("img") || !(d > s[0].clientwidth + s.offset().left))) { if (s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container")) o = "outside"; else if (s.is(".fancybox-slide")) o = "slide"; else { if (!r.current.$content || !r.current.$content.find(s).addback().filter(s).length) return; o = "content" } if (i.tapped) { if (cleartimeout(i.tapped), i.tapped = null, math.abs(d - i.tapx) > 50 || math.abs(u - i.tapy) > 50) return this; f("dblclick" + o) } else i.tapx = d, i.tapy = u, c.opts["dblclick" + o] && c.opts["dblclick" + o] !== c.opts["click" + o] ? i.tapped = settimeout(function() { i.tapped = null, r.isanimating || f("click" + o) }, 500) : f("click" + o); return this } }, n(e).on("onactivate.fb", function(t, e) { e && !e.guestures && (e.guestures = new d(e)) }).on("beforeclose.fb", function(t, e) { e && e.guestures && e.guestures.destroy() }) }(window, document, jquery), function(t, e) { "use strict"; e.extend(!0, e.fancybox.defaults, { btntpl: { slideshow: '' }, slideshow: { autostart: !1, speed: 3e3, progress: !0 } }); var n = function(t) { this.instance = t, this.init() }; e.extend(n.prototype, { timer: null, isactive: !1, $button: null, init: function() { var t = this, n = t.instance, o = n.group[n.currindex].opts.slideshow; t.$button = n.$refs.toolbar.find("[data-fancybox-play]").on("click", function() { t.toggle() }), n.group.length < 2 || !o ? t.$button.hide() : o.progress && (t.$progress = e('
').appendto(n.$refs.inner)) }, set: function(t) { var n = this, o = n.instance, i = o.current; 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(), { scalex: 1 }, i.opts.slideshow.speed), n.timer = settimeout(function() { o.current.opts.loop || o.current.index != o.group.length - 1 ? o.next() : o.jumpto(0) }, i.opts.slideshow.speed)) : (n.stop(), o.idlesecondscounter = 0, o.showcontrols()) }, clear: function() { var t = this; cleartimeout(t.timer), t.timer = null, t.$progress && t.$progress.removeattr("style").hide() }, start: function() { var t = this, e = t.instance.current; 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)) }, stop: function() { var t = this, e = t.instance.current; 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() }, toggle: function() { var t = this; t.isactive ? t.stop() : t.start() } }), e(t).on({ "oninit.fb": function(t, e) { e && !e.slideshow && (e.slideshow = new n(e)) }, "beforeshow.fb": function(t, e, n, o) { var i = e && e.slideshow; o ? i && n.opts.slideshow.autostart && i.start() : i && i.isactive && i.clear() }, "aftershow.fb": function(t, e, n) { var o = e && e.slideshow; o && o.isactive && o.set() }, "afterkeydown.fb": function(n, o, i, a, s) { var r = o && o.slideshow;!r || !i.opts.slideshow || 80 !== s && 32 !== s || e(t.activeelement).is("button,a,input") || (a.preventdefault(), r.toggle()) }, "beforeclose.fb ondeactivate.fb": function(t, e) { var n = e && e.slideshow; n && n.stop() } }), e(t).on("visibilitychange", function() { var n = e.fancybox.getinstance(), o = n && n.slideshow; o && o.isactive && (t.hidden ? o.clear() : o.set()) }) }(document, jquery), function(t, e) { "use strict"; var n = function() { 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++) { var i = e[o]; if (i && i[1] in t) { for (var a = 0; a < i.length; a++) n[e[0][a]] = i[a]; return n } } return !1 }(); if (n) { var o = { request: function(e) { e = e || t.documentelement, e[n.requestfullscreen](e.allow_keyboard_input) }, exit: function() { t[n.exitfullscreen]() }, toggle: function(e) { e = e || t.documentelement, this.isfullscreen() ? this.exit() : this.request(e) }, isfullscreen: function() { return boolean(t[n.fullscreenelement]) }, enabled: function() { return boolean(t[n.fullscreenenabled]) } }; e.extend(!0, e.fancybox.defaults, { btntpl: { fullscreen: '' }, fullscreen: { autostart: !1 } }), e(t).on(n.fullscreenchange, function() { var t = o.isfullscreen(), n = e.fancybox.getinstance(); 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)) }) } e(t).on({ "oninit.fb": function(t, e) { var i; if (!n) return void e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove(); e && e.group[e.currindex].opts.fullscreen ? (i = e.$refs.container, i.on("click.fb-fullscreen", "[data-fancybox-fullscreen]", function(t) { t.stoppropagation(), t.preventdefault(), o.toggle() }), e.opts.fullscreen && !0 === e.opts.fullscreen.autostart && o.request(), e.fullscreen = o) : e && e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide() }, "afterkeydown.fb": function(t, e, n, o, i) { e && e.fullscreen && 70 === i && (o.preventdefault(), e.fullscreen.toggle()) }, "beforeclose.fb": function(t, e) { e && e.fullscreen && e.$refs.container.hasclass("fancybox-is-fullscreen") && o.exit() } }) }(document, jquery), function(t, e) { "use strict"; var n = "fancybox-thumbs"; e.fancybox.defaults = e.extend(!0, { btntpl: { thumbs: '' }, thumbs: { autostart: !1, hideonclose: !0, parentel: ".fancybox-container", axis: "y" } }, e.fancybox.defaults); var o = function(t) { this.init(t) }; e.extend(o.prototype, { $button: null, $grid: null, $list: null, isvisible: !1, isactive: !1, init: function(t) { var e = this, n = t.group, o = 0; e.instance = t, e.opts = n[t.currindex].opts.thumbs, t.thumbs = e, e.$button = t.$refs.toolbar.find("[data-fancybox-thumbs]"); for (var i = 0, a = n.length; i < a && (n[i].thumb && o++, !(o > 1)); i++); o > 1 && e.opts ? (e.$button.removeattr("style").on("click", function() { e.toggle() }), e.isactive = !0) : e.$button.hide() }, create: function() { var t, o = this, i = o.instance, a = o.opts.parentel, s = []; o.$grid || (o.$grid = e('
').appendto(i.$refs.container.find(a).addback().filter(a)), o.$grid.on("click", "a", function() { i.jumpto(e(this).attr("data-index")) })), o.$list || (o.$list = e('
').appendto(o.$grid)), e.each(i.group, function(e, n) { t = n.thumb, t || "image" !== n.type || (t = n.src), s.push('") }), 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)) }, focus: function(t) { var e, n, o = this, i = o.$list, a = o.$grid; 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({ scrolltop: i.scrolltop() + n.top }, t) : "x" === o.opts.axis && (n.left < a.scrollleft() || n.left > a.scrollleft() + (a.width() - e.outerwidth())) && i.parent().stop().animate({ scrollleft: n.left }, t)) }, update: function() { var t = this; 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() }, hide: function() { this.isvisible = !1, this.update() }, show: function() { this.isvisible = !0, this.update() }, toggle: function() { this.isvisible = !this.isvisible, this.update() } }), e(t).on({ "oninit.fb": function(t, e) { var n; e && !e.thumbs && (n = new o(e), n.isactive && !0 === n.opts.autostart && n.show()) }, "beforeshow.fb": function(t, e, n, o) { var i = e && e.thumbs; i && i.isvisible && i.focus(o ? 0 : 250) }, "afterkeydown.fb": function(t, e, n, o, i) { var a = e && e.thumbs; a && a.isactive && 71 === i && (o.preventdefault(), a.toggle()) }, "beforeclose.fb": function(t, e) { var n = e && e.thumbs; n && n.isvisible && !1 !== n.opts.hideonclose && n.$grid.hide() } }) }(document, jquery), function(t, e) { "use strict"; function n(t) { var e = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'", "/": "/", "`": "`", "=": "=" }; return string(t).replace(/[&<>"'`=\/]/g, function(t) { return e[t] }) } e.extend(!0, e.fancybox.defaults, { btntpl: { share: '' }, share: { url: function(t, e) { return !t.currenthash && "inline" !== e.type && "html" !== e.type && (e.origsrc || e.src) || window.location }, tpl: '' } }), e(t).on("click", "[data-fancybox-share]", function() { var t, o, i = e.fancybox.getinstance(), a = i.current || null; 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({ src: i.translate(i, o), type: "html", opts: { touch: !1, animationeffect: !1, afterload: function(t, e) { i.$refs.container.one("beforeclose.fb", function() { t.close(null, 0) }), e.$content.find(".fancybox-share__button").click(function() { return window.open(this.href, "share", "width=550, height=450"), !1 }) }, mobile: { autofocus: !1 } } })) }) }(document, jquery), function(t, e, n) { "use strict"; function o() { var e = t.location.hash.substr(1), n = e.split("-"), o = n.length > 1 && /^\+?\d+$/.test(n[n.length - 1]) ? parseint(n.pop(-1), 10) || 1 : 1, i = n.join("-"); return { hash: e, index: o < 1 ? 1 : o, gallery: i } } function i(t) { "" !== t.gallery && n("[data-fancybox='" + n.escapeselector(t.gallery) + "']").eq(t.index - 1).focus().trigger("click.fb-start") } function a(t) { var e, n; 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) } n.escapeselector || (n.escapeselector = function(t) { return (t + "").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uffff\w-]/g, function(t, e) { return e ? "\0" === t ? "�" : t.slice(0, -1) + "\\" + t.charcodeat(t.length - 1).tostring(16) + " " : "\\" + t }) }), n(function() {!1 !== n.fancybox.defaults.hash && (n(e).on({ "oninit.fb": function(t, e) { var n, i;!1 !== e.group[e.currindex].opts.hash && (n = o(), (i = a(e)) && n.gallery && i == n.gallery && (e.currindex = n.index - 1)) }, "beforeshow.fb": function(n, o, i, s) { var r; 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() { "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 }, 300))) }, "beforeclose.fb": function(n, o, i) { 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) } }), n(t).on("hashchange.fb", function() { var t = o(), e = null; n.each(n(".fancybox-container").get().reverse(), function(t, o) { var i = n(o).data("fancybox"); if (i && i.currenthash) return e = i, !1 }), e ? e.currenthash === t.gallery + "-" + t.index || 1 === t.index && e.currenthash == t.gallery || (e.currenthash = null, e.close()) : "" !== t.gallery && i(t) }), settimeout(function() { n.fancybox.getinstance() || i(o()) }, 50)) }) }(window, document, jquery), function(t, e) { "use strict"; var n = (new date).gettime(); e(t).on({ "oninit.fb": function(t, e, o) { e.$refs.stage.on("mousewheel dommousescroll wheel mozmousepixelscroll", function(t) { var o = e.current, i = (new date).gettime(); 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"]()))) }) } }) }(document, jquery);