/*! Lity - v2.2.2 - 2017-07-17 * http://sorgalla.com/lity/ * Copyright (c) 2015-2017 Jan Sorgalla; Licensed MIT */ !function(a, b) { "function" == typeof define && define.amd ? define(["jquery"], function($) { return b(a, $) }) : "object" == typeof module && "object" == typeof module.exports ? module.exports = b(a, require("jquery")) : a.lity = b(a, a.jQuery || a.Zepto) }("undefined" != typeof window ? window : this, function(b, $) { "use strict"; var e = b.document , i = $(b) , j = $.Deferred , k = $("html") , l = [] , f = "aria-hidden" , m = "lity-" + f , c = { esc: !0, handler: null, handlers: { image: g, inline: function(c, d) { var a, b, e; try { a = $(c) } catch (f) { return !1 } return !!a.length && (b = $(''), e = a.hasClass("lity-hide"), d.element().one("lity:remove", function() { b.before(a).remove(), e && !a.closest(".lity-content").length && a.addClass("lity-hide") }), a.removeClass("lity-hide").after(b)) }, youtube: function(b) { var a = o.exec(b); return !!a && x(w(b, v("https://www.youtube" + (a[2] || "") + ".com/embed/" + a[4], $.extend({ autoplay: 1 }, u(a[5] || ""))))) }, vimeo: function(b) { var a = p.exec(b); return !!a && x(w(b, v("https://player.vimeo.com/video/" + a[3], $.extend({ autoplay: 1 }, u(a[4] || ""))))) }, googlemaps: function(b) { var a = q.exec(b); return !!a && x(w(b, v("https://www.google." + a[3] + "/maps?" + a[6], { output: a[6].indexOf("layer=c") > 0 ? "svembed" : "embed" }))) }, facebookvideo: function(a) { var b = r.exec(a); return !!b && (0 !== a.indexOf("http") && (a = "https:" + a), x(w(a, v("https://www.facebook.com/plugins/video.php?href=" + a, $.extend({ autoplay: 1 }, u(b[4] || "")))))) }, iframe: x }, template: '' } , n = /(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i , o = /(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i , p = /(vimeo(pro)?.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/ , q = /((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i , r = /(facebook\.com)\/([a-z0-9_-]*)\/videos\/([0-9]*)(.*)?$/i , s = function() { var c = e.createElement("div") , a = { WebkitTransition: "webkitTransitionEnd", MozTransition: "transitionend", OTransition: "oTransitionEnd otransitionend", transition: "transitionend" }; for (var b in a) if (void 0 !== c.style[b]) return a[b]; return !1 }(); function t(b) { var a = j(); return s && b.length ? (b.one(s, a.resolve), setTimeout(a.resolve, 500)) : a.resolve(), a.promise() } function d(a, b, c) { if (1 === arguments.length) return $.extend({}, a); if ("string" == typeof b) { if (void 0 === c) return void 0 === a[b] ? null : a[b]; a[b] = c } else $.extend(a, b); return this } function u(e) { for (var c, b = decodeURI(e.split("#")[0]).split("&"), d = {}, a = 0, f = b.length; a < f; a++) b[a] && (d[(c = b[a].split("="))[0]] = c[1]); return d } function v(a, b) { return a + (a.indexOf("?") > -1 ? "&" : "?") + $.param(b) } function w(a, c) { var b = a.indexOf("#"); return -1 === b ? c : (b > 0 && (a = a.substr(b)), c + a) } function g(b, a) { var c = $('' + (a.opener() && a.opener().data(') , d = j() , e = function() { var a; d.reject((a = "Failed loading image", $('').append(a))) }; return c.on("load", function() { if (0 === this.naturalWidth) return e(); d.resolve(c) }).on("error", e), d.promise() } function x(a) { var c = a && 0 === a.indexOf("https://player.vimeo.com/") , b = ""; return !0 == c && (b = 'allow="autoplay; fullscreen; picture-in-picture"'), '