Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/destinationplanner/assets/js/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
/*! Magnific Popup - v1.1.0 - 2016-02-20 * http://dimsemenov.com/plugins/magnific-popup/ * Copyright (c) 2016 Dmitry Semenov; */ /* Developer: Sakebul Islam Email: mdsakebul66@gmail.com Website: https://sakebul.com/ */ !(function (e) { "function" == typeof define && define.amd ? define(["jquery"], e) : e( "object" == typeof exports ? require("jquery") : window.jQuery || window.Zepto ); })(function (e) { var t, i, n, o, r, a, s = "Close", l = "BeforeClose", c = "MarkupParse", d = "Open", u = "Change", p = "mfp", f = "." + p, m = "mfp-ready", g = "mfp-removing", v = "mfp-prevent-close", h = function () {}, y = !!window.jQuery, C = e(window), w = function (e, i) { t.ev.on(p + e + f, i); }, b = function (t, i, n, o) { var r = document.createElement("div"); return ( (r.className = "mfp-" + t), n && (r.innerHTML = n), o ? i && i.appendChild(r) : ((r = e(r)), i && r.appendTo(i)), r ); }, I = function (i, n) { t.ev.triggerHandler(p + i, n), t.st.callbacks && ((i = i.charAt(0).toLowerCase() + i.slice(1)), t.st.callbacks[i] && t.st.callbacks[i].apply(t, e.isArray(n) ? n : [n])); }, x = function (i) { return ( (i === a && t.currTemplate.closeBtn) || ((t.currTemplate.closeBtn = e( t.st.closeMarkup.replace("%title%", t.st.tClose) )), (a = i)), t.currTemplate.closeBtn ); }, k = function () { e.magnificPopup.instance || ((t = new h()).init(), (e.magnificPopup.instance = t)); }; (h.prototype = { constructor: h, init: function () { var i = navigator.appVersion; (t.isLowIE = t.isIE8 = document.all && !document.addEventListener), (t.isAndroid = /android/gi.test(i)), (t.isIOS = /iphone|ipad|ipod/gi.test(i)), (t.supportsTransition = (function () { var e = document.createElement("p").style, t = ["ms", "O", "Moz", "Webkit"]; if (void 0 !== e.transition) return !0; for (; t.length; ) if (t.pop() + "Transition" in e) return !0; return !1; })()), (t.probablyMobile = t.isAndroid || t.isIOS || /(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test( navigator.userAgent )), (n = e(document)), (t.popupsCache = {}); }, open: function (i) { var o; if (!1 === i.isObj) { (t.items = i.items.toArray()), (t.index = 0); var a, s = i.items; for (o = 0; o < s.length; o++) if (((a = s[o]).parsed && (a = a.el[0]), a === i.el[0])) { t.index = o; break; } } else (t.items = e.isArray(i.items) ? i.items : [i.items]), (t.index = i.index || 0); if (!t.isOpen) { (t.types = []), (r = ""), i.mainEl && i.mainEl.length ? (t.ev = i.mainEl.eq(0)) : (t.ev = n), i.key ? (t.popupsCache[i.key] || (t.popupsCache[i.key] = {}), (t.currTemplate = t.popupsCache[i.key])) : (t.currTemplate = {}), (t.st = e.extend(!0, {}, e.magnificPopup.defaults, i)), (t.fixedContentPos = "auto" === t.st.fixedContentPos ? !t.probablyMobile : t.st.fixedContentPos), t.st.modal && ((t.st.closeOnContentClick = !1), (t.st.closeOnBgClick = !1), (t.st.showCloseBtn = !1), (t.st.enableEscapeKey = !1)), t.bgOverlay || ((t.bgOverlay = b("bg").on("click" + f, function () { t.close(); })), (t.wrap = b("wrap") .attr("tabindex", -1) .on("click" + f, function (e) { t._checkIfClose(e.target) && t.close(); })), (t.container = b("container", t.wrap))), (t.contentContainer = b("content")), t.st.preloader && (t.preloader = b("preloader", t.container, t.st.tLoading)); var l = e.magnificPopup.modules; for (o = 0; o < l.length; o++) { var u = l[o]; (u = u.charAt(0).toUpperCase() + u.slice(1)), t["init" + u].call(t); } I("BeforeOpen"), t.st.showCloseBtn && (t.st.closeBtnInside ? (w(c, function (e, t, i, n) { i.close_replaceWith = x(n.type); }), (r += " mfp-close-btn-in")) : t.wrap.append(x())), t.st.alignTop && (r += " mfp-align-top"), t.fixedContentPos ? t.wrap.css({ overflow: t.st.overflowY, overflowX: "hidden", overflowY: t.st.overflowY, }) : t.wrap.css({ top: C.scrollTop(), position: "absolute" }), (!1 === t.st.fixedBgPos || ("auto" === t.st.fixedBgPos && !t.fixedContentPos)) && t.bgOverlay.css({ height: n.height(), position: "absolute" }), t.st.enableEscapeKey && n.on("keyup" + f, function (e) { 27 === e.keyCode && t.close(); }), C.on("resize" + f, function () { t.updateSize(); }), t.st.closeOnContentClick || (r += " mfp-auto-cursor"), r && t.wrap.addClass(r); var p = (t.wH = C.height()), g = {}; if (t.fixedContentPos && t._hasScrollBar(p)) { var v = t._getScrollbarSize(); v && (g.marginRight = v); } t.fixedContentPos && (t.isIE7 ? e("body, html").css("overflow", "hidden") : (g.overflow = "hidden")); var h = t.st.mainClass; return ( t.isIE7 && (h += " mfp-ie7"), h && t._addClassToMFP(h), t.updateItemHTML(), I("BuildControls"), e("html").css(g), t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo || e(document.body)), (t._lastFocusedEl = document.activeElement), setTimeout(function () { t.content ? (t._addClassToMFP(m), t._setFocus()) : t.bgOverlay.addClass(m), n.on("focusin" + f, t._onFocusIn); }, 16), (t.isOpen = !0), t.updateSize(p), I(d), i ); } t.updateItemHTML(); }, close: function () { t.isOpen && (I(l), (t.isOpen = !1), t.st.removalDelay && !t.isLowIE && t.supportsTransition ? (t._addClassToMFP(g), setTimeout(function () { t._close(); }, t.st.removalDelay)) : t._close()); }, _close: function () { I(s); var i = g + " " + m + " "; if ( (t.bgOverlay.detach(), t.wrap.detach(), t.container.empty(), t.st.mainClass && (i += t.st.mainClass + " "), t._removeClassFromMFP(i), t.fixedContentPos) ) { var o = { marginRight: "" }; t.isIE7 ? e("body, html").css("overflow", "") : (o.overflow = ""), e("html").css(o); } n.off("keyup.mfp focusin" + f), t.ev.off(f), t.wrap.attr("class", "mfp-wrap").removeAttr("style"), t.bgOverlay.attr("class", "mfp-bg"), t.container.attr("class", "mfp-container"), !t.st.showCloseBtn || (t.st.closeBtnInside && !0 !== t.currTemplate[t.currItem.type]) || (t.currTemplate.closeBtn && t.currTemplate.closeBtn.detach()), t.st.autoFocusLast && t._lastFocusedEl && e(t._lastFocusedEl).focus(), (t.currItem = null), (t.content = null), (t.currTemplate = null), (t.prevHeight = 0), I("AfterClose"); }, updateSize: function (e) { if (t.isIOS) { var i = document.documentElement.clientWidth / window.innerWidth, n = window.innerHeight * i; t.wrap.css("height", n), (t.wH = n); } else t.wH = e || C.height(); t.fixedContentPos || t.wrap.css("height", t.wH), I("Resize"); }, updateItemHTML: function () { var i = t.items[t.index]; t.contentContainer.detach(), t.content && t.content.detach(), i.parsed || (i = t.parseEl(t.index)); var n = i.type; if ( (I("BeforeChange", [t.currItem ? t.currItem.type : "", n]), (t.currItem = i), !t.currTemplate[n]) ) { var r = !!t.st[n] && t.st[n].markup; I("FirstMarkupParse", r), (t.currTemplate[n] = !r || e(r)); } o && o !== i.type && t.container.removeClass("mfp-" + o + "-holder"); var a = t["get" + n.charAt(0).toUpperCase() + n.slice(1)]( i, t.currTemplate[n] ); t.appendContent(a, n), (i.preloaded = !0), I(u, i), (o = i.type), t.container.prepend(t.contentContainer), I("AfterChange"); }, appendContent: function (e, i) { (t.content = e), e ? t.st.showCloseBtn && t.st.closeBtnInside && !0 === t.currTemplate[i] ? t.content.find(".mfp-close").length || t.content.append(x()) : (t.content = e) : (t.content = ""), I("BeforeAppend"), t.container.addClass("mfp-" + i + "-holder"), t.contentContainer.append(t.content); }, parseEl: function (i) { var n, o = t.items[i]; if ( (o.tagName ? (o = { el: e(o) }) : ((n = o.type), (o = { data: o, src: o.src })), o.el) ) { for (var r = t.types, a = 0; a < r.length; a++) if (o.el.hasClass("mfp-" + r[a])) { n = r[a]; break; } (o.src = o.el.attr("data-mfp-src")), o.src || (o.src = o.el.attr("href")); } return ( (o.type = n || t.st.type || "inline"), (o.index = i), (o.parsed = !0), (t.items[i] = o), I("ElementParse", o), t.items[i] ); }, addGroup: function (e, i) { var n = function (n) { (n.mfpEl = this), t._openClick(n, e, i); }; i || (i = {}); var o = "click.magnificPopup"; (i.mainEl = e), i.items ? ((i.isObj = !0), e.off(o).on(o, n)) : ((i.isObj = !1), i.delegate ? e.off(o).on(o, i.delegate, n) : ((i.items = e), e.off(o).on(o, n))); }, _openClick: function (i, n, o) { if ( (void 0 !== o.midClick ? o.midClick : e.magnificPopup.defaults.midClick) || !(2 === i.which || i.ctrlKey || i.metaKey || i.altKey || i.shiftKey) ) { var r = void 0 !== o.disableOn ? o.disableOn : e.magnificPopup.defaults.disableOn; if (r) if (e.isFunction(r)) { if (!r.call(t)) return !0; } else if (C.width() < r) return !0; i.type && (i.preventDefault(), t.isOpen && i.stopPropagation()), (o.el = e(i.mfpEl)), o.delegate && (o.items = n.find(o.delegate)), t.open(o); } }, updateStatus: function (e, n) { if (t.preloader) { i !== e && t.container.removeClass("mfp-s-" + i), n || "loading" !== e || (n = t.st.tLoading); var o = { status: e, text: n }; I("UpdateStatus", o), (e = o.status), (n = o.text), t.preloader.html(n), t.preloader.find("a").on("click", function (e) { e.stopImmediatePropagation(); }), t.container.addClass("mfp-s-" + e), (i = e); } }, _checkIfClose: function (i) { if (!e(i).hasClass(v)) { var n = t.st.closeOnContentClick, o = t.st.closeOnBgClick; if (n && o) return !0; if ( !t.content || e(i).hasClass("mfp-close") || (t.preloader && i === t.preloader[0]) ) return !0; if (i === t.content[0] || e.contains(t.content[0], i)) { if (n) return !0; } else if (o && e.contains(document, i)) return !0; return !1; } }, _addClassToMFP: function (e) { t.bgOverlay.addClass(e), t.wrap.addClass(e); }, _removeClassFromMFP: function (e) { this.bgOverlay.removeClass(e), t.wrap.removeClass(e); }, _hasScrollBar: function (e) { return ( (t.isIE7 ? n.height() : document.body.scrollHeight) > (e || C.height()) ); }, _setFocus: function () { (t.st.focus ? t.content.find(t.st.focus).eq(0) : t.wrap).focus(); }, _onFocusIn: function (i) { return i.target === t.wrap[0] || e.contains(t.wrap[0], i.target) ? void 0 : (t._setFocus(), !1); }, _parseMarkup: function (t, i, n) { var o; n.data && (i = e.extend(n.data, i)), I(c, [t, i, n]), e.each(i, function (i, n) { if (void 0 === n || !1 === n) return !0; if ((o = i.split("_")).length > 1) { var r = t.find(f + "-" + o[0]); if (r.length > 0) { var a = o[1]; "replaceWith" === a ? r[0] !== n[0] && r.replaceWith(n) : "img" === a ? r.is("img") ? r.attr("src", n) : r.replaceWith( e("<img>").attr("src", n).attr("class", r.attr("class")) ) : r.attr(o[1], n); } } else t.find(f + "-" + i).html(n); }); }, _getScrollbarSize: function () { if (void 0 === t.scrollbarSize) { var e = document.createElement("div"); (e.style.cssText = "width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;"), document.body.appendChild(e), (t.scrollbarSize = e.offsetWidth - e.clientWidth), document.body.removeChild(e); } return t.scrollbarSize; }, }), (e.magnificPopup = { instance: null, proto: h.prototype, modules: [], open: function (t, i) { return ( k(), ((t = t ? e.extend(!0, {}, t) : {}).isObj = !0), (t.index = i || 0), this.instance.open(t) ); }, close: function () { return e.magnificPopup.instance && e.magnificPopup.instance.close(); }, registerModule: function (t, i) { i.options && (e.magnificPopup.defaults[t] = i.options), e.extend(this.proto, i.proto), this.modules.push(t); }, defaults: { disableOn: 0, key: null, midClick: !1, mainClass: "", preloader: !0, focus: "", closeOnContentClick: !1, closeOnBgClick: !0, closeBtnInside: !0, showCloseBtn: !0, enableEscapeKey: !0, modal: !1, alignTop: !1, removalDelay: 0, prependTo: null, fixedContentPos: "auto", fixedBgPos: "auto", overflowY: "auto", closeMarkup: '<button title="%title%" type="button" class="mfp-close">×</button>', tClose: "Close (Esc)", tLoading: "Loading...", autoFocusLast: !0, }, }), (e.fn.magnificPopup = function (i) { k(); var n = e(this); if ("string" == typeof i) if ("open" === i) { var o, r = y ? n.data("magnificPopup") : n[0].magnificPopup, a = parseInt(arguments[1], 10) || 0; r.items ? (o = r.items[a]) : ((o = n), r.delegate && (o = o.find(r.delegate)), (o = o.eq(a))), t._openClick({ mfpEl: o }, n, r); } else t.isOpen && t[i].apply(t, Array.prototype.slice.call(arguments, 1)); else (i = e.extend(!0, {}, i)), y ? n.data("magnificPopup", i) : (n[0].magnificPopup = i), t.addGroup(n, i); return n; }); var T, _, P, S = "inline", E = function () { P && (_.after(P.addClass(T)).detach(), (P = null)); }; e.magnificPopup.registerModule(S, { options: { hiddenClass: "hide", markup: "", tNotFound: "Content not found", }, proto: { initInline: function () { t.types.push(S), w(s + "." + S, function () { E(); }); }, getInline: function (i, n) { if ((E(), i.src)) { var o = t.st.inline, r = e(i.src); if (r.length) { var a = r[0].parentNode; a && a.tagName && (_ || ((T = o.hiddenClass), (_ = b(T)), (T = "mfp-" + T)), (P = r.after(_).detach().removeClass(T))), t.updateStatus("ready"); } else t.updateStatus("error", o.tNotFound), (r = e("<div>")); return (i.inlineElement = r), r; } return t.updateStatus("ready"), t._parseMarkup(n, {}, i), n; }, }, }); var z, O = "ajax", M = function () { z && e(document.body).removeClass(z); }, B = function () { M(), t.req && t.req.abort(); }; e.magnificPopup.registerModule(O, { options: { settings: null, cursor: "mfp-ajax-cur", tError: '<a href="%url%">The content</a> could not be loaded.', }, proto: { initAjax: function () { t.types.push(O), (z = t.st.ajax.cursor), w(s + "." + O, B), w("BeforeChange." + O, B); }, getAjax: function (i) { z && e(document.body).addClass(z), t.updateStatus("loading"); var n = e.extend( { url: i.src, success: function (n, o, r) { var a = { data: n, xhr: r }; I("ParseAjax", a), t.appendContent(e(a.data), O), (i.finished = !0), M(), t._setFocus(), setTimeout(function () { t.wrap.addClass(m); }, 16), t.updateStatus("ready"), I("AjaxContentAdded"); }, error: function () { M(), (i.finished = i.loadError = !0), t.updateStatus( "error", t.st.ajax.tError.replace("%url%", i.src) ); }, }, t.st.ajax.settings ); return (t.req = e.ajax(n)), ""; }, }, }); var L, H = function (i) { if (i.data && void 0 !== i.data.title) return i.data.title; var n = t.st.image.titleSrc; if (n) { if (e.isFunction(n)) return n.call(t, i); if (i.el) return i.el.attr(n) || ""; } return ""; }; e.magnificPopup.registerModule("image", { options: { markup: '<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>', cursor: "mfp-zoom-out-cur", titleSrc: "title", verticalFit: !0, tError: '<a href="%url%">The image</a> could not be loaded.', }, proto: { initImage: function () { var i = t.st.image, n = ".image"; t.types.push("image"), w(d + n, function () { "image" === t.currItem.type && i.cursor && e(document.body).addClass(i.cursor); }), w(s + n, function () { i.cursor && e(document.body).removeClass(i.cursor), C.off("resize" + f); }), w("Resize" + n, t.resizeImage), t.isLowIE && w("AfterChange", t.resizeImage); }, resizeImage: function () { var e = t.currItem; if (e && e.img && t.st.image.verticalFit) { var i = 0; t.isLowIE && (i = parseInt(e.img.css("padding-top"), 10) + parseInt(e.img.css("padding-bottom"), 10)), e.img.css("max-height", t.wH - i); } }, _onImageHasSize: function (e) { e.img && ((e.hasSize = !0), L && clearInterval(L), (e.isCheckingImgSize = !1), I("ImageHasSize", e), e.imgHidden && (t.content && t.content.removeClass("mfp-loading"), (e.imgHidden = !1))); }, findImageSize: function (e) { var i = 0, n = e.img[0], o = function (r) { L && clearInterval(L), (L = setInterval(function () { return n.naturalWidth > 0 ? void t._onImageHasSize(e) : (i > 200 && clearInterval(L), void (3 === ++i ? o(10) : 40 === i ? o(50) : 100 === i && o(500))); }, r)); }; o(1); }, getImage: function (i, n) { var o = 0, r = function () { i && (i.img[0].complete ? (i.img.off(".mfploader"), i === t.currItem && (t._onImageHasSize(i), t.updateStatus("ready")), (i.hasSize = !0), (i.loaded = !0), I("ImageLoadComplete")) : 200 > ++o ? setTimeout(r, 100) : a()); }, a = function () { i && (i.img.off(".mfploader"), i === t.currItem && (t._onImageHasSize(i), t.updateStatus("error", s.tError.replace("%url%", i.src))), (i.hasSize = !0), (i.loaded = !0), (i.loadError = !0)); }, s = t.st.image, l = n.find(".mfp-img"); if (l.length) { var c = document.createElement("img"); (c.className = "mfp-img"), i.el && i.el.find("img").length && (c.alt = i.el.find("img").attr("alt")), (i.img = e(c).on("load.mfploader", r).on("error.mfploader", a)), (c.src = i.src), l.is("img") && (i.img = i.img.clone()), (c = i.img[0]).naturalWidth > 0 ? (i.hasSize = !0) : c.width || (i.hasSize = !1); } return ( t._parseMarkup(n, { title: H(i), img_replaceWith: i.img }, i), t.resizeImage(), i.hasSize ? (L && clearInterval(L), i.loadError ? (n.addClass("mfp-loading"), t.updateStatus("error", s.tError.replace("%url%", i.src))) : (n.removeClass("mfp-loading"), t.updateStatus("ready")), n) : (t.updateStatus("loading"), (i.loading = !0), i.hasSize || ((i.imgHidden = !0), n.addClass("mfp-loading"), t.findImageSize(i)), n) ); }, }, }); var A; e.magnificPopup.registerModule("zoom", { options: { enabled: !1, easing: "ease-in-out", duration: 300, opener: function (e) { return e.is("img") ? e : e.find("img"); }, }, proto: { initZoom: function () { var e, i = t.st.zoom, n = ".zoom"; if (i.enabled && t.supportsTransition) { var o, r, a = i.duration, c = function (e) { var t = e .clone() .removeAttr("style") .removeAttr("class") .addClass("mfp-animated-image"), n = "all " + i.duration / 1e3 + "s " + i.easing, o = { position: "fixed", zIndex: 9999, left: 0, top: 0, "-webkit-backface-visibility": "hidden", }, r = "transition"; return ( (o["-webkit-" + r] = o["-moz-" + r] = o["-o-" + r] = o[r] = n), t.css(o), t ); }, d = function () { t.content.css("visibility", "visible"); }; w("BuildControls" + n, function () { if (t._allowZoom()) { if ( (clearTimeout(o), t.content.css("visibility", "hidden"), !(e = t._getItemToZoom())) ) return void d(); (r = c(e)).css(t._getOffset()), t.wrap.append(r), (o = setTimeout(function () { r.css(t._getOffset(!0)), (o = setTimeout(function () { d(), setTimeout(function () { r.remove(), (e = r = null), I("ZoomAnimationEnded"); }, 16); }, a)); }, 16)); } }), w(l + n, function () { if (t._allowZoom()) { if ((clearTimeout(o), (t.st.removalDelay = a), !e)) { if (!(e = t._getItemToZoom())) return; r = c(e); } r.css(t._getOffset(!0)), t.wrap.append(r), t.content.css("visibility", "hidden"), setTimeout(function () { r.css(t._getOffset()); }, 16); } }), w(s + n, function () { t._allowZoom() && (d(), r && r.remove(), (e = null)); }); } }, _allowZoom: function () { return "image" === t.currItem.type; }, _getItemToZoom: function () { return !!t.currItem.hasSize && t.currItem.img; }, _getOffset: function (i) { var n, o = (n = i ? t.currItem.img : t.st.zoom.opener(t.currItem.el || t.currItem)).offset(), r = parseInt(n.css("padding-top"), 10), a = parseInt(n.css("padding-bottom"), 10); o.top -= e(window).scrollTop() - r; var s = { width: n.width(), height: (y ? n.innerHeight() : n[0].offsetHeight) - a - r, }; return ( void 0 === A && (A = void 0 !== document.createElement("p").style.MozTransform), A ? (s["-moz-transform"] = s.transform = "translate(" + o.left + "px," + o.top + "px)") : ((s.left = o.left), (s.top = o.top)), s ); }, }, }); var F = "iframe", j = function (e) { if (t.currTemplate[F]) { var i = t.currTemplate[F].find("iframe"); i.length && (e || (i[0].src = "//about:blank"), t.isIE8 && i.css("display", e ? "block" : "none")); } }; e.magnificPopup.registerModule(F, { options: { markup: '<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>', srcAction: "iframe_src", patterns: { youtube: { index: "youtube.com", id: "v=", src: "//www.youtube.com/embed/%id%?autoplay=1", }, vimeo: { index: "vimeo.com/", id: "/", src: "//player.vimeo.com/video/%id%?autoplay=1", }, gmaps: { index: "//maps.google.", src: "%id%&output=embed" }, }, }, proto: { initIframe: function () { t.types.push(F), w("BeforeChange", function (e, t, i) { t !== i && (t === F ? j() : i === F && j(!0)); }), w(s + "." + F, function () { j(); }); }, getIframe: function (i, n) { var o = i.src, r = t.st.iframe; e.each(r.patterns, function () { return o.indexOf(this.index) > -1 ? (this.id && (o = "string" == typeof this.id ? o.substr( o.lastIndexOf(this.id) + this.id.length, o.length ) : this.id.call(this, o)), (o = this.src.replace("%id%", o)), !1) : void 0; }); var a = {}; return ( r.srcAction && (a[r.srcAction] = o), t._parseMarkup(n, a, i), t.updateStatus("ready"), n ); }, }, }); var N = function (e) { var i = t.items.length; return e > i - 1 ? e - i : 0 > e ? i + e : e; }, W = function (e, t, i) { return e.replace(/%curr%/gi, t + 1).replace(/%total%/gi, i); }; e.magnificPopup.registerModule("gallery", { options: { enabled: !1, arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>', preload: [0, 2], navigateByImgClick: !0, arrows: !0, tPrev: "Previous (Left arrow key)", tNext: "Next (Right arrow key)", tCounter: "%curr% of %total%", }, proto: { initGallery: function () { var i = t.st.gallery, o = ".mfp-gallery"; return ( (t.direction = !0), !(!i || !i.enabled) && ((r += " mfp-gallery"), w(d + o, function () { i.navigateByImgClick && t.wrap.on("click" + o, ".mfp-img", function () { return t.items.length > 1 ? (t.next(), !1) : void 0; }), n.on("keydown" + o, function (e) { 37 === e.keyCode ? t.prev() : 39 === e.keyCode && t.next(); }); }), w("UpdateStatus" + o, function (e, i) { i.text && (i.text = W(i.text, t.currItem.index, t.items.length)); }), w(c + o, function (e, n, o, r) { var a = t.items.length; o.counter = a > 1 ? W(i.tCounter, r.index, a) : ""; }), w("BuildControls" + o, function () { if (t.items.length > 1 && i.arrows && !t.arrowLeft) { var n = i.arrowMarkup, o = (t.arrowLeft = e( n.replace(/%title%/gi, i.tPrev).replace(/%dir%/gi, "left") ).addClass(v)), r = (t.arrowRight = e( n.replace(/%title%/gi, i.tNext).replace(/%dir%/gi, "right") ).addClass(v)); o.click(function () { t.prev(); }), r.click(function () { t.next(); }), t.container.append(o.add(r)); } }), w(u + o, function () { t._preloadTimeout && clearTimeout(t._preloadTimeout), (t._preloadTimeout = setTimeout(function () { t.preloadNearbyImages(), (t._preloadTimeout = null); }, 16)); }), void w(s + o, function () { n.off(o), t.wrap.off("click" + o), (t.arrowRight = t.arrowLeft = null); })) ); }, next: function () { (t.direction = !0), (t.index = N(t.index + 1)), t.updateItemHTML(); }, prev: function () { (t.direction = !1), (t.index = N(t.index - 1)), t.updateItemHTML(); }, goTo: function (e) { (t.direction = e >= t.index), (t.index = e), t.updateItemHTML(); }, preloadNearbyImages: function () { var e, i = t.st.gallery.preload, n = Math.min(i[0], t.items.length), o = Math.min(i[1], t.items.length); for (e = 1; e <= (t.direction ? o : n); e++) t._preloadItem(t.index + e); for (e = 1; e <= (t.direction ? n : o); e++) t._preloadItem(t.index - e); }, _preloadItem: function (i) { if (((i = N(i)), !t.items[i].preloaded)) { var n = t.items[i]; n.parsed || (n = t.parseEl(i)), I("LazyLoad", n), "image" === n.type && (n.img = e('<img class="mfp-img" />') .on("load.mfploader", function () { n.hasSize = !0; }) .on("error.mfploader", function () { (n.hasSize = !0), (n.loadError = !0), I("LazyLoadError", n); }) .attr("src", n.src)), (n.preloaded = !0); } }, }, }); var Z = "retina"; e.magnificPopup.registerModule(Z, { options: { replaceSrc: function (e) { return e.src.replace(/\.\w+$/, function (e) { return "@2x" + e; }); }, ratio: 1, }, proto: { initRetina: function () { if (window.devicePixelRatio > 1) { var e = t.st.retina, i = e.ratio; (i = isNaN(i) ? i() : i) > 1 && (w("ImageHasSize." + Z, function (e, t) { t.img.css({ "max-width": t.img[0].naturalWidth / i, width: "100%", }); }), w("ElementParse." + Z, function (t, n) { n.src = e.replaceSrc(n, i); })); } }, }, }), k(); });