/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ "undefined" == typeof jQuery.migrateMute && (jQuery.migrateMute = !0), (function (t) { "use strict"; "function" == typeof define && define.amd ? define(["jquery"], function (e) { return t(e, window); }) : "object" == typeof module && module.exports ? (module.exports = t(require("jquery"), window)) : t(jQuery, window); })(function (s, n) { "use strict"; function e(e) { return ( 0 <= (function (e, t) { for ( var r = /^(\d+)\.(\d+)\.(\d+)/, n = r.exec(e) || [], o = r.exec(t) || [], a = 1; a <= 3; a++ ) { if (+o[a] < +n[a]) return 1; if (+n[a] < +o[a]) return -1; } return 0; })(s.fn.jquery, e) ); } s.migrateVersion = "3.4.1"; var t = Object.create(null); (s.migrateDisablePatches = function () { for (var e = 0; e < arguments.length; e++) t[arguments[e]] = !0; }), (s.migrateEnablePatches = function () { for (var e = 0; e < arguments.length; e++) delete t[arguments[e]]; }), (s.migrateIsPatchEnabled = function (e) { return !t[e]; }), n.console && n.console.log && ((s && e("3.0.0") && !e("5.0.0")) || n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"), s.migrateWarnings && n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"), n.console.log( "JQMIGRATE: Migrate is installed" + (s.migrateMute ? "" : " with logging active") + ", version " + s.migrateVersion )); var o = {}; function u(e, t) { var r = n.console; !s.migrateIsPatchEnabled(e) || (s.migrateDeduplicateWarnings && o[t]) || ((o[t] = !0), s.migrateWarnings.push(t + " [" + e + "]"), r && r.warn && !s.migrateMute && (r.warn("JQMIGRATE: " + t), s.migrateTrace && r.trace && r.trace())); } function r(e, t, r, n, o) { Object.defineProperty(e, t, { configurable: !0, enumerable: !0, get: function () { return u(n, o), r; }, set: function (e) { u(n, o), (r = e); }, }); } function a(e, t, r, n, o) { var a = e[t]; e[t] = function () { return ( o && u(n, o), (s.migrateIsPatchEnabled(n) ? r : a || s.noop).apply(this, arguments) ); }; } function c(e, t, r, n, o) { if (!o) throw new Error("No warning message provided"); return a(e, t, r, n, o), 0; } function i(e, t, r, n) { return a(e, t, r, n), 0; } (s.migrateDeduplicateWarnings = !0), (s.migrateWarnings = []), void 0 === s.migrateTrace && (s.migrateTrace = !0), (s.migrateReset = function () { (o = {}), (s.migrateWarnings.length = 0); }), "BackCompat" === n.document.compatMode && u("quirks", "jQuery is not compatible with Quirks Mode"); var d, l, p, f = {}, m = s.fn.init, y = s.find, h = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/, g = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g, v = /^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g; for (d in (i( s.fn, "init", function (e) { var t = Array.prototype.slice.call(arguments); return ( s.migrateIsPatchEnabled("selector-empty-id") && "string" == typeof e && "#" === e && (u("selector-empty-id", "jQuery( '#' ) is not a valid selector"), (t[0] = [])), m.apply(this, t) ); }, "selector-empty-id" ), (s.fn.init.prototype = s.fn), i( s, "find", function (t) { var r = Array.prototype.slice.call(arguments); if ("string" == typeof t && h.test(t)) try { n.document.querySelector(t); } catch (e) { t = t.replace(g, function (e, t, r, n) { return "[" + t + r + '"' + n + '"]'; }); try { n.document.querySelector(t), u( "selector-hash", "Attribute selector with '#' must be quoted: " + r[0] ), (r[0] = t); } catch (e) { u( "selector-hash", "Attribute selector with '#' was not fixed: " + r[0] ); } } return y.apply(this, r); }, "selector-hash" ), y)) Object.prototype.hasOwnProperty.call(y, d) && (s.find[d] = y[d]); c( s.fn, "size", function () { return this.length; }, "size", "jQuery.fn.size() is deprecated and removed; use the .length property" ), c( s, "parseJSON", function () { return JSON.parse.apply(null, arguments); }, "parseJSON", "jQuery.parseJSON is deprecated; use JSON.parse" ), c( s, "holdReady", s.holdReady, "holdReady", "jQuery.holdReady is deprecated" ), c( s, "unique", s.uniqueSort, "unique", "jQuery.unique is deprecated; use jQuery.uniqueSort" ), r( s.expr, "filters", s.expr.pseudos, "expr-pre-pseudos", "jQuery.expr.filters is deprecated; use jQuery.expr.pseudos" ), r( s.expr, ":", s.expr.pseudos, "expr-pre-pseudos", "jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos" ), e("3.1.1") && c( s, "trim", function (e) { return null == e ? "" : (e + "").replace(v, "$1"); }, "trim", "jQuery.trim is deprecated; use String.prototype.trim" ), e("3.2.0") && (c( s, "nodeName", function (e, t) { return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase(); }, "nodeName", "jQuery.nodeName is deprecated" ), c( s, "isArray", Array.isArray, "isArray", "jQuery.isArray is deprecated; use Array.isArray" )), e("3.3.0") && (c( s, "isNumeric", function (e) { var t = typeof e; return ( ("number" == t || "string" == t) && !isNaN(e - parseFloat(e)) ); }, "isNumeric", "jQuery.isNumeric() is deprecated" ), s.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), function (e, t) { f["[object " + t + "]"] = t.toLowerCase(); } ), c( s, "type", function (e) { return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? f[Object.prototype.toString.call(e)] || "object" : typeof e; }, "type", "jQuery.type is deprecated" ), c( s, "isFunction", function (e) { return "function" == typeof e; }, "isFunction", "jQuery.isFunction() is deprecated" ), c( s, "isWindow", function (e) { return null != e && e === e.window; }, "isWindow", "jQuery.isWindow() is deprecated" )), s.ajax && ((l = s.ajax), (p = /(=)\?(?=&|$)|\?\?/), i( s, "ajax", function () { var e = l.apply(this, arguments); return ( e.promise && (c( e, "success", e.done, "jqXHR-methods", "jQXHR.success is deprecated and removed" ), c( e, "error", e.fail, "jqXHR-methods", "jQXHR.error is deprecated and removed" ), c( e, "complete", e.always, "jqXHR-methods", "jQXHR.complete is deprecated and removed" )), e ); }, "jqXHR-methods" ), e("4.0.0") || s.ajaxPrefilter("+json", function (e) { !1 !== e.jsonp && (p.test(e.url) || ("string" == typeof e.data && 0 === (e.contentType || "").indexOf( "application/x-www-form-urlencoded" ) && p.test(e.data))) && u( "jsonp-promotion", "JSON-to-JSONP auto-promotion is deprecated" ); })); var j = s.fn.removeAttr, b = s.fn.toggleClass, w = /\S+/g; function x(e) { return e.replace(/-([a-z])/g, function (e, t) { return t.toUpperCase(); }); } i( s.fn, "removeAttr", function (e) { var r = this, n = !1; return ( s.each(e.match(w), function (e, t) { s.expr.match.bool.test(t) && r.each(function () { if (!1 !== s(this).prop(t)) return !(n = !0); }), n && (u( "removeAttr-bool", "jQuery.fn.removeAttr no longer sets boolean properties: " + t ), r.prop(t, !1)); }), j.apply(this, arguments) ); }, "removeAttr-bool" ), i( s.fn, "toggleClass", function (t) { return void 0 !== t && "boolean" != typeof t ? b.apply(this, arguments) : (u( "toggleClass-bool", "jQuery.fn.toggleClass( boolean ) is deprecated" ), this.each(function () { var e = (this.getAttribute && this.getAttribute("class")) || ""; e && s.data(this, "__className__", e), this.setAttribute && this.setAttribute( "class", (!e && !1 !== t && s.data(this, "__className__")) || "" ); })); }, "toggleClass-bool" ); var Q, A, R = !1, C = /^[a-z]/, N = /^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/; s.swap && s.each(["height", "width", "reliableMarginRight"], function (e, t) { var r = s.cssHooks[t] && s.cssHooks[t].get; r && (s.cssHooks[t].get = function () { var e; return (R = !0), (e = r.apply(this, arguments)), (R = !1), e; }); }), i( s, "swap", function (e, t, r, n) { var o, a, i = {}; for (a in (R || u("swap", "jQuery.swap() is undocumented and deprecated"), t)) (i[a] = e.style[a]), (e.style[a] = t[a]); for (a in ((o = r.apply(e, n || [])), t)) e.style[a] = i[a]; return o; }, "swap" ), e("3.4.0") && "undefined" != typeof Proxy && (s.cssProps = new Proxy(s.cssProps || {}, { set: function () { return ( u("cssProps", "jQuery.cssProps is deprecated"), Reflect.set.apply(this, arguments) ); }, })), e("4.0.0") ? ((A = { animationIterationCount: !0, columnCount: !0, fillOpacity: !0, flexGrow: !0, flexShrink: !0, fontWeight: !0, gridArea: !0, gridColumn: !0, gridColumnEnd: !0, gridColumnStart: !0, gridRow: !0, gridRowEnd: !0, gridRowStart: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, widows: !0, zIndex: !0, zoom: !0, }), "undefined" != typeof Proxy ? (s.cssNumber = new Proxy(A, { get: function () { return ( u("css-number", "jQuery.cssNumber is deprecated"), Reflect.get.apply(this, arguments) ); }, set: function () { return ( u("css-number", "jQuery.cssNumber is deprecated"), Reflect.set.apply(this, arguments) ); }, })) : (s.cssNumber = A)) : (A = s.cssNumber), (Q = s.fn.css), i( s.fn, "css", function (e, t) { var r, n, o = this; return e && "object" == typeof e && !Array.isArray(e) ? (s.each(e, function (e, t) { s.fn.css.call(o, e, t); }), this) : ("number" == typeof t && ((r = x(e)), (n = r), (C.test(n) && N.test(n[0].toUpperCase() + n.slice(1))) || A[r] || u( "css-number", 'Number-typed values are deprecated for jQuery.fn.css( "' + e + '", value )' )), Q.apply(this, arguments)); }, "css-number" ); var S, P, k, H, E = s.data; i( s, "data", function (e, t, r) { var n, o, a; if (t && "object" == typeof t && 2 === arguments.length) { for (a in ((n = s.hasData(e) && E.call(this, e)), (o = {}), t)) a !== x(a) ? (u( "data-camelCase", "jQuery.data() always sets/gets camelCased names: " + a ), (n[a] = t[a])) : (o[a] = t[a]); return E.call(this, e, o), t; } return t && "string" == typeof t && t !== x(t) && (n = s.hasData(e) && E.call(this, e)) && t in n ? (u( "data-camelCase", "jQuery.data() always sets/gets camelCased names: " + t ), 2 < arguments.length && (n[t] = r), n[t]) : E.apply(this, arguments); }, "data-camelCase" ), s.fx && ((k = s.Tween.prototype.run), (H = function (e) { return e; }), i( s.Tween.prototype, "run", function () { 1 < s.easing[this.easing].length && (u( "easing-one-arg", "'jQuery.easing." + this.easing.toString() + "' should use only one argument" ), (s.easing[this.easing] = H)), k.apply(this, arguments); }, "easing-one-arg" ), (S = s.fx.interval), (P = "jQuery.fx.interval is deprecated"), n.requestAnimationFrame && Object.defineProperty(s.fx, "interval", { configurable: !0, enumerable: !0, get: function () { return ( n.document.hidden || u("fx-interval", P), s.migrateIsPatchEnabled("fx-interval") && void 0 === S ? 13 : S ); }, set: function (e) { u("fx-interval", P), (S = e); }, })); var M = s.fn.load, q = s.event.add, O = s.event.fix; (s.event.props = []), (s.event.fixHooks = {}), r( s.event.props, "concat", s.event.props.concat, "event-old-patch", "jQuery.event.props.concat() is deprecated and removed" ), i( s.event, "fix", function (e) { var t, r = e.type, n = this.fixHooks[r], o = s.event.props; if (o.length) { u( "event-old-patch", "jQuery.event.props are deprecated and removed: " + o.join() ); while (o.length) s.event.addProp(o.pop()); } if ( n && !n._migrated_ && ((n._migrated_ = !0), u( "event-old-patch", "jQuery.event.fixHooks are deprecated and removed: " + r ), (o = n.props) && o.length) ) while (o.length) s.event.addProp(o.pop()); return (t = O.call(this, e)), n && n.filter ? n.filter(t, e) : t; }, "event-old-patch" ), i( s.event, "add", function (e, t) { return ( e === n && "load" === t && "complete" === n.document.readyState && u( "load-after-event", "jQuery(window).on('load'...) called after load event occurred" ), q.apply(this, arguments) ); }, "load-after-event" ), s.each(["load", "unload", "error"], function (e, t) { i( s.fn, t, function () { var e = Array.prototype.slice.call(arguments, 0); return "load" === t && "string" == typeof e[0] ? M.apply(this, e) : (u( "shorthand-removed-v3", "jQuery.fn." + t + "() is deprecated" ), e.splice(0, 0, t), arguments.length ? this.on.apply(this, e) : (this.triggerHandler.apply(this, e), this)); }, "shorthand-removed-v3" ); }), s.each( "blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split( " " ), function (e, r) { c( s.fn, r, function (e, t) { return 0 < arguments.length ? this.on(r, null, e, t) : this.trigger(r); }, "shorthand-deprecated-v3", "jQuery.fn." + r + "() event shorthand is deprecated" ); } ), s(function () { s(n.document).triggerHandler("ready"); }), (s.event.special.ready = { setup: function () { this === n.document && u("ready-event", "'ready' event is deprecated"); }, }), c( s.fn, "bind", function (e, t, r) { return this.on(e, null, t, r); }, "pre-on-methods", "jQuery.fn.bind() is deprecated" ), c( s.fn, "unbind", function (e, t) { return this.off(e, null, t); }, "pre-on-methods", "jQuery.fn.unbind() is deprecated" ), c( s.fn, "delegate", function (e, t, r, n) { return this.on(t, e, r, n); }, "pre-on-methods", "jQuery.fn.delegate() is deprecated" ), c( s.fn, "undelegate", function (e, t, r) { return 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", r); }, "pre-on-methods", "jQuery.fn.undelegate() is deprecated" ), c( s.fn, "hover", function (e, t) { return this.on("mouseenter", e).on("mouseleave", t || e); }, "pre-on-methods", "jQuery.fn.hover() is deprecated" ); function T(e) { var t = n.document.implementation.createHTMLDocument(""); return (t.body.innerHTML = e), t.body && t.body.innerHTML; } var F = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi; (s.UNSAFE_restoreLegacyHtmlPrefilter = function () { s.migrateEnablePatches("self-closed-tags"); }), i( s, "htmlPrefilter", function (e) { var t, r; return ( (r = (t = e).replace(F, "<$1>")) !== t && T(t) !== T(r) && u( "self-closed-tags", "HTML tags must be properly nested and closed: " + t ), e.replace(F, "<$1>") ); }, "self-closed-tags" ), s.migrateDisablePatches("self-closed-tags"); var D, W, _, I = s.fn.offset; return ( i( s.fn, "offset", function () { var e = this[0]; return !e || (e.nodeType && e.getBoundingClientRect) ? I.apply(this, arguments) : (u( "offset-valid-elem", "jQuery.fn.offset() requires a valid DOM element" ), arguments.length ? this : void 0); }, "offset-valid-elem" ), s.ajax && ((D = s.param), i( s, "param", function (e, t) { var r = s.ajaxSettings && s.ajaxSettings.traditional; return ( void 0 === t && r && (u( "param-ajax-traditional", "jQuery.param() no longer uses jQuery.ajaxSettings.traditional" ), (t = r)), D.call(this, e, t) ); }, "param-ajax-traditional" )), c( s.fn, "andSelf", s.fn.addBack, "andSelf", "jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()" ), s.Deferred && ((W = s.Deferred), (_ = [ [ "resolve", "done", s.Callbacks("once memory"), s.Callbacks("once memory"), "resolved", ], [ "reject", "fail", s.Callbacks("once memory"), s.Callbacks("once memory"), "rejected", ], ["notify", "progress", s.Callbacks("memory"), s.Callbacks("memory")], ]), i( s, "Deferred", function (e) { var a = W(), i = a.promise(); function t() { var o = arguments; return s .Deferred(function (n) { s.each(_, function (e, t) { var r = "function" == typeof o[e] && o[e]; a[t[1]](function () { var e = r && r.apply(this, arguments); e && "function" == typeof e.promise ? e .promise() .done(n.resolve) .fail(n.reject) .progress(n.notify) : n[t[0] + "With"]( this === i ? n.promise() : this, r ? [e] : arguments ); }); }), (o = null); }) .promise(); } return ( c(a, "pipe", t, "deferred-pipe", "deferred.pipe() is deprecated"), c(i, "pipe", t, "deferred-pipe", "deferred.pipe() is deprecated"), e && e.call(a, a), a ); }, "deferred-pipe" ), (s.Deferred.exceptionHook = W.exceptionHook)), s ); }); /*! * jQuery blockUI plugin * Version 2.70.0-2014.11.23 * Requires jQuery v1.7 or later * * Examples at: http://malsup.com/jquery/block/ * Copyright (c) 2007-2013 M. Alsup * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Thanks to Amir-Hossein Sobhi for some excellent contributions! */ !(function () { "use strict"; function e(e) { e.fn._fadeIn = e.fn.fadeIn; var t = e.noop || function () {}, o = /MSIE/.test(navigator.userAgent), n = /MSIE 6.0/.test(navigator.userAgent) && !/MSIE 8.0/.test(navigator.userAgent), i = (document.documentMode, "function" == typeof document.createElement("div").style.setExpression && document.createElement("div").style.setExpression); (e.blockUI = function (e) { d(window, e); }), (e.unblockUI = function (e) { a(window, e); }), (e.growlUI = function (t, o, n, i) { var s = e('
'); t && s.append("

" + t + "

"), o && s.append("

" + o + "

"), n === undefined && (n = 3e3); var l = function (t) { (t = t || {}), e.blockUI({ message: s, fadeIn: "undefined" != typeof t.fadeIn ? t.fadeIn : 700, fadeOut: "undefined" != typeof t.fadeOut ? t.fadeOut : 1e3, timeout: "undefined" != typeof t.timeout ? t.timeout : n, centerY: !1, showOverlay: !1, onUnblock: i, css: e.blockUI.defaults.growlCSS, }); }; l(); s.css("opacity"); s.on("mouseover", function () { l({ fadeIn: 0, timeout: 3e4 }); var t = e(".blockMsg"); t.stop(), t.fadeTo(300, 1); }).on("mouseout", function () { e(".blockMsg").fadeOut(1e3); }); }), (e.fn.block = function (t) { if (this[0] === window) return e.blockUI(t), this; var o = e.extend({}, e.blockUI.defaults, t || {}); return ( this.each(function () { var t = e(this); (o.ignoreIfBlocked && t.data("blockUI.isBlocked")) || t.unblock({ fadeOut: 0 }); }), this.each(function () { "static" == e.css(this, "position") && ((this.style.position = "relative"), e(this).data("blockUI.static", !0)), (this.style.zoom = 1), d(this, t); }) ); }), (e.fn.unblock = function (t) { return this[0] === window ? (e.unblockUI(t), this) : this.each(function () { a(this, t); }); }), (e.blockUI.version = 2.7), (e.blockUI.defaults = { message: "

Please wait...

", title: null, draggable: !0, theme: !1, css: { padding: 0, margin: 0, width: "30%", top: "40%", left: "35%", textAlign: "center", color: "#000", border: "3px solid #aaa", backgroundColor: "#fff", cursor: "wait", }, themedCSS: { width: "30%", top: "40%", left: "35%" }, overlayCSS: { backgroundColor: "#000", opacity: 0.6, cursor: "wait" }, cursorReset: "default", growlCSS: { width: "350px", top: "10px", left: "", right: "10px", border: "none", padding: "5px", opacity: 0.6, cursor: "default", color: "#fff", backgroundColor: "#000", "-webkit-border-radius": "10px", "-moz-border-radius": "10px", "border-radius": "10px", }, iframeSrc: /^https/i.test(window.location.href || "") ? "javascript:false" : "about:blank", forceIframe: !1, baseZ: 1e3, centerX: !0, centerY: !0, allowBodyStretch: !0, bindEvents: !0, constrainTabKey: !0, fadeIn: 200, fadeOut: 400, timeout: 0, showOverlay: !0, focusInput: !0, focusableElements: ":input:enabled:visible", onBlock: null, onUnblock: null, onOverlayClick: null, quirksmodeOffsetHack: 4, blockMsgClass: "blockMsg", ignoreIfBlocked: !1, }); var s = null, l = []; function d(d, c) { var u, b, h = d == window, k = c && c.message !== undefined ? c.message : undefined; if ( !(c = e.extend({}, e.blockUI.defaults, c || {})).ignoreIfBlocked || !e(d).data("blockUI.isBlocked") ) { if ( ((c.overlayCSS = e.extend( {}, e.blockUI.defaults.overlayCSS, c.overlayCSS || {} )), (u = e.extend({}, e.blockUI.defaults.css, c.css || {})), c.onOverlayClick && (c.overlayCSS.cursor = "pointer"), (b = e.extend({}, e.blockUI.defaults.themedCSS, c.themedCSS || {})), (k = k === undefined ? c.message : k), h && s && a(window, { fadeOut: 0 }), k && "string" != typeof k && (k.parentNode || k.jquery)) ) { var y = k.jquery ? k[0] : k, m = {}; e(d).data("blockUI.history", m), (m.el = y), (m.parent = y.parentNode), (m.display = y.style.display), (m.position = y.style.position), m.parent && m.parent.removeChild(y); } e(d).data("blockUI.onUnblock", c.onUnblock); var g, v, I, w, U = c.baseZ; (g = o || c.forceIframe ? e( '' ) : e('')), (v = c.theme ? e( '' ) : e( '' )), c.theme && h ? ((w = '")) : c.theme ? ((w = '")) : (w = h ? '' : ''), (I = e(w)), k && (c.theme ? (I.css(b), I.addClass("ui-widget-content")) : I.css(u)), c.theme || v.css(c.overlayCSS), v.css("position", h ? "fixed" : "absolute"), (o || c.forceIframe) && g.css("opacity", 0); var x = [g, v, I], C = e(h ? "body" : d); e.each(x, function () { this.appendTo(C); }), c.theme && c.draggable && e.fn.draggable && I.draggable({ handle: ".ui-dialog-titlebar", cancel: "li" }); var S = i && (!e.support.boxModel || e("object,embed", h ? null : d).length > 0); if (n || S) { if ( (h && c.allowBodyStretch && e.support.boxModel && e("html,body").css("height", "100%"), (n || !e.support.boxModel) && !h) ) var E = p(d, "borderTopWidth"), O = p(d, "borderLeftWidth"), T = E ? "(0 - " + E + ")" : 0, M = O ? "(0 - " + O + ")" : 0; e.each(x, function (e, t) { var o = t[0].style; if (((o.position = "absolute"), e < 2)) h ? o.setExpression( "height", "Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:" + c.quirksmodeOffsetHack + ') + "px"' ) : o.setExpression( "height", 'this.parentNode.offsetHeight + "px"' ), h ? o.setExpression( "width", 'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"' ) : o.setExpression( "width", 'this.parentNode.offsetWidth + "px"' ), M && o.setExpression("left", M), T && o.setExpression("top", T); else if (c.centerY) h && o.setExpression( "top", '(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"' ), (o.marginTop = 0); else if (!c.centerY && h) { var n = "((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + " + (c.css && c.css.top ? parseInt(c.css.top, 10) : 0) + ') + "px"'; o.setExpression("top", n); } }); } if ( (k && (c.theme ? I.find(".ui-widget-content").append(k) : I.append(k), (k.jquery || k.nodeType) && e(k).show()), (o || c.forceIframe) && c.showOverlay && g.show(), c.fadeIn) ) { var B = c.onBlock ? c.onBlock : t, j = c.showOverlay && !k ? B : t, H = k ? B : t; c.showOverlay && v._fadeIn(c.fadeIn, j), k && I._fadeIn(c.fadeIn, H); } else c.showOverlay && v.show(), k && I.show(), c.onBlock && c.onBlock.bind(I)(); if ( (r(1, d, c), h ? ((s = I[0]), (l = e(c.focusableElements, s)), c.focusInput && setTimeout(f, 20)) : (function (e, t, o) { var n = e.parentNode, i = e.style, s = (n.offsetWidth - e.offsetWidth) / 2 - p(n, "borderLeftWidth"), l = (n.offsetHeight - e.offsetHeight) / 2 - p(n, "borderTopWidth"); t && (i.left = s > 0 ? s + "px" : "0"); o && (i.top = l > 0 ? l + "px" : "0"); })(I[0], c.centerX, c.centerY), c.timeout) ) { var z = setTimeout(function () { h ? e.unblockUI(c) : e(d).unblock(c); }, c.timeout); e(d).data("blockUI.timeout", z); } } } function a(t, o) { var n, i, d = t == window, a = e(t), u = a.data("blockUI.history"), f = a.data("blockUI.timeout"); f && (clearTimeout(f), a.removeData("blockUI.timeout")), (o = e.extend({}, e.blockUI.defaults, o || {})), r(0, t, o), null === o.onUnblock && ((o.onUnblock = a.data("blockUI.onUnblock")), a.removeData("blockUI.onUnblock")), (i = d ? e(document.body) .children() .filter(".blockUI") .add("body > .blockUI") : a.find(">.blockUI")), o.cursorReset && (i.length > 1 && (i[1].style.cursor = o.cursorReset), i.length > 2 && (i[2].style.cursor = o.cursorReset)), d && (s = l = null), o.fadeOut ? ((n = i.length), i.stop().fadeOut(o.fadeOut, function () { 0 == --n && c(i, u, o, t); })) : c(i, u, o, t); } function c(t, o, n, i) { var s = e(i); if (!s.data("blockUI.isBlocked")) { t.each(function (e, t) { this.parentNode && this.parentNode.removeChild(this); }), o && o.el && ((o.el.style.display = o.display), (o.el.style.position = o.position), (o.el.style.cursor = "default"), o.parent && o.parent.appendChild(o.el), s.removeData("blockUI.history")), s.data("blockUI.static") && s.css("position", "static"), "function" == typeof n.onUnblock && n.onUnblock(i, n); var l = e(document.body), d = l.width(), a = l[0].style.width; l.width(d - 1).width(d), (l[0].style.width = a); } } function r(t, o, n) { var i = o == window, l = e(o); if ( (t || ((!i || s) && (i || l.data("blockUI.isBlocked")))) && (l.data("blockUI.isBlocked", t), i && n.bindEvents && (!t || n.showOverlay)) ) { var d = "mousedown mouseup keydown keypress keyup touchstart touchend touchmove"; t ? e(document).on(d, n, u) : e(document).off(d, u); } } function u(t) { if ( "keydown" === t.type && t.keyCode && 9 == t.keyCode && s && t.data.constrainTabKey ) { var o = l, n = !t.shiftKey && t.target === o[o.length - 1], i = t.shiftKey && t.target === o[0]; if (n || i) return ( setTimeout(function () { f(i); }, 10), !1 ); } var d = t.data, a = e(t.target); return ( a.hasClass("blockOverlay") && d.onOverlayClick && d.onOverlayClick(t), a.parents("div." + d.blockMsgClass).length > 0 || 0 === a.parents().children().filter("div.blockUI").length ); } function f(e) { if (l) { var t = l[!0 === e ? l.length - 1 : 0]; t && t.trigger("focus"); } } function p(t, o) { return parseInt(e.css(t, o), 10) || 0; } } "function" == typeof define && define.amd && define.amd.jQuery ? define(["jquery"], e) : e(jQuery); })(); var wc_add_to_cart_params = { ajax_url: "/wp-admin/admin-ajax.php", wc_ajax_url: "/?wc-ajax=%%endpoint%%", i18n_view_cart: "View cart", cart_url: "https://gomoto.like-themes.com/cart/", is_cart: "", cart_redirect_after_add: "no", }; jQuery(function (t) { if ("undefined" == typeof wc_add_to_cart_params) return !1; var a = function () { (this.requests = []), (this.addRequest = this.addRequest.bind(this)), (this.run = this.run.bind(this)), (this.$liveRegion = this.createLiveRegion()), t(document.body) .on( "click", ".add_to_cart_button:not(.wc-interactive)", { addToCartHandler: this }, this.onAddToCart ) .on( "click", ".remove_from_cart_button", { addToCartHandler: this }, this.onRemoveFromCart ) .on("added_to_cart", { addToCartHandler: this }, this.onAddedToCart) .on( "removed_from_cart", { addToCartHandler: this }, this.onRemovedFromCart ) .on("ajax_request_not_sent.adding_to_cart", this.updateButton); }; (a.prototype.addRequest = function (t) { this.requests.push(t), 1 === this.requests.length && this.run(); }), (a.prototype.run = function () { var a = this, e = a.requests[0].complete; (a.requests[0].complete = function () { "function" == typeof e && e(), a.requests.shift(), a.requests.length > 0 && a.run(); }), t.ajax(this.requests[0]); }), (a.prototype.onAddToCart = function (a) { var e = t(this); if (e.is(".ajax_add_to_cart")) { if (!e.attr("data-product_id")) return !0; if ( (a.data.addToCartHandler.$liveRegion .text("") .removeAttr("aria-relevant"), a.preventDefault(), e.removeClass("added"), e.addClass("loading"), !1 === t(document.body).triggerHandler( "should_send_ajax_request.adding_to_cart", [e] )) ) return ( t(document.body).trigger("ajax_request_not_sent.adding_to_cart", [ !1, !1, e, ]), !0 ); var r = {}; t.each(e.data(), function (t, a) { r[t] = a; }), t.each(e[0].dataset, function (t, a) { r[t] = a; }), t(document.body).trigger("adding_to_cart", [e, r]), a.data.addToCartHandler.addRequest({ type: "POST", url: wc_add_to_cart_params.wc_ajax_url .toString() .replace("%%endpoint%%", "add_to_cart"), data: r, success: function (a) { a && (a.error && a.product_url ? (window.location = a.product_url) : "yes" !== wc_add_to_cart_params.cart_redirect_after_add ? t(document.body).trigger("added_to_cart", [ a.fragments, a.cart_hash, e, ]) : (window.location = wc_add_to_cart_params.cart_url)); }, dataType: "json", }); } }), (a.prototype.onRemoveFromCart = function (a) { var e = t(this), r = e.closest(".woocommerce-mini-cart-item"); a.data.addToCartHandler.$liveRegion.text("").removeAttr("aria-relevant"), a.preventDefault(), r.block({ message: null, overlayCSS: { opacity: 0.6 } }), a.data.addToCartHandler.addRequest({ type: "POST", url: wc_add_to_cart_params.wc_ajax_url .toString() .replace("%%endpoint%%", "remove_from_cart"), data: { cart_item_key: e.data("cart_item_key") }, success: function (a) { a && a.fragments ? t(document.body).trigger("removed_from_cart", [ a.fragments, a.cart_hash, e, ]) : (window.location = e.attr("href")); }, error: function () { window.location = e.attr("href"); }, dataType: "json", }); }), (a.prototype.updateButton = function (a, e, r, d) { if ((d = void 0 !== d && d)) { if ( (d.removeClass("loading"), e && d.addClass("added"), e && !wc_add_to_cart_params.is_cart && 0 === d.parent().find(".added_to_cart").length) ) { var o = document.createElement("a"); (o.href = wc_add_to_cart_params.cart_url), (o.className = "added_to_cart wc-forward"), (o.title = wc_add_to_cart_params.i18n_view_cart), (o.textContent = wc_add_to_cart_params.i18n_view_cart), d.after(o); } t(document.body).trigger("wc_cart_button_updated", [d]); } }), (a.prototype.updateFragments = function (a, e) { e && (t.each(e, function (a) { t(a) .addClass("updating") .fadeTo("400", "0.6") .block({ message: null, overlayCSS: { opacity: 0.6 } }); }), t.each(e, function (a, e) { t(a).replaceWith(e), t(a).stop(!0).css("opacity", "1").unblock(); }), t(document.body).trigger("wc_fragments_loaded")); }), (a.prototype.alertCartUpdated = function (t, a, e, r) { if ((r = void 0 !== r && r)) { var d = r.data("success_message"); if (!d) return; t.data.addToCartHandler.$liveRegion .delay(1e3) .text(d) .attr("aria-relevant", "all"); } }), (a.prototype.createLiveRegion = function () { var a = t(".widget_shopping_cart_live_region"); return a.length ? a : t( '
' ).appendTo("body"); }), (a.prototype.onAddedToCart = function (t, a, e, r) { t.data.addToCartHandler.updateButton(t, a, e, r), t.data.addToCartHandler.updateFragments(t, a), t.data.addToCartHandler.alertCartUpdated(t, a, e, r); }), (a.prototype.onRemovedFromCart = function (t, a, e, r) { t.data.addToCartHandler.updateFragments(t, a), t.data.addToCartHandler.alertCartUpdated(t, a, e, r); }), new a(); }); /*! js-cookie v3.0.5 | MIT */ !(function (e, t) { "object" == typeof exports && "undefined" != typeof module ? (module.exports = t()) : "function" == typeof define && define.amd ? define(t) : ((e = "undefined" != typeof globalThis ? globalThis : e || self), (function () { var n = e.Cookies, o = (e.Cookies = t()); o.noConflict = function () { return (e.Cookies = n), o; }; })()); })(this, function () { "use strict"; function e(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var o in n) e[o] = n[o]; } return e; } return (function t(n, o) { function r(t, r, i) { if ("undefined" != typeof document) { "number" == typeof (i = e({}, o, i)).expires && (i.expires = new Date(Date.now() + 864e5 * i.expires)), i.expires && (i.expires = i.expires.toUTCString()), (t = encodeURIComponent(t) .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent) .replace(/[()]/g, escape)); var c = ""; for (var u in i) i[u] && ((c += "; " + u), !0 !== i[u] && (c += "=" + i[u].split(";")[0])); return (document.cookie = t + "=" + n.write(r, t) + c); } } return Object.create( { set: r, get: function (e) { if ("undefined" != typeof document && (!arguments.length || e)) { for ( var t = document.cookie ? document.cookie.split("; ") : [], o = {}, r = 0; r < t.length; r++ ) { var i = t[r].split("="), c = i.slice(1).join("="); try { var u = decodeURIComponent(i[0]); if (((o[u] = n.read(c, u)), e === u)) break; } catch (f) {} } return e ? o[e] : o; } }, remove: function (t, n) { r(t, "", e({}, n, { expires: -1 })); }, withAttributes: function (n) { return t(this.converter, e({}, this.attributes, n)); }, withConverter: function (n) { return t(e({}, this.converter, n), this.attributes); }, }, { attributes: { value: Object.freeze(o) }, converter: { value: Object.freeze(n) }, } ); })( { read: function (e) { return ( '"' === e[0] && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent) ); }, write: function (e) { return encodeURIComponent(e).replace( /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent ); }, }, { path: "/" } ); }); var woocommerce_params = { ajax_url: "/wp-admin/admin-ajax.php", wc_ajax_url: "/?wc-ajax=%%endpoint%%", i18n_password_show: "Show password", i18n_password_hide: "Hide password", }; function focus_populate_live_region() { var e = [ "woocommerce-message", "woocommerce-error", "wc-block-components-notice-banner", ] .map(function (e) { return "." + e + '[role="alert"]'; }) .join(", "), o = document.querySelectorAll(e); if (0 !== o.length) { var t = o[0]; t.setAttribute("tabindex", "-1"); var n = setTimeout(function () { t.focus(), clearTimeout(n); }, 500); } } function refresh_sorted_by_live_region() { var e = document.querySelector( '.woocommerce-result-count[data-is-sorted-by="true"]' ); if (e) var o = e.innerHTML, t = setTimeout(function () { (e.innerHTML = ""), (e.innerHTML = o), clearTimeout(t); }, 1e3); } function on_document_ready() { focus_populate_live_region(), refresh_sorted_by_live_region(); } jQuery(function (e) { e(".woocommerce-ordering").on("change", "select.orderby", function () { e(this).closest("form").trigger("submit"); }), e("input.qty:not(.product-quantity input.qty)").each(function () { var o = parseFloat(e(this).attr("min")); o >= 0 && parseFloat(e(this).val()) < o && e(this).val(o); }); var o = "store_notice" + (e(".woocommerce-store-notice").data("noticeId") || ""); "hidden" === Cookies.get(o) ? e(".woocommerce-store-notice").hide() : e(".woocommerce-store-notice").show(), e(".woocommerce-store-notice__dismiss-link").on("click", function (t) { Cookies.set(o, "hidden", { path: "/" }), e(".woocommerce-store-notice").hide(), t.preventDefault(); }), e(".woocommerce-input-wrapper span.description").length && e(document.body).on("click", function () { e(".woocommerce-input-wrapper span.description:visible") .prop("aria-hidden", !0) .slideUp(250); }), e(".woocommerce-input-wrapper").on("click", function (e) { e.stopPropagation(); }), e(".woocommerce-input-wrapper :input") .on("keydown", function (o) { var t = e(this).parent().find("span.description"); if (27 === o.which && t.length && t.is(":visible")) return t.prop("aria-hidden", !0).slideUp(250), o.preventDefault(), !1; }) .on("click focus", function () { var o = e(this).parent(), t = o.find("span.description"); o.addClass("currentTarget"), e( ".woocommerce-input-wrapper:not(.currentTarget) span.description:visible" ) .prop("aria-hidden", !0) .slideUp(250), t.length && t.is(":hidden") && t.prop("aria-hidden", !1).slideDown(250), o.removeClass("currentTarget"); }), (e.scroll_to_notices = function (o) { o.length && e("html, body").animate({ scrollTop: o.offset().top - 100 }, 1e3); }), e('.woocommerce form .woocommerce-Input[type="password"]').wrap( '' ), e(".woocommerce form input") .filter(":password") .parent("span") .addClass("password-input"), e(".password-input").each(function () { const o = e(this).find("input").attr("id"); e(this).append( '' ), e(this).on("keydown", function (e) { "Enter" === e.key && e.preventDefault(); }); }), e(".show-password-input").on("click", function (o) { o.preventDefault(), e(this).hasClass("display-password") ? (e(this).removeClass("display-password"), e(this).attr("aria-label", woocommerce_params.i18n_password_show)) : (e(this).addClass("display-password"), e(this).attr("aria-label", woocommerce_params.i18n_password_hide)), e(this).hasClass("display-password") ? e(this).siblings(['input[type="password"]']).prop("type", "text") : e(this).siblings('input[type="text"]').prop("type", "password"), e(this).siblings("input").focus(); }), e("#customer_login .password-input").on("keydown", function (o) { "Enter" === o.key && e(this).closest("form").find("[type=submit]").click(); }), e("a.coming-soon-footer-banner-dismiss").on("click", function (o) { var t = e(o.target); e.ajax({ type: "post", url: t.data("rest-url"), data: { woocommerce_meta: { coming_soon_banner_dismissed: "yes" } }, beforeSend: function (e) { e.setRequestHeader("X-WP-Nonce", t.data("rest-nonce")); }, complete: function () { e("#coming-soon-footer-banner").hide(); }, }); }), e(document.body).on( "item_removed_from_classic_cart", focus_populate_live_region ); }), document.addEventListener("DOMContentLoaded", on_document_ready); ("use strict"); /** * jQuery plugin paroller.js v1.4.6 * https://github.com/tgomilar/paroller.js * preview: https://tgomilar.github.io/paroller/ **/ (function (a) { "use strict"; "function" == typeof define && define.amd ? define("parollerjs", ["jquery"], a) : "object" == typeof module && "object" == typeof module.exports ? (module.exports = a(require("jquery"))) : a(jQuery); })(function (a) { "use strict"; var b = Math.round; let c = !1, d = function () { c = !1; }, e = { bgVertical: function (a, b) { return a.css({ "background-position": "center " + -b + "px" }); }, bgHorizontal: function (a, b) { return a.css({ "background-position": -b + "px center" }); }, vertical: function (a, b, c, d) { return ( "none" === d && (d = ""), a.css({ "-webkit-transform": "translateY(" + b + "px)" + d, "-moz-transform": "translateY(" + b + "px)" + d, transform: "translate(0," + b + "px)" + d, transition: c, "will-change": "transform", }) ); }, horizontal: function (a, b, c, d) { return ( "none" === d && (d = ""), a.css({ "-webkit-transform": "translateX(" + b + "px)" + d, "-moz-transform": "translateX(" + b + "px)" + d, transform: "translate(" + b + "px, 0)" + d, transition: c, "will-change": "transform", }) ); }, }, f = { factor: function (a, b, c) { let d = a.data("paroller-factor"), e = d ? d : c.factor; if (576 > b) { let b = a.data("paroller-factor-xs"), d = b ? b : c.factorXs; return d ? d : e; } if (768 >= b) { let b = a.data("paroller-factor-sm"), d = b ? b : c.factorSm; return d ? d : e; } if (1024 >= b) { let b = a.data("paroller-factor-md"), d = b ? b : c.factorMd; return d ? d : e; } if (1200 >= b) { let b = a.data("paroller-factor-lg"), d = b ? b : c.factorLg; return d ? d : e; } if (1920 >= b) { let b = a.data("paroller-factor-xl"), d = b ? b : c.factorXl; return d ? d : e; } return e; }, bgOffset: function (a, c) { return b(a * c); }, transform: function (a, c, d, e) { return b((a - d / 2 + e) * c); }, }, g = { background: function (a) { return a.css({ "background-position": "unset" }); }, foreground: function (a) { return a.css({ transform: "unset", transition: "unset" }); }, }; a.fn.paroller = function (h) { const i = a(window).height(), j = a(document).height(); // default options return ( (h = a.extend( { factor: 0, // - to + factorXs: 0, // - to + factorSm: 0, // - to + factorMd: 0, // - to + factorLg: 0, // - to + factorXl: 0, // - to + transition: "transform .1s ease", // CSS transition type: "background", // foreground direction: "vertical", // horizontal }, h )), this.each(function () { const k = a(this); let l = k.outerHeight(), m = a(window).width(), n = k.offset().top, o = 0, p = function (a, b) { // console.log(`offset ${scrollOffset} => ${transform - scrollOffset}`) return a || (o = b), b - o; }; const q = k.data("paroller-type"), r = k.data("paroller-direction"), s = k.data("paroller-transition"), t = k.css("transform"), u = s ? s : h.transition, v = q ? q : h.type, w = r ? r : h.direction; let x = 0, y = f.bgOffset(n, x), z = f.transform(n, x, i, l); "background" === v ? "vertical" === w ? e.bgVertical(k, y) : "horizontal" === w && e.bgHorizontal(k, y) : "foreground" === v && ("vertical" === w ? e.vertical(k, z, u, t) : "horizontal" === w && e.horizontal(k, z, u, t)), a(window).on("resize", function () { let o = a(this).scrollTop(); (m = a(window).width()), (n = k.offset().top), (l = k.outerHeight()), (x = f.factor(k, m, h)), (y = b(n * x)); let q = p(a(document).scrollTop(), b((n - i / 2 + l) * x)); c || (window.requestAnimationFrame(d), (c = !0)), "background" === v ? (g.background(k), "vertical" === w ? e.bgVertical(k, y) : "horizontal" === w && e.bgHorizontal(k, y)) : "foreground" === v && o <= j && (g.foreground(k), "vertical" === w ? e.vertical(k, q, u) : "horizontal" === w && e.horizontal(k, q, u)); }), a(window).on("load scroll", function () { let g = a(this).scrollTop(), o = a(document).scrollTop(); x = f.factor(k, m, h); let q = p(o, b((n - i / 2 + l - g) * x)); c || (window.requestAnimationFrame(d), (c = !0)), "background" === v ? "vertical" === w ? e.bgVertical(k, y) : "horizontal" === w && e.bgHorizontal(k, y) : "foreground" === v && g <= j && ("vertical" === w ? e.vertical(k, q, u, t) : "horizontal" === w && e.horizontal(k, q, u, t)); }); }) ); }; }); (window.Modernizr = (function (e, t, n) { function r(e) { b.cssText = e; } function o(e, t) { return r(S.join(e + ";") + (t || "")); } function i(e, t) { return typeof e === t; } function a(e, t) { return !!~("" + e).indexOf(t); } function c(e, t) { for (var r in e) { var o = e[r]; if (!a(o, "-") && b[o] !== n) return "pfx" != t || o; } return !1; } function s(e, t, r) { for (var o in e) { var a = t[e[o]]; if (a !== n) return r === !1 ? e[o] : i(a, "function") ? a.bind(r || t) : a; } return !1; } function l(e, t, n) { var r = e.charAt(0).toUpperCase() + e.slice(1), o = (e + " " + k.join(r + " ") + r).split(" "); return i(t, "string") || i(t, "undefined") ? c(o, t) : ((o = (e + " " + T.join(r + " ") + r).split(" ")), s(o, t, n)); } function u() { (m.input = (function (n) { for (var r = 0, o = n.length; r < o; r++) P[n[r]] = n[r] in E; return ( P.list && (P.list = !!t.createElement("datalist") && !!e.HTMLDataListElement), P ); })( "autocomplete autofocus list placeholder max min multiple pattern required step".split( " " ) )), (m.inputtypes = (function (e) { for (var r, o, i, a = 0, c = e.length; a < c; a++) E.setAttribute("type", (o = e[a])), (r = "text" !== E.type), r && ((E.value = w), (E.style.cssText = "position:absolute;visibility:hidden;"), /^range$/.test(o) && E.style.WebkitAppearance !== n ? (g.appendChild(E), (i = t.defaultView), (r = i.getComputedStyle && "textfield" !== i.getComputedStyle(E, null).WebkitAppearance && 0 !== E.offsetHeight), g.removeChild(E)) : /^(search|tel)$/.test(o) || (r = /^(url|email)$/.test(o) ? E.checkValidity && E.checkValidity() === !1 : E.value != w)), (M[e[a]] = !!r); return M; })( "search tel url email datetime date month week time datetime-local number range color".split( " " ) )); } var f, d, p = "2.6.2", m = {}, h = !0, g = t.documentElement, v = "modernizr", y = t.createElement(v), b = y.style, E = t.createElement("input"), w = ":)", x = {}.toString, S = " -webkit- -moz- -o- -ms- ".split(" "), C = "Webkit Moz O ms", k = C.split(" "), T = C.toLowerCase().split(" "), j = { svg: "http://www.w3.org/2000/svg" }, N = {}, M = {}, P = {}, A = [], L = A.slice, $ = function (e, n, r, o) { var i, a, c, s, l = t.createElement("div"), u = t.body, f = u || t.createElement("body"); if (parseInt(r, 10)) for (; r--; ) (c = t.createElement("div")), (c.id = o ? o[r] : v + (r + 1)), l.appendChild(c); return ( (i = ["­", '"].join("")), (l.id = v), ((u ? l : f).innerHTML += i), f.appendChild(l), u || ((f.style.background = ""), (f.style.overflow = "hidden"), (s = g.style.overflow), (g.style.overflow = "hidden"), g.appendChild(f)), (a = n(l, e)), u ? l.parentNode.removeChild(l) : (f.parentNode.removeChild(f), (g.style.overflow = s)), !!a ); }, z = function (t) { var n = e.matchMedia || e.msMatchMedia; if (n) return n(t).matches; var r; return ( $( "@media " + t + " { #" + v + " { position: absolute; } }", function (t) { r = "absolute" == (e.getComputedStyle ? getComputedStyle(t, null) : t.currentStyle) .position; } ), r ); }, D = (function () { function e(e, o) { (o = o || t.createElement(r[e] || "div")), (e = "on" + e); var a = e in o; return ( a || (o.setAttribute || (o = t.createElement("div")), o.setAttribute && o.removeAttribute && (o.setAttribute(e, ""), (a = i(o[e], "function")), i(o[e], "undefined") || (o[e] = n), o.removeAttribute(e))), (o = null), a ); } var r = { select: "input", change: "input", submit: "form", reset: "form", error: "img", load: "img", abort: "img", }; return e; })(), F = {}.hasOwnProperty; (d = i(F, "undefined") || i(F.call, "undefined") ? function (e, t) { return t in e && i(e.constructor.prototype[t], "undefined"); } : function (e, t) { return F.call(e, t); }), Function.prototype.bind || (Function.prototype.bind = function (e) { var t = this; if ("function" != typeof t) throw new TypeError(); var n = L.call(arguments, 1), r = function () { if (this instanceof r) { var o = function () {}; o.prototype = t.prototype; var i = new o(), a = t.apply(i, n.concat(L.call(arguments))); return Object(a) === a ? a : i; } return t.apply(e, n.concat(L.call(arguments))); }; return r; }), (N.flexbox = function () { return l("flexWrap"); }), (N.canvas = function () { var e = t.createElement("canvas"); return !!e.getContext && !!e.getContext("2d"); }), (N.canvastext = function () { return ( !!m.canvas && !!i(t.createElement("canvas").getContext("2d").fillText, "function") ); }), (N.webgl = function () { return !!e.WebGLRenderingContext; }), (N.touch = function () { var n; return ( "ontouchstart" in e || (e.DocumentTouch && t instanceof DocumentTouch) ? (n = !0) : $( [ "@media (", S.join("touch-enabled),("), v, ")", "{#modernizr{top:9px;position:absolute}}", ].join(""), function (e) { n = 9 === e.offsetTop; } ), n ); }), (N.geolocation = function () { return "geolocation" in navigator; }), (N.postmessage = function () { return !!e.postMessage; }), (N.websqldatabase = function () { return !!e.openDatabase; }), (N.indexedDB = function () { return !!l("indexedDB", e); }), (N.hashchange = function () { return D("hashchange", e) && (t.documentMode === n || t.documentMode > 7); }), (N.history = function () { return !!e.history && !!history.pushState; }), (N.draganddrop = function () { var e = t.createElement("div"); return "draggable" in e || ("ondragstart" in e && "ondrop" in e); }), (N.websockets = function () { return "WebSocket" in e || "MozWebSocket" in e; }), (N.rgba = function () { return ( r("background-color:rgba(150,255,150,.5)"), a(b.backgroundColor, "rgba") ); }), (N.hsla = function () { return ( r("background-color:hsla(120,40%,100%,.5)"), a(b.backgroundColor, "rgba") || a(b.backgroundColor, "hsla") ); }), (N.multiplebgs = function () { return ( r("background:url(https://),url(https://),red url(https://)"), /(url\s*\(.*?){3}/.test(b.background) ); }), (N.backgroundsize = function () { return l("backgroundSize"); }), (N.borderimage = function () { return l("borderImage"); }), (N.borderradius = function () { return l("borderRadius"); }), (N.boxshadow = function () { return l("boxShadow"); }), (N.textshadow = function () { return "" === t.createElement("div").style.textShadow; }), (N.opacity = function () { return o("opacity:.55"), /^0.55$/.test(b.opacity); }), (N.cssanimations = function () { return l("animationName"); }), (N.csscolumns = function () { return l("columnCount"); }), (N.cssgradients = function () { var e = "background-image:", t = "gradient(linear,left top,right bottom,from(#9f9),to(white));", n = "linear-gradient(left top,#9f9, white);"; return ( r( (e + "-webkit- ".split(" ").join(t + e) + S.join(n + e)).slice( 0, -e.length ) ), a(b.backgroundImage, "gradient") ); }), (N.cssreflections = function () { return l("boxReflect"); }), (N.csstransforms = function () { return !!l("transform"); }), (N.csstransforms3d = function () { var e = !!l("perspective"); return ( e && "webkitPerspective" in g.style && $( "@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}", function (t, n) { e = 9 === t.offsetLeft && 3 === t.offsetHeight; } ), e ); }), (N.csstransitions = function () { return l("transition"); }), (N.fontface = function () { var e; return ( $( '@font-face {font-family:"font";src:url("https://")}', function (n, r) { var o = t.getElementById("smodernizr"), i = o.sheet || o.styleSheet, a = i ? i.cssRules && i.cssRules[0] ? i.cssRules[0].cssText : i.cssText || "" : ""; e = /src/i.test(a) && 0 === a.indexOf(r.split(" ")[0]); } ), e ); }), (N.generatedcontent = function () { var e; return ( $( [ "#", v, "{font:0/0 a}#", v, ':after{content:"', w, '";visibility:hidden;font:3px/1 a}', ].join(""), function (t) { e = t.offsetHeight >= 3; } ), e ); }), (N.video = function () { var e = t.createElement("video"), n = !1; try { (n = !!e.canPlayType) && ((n = new Boolean(n)), (n.ogg = e .canPlayType('video/ogg; codecs="theora"') .replace(/^no$/, "")), (n.h264 = e .canPlayType('video/mp4; codecs="avc1.42E01E"') .replace(/^no$/, "")), (n.webm = e .canPlayType('video/webm; codecs="vp8, vorbis"') .replace(/^no$/, ""))); } catch (r) {} return n; }), (N.audio = function () { var e = t.createElement("audio"), n = !1; try { (n = !!e.canPlayType) && ((n = new Boolean(n)), (n.ogg = e .canPlayType('audio/ogg; codecs="vorbis"') .replace(/^no$/, "")), (n.mp3 = e.canPlayType("audio/mpeg;").replace(/^no$/, "")), (n.wav = e.canPlayType('audio/wav; codecs="1"').replace(/^no$/, "")), (n.m4a = ( e.canPlayType("audio/x-m4a;") || e.canPlayType("audio/aac;") ).replace(/^no$/, ""))); } catch (r) {} return n; }), (N.localstorage = function () { try { return localStorage.setItem(v, v), localStorage.removeItem(v), !0; } catch (e) { return !1; } }), (N.sessionstorage = function () { try { return sessionStorage.setItem(v, v), sessionStorage.removeItem(v), !0; } catch (e) { return !1; } }), (N.webworkers = function () { return !!e.Worker; }), (N.applicationcache = function () { return !!e.applicationCache; }), (N.svg = function () { return ( !!t.createElementNS && !!t.createElementNS(j.svg, "svg").createSVGRect ); }), (N.inlinesvg = function () { var e = t.createElement("div"); return ( (e.innerHTML = ""), (e.firstChild && e.firstChild.namespaceURI) == j.svg ); }), (N.smil = function () { return ( !!t.createElementNS && /SVGAnimate/.test(x.call(t.createElementNS(j.svg, "animate"))) ); }), (N.svgclippaths = function () { return ( !!t.createElementNS && /SVGClipPath/.test(x.call(t.createElementNS(j.svg, "clipPath"))) ); }); for (var O in N) d(N, O) && ((f = O.toLowerCase()), (m[f] = N[O]()), A.push((m[f] ? "" : "no-") + f)); return ( m.input || u(), (m.addTest = function (e, t) { if ("object" == typeof e) for (var r in e) d(e, r) && m.addTest(r, e[r]); else { if (((e = e.toLowerCase()), m[e] !== n)) return m; (t = "function" == typeof t ? t() : t), "undefined" != typeof h && h && (g.className += " " + (t ? "" : "no-") + e), (m[e] = t); } return m; }), r(""), (y = E = null), (function (e, t) { function n(e, t) { var n = e.createElement("p"), r = e.getElementsByTagName("head")[0] || e.documentElement; return ( (n.innerHTML = "x"), r.insertBefore(n.lastChild, r.firstChild) ); } function r() { var e = v.elements; return "string" == typeof e ? e.split(" ") : e; } function o(e) { var t = g[e[m]]; return t || ((t = {}), h++, (e[m] = h), (g[h] = t)), t; } function i(e, n, r) { if ((n || (n = t), u)) return n.createElement(e); r || (r = o(n)); var i; return ( (i = r.cache[e] ? r.cache[e].cloneNode() : p.test(e) ? (r.cache[e] = r.createElem(e)).cloneNode() : r.createElem(e)), i.canHaveChildren && !d.test(e) ? r.frag.appendChild(i) : i ); } function a(e, n) { if ((e || (e = t), u)) return e.createDocumentFragment(); n = n || o(e); for ( var i = n.frag.cloneNode(), a = 0, c = r(), s = c.length; a < s; a++ ) i.createElement(c[a]); return i; } function c(e, t) { t.cache || ((t.cache = {}), (t.createElem = e.createElement), (t.createFrag = e.createDocumentFragment), (t.frag = t.createFrag())), (e.createElement = function (n) { return v.shivMethods ? i(n, e, t) : t.createElem(n); }), (e.createDocumentFragment = Function( "h,f", "return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&(" + r() .join() .replace(/\w+/g, function (e) { return ( t.createElem(e), t.frag.createElement(e), 'c("' + e + '")' ); }) + ");return n}" )(v, t.frag)); } function s(e) { e || (e = t); var r = o(e); return ( v.shivCSS && !l && !r.hasCSS && (r.hasCSS = !!n( e, "article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}" )), u || c(e, r), e ); } var l, u, f = e.html5 || {}, d = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i, p = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i, m = "_html5shiv", h = 0, g = {}; !(function () { try { var e = t.createElement("a"); (e.innerHTML = ""), (l = "hidden" in e), (u = 1 == e.childNodes.length || (function () { t.createElement("a"); var e = t.createDocumentFragment(); return ( "undefined" == typeof e.cloneNode || "undefined" == typeof e.createDocumentFragment || "undefined" == typeof e.createElement ); })()); } catch (n) { (l = !0), (u = !0); } })(); var v = { elements: f.elements || "abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video", shivCSS: f.shivCSS !== !1, supportsUnknownElements: u, shivMethods: f.shivMethods !== !1, type: "default", shivDocument: s, createElement: i, createDocumentFragment: a, }; (e.html5 = v), s(t); })(this, t), (m._version = p), (m._prefixes = S), (m._domPrefixes = T), (m._cssomPrefixes = k), (m.mq = z), (m.hasEvent = D), (m.testProp = function (e) { return c([e]); }), (m.testAllProps = l), (m.testStyles = $), (m.prefixed = function (e, t, n) { return t ? l(e, t, n) : l(e, "pfx"); }), (g.className = g.className.replace(/(^|\s)no-js(\s|$)/, "$1$2") + (h ? " js " + A.join(" ") : "")), m ); })(this, this.document)), (function (e, t, n) { function r(e) { return "[object Function]" == g.call(e); } function o(e) { return "string" == typeof e; } function i() {} function a(e) { return !e || "loaded" == e || "complete" == e || "uninitialized" == e; } function c() { var e = v.shift(); (y = 1), e ? e.t ? m(function () { ("c" == e.t ? d.injectCss : d.injectJs)(e.s, 0, e.a, e.x, e.e, 1); }, 0) : (e(), c()) : (y = 0); } function s(e, n, r, o, i, s, l) { function u(t) { if ( !p && a(f.readyState) && ((b.r = p = 1), !y && c(), (f.onload = f.onreadystatechange = null), t) ) { "img" != e && m(function () { w.removeChild(f); }, 50); for (var r in T[n]) T[n].hasOwnProperty(r) && T[n][r].onload(); } } var l = l || d.errorTimeout, f = t.createElement(e), p = 0, g = 0, b = { t: r, s: n, e: i, a: s, x: l }; 1 === T[n] && ((g = 1), (T[n] = [])), "object" == e ? (f.data = n) : ((f.src = n), (f.type = e)), (f.width = f.height = "0"), (f.onerror = f.onload = f.onreadystatechange = function () { u.call(this, g); }), v.splice(o, 0, b), "img" != e && (g || 2 === T[n] ? (w.insertBefore(f, E ? null : h), m(u, l)) : T[n].push(f)); } function l(e, t, n, r, i) { return ( (y = 0), (t = t || "j"), o(e) ? s("c" == t ? S : x, e, t, this.i++, n, r, i) : (v.splice(this.i++, 0, e), 1 == v.length && c()), this ); } function u() { var e = d; return (e.loader = { load: l, i: 0 }), e; } var f, d, p = t.documentElement, m = e.setTimeout, h = t.getElementsByTagName("script")[0], g = {}.toString, v = [], y = 0, b = "MozAppearance" in p.style, E = b && !!t.createRange().compareNode, w = E ? p : h.parentNode, p = e.opera && "[object Opera]" == g.call(e.opera), p = !!t.attachEvent && !p, x = b ? "object" : p ? "script" : "img", S = p ? "script" : x, C = Array.isArray || function (e) { return "[object Array]" == g.call(e); }, k = [], T = {}, j = { timeout: function (e, t) { return t.length && (e.timeout = t[0]), e; }, }; (d = function (e) { function t(e) { var t, n, r, e = e.split("!"), o = k.length, i = e.pop(), a = e.length, i = { url: i, origUrl: i, prefixes: e }; for (n = 0; n < a; n++) (r = e[n].split("=")), (t = j[r.shift()]) && (i = t(i, r)); for (n = 0; n < o; n++) i = k[n](i); return i; } function a(e, o, i, a, c) { var s = t(e), l = s.autoCallback; s.url.split(".").pop().split("?").shift(), s.bypass || (o && (o = r(o) ? o : o[e] || o[a] || o[e.split("/").pop().split("?")[0]]), s.instead ? s.instead(e, o, i, a, c) : (T[s.url] ? (s.noexec = !0) : (T[s.url] = 1), i.load( s.url, s.forceCSS || (!s.forceJS && "css" == s.url.split(".").pop().split("?").shift()) ? "c" : n, s.noexec, s.attrs, s.timeout ), (r(o) || r(l)) && i.load(function () { u(), o && o(s.origUrl, c, a), l && l(s.origUrl, c, a), (T[s.url] = 2); }))); } function c(e, t) { function n(e, n) { if (e) { if (o(e)) n || (f = function () { var e = [].slice.call(arguments); d.apply(this, e), p(); }), a(e, f, t, 0, l); else if (Object(e) === e) for (s in ((c = (function () { var t, n = 0; for (t in e) e.hasOwnProperty(t) && n++; return n; })()), e)) e.hasOwnProperty(s) && (!n && !--c && (r(f) ? (f = function () { var e = [].slice.call(arguments); d.apply(this, e), p(); }) : (f[s] = (function (e) { return function () { var t = [].slice.call(arguments); e && e.apply(this, t), p(); }; })(d[s]))), a(e[s], f, t, s, l)); } else !n && p(); } var c, s, l = !!e.test, u = e.load || e.both, f = e.callback || i, d = f, p = e.complete || i; n(l ? e.yep : e.nope, !!u), u && n(u); } var s, l, f = this.yepnope.loader; if (o(e)) a(e, 0, f, 0); else if (C(e)) for (s = 0; s < e.length; s++) (l = e[s]), o(l) ? a(l, 0, f, 0) : C(l) ? d(l) : Object(l) === l && c(l, f); else Object(e) === e && c(e, f); }), (d.addPrefix = function (e, t) { j[e] = t; }), (d.addFilter = function (e) { k.push(e); }), (d.errorTimeout = 1e4), null == t.readyState && t.addEventListener && ((t.readyState = "loading"), t.addEventListener( "DOMContentLoaded", (f = function () { t.removeEventListener("DOMContentLoaded", f, 0), (t.readyState = "complete"); }), 0 )), (e.yepnope = u()), (e.yepnope.executeStack = c), (e.yepnope.injectJs = function (e, n, r, o, s, l) { var u, f, p = t.createElement("script"), o = o || d.errorTimeout; p.src = e; for (f in r) p.setAttribute(f, r[f]); (n = l ? c : n || i), (p.onreadystatechange = p.onload = function () { !u && a(p.readyState) && ((u = 1), n(), (p.onload = p.onreadystatechange = null)); }), m(function () { u || ((u = 1), n(1)); }, o), s ? p.onload() : h.parentNode.insertBefore(p, h); }), (e.yepnope.injectCss = function (e, n, r, o, a, s) { var l, o = t.createElement("link"), n = s ? c : n || i; (o.href = e), (o.rel = "stylesheet"), (o.type = "text/css"); for (l in r) o.setAttribute(l, r[l]); a || (h.parentNode.insertBefore(o, h), m(n, 0)); }); })(this, document), (Modernizr.load = function () { yepnope.apply(window, [].slice.call(arguments, 0)); }); (function () { window.mc4wp = window.mc4wp || { listeners: [], forms: { on: function (evt, cb) { window.mc4wp.listeners.push({ event: evt, callback: cb }); }, }, }; })(); (function () { function maybePrefixUrlField() { const value = this.value.trim(); if (value !== "" && value.indexOf("http") !== 0) { this.value = "http://" + value; } } const urlFields = document.querySelectorAll('.mc4wp-form input[type="url"]'); for (let j = 0; j < urlFields.length; j++) { urlFields[j].addEventListener("blur", maybePrefixUrlField); } })(); const lazyloadRunObserver = () => { const lazyloadBackgrounds = document.querySelectorAll( `.e-con.e-parent:not(.e-lazyloaded)` ); const lazyloadBackgroundObserver = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { let lazyloadBackground = entry.target; if (lazyloadBackground) { lazyloadBackground.classList.add("e-lazyloaded"); } lazyloadBackgroundObserver.unobserve(entry.target); } }); }, { rootMargin: "200px 0px 200px 0px" } ); lazyloadBackgrounds.forEach((lazyloadBackground) => { lazyloadBackgroundObserver.observe(lazyloadBackground); }); }; const events = ["DOMContentLoaded", "elementor/lazyload/observe"]; events.forEach((event) => { document.addEventListener(event, lazyloadRunObserver); }); (function () { var c = document.body.className; c = c.replace(/woocommerce-no-js/, "woocommerce-js"); document.body.className = c; })(); wp.i18n.setLocaleData({ "text direction\u0004ltr": ["ltr"] }); (() => { "use strict"; var t = { d: (e, i) => { for (var s in i) t.o(i, s) && !t.o(e, s) && Object.defineProperty(e, s, { enumerable: !0, get: i[s] }); }, o: (t, e) => Object.prototype.hasOwnProperty.call(t, e), r: (t) => { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }); }, }, e = {}; function i(t) { if (((this.formData = {}), (this.tree = {}), !(t instanceof FormData))) return this; this.formData = t; const e = () => { const t = new Map(); return ( (t.largestIndex = 0), (t.set = function (e, i) { "" === e ? (e = t.largestIndex++) : /^[0-9]+$/.test(e) && ((e = parseInt(e)), t.largestIndex <= e && (t.largestIndex = e + 1)), Map.prototype.set.call(t, e, i); }), t ); }; this.tree = e(); const i = /^(?[a-z][-a-z0-9_:]*)(?(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i; for (const [t, s] of this.formData) { const o = t.match(i); if (o) if ("" === o.groups.array) this.tree.set(o.groups.name, s); else { const t = [ ...o.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi), ].map(([t, e]) => e); t.unshift(o.groups.name); const i = t.pop(); t.reduce((t, i) => { if ( (/^[0-9]+$/.test(i) && (i = parseInt(i)), t.get(i) instanceof Map) ) return t.get(i); const s = e(); return t.set(i, s), s; }, this.tree).set(i, s); } } } t.r(e), t.d(e, { all: () => D, any: () => M, date: () => m, dayofweek: () => u, email: () => r, enum: () => h, file: () => d, maxdate: () => z, maxfilesize: () => j, maxitems: () => v, maxlength: () => x, maxnumber: () => y, mindate: () => A, minfilesize: () => $, minitems: () => w, minlength: () => g, minnumber: () => b, number: () => c, required: () => n, requiredfile: () => a, stepnumber: () => I, tel: () => l, time: () => f, url: () => p, }), (i.prototype.entries = function () { return this.tree.entries(); }), (i.prototype.get = function (t) { return this.tree.get(t); }), (i.prototype.getAll = function (t) { if (!this.has(t)) return []; const e = (t) => { const i = []; if (t instanceof Map) for (const [s, o] of t) i.push(...e(o)); else "" !== t && i.push(t); return i; }; return e(this.get(t)); }), (i.prototype.has = function (t) { return this.tree.has(t); }), (i.prototype.keys = function () { return this.tree.keys(); }), (i.prototype.values = function () { return this.tree.values(); }); const s = i; function o({ rule: t, field: e, error: i, ...s }) { (this.rule = t), (this.field = e), (this.error = i), (this.properties = s); } const n = function (t) { if ( 0 === t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t).length ) throw new o(this); }, a = function (t) { if (0 === t.getAll(this.field).length) throw new o(this); }, r = function (t) { if ( !t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t) .every((t) => { if (t.length < 6) return !1; if (-1 === t.indexOf("@", 1)) return !1; if (t.indexOf("@") !== t.lastIndexOf("@")) return !1; const [e, i] = t.split("@", 2); if (!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e)) return !1; if (/\.{2,}/.test(i)) return !1; if (/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(i)) return !1; const s = i.split("."); if (s.length < 2) return !1; for (const t of s) { if (/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t)) return !1; if (!/^[a-z0-9-]+$/i.test(t)) return !1; } return !0; }) ) throw new o(this); }, p = function (t) { const e = t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t); if ( !e.every((t) => { try { return ((t) => -1 !== [ "http", "https", "ftp", "ftps", "mailto", "news", "irc", "irc6", "ircs", "gopher", "nntp", "feed", "telnet", "mms", "rtsp", "sms", "svn", "tel", "fax", "xmpp", "webcal", "urn", ].indexOf(t))(new URL(t).protocol.replace(/:$/, "")); } catch { return !1; } }) ) throw new o(this); }, l = function (t) { if ( !t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t) .every( (t) => ( ((t = (t = t.replace(/[#*].*$/, "")).replaceAll( /[()/.*#\s-]+/g, "" )).startsWith("+") || t.startsWith("00")) && (t = `+${t.replace(/^[+0]+/, "")}`), !!/^[+]?[0-9]+$/.test(t) && 5 < t.length && t.length < 16 ) ) ) throw new o(this); }, c = function (t) { if ( !t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t) .every( (t) => !!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t) || !!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t) ) ) throw new o(this); }, m = function (t) { if ( !t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t) .every((t) => { if (!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)) return !1; const e = new Date(t); return !Number.isNaN(e.valueOf()); }) ) throw new o(this); }, f = function (t) { if ( !t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t) .every((t) => { const e = t.match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/); if (!e) return !1; const i = parseInt(e[1]), s = parseInt(e[2]), o = e[3] ? parseInt(e[3]) : 0; return 0 <= i && i <= 23 && 0 <= s && s <= 59 && 0 <= o && o <= 59; }) ) throw new o(this); }, d = function (t) { if ( !t.getAll(this.field).every( (t) => t instanceof File && this.accept?.some((e) => /^\.[a-z0-9]+$/i.test(e) ? t.name.toLowerCase().endsWith(e.toLowerCase()) : ((t) => { const e = [], i = t.match( /^(?[a-z]+)\/(?[*]|[a-z0-9.+-]+)$/i ); if (i) { const t = i.groups.toplevel.toLowerCase(), s = i.groups.sub.toLowerCase(); for (const [o, n] of (() => { const t = new Map(); return ( t.set("jpg|jpeg|jpe", "image/jpeg"), t.set("gif", "image/gif"), t.set("png", "image/png"), t.set("bmp", "image/bmp"), t.set("tiff|tif", "image/tiff"), t.set("webp", "image/webp"), t.set("ico", "image/x-icon"), t.set("heic", "image/heic"), t.set("asf|asx", "video/x-ms-asf"), t.set("wmv", "video/x-ms-wmv"), t.set("wmx", "video/x-ms-wmx"), t.set("wm", "video/x-ms-wm"), t.set("avi", "video/avi"), t.set("divx", "video/divx"), t.set("flv", "video/x-flv"), t.set("mov|qt", "video/quicktime"), t.set("mpeg|mpg|mpe", "video/mpeg"), t.set("mp4|m4v", "video/mp4"), t.set("ogv", "video/ogg"), t.set("webm", "video/webm"), t.set("mkv", "video/x-matroska"), t.set("3gp|3gpp", "video/3gpp"), t.set("3g2|3gp2", "video/3gpp2"), t.set("txt|asc|c|cc|h|srt", "text/plain"), t.set("csv", "text/csv"), t.set("tsv", "text/tab-separated-values"), t.set("ics", "text/calendar"), t.set("rtx", "text/richtext"), t.set("css", "text/css"), t.set("htm|html", "text/html"), t.set("vtt", "text/vtt"), t.set("dfxp", "application/ttaf+xml"), t.set("mp3|m4a|m4b", "audio/mpeg"), t.set("aac", "audio/aac"), t.set("ra|ram", "audio/x-realaudio"), t.set("wav", "audio/wav"), t.set("ogg|oga", "audio/ogg"), t.set("flac", "audio/flac"), t.set("mid|midi", "audio/midi"), t.set("wma", "audio/x-ms-wma"), t.set("wax", "audio/x-ms-wax"), t.set("mka", "audio/x-matroska"), t.set("rtf", "application/rtf"), t.set("js", "application/javascript"), t.set("pdf", "application/pdf"), t.set("swf", "application/x-shockwave-flash"), t.set("class", "application/java"), t.set("tar", "application/x-tar"), t.set("zip", "application/zip"), t.set("gz|gzip", "application/x-gzip"), t.set("rar", "application/rar"), t.set("7z", "application/x-7z-compressed"), t.set("exe", "application/x-msdownload"), t.set("psd", "application/octet-stream"), t.set("xcf", "application/octet-stream"), t.set("doc", "application/msword"), t.set("pot|pps|ppt", "application/vnd.ms-powerpoint"), t.set("wri", "application/vnd.ms-write"), t.set("xla|xls|xlt|xlw", "application/vnd.ms-excel"), t.set("mdb", "application/vnd.ms-access"), t.set("mpp", "application/vnd.ms-project"), t.set( "docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ), t.set( "docm", "application/vnd.ms-word.document.macroEnabled.12" ), t.set( "dotx", "application/vnd.openxmlformats-officedocument.wordprocessingml.template" ), t.set( "dotm", "application/vnd.ms-word.template.macroEnabled.12" ), t.set( "xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ), t.set( "xlsm", "application/vnd.ms-excel.sheet.macroEnabled.12" ), t.set( "xlsb", "application/vnd.ms-excel.sheet.binary.macroEnabled.12" ), t.set( "xltx", "application/vnd.openxmlformats-officedocument.spreadsheetml.template" ), t.set( "xltm", "application/vnd.ms-excel.template.macroEnabled.12" ), t.set( "xlam", "application/vnd.ms-excel.addin.macroEnabled.12" ), t.set( "pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation" ), t.set( "pptm", "application/vnd.ms-powerpoint.presentation.macroEnabled.12" ), t.set( "ppsx", "application/vnd.openxmlformats-officedocument.presentationml.slideshow" ), t.set( "ppsm", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12" ), t.set( "potx", "application/vnd.openxmlformats-officedocument.presentationml.template" ), t.set( "potm", "application/vnd.ms-powerpoint.template.macroEnabled.12" ), t.set( "ppam", "application/vnd.ms-powerpoint.addin.macroEnabled.12" ), t.set( "sldx", "application/vnd.openxmlformats-officedocument.presentationml.slide" ), t.set( "sldm", "application/vnd.ms-powerpoint.slide.macroEnabled.12" ), t.set( "onetoc|onetoc2|onetmp|onepkg", "application/onenote" ), t.set("oxps", "application/oxps"), t.set("xps", "application/vnd.ms-xpsdocument"), t.set( "odt", "application/vnd.oasis.opendocument.text" ), t.set( "odp", "application/vnd.oasis.opendocument.presentation" ), t.set( "ods", "application/vnd.oasis.opendocument.spreadsheet" ), t.set( "odg", "application/vnd.oasis.opendocument.graphics" ), t.set( "odc", "application/vnd.oasis.opendocument.chart" ), t.set( "odb", "application/vnd.oasis.opendocument.database" ), t.set( "odf", "application/vnd.oasis.opendocument.formula" ), t.set("wp|wpd", "application/wordperfect"), t.set("key", "application/vnd.apple.keynote"), t.set("numbers", "application/vnd.apple.numbers"), t.set("pages", "application/vnd.apple.pages"), t ); })()) (("*" === s && n.startsWith(t + "/")) || n === i[0]) && e.push(...o.split("|")); } return e; })(e).some( (e) => ( (e = "." + e.trim()), t.name.toLowerCase().endsWith(e.toLowerCase()) ) ) ) ) ) throw new o(this); }, h = function (t) { if ( !t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t) .every((t) => this.accept?.some((e) => t === String(e))) ) throw new o(this); }, u = function (t) { if ( !t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t) .every((t) => { const e = 0 === (i = new Date(t).getDay()) ? 7 : i; var i; return this.accept?.some((t) => e === parseInt(t)); }) ) throw new o(this); }, w = function (t) { if ( t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t).length < parseInt(this.threshold) ) throw new o(this); }, v = function (t) { const e = t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t); if (parseInt(this.threshold) < e.length) throw new o(this); }, g = function (t) { const e = t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t); let i = 0; if ( (e.forEach((t) => { "string" == typeof t && (i += t.length); }), 0 !== i && i < parseInt(this.threshold)) ) throw new o(this); }, x = function (t) { const e = t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t); let i = 0; if ( (e.forEach((t) => { "string" == typeof t && (i += t.length); }), parseInt(this.threshold) < i) ) throw new o(this); }, b = function (t) { if ( !t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t) .every((t) => !(parseFloat(t) < parseFloat(this.threshold))) ) throw new o(this); }, y = function (t) { if ( !t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t) .every((t) => !(parseFloat(this.threshold) < parseFloat(t))) ) throw new o(this); }, A = function (t) { if ( !t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t) .every( (t) => !( /^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t) && /^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold) && t < this.threshold ) ) ) throw new o(this); }, z = function (t) { if ( !t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t) .every( (t) => !( /^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t) && /^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold) && this.threshold < t ) ) ) throw new o(this); }, $ = function (t) { const e = t.getAll(this.field); let i = 0; if ( (e.forEach((t) => { t instanceof File && (i += t.size); }), i < parseInt(this.threshold)) ) throw new o(this); }, j = function (t) { const e = t.getAll(this.field); let i = 0; if ( (e.forEach((t) => { t instanceof File && (i += t.size); }), parseInt(this.threshold) < i) ) throw new o(this); }, I = function (t) { const e = t .getAll(this.field) .map((t) => t.trim()) .filter((t) => "" !== t), i = parseFloat(this.base), s = parseFloat(this.interval); if (!(0 < s)) return !0; if ( !e.every((t) => { const e = (parseFloat(t) - i) % s; return ( "0.000000" === Math.abs(e).toFixed(6) || "0.000000" === Math.abs(e - s).toFixed(6) ); }) ) throw new o(this); }, O = ({ ruleObj: t, options: i }) => { const { rule: s, ...o } = t; return ( "function" == typeof e[s] && ("function" != typeof e[s].matches || e[s].matches(o, i)) ); }, E = ({ ruleObj: t, formDataTree: i, options: s }) => { const { rule: o } = t; e[o].call(t, i, s); }, k = [], F = (t) => [...k].reduce((t, e) => (i) => e(i, t), t), D = function (t, e = {}) { const i = (this.rules ?? []).filter((t) => O({ ruleObj: t, options: e })), s = F(E); if ( !i.every((i) => { try { s({ ruleObj: i, formDataTree: t, options: e }); } catch (t) { if (!(t instanceof o)) throw t; if (void 0 !== t.error) throw t; return !1; } return !0; }) ) throw new o(this); }, M = function (t, e = {}) { const i = (this.rules ?? []).filter((t) => O({ ruleObj: t, options: e })), s = F(E); if ( !i.some((i) => { try { s({ ruleObj: i, formDataTree: t, options: e }); } catch (t) { if (!(t instanceof o)) throw t; return !1; } return !0; }) ) throw new o(this); }; var L; window.swv = { validators: e, validate: (t, e, i = {}) => { const n = (t.rules ?? []).filter((t) => O({ ruleObj: t, options: i })); if (!n.length) return new Map(); const a = F(E), r = new s(e), p = n.reduce((t, e) => { try { a({ ruleObj: e, formDataTree: r, options: i }); } catch (e) { if (!(e instanceof o)) throw e; if (void 0 !== e.field && !t.has(e.field) && void 0 !== e.error) return t.set(e.field, e); } return t; }, new Map()); for (const t of r.keys()) p.has(t) || p.set(t, { validInputs: r.getAll(t) }); return p; }, use: (t) => { k.push(t); }, ...(null !== (L = window.swv) && void 0 !== L ? L : {}), }; })(); var wpcf7 = { api: { root: "https://gomoto.like-themes.com/wp-json/", namespace: "contact-form-7/v1", }, cached: 1, }; (() => { "use strict"; const e = window.wp.i18n, t = (e) => Math.abs(parseInt(e, 10)), a = (e, t, a) => { const n = new CustomEvent(`wpcf7${t}`, { bubbles: !0, detail: a }); "string" == typeof e && (e = document.querySelector(e)), e.dispatchEvent(n); }, n = (e, t) => { const n = new Map([ ["init", "init"], ["validation_failed", "invalid"], ["acceptance_missing", "unaccepted"], ["spam", "spam"], ["aborted", "aborted"], ["mail_sent", "sent"], ["mail_failed", "failed"], ["submitting", "submitting"], ["resetting", "resetting"], ["validating", "validating"], ["payment_required", "payment-required"], ]); n.has(t) && (t = n.get(t)), Array.from(n.values()).includes(t) || (t = `custom-${(t = (t = t .replace(/[^0-9a-z]+/i, " ") .trim()).replace(/\s+/, "-"))}`); const r = e.getAttribute("data-status"); if ( ((e.wpcf7.status = t), e.setAttribute("data-status", t), e.classList.add(t), r && r !== t) ) { e.classList.remove(r); const t = { contactFormId: e.wpcf7.id, pluginVersion: e.wpcf7.pluginVersion, contactFormLocale: e.wpcf7.locale, unitTag: e.wpcf7.unitTag, containerPostId: e.wpcf7.containerPost, status: e.wpcf7.status, prevStatus: r, }; a(e, "statuschanged", t); } return t; }, r = (e) => { const { root: t, namespace: a = "contact-form-7/v1" } = wpcf7.api; return c.reduceRight( (e, t) => (a) => t(a, e), (e) => { let n, r, { url: c, path: o, endpoint: s, headers: i, body: l, data: p, ...d } = e; "string" == typeof s && ((n = a.replace(/^\/|\/$/g, "")), (r = s.replace(/^\//, "")), (o = r ? n + "/" + r : n)), "string" == typeof o && (-1 !== t.indexOf("?") && (o = o.replace("?", "&")), (o = o.replace(/^\//, "")), (c = t + o)), (i = { Accept: "application/json, */*;q=0.1", ...i }), delete i["X-WP-Nonce"], p && ((l = JSON.stringify(p)), (i["Content-Type"] = "application/json")); const f = { code: "fetch_error", message: "You are probably offline.", }, u = { code: "invalid_json", message: "The response is not a valid JSON response.", }; return window .fetch(c || o || window.location.href, { ...d, headers: i, body: l, }) .then( (e) => Promise.resolve(e) .then((e) => { if (e.status >= 200 && e.status < 300) return e; throw e; }) .then((e) => { if (204 === e.status) return null; if (e && e.json) return e.json().catch(() => { throw u; }); throw u; }), () => { throw f; } ); } )(e); }, c = []; function o(e, t = {}) { const { target: a, scope: r = e, ...c } = t; if (void 0 === e.wpcf7?.schema) return; const o = { ...e.wpcf7.schema }; if (void 0 !== a) { if (!e.contains(a)) return; if (!a.closest(".wpcf7-form-control-wrap[data-name]")) return; if (a.closest(".novalidate")) return; } const p = r.querySelectorAll(".wpcf7-form-control-wrap"), d = Array.from(p).reduce( (e, t) => ( t.closest(".novalidate") || t .querySelectorAll(":where( input, textarea, select ):enabled") .forEach((t) => { if (t.name) switch (t.type) { case "button": case "image": case "reset": case "submit": break; case "checkbox": case "radio": t.checked && e.append(t.name, t.value); break; case "select-multiple": for (const a of t.selectedOptions) e.append(t.name, a.value); break; case "file": for (const a of t.files) e.append(t.name, a); break; default: e.append(t.name, t.value); } }), e ), new FormData() ), f = e.getAttribute("data-status"); Promise.resolve(n(e, "validating")) .then((n) => { if (void 0 !== swv) { const n = swv.validate(o, d, t); for (const t of p) { if (void 0 === t.dataset.name) continue; const c = t.dataset.name; if (n.has(c)) { const { error: t, validInputs: a } = n.get(c); i(e, c), void 0 !== t && s(e, c, t, { scope: r }), l(e, c, null != a ? a : []); } if (t.contains(a)) break; } } }) .finally(() => { n(e, f); }); } r.use = (e) => { c.unshift(e); }; const s = (e, t, a, n) => { const { scope: r = e, ...c } = null != n ? n : {}, o = `${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi, ""), s = e.querySelector( `.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control` ); (() => { const t = document.createElement("li"); t.setAttribute("id", o), s && s.id ? t.insertAdjacentHTML("beforeend", `${a}`) : t.insertAdjacentText("beforeend", a), e.wpcf7.parent .querySelector(".screen-reader-response ul") .appendChild(t); })(), r .querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`) .forEach((e) => { const t = document.createElement("span"); t.classList.add("wpcf7-not-valid-tip"), t.setAttribute("aria-hidden", "true"), t.insertAdjacentText("beforeend", a), e.appendChild(t), e.querySelectorAll("[aria-invalid]").forEach((e) => { e.setAttribute("aria-invalid", "true"); }), e.querySelectorAll(".wpcf7-form-control").forEach((e) => { e.classList.add("wpcf7-not-valid"), e.setAttribute("aria-describedby", o), "function" == typeof e.setCustomValidity && e.setCustomValidity(a), e.closest(".use-floating-validation-tip") && (e.addEventListener("focus", (e) => { t.setAttribute("style", "display: none"); }), t.addEventListener("click", (e) => { t.setAttribute("style", "display: none"); })); }); }); }, i = (e, t) => { const a = `${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi, ""); e.wpcf7.parent .querySelector(`.screen-reader-response ul li#${a}`) ?.remove(), e .querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`) .forEach((e) => { e.querySelector(".wpcf7-not-valid-tip")?.remove(), e.querySelectorAll("[aria-invalid]").forEach((e) => { e.setAttribute("aria-invalid", "false"); }), e.querySelectorAll(".wpcf7-form-control").forEach((e) => { e.removeAttribute("aria-describedby"), e.classList.remove("wpcf7-not-valid"), "function" == typeof e.setCustomValidity && e.setCustomValidity(""); }); }); }, l = (e, t, a) => { e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e) => { if ("output" === e.tagName.toLowerCase()) { const t = e; 0 === a.length && a.push(t.dataset.default), a.slice(0, 1).forEach((e) => { e instanceof File && (e = e.name), (t.textContent = e); }); } else e.querySelectorAll("output").forEach((e) => { e.hasAttribute("data-default") ? 0 === a.length ? e.removeAttribute("hidden") : e.setAttribute("hidden", "hidden") : e.remove(); }), a.forEach((a) => { a instanceof File && (a = a.name); const n = document.createElement("output"); n.setAttribute("name", t), (n.textContent = a), e.appendChild(n); }); }); }; function p(e, t = {}) { if (wpcf7.blocked) return d(e), void n(e, "submitting"); const c = new FormData(e); t.submitter && t.submitter.name && c.append(t.submitter.name, t.submitter.value); const o = { contactFormId: e.wpcf7.id, pluginVersion: e.wpcf7.pluginVersion, contactFormLocale: e.wpcf7.locale, unitTag: e.wpcf7.unitTag, containerPostId: e.wpcf7.containerPost, status: e.wpcf7.status, inputs: Array.from(c, (e) => { const t = e[0], a = e[1]; return !t.match(/^_/) && { name: t, value: a }; }).filter((e) => !1 !== e), formData: c, }; r({ endpoint: `contact-forms/${e.wpcf7.id}/feedback`, method: "POST", body: c, wpcf7: { endpoint: "feedback", form: e, detail: o }, }) .then((t) => { const r = n(e, t.status); return ( (o.status = t.status), (o.apiResponse = t), ["invalid", "unaccepted", "spam", "aborted"].includes(r) ? a(e, r, o) : ["sent", "failed"].includes(r) && a(e, `mail${r}`, o), a(e, "submit", o), t ); }) .then((t) => { t.posted_data_hash && (e.querySelector('input[name="_wpcf7_posted_data_hash"]').value = t.posted_data_hash), "mail_sent" === t.status && (e.reset(), (e.wpcf7.resetOnMailSent = !0)), t.invalid_fields && t.invalid_fields.forEach((t) => { s(e, t.field, t.message); }), e.wpcf7.parent .querySelector('.screen-reader-response [role="status"]') .insertAdjacentText("beforeend", t.message), e.querySelectorAll(".wpcf7-response-output").forEach((e) => { e.innerText = t.message; }); }) .catch((e) => console.error(e)); } r.use((e, t) => { if (e.wpcf7 && "feedback" === e.wpcf7.endpoint) { const { form: t, detail: r } = e.wpcf7; d(t), a(t, "beforesubmit", r), n(t, "submitting"); } return t(e); }); const d = (e) => { e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t) => { t.dataset.name && i(e, t.dataset.name); }), (e.wpcf7.parent.querySelector( '.screen-reader-response [role="status"]' ).innerText = ""), e.querySelectorAll(".wpcf7-response-output").forEach((e) => { e.innerText = ""; }); }; function f(e) { const t = new FormData(e), c = { contactFormId: e.wpcf7.id, pluginVersion: e.wpcf7.pluginVersion, contactFormLocale: e.wpcf7.locale, unitTag: e.wpcf7.unitTag, containerPostId: e.wpcf7.containerPost, status: e.wpcf7.status, inputs: Array.from(t, (e) => { const t = e[0], a = e[1]; return !t.match(/^_/) && { name: t, value: a }; }).filter((e) => !1 !== e), formData: t, }; r({ endpoint: `contact-forms/${e.wpcf7.id}/refill`, method: "GET", wpcf7: { endpoint: "refill", form: e, detail: c }, }) .then((t) => { e.wpcf7.resetOnMailSent ? (delete e.wpcf7.resetOnMailSent, n(e, "mail_sent")) : n(e, "init"), (c.apiResponse = t), a(e, "reset", c); }) .catch((e) => console.error(e)); } r.use((e, t) => { if (e.wpcf7 && "refill" === e.wpcf7.endpoint) { const { form: t, detail: a } = e.wpcf7; d(t), n(t, "resetting"); } return t(e); }); const u = (e, t) => { for (const a in t) { const n = t[a]; e.querySelectorAll(`input[name="${a}"]`).forEach((e) => { e.value = ""; }), e .querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":", "")}`) .forEach((e) => { e.setAttribute("src", n); }); const r = /([0-9]+)\.(png|gif|jpeg)$/.exec(n); r && e .querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`) .forEach((e) => { e.value = r[1]; }); } }, m = (e, t) => { for (const a in t) { const n = t[a][0], r = t[a][1]; e.querySelectorAll( `.wpcf7-form-control-wrap[data-name="${a}"]` ).forEach((e) => { (e.querySelector(`input[name="${a}"]`).value = ""), (e.querySelector(".wpcf7-quiz-label").textContent = n), (e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value = r); }); } }; function w(e) { const a = new FormData(e); (e.wpcf7 = { id: t(a.get("_wpcf7")), status: e.getAttribute("data-status"), pluginVersion: a.get("_wpcf7_version"), locale: a.get("_wpcf7_locale"), unitTag: a.get("_wpcf7_unit_tag"), containerPost: t(a.get("_wpcf7_container_post")), parent: e.closest(".wpcf7"), get schema() { return wpcf7.schemas.get(this.id); }, }), wpcf7.schemas.set(e.wpcf7.id, void 0), e.querySelectorAll(".has-spinner").forEach((e) => { e.insertAdjacentHTML("afterend", ''); }), ((e) => { e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t) => { t.addEventListener("change", (t) => { const a = t.target.getAttribute("name"); e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach( (e) => { e !== t.target && (e.checked = !1); } ); }); }); })(e), ((e) => { e.querySelectorAll(".has-free-text").forEach((t) => { const a = t.querySelector("input.wpcf7-free-text"), n = t.querySelector('input[type="checkbox"], input[type="radio"]'); (a.disabled = !n.checked), e.addEventListener("change", (e) => { (a.disabled = !n.checked), e.target === n && n.checked && a.focus(); }); }); })(e), ((e) => { e.querySelectorAll(".wpcf7-validates-as-url").forEach((e) => { e.addEventListener("change", (t) => { let a = e.value.trim(); a && !a.match(/^[a-z][a-z0-9.+-]*:/i) && -1 !== a.indexOf(".") && ((a = a.replace(/^\/+/, "")), (a = "http://" + a)), (e.value = a); }); }); })(e), ((e) => { if ( !e.querySelector(".wpcf7-acceptance") || e.classList.contains("wpcf7-acceptance-as-validation") ) return; const t = () => { let t = !0; e.querySelectorAll(".wpcf7-acceptance").forEach((e) => { if (!t || e.classList.contains("optional")) return; const a = e.querySelector('input[type="checkbox"]'); ((e.classList.contains("invert") && a.checked) || (!e.classList.contains("invert") && !a.checked)) && (t = !1); }), e.querySelectorAll(".wpcf7-submit").forEach((e) => { e.disabled = !t; }); }; t(), e.addEventListener("change", (e) => { t(); }), e.addEventListener("wpcf7reset", (e) => { t(); }); })(e), ((e) => { const a = (e, a) => { const n = t(e.getAttribute("data-starting-value")), r = t(e.getAttribute("data-maximum-value")), c = t(e.getAttribute("data-minimum-value")), o = e.classList.contains("down") ? n - a.value.trim().length : a.value.trim().length; e.setAttribute("data-current-value", o), (e.innerText = o), r && r < a.value.length ? e.classList.add("too-long") : e.classList.remove("too-long"), c && a.value.length < c ? e.classList.add("too-short") : e.classList.remove("too-short"); }, n = (t) => { (t = { init: !1, ...t }), e.querySelectorAll(".wpcf7-character-count").forEach((n) => { const r = n.getAttribute("data-target-name"), c = e.querySelector(`[name="${r}"]`); c && ((c.value = c.defaultValue), a(n, c), t.init && c.addEventListener("keyup", (e) => { a(n, c); })); }); }; n({ init: !0 }), e.addEventListener("wpcf7reset", (e) => { n(); }); })(e), window.addEventListener("load", (t) => { wpcf7.cached && e.reset(); }), e.addEventListener("reset", (t) => { wpcf7.reset(e); }), e.addEventListener("submit", (t) => { wpcf7.submit(e, { submitter: t.submitter }), t.preventDefault(); }), e.addEventListener("wpcf7submit", (t) => { t.detail.apiResponse.captcha && u(e, t.detail.apiResponse.captcha), t.detail.apiResponse.quiz && m(e, t.detail.apiResponse.quiz); }), e.addEventListener("wpcf7reset", (t) => { t.detail.apiResponse.captcha && u(e, t.detail.apiResponse.captcha), t.detail.apiResponse.quiz && m(e, t.detail.apiResponse.quiz); }), e.addEventListener("change", (t) => { t.target.closest(".wpcf7-form-control") && wpcf7.validate(e, { target: t.target }); }), e.addEventListener("wpcf7statuschanged", (t) => { const a = t.detail.status; e.querySelectorAll(".active-on-any").forEach((e) => { e.removeAttribute("inert"), e.classList.remove("active-on-any"); }), e.querySelectorAll(`.inert-on-${a}`).forEach((e) => { e.setAttribute("inert", "inert"), e.classList.add("active-on-any"); }); }); } document.addEventListener("DOMContentLoaded", (t) => { var a; if ("undefined" != typeof wpcf7) if (void 0 !== wpcf7.api) if ("function" == typeof window.fetch) if ("function" == typeof window.FormData) if ("function" == typeof NodeList.prototype.forEach) if ("function" == typeof String.prototype.replaceAll) { (wpcf7 = { init: w, submit: p, reset: f, validate: o, schemas: new Map(), ...(null !== (a = wpcf7) && void 0 !== a ? a : {}), }), document .querySelectorAll("form .wpcf7[data-wpcf7-id]") .forEach((t) => { const a = document.createElement("p"); a.setAttribute("class", "wpcf7-form-in-wrong-place"); const n = document.createElement("strong"); n.append((0, e.__)("Error:", "contact-form-7")); const r = (0, e.__)( "This contact form is placed in the wrong place.", "contact-form-7" ); a.append(n, " ", r), t.replaceWith(a); }), document.querySelectorAll(".wpcf7 > form").forEach((e) => { wpcf7.init(e), e.closest(".wpcf7").classList.replace("no-js", "js"); }); for (const e of wpcf7.schemas.keys()) r({ endpoint: `contact-forms/${e}/feedback/schema`, method: "GET", }).then((t) => { wpcf7.schemas.set(e, t); }); } else console.error( "Your browser does not support String.replaceAll()." ); else console.error( "Your browser does not support NodeList.forEach()." ); else console.error("Your browser does not support window.FormData()."); else console.error("Your browser does not support window.fetch()."); else console.error("wpcf7.api is not defined."); else console.error("wpcf7 is not defined."); }); })(); (function ($) { var ColorPicker = (function () { var ids = {}, inAction, charMin = 65, visible, tpl = '
', defaults = { eventName: "click", onShow: function () {}, onBeforeShow: function () {}, onHide: function () {}, onChange: function () {}, onSubmit: function () {}, color: "ff0000", livePreview: true, flat: false, }, fillRGBFields = function (hsb, cal) { var rgb = HSBToRGB(hsb); $(cal) .data("colorpicker") .fields.eq(1) .val(rgb.r) .end() .eq(2) .val(rgb.g) .end() .eq(3) .val(rgb.b) .end(); }, fillHSBFields = function (hsb, cal) { $(cal) .data("colorpicker") .fields.eq(4) .val(hsb.h) .end() .eq(5) .val(hsb.s) .end() .eq(6) .val(hsb.b) .end(); }, fillHexFields = function (hsb, cal) { $(cal).data("colorpicker").fields.eq(0).val(HSBToHex(hsb)).end(); }, setSelector = function (hsb, cal) { $(cal) .data("colorpicker") .selector.css( "backgroundColor", "#" + HSBToHex({ h: hsb.h, s: 100, b: 100 }) ); $(cal) .data("colorpicker") .selectorIndic.css({ left: parseInt((150 * hsb.s) / 100, 10), top: parseInt((150 * (100 - hsb.b)) / 100, 10), }); }, setHue = function (hsb, cal) { $(cal) .data("colorpicker") .hue.css("top", parseInt(150 - (150 * hsb.h) / 360, 10)); }, setCurrentColor = function (hsb, cal) { $(cal) .data("colorpicker") .currentColor.css("backgroundColor", "#" + HSBToHex(hsb)); }, setNewColor = function (hsb, cal) { $(cal) .data("colorpicker") .newColor.css("backgroundColor", "#" + HSBToHex(hsb)); }, keyDown = function (ev) { var pressedKey = ev.charCode || ev.keyCode || -1; if ((pressedKey > charMin && pressedKey <= 90) || pressedKey == 32) { return false; } var cal = $(this).parent().parent(); if (cal.data("colorpicker").livePreview === true) { change.apply(this); } }, change = function (ev) { var cal = $(this).parent().parent(), col; if (this.parentNode.className.indexOf("_hex") > 0) { cal.data("colorpicker").color = col = HexToHSB(fixHex(this.value)); } else if (this.parentNode.className.indexOf("_hsb") > 0) { cal.data("colorpicker").color = col = fixHSB({ h: parseInt(cal.data("colorpicker").fields.eq(4).val(), 10), s: parseInt(cal.data("colorpicker").fields.eq(5).val(), 10), b: parseInt(cal.data("colorpicker").fields.eq(6).val(), 10), }); } else { cal.data("colorpicker").color = col = RGBToHSB( fixRGB({ r: parseInt(cal.data("colorpicker").fields.eq(1).val(), 10), g: parseInt(cal.data("colorpicker").fields.eq(2).val(), 10), b: parseInt(cal.data("colorpicker").fields.eq(3).val(), 10), }) ); } if (ev) { fillRGBFields(col, cal.get(0)); fillHexFields(col, cal.get(0)); fillHSBFields(col, cal.get(0)); } setSelector(col, cal.get(0)); setHue(col, cal.get(0)); setNewColor(col, cal.get(0)); cal .data("colorpicker") .onChange.apply(cal, [col, HSBToHex(col), HSBToRGB(col)]); }, blur = function (ev) { var cal = $(this).parent().parent(); cal .data("colorpicker") .fields.parent() .removeClass("colorpicker_focus"); }, focus = function () { charMin = this.parentNode.className.indexOf("_hex") > 0 ? 70 : 65; $(this) .parent() .parent() .data("colorpicker") .fields.parent() .removeClass("colorpicker_focus"); $(this).parent().addClass("colorpicker_focus"); }, downIncrement = function (ev) { var field = $(this).parent().find("input").focus(); var current = { el: $(this).parent().addClass("colorpicker_slider"), max: this.parentNode.className.indexOf("_hsb_h") > 0 ? 360 : this.parentNode.className.indexOf("_hsb") > 0 ? 100 : 255, y: ev.pageY, field: field, val: parseInt(field.val(), 10), preview: $(this).parent().parent().data("colorpicker").livePreview, }; $(document).bind("mouseup", current, upIncrement); $(document).bind("mousemove", current, moveIncrement); }, moveIncrement = function (ev) { ev.data.field.val( Math.max( 0, Math.min( ev.data.max, parseInt(ev.data.val + ev.pageY - ev.data.y, 10) ) ) ); if (ev.data.preview) { change.apply(ev.data.field.get(0), [true]); } return false; }, upIncrement = function (ev) { change.apply(ev.data.field.get(0), [true]); ev.data.el.removeClass("colorpicker_slider").find("input").focus(); $(document).unbind("mouseup", upIncrement); $(document).unbind("mousemove", moveIncrement); return false; }, downHue = function (ev) { var current = { cal: $(this).parent(), y: $(this).offset().top }; current.preview = current.cal.data("colorpicker").livePreview; $(document).bind("mouseup", current, upHue); $(document).bind("mousemove", current, moveHue); $(document).bind("mousedown", current, moveHue); }, moveHue = function (ev) { change.apply( ev.data.cal .data("colorpicker") .fields.eq(4) .val( parseInt( (360 * (150 - Math.max(0, Math.min(150, ev.pageY - ev.data.y)))) / 150, 10 ) ) .get(0), [ev.data.preview] ); return false; }, upHue = function (ev) { fillRGBFields( ev.data.cal.data("colorpicker").color, ev.data.cal.get(0) ); fillHexFields( ev.data.cal.data("colorpicker").color, ev.data.cal.get(0) ); $(document).unbind("mouseup", upHue); $(document).unbind("mousemove", moveHue); $(document).unbind("mousedown", moveHue); return false; }, downSelector = function (ev) { var current = { cal: $(this).parent(), pos: $(this).offset() }; current.preview = current.cal.data("colorpicker").livePreview; $(document).bind("mouseup", current, upSelector); $(document).bind("mousemove", current, moveSelector); $(document).bind("mousedown", current, moveSelector); }, moveSelector = function (ev) { change.apply( ev.data.cal .data("colorpicker") .fields.eq(6) .val( parseInt( (100 * (150 - Math.max(0, Math.min(150, ev.pageY - ev.data.pos.top)))) / 150, 10 ) ) .end() .eq(5) .val( parseInt( (100 * Math.max(0, Math.min(150, ev.pageX - ev.data.pos.left))) / 150, 10 ) ) .get(0), [ev.data.preview] ); return false; }, upSelector = function (ev) { fillRGBFields( ev.data.cal.data("colorpicker").color, ev.data.cal.get(0) ); fillHexFields( ev.data.cal.data("colorpicker").color, ev.data.cal.get(0) ); $(document).unbind("mouseup", upSelector); $(document).unbind("mousemove", moveSelector); $(document).unbind("mousedown", moveSelector); return false; }, enterSubmit = function (ev) { $(this).addClass("colorpicker_focus"); }, leaveSubmit = function (ev) { $(this).removeClass("colorpicker_focus"); }, clickSubmit = function (ev) { var cal = $(this).parent(); var col = cal.data("colorpicker").color; cal.data("colorpicker").origColor = col; setCurrentColor(col, cal.get(0)); cal .data("colorpicker") .onSubmit( col, HSBToHex(col), HSBToRGB(col), cal.data("colorpicker").el ); }, show = function (ev) { var cal = $("#" + $(this).data("colorpickerId")); cal.data("colorpicker").onBeforeShow.apply(this, [cal.get(0)]); var pos = $(this).offset(); var viewPort = getViewport(); var top = pos.top + this.offsetHeight; var left = pos.left; if (top + 176 > viewPort.t + viewPort.h) { top -= this.offsetHeight + 176; } if (left + 356 > viewPort.l + viewPort.w) { left -= 356; } cal.css({ left: left + "px", top: top + "px" }); if (cal.data("colorpicker").onShow.apply(this, [cal.get(0)]) != false) { cal.show(); } $(document).bind("mousedown", { cal: cal }, hide); return false; }, hide = function (ev) { if (!isChildOf(ev.data.cal.get(0), ev.target, ev.data.cal.get(0))) { if ( ev.data.cal .data("colorpicker") .onHide.apply(this, [ev.data.cal.get(0)]) != false ) { ev.data.cal.hide(); } $(document).unbind("mousedown", hide); } }, isChildOf = function (parentEl, el, container) { if (parentEl == el) { return true; } if (parentEl.contains) { return parentEl.contains(el); } if (parentEl.compareDocumentPosition) { return !!(parentEl.compareDocumentPosition(el) & 16); } var prEl = el.parentNode; while (prEl && prEl != container) { if (prEl == parentEl) return true; prEl = prEl.parentNode; } return false; }, getViewport = function () { var m = document.compatMode == "CSS1Compat"; return { l: window.pageXOffset || (m ? document.documentElement.scrollLeft : document.body.scrollLeft), t: window.pageYOffset || (m ? document.documentElement.scrollTop : document.body.scrollTop), w: window.innerWidth || (m ? document.documentElement.clientWidth : document.body.clientWidth), h: window.innerHeight || (m ? document.documentElement.clientHeight : document.body.clientHeight), }; }, fixHSB = function (hsb) { return { h: Math.min(360, Math.max(0, hsb.h)), s: Math.min(100, Math.max(0, hsb.s)), b: Math.min(100, Math.max(0, hsb.b)), }; }, fixRGB = function (rgb) { return { r: Math.min(255, Math.max(0, rgb.r)), g: Math.min(255, Math.max(0, rgb.g)), b: Math.min(255, Math.max(0, rgb.b)), }; }, fixHex = function (hex) { var len = 6 - hex.length; if (len > 0) { var o = []; for (var i = 0; i < len; i++) { o.push("0"); } o.push(hex); hex = o.join(""); } return hex; }, HexToRGB = function (hex) { var hex = parseInt(hex.indexOf("#") > -1 ? hex.substring(1) : hex, 16); return { r: hex >> 16, g: (hex & 0x00ff00) >> 8, b: hex & 0x0000ff }; }, HexToHSB = function (hex) { return RGBToHSB(HexToRGB(hex)); }, RGBToHSB = function (rgb) { var hsb = { h: 0, s: 0, b: 0 }; var min = Math.min(rgb.r, rgb.g, rgb.b); var max = Math.max(rgb.r, rgb.g, rgb.b); var delta = max - min; hsb.b = max; if (max != 0) { } hsb.s = max != 0 ? (255 * delta) / max : 0; if (hsb.s != 0) { if (rgb.r == max) { hsb.h = (rgb.g - rgb.b) / delta; } else if (rgb.g == max) { hsb.h = 2 + (rgb.b - rgb.r) / delta; } else { hsb.h = 4 + (rgb.r - rgb.g) / delta; } } else { hsb.h = -1; } hsb.h *= 60; if (hsb.h < 0) { hsb.h += 360; } hsb.s *= 100 / 255; hsb.b *= 100 / 255; return hsb; }, HSBToRGB = function (hsb) { var rgb = {}; var h = Math.round(hsb.h); var s = Math.round((hsb.s * 255) / 100); var v = Math.round((hsb.b * 255) / 100); if (s == 0) { rgb.r = rgb.g = rgb.b = v; } else { var t1 = v; var t2 = ((255 - s) * v) / 255; var t3 = ((t1 - t2) * (h % 60)) / 60; if (h == 360) h = 0; if (h < 60) { rgb.r = t1; rgb.b = t2; rgb.g = t2 + t3; } else if (h < 120) { rgb.g = t1; rgb.b = t2; rgb.r = t1 - t3; } else if (h < 180) { rgb.g = t1; rgb.r = t2; rgb.b = t2 + t3; } else if (h < 240) { rgb.b = t1; rgb.r = t2; rgb.g = t1 - t3; } else if (h < 300) { rgb.b = t1; rgb.g = t2; rgb.r = t2 + t3; } else if (h < 360) { rgb.r = t1; rgb.g = t2; rgb.b = t1 - t3; } else { rgb.r = 0; rgb.g = 0; rgb.b = 0; } } return { r: Math.round(rgb.r), g: Math.round(rgb.g), b: Math.round(rgb.b), }; }, RGBToHex = function (rgb) { var hex = [rgb.r.toString(16), rgb.g.toString(16), rgb.b.toString(16)]; $.each(hex, function (nr, val) { if (val.length == 1) { hex[nr] = "0" + val; } }); return hex.join(""); }, HSBToHex = function (hsb) { return RGBToHex(HSBToRGB(hsb)); }, restoreOriginal = function () { var cal = $(this).parent(); var col = cal.data("colorpicker").origColor; cal.data("colorpicker").color = col; fillRGBFields(col, cal.get(0)); fillHexFields(col, cal.get(0)); fillHSBFields(col, cal.get(0)); setSelector(col, cal.get(0)); setHue(col, cal.get(0)); setNewColor(col, cal.get(0)); }; return { init: function (opt) { opt = $.extend({}, defaults, opt || {}); if (typeof opt.color == "string") { opt.color = HexToHSB(opt.color); } else if ( opt.color.r != undefined && opt.color.g != undefined && opt.color.b != undefined ) { opt.color = RGBToHSB(opt.color); } else if ( opt.color.h != undefined && opt.color.s != undefined && opt.color.b != undefined ) { opt.color = fixHSB(opt.color); } else { return this; } return this.each(function () { if (!$(this).data("colorpickerId")) { var options = $.extend({}, opt); options.origColor = opt.color; var id = "collorpicker_" + parseInt(Math.random() * 1000); $(this).data("colorpickerId", id); var cal = $(tpl).attr("id", id); if (options.flat) { cal.appendTo(this).show(); } else { cal.appendTo(document.body); } options.fields = cal .find("input") .bind("keyup", keyDown) .bind("change", change) .bind("blur", blur) .bind("focus", focus); cal .find("span") .bind("mousedown", downIncrement) .end() .find(">div.colorpicker_current_color") .bind("click", restoreOriginal); options.selector = cal .find("div.colorpicker_color") .bind("mousedown", downSelector); options.selectorIndic = options.selector.find("div div"); options.el = this; options.hue = cal.find("div.colorpicker_hue div"); cal.find("div.colorpicker_hue").bind("mousedown", downHue); options.newColor = cal.find("div.colorpicker_new_color"); options.currentColor = cal.find("div.colorpicker_current_color"); cal.data("colorpicker", options); cal .find("div.colorpicker_submit") .bind("mouseenter", enterSubmit) .bind("mouseleave", leaveSubmit) .bind("click", clickSubmit); fillRGBFields(options.color, cal.get(0)); fillHSBFields(options.color, cal.get(0)); fillHexFields(options.color, cal.get(0)); setHue(options.color, cal.get(0)); setSelector(options.color, cal.get(0)); setCurrentColor(options.color, cal.get(0)); setNewColor(options.color, cal.get(0)); if (options.flat) { cal.css({ position: "relative", display: "block" }); } else { $(this).bind(options.eventName, show); } } }); }, showPicker: function () { return this.each(function () { if ($(this).data("colorpickerId")) { show.apply(this); } }); }, hidePicker: function () { return this.each(function () { if ($(this).data("colorpickerId")) { $("#" + $(this).data("colorpickerId")).hide(); } }); }, setColor: function (col) { if (typeof col == "string") { col = HexToHSB(col); } else if ( col.r != undefined && col.g != undefined && col.b != undefined ) { col = RGBToHSB(col); } else if ( col.h != undefined && col.s != undefined && col.b != undefined ) { col = fixHSB(col); } else { return this; } return this.each(function () { if ($(this).data("colorpickerId")) { var cal = $("#" + $(this).data("colorpickerId")); cal.data("colorpicker").color = col; cal.data("colorpicker").origColor = col; fillRGBFields(col, cal.get(0)); fillHSBFields(col, cal.get(0)); fillHexFields(col, cal.get(0)); setHue(col, cal.get(0)); setSelector(col, cal.get(0)); setCurrentColor(col, cal.get(0)); setNewColor(col, cal.get(0)); } }); }, }; })(); $.fn.extend({ ColorPicker: ColorPicker.init, ColorPickerHide: ColorPicker.hidePicker, ColorPickerShow: ColorPicker.showPicker, ColorPickerSetColor: ColorPicker.setColor, }); })(jQuery); ("use strict"); jQuery(".lt-custom-popup").on( "change keyup", ".lt-custom-field", function (el) { var field = jQuery(this).data("field"), val = jQuery(this).val(), bodyStyles = window.getComputedStyle(document.body); document.documentElement.style.setProperty("--" + field, val); document.documentElement.style.setProperty( "--main-darker", ltxColorLuminance(bodyStyles.getPropertyValue("--main"), -0.05) ); } ); jQuery(document).on("click", ".ltx-font-selector", function (el) { var font = jQuery(this).data("font"), bodyStyles = window.getComputedStyle(document.body); console.log(jQuery(this).data("font-headers")); document.documentElement.style.setProperty( "--font-headers", jQuery(this).data("font-headers") ); document.documentElement.style.setProperty( "--font-main", jQuery(this).data("font-main") ); }); jQuery(document).on("click", ".lt-custom-popup img", function (el) { jQuery(".lt-custom-popup").removeClass("closed"); }); jQuery(".lt-custom-popup").on("click", ".close", function (el) { jQuery(".lt-custom-popup").addClass("closed"); }); jQuery(document).on("ready", function () { jQuery(".lt-custom-popup").append( '
' ); jQuery(".lt-custom-popup").append( '
' ); jQuery(".lt-custom-popup").append( '
' ); jQuery(".lt-custom-popup").append( '
' ); jQuery(".ltx-color-selector").each(function (i, el) { var field = jQuery(el).data("field"), bodyStyles = window.getComputedStyle(document.body), color = jQuery.trim(bodyStyles.getPropertyValue("--" + field)), elId = jQuery(el).attr("id"), valId = elId + "-" + "val"; jQuery("#" + valId).css("background-color", color); if ( jQuery(el).hasClass("lt-custom-second") && jQuery.trim(bodyStyles.getPropertyValue("--main").toLowerCase()) == color.toLowerCase() ) { jQuery(el).hide(); } jQuery("#" + elId).ColorPicker({ color: color, onShow: function (colpkr) { jQuery(colpkr).fadeIn(500); return false; }, onHide: function (colpkr) { jQuery(colpkr).fadeOut(500); return false; }, onChange: function (hsb, hex, rgb) { bodyStyles = window.getComputedStyle(document.body); jQuery("#" + valId).css("background-color", "#" + hex); document.documentElement.style.setProperty( "--" + field, "#" + hex, "important" ); document.documentElement.style.setProperty( "--main-darker", ltxColorLuminance(bodyStyles.getPropertyValue("--main"), -0.15) ); document.documentElement.style.setProperty( "--black-text", ltxColorLuminance(bodyStyles.getPropertyValue("--black"), 0.25) ); }, }); }); var image = jQuery(".lt-custom-popup").data("image"); jQuery(".lt-custom-popup").prepend( '' ); jQuery(".lt-custom-popup").prepend('×'); setTimeout(function () { jQuery(".lt-custom-popup").fadeIn(); }, 2000); }); function ltxColorLuminance(hex, lum) { hex = String(hex).replace(/[^0-9a-f]/gi, ""); if (hex.length < 6) { hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2]; } lum = lum || 0; var rgb = "#", c, i; for (i = 0; i < 3; i++) { c = parseInt(hex.substr(i * 2, 2), 16); c = Math.round(Math.min(Math.max(0, c + c * lum), 255)).toString(16); rgb += ("00" + c).substr(c.length); } return rgb; } !(function (e) { if ("object" == typeof exports && "undefined" != typeof module) module.exports = e(); else if ("function" == typeof define && define.amd) define([], e); else { var t; "undefined" != typeof window ? (t = window) : "undefined" != typeof global ? (t = global) : "undefined" != typeof self && (t = self), (t.sbjs = e()); } })(function () { return (function e(t, r, n) { function a(s, o) { if (!r[s]) { if (!t[s]) { var c = "function" == typeof require && require; if (!o && c) return c(s, !0); if (i) return i(s, !0); var u = new Error("Cannot find module '" + s + "'"); throw ((u.code = "MODULE_NOT_FOUND"), u); } var p = (r[s] = { exports: {} }); t[s][0].call( p.exports, function (e) { var r = t[s][1][e]; return a(r || e); }, p, p.exports, e, t, r, n ); } return r[s].exports; } for ( var i = "function" == typeof require && require, s = 0; s < n.length; s++ ) a(n[s]); return a; })( { 1: [ function (e, t, r) { "use strict"; var n = e("./init"), a = { init: function (e) { (this.get = n(e)), e && e.callback && "function" == typeof e.callback && e.callback(this.get); }, }; t.exports = a; }, { "./init": 6 }, ], 2: [ function (e, t, r) { "use strict"; var n = e("./terms"), a = e("./helpers/utils"), i = { containers: { current: "sbjs_current", current_extra: "sbjs_current_add", first: "sbjs_first", first_extra: "sbjs_first_add", session: "sbjs_session", udata: "sbjs_udata", promocode: "sbjs_promo", }, service: { migrations: "sbjs_migrations" }, delimiter: "|||", aliases: { main: { type: "typ", source: "src", medium: "mdm", campaign: "cmp", content: "cnt", term: "trm", id: "id", platform: "plt", format: "fmt", tactic: "tct", }, extra: { fire_date: "fd", entrance_point: "ep", referer: "rf" }, session: { pages_seen: "pgs", current_page: "cpg" }, udata: { visits: "vst", ip: "uip", agent: "uag" }, promo: "code", }, pack: { main: function (e) { return ( i.aliases.main.type + "=" + e.type + i.delimiter + i.aliases.main.source + "=" + e.source + i.delimiter + i.aliases.main.medium + "=" + e.medium + i.delimiter + i.aliases.main.campaign + "=" + e.campaign + i.delimiter + i.aliases.main.content + "=" + e.content + i.delimiter + i.aliases.main.term + "=" + e.term + i.delimiter + i.aliases.main.id + "=" + e.id + i.delimiter + i.aliases.main.platform + "=" + e.platform + i.delimiter + i.aliases.main.format + "=" + e.format + i.delimiter + i.aliases.main.tactic + "=" + e.tactic ); }, extra: function (e) { return ( i.aliases.extra.fire_date + "=" + a.setDate(new Date(), e) + i.delimiter + i.aliases.extra.entrance_point + "=" + document.location.href + i.delimiter + i.aliases.extra.referer + "=" + (document.referrer || n.none) ); }, user: function (e, t) { return ( i.aliases.udata.visits + "=" + e + i.delimiter + i.aliases.udata.ip + "=" + t + i.delimiter + i.aliases.udata.agent + "=" + navigator.userAgent ); }, session: function (e) { return ( i.aliases.session.pages_seen + "=" + e + i.delimiter + i.aliases.session.current_page + "=" + document.location.href ); }, promo: function (e) { return ( i.aliases.promo + "=" + a.setLeadingZeroToInt( a.randomInt(e.min, e.max), e.max.toString().length ) ); }, }, }; t.exports = i; }, { "./helpers/utils": 5, "./terms": 9 }, ], 3: [ function (e, t, r) { "use strict"; var n = e("../data").delimiter; t.exports = { useBase64: !1, setBase64Flag: function (e) { this.useBase64 = e; }, encodeData: function (e) { return encodeURIComponent(e) .replace(/\!/g, "%21") .replace(/\~/g, "%7E") .replace(/\*/g, "%2A") .replace(/\'/g, "%27") .replace(/\(/g, "%28") .replace(/\)/g, "%29"); }, decodeData: function (e) { try { return decodeURIComponent(e) .replace(/\%21/g, "!") .replace(/\%7E/g, "~") .replace(/\%2A/g, "*") .replace(/\%27/g, "'") .replace(/\%28/g, "(") .replace(/\%29/g, ")"); } catch (t) { try { return unescape(e); } catch (r) { return ""; } } }, set: function (e, t, r, n, a) { var i, s; if (r) { var o = new Date(); o.setTime(o.getTime() + 60 * r * 1e3), (i = "; expires=" + o.toGMTString()); } else i = ""; s = n && !a ? ";domain=." + n : ""; var c = this.encodeData(t); this.useBase64 && (c = btoa(c).replace(/=+$/, "")), (document.cookie = this.encodeData(e) + "=" + c + i + s + "; path=/"); }, get: function (e) { for ( var t = this.encodeData(e) + "=", r = document.cookie.split(";"), n = 0; n < r.length; n++ ) { for (var a = r[n]; " " === a.charAt(0); ) a = a.substring(1, a.length); if (0 === a.indexOf(t)) { var i = a.substring(t.length, a.length); if (/^[A-Za-z0-9+/]+$/.test(i)) try { i = atob(i.padEnd(4 * Math.ceil(i.length / 4), "=")); } catch (s) {} return this.decodeData(i); } } return null; }, destroy: function (e, t, r) { this.set(e, "", -1, t, r); }, parse: function (e) { var t = [], r = {}; if ("string" == typeof e) t.push(e); else for (var a in e) e.hasOwnProperty(a) && t.push(e[a]); for (var i = 0; i < t.length; i++) { var s; (r[this.unsbjs(t[i])] = {}), (s = this.get(t[i]) ? this.get(t[i]).split(n) : []); for (var o = 0; o < s.length; o++) { var c = s[o].split("="), u = c.splice(0, 1); u.push(c.join("=")), (r[this.unsbjs(t[i])][u[0]] = this.decodeData(u[1])); } } return r; }, unsbjs: function (e) { return e.replace("sbjs_", ""); }, }; }, { "../data": 2 }, ], 4: [ function (e, t, r) { "use strict"; t.exports = { parse: function (e) { for ( var t = this.parseOptions, r = t.parser[t.strictMode ? "strict" : "loose"].exec(e), n = {}, a = 14; a--; ) n[t.key[a]] = r[a] || ""; return ( (n[t.q.name] = {}), n[t.key[12]].replace(t.q.parser, function (e, r, a) { r && (n[t.q.name][r] = a); }), n ); }, parseOptions: { strictMode: !1, key: [ "source", "protocol", "authority", "userInfo", "user", "password", "host", "port", "relative", "path", "directory", "file", "query", "anchor", ], q: { name: "queryKey", parser: /(?:^|&)([^&=]*)=?([^&]*)/g }, parser: { strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, }, }, getParam: function (e) { for ( var t = {}, r = (e || window.location.search.substring(1)).split("&"), n = 0; n < r.length; n++ ) { var a = r[n].split("="); if ("undefined" == typeof t[a[0]]) t[a[0]] = a[1]; else if ("string" == typeof t[a[0]]) { var i = [t[a[0]], a[1]]; t[a[0]] = i; } else t[a[0]].push(a[1]); } return t; }, getHost: function (e) { return this.parse(e).host.replace("www.", ""); }, }; }, {}, ], 5: [ function (e, t, r) { "use strict"; t.exports = { escapeRegexp: function (e) { return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); }, setDate: function (e, t) { var r = e.getTimezoneOffset() / 60, n = e.getHours(), a = t || 0 === t ? t : -r; return ( e.setHours(n + r + a), e.getFullYear() + "-" + this.setLeadingZeroToInt(e.getMonth() + 1, 2) + "-" + this.setLeadingZeroToInt(e.getDate(), 2) + " " + this.setLeadingZeroToInt(e.getHours(), 2) + ":" + this.setLeadingZeroToInt(e.getMinutes(), 2) + ":" + this.setLeadingZeroToInt(e.getSeconds(), 2) ); }, setLeadingZeroToInt: function (e, t) { for (var r = e + ""; r.length < t; ) r = "0" + r; return r; }, randomInt: function (e, t) { return Math.floor(Math.random() * (t - e + 1)) + e; }, }; }, {}, ], 6: [ function (e, t, r) { "use strict"; var n = e("./data"), a = e("./terms"), i = e("./helpers/cookies"), s = e("./helpers/uri"), o = e("./helpers/utils"), c = e("./params"), u = e("./migrations"); t.exports = function (e) { var t, r, p, f, m, d, l, g, h, y, _, v, b, x = c.fetch(e), k = s.getParam(), w = x.domain.host, q = x.domain.isolate, I = x.lifetime; function j(e) { switch (e) { case a.traffic.utm: (t = a.traffic.utm), (r = "undefined" != typeof k.utm_source ? k.utm_source : "undefined" != typeof k.gclid ? "google" : "undefined" != typeof k.yclid ? "yandex" : a.none), (p = "undefined" != typeof k.utm_medium ? k.utm_medium : "undefined" != typeof k.gclid ? "cpc" : "undefined" != typeof k.yclid ? "cpc" : a.none), (f = "undefined" != typeof k.utm_campaign ? k.utm_campaign : "undefined" != typeof k[x.campaign_param] ? k[x.campaign_param] : "undefined" != typeof k.gclid ? "google_cpc" : "undefined" != typeof k.yclid ? "yandex_cpc" : a.none), (m = "undefined" != typeof k.utm_content ? k.utm_content : "undefined" != typeof k[x.content_param] ? k[x.content_param] : a.none), (l = k.utm_id || a.none), (g = k.utm_source_platform || a.none), (h = k.utm_creative_format || a.none), (y = k.utm_marketing_tactic || a.none), (d = "undefined" != typeof k.utm_term ? k.utm_term : "undefined" != typeof k[x.term_param] ? k[x.term_param] : (function () { var e = document.referrer; if (k.utm_term) return k.utm_term; if ( !( e && s.parse(e).host && s .parse(e) .host.match(/^(?:.*\.)?yandex\..{2,9}$/i) ) ) return !1; try { return s.getParam( s.parse(document.referrer).query ).text; } catch (t) { return !1; } })() || a.none); break; case a.traffic.organic: (t = a.traffic.organic), (r = r || s.getHost(document.referrer)), (p = a.referer.organic), (f = a.none), (m = a.none), (d = a.none), (l = a.none), (g = a.none), (h = a.none), (y = a.none); break; case a.traffic.referral: (t = a.traffic.referral), (r = r || s.getHost(document.referrer)), (p = p || a.referer.referral), (f = a.none), (m = s.parse(document.referrer).path), (d = a.none), (l = a.none), (g = a.none), (h = a.none), (y = a.none); break; case a.traffic.typein: (t = a.traffic.typein), (r = x.typein_attributes.source), (p = x.typein_attributes.medium), (f = a.none), (m = a.none), (d = a.none), (l = a.none), (g = a.none), (h = a.none), (y = a.none); break; default: (t = a.oops), (r = a.oops), (p = a.oops), (f = a.oops), (m = a.oops), (d = a.oops), (l = a.oops), (g = a.oops), (h = a.oops), (y = a.oops); } var i = { type: t, source: r, medium: p, campaign: f, content: m, term: d, id: l, platform: g, format: h, tactic: y, }; return n.pack.main(i); } function R(e) { var t = document.referrer; switch (e) { case a.traffic.organic: return ( !!t && H(t) && (function (e) { var t = new RegExp( "^(?:.*\\.)?" + o.escapeRegexp("yandex") + "\\..{2,9}$" ), n = new RegExp(".*" + o.escapeRegexp("text") + "=.*"), a = new RegExp( "^(?:www\\.)?" + o.escapeRegexp("google") + "\\..{2,9}$" ); if ( s.parse(e).query && s.parse(e).host.match(t) && s.parse(e).query.match(n) ) return (r = "yandex"), !0; if (s.parse(e).host.match(a)) return (r = "google"), !0; if (!s.parse(e).query) return !1; for (var i = 0; i < x.organics.length; i++) { if ( s .parse(e) .host.match( new RegExp( "^(?:.*\\.)?" + o.escapeRegexp(x.organics[i].host) + "$", "i" ) ) && s .parse(e) .query.match( new RegExp( ".*" + o.escapeRegexp(x.organics[i].param) + "=.*", "i" ) ) ) return ( (r = x.organics[i].display || x.organics[i].host), !0 ); if (i + 1 === x.organics.length) return !1; } })(t) ); case a.traffic.referral: return ( !!t && H(t) && (function (e) { if (!(x.referrals.length > 0)) return (r = s.getHost(e)), !0; for (var t = 0; t < x.referrals.length; t++) { if ( s .parse(e) .host.match( new RegExp( "^(?:.*\\.)?" + o.escapeRegexp(x.referrals[t].host) + "$", "i" ) ) ) return ( (r = x.referrals[t].display || x.referrals[t].host), (p = x.referrals[t].medium || a.referer.referral), !0 ); if (t + 1 === x.referrals.length) return (r = s.getHost(e)), !0; } })(t) ); default: return !1; } } function H(e) { if (x.domain) { if (q) return s.getHost(e) !== s.getHost(w); var t = new RegExp( "^(?:.*\\.)?" + o.escapeRegexp(w) + "$", "i" ); return !s.getHost(e).match(t); } return s.getHost(e) !== s.getHost(document.location.href); } function D() { i.set( n.containers.current_extra, n.pack.extra(x.timezone_offset), I, w, q ), i.get(n.containers.first_extra) || i.set( n.containers.first_extra, n.pack.extra(x.timezone_offset), I, w, q ); } return ( i.setBase64Flag(x.base64), u.go(I, w, q), i.set( n.containers.current, (function () { var e; if ( "undefined" != typeof k.utm_source || "undefined" != typeof k.utm_medium || "undefined" != typeof k.utm_campaign || "undefined" != typeof k.utm_content || "undefined" != typeof k.utm_term || "undefined" != typeof k.utm_id || "undefined" != typeof k.utm_source_platform || "undefined" != typeof k.utm_creative_format || "undefined" != typeof k.utm_marketing_tactic || "undefined" != typeof k.gclid || "undefined" != typeof k.yclid || "undefined" != typeof k[x.campaign_param] || "undefined" != typeof k[x.term_param] || "undefined" != typeof k[x.content_param] ) D(), (e = j(a.traffic.utm)); else if (R(a.traffic.organic)) D(), (e = j(a.traffic.organic)); else if ( !i.get(n.containers.session) && R(a.traffic.referral) ) D(), (e = j(a.traffic.referral)); else { if ( i.get(n.containers.first) || i.get(n.containers.current) ) return i.get(n.containers.current); D(), (e = j(a.traffic.typein)); } return e; })(), I, w, q ), i.get(n.containers.first) || i.set(n.containers.first, i.get(n.containers.current), I, w, q), i.get(n.containers.udata) ? ((_ = parseInt( i.parse(n.containers.udata)[i.unsbjs(n.containers.udata)][ n.aliases.udata.visits ] ) || 1), (_ = i.get(n.containers.session) ? _ : _ + 1), (v = n.pack.user(_, x.user_ip))) : ((_ = 1), (v = n.pack.user(_, x.user_ip))), i.set(n.containers.udata, v, I, w, q), i.get(n.containers.session) ? ((b = parseInt( i.parse(n.containers.session)[ i.unsbjs(n.containers.session) ][n.aliases.session.pages_seen] ) || 1), (b += 1)) : (b = 1), i.set( n.containers.session, n.pack.session(b), x.session_length, w, q ), x.promocode && !i.get(n.containers.promocode) && i.set( n.containers.promocode, n.pack.promo(x.promocode), I, w, q ), i.parse(n.containers) ); }; }, { "./data": 2, "./helpers/cookies": 3, "./helpers/uri": 4, "./helpers/utils": 5, "./migrations": 7, "./params": 8, "./terms": 9, }, ], 7: [ function (e, t, r) { "use strict"; var n = e("./data"), a = e("./helpers/cookies"); t.exports = { go: function (e, t, r) { var i, s = this.migrations, o = { l: e, d: t, i: r }; if (a.get(n.containers.first) || a.get(n.service.migrations)) { if (!a.get(n.service.migrations)) for (i = 0; i < s.length; i++) s[i].go(s[i].id, o); } else { var c = []; for (i = 0; i < s.length; i++) c.push(s[i].id); var u = ""; for (i = 0; i < c.length; i++) (u += c[i] + "=1"), i < c.length - 1 && (u += n.delimiter); a.set(n.service.migrations, u, o.l, o.d, o.i); } }, migrations: [ { id: "1418474375998", version: "1.0.0-beta", go: function (e, t) { var r = e + "=1", i = e + "=0", s = function (e, t, r) { return t || r ? e : n.delimiter; }; try { var o = []; for (var c in n.containers) n.containers.hasOwnProperty(c) && o.push(n.containers[c]); for (var u = 0; u < o.length; u++) if (a.get(o[u])) { var p = a.get(o[u]).replace(/(\|)?\|(\|)?/g, s); a.destroy(o[u], t.d, t.i), a.destroy(o[u], t.d, !t.i), a.set(o[u], p, t.l, t.d, t.i); } a.get(n.containers.session) && a.set( n.containers.session, n.pack.session(0), t.l, t.d, t.i ), a.set(n.service.migrations, r, t.l, t.d, t.i); } catch (f) { a.set(n.service.migrations, i, t.l, t.d, t.i); } }, }, ], }; }, { "./data": 2, "./helpers/cookies": 3 }, ], 8: [ function (e, t, r) { "use strict"; var n = e("./terms"), a = e("./helpers/uri"); t.exports = { fetch: function (e) { var t = e || {}, r = {}; if ( ((r.lifetime = this.validate.checkFloat(t.lifetime) || 6), (r.lifetime = parseInt(30 * r.lifetime * 24 * 60)), (r.session_length = this.validate.checkInt(t.session_length) || 30), (r.timezone_offset = this.validate.checkInt(t.timezone_offset)), (r.base64 = t.base64 || !1), (r.campaign_param = t.campaign_param || !1), (r.term_param = t.term_param || !1), (r.content_param = t.content_param || !1), (r.user_ip = t.user_ip || n.none), t.promocode ? ((r.promocode = {}), (r.promocode.min = parseInt(t.promocode.min) || 1e5), (r.promocode.max = parseInt(t.promocode.max) || 999999)) : (r.promocode = !1), t.typein_attributes && t.typein_attributes.source && t.typein_attributes.medium ? ((r.typein_attributes = {}), (r.typein_attributes.source = t.typein_attributes.source), (r.typein_attributes.medium = t.typein_attributes.medium)) : (r.typein_attributes = { source: "(direct)", medium: "(none)", }), t.domain && this.validate.isString(t.domain) ? (r.domain = { host: t.domain, isolate: !1 }) : t.domain && t.domain.host ? (r.domain = t.domain) : (r.domain = { host: a.getHost(document.location.hostname), isolate: !1, }), (r.referrals = []), t.referrals && t.referrals.length > 0) ) for (var i = 0; i < t.referrals.length; i++) t.referrals[i].host && r.referrals.push(t.referrals[i]); if (((r.organics = []), t.organics && t.organics.length > 0)) for (var s = 0; s < t.organics.length; s++) t.organics[s].host && t.organics[s].param && r.organics.push(t.organics[s]); return ( r.organics.push({ host: "bing.com", param: "q", display: "bing", }), r.organics.push({ host: "yahoo.com", param: "p", display: "yahoo", }), r.organics.push({ host: "about.com", param: "q", display: "about", }), r.organics.push({ host: "aol.com", param: "q", display: "aol", }), r.organics.push({ host: "ask.com", param: "q", display: "ask", }), r.organics.push({ host: "globososo.com", param: "q", display: "globo", }), r.organics.push({ host: "go.mail.ru", param: "q", display: "go.mail.ru", }), r.organics.push({ host: "rambler.ru", param: "query", display: "rambler", }), r.organics.push({ host: "tut.by", param: "query", display: "tut.by", }), r.referrals.push({ host: "t.co", display: "twitter.com" }), r.referrals.push({ host: "plus.url.google.com", display: "plus.google.com", }), r ); }, validate: { checkFloat: function (e) { return !(!e || !this.isNumeric(parseFloat(e))) && parseFloat(e); }, checkInt: function (e) { return !(!e || !this.isNumeric(parseInt(e))) && parseInt(e); }, isNumeric: function (e) { return !isNaN(e); }, isString: function (e) { return "[object String]" === Object.prototype.toString.call(e); }, }, }; }, { "./helpers/uri": 4, "./terms": 9 }, ], 9: [ function (e, t, r) { "use strict"; t.exports = { traffic: { utm: "utm", organic: "organic", referral: "referral", typein: "typein", }, referer: { referral: "referral", organic: "organic", social: "social", }, none: "(none)", oops: "(Houston, we have a problem)", }; }, {}, ], }, {}, [1] )(1); }); var wc_order_attribution = { params: { lifetime: 1.0e-5, session: 30, base64: false, ajaxurl: "https://gomoto.like-themes.com/wp-admin/admin-ajax.php", prefix: "wc_order_attribution_", allowTracking: true, }, fields: { source_type: "current.typ", referrer: "current_add.rf", utm_campaign: "current.cmp", utm_source: "current.src", utm_medium: "current.mdm", utm_content: "current.cnt", utm_id: "current.id", utm_term: "current.trm", utm_source_platform: "current.plt", utm_creative_format: "current.fmt", utm_marketing_tactic: "current.tct", session_entry: "current_add.ep", session_start_time: "current_add.fd", session_pages: "session.pgs", session_count: "udata.vst", user_agent: "udata.uag", }, }; !(function (t) { "use strict"; const e = t.params, n = (document.querySelector.bind(document), (t, e) => e.split(".").reduce((t, e) => t && t[e], t)), i = () => null, s = (t) => (null === t || t === undefined ? "" : t), o = "wc/store/checkout"; function a(t) { window.wp && window.wp.data && window.wp.data.dispatch && window.wc && window.wc.wcBlocksData && window.wp.data .dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY) .__internalSetExtensionData("woocommerce/order-attribution", t, !0); } function r() { return "undefined" != typeof sbjs; } function c() { if ( window.wp && window.wp.data && "function" == typeof window.wp.data.subscribe ) { const e = window.wp.data.subscribe(function () { e(), a(t.getAttributionData()); }, o); } } (t.getAttributionData = function () { const s = e.allowTracking && r() ? n : i, o = r() ? sbjs.get : {}, a = Object.entries(t.fields).map(([t, e]) => [t, s(o, e)]); return Object.fromEntries(a); }), (t.setOrderTracking = function (n) { if (((e.allowTracking = n), n)) { if (!r()) return; sbjs.init({ lifetime: Number(e.lifetime), session_length: Number(e.session), base64: Boolean(e.base64), timezone_offset: "0", }); } else !(function () { const t = window.location.hostname; [ "sbjs_current", "sbjs_current_add", "sbjs_first", "sbjs_first_add", "sbjs_session", "sbjs_udata", "sbjs_migrations", "sbjs_promo", ].forEach((e) => { document.cookie = `${e}=; path=/; max-age=-999; domain=.${t};`; }); })(); const i = t.getAttributionData(); !(function (t) { for (const e of document.querySelectorAll( "wc-order-attribution-inputs" )) e.values = t; })(i), a(i); }), t.setOrderTracking(e.allowTracking), "loading" === document.readyState ? document.addEventListener("DOMContentLoaded", c) : c(), window.customElements.define( "wc-order-attribution-inputs", class extends HTMLElement { constructor() { if ( (super(), (this._fieldNames = Object.keys(t.fields)), this.hasOwnProperty("_values")) ) { let t = this.values; delete this.values, (this.values = t || {}); } } connectedCallback() { this.innerHTML = ""; const t = new DocumentFragment(); for (const n of this._fieldNames) { const i = document.createElement("input"); (i.type = "hidden"), (i.name = `${e.prefix}${n}`), (i.value = s((this.values && this.values[n]) || "")), t.appendChild(i); } this.appendChild(t); } set values(t) { if (((this._values = t), this.isConnected)) for (const t of this._fieldNames) { const n = this.querySelector(`input[name="${e.prefix}${t}"]`); n ? (n.value = s(this.values[t])) : console.warn( `Field "${t}" not found. ` + "Most likely, the '' element was manipulated." ); } } get values() { return this._values; } } ); })(window.wc_order_attribution); /*! This file is auto-generated */ /*! * imagesLoaded PACKAGED v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ !(function (t, e) { "object" == typeof module && module.exports ? (module.exports = e()) : (t.EvEmitter = e()); })("undefined" != typeof window ? window : this, function () { function t() {} let e = t.prototype; return ( (e.on = function (t, e) { if (!t || !e) return this; let i = (this._events = this._events || {}), s = (i[t] = i[t] || []); return s.includes(e) || s.push(e), this; }), (e.once = function (t, e) { if (!t || !e) return this; this.on(t, e); let i = (this._onceEvents = this._onceEvents || {}); return ((i[t] = i[t] || {})[e] = !0), this; }), (e.off = function (t, e) { let i = this._events && this._events[t]; if (!i || !i.length) return this; let s = i.indexOf(e); return -1 != s && i.splice(s, 1), this; }), (e.emitEvent = function (t, e) { let i = this._events && this._events[t]; if (!i || !i.length) return this; (i = i.slice(0)), (e = e || []); let s = this._onceEvents && this._onceEvents[t]; for (let n of i) { s && s[n] && (this.off(t, n), delete s[n]), n.apply(this, e); } return this; }), (e.allOff = function () { return delete this._events, delete this._onceEvents, this; }), t ); }), /*! * imagesLoaded v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ (function (t, e) { "object" == typeof module && module.exports ? (module.exports = e(t, require("ev-emitter"))) : (t.imagesLoaded = e(t, t.EvEmitter)); })("undefined" != typeof window ? window : this, function (t, e) { let i = t.jQuery, s = t.console; function n(t, e, o) { if (!(this instanceof n)) return new n(t, e, o); let r = t; var h; ("string" == typeof t && (r = document.querySelectorAll(t)), r) ? ((this.elements = ((h = r), Array.isArray(h) ? h : "object" == typeof h && "number" == typeof h.length ? [...h] : [h])), (this.options = {}), "function" == typeof e ? (o = e) : Object.assign(this.options, e), o && this.on("always", o), this.getImages(), i && (this.jqDeferred = new i.Deferred()), setTimeout(this.check.bind(this))) : s.error(`Bad element for imagesLoaded ${r || t}`); } (n.prototype = Object.create(e.prototype)), (n.prototype.getImages = function () { (this.images = []), this.elements.forEach(this.addElementImages, this); }); const o = [1, 9, 11]; n.prototype.addElementImages = function (t) { "IMG" === t.nodeName && this.addImage(t), !0 === this.options.background && this.addElementBackgroundImages(t); let { nodeType: e } = t; if (!e || !o.includes(e)) return; let i = t.querySelectorAll("img"); for (let t of i) this.addImage(t); if ("string" == typeof this.options.background) { let e = t.querySelectorAll(this.options.background); for (let t of e) this.addElementBackgroundImages(t); } }; const r = /url\((['"])?(.*?)\1\)/gi; function h(t) { this.img = t; } function d(t, e) { (this.url = t), (this.element = e), (this.img = new Image()); } return ( (n.prototype.addElementBackgroundImages = function (t) { let e = getComputedStyle(t); if (!e) return; let i = r.exec(e.backgroundImage); for (; null !== i; ) { let s = i && i[2]; s && this.addBackground(s, t), (i = r.exec(e.backgroundImage)); } }), (n.prototype.addImage = function (t) { let e = new h(t); this.images.push(e); }), (n.prototype.addBackground = function (t, e) { let i = new d(t, e); this.images.push(i); }), (n.prototype.check = function () { if ( ((this.progressedCount = 0), (this.hasAnyBroken = !1), !this.images.length) ) return void this.complete(); let t = (t, e, i) => { setTimeout(() => { this.progress(t, e, i); }); }; this.images.forEach(function (e) { e.once("progress", t), e.check(); }); }), (n.prototype.progress = function (t, e, i) { this.progressedCount++, (this.hasAnyBroken = this.hasAnyBroken || !t.isLoaded), this.emitEvent("progress", [this, t, e]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, t), this.progressedCount === this.images.length && this.complete(), this.options.debug && s && s.log(`progress: ${i}`, t, e); }), (n.prototype.complete = function () { let t = this.hasAnyBroken ? "fail" : "done"; if ( ((this.isComplete = !0), this.emitEvent(t, [this]), this.emitEvent("always", [this]), this.jqDeferred) ) { let t = this.hasAnyBroken ? "reject" : "resolve"; this.jqDeferred[t](this); } }), (h.prototype = Object.create(e.prototype)), (h.prototype.check = function () { this.getIsImageComplete() ? this.confirm(0 !== this.img.naturalWidth, "naturalWidth") : ((this.proxyImage = new Image()), this.img.crossOrigin && (this.proxyImage.crossOrigin = this.img.crossOrigin), this.proxyImage.addEventListener("load", this), this.proxyImage.addEventListener("error", this), this.img.addEventListener("load", this), this.img.addEventListener("error", this), (this.proxyImage.src = this.img.currentSrc || this.img.src)); }), (h.prototype.getIsImageComplete = function () { return this.img.complete && this.img.naturalWidth; }), (h.prototype.confirm = function (t, e) { this.isLoaded = t; let { parentNode: i } = this.img, s = "PICTURE" === i.nodeName ? i : this.img; this.emitEvent("progress", [this, s, e]); }), (h.prototype.handleEvent = function (t) { let e = "on" + t.type; this[e] && this[e](t); }), (h.prototype.onload = function () { this.confirm(!0, "onload"), this.unbindEvents(); }), (h.prototype.onerror = function () { this.confirm(!1, "onerror"), this.unbindEvents(); }), (h.prototype.unbindEvents = function () { this.proxyImage.removeEventListener("load", this), this.proxyImage.removeEventListener("error", this), this.img.removeEventListener("load", this), this.img.removeEventListener("error", this); }), (d.prototype = Object.create(h.prototype)), (d.prototype.check = function () { this.img.addEventListener("load", this), this.img.addEventListener("error", this), (this.img.src = this.url), this.getIsImageComplete() && (this.confirm(0 !== this.img.naturalWidth, "naturalWidth"), this.unbindEvents()); }), (d.prototype.unbindEvents = function () { this.img.removeEventListener("load", this), this.img.removeEventListener("error", this); }), (d.prototype.confirm = function (t, e) { (this.isLoaded = t), this.emitEvent("progress", [this, this.element, e]); }), (n.makeJQueryPlugin = function (e) { (e = e || t.jQuery) && ((i = e), (i.fn.imagesLoaded = function (t, e) { return new n(this, t, e).jqDeferred.promise(i(this)); })); }), n.makeJQueryPlugin(), n ); }); /*! This file is auto-generated */ /*! * Masonry PACKAGED v4.2.2 * Cascading grid layout library * https://masonry.desandro.com * MIT License * by David DeSandro */ !(function (t, e) { "function" == typeof define && define.amd ? define("jquery-bridget/jquery-bridget", ["jquery"], function (i) { return e(t, i); }) : "object" == typeof module && module.exports ? (module.exports = e(t, require("jquery"))) : (t.jQueryBridget = e(t, t.jQuery)); })(window, function (t, e) { "use strict"; function i(i, r, a) { function h(t, e, n) { var o, r = "$()." + i + '("' + e + '")'; return ( t.each(function (t, h) { var u = a.data(h, i); if (!u) return void s( i + " not initialized. Cannot call methods, i.e. " + r ); var d = u[e]; if (!d || "_" == e.charAt(0)) return void s(r + " is not a valid method"); var l = d.apply(u, n); o = void 0 === o ? l : o; }), void 0 !== o ? o : t ); } function u(t, e) { t.each(function (t, n) { var o = a.data(n, i); o ? (o.option(e), o._init()) : ((o = new r(n, e)), a.data(n, i, o)); }); } (a = a || e || t.jQuery), a && (r.prototype.option || (r.prototype.option = function (t) { a.isPlainObject(t) && (this.options = a.extend(!0, this.options, t)); }), (a.fn[i] = function (t) { if ("string" == typeof t) { var e = o.call(arguments, 1); return h(this, t, e); } return u(this, t), this; }), n(a)); } function n(t) { !t || (t && t.bridget) || (t.bridget = i); } var o = Array.prototype.slice, r = t.console, s = "undefined" == typeof r ? function () {} : function (t) { r.error(t); }; return n(e || t.jQuery), i; }), (function (t, e) { "function" == typeof define && define.amd ? define("ev-emitter/ev-emitter", e) : "object" == typeof module && module.exports ? (module.exports = e()) : (t.EvEmitter = e()); })("undefined" != typeof window ? window : this, function () { function t() {} var e = t.prototype; return ( (e.on = function (t, e) { if (t && e) { var i = (this._events = this._events || {}), n = (i[t] = i[t] || []); return -1 == n.indexOf(e) && n.push(e), this; } }), (e.once = function (t, e) { if (t && e) { this.on(t, e); var i = (this._onceEvents = this._onceEvents || {}), n = (i[t] = i[t] || {}); return (n[e] = !0), this; } }), (e.off = function (t, e) { var i = this._events && this._events[t]; if (i && i.length) { var n = i.indexOf(e); return -1 != n && i.splice(n, 1), this; } }), (e.emitEvent = function (t, e) { var i = this._events && this._events[t]; if (i && i.length) { (i = i.slice(0)), (e = e || []); for ( var n = this._onceEvents && this._onceEvents[t], o = 0; o < i.length; o++ ) { var r = i[o], s = n && n[r]; s && (this.off(t, r), delete n[r]), r.apply(this, e); } return this; } }), (e.allOff = function () { delete this._events, delete this._onceEvents; }), t ); }), (function (t, e) { "function" == typeof define && define.amd ? define("get-size/get-size", e) : "object" == typeof module && module.exports ? (module.exports = e()) : (t.getSize = e()); })(window, function () { "use strict"; function t(t) { var e = parseFloat(t), i = -1 == t.indexOf("%") && !isNaN(e); return i && e; } function e() {} function i() { for ( var t = { width: 0, height: 0, innerWidth: 0, innerHeight: 0, outerWidth: 0, outerHeight: 0, }, e = 0; u > e; e++ ) { var i = h[e]; t[i] = 0; } return t; } function n(t) { var e = getComputedStyle(t); return ( e || a( "Style returned " + e + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1" ), e ); } function o() { if (!d) { d = !0; var e = document.createElement("div"); (e.style.width = "200px"), (e.style.padding = "1px 2px 3px 4px"), (e.style.borderStyle = "solid"), (e.style.borderWidth = "1px 2px 3px 4px"), (e.style.boxSizing = "border-box"); var i = document.body || document.documentElement; i.appendChild(e); var o = n(e); (s = 200 == Math.round(t(o.width))), (r.isBoxSizeOuter = s), i.removeChild(e); } } function r(e) { if ( (o(), "string" == typeof e && (e = document.querySelector(e)), e && "object" == typeof e && e.nodeType) ) { var r = n(e); if ("none" == r.display) return i(); var a = {}; (a.width = e.offsetWidth), (a.height = e.offsetHeight); for ( var d = (a.isBorderBox = "border-box" == r.boxSizing), l = 0; u > l; l++ ) { var c = h[l], f = r[c], m = parseFloat(f); a[c] = isNaN(m) ? 0 : m; } var p = a.paddingLeft + a.paddingRight, g = a.paddingTop + a.paddingBottom, y = a.marginLeft + a.marginRight, v = a.marginTop + a.marginBottom, _ = a.borderLeftWidth + a.borderRightWidth, z = a.borderTopWidth + a.borderBottomWidth, E = d && s, b = t(r.width); b !== !1 && (a.width = b + (E ? 0 : p + _)); var x = t(r.height); return ( x !== !1 && (a.height = x + (E ? 0 : g + z)), (a.innerWidth = a.width - (p + _)), (a.innerHeight = a.height - (g + z)), (a.outerWidth = a.width + y), (a.outerHeight = a.height + v), a ); } } var s, a = "undefined" == typeof console ? e : function (t) { console.error(t); }, h = [ "paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth", ], u = h.length, d = !1; return r; }), (function (t, e) { "use strict"; "function" == typeof define && define.amd ? define("desandro-matches-selector/matches-selector", e) : "object" == typeof module && module.exports ? (module.exports = e()) : (t.matchesSelector = e()); })(window, function () { "use strict"; var t = (function () { var t = window.Element.prototype; if (t.matches) return "matches"; if (t.matchesSelector) return "matchesSelector"; for (var e = ["webkit", "moz", "ms", "o"], i = 0; i < e.length; i++) { var n = e[i], o = n + "MatchesSelector"; if (t[o]) return o; } })(); return function (e, i) { return e[t](i); }; }), (function (t, e) { "function" == typeof define && define.amd ? define( "fizzy-ui-utils/utils", ["desandro-matches-selector/matches-selector"], function (i) { return e(t, i); } ) : "object" == typeof module && module.exports ? (module.exports = e(t, require("desandro-matches-selector"))) : (t.fizzyUIUtils = e(t, t.matchesSelector)); })(window, function (t, e) { var i = {}; (i.extend = function (t, e) { for (var i in e) t[i] = e[i]; return t; }), (i.modulo = function (t, e) { return ((t % e) + e) % e; }); var n = Array.prototype.slice; (i.makeArray = function (t) { if (Array.isArray(t)) return t; if (null === t || void 0 === t) return []; var e = "object" == typeof t && "number" == typeof t.length; return e ? n.call(t) : [t]; }), (i.removeFrom = function (t, e) { var i = t.indexOf(e); -1 != i && t.splice(i, 1); }), (i.getParent = function (t, i) { for (; t.parentNode && t != document.body; ) if (((t = t.parentNode), e(t, i))) return t; }), (i.getQueryElement = function (t) { return "string" == typeof t ? document.querySelector(t) : t; }), (i.handleEvent = function (t) { var e = "on" + t.type; this[e] && this[e](t); }), (i.filterFindElements = function (t, n) { t = i.makeArray(t); var o = []; return ( t.forEach(function (t) { if (t instanceof HTMLElement) { if (!n) return void o.push(t); e(t, n) && o.push(t); for (var i = t.querySelectorAll(n), r = 0; r < i.length; r++) o.push(i[r]); } }), o ); }), (i.debounceMethod = function (t, e, i) { i = i || 100; var n = t.prototype[e], o = e + "Timeout"; t.prototype[e] = function () { var t = this[o]; clearTimeout(t); var e = arguments, r = this; this[o] = setTimeout(function () { n.apply(r, e), delete r[o]; }, i); }; }), (i.docReady = function (t) { var e = document.readyState; "complete" == e || "interactive" == e ? setTimeout(t) : document.addEventListener("DOMContentLoaded", t); }), (i.toDashed = function (t) { return t .replace(/(.)([A-Z])/g, function (t, e, i) { return e + "-" + i; }) .toLowerCase(); }); var o = t.console; return ( (i.htmlInit = function (e, n) { i.docReady(function () { var r = i.toDashed(n), s = "data-" + r, a = document.querySelectorAll("[" + s + "]"), h = document.querySelectorAll(".js-" + r), u = i.makeArray(a).concat(i.makeArray(h)), d = s + "-options", l = t.jQuery; u.forEach(function (t) { var i, r = t.getAttribute(s) || t.getAttribute(d); try { i = r && JSON.parse(r); } catch (a) { return void ( o && o.error("Error parsing " + s + " on " + t.className + ": " + a) ); } var h = new e(t, i); l && l.data(t, n, h); }); }); }), i ); }), (function (t, e) { "function" == typeof define && define.amd ? define( "outlayer/item", ["ev-emitter/ev-emitter", "get-size/get-size"], e ) : "object" == typeof module && module.exports ? (module.exports = e(require("ev-emitter"), require("get-size"))) : ((t.Outlayer = {}), (t.Outlayer.Item = e(t.EvEmitter, t.getSize))); })(window, function (t, e) { "use strict"; function i(t) { for (var e in t) return !1; return (e = null), !0; } function n(t, e) { t && ((this.element = t), (this.layout = e), (this.position = { x: 0, y: 0 }), this._create()); } function o(t) { return t.replace(/([A-Z])/g, function (t) { return "-" + t.toLowerCase(); }); } var r = document.documentElement.style, s = "string" == typeof r.transition ? "transition" : "WebkitTransition", a = "string" == typeof r.transform ? "transform" : "WebkitTransform", h = { WebkitTransition: "webkitTransitionEnd", transition: "transitionend", }[s], u = { transform: a, transition: s, transitionDuration: s + "Duration", transitionProperty: s + "Property", transitionDelay: s + "Delay", }, d = (n.prototype = Object.create(t.prototype)); (d.constructor = n), (d._create = function () { (this._transn = { ingProperties: {}, clean: {}, onEnd: {} }), this.css({ position: "absolute" }); }), (d.handleEvent = function (t) { var e = "on" + t.type; this[e] && this[e](t); }), (d.getSize = function () { this.size = e(this.element); }), (d.css = function (t) { var e = this.element.style; for (var i in t) { var n = u[i] || i; e[n] = t[i]; } }), (d.getPosition = function () { var t = getComputedStyle(this.element), e = this.layout._getOption("originLeft"), i = this.layout._getOption("originTop"), n = t[e ? "left" : "right"], o = t[i ? "top" : "bottom"], r = parseFloat(n), s = parseFloat(o), a = this.layout.size; -1 != n.indexOf("%") && (r = (r / 100) * a.width), -1 != o.indexOf("%") && (s = (s / 100) * a.height), (r = isNaN(r) ? 0 : r), (s = isNaN(s) ? 0 : s), (r -= e ? a.paddingLeft : a.paddingRight), (s -= i ? a.paddingTop : a.paddingBottom), (this.position.x = r), (this.position.y = s); }), (d.layoutPosition = function () { var t = this.layout.size, e = {}, i = this.layout._getOption("originLeft"), n = this.layout._getOption("originTop"), o = i ? "paddingLeft" : "paddingRight", r = i ? "left" : "right", s = i ? "right" : "left", a = this.position.x + t[o]; (e[r] = this.getXValue(a)), (e[s] = ""); var h = n ? "paddingTop" : "paddingBottom", u = n ? "top" : "bottom", d = n ? "bottom" : "top", l = this.position.y + t[h]; (e[u] = this.getYValue(l)), (e[d] = ""), this.css(e), this.emitEvent("layout", [this]); }), (d.getXValue = function (t) { var e = this.layout._getOption("horizontal"); return this.layout.options.percentPosition && !e ? (t / this.layout.size.width) * 100 + "%" : t + "px"; }), (d.getYValue = function (t) { var e = this.layout._getOption("horizontal"); return this.layout.options.percentPosition && e ? (t / this.layout.size.height) * 100 + "%" : t + "px"; }), (d._transitionTo = function (t, e) { this.getPosition(); var i = this.position.x, n = this.position.y, o = t == this.position.x && e == this.position.y; if ((this.setPosition(t, e), o && !this.isTransitioning)) return void this.layoutPosition(); var r = t - i, s = e - n, a = {}; (a.transform = this.getTranslate(r, s)), this.transition({ to: a, onTransitionEnd: { transform: this.layoutPosition }, isCleaning: !0, }); }), (d.getTranslate = function (t, e) { var i = this.layout._getOption("originLeft"), n = this.layout._getOption("originTop"); return ( (t = i ? t : -t), (e = n ? e : -e), "translate3d(" + t + "px, " + e + "px, 0)" ); }), (d.goTo = function (t, e) { this.setPosition(t, e), this.layoutPosition(); }), (d.moveTo = d._transitionTo), (d.setPosition = function (t, e) { (this.position.x = parseFloat(t)), (this.position.y = parseFloat(e)); }), (d._nonTransition = function (t) { this.css(t.to), t.isCleaning && this._removeStyles(t.to); for (var e in t.onTransitionEnd) t.onTransitionEnd[e].call(this); }), (d.transition = function (t) { if (!parseFloat(this.layout.options.transitionDuration)) return void this._nonTransition(t); var e = this._transn; for (var i in t.onTransitionEnd) e.onEnd[i] = t.onTransitionEnd[i]; for (i in t.to) (e.ingProperties[i] = !0), t.isCleaning && (e.clean[i] = !0); if (t.from) { this.css(t.from); var n = this.element.offsetHeight; n = null; } this.enableTransition(t.to), this.css(t.to), (this.isTransitioning = !0); }); var l = "opacity," + o(a); (d.enableTransition = function () { if (!this.isTransitioning) { var t = this.layout.options.transitionDuration; (t = "number" == typeof t ? t + "ms" : t), this.css({ transitionProperty: l, transitionDuration: t, transitionDelay: this.staggerDelay || 0, }), this.element.addEventListener(h, this, !1); } }), (d.onwebkitTransitionEnd = function (t) { this.ontransitionend(t); }), (d.onotransitionend = function (t) { this.ontransitionend(t); }); var c = { "-webkit-transform": "transform" }; (d.ontransitionend = function (t) { if (t.target === this.element) { var e = this._transn, n = c[t.propertyName] || t.propertyName; if ( (delete e.ingProperties[n], i(e.ingProperties) && this.disableTransition(), n in e.clean && ((this.element.style[t.propertyName] = ""), delete e.clean[n]), n in e.onEnd) ) { var o = e.onEnd[n]; o.call(this), delete e.onEnd[n]; } this.emitEvent("transitionEnd", [this]); } }), (d.disableTransition = function () { this.removeTransitionStyles(), this.element.removeEventListener(h, this, !1), (this.isTransitioning = !1); }), (d._removeStyles = function (t) { var e = {}; for (var i in t) e[i] = ""; this.css(e); }); var f = { transitionProperty: "", transitionDuration: "", transitionDelay: "", }; return ( (d.removeTransitionStyles = function () { this.css(f); }), (d.stagger = function (t) { (t = isNaN(t) ? 0 : t), (this.staggerDelay = t + "ms"); }), (d.removeElem = function () { this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]); }), (d.remove = function () { return s && parseFloat(this.layout.options.transitionDuration) ? (this.once("transitionEnd", function () { this.removeElem(); }), void this.hide()) : void this.removeElem(); }), (d.reveal = function () { delete this.isHidden, this.css({ display: "" }); var t = this.layout.options, e = {}, i = this.getHideRevealTransitionEndProperty("visibleStyle"); (e[i] = this.onRevealTransitionEnd), this.transition({ from: t.hiddenStyle, to: t.visibleStyle, isCleaning: !0, onTransitionEnd: e, }); }), (d.onRevealTransitionEnd = function () { this.isHidden || this.emitEvent("reveal"); }), (d.getHideRevealTransitionEndProperty = function (t) { var e = this.layout.options[t]; if (e.opacity) return "opacity"; for (var i in e) return i; }), (d.hide = function () { (this.isHidden = !0), this.css({ display: "" }); var t = this.layout.options, e = {}, i = this.getHideRevealTransitionEndProperty("hiddenStyle"); (e[i] = this.onHideTransitionEnd), this.transition({ from: t.visibleStyle, to: t.hiddenStyle, isCleaning: !0, onTransitionEnd: e, }); }), (d.onHideTransitionEnd = function () { this.isHidden && (this.css({ display: "none" }), this.emitEvent("hide")); }), (d.destroy = function () { this.css({ position: "", left: "", right: "", top: "", bottom: "", transition: "", transform: "", }); }), n ); }), (function (t, e) { "use strict"; "function" == typeof define && define.amd ? define( "outlayer/outlayer", [ "ev-emitter/ev-emitter", "get-size/get-size", "fizzy-ui-utils/utils", "./item", ], function (i, n, o, r) { return e(t, i, n, o, r); } ) : "object" == typeof module && module.exports ? (module.exports = e( t, require("ev-emitter"), require("get-size"), require("fizzy-ui-utils"), require("./item") )) : (t.Outlayer = e( t, t.EvEmitter, t.getSize, t.fizzyUIUtils, t.Outlayer.Item )); })(window, function (t, e, i, n, o) { "use strict"; function r(t, e) { var i = n.getQueryElement(t); if (!i) return void ( h && h.error( "Bad element for " + this.constructor.namespace + ": " + (i || t) ) ); (this.element = i), u && (this.$element = u(this.element)), (this.options = n.extend({}, this.constructor.defaults)), this.option(e); var o = ++l; (this.element.outlayerGUID = o), (c[o] = this), this._create(); var r = this._getOption("initLayout"); r && this.layout(); } function s(t) { function e() { t.apply(this, arguments); } return ( (e.prototype = Object.create(t.prototype)), (e.prototype.constructor = e), e ); } function a(t) { if ("number" == typeof t) return t; var e = t.match(/(^\d*\.?\d*)(\w*)/), i = e && e[1], n = e && e[2]; if (!i.length) return 0; i = parseFloat(i); var o = m[n] || 1; return i * o; } var h = t.console, u = t.jQuery, d = function () {}, l = 0, c = {}; (r.namespace = "outlayer"), (r.Item = o), (r.defaults = { containerStyle: { position: "relative" }, initLayout: !0, originLeft: !0, originTop: !0, resize: !0, resizeContainer: !0, transitionDuration: "0.4s", hiddenStyle: { opacity: 0, transform: "scale(0.001)" }, visibleStyle: { opacity: 1, transform: "scale(1)" }, }); var f = r.prototype; n.extend(f, e.prototype), (f.option = function (t) { n.extend(this.options, t); }), (f._getOption = function (t) { var e = this.constructor.compatOptions[t]; return e && void 0 !== this.options[e] ? this.options[e] : this.options[t]; }), (r.compatOptions = { initLayout: "isInitLayout", horizontal: "isHorizontal", layoutInstant: "isLayoutInstant", originLeft: "isOriginLeft", originTop: "isOriginTop", resize: "isResizeBound", resizeContainer: "isResizingContainer", }), (f._create = function () { this.reloadItems(), (this.stamps = []), this.stamp(this.options.stamp), n.extend(this.element.style, this.options.containerStyle); var t = this._getOption("resize"); t && this.bindResize(); }), (f.reloadItems = function () { this.items = this._itemize(this.element.children); }), (f._itemize = function (t) { for ( var e = this._filterFindItemElements(t), i = this.constructor.Item, n = [], o = 0; o < e.length; o++ ) { var r = e[o], s = new i(r, this); n.push(s); } return n; }), (f._filterFindItemElements = function (t) { return n.filterFindElements(t, this.options.itemSelector); }), (f.getItemElements = function () { return this.items.map(function (t) { return t.element; }); }), (f.layout = function () { this._resetLayout(), this._manageStamps(); var t = this._getOption("layoutInstant"), e = void 0 !== t ? t : !this._isLayoutInited; this.layoutItems(this.items, e), (this._isLayoutInited = !0); }), (f._init = f.layout), (f._resetLayout = function () { this.getSize(); }), (f.getSize = function () { this.size = i(this.element); }), (f._getMeasurement = function (t, e) { var n, o = this.options[t]; o ? ("string" == typeof o ? (n = this.element.querySelector(o)) : o instanceof HTMLElement && (n = o), (this[t] = n ? i(n)[e] : o)) : (this[t] = 0); }), (f.layoutItems = function (t, e) { (t = this._getItemsForLayout(t)), this._layoutItems(t, e), this._postLayout(); }), (f._getItemsForLayout = function (t) { return t.filter(function (t) { return !t.isIgnored; }); }), (f._layoutItems = function (t, e) { if ((this._emitCompleteOnItems("layout", t), t && t.length)) { var i = []; t.forEach(function (t) { var n = this._getItemLayoutPosition(t); (n.item = t), (n.isInstant = e || t.isLayoutInstant), i.push(n); }, this), this._processLayoutQueue(i); } }), (f._getItemLayoutPosition = function () { return { x: 0, y: 0 }; }), (f._processLayoutQueue = function (t) { this.updateStagger(), t.forEach(function (t, e) { this._positionItem(t.item, t.x, t.y, t.isInstant, e); }, this); }), (f.updateStagger = function () { var t = this.options.stagger; return null === t || void 0 === t ? void (this.stagger = 0) : ((this.stagger = a(t)), this.stagger); }), (f._positionItem = function (t, e, i, n, o) { n ? t.goTo(e, i) : (t.stagger(o * this.stagger), t.moveTo(e, i)); }), (f._postLayout = function () { this.resizeContainer(); }), (f.resizeContainer = function () { var t = this._getOption("resizeContainer"); if (t) { var e = this._getContainerSize(); e && (this._setContainerMeasure(e.width, !0), this._setContainerMeasure(e.height, !1)); } }), (f._getContainerSize = d), (f._setContainerMeasure = function (t, e) { if (void 0 !== t) { var i = this.size; i.isBorderBox && (t += e ? i.paddingLeft + i.paddingRight + i.borderLeftWidth + i.borderRightWidth : i.paddingBottom + i.paddingTop + i.borderTopWidth + i.borderBottomWidth), (t = Math.max(t, 0)), (this.element.style[e ? "width" : "height"] = t + "px"); } }), (f._emitCompleteOnItems = function (t, e) { function i() { o.dispatchEvent(t + "Complete", null, [e]); } function n() { s++, s == r && i(); } var o = this, r = e.length; if (!e || !r) return void i(); var s = 0; e.forEach(function (e) { e.once(t, n); }); }), (f.dispatchEvent = function (t, e, i) { var n = e ? [e].concat(i) : i; if ((this.emitEvent(t, n), u)) if (((this.$element = this.$element || u(this.element)), e)) { var o = u.Event(e); (o.type = t), this.$element.trigger(o, i); } else this.$element.trigger(t, i); }), (f.ignore = function (t) { var e = this.getItem(t); e && (e.isIgnored = !0); }), (f.unignore = function (t) { var e = this.getItem(t); e && delete e.isIgnored; }), (f.stamp = function (t) { (t = this._find(t)), t && ((this.stamps = this.stamps.concat(t)), t.forEach(this.ignore, this)); }), (f.unstamp = function (t) { (t = this._find(t)), t && t.forEach(function (t) { n.removeFrom(this.stamps, t), this.unignore(t); }, this); }), (f._find = function (t) { return t ? ("string" == typeof t && (t = this.element.querySelectorAll(t)), (t = n.makeArray(t))) : void 0; }), (f._manageStamps = function () { this.stamps && this.stamps.length && (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this)); }), (f._getBoundingRect = function () { var t = this.element.getBoundingClientRect(), e = this.size; this._boundingRect = { left: t.left + e.paddingLeft + e.borderLeftWidth, top: t.top + e.paddingTop + e.borderTopWidth, right: t.right - (e.paddingRight + e.borderRightWidth), bottom: t.bottom - (e.paddingBottom + e.borderBottomWidth), }; }), (f._manageStamp = d), (f._getElementOffset = function (t) { var e = t.getBoundingClientRect(), n = this._boundingRect, o = i(t), r = { left: e.left - n.left - o.marginLeft, top: e.top - n.top - o.marginTop, right: n.right - e.right - o.marginRight, bottom: n.bottom - e.bottom - o.marginBottom, }; return r; }), (f.handleEvent = n.handleEvent), (f.bindResize = function () { t.addEventListener("resize", this), (this.isResizeBound = !0); }), (f.unbindResize = function () { t.removeEventListener("resize", this), (this.isResizeBound = !1); }), (f.onresize = function () { this.resize(); }), n.debounceMethod(r, "onresize", 100), (f.resize = function () { this.isResizeBound && this.needsResizeLayout() && this.layout(); }), (f.needsResizeLayout = function () { var t = i(this.element), e = this.size && t; return e && t.innerWidth !== this.size.innerWidth; }), (f.addItems = function (t) { var e = this._itemize(t); return e.length && (this.items = this.items.concat(e)), e; }), (f.appended = function (t) { var e = this.addItems(t); e.length && (this.layoutItems(e, !0), this.reveal(e)); }), (f.prepended = function (t) { var e = this._itemize(t); if (e.length) { var i = this.items.slice(0); (this.items = e.concat(i)), this._resetLayout(), this._manageStamps(), this.layoutItems(e, !0), this.reveal(e), this.layoutItems(i); } }), (f.reveal = function (t) { if ((this._emitCompleteOnItems("reveal", t), t && t.length)) { var e = this.updateStagger(); t.forEach(function (t, i) { t.stagger(i * e), t.reveal(); }); } }), (f.hide = function (t) { if ((this._emitCompleteOnItems("hide", t), t && t.length)) { var e = this.updateStagger(); t.forEach(function (t, i) { t.stagger(i * e), t.hide(); }); } }), (f.revealItemElements = function (t) { var e = this.getItems(t); this.reveal(e); }), (f.hideItemElements = function (t) { var e = this.getItems(t); this.hide(e); }), (f.getItem = function (t) { for (var e = 0; e < this.items.length; e++) { var i = this.items[e]; if (i.element == t) return i; } }), (f.getItems = function (t) { t = n.makeArray(t); var e = []; return ( t.forEach(function (t) { var i = this.getItem(t); i && e.push(i); }, this), e ); }), (f.remove = function (t) { var e = this.getItems(t); this._emitCompleteOnItems("remove", e), e && e.length && e.forEach(function (t) { t.remove(), n.removeFrom(this.items, t); }, this); }), (f.destroy = function () { var t = this.element.style; (t.height = ""), (t.position = ""), (t.width = ""), this.items.forEach(function (t) { t.destroy(); }), this.unbindResize(); var e = this.element.outlayerGUID; delete c[e], delete this.element.outlayerGUID, u && u.removeData(this.element, this.constructor.namespace); }), (r.data = function (t) { t = n.getQueryElement(t); var e = t && t.outlayerGUID; return e && c[e]; }), (r.create = function (t, e) { var i = s(r); return ( (i.defaults = n.extend({}, r.defaults)), n.extend(i.defaults, e), (i.compatOptions = n.extend({}, r.compatOptions)), (i.namespace = t), (i.data = r.data), (i.Item = s(o)), n.htmlInit(i, t), u && u.bridget && u.bridget(t, i), i ); }); var m = { ms: 1, s: 1e3 }; return (r.Item = o), r; }), (function (t, e) { "function" == typeof define && define.amd ? define(["outlayer/outlayer", "get-size/get-size"], e) : "object" == typeof module && module.exports ? (module.exports = e(require("outlayer"), require("get-size"))) : (t.Masonry = e(t.Outlayer, t.getSize)); })(window, function (t, e) { var i = t.create("masonry"); i.compatOptions.fitWidth = "isFitWidth"; var n = i.prototype; return ( (n._resetLayout = function () { this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(), (this.colYs = []); for (var t = 0; t < this.cols; t++) this.colYs.push(0); (this.maxY = 0), (this.horizontalColIndex = 0); }), (n.measureColumns = function () { if ((this.getContainerWidth(), !this.columnWidth)) { var t = this.items[0], i = t && t.element; this.columnWidth = (i && e(i).outerWidth) || this.containerWidth; } var n = (this.columnWidth += this.gutter), o = this.containerWidth + this.gutter, r = o / n, s = n - (o % n), a = s && 1 > s ? "round" : "floor"; (r = Math[a](r)), (this.cols = Math.max(r, 1)); }), (n.getContainerWidth = function () { var t = this._getOption("fitWidth"), i = t ? this.element.parentNode : this.element, n = e(i); this.containerWidth = n && n.innerWidth; }), (n._getItemLayoutPosition = function (t) { t.getSize(); var e = t.size.outerWidth % this.columnWidth, i = e && 1 > e ? "round" : "ceil", n = Math[i](t.size.outerWidth / this.columnWidth); n = Math.min(n, this.cols); for ( var o = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", r = this[o](n, t), s = { x: this.columnWidth * r.col, y: r.y }, a = r.y + t.size.outerHeight, h = n + r.col, u = r.col; h > u; u++ ) this.colYs[u] = a; return s; }), (n._getTopColPosition = function (t) { var e = this._getTopColGroup(t), i = Math.min.apply(Math, e); return { col: e.indexOf(i), y: i }; }), (n._getTopColGroup = function (t) { if (2 > t) return this.colYs; for (var e = [], i = this.cols + 1 - t, n = 0; i > n; n++) e[n] = this._getColGroupY(n, t); return e; }), (n._getColGroupY = function (t, e) { if (2 > e) return this.colYs[t]; var i = this.colYs.slice(t, t + e); return Math.max.apply(Math, i); }), (n._getHorizontalColPosition = function (t, e) { var i = this.horizontalColIndex % this.cols, n = t > 1 && i + t > this.cols; i = n ? 0 : i; var o = e.size.outerWidth && e.size.outerHeight; return ( (this.horizontalColIndex = o ? i + t : this.horizontalColIndex), { col: i, y: this._getColGroupY(i, t) } ); }), (n._manageStamp = function (t) { var i = e(t), n = this._getElementOffset(t), o = this._getOption("originLeft"), r = o ? n.left : n.right, s = r + i.outerWidth, a = Math.floor(r / this.columnWidth); a = Math.max(0, a); var h = Math.floor(s / this.columnWidth); (h -= s % this.columnWidth ? 0 : 1), (h = Math.min(this.cols - 1, h)); for ( var u = this._getOption("originTop"), d = (u ? n.top : n.bottom) + i.outerHeight, l = a; h >= l; l++ ) this.colYs[l] = Math.max(d, this.colYs[l]); }), (n._getContainerSize = function () { this.maxY = Math.max.apply(Math, this.colYs); var t = { height: this.maxY }; return ( this._getOption("fitWidth") && (t.width = this._getContainerFitWidth()), t ); }), (n._getContainerFitWidth = function () { for (var t = 0, e = this.cols; --e && 0 === this.colYs[e]; ) t++; return (this.cols - t) * this.columnWidth - this.gutter; }), (n.needsResizeLayout = function () { var t = this.containerWidth; return this.getContainerWidth(), t != this.containerWidth; }), i ); }); /*! * Masonry v2 shim * to maintain backwards compatibility * as of Masonry v3.1.2 * * Cascading grid layout library * http://masonry.desandro.com * MIT License * by David DeSandro */ !(function (a) { "use strict"; var b = a.Masonry; (b.prototype._remapV2Options = function () { this._remapOption("gutterWidth", "gutter"), this._remapOption("isResizable", "isResizeBound"), this._remapOption("isRTL", "isOriginLeft", function (a) { return !a; }); var a = this.options.isAnimated; if ( (void 0 !== a && (this.options.transitionDuration = a ? this.options.transitionDuration : 0), void 0 === a || a) ) { var b = this.options.animationOptions, c = b && b.duration; c && (this.options.transitionDuration = "string" == typeof c ? c : c + "ms"); } }), (b.prototype._remapOption = function (a, b, c) { var d = this.options[a]; void 0 !== d && (this.options[b] = c ? c(d) : d); }); var c = b.prototype._create; b.prototype._create = function () { var a = this; this._remapV2Options(), c.apply(this, arguments), setTimeout(function () { jQuery(a.element).addClass("masonry"); }, 0); }; var d = b.prototype.layout; b.prototype.layout = function () { this._remapV2Options(), d.apply(this, arguments); }; var e = b.prototype.option; b.prototype.option = function () { e.apply(this, arguments), this._remapV2Options(); }; var f = b.prototype._itemize; b.prototype._itemize = function (a) { var b = f.apply(this, arguments); return jQuery(a).addClass("masonry-brick"), b; }; var g = b.prototype.measureColumns; (b.prototype.measureColumns = function () { var a = this.options.columnWidth; a && "function" == typeof a && (this.getContainerWidth(), (this.columnWidth = a(this.containerWidth))), g.apply(this, arguments); }), (b.prototype.reload = function () { this.reloadItems.apply(this, arguments), this.layout.apply(this); }); var h = b.prototype.destroy; b.prototype.destroy = function () { var a = this.getItemElements(); jQuery(this.element).removeClass("masonry"), jQuery(a).removeClass("masonry-brick"), h.apply(this, arguments); }; })(window); !(function (t) { "use strict"; "function" == typeof define && define.amd ? define(["jquery"], t) : "undefined" != typeof module && module.exports ? (module.exports = t(require("jquery"))) : t(jQuery); })(function (t) { var e = -1, o = -1, a = function (t) { return parseFloat(t) || 0; }, i = function (e) { var o = 1, i = t(e), n = null, r = []; return ( i.each(function () { var e = t(this), i = e.offset().top - a(e.css("margin-top")), s = r.length > 0 ? r[r.length - 1] : null; null === s ? r.push(e) : Math.floor(Math.abs(n - i)) <= o ? (r[r.length - 1] = s.add(e)) : r.push(e), (n = i); }), r ); }, n = function (e) { var o = { byRow: !0, property: "height", target: null, remove: !1 }; return "object" == typeof e ? t.extend(o, e) : ("boolean" == typeof e ? (o.byRow = e) : "remove" === e && (o.remove = !0), o); }, r = (t.fn.matchHeight = function (e) { var o = n(e); if (o.remove) { var a = this; return ( this.css(o.property, ""), t.each(r._groups, function (t, e) { e.elements = e.elements.not(a); }), this ); } return this.length <= 1 && !o.target ? this : (r._groups.push({ elements: this, options: o }), r._apply(this, o), this); }); (r.version = "master"), (r._groups = []), (r._throttle = 80), (r._maintainScroll = !1), (r._beforeUpdate = null), (r._afterUpdate = null), (r._rows = i), (r._parse = a), (r._parseOptions = n), (r._apply = function (e, o) { var s = n(o), h = t(e), l = [h], c = t(window).scrollTop(), p = t("html").outerHeight(!0), d = h.parents().filter(":hidden"); return ( d.each(function () { var e = t(this); e.data("style-cache", e.attr("style")); }), d.css("display", "block"), s.byRow && !s.target && (h.each(function () { var e = t(this), o = e.css("display"); "inline-block" !== o && "flex" !== o && "inline-flex" !== o && (o = "block"), e.data("style-cache", e.attr("style")), e.css({ display: o, "padding-top": "0", "padding-bottom": "0", "margin-top": "0", "margin-bottom": "0", "border-top-width": "0", "border-bottom-width": "0", height: "100px", overflow: "hidden", }); }), (l = i(h)), h.each(function () { var e = t(this); e.attr("style", e.data("style-cache") || ""); })), t.each(l, function (e, o) { var i = t(o), n = 0; if (s.target) n = s.target.outerHeight(!1); else { if (s.byRow && i.length <= 1) return void i.css(s.property, ""); i.each(function () { var e = t(this), o = e.attr("style"), a = e.css("display"); "inline-block" !== a && "flex" !== a && "inline-flex" !== a && (a = "block"); var i = { display: a }; (i[s.property] = ""), e.css(i), e.outerHeight(!1) > n && (n = e.outerHeight(!1)), o ? e.attr("style", o) : e.css("display", ""); }); } i.each(function () { var e = t(this), o = 0; (s.target && e.is(s.target)) || ("border-box" !== e.css("box-sizing") && ((o += a(e.css("border-top-width")) + a(e.css("border-bottom-width"))), (o += a(e.css("padding-top")) + a(e.css("padding-bottom")))), e.css(s.property, n - o + "px")); }); }), d.each(function () { var e = t(this); e.attr("style", e.data("style-cache") || null); }), r._maintainScroll && t(window).scrollTop((c / p) * t("html").outerHeight(!0)), this ); }), (r._applyDataApi = function () { var e = {}; t("[data-match-height], [data-mh]").each(function () { var o = t(this), a = o.attr("data-mh") || o.attr("data-match-height"); a in e ? (e[a] = e[a].add(o)) : (e[a] = o); }), t.each(e, function () { this.matchHeight(!0); }); }); var s = function (e) { r._beforeUpdate && r._beforeUpdate(e, r._groups), t.each(r._groups, function () { r._apply(this.elements, this.options); }), r._afterUpdate && r._afterUpdate(e, r._groups); }; (r._update = function (a, i) { if (i && "resize" === i.type) { var n = t(window).width(); if (n === e) return; e = n; } a ? o === -1 && (o = setTimeout(function () { s(i), (o = -1); }, r._throttle)) : s(i); }), t(r._applyDataApi), t(window).bind("load", function (t) { r._update(!1, t); }), t(window).bind("resize orientationchange", function (t) { r._update(!0, t); }); }); !(function (e) { "function" == typeof define && define.amd ? define(["jquery"], e) : "object" == typeof exports ? (module.exports = e(require("jquery"))) : e(jQuery); })(function (e) { "use strict"; var o = !1, t = !1, r = 0, i = 2e3, s = 0, n = e, l = document, a = window, c = n(a), d = [], u = a.requestAnimationFrame || a.webkitRequestAnimationFrame || a.mozRequestAnimationFrame || !1, h = a.cancelAnimationFrame || a.webkitCancelAnimationFrame || a.mozCancelAnimationFrame || !1; if (u) a.cancelAnimationFrame || (h = function (e) {}); else { var p = 0; (u = function (e, o) { var t = new Date().getTime(), r = Math.max(0, 16 - (t - p)), i = a.setTimeout(function () { e(t + r); }, r); return (p = t + r), i; }), (h = function (e) { a.clearTimeout(e); }); } var m = a.MutationObserver || a.WebKitMutationObserver || !1, f = Date.now || function () { return new Date().getTime(); }, g = { zindex: "auto", cursoropacitymin: 0, cursoropacitymax: 1, cursorcolor: "#424242", cursorwidth: "6px", cursorborder: "1px solid #fff", cursorborderradius: "5px", scrollspeed: 40, mousescrollstep: 27, touchbehavior: !1, emulatetouch: !1, hwacceleration: !0, usetransition: !0, boxzoom: !1, dblclickzoom: !0, gesturezoom: !0, grabcursorenabled: !0, autohidemode: !0, background: "", iframeautoresize: !0, cursorminheight: 32, preservenativescrolling: !0, railoffset: !1, railhoffset: !1, bouncescroll: !0, spacebarenabled: !0, railpadding: { top: 0, right: 0, left: 0, bottom: 0 }, disableoutline: !0, horizrailenabled: !0, railalign: "right", railvalign: "bottom", enabletranslate3d: !0, enablemousewheel: !0, enablekeyboard: !0, smoothscroll: !0, sensitiverail: !0, enablemouselockapi: !0, cursorfixedheight: !1, directionlockdeadzone: 6, hidecursordelay: 400, nativeparentscrolling: !0, enablescrollonselection: !0, overflowx: !0, overflowy: !0, cursordragspeed: 0.3, rtlmode: "auto", cursordragontouch: !1, oneaxismousemode: "auto", scriptpath: (function () { var e = l.currentScript || (function () { var e = l.getElementsByTagName("script"); return !!e.length && e[e.length - 1]; })(), o = e ? e.src.split("?")[0] : ""; return o.split("/").length > 0 ? o.split("/").slice(0, -1).join("/") + "/" : ""; })(), preventmultitouchscrolling: !0, disablemutationobserver: !1, enableobserver: !0, scrollbarid: !1, }, v = !1, w = function () { if (v) return v; var e = l.createElement("DIV"), o = e.style, t = navigator.userAgent, r = navigator.platform, i = {}; return ( (i.haspointerlock = "pointerLockElement" in l || "webkitPointerLockElement" in l || "mozPointerLockElement" in l), (i.isopera = "opera" in a), (i.isopera12 = i.isopera && "getUserMedia" in navigator), (i.isoperamini = "[object OperaMini]" === Object.prototype.toString.call(a.operamini)), (i.isie = "all" in l && "attachEvent" in e && !i.isopera), (i.isieold = i.isie && !("msInterpolationMode" in o)), (i.isie7 = i.isie && !i.isieold && (!("documentMode" in l) || 7 === l.documentMode)), (i.isie8 = i.isie && "documentMode" in l && 8 === l.documentMode), (i.isie9 = i.isie && "performance" in a && 9 === l.documentMode), (i.isie10 = i.isie && "performance" in a && 10 === l.documentMode), (i.isie11 = "msRequestFullscreen" in e && l.documentMode >= 11), (i.ismsedge = "msCredentials" in a), (i.ismozilla = "MozAppearance" in o), (i.iswebkit = !i.ismsedge && "WebkitAppearance" in o), (i.ischrome = i.iswebkit && "chrome" in a), (i.ischrome38 = i.ischrome && "touchAction" in o), (i.ischrome22 = !i.ischrome38 && i.ischrome && i.haspointerlock), (i.ischrome26 = !i.ischrome38 && i.ischrome && "transition" in o), (i.cantouch = "ontouchstart" in l.documentElement || "ontouchstart" in a), (i.hasw3ctouch = (a.PointerEvent || !1) && (navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0)), (i.hasmstouch = !i.hasw3ctouch && (a.MSPointerEvent || !1)), (i.ismac = /^mac$/i.test(r)), (i.isios = i.cantouch && /iphone|ipad|ipod/i.test(r)), (i.isios4 = i.isios && !("seal" in Object)), (i.isios7 = i.isios && "webkitHidden" in l), (i.isios8 = i.isios && "hidden" in l), (i.isios10 = i.isios && a.Proxy), (i.isandroid = /android/i.test(t)), (i.haseventlistener = "addEventListener" in e), (i.trstyle = !1), (i.hastransform = !1), (i.hastranslate3d = !1), (i.transitionstyle = !1), (i.hastransition = !1), (i.transitionend = !1), (i.trstyle = "transform"), (i.hastransform = "transform" in o || (function () { for ( var e = [ "msTransform", "webkitTransform", "MozTransform", "OTransform", ], t = 0, r = e.length; t < r; t++ ) if (void 0 !== o[e[t]]) { i.trstyle = e[t]; break; } i.hastransform = !!i.trstyle; })()), i.hastransform && ((o[i.trstyle] = "translate3d(1px,2px,3px)"), (i.hastranslate3d = /translate3d/.test(o[i.trstyle]))), (i.transitionstyle = "transition"), (i.prefixstyle = ""), (i.transitionend = "transitionend"), (i.hastransition = "transition" in o || (function () { i.transitionend = !1; for ( var e = [ "webkitTransition", "msTransition", "MozTransition", "OTransition", "OTransition", "KhtmlTransition", ], t = ["-webkit-", "-ms-", "-moz-", "-o-", "-o", "-khtml-"], r = [ "webkitTransitionEnd", "msTransitionEnd", "transitionend", "otransitionend", "oTransitionEnd", "KhtmlTransitionEnd", ], s = 0, n = e.length; s < n; s++ ) if (e[s] in o) { (i.transitionstyle = e[s]), (i.prefixstyle = t[s]), (i.transitionend = r[s]); break; } i.ischrome26 && (i.prefixstyle = t[1]), (i.hastransition = i.transitionstyle); })()), (i.cursorgrabvalue = (function () { var e = ["grab", "-webkit-grab", "-moz-grab"]; ((i.ischrome && !i.ischrome38) || i.isie) && (e = []); for (var t = 0, r = e.length; t < r; t++) { var s = e[t]; if (((o.cursor = s), o.cursor == s)) return s; } return "url(https://cdnjs.cloudflare.com/ajax/libs/slider-pro/1.3.0/css/images/openhand.cur),n-resize"; })()), (i.hasmousecapture = "setCapture" in e), (i.hasMutationObserver = !1 !== m), (e = null), (v = i), i ); }, b = function (e, p) { function v() { var e = T.doc.css(P.trstyle); return ( !(!e || "matrix" != e.substr(0, 6)) && e .replace(/^.*\((.*)\)$/g, "$1") .replace(/px/g, "") .split(/, +/) ); } function b() { var e = T.win; if ("zIndex" in e) return e.zIndex(); for (; e.length > 0; ) { if (9 == e[0].nodeType) return !1; var o = e.css("zIndex"); if (!isNaN(o) && 0 !== o) return parseInt(o); e = e.parent(); } return !1; } function x(e, o, t) { var r = e.css(o), i = parseFloat(r); if (isNaN(i)) { var s = 3 == (i = I[r] || 0) ? t ? T.win.outerHeight() - T.win.innerHeight() : T.win.outerWidth() - T.win.innerWidth() : 1; return T.isie8 && i && (i += 1), s ? i : 0; } return i; } function S(e, o, t, r) { T._bind( e, o, function (r) { var i = { original: (r = r || a.event), target: r.target || r.srcElement, type: "wheel", deltaMode: "MozMousePixelScroll" == r.type ? 0 : 1, deltaX: 0, deltaZ: 0, preventDefault: function () { return ( r.preventDefault ? r.preventDefault() : (r.returnValue = !1), !1 ); }, stopImmediatePropagation: function () { r.stopImmediatePropagation ? r.stopImmediatePropagation() : (r.cancelBubble = !0); }, }; return ( "mousewheel" == o ? (r.wheelDeltaX && (i.deltaX = -0.025 * r.wheelDeltaX), r.wheelDeltaY && (i.deltaY = -0.025 * r.wheelDeltaY), !i.deltaY && !i.deltaX && (i.deltaY = -0.025 * r.wheelDelta)) : (i.deltaY = r.detail), t.call(e, i) ); }, r ); } function z(e, o, t, r) { T.scrollrunning || ((T.newscrolly = T.getScrollTop()), (T.newscrollx = T.getScrollLeft()), (D = f())); var i = f() - D; if ( ((D = f()), i > 350 ? (A = 1) : (A += (2 - A) / 10), (e = (e * A) | 0), (o = (o * A) | 0), e) ) { if (r) if (e < 0) { if (T.getScrollLeft() >= T.page.maxw) return !0; } else if (T.getScrollLeft() <= 0) return !0; var s = e > 0 ? 1 : -1; X !== s && (T.scrollmom && T.scrollmom.stop(), (T.newscrollx = T.getScrollLeft()), (X = s)), (T.lastdeltax -= e); } if (o) { if ( (function () { var e = T.getScrollTop(); if (o < 0) { if (e >= T.page.maxh) return !0; } else if (e <= 0) return !0; })() ) { if (M.nativeparentscrolling && t && !T.ispage && !T.zoomactive) return !0; var n = T.view.h >> 1; T.newscrolly < -n ? ((T.newscrolly = -n), (o = -1)) : T.newscrolly > T.page.maxh + n ? ((T.newscrolly = T.page.maxh + n), (o = 1)) : (o = 0); } var l = o > 0 ? 1 : -1; B !== l && (T.scrollmom && T.scrollmom.stop(), (T.newscrolly = T.getScrollTop()), (B = l)), (T.lastdeltay -= o); } (o || e) && T.synched("relativexy", function () { var e = T.lastdeltay + T.newscrolly; T.lastdeltay = 0; var o = T.lastdeltax + T.newscrollx; (T.lastdeltax = 0), T.rail.drag || T.doScrollPos(o, e); }); } function k(e, o, t) { var r, i; return ( !(t || !q) || (0 === e.deltaMode ? ((r = (-e.deltaX * (M.mousescrollstep / 54)) | 0), (i = (-e.deltaY * (M.mousescrollstep / 54)) | 0)) : 1 === e.deltaMode && ((r = ((-e.deltaX * M.mousescrollstep * 50) / 80) | 0), (i = ((-e.deltaY * M.mousescrollstep * 50) / 80) | 0)), o && M.oneaxismousemode && 0 === r && i && ((r = i), (i = 0), t && (r < 0 ? T.getScrollLeft() >= T.page.maxw : T.getScrollLeft() <= 0) && ((i = r), (r = 0))), T.isrtlmode && (r = -r), z(r, i, t, !0) ? void (t && (q = !0)) : ((q = !1), e.stopImmediatePropagation(), e.preventDefault())) ); } var T = this; (this.version = "3.7.6"), (this.name = "nicescroll"), (this.me = p); var E = n("body"), M = (this.opt = { doc: E, win: !1 }); if ((n.extend(M, g), (M.snapbackspeed = 80), e)) for (var L in M) void 0 !== e[L] && (M[L] = e[L]); if ( (M.disablemutationobserver && (m = !1), (this.doc = M.doc), (this.iddoc = this.doc && this.doc[0] ? this.doc[0].id || "" : ""), (this.ispage = /^BODY|HTML/.test( M.win ? M.win[0].nodeName : this.doc[0].nodeName )), (this.haswrapper = !1 !== M.win), (this.win = M.win || (this.ispage ? c : this.doc)), (this.docscroll = this.ispage && !this.haswrapper ? c : this.win), (this.body = E), (this.viewport = !1), (this.isfixed = !1), (this.iframe = !1), (this.isiframe = "IFRAME" == this.doc[0].nodeName && "IFRAME" == this.win[0].nodeName), (this.istextarea = "TEXTAREA" == this.win[0].nodeName), (this.forcescreen = !1), (this.canshowonmouseevent = "scroll" != M.autohidemode), (this.onmousedown = !1), (this.onmouseup = !1), (this.onmousemove = !1), (this.onmousewheel = !1), (this.onkeypress = !1), (this.ongesturezoom = !1), (this.onclick = !1), (this.onscrollstart = !1), (this.onscrollend = !1), (this.onscrollcancel = !1), (this.onzoomin = !1), (this.onzoomout = !1), (this.view = !1), (this.page = !1), (this.scroll = { x: 0, y: 0 }), (this.scrollratio = { x: 0, y: 0 }), (this.cursorheight = 20), (this.scrollvaluemax = 0), "auto" == M.rtlmode) ) { var C = this.win[0] == a ? this.body : this.win, N = C.css("writing-mode") || C.css("-webkit-writing-mode") || C.css("-ms-writing-mode") || C.css("-moz-writing-mode"); "horizontal-tb" == N || "lr-tb" == N || "" === N ? ((this.isrtlmode = "rtl" == C.css("direction")), (this.isvertical = !1)) : ((this.isrtlmode = "vertical-rl" == N || "tb" == N || "tb-rl" == N || "rl-tb" == N), (this.isvertical = "vertical-rl" == N || "tb" == N || "tb-rl" == N)); } else (this.isrtlmode = !0 === M.rtlmode), (this.isvertical = !1); if ( ((this.scrollrunning = !1), (this.scrollmom = !1), (this.observer = !1), (this.observerremover = !1), (this.observerbody = !1), !1 !== M.scrollbarid) ) this.id = M.scrollbarid; else do { this.id = "ascrail" + i++; } while (l.getElementById(this.id)); (this.rail = !1), (this.cursor = !1), (this.cursorfreezed = !1), (this.selectiondrag = !1), (this.zoom = !1), (this.zoomactive = !1), (this.hasfocus = !1), (this.hasmousefocus = !1), (this.railslocked = !1), (this.locked = !1), (this.hidden = !1), (this.cursoractive = !0), (this.wheelprevented = !1), (this.overflowx = M.overflowx), (this.overflowy = M.overflowy), (this.nativescrollingarea = !1), (this.checkarea = 0), (this.events = []), (this.saved = {}), (this.delaylist = {}), (this.synclist = {}), (this.lastdeltax = 0), (this.lastdeltay = 0), (this.detected = w()); var P = n.extend({}, this.detected); (this.canhwscroll = P.hastransform && M.hwacceleration), (this.ishwscroll = this.canhwscroll && T.haswrapper), this.isrtlmode ? this.isvertical ? (this.hasreversehr = !(P.iswebkit || P.isie || P.isie11)) : (this.hasreversehr = !( P.iswebkit || (P.isie && !P.isie10 && !P.isie11) )) : (this.hasreversehr = !1), (this.istouchcapable = !1), P.cantouch || (!P.hasw3ctouch && !P.hasmstouch) ? !P.cantouch || P.isios || P.isandroid || (!P.iswebkit && !P.ismozilla) || (this.istouchcapable = !0) : (this.istouchcapable = !0), M.enablemouselockapi || ((P.hasmousecapture = !1), (P.haspointerlock = !1)), (this.debounced = function (e, o, t) { T && (T.delaylist[e] || !1 || ((T.delaylist[e] = { h: u(function () { T.delaylist[e].fn.call(T), (T.delaylist[e] = !1); }, t), }), o.call(T)), (T.delaylist[e].fn = o)); }), (this.synched = function (e, o) { T.synclist[e] ? (T.synclist[e] = o) : ((T.synclist[e] = o), u(function () { T && (T.synclist[e] && T.synclist[e].call(T), (T.synclist[e] = null)); })); }), (this.unsynched = function (e) { T.synclist[e] && (T.synclist[e] = !1); }), (this.css = function (e, o) { for (var t in o) T.saved.css.push([e, t, e.css(t)]), e.css(t, o[t]); }), (this.scrollTop = function (e) { return void 0 === e ? T.getScrollTop() : T.setScrollTop(e); }), (this.scrollLeft = function (e) { return void 0 === e ? T.getScrollLeft() : T.setScrollLeft(e); }); var R = function (e, o, t, r, i, s, n) { (this.st = e), (this.ed = o), (this.spd = t), (this.p1 = r || 0), (this.p2 = i || 1), (this.p3 = s || 0), (this.p4 = n || 1), (this.ts = f()), (this.df = o - e); }; if ( ((R.prototype = { B2: function (e) { return 3 * (1 - e) * (1 - e) * e; }, B3: function (e) { return 3 * (1 - e) * e * e; }, B4: function (e) { return e * e * e; }, getPos: function () { return (f() - this.ts) / this.spd; }, getNow: function () { var e = (f() - this.ts) / this.spd, o = this.B2(e) + this.B3(e) + this.B4(e); return e >= 1 ? this.ed : (this.st + this.df * o) | 0; }, update: function (e, o) { return ( (this.st = this.getNow()), (this.ed = e), (this.spd = o), (this.ts = f()), (this.df = this.ed - this.st), this ); }, }), this.ishwscroll) ) { (this.doc.translate = { x: 0, y: 0, tx: "0px", ty: "0px" }), P.hastranslate3d && P.isios && this.doc.css("-webkit-backface-visibility", "hidden"), (this.getScrollTop = function (e) { if (!e) { var o = v(); if (o) return 16 == o.length ? -o[13] : -o[5]; if (T.timerscroll && T.timerscroll.bz) return T.timerscroll.bz.getNow(); } return T.doc.translate.y; }), (this.getScrollLeft = function (e) { if (!e) { var o = v(); if (o) return 16 == o.length ? -o[12] : -o[4]; if (T.timerscroll && T.timerscroll.bh) return T.timerscroll.bh.getNow(); } return T.doc.translate.x; }), (this.notifyScrollEvent = function (e) { var o = l.createEvent("UIEvents"); o.initUIEvent("scroll", !1, !1, a, 1), (o.niceevent = !0), e.dispatchEvent(o); }); var _ = this.isrtlmode ? 1 : -1; P.hastranslate3d && M.enabletranslate3d ? ((this.setScrollTop = function (e, o) { (T.doc.translate.y = e), (T.doc.translate.ty = -1 * e + "px"), T.doc.css( P.trstyle, "translate3d(" + T.doc.translate.tx + "," + T.doc.translate.ty + ",0)" ), o || T.notifyScrollEvent(T.win[0]); }), (this.setScrollLeft = function (e, o) { (T.doc.translate.x = e), (T.doc.translate.tx = e * _ + "px"), T.doc.css( P.trstyle, "translate3d(" + T.doc.translate.tx + "," + T.doc.translate.ty + ",0)" ), o || T.notifyScrollEvent(T.win[0]); })) : ((this.setScrollTop = function (e, o) { (T.doc.translate.y = e), (T.doc.translate.ty = -1 * e + "px"), T.doc.css( P.trstyle, "translate(" + T.doc.translate.tx + "," + T.doc.translate.ty + ")" ), o || T.notifyScrollEvent(T.win[0]); }), (this.setScrollLeft = function (e, o) { (T.doc.translate.x = e), (T.doc.translate.tx = e * _ + "px"), T.doc.css( P.trstyle, "translate(" + T.doc.translate.tx + "," + T.doc.translate.ty + ")" ), o || T.notifyScrollEvent(T.win[0]); })); } else (this.getScrollTop = function () { return T.docscroll.scrollTop(); }), (this.setScrollTop = function (e) { T.docscroll.scrollTop(e); }), (this.getScrollLeft = function () { return T.hasreversehr ? T.detected.ismozilla ? T.page.maxw - Math.abs(T.docscroll.scrollLeft()) : T.page.maxw - T.docscroll.scrollLeft() : T.docscroll.scrollLeft(); }), (this.setScrollLeft = function (e) { return setTimeout(function () { if (T) return ( T.hasreversehr && (e = T.detected.ismozilla ? -(T.page.maxw - e) : T.page.maxw - e), T.docscroll.scrollLeft(e) ); }, 1); }); (this.getTarget = function (e) { return !!e && (e.target ? e.target : !!e.srcElement && e.srcElement); }), (this.hasParent = function (e, o) { if (!e) return !1; for (var t = e.target || e.srcElement || e || !1; t && t.id != o; ) t = t.parentNode || !1; return !1 !== t; }); var I = { thin: 1, medium: 3, thick: 5 }; (this.getDocumentScrollOffset = function () { return { top: a.pageYOffset || l.documentElement.scrollTop, left: a.pageXOffset || l.documentElement.scrollLeft, }; }), (this.getOffset = function () { if (T.isfixed) { var e = T.win.offset(), o = T.getDocumentScrollOffset(); return (e.top -= o.top), (e.left -= o.left), e; } var t = T.win.offset(); if (!T.viewport) return t; var r = T.viewport.offset(); return { top: t.top - r.top, left: t.left - r.left }; }), (this.updateScrollBar = function (e) { var o, t; if (T.ishwscroll) T.rail.css({ height: T.win.innerHeight() - (M.railpadding.top + M.railpadding.bottom), }), T.railh && T.railh.css({ width: T.win.innerWidth() - (M.railpadding.left + M.railpadding.right), }); else { var r = T.getOffset(); if ( ((o = { top: r.top, left: r.left - (M.railpadding.left + M.railpadding.right), }), (o.top += x(T.win, "border-top-width", !0)), (o.left += T.rail.align ? T.win.outerWidth() - x(T.win, "border-right-width") - T.rail.width : x(T.win, "border-left-width")), (t = M.railoffset) && (t.top && (o.top += t.top), t.left && (o.left += t.left)), T.railslocked || T.rail.css({ top: o.top, left: o.left, height: (e ? e.h : T.win.innerHeight()) - (M.railpadding.top + M.railpadding.bottom), }), T.zoom && T.zoom.css({ top: o.top + 1, left: 1 == T.rail.align ? o.left - 20 : o.left + T.rail.width + 4, }), T.railh && !T.railslocked) ) { (o = { top: r.top, left: r.left }), (t = M.railhoffset) && (t.top && (o.top += t.top), t.left && (o.left += t.left)); var i = T.railh.align ? o.top + x(T.win, "border-top-width", !0) + T.win.innerHeight() - T.railh.height : o.top + x(T.win, "border-top-width", !0), s = o.left + x(T.win, "border-left-width"); T.railh.css({ top: i - (M.railpadding.top + M.railpadding.bottom), left: s, width: T.railh.width, }); } } }), (this.doRailClick = function (e, o, t) { var r, i, s, n; T.railslocked || (T.cancelEvent(e), "pageY" in e || ((e.pageX = e.clientX + l.documentElement.scrollLeft), (e.pageY = e.clientY + l.documentElement.scrollTop)), o ? ((r = t ? T.doScrollLeft : T.doScrollTop), (s = t ? (e.pageX - T.railh.offset().left - T.cursorwidth / 2) * T.scrollratio.x : (e.pageY - T.rail.offset().top - T.cursorheight / 2) * T.scrollratio.y), T.unsynched("relativexy"), r(0 | s)) : ((r = t ? T.doScrollLeftBy : T.doScrollBy), (s = t ? T.scroll.x : T.scroll.y), (n = t ? e.pageX - T.railh.offset().left : e.pageY - T.rail.offset().top), (i = t ? T.view.w : T.view.h), r(s >= n ? i : -i))); }), (T.newscrolly = T.newscrollx = 0), (T.hasanimationframe = "requestAnimationFrame" in a), (T.hascancelanimationframe = "cancelAnimationFrame" in a), (T.hasborderbox = !1), (this.init = function () { if (((T.saved.css = []), P.isoperamini)) return !0; if (P.isandroid && !("hidden" in l)) return !0; (M.emulatetouch = M.emulatetouch || M.touchbehavior), (T.hasborderbox = a.getComputedStyle && "border-box" === a.getComputedStyle(l.body)["box-sizing"]); var e = { "overflow-y": "hidden" }; if ( ((P.isie11 || P.isie10) && (e["-ms-overflow-style"] = "none"), T.ishwscroll && (this.doc.css( P.transitionstyle, P.prefixstyle + "transform 0ms ease-out" ), P.transitionend && T.bind(T.doc, P.transitionend, T.onScrollTransitionEnd, !1)), (T.zindex = "auto"), T.ispage || "auto" != M.zindex ? (T.zindex = M.zindex) : (T.zindex = b() || "auto"), !T.ispage && "auto" != T.zindex && T.zindex > s && (s = T.zindex), T.isie && 0 === T.zindex && "auto" == M.zindex && (T.zindex = "auto"), !T.ispage || !P.isieold) ) { var i = T.docscroll; T.ispage && (i = T.haswrapper ? T.win : T.doc), T.css(i, e), T.ispage && (P.isie11 || P.isie) && T.css(n("html"), e), !P.isios || T.ispage || T.haswrapper || T.css(E, { "-webkit-overflow-scrolling": "touch" }); var d = n(l.createElement("div")); d.css({ position: "relative", top: 0, float: "right", width: M.cursorwidth, height: 0, "background-color": M.cursorcolor, border: M.cursorborder, "background-clip": "padding-box", "-webkit-border-radius": M.cursorborderradius, "-moz-border-radius": M.cursorborderradius, "border-radius": M.cursorborderradius, }), d.addClass("nicescroll-cursors"), (T.cursor = d); var u = n(l.createElement("div")); u.attr("id", T.id), u.addClass("nicescroll-rails nicescroll-rails-vr"); var h, p, f = ["left", "right", "top", "bottom"]; for (var g in f) (p = f[g]), (h = M.railpadding[p] || 0) && u.css("padding-" + p, h + "px"); u.append(d), (u.width = Math.max(parseFloat(M.cursorwidth), d.outerWidth())), u.css({ width: u.width + "px", zIndex: T.zindex, background: M.background, cursor: "default", }), (u.visibility = !0), (u.scrollable = !0), (u.align = "left" == M.railalign ? 0 : 1), (T.rail = u), (T.rail.drag = !1); var v = !1; !M.boxzoom || T.ispage || P.isieold || ((v = l.createElement("div")), T.bind(v, "click", T.doZoom), T.bind(v, "mouseenter", function () { T.zoom.css("opacity", M.cursoropacitymax); }), T.bind(v, "mouseleave", function () { T.zoom.css("opacity", M.cursoropacitymin); }), (T.zoom = n(v)), T.zoom.css({ cursor: "pointer", zIndex: T.zindex, backgroundImage: "url(" + M.scriptpath + "zoomico.png)", height: 18, width: 18, backgroundPosition: "0 0", }), M.dblclickzoom && T.bind(T.win, "dblclick", T.doZoom), P.cantouch && M.gesturezoom && ((T.ongesturezoom = function (e) { return ( e.scale > 1.5 && T.doZoomIn(e), e.scale < 0.8 && T.doZoomOut(e), T.cancelEvent(e) ); }), T.bind(T.win, "gestureend", T.ongesturezoom))), (T.railh = !1); var w; if ( (M.horizrailenabled && (T.css(i, { overflowX: "hidden" }), (d = n(l.createElement("div"))).css({ position: "absolute", top: 0, height: M.cursorwidth, width: 0, backgroundColor: M.cursorcolor, border: M.cursorborder, backgroundClip: "padding-box", "-webkit-border-radius": M.cursorborderradius, "-moz-border-radius": M.cursorborderradius, "border-radius": M.cursorborderradius, }), P.isieold && d.css("overflow", "hidden"), d.addClass("nicescroll-cursors"), (T.cursorh = d), (w = n(l.createElement("div"))).attr("id", T.id + "-hr"), w.addClass("nicescroll-rails nicescroll-rails-hr"), (w.height = Math.max( parseFloat(M.cursorwidth), d.outerHeight() )), w.css({ height: w.height + "px", zIndex: T.zindex, background: M.background, }), w.append(d), (w.visibility = !0), (w.scrollable = !0), (w.align = "top" == M.railvalign ? 0 : 1), (T.railh = w), (T.railh.drag = !1)), T.ispage) ) u.css({ position: "fixed", top: 0, height: "100%" }), u.css(u.align ? { right: 0 } : { left: 0 }), T.body.append(u), T.railh && (w.css({ position: "fixed", left: 0, width: "100%" }), w.css(w.align ? { bottom: 0 } : { top: 0 }), T.body.append(w)); else { if (T.ishwscroll) { "static" == T.win.css("position") && T.css(T.win, { position: "relative" }); var x = "HTML" == T.win[0].nodeName ? T.body : T.win; n(x).scrollTop(0).scrollLeft(0), T.zoom && (T.zoom.css({ position: "absolute", top: 1, right: 0, "margin-right": u.width + 4, }), x.append(T.zoom)), u.css({ position: "absolute", top: 0 }), u.css(u.align ? { right: 0 } : { left: 0 }), x.append(u), w && (w.css({ position: "absolute", left: 0, bottom: 0 }), w.css(w.align ? { bottom: 0 } : { top: 0 }), x.append(w)); } else { T.isfixed = "fixed" == T.win.css("position"); var S = T.isfixed ? "fixed" : "absolute"; T.isfixed || (T.viewport = T.getViewport(T.win[0])), T.viewport && ((T.body = T.viewport), /fixed|absolute/.test(T.viewport.css("position")) || T.css(T.viewport, { position: "relative" })), u.css({ position: S }), T.zoom && T.zoom.css({ position: S }), T.updateScrollBar(), T.body.append(u), T.zoom && T.body.append(T.zoom), T.railh && (w.css({ position: S }), T.body.append(w)); } P.isios && T.css(T.win, { "-webkit-tap-highlight-color": "rgba(0,0,0,0)", "-webkit-touch-callout": "none", }), M.disableoutline && (P.isie && T.win.attr("hideFocus", "true"), P.iswebkit && T.win.css("outline", "none")); } if ( (!1 === M.autohidemode ? ((T.autohidedom = !1), T.rail.css({ opacity: M.cursoropacitymax }), T.railh && T.railh.css({ opacity: M.cursoropacitymax })) : !0 === M.autohidemode || "leave" === M.autohidemode ? ((T.autohidedom = n().add(T.rail)), P.isie8 && (T.autohidedom = T.autohidedom.add(T.cursor)), T.railh && (T.autohidedom = T.autohidedom.add(T.railh)), T.railh && P.isie8 && (T.autohidedom = T.autohidedom.add(T.cursorh))) : "scroll" == M.autohidemode ? ((T.autohidedom = n().add(T.rail)), T.railh && (T.autohidedom = T.autohidedom.add(T.railh))) : "cursor" == M.autohidemode ? ((T.autohidedom = n().add(T.cursor)), T.railh && (T.autohidedom = T.autohidedom.add(T.cursorh))) : "hidden" == M.autohidemode && ((T.autohidedom = !1), T.hide(), (T.railslocked = !1)), P.cantouch || T.istouchcapable || M.emulatetouch || P.hasmstouch) ) { T.scrollmom = new y(T); (T.ontouchstart = function (e) { if (T.locked) return !1; if ( e.pointerType && ("mouse" === e.pointerType || e.pointerType === e.MSPOINTER_TYPE_MOUSE) ) return !1; if ( ((T.hasmoving = !1), T.scrollmom.timer && (T.triggerScrollEnd(), T.scrollmom.stop()), !T.railslocked) ) { var o = T.getTarget(e); if (o && /INPUT/i.test(o.nodeName) && /range/i.test(o.type)) return T.stopPropagation(e); var t = "mousedown" === e.type; if ( (!("clientX" in e) && "changedTouches" in e && ((e.clientX = e.changedTouches[0].clientX), (e.clientY = e.changedTouches[0].clientY)), T.forcescreen) ) { var r = e; ((e = { original: e.original ? e.original : e }).clientX = r.screenX), (e.clientY = r.screenY); } if ( ((T.rail.drag = { x: e.clientX, y: e.clientY, sx: T.scroll.x, sy: T.scroll.y, st: T.getScrollTop(), sl: T.getScrollLeft(), pt: 2, dl: !1, tg: o, }), T.ispage || !M.directionlockdeadzone) ) T.rail.drag.dl = "f"; else { var i = { w: c.width(), h: c.height() }, s = T.getContentSize(), l = s.h - i.h, a = s.w - i.w; T.rail.scrollable && !T.railh.scrollable ? (T.rail.drag.ck = l > 0 && "v") : !T.rail.scrollable && T.railh.scrollable ? (T.rail.drag.ck = a > 0 && "h") : (T.rail.drag.ck = !1); } if (M.emulatetouch && T.isiframe && P.isie) { var d = T.win.position(); (T.rail.drag.x += d.left), (T.rail.drag.y += d.top); } if ( ((T.hasmoving = !1), (T.lastmouseup = !1), T.scrollmom.reset(e.clientX, e.clientY), o && t) ) { if (!/INPUT|SELECT|BUTTON|TEXTAREA/i.test(o.nodeName)) return ( P.hasmousecapture && o.setCapture(), M.emulatetouch ? (o.onclick && !o._onclick && ((o._onclick = o.onclick), (o.onclick = function (e) { if (T.hasmoving) return !1; o._onclick.call(this, e); })), T.cancelEvent(e)) : T.stopPropagation(e) ); /SUBMIT|CANCEL|BUTTON/i.test(n(o).attr("type")) && (T.preventclick = { tg: o, click: !1 }); } } }), (T.ontouchend = function (e) { if (!T.rail.drag) return !0; if (2 == T.rail.drag.pt) { if ( e.pointerType && ("mouse" === e.pointerType || e.pointerType === e.MSPOINTER_TYPE_MOUSE) ) return !1; T.rail.drag = !1; var o = "mouseup" === e.type; if ( T.hasmoving && (T.scrollmom.doMomentum(), (T.lastmouseup = !0), T.hideCursor(), P.hasmousecapture && l.releaseCapture(), o) ) return T.cancelEvent(e); } else if (1 == T.rail.drag.pt) return T.onmouseup(e); }); var z = M.emulatetouch && T.isiframe && !P.hasmousecapture, k = (0.3 * M.directionlockdeadzone) | 0; (T.ontouchmove = function (e, o) { if (!T.rail.drag) return !0; if ( e.targetTouches && M.preventmultitouchscrolling && e.targetTouches.length > 1 ) return !0; if ( e.pointerType && ("mouse" === e.pointerType || e.pointerType === e.MSPOINTER_TYPE_MOUSE) ) return !0; if (2 == T.rail.drag.pt) { "changedTouches" in e && ((e.clientX = e.changedTouches[0].clientX), (e.clientY = e.changedTouches[0].clientY)); var t, r; if (((r = t = 0), z && !o)) { var i = T.win.position(); (r = -i.left), (t = -i.top); } var s = e.clientY + t, n = s - T.rail.drag.y, a = e.clientX + r, c = a - T.rail.drag.x, d = T.rail.drag.st - n; if (T.ishwscroll && M.bouncescroll) d < 0 ? (d = Math.round(d / 2)) : d > T.page.maxh && (d = T.page.maxh + Math.round((d - T.page.maxh) / 2)); else if ( (d < 0 ? ((d = 0), (s = 0)) : d > T.page.maxh && ((d = T.page.maxh), (s = 0)), 0 === s && !T.hasmoving) ) return T.ispage || (T.rail.drag = !1), !0; var u = T.getScrollLeft(); if ( (T.railh && T.railh.scrollable && ((u = T.isrtlmode ? c - T.rail.drag.sl : T.rail.drag.sl - c), T.ishwscroll && M.bouncescroll ? u < 0 ? (u = Math.round(u / 2)) : u > T.page.maxw && (u = T.page.maxw + Math.round((u - T.page.maxw) / 2)) : (u < 0 && ((u = 0), (a = 0)), u > T.page.maxw && ((u = T.page.maxw), (a = 0)))), !T.hasmoving) ) { if ( T.rail.drag.y === e.clientY && T.rail.drag.x === e.clientX ) return T.cancelEvent(e); var h = Math.abs(n), p = Math.abs(c), m = M.directionlockdeadzone; if ( (T.rail.drag.ck ? "v" == T.rail.drag.ck ? p > m && h <= k ? (T.rail.drag = !1) : h > m && (T.rail.drag.dl = "v") : "h" == T.rail.drag.ck && (h > m && p <= k ? (T.rail.drag = !1) : p > m && (T.rail.drag.dl = "h")) : h > m && p > m ? (T.rail.drag.dl = "f") : h > m ? (T.rail.drag.dl = p > k ? "f" : "v") : p > m && (T.rail.drag.dl = h > k ? "f" : "h"), !T.rail.drag.dl) ) return T.cancelEvent(e); T.triggerScrollStart(e.clientX, e.clientY, 0, 0, 0), (T.hasmoving = !0); } return ( T.preventclick && !T.preventclick.click && ((T.preventclick.click = T.preventclick.tg.onclick || !1), (T.preventclick.tg.onclick = T.onpreventclick)), T.rail.drag.dl && ("v" == T.rail.drag.dl ? (u = T.rail.drag.sl) : "h" == T.rail.drag.dl && (d = T.rail.drag.st)), T.synched("touchmove", function () { T.rail.drag && 2 == T.rail.drag.pt && (T.prepareTransition && T.resetTransition(), T.rail.scrollable && T.setScrollTop(d), T.scrollmom.update(a, s), T.railh && T.railh.scrollable ? (T.setScrollLeft(u), T.showCursor(d, u)) : T.showCursor(d), P.isie10 && l.selection.clear()); }), T.cancelEvent(e) ); } return 1 == T.rail.drag.pt ? T.onmousemove(e) : void 0; }), (T.ontouchstartCursor = function (e, o) { if (!T.rail.drag || 3 == T.rail.drag.pt) { if (T.locked) return T.cancelEvent(e); T.cancelScroll(), (T.rail.drag = { x: e.touches[0].clientX, y: e.touches[0].clientY, sx: T.scroll.x, sy: T.scroll.y, pt: 3, hr: !!o, }); var t = T.getTarget(e); return ( !T.ispage && P.hasmousecapture && t.setCapture(), T.isiframe && !P.hasmousecapture && ((T.saved.csspointerevents = T.doc.css("pointer-events")), T.css(T.doc, { "pointer-events": "none" })), T.cancelEvent(e) ); } }), (T.ontouchendCursor = function (e) { if (T.rail.drag) { if ( (P.hasmousecapture && l.releaseCapture(), T.isiframe && !P.hasmousecapture && T.doc.css("pointer-events", T.saved.csspointerevents), 3 != T.rail.drag.pt) ) return; return (T.rail.drag = !1), T.cancelEvent(e); } }), (T.ontouchmoveCursor = function (e) { if (T.rail.drag) { if (3 != T.rail.drag.pt) return; if (((T.cursorfreezed = !0), T.rail.drag.hr)) { (T.scroll.x = T.rail.drag.sx + (e.touches[0].clientX - T.rail.drag.x)), T.scroll.x < 0 && (T.scroll.x = 0); var o = T.scrollvaluemaxw; T.scroll.x > o && (T.scroll.x = o); } else { (T.scroll.y = T.rail.drag.sy + (e.touches[0].clientY - T.rail.drag.y)), T.scroll.y < 0 && (T.scroll.y = 0); var t = T.scrollvaluemax; T.scroll.y > t && (T.scroll.y = t); } return ( T.synched("touchmove", function () { T.rail.drag && 3 == T.rail.drag.pt && (T.showCursor(), T.rail.drag.hr ? T.doScrollLeft( Math.round(T.scroll.x * T.scrollratio.x), M.cursordragspeed ) : T.doScrollTop( Math.round(T.scroll.y * T.scrollratio.y), M.cursordragspeed )); }), T.cancelEvent(e) ); } }); } if ( ((T.onmousedown = function (e, o) { if (!T.rail.drag || 1 == T.rail.drag.pt) { if (T.railslocked) return T.cancelEvent(e); T.cancelScroll(), (T.rail.drag = { x: e.clientX, y: e.clientY, sx: T.scroll.x, sy: T.scroll.y, pt: 1, hr: o || !1, }); var t = T.getTarget(e); return ( P.hasmousecapture && t.setCapture(), T.isiframe && !P.hasmousecapture && ((T.saved.csspointerevents = T.doc.css("pointer-events")), T.css(T.doc, { "pointer-events": "none" })), (T.hasmoving = !1), T.cancelEvent(e) ); } }), (T.onmouseup = function (e) { if (T.rail.drag) return ( 1 != T.rail.drag.pt || (P.hasmousecapture && l.releaseCapture(), T.isiframe && !P.hasmousecapture && T.doc.css("pointer-events", T.saved.csspointerevents), (T.rail.drag = !1), (T.cursorfreezed = !1), T.hasmoving && T.triggerScrollEnd(), T.cancelEvent(e)) ); }), (T.onmousemove = function (e) { if (T.rail.drag) { if (1 !== T.rail.drag.pt) return; if (P.ischrome && 0 === e.which) return T.onmouseup(e); if ( ((T.cursorfreezed = !0), T.hasmoving || T.triggerScrollStart(e.clientX, e.clientY, 0, 0, 0), (T.hasmoving = !0), T.rail.drag.hr) ) { (T.scroll.x = T.rail.drag.sx + (e.clientX - T.rail.drag.x)), T.scroll.x < 0 && (T.scroll.x = 0); var o = T.scrollvaluemaxw; T.scroll.x > o && (T.scroll.x = o); } else { (T.scroll.y = T.rail.drag.sy + (e.clientY - T.rail.drag.y)), T.scroll.y < 0 && (T.scroll.y = 0); var t = T.scrollvaluemax; T.scroll.y > t && (T.scroll.y = t); } return ( T.synched("mousemove", function () { T.cursorfreezed && (T.showCursor(), T.rail.drag.hr ? T.scrollLeft( Math.round(T.scroll.x * T.scrollratio.x) ) : T.scrollTop( Math.round(T.scroll.y * T.scrollratio.y) )); }), T.cancelEvent(e) ); } T.checkarea = 0; }), P.cantouch || M.emulatetouch) ) (T.onpreventclick = function (e) { if (T.preventclick) return ( (T.preventclick.tg.onclick = T.preventclick.click), (T.preventclick = !1), T.cancelEvent(e) ); }), (T.onclick = !P.isios && function (e) { return ( !T.lastmouseup || ((T.lastmouseup = !1), T.cancelEvent(e)) ); }), M.grabcursorenabled && P.cursorgrabvalue && (T.css(T.ispage ? T.doc : T.win, { cursor: P.cursorgrabvalue, }), T.css(T.rail, { cursor: P.cursorgrabvalue })); else { var L = function (e) { if (T.selectiondrag) { if (e) { var o = T.win.outerHeight(), t = e.pageY - T.selectiondrag.top; t > 0 && t < o && (t = 0), t >= o && (t -= o), (T.selectiondrag.df = t); } if (0 !== T.selectiondrag.df) { var r = ((-2 * T.selectiondrag.df) / 6) | 0; T.doScrollBy(r), T.debounced( "doselectionscroll", function () { L(); }, 50 ); } } }; (T.hasTextSelected = "getSelection" in l ? function () { return l.getSelection().rangeCount > 0; } : "selection" in l ? function () { return "None" != l.selection.type; } : function () { return !1; }), (T.onselectionstart = function (e) { T.ispage || (T.selectiondrag = T.win.offset()); }), (T.onselectionend = function (e) { T.selectiondrag = !1; }), (T.onselectiondrag = function (e) { T.selectiondrag && T.hasTextSelected() && T.debounced( "selectionscroll", function () { L(e); }, 250 ); }); } if ( (P.hasw3ctouch ? (T.css(T.ispage ? n("html") : T.win, { "touch-action": "none", }), T.css(T.rail, { "touch-action": "none" }), T.css(T.cursor, { "touch-action": "none" }), T.bind(T.win, "pointerdown", T.ontouchstart), T.bind(l, "pointerup", T.ontouchend), T.delegate(l, "pointermove", T.ontouchmove)) : P.hasmstouch ? (T.css(T.ispage ? n("html") : T.win, { "-ms-touch-action": "none", }), T.css(T.rail, { "-ms-touch-action": "none" }), T.css(T.cursor, { "-ms-touch-action": "none" }), T.bind(T.win, "MSPointerDown", T.ontouchstart), T.bind(l, "MSPointerUp", T.ontouchend), T.delegate(l, "MSPointerMove", T.ontouchmove), T.bind(T.cursor, "MSGestureHold", function (e) { e.preventDefault(); }), T.bind(T.cursor, "contextmenu", function (e) { e.preventDefault(); })) : P.cantouch && (T.bind(T.win, "touchstart", T.ontouchstart, !1, !0), T.bind(l, "touchend", T.ontouchend, !1, !0), T.bind(l, "touchcancel", T.ontouchend, !1, !0), T.delegate(l, "touchmove", T.ontouchmove, !1, !0)), M.emulatetouch && (T.bind(T.win, "mousedown", T.ontouchstart, !1, !0), T.bind(l, "mouseup", T.ontouchend, !1, !0), T.bind(l, "mousemove", T.ontouchmove, !1, !0)), (M.cursordragontouch || (!P.cantouch && !M.emulatetouch)) && (T.rail.css({ cursor: "default" }), T.railh && T.railh.css({ cursor: "default" }), T.jqbind(T.rail, "mouseenter", function () { if (!T.ispage && !T.win.is(":visible")) return !1; T.canshowonmouseevent && T.showCursor(), (T.rail.active = !0); }), T.jqbind(T.rail, "mouseleave", function () { (T.rail.active = !1), T.rail.drag || T.hideCursor(); }), M.sensitiverail && (T.bind(T.rail, "click", function (e) { T.doRailClick(e, !1, !1); }), T.bind(T.rail, "dblclick", function (e) { T.doRailClick(e, !0, !1); }), T.bind(T.cursor, "click", function (e) { T.cancelEvent(e); }), T.bind(T.cursor, "dblclick", function (e) { T.cancelEvent(e); })), T.railh && (T.jqbind(T.railh, "mouseenter", function () { if (!T.ispage && !T.win.is(":visible")) return !1; T.canshowonmouseevent && T.showCursor(), (T.rail.active = !0); }), T.jqbind(T.railh, "mouseleave", function () { (T.rail.active = !1), T.rail.drag || T.hideCursor(); }), M.sensitiverail && (T.bind(T.railh, "click", function (e) { T.doRailClick(e, !1, !0); }), T.bind(T.railh, "dblclick", function (e) { T.doRailClick(e, !0, !0); }), T.bind(T.cursorh, "click", function (e) { T.cancelEvent(e); }), T.bind(T.cursorh, "dblclick", function (e) { T.cancelEvent(e); })))), M.cursordragontouch && (this.istouchcapable || P.cantouch) && (T.bind(T.cursor, "touchstart", T.ontouchstartCursor), T.bind(T.cursor, "touchmove", T.ontouchmoveCursor), T.bind(T.cursor, "touchend", T.ontouchendCursor), T.cursorh && T.bind(T.cursorh, "touchstart", function (e) { T.ontouchstartCursor(e, !0); }), T.cursorh && T.bind(T.cursorh, "touchmove", T.ontouchmoveCursor), T.cursorh && T.bind(T.cursorh, "touchend", T.ontouchendCursor)), M.emulatetouch || P.isandroid || P.isios ? (T.bind( P.hasmousecapture ? T.win : l, "mouseup", T.ontouchend ), T.onclick && T.bind(l, "click", T.onclick), M.cursordragontouch ? (T.bind(T.cursor, "mousedown", T.onmousedown), T.bind(T.cursor, "mouseup", T.onmouseup), T.cursorh && T.bind(T.cursorh, "mousedown", function (e) { T.onmousedown(e, !0); }), T.cursorh && T.bind(T.cursorh, "mouseup", T.onmouseup)) : (T.bind(T.rail, "mousedown", function (e) { e.preventDefault(); }), T.railh && T.bind(T.railh, "mousedown", function (e) { e.preventDefault(); }))) : (T.bind( P.hasmousecapture ? T.win : l, "mouseup", T.onmouseup ), T.bind(l, "mousemove", T.onmousemove), T.onclick && T.bind(l, "click", T.onclick), T.bind(T.cursor, "mousedown", T.onmousedown), T.bind(T.cursor, "mouseup", T.onmouseup), T.railh && (T.bind(T.cursorh, "mousedown", function (e) { T.onmousedown(e, !0); }), T.bind(T.cursorh, "mouseup", T.onmouseup)), !T.ispage && M.enablescrollonselection && (T.bind(T.win[0], "mousedown", T.onselectionstart), T.bind(l, "mouseup", T.onselectionend), T.bind(T.cursor, "mouseup", T.onselectionend), T.cursorh && T.bind(T.cursorh, "mouseup", T.onselectionend), T.bind(l, "mousemove", T.onselectiondrag)), T.zoom && (T.jqbind(T.zoom, "mouseenter", function () { T.canshowonmouseevent && T.showCursor(), (T.rail.active = !0); }), T.jqbind(T.zoom, "mouseleave", function () { (T.rail.active = !1), T.rail.drag || T.hideCursor(); }))), M.enablemousewheel && (T.isiframe || T.mousewheel(P.isie && T.ispage ? l : T.win, T.onmousewheel), T.mousewheel(T.rail, T.onmousewheel), T.railh && T.mousewheel(T.railh, T.onmousewheelhr)), T.ispage || P.cantouch || /HTML|^BODY/.test(T.win[0].nodeName) || (T.win.attr("tabindex") || T.win.attr({ tabindex: ++r }), T.bind(T.win, "focus", function (e) { (o = T.getTarget(e).id || T.getTarget(e) || !1), (T.hasfocus = !0), T.canshowonmouseevent && T.noticeCursor(); }), T.bind(T.win, "blur", function (e) { (o = !1), (T.hasfocus = !1); }), T.bind(T.win, "mouseenter", function (e) { (t = T.getTarget(e).id || T.getTarget(e) || !1), (T.hasmousefocus = !0), T.canshowonmouseevent && T.noticeCursor(); }), T.bind(T.win, "mouseleave", function (e) { (t = !1), (T.hasmousefocus = !1), T.rail.drag || T.hideCursor(); })), (T.onkeypress = function (e) { if (T.railslocked && 0 === T.page.maxh) return !0; e = e || a.event; var r = T.getTarget(e); if ( r && /INPUT|TEXTAREA|SELECT|OPTION/.test(r.nodeName) && (!(r.getAttribute("type") || r.type || !1) || !/submit|button|cancel/i.tp) ) return !0; if (n(r).attr("contenteditable")) return !0; if ( T.hasfocus || (T.hasmousefocus && !o) || (T.ispage && !o && !t) ) { var i = e.keyCode; if (T.railslocked && 27 != i) return T.cancelEvent(e); var s = e.ctrlKey || !1, l = e.shiftKey || !1, c = !1; switch (i) { case 38: case 63233: T.doScrollBy(72), (c = !0); break; case 40: case 63235: T.doScrollBy(-72), (c = !0); break; case 37: case 63232: T.railh && (s ? T.doScrollLeft(0) : T.doScrollLeftBy(72), (c = !0)); break; case 39: case 63234: T.railh && (s ? T.doScrollLeft(T.page.maxw) : T.doScrollLeftBy(-72), (c = !0)); break; case 33: case 63276: T.doScrollBy(T.view.h), (c = !0); break; case 34: case 63277: T.doScrollBy(-T.view.h), (c = !0); break; case 36: case 63273: T.railh && s ? T.doScrollPos(0, 0) : T.doScrollTo(0), (c = !0); break; case 35: case 63275: T.railh && s ? T.doScrollPos(T.page.maxw, T.page.maxh) : T.doScrollTo(T.page.maxh), (c = !0); break; case 32: M.spacebarenabled && (l ? T.doScrollBy(T.view.h) : T.doScrollBy(-T.view.h), (c = !0)); break; case 27: T.zoomactive && (T.doZoom(), (c = !0)); } if (c) return T.cancelEvent(e); } }), M.enablekeyboard && T.bind( l, P.isopera && !P.isopera12 ? "keypress" : "keydown", T.onkeypress ), T.bind(l, "keydown", function (e) { (e.ctrlKey || !1) && (T.wheelprevented = !0); }), T.bind(l, "keyup", function (e) { e.ctrlKey || !1 || (T.wheelprevented = !1); }), T.bind(a, "blur", function (e) { T.wheelprevented = !1; }), T.bind(a, "resize", T.onscreenresize), T.bind(a, "orientationchange", T.onscreenresize), T.bind(a, "load", T.lazyResize), P.ischrome && !T.ispage && !T.haswrapper) ) { var C = T.win.attr("style"), N = parseFloat(T.win.css("width")) + 1; T.win.css("width", N), T.synched("chromefix", function () { T.win.attr("style", C); }); } if ( ((T.onAttributeChange = function (e) { T.lazyResize(T.isieold ? 250 : 30); }), M.enableobserver && (T.isie11 || !1 === m || ((T.observerbody = new m(function (e) { if ( (e.forEach(function (e) { if ("attributes" == e.type) return E.hasClass("modal-open") && E.hasClass("modal-dialog") && !n.contains(n(".modal-dialog")[0], T.doc[0]) ? T.hide() : T.show(); }), T.me.clientWidth != T.page.width || T.me.clientHeight != T.page.height) ) return T.lazyResize(30); })), T.observerbody.observe(l.body, { childList: !0, subtree: !0, characterData: !1, attributes: !0, attributeFilter: ["class"], })), !T.ispage && !T.haswrapper)) ) { var R = T.win[0]; !1 !== m ? ((T.observer = new m(function (e) { e.forEach(T.onAttributeChange); })), T.observer.observe(R, { childList: !0, characterData: !1, attributes: !0, subtree: !1, }), (T.observerremover = new m(function (e) { e.forEach(function (e) { if (e.removedNodes.length > 0) for (var o in e.removedNodes) if (T && e.removedNodes[o] === R) return T.remove(); }); })), T.observerremover.observe(R.parentNode, { childList: !0, characterData: !1, attributes: !1, subtree: !1, })) : (T.bind( R, P.isie && !P.isie9 ? "propertychange" : "DOMAttrModified", T.onAttributeChange ), P.isie9 && R.attachEvent("onpropertychange", T.onAttributeChange), T.bind(R, "DOMNodeRemoved", function (e) { e.target === R && T.remove(); })); } !T.ispage && M.boxzoom && T.bind(a, "resize", T.resizeZoom), T.istextarea && (T.bind(T.win, "keydown", T.lazyResize), T.bind(T.win, "mouseup", T.lazyResize)), T.lazyResize(30); } if ("IFRAME" == this.doc[0].nodeName) { var _ = function () { T.iframexd = !1; var o; try { (o = "contentDocument" in this ? this.contentDocument : this.contentWindow._doc).domain; } catch (e) { (T.iframexd = !0), (o = !1); } if (T.iframexd) return ( "console" in a && console.log("NiceScroll error: policy restriced iframe"), !0 ); if ( ((T.forcescreen = !0), T.isiframe && ((T.iframe = { doc: n(o), html: T.doc.contents().find("html")[0], body: T.doc.contents().find("body")[0], }), (T.getContentSize = function () { return { w: Math.max( T.iframe.html.scrollWidth, T.iframe.body.scrollWidth ), h: Math.max( T.iframe.html.scrollHeight, T.iframe.body.scrollHeight ), }; }), (T.docscroll = n(T.iframe.body))), !P.isios && M.iframeautoresize && !T.isiframe) ) { T.win.scrollTop(0), T.doc.height(""); var t = Math.max( o.getElementsByTagName("html")[0].scrollHeight, o.body.scrollHeight ); T.doc.height(t); } T.lazyResize(30), T.css(n(T.iframe.body), e), P.isios && T.haswrapper && T.css(n(o.body), { "-webkit-transform": "translate3d(0,0,0)", }), "contentWindow" in this ? T.bind(this.contentWindow, "scroll", T.onscroll) : T.bind(o, "scroll", T.onscroll), M.enablemousewheel && T.mousewheel(o, T.onmousewheel), M.enablekeyboard && T.bind(o, P.isopera ? "keypress" : "keydown", T.onkeypress), P.cantouch ? (T.bind(o, "touchstart", T.ontouchstart), T.bind(o, "touchmove", T.ontouchmove)) : M.emulatetouch && (T.bind(o, "mousedown", T.ontouchstart), T.bind(o, "mousemove", function (e) { return T.ontouchmove(e, !0); }), M.grabcursorenabled && P.cursorgrabvalue && T.css(n(o.body), { cursor: P.cursorgrabvalue })), T.bind(o, "mouseup", T.ontouchend), T.zoom && (M.dblclickzoom && T.bind(o, "dblclick", T.doZoom), T.ongesturezoom && T.bind(o, "gestureend", T.ongesturezoom)); }; this.doc[0].readyState && "complete" === this.doc[0].readyState && setTimeout(function () { _.call(T.doc[0], !1); }, 500), T.bind(this.doc, "load", _); } }), (this.showCursor = function (e, o) { if ( (T.cursortimeout && (clearTimeout(T.cursortimeout), (T.cursortimeout = 0)), T.rail) ) { if ( (T.autohidedom && (T.autohidedom.stop().css({ opacity: M.cursoropacitymax }), (T.cursoractive = !0)), (T.rail.drag && 1 == T.rail.drag.pt) || (void 0 !== e && !1 !== e && (T.scroll.y = (e / T.scrollratio.y) | 0), void 0 !== o && (T.scroll.x = (o / T.scrollratio.x) | 0)), T.cursor.css({ height: T.cursorheight, top: T.scroll.y }), T.cursorh) ) { var t = T.hasreversehr ? T.scrollvaluemaxw - T.scroll.x : T.scroll.x; T.cursorh.css({ width: T.cursorwidth, left: !T.rail.align && T.rail.visibility ? t + T.rail.width : t, }), (T.cursoractive = !0); } T.zoom && T.zoom.stop().css({ opacity: M.cursoropacitymax }); } }), (this.hideCursor = function (e) { T.cursortimeout || (T.rail && T.autohidedom && ((T.hasmousefocus && "leave" === M.autohidemode) || (T.cursortimeout = setTimeout(function () { (T.rail.active && T.showonmouseevent) || (T.autohidedom .stop() .animate({ opacity: M.cursoropacitymin }), T.zoom && T.zoom.stop().animate({ opacity: M.cursoropacitymin }), (T.cursoractive = !1)), (T.cursortimeout = 0); }, e || M.hidecursordelay)))); }), (this.noticeCursor = function (e, o, t) { T.showCursor(o, t), T.rail.active || T.hideCursor(e); }), (this.getContentSize = T.ispage ? function () { return { w: Math.max(l.body.scrollWidth, l.documentElement.scrollWidth), h: Math.max( l.body.scrollHeight, l.documentElement.scrollHeight ), }; } : T.haswrapper ? function () { return { w: T.doc[0].offsetWidth, h: T.doc[0].offsetHeight }; } : function () { return { w: T.docscroll[0].scrollWidth, h: T.docscroll[0].scrollHeight, }; }), (this.onResize = function (e, o) { if (!T || !T.win) return !1; var t = T.page.maxh, r = T.page.maxw, i = T.view.h, s = T.view.w; if ( ((T.view = { w: T.ispage ? T.win.width() : T.win[0].clientWidth, h: T.ispage ? T.win.height() : T.win[0].clientHeight, }), (T.page = o || T.getContentSize()), (T.page.maxh = Math.max(0, T.page.h - T.view.h)), (T.page.maxw = Math.max(0, T.page.w - T.view.w)), T.page.maxh == t && T.page.maxw == r && T.view.w == s && T.view.h == i) ) { if (T.ispage) return T; var n = T.win.offset(); if (T.lastposition) { var l = T.lastposition; if (l.top == n.top && l.left == n.left) return T; } T.lastposition = n; } return ( 0 === T.page.maxh ? (T.hideRail(), (T.scrollvaluemax = 0), (T.scroll.y = 0), (T.scrollratio.y = 0), (T.cursorheight = 0), T.setScrollTop(0), T.rail && (T.rail.scrollable = !1)) : ((T.page.maxh -= M.railpadding.top + M.railpadding.bottom), (T.rail.scrollable = !0)), 0 === T.page.maxw ? (T.hideRailHr(), (T.scrollvaluemaxw = 0), (T.scroll.x = 0), (T.scrollratio.x = 0), (T.cursorwidth = 0), T.setScrollLeft(0), T.railh && (T.railh.scrollable = !1)) : ((T.page.maxw -= M.railpadding.left + M.railpadding.right), T.railh && (T.railh.scrollable = M.horizrailenabled)), (T.railslocked = T.locked || (0 === T.page.maxh && 0 === T.page.maxw)), T.railslocked ? (T.ispage || T.updateScrollBar(T.view), !1) : (T.hidden || (T.rail.visibility || T.showRail(), T.railh && !T.railh.visibility && T.showRailHr()), T.istextarea && T.win.css("resize") && "none" != T.win.css("resize") && (T.view.h -= 20), (T.cursorheight = Math.min( T.view.h, Math.round(T.view.h * (T.view.h / T.page.h)) )), (T.cursorheight = M.cursorfixedheight ? M.cursorfixedheight : Math.max(M.cursorminheight, T.cursorheight)), (T.cursorwidth = Math.min( T.view.w, Math.round(T.view.w * (T.view.w / T.page.w)) )), (T.cursorwidth = M.cursorfixedheight ? M.cursorfixedheight : Math.max(M.cursorminheight, T.cursorwidth)), (T.scrollvaluemax = T.view.h - T.cursorheight - (M.railpadding.top + M.railpadding.bottom)), T.hasborderbox || (T.scrollvaluemax -= T.cursor[0].offsetHeight - T.cursor[0].clientHeight), T.railh && ((T.railh.width = T.page.maxh > 0 ? T.view.w - T.rail.width : T.view.w), (T.scrollvaluemaxw = T.railh.width - T.cursorwidth - (M.railpadding.left + M.railpadding.right))), T.ispage || T.updateScrollBar(T.view), (T.scrollratio = { x: T.page.maxw / T.scrollvaluemaxw, y: T.page.maxh / T.scrollvaluemax, }), T.getScrollTop() > T.page.maxh ? T.doScrollTop(T.page.maxh) : ((T.scroll.y = (T.getScrollTop() / T.scrollratio.y) | 0), (T.scroll.x = (T.getScrollLeft() / T.scrollratio.x) | 0), T.cursoractive && T.noticeCursor()), T.scroll.y && 0 === T.getScrollTop() && T.doScrollTo((T.scroll.y * T.scrollratio.y) | 0), T) ); }), (this.resize = T.onResize); var O = 0; (this.onscreenresize = function (e) { clearTimeout(O); var o = !T.ispage && !T.haswrapper; o && T.hideRails(), (O = setTimeout(function () { T && (o && T.showRails(), T.resize()), (O = 0); }, 120)); }), (this.lazyResize = function (e) { return ( clearTimeout(O), (e = isNaN(e) ? 240 : e), (O = setTimeout(function () { T && T.resize(), (O = 0); }, e)), T ); }), (this.jqbind = function (e, o, t) { T.events.push({ e: e, n: o, f: t, q: !0 }), n(e).on(o, t); }), (this.mousewheel = function (e, o, t) { var r = "jquery" in e ? e[0] : e; if ("onwheel" in l.createElement("div")) T._bind(r, "wheel", o, t || !1); else { var i = void 0 !== l.onmousewheel ? "mousewheel" : "DOMMouseScroll"; S(r, i, o, t || !1), "DOMMouseScroll" == i && S(r, "MozMousePixelScroll", o, t || !1); } }); var Y = !1; if (P.haseventlistener) { try { var H = Object.defineProperty({}, "passive", { get: function () { Y = !0; }, }); a.addEventListener("test", null, H); } catch (e) {} (this.stopPropagation = function (e) { return ( !!e && ((e = e.original ? e.original : e).stopPropagation(), !1) ); }), (this.cancelEvent = function (e) { return ( e.cancelable && e.preventDefault(), e.stopImmediatePropagation(), e.preventManipulation && e.preventManipulation(), !1 ); }); } else (Event.prototype.preventDefault = function () { this.returnValue = !1; }), (Event.prototype.stopPropagation = function () { this.cancelBubble = !0; }), (a.constructor.prototype.addEventListener = l.constructor.prototype.addEventListener = Element.prototype.addEventListener = function (e, o, t) { this.attachEvent("on" + e, o); }), (a.constructor.prototype.removeEventListener = l.constructor.prototype.removeEventListener = Element.prototype.removeEventListener = function (e, o, t) { this.detachEvent("on" + e, o); }), (this.cancelEvent = function (e) { return ( (e = e || a.event) && ((e.cancelBubble = !0), (e.cancel = !0), (e.returnValue = !1)), !1 ); }), (this.stopPropagation = function (e) { return (e = e || a.event) && (e.cancelBubble = !0), !1; }); (this.delegate = function (e, o, t, r, i) { var s = d[o] || !1; s || ((s = { a: [], l: [], f: function (e) { for (var o = s.l, t = !1, r = o.length - 1; r >= 0; r--) if (!1 === (t = o[r].call(e.target, e))) return !1; return t; }, }), T.bind(e, o, s.f, r, i), (d[o] = s)), T.ispage ? ((s.a = [T.id].concat(s.a)), (s.l = [t].concat(s.l))) : (s.a.push(T.id), s.l.push(t)); }), (this.undelegate = function (e, o, t, r, i) { var s = d[o] || !1; if (s && s.l) for (var n = 0, l = s.l.length; n < l; n++) s.a[n] === T.id && (s.a.splice(n), s.l.splice(n), 0 === s.a.length && (T._unbind(e, o, s.l.f), (d[o] = null))); }), (this.bind = function (e, o, t, r, i) { var s = "jquery" in e ? e[0] : e; T._bind(s, o, t, r || !1, i || !1); }), (this._bind = function (e, o, t, r, i) { T.events.push({ e: e, n: o, f: t, b: r, q: !1 }), Y && i ? e.addEventListener(o, t, { passive: !1, capture: r }) : e.addEventListener(o, t, r || !1); }), (this._unbind = function (e, o, t, r) { d[o] ? T.undelegate(e, o, t, r) : e.removeEventListener(o, t, r); }), (this.unbindAll = function () { for (var e = 0; e < T.events.length; e++) { var o = T.events[e]; o.q ? o.e.unbind(o.n, o.f) : T._unbind(o.e, o.n, o.f, o.b); } }), (this.showRails = function () { return T.showRail().showRailHr(); }), (this.showRail = function () { return ( 0 === T.page.maxh || (!T.ispage && "none" == T.win.css("display")) || ((T.rail.visibility = !0), T.rail.css("display", "block")), T ); }), (this.showRailHr = function () { return ( T.railh && (0 === T.page.maxw || (!T.ispage && "none" == T.win.css("display")) || ((T.railh.visibility = !0), T.railh.css("display", "block"))), T ); }), (this.hideRails = function () { return T.hideRail().hideRailHr(); }), (this.hideRail = function () { return (T.rail.visibility = !1), T.rail.css("display", "none"), T; }), (this.hideRailHr = function () { return ( T.railh && ((T.railh.visibility = !1), T.railh.css("display", "none")), T ); }), (this.show = function () { return (T.hidden = !1), (T.railslocked = !1), T.showRails(); }), (this.hide = function () { return (T.hidden = !0), (T.railslocked = !0), T.hideRails(); }), (this.toggle = function () { return T.hidden ? T.show() : T.hide(); }), (this.remove = function () { T.stop(), T.cursortimeout && clearTimeout(T.cursortimeout); for (var e in T.delaylist) T.delaylist[e] && h(T.delaylist[e].h); T.doZoomOut(), T.unbindAll(), P.isie9 && T.win[0].detachEvent("onpropertychange", T.onAttributeChange), !1 !== T.observer && T.observer.disconnect(), !1 !== T.observerremover && T.observerremover.disconnect(), !1 !== T.observerbody && T.observerbody.disconnect(), (T.events = null), T.cursor && T.cursor.remove(), T.cursorh && T.cursorh.remove(), T.rail && T.rail.remove(), T.railh && T.railh.remove(), T.zoom && T.zoom.remove(); for (var o = 0; o < T.saved.css.length; o++) { var t = T.saved.css[o]; t[0].css(t[1], void 0 === t[2] ? "" : t[2]); } (T.saved = !1), T.me.data("__nicescroll", ""); var r = n.nicescroll; r.each(function (e) { if (this && this.id === T.id) { delete r[e]; for (var o = ++e; o < r.length; o++, e++) r[e] = r[o]; --r.length && delete r[r.length]; } }); for (var i in T) (T[i] = null), delete T[i]; T = null; }), (this.scrollstart = function (e) { return (this.onscrollstart = e), T; }), (this.scrollend = function (e) { return (this.onscrollend = e), T; }), (this.scrollcancel = function (e) { return (this.onscrollcancel = e), T; }), (this.zoomin = function (e) { return (this.onzoomin = e), T; }), (this.zoomout = function (e) { return (this.onzoomout = e), T; }), (this.isScrollable = function (e) { var o = e.target ? e.target : e; if ("OPTION" == o.nodeName) return !0; for ( ; o && 1 == o.nodeType && o !== this.me[0] && !/^BODY|HTML/.test(o.nodeName); ) { var t = n(o), r = t.css("overflowY") || t.css("overflowX") || t.css("overflow") || ""; if (/scroll|auto/.test(r)) return o.clientHeight != o.scrollHeight; o = !!o.parentNode && o.parentNode; } return !1; }), (this.getViewport = function (e) { for ( var o = !(!e || !e.parentNode) && e.parentNode; o && 1 == o.nodeType && !/^BODY|HTML/.test(o.nodeName); ) { var t = n(o); if (/fixed|absolute/.test(t.css("position"))) return t; var r = t.css("overflowY") || t.css("overflowX") || t.css("overflow") || ""; if (/scroll|auto/.test(r) && o.clientHeight != o.scrollHeight) return t; if (t.getNiceScroll().length > 0) return t; o = !!o.parentNode && o.parentNode; } return !1; }), (this.triggerScrollStart = function (e, o, t, r, i) { if (T.onscrollstart) { var s = { type: "scrollstart", current: { x: e, y: o }, request: { x: t, y: r }, end: { x: T.newscrollx, y: T.newscrolly }, speed: i, }; T.onscrollstart.call(T, s); } }), (this.triggerScrollEnd = function () { if (T.onscrollend) { var e = T.getScrollLeft(), o = T.getScrollTop(), t = { type: "scrollend", current: { x: e, y: o }, end: { x: e, y: o }, }; T.onscrollend.call(T, t); } }); var B = 0, X = 0, D = 0, A = 1, q = !1; if ( ((this.onmousewheel = function (e) { if (T.wheelprevented || T.locked) return !1; if (T.railslocked) return T.debounced("checkunlock", T.resize, 250), !1; if (T.rail.drag) return T.cancelEvent(e); if ( ("auto" === M.oneaxismousemode && 0 !== e.deltaX && (M.oneaxismousemode = !1), M.oneaxismousemode && 0 === e.deltaX && !T.rail.scrollable) ) return !T.railh || !T.railh.scrollable || T.onmousewheelhr(e); var o = f(), t = !1; if ( (M.preservenativescrolling && T.checkarea + 600 < o && ((T.nativescrollingarea = T.isScrollable(e)), (t = !0)), (T.checkarea = o), T.nativescrollingarea) ) return !0; var r = k(e, !1, t); return r && (T.checkarea = 0), r; }), (this.onmousewheelhr = function (e) { if (!T.wheelprevented) { if (T.railslocked || !T.railh.scrollable) return !0; if (T.rail.drag) return T.cancelEvent(e); var o = f(), t = !1; return ( M.preservenativescrolling && T.checkarea + 600 < o && ((T.nativescrollingarea = T.isScrollable(e)), (t = !0)), (T.checkarea = o), !!T.nativescrollingarea || (T.railslocked ? T.cancelEvent(e) : k(e, !0, t)) ); } }), (this.stop = function () { return ( T.cancelScroll(), T.scrollmon && T.scrollmon.stop(), (T.cursorfreezed = !1), (T.scroll.y = Math.round(T.getScrollTop() * (1 / T.scrollratio.y))), T.noticeCursor(), T ); }), (this.getTransitionSpeed = function (e) { return (80 + (e / 72) * M.scrollspeed) | 0; }), M.smoothscroll) ) if ( T.ishwscroll && P.hastransition && M.usetransition && M.smoothscroll ) { var j = ""; (this.resetTransition = function () { (j = ""), T.doc.css(P.prefixstyle + "transition-duration", "0ms"); }), (this.prepareTransition = function (e, o) { var t = o ? e : T.getTransitionSpeed(e), r = t + "ms"; return ( j !== r && ((j = r), T.doc.css(P.prefixstyle + "transition-duration", r)), t ); }), (this.doScrollLeft = function (e, o) { var t = T.scrollrunning ? T.newscrolly : T.getScrollTop(); T.doScrollPos(e, t, o); }), (this.doScrollTop = function (e, o) { var t = T.scrollrunning ? T.newscrollx : T.getScrollLeft(); T.doScrollPos(t, e, o); }), (this.cursorupdate = { running: !1, start: function () { var e = this; if (!e.running) { e.running = !0; var o = function () { e.running && u(o), T.showCursor(T.getScrollTop(), T.getScrollLeft()), T.notifyScrollEvent(T.win[0]); }; u(o); } }, stop: function () { this.running = !1; }, }), (this.doScrollPos = function (e, o, t) { var r = T.getScrollTop(), i = T.getScrollLeft(); if ( (((T.newscrolly - r) * (o - r) < 0 || (T.newscrollx - i) * (e - i) < 0) && T.cancelScroll(), M.bouncescroll ? (o < 0 ? (o = (o / 2) | 0) : o > T.page.maxh && (o = (T.page.maxh + (o - T.page.maxh) / 2) | 0), e < 0 ? (e = (e / 2) | 0) : e > T.page.maxw && (e = (T.page.maxw + (e - T.page.maxw) / 2) | 0)) : (o < 0 ? (o = 0) : o > T.page.maxh && (o = T.page.maxh), e < 0 ? (e = 0) : e > T.page.maxw && (e = T.page.maxw)), T.scrollrunning && e == T.newscrollx && o == T.newscrolly) ) return !1; (T.newscrolly = o), (T.newscrollx = e); var s = T.getScrollTop(), n = T.getScrollLeft(), l = {}; (l.x = e - n), (l.y = o - s); var a = 0 | Math.sqrt(l.x * l.x + l.y * l.y), c = T.prepareTransition(a); T.scrollrunning || ((T.scrollrunning = !0), T.triggerScrollStart(n, s, e, o, c), T.cursorupdate.start()), (T.scrollendtrapped = !0), P.transitionend || (T.scrollendtrapped && clearTimeout(T.scrollendtrapped), (T.scrollendtrapped = setTimeout( T.onScrollTransitionEnd, c ))), T.setScrollTop(T.newscrolly), T.setScrollLeft(T.newscrollx); }), (this.cancelScroll = function () { if (!T.scrollendtrapped) return !0; var e = T.getScrollTop(), o = T.getScrollLeft(); return ( (T.scrollrunning = !1), P.transitionend || clearTimeout(P.transitionend), (T.scrollendtrapped = !1), T.resetTransition(), T.setScrollTop(e), T.railh && T.setScrollLeft(o), T.timerscroll && T.timerscroll.tm && clearInterval(T.timerscroll.tm), (T.timerscroll = !1), (T.cursorfreezed = !1), T.cursorupdate.stop(), T.showCursor(e, o), T ); }), (this.onScrollTransitionEnd = function () { if (T.scrollendtrapped) { var e = T.getScrollTop(), o = T.getScrollLeft(); if ( (e < 0 ? (e = 0) : e > T.page.maxh && (e = T.page.maxh), o < 0 ? (o = 0) : o > T.page.maxw && (o = T.page.maxw), e != T.newscrolly || o != T.newscrollx) ) return T.doScrollPos(o, e, M.snapbackspeed); T.scrollrunning && T.triggerScrollEnd(), (T.scrollrunning = !1), (T.scrollendtrapped = !1), T.resetTransition(), (T.timerscroll = !1), T.setScrollTop(e), T.railh && T.setScrollLeft(o), T.cursorupdate.stop(), T.noticeCursor(!1, e, o), (T.cursorfreezed = !1); } }); } else (this.doScrollLeft = function (e, o) { var t = T.scrollrunning ? T.newscrolly : T.getScrollTop(); T.doScrollPos(e, t, o); }), (this.doScrollTop = function (e, o) { var t = T.scrollrunning ? T.newscrollx : T.getScrollLeft(); T.doScrollPos(t, e, o); }), (this.doScrollPos = function (e, o, t) { var r = T.getScrollTop(), i = T.getScrollLeft(); ((T.newscrolly - r) * (o - r) < 0 || (T.newscrollx - i) * (e - i) < 0) && T.cancelScroll(); var s = !1; if ( ((T.bouncescroll && T.rail.visibility) || (o < 0 ? ((o = 0), (s = !0)) : o > T.page.maxh && ((o = T.page.maxh), (s = !0))), (T.bouncescroll && T.railh.visibility) || (e < 0 ? ((e = 0), (s = !0)) : e > T.page.maxw && ((e = T.page.maxw), (s = !0))), T.scrollrunning && T.newscrolly === o && T.newscrollx === e) ) return !0; (T.newscrolly = o), (T.newscrollx = e), (T.dst = {}), (T.dst.x = e - i), (T.dst.y = o - r), (T.dst.px = i), (T.dst.py = r); var n = 0 | Math.sqrt(T.dst.x * T.dst.x + T.dst.y * T.dst.y), l = T.getTransitionSpeed(n); T.bzscroll = {}; var a = s ? 1 : 0.58; (T.bzscroll.x = new R(i, T.newscrollx, l, 0, 0, a, 1)), (T.bzscroll.y = new R(r, T.newscrolly, l, 0, 0, a, 1)); f(); var c = function () { if (T.scrollrunning) { var e = T.bzscroll.y.getPos(); T.setScrollLeft(T.bzscroll.x.getNow()), T.setScrollTop(T.bzscroll.y.getNow()), e <= 1 ? (T.timer = u(c)) : ((T.scrollrunning = !1), (T.timer = 0), T.triggerScrollEnd()); } }; T.scrollrunning || (T.triggerScrollStart(i, r, e, o, l), (T.scrollrunning = !0), (T.timer = u(c))); }), (this.cancelScroll = function () { return ( T.timer && h(T.timer), (T.timer = 0), (T.bzscroll = !1), (T.scrollrunning = !1), T ); }); else (this.doScrollLeft = function (e, o) { var t = T.getScrollTop(); T.doScrollPos(e, t, o); }), (this.doScrollTop = function (e, o) { var t = T.getScrollLeft(); T.doScrollPos(t, e, o); }), (this.doScrollPos = function (e, o, t) { var r = e > T.page.maxw ? T.page.maxw : e; r < 0 && (r = 0); var i = o > T.page.maxh ? T.page.maxh : o; i < 0 && (i = 0), T.synched("scroll", function () { T.setScrollTop(i), T.setScrollLeft(r); }); }), (this.cancelScroll = function () {}); (this.doScrollBy = function (e, o) { z(0, e); }), (this.doScrollLeftBy = function (e, o) { z(e, 0); }), (this.doScrollTo = function (e, o) { var t = o ? Math.round(e * T.scrollratio.y) : e; t < 0 ? (t = 0) : t > T.page.maxh && (t = T.page.maxh), (T.cursorfreezed = !1), T.doScrollTop(e); }), (this.checkContentSize = function () { var e = T.getContentSize(); (e.h == T.page.h && e.w == T.page.w) || T.resize(!1, e); }), (T.onscroll = function (e) { T.rail.drag || T.cursorfreezed || T.synched("scroll", function () { (T.scroll.y = Math.round(T.getScrollTop() / T.scrollratio.y)), T.railh && (T.scroll.x = Math.round( T.getScrollLeft() / T.scrollratio.x )), T.noticeCursor(); }); }), T.bind(T.docscroll, "scroll", T.onscroll), (this.doZoomIn = function (e) { if (!T.zoomactive) { (T.zoomactive = !0), (T.zoomrestore = { style: {} }); var o = [ "position", "top", "left", "zIndex", "backgroundColor", "marginTop", "marginBottom", "marginLeft", "marginRight", ], t = T.win[0].style; for (var r in o) { var i = o[r]; T.zoomrestore.style[i] = void 0 !== t[i] ? t[i] : ""; } (T.zoomrestore.style.width = T.win.css("width")), (T.zoomrestore.style.height = T.win.css("height")), (T.zoomrestore.padding = { w: T.win.outerWidth() - T.win.width(), h: T.win.outerHeight() - T.win.height(), }), P.isios4 && ((T.zoomrestore.scrollTop = c.scrollTop()), c.scrollTop(0)), T.win.css({ position: P.isios4 ? "absolute" : "fixed", top: 0, left: 0, zIndex: s + 100, margin: 0, }); var n = T.win.css("backgroundColor"); return ( ("" === n || /transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(n)) && T.win.css("backgroundColor", "#fff"), T.rail.css({ zIndex: s + 101 }), T.zoom.css({ zIndex: s + 102 }), T.zoom.css("backgroundPosition", "0 -18px"), T.resizeZoom(), T.onzoomin && T.onzoomin.call(T), T.cancelEvent(e) ); } }), (this.doZoomOut = function (e) { if (T.zoomactive) return ( (T.zoomactive = !1), T.win.css("margin", ""), T.win.css(T.zoomrestore.style), P.isios4 && c.scrollTop(T.zoomrestore.scrollTop), T.rail.css({ "z-index": T.zindex }), T.zoom.css({ "z-index": T.zindex }), (T.zoomrestore = !1), T.zoom.css("backgroundPosition", "0 0"), T.onResize(), T.onzoomout && T.onzoomout.call(T), T.cancelEvent(e) ); }), (this.doZoom = function (e) { return T.zoomactive ? T.doZoomOut(e) : T.doZoomIn(e); }), (this.resizeZoom = function () { if (T.zoomactive) { var e = T.getScrollTop(); T.win.css({ width: c.width() - T.zoomrestore.padding.w + "px", height: c.height() - T.zoomrestore.padding.h + "px", }), T.onResize(), T.setScrollTop(Math.min(T.page.maxh, e)); } }), this.init(), n.nicescroll.push(this); }, y = function (e) { var o = this; (this.nc = e), (this.lastx = 0), (this.lasty = 0), (this.speedx = 0), (this.speedy = 0), (this.lasttime = 0), (this.steptime = 0), (this.snapx = !1), (this.snapy = !1), (this.demulx = 0), (this.demuly = 0), (this.lastscrollx = -1), (this.lastscrolly = -1), (this.chkx = 0), (this.chky = 0), (this.timer = 0), (this.reset = function (e, t) { o.stop(), (o.steptime = 0), (o.lasttime = f()), (o.speedx = 0), (o.speedy = 0), (o.lastx = e), (o.lasty = t), (o.lastscrollx = -1), (o.lastscrolly = -1); }), (this.update = function (e, t) { var r = f(); (o.steptime = r - o.lasttime), (o.lasttime = r); var i = t - o.lasty, s = e - o.lastx, n = o.nc.getScrollTop() + i, l = o.nc.getScrollLeft() + s; (o.snapx = l < 0 || l > o.nc.page.maxw), (o.snapy = n < 0 || n > o.nc.page.maxh), (o.speedx = s), (o.speedy = i), (o.lastx = e), (o.lasty = t); }), (this.stop = function () { o.nc.unsynched("domomentum2d"), o.timer && clearTimeout(o.timer), (o.timer = 0), (o.lastscrollx = -1), (o.lastscrolly = -1); }), (this.doSnapy = function (e, t) { var r = !1; t < 0 ? ((t = 0), (r = !0)) : t > o.nc.page.maxh && ((t = o.nc.page.maxh), (r = !0)), e < 0 ? ((e = 0), (r = !0)) : e > o.nc.page.maxw && ((e = o.nc.page.maxw), (r = !0)), r ? o.nc.doScrollPos(e, t, o.nc.opt.snapbackspeed) : o.nc.triggerScrollEnd(); }), (this.doMomentum = function (e) { var t = f(), r = e ? t + e : o.lasttime, i = o.nc.getScrollLeft(), s = o.nc.getScrollTop(), n = o.nc.page.maxh, l = o.nc.page.maxw; (o.speedx = l > 0 ? Math.min(60, o.speedx) : 0), (o.speedy = n > 0 ? Math.min(60, o.speedy) : 0); var a = r && t - r <= 60; (s < 0 || s > n || i < 0 || i > l) && (a = !1); var c = !(!o.speedy || !a) && o.speedy, d = !(!o.speedx || !a) && o.speedx; if (c || d) { var u = Math.max(16, o.steptime); if (u > 50) { var h = u / 50; (o.speedx *= h), (o.speedy *= h), (u = 50); } (o.demulxy = 0), (o.lastscrollx = o.nc.getScrollLeft()), (o.chkx = o.lastscrollx), (o.lastscrolly = o.nc.getScrollTop()), (o.chky = o.lastscrolly); var p = o.lastscrollx, m = o.lastscrolly, g = function () { var e = f() - t > 600 ? 0.04 : 0.02; o.speedx && ((p = Math.floor(o.lastscrollx - o.speedx * (1 - o.demulxy))), (o.lastscrollx = p), (p < 0 || p > l) && (e = 0.1)), o.speedy && ((m = Math.floor( o.lastscrolly - o.speedy * (1 - o.demulxy) )), (o.lastscrolly = m), (m < 0 || m > n) && (e = 0.1)), (o.demulxy = Math.min(1, o.demulxy + e)), o.nc.synched("domomentum2d", function () { if (o.speedx) { o.nc.getScrollLeft(); (o.chkx = p), o.nc.setScrollLeft(p); } if (o.speedy) { o.nc.getScrollTop(); (o.chky = m), o.nc.setScrollTop(m); } o.timer || (o.nc.hideCursor(), o.doSnapy(p, m)); }), o.demulxy < 1 ? (o.timer = setTimeout(g, u)) : (o.stop(), o.nc.hideCursor(), o.doSnapy(p, m)); }; g(); } else o.doSnapy(o.nc.getScrollLeft(), o.nc.getScrollTop()); }); }, x = e.fn.scrollTop; (e.cssHooks.pageYOffset = { get: function (e, o, t) { var r = n.data(e, "__nicescroll") || !1; return r && r.ishwscroll ? r.getScrollTop() : x.call(e); }, set: function (e, o) { var t = n.data(e, "__nicescroll") || !1; return ( t && t.ishwscroll ? t.setScrollTop(parseInt(o)) : x.call(e, o), this ); }, }), (e.fn.scrollTop = function (e) { if (void 0 === e) { var o = !!this[0] && (n.data(this[0], "__nicescroll") || !1); return o && o.ishwscroll ? o.getScrollTop() : x.call(this); } return this.each(function () { var o = n.data(this, "__nicescroll") || !1; o && o.ishwscroll ? o.setScrollTop(parseInt(e)) : x.call(n(this), e); }); }); var S = e.fn.scrollLeft; (n.cssHooks.pageXOffset = { get: function (e, o, t) { var r = n.data(e, "__nicescroll") || !1; return r && r.ishwscroll ? r.getScrollLeft() : S.call(e); }, set: function (e, o) { var t = n.data(e, "__nicescroll") || !1; return ( t && t.ishwscroll ? t.setScrollLeft(parseInt(o)) : S.call(e, o), this ); }, }), (e.fn.scrollLeft = function (e) { if (void 0 === e) { var o = !!this[0] && (n.data(this[0], "__nicescroll") || !1); return o && o.ishwscroll ? o.getScrollLeft() : S.call(this); } return this.each(function () { var o = n.data(this, "__nicescroll") || !1; o && o.ishwscroll ? o.setScrollLeft(parseInt(e)) : S.call(n(this), e); }); }); var z = function (e) { var o = this; if ( ((this.length = 0), (this.name = "nicescrollarray"), (this.each = function (e) { return n.each(o, e), o; }), (this.push = function (e) { (o[o.length] = e), o.length++; }), (this.eq = function (e) { return o[e]; }), e) ) for (var t = 0; t < e.length; t++) { var r = n.data(e[t], "__nicescroll") || !1; r && ((this[this.length] = r), this.length++); } return this; }; !(function (e, o, t) { for (var r = 0, i = o.length; r < i; r++) t(e, o[r]); })( z.prototype, [ "show", "hide", "toggle", "onResize", "resize", "remove", "stop", "doScrollPos", ], function (e, o) { e[o] = function () { var e = arguments; return this.each(function () { this[o].apply(this, e); }); }; } ), (e.fn.getNiceScroll = function (e) { return void 0 === e ? new z(this) : (this[e] && n.data(this[e], "__nicescroll")) || !1; }), ((e.expr.pseudos || e.expr[":"]).nicescroll = function (e) { return void 0 !== n.data(e, "__nicescroll"); }), (n.fn.niceScroll = function (e, o) { void 0 !== o || "object" != typeof e || "jquery" in e || ((o = e), (e = !1)); var t = new z(); return ( this.each(function () { var r = n(this), i = n.extend({}, o); if (e) { var s = n(e); (i.doc = s.length > 1 ? n(e, r) : s), (i.win = r); } !("doc" in i) || "win" in i || (i.win = r); var l = r.data("__nicescroll") || !1; l || ((i.doc = i.doc || r), (l = new b(i, r)), r.data("__nicescroll", l)), t.push(l); }), 1 === t.length ? t[0] : t ); }), (a.NiceScroll = { getjQuery: function () { return e; }, }), n.nicescroll || ((n.nicescroll = new z()), (n.nicescroll.options = g)); }); /*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under the MIT license */ if ("undefined" == typeof jQuery) throw new Error("Bootstrap's JavaScript requires jQuery"); +(function (t) { "use strict"; var e = t.fn.jquery.split(" ")[0].split("."); if ( (e[0] < 2 && e[1] < 9) || (1 == e[0] && 9 == e[1] && e[2] < 1) || e[0] > 3 ) throw new Error( "Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4" ); })(jQuery), +(function (t) { "use strict"; function e() { var t = document.createElement("bootstrap"), e = { WebkitTransition: "webkitTransitionEnd", MozTransition: "transitionend", OTransition: "oTransitionEnd otransitionend", transition: "transitionend", }; for (var i in e) if (void 0 !== t.style[i]) return { end: e[i] }; return !1; } (t.fn.emulateTransitionEnd = function (e) { var i = !1, o = this; t(this).one("bsTransitionEnd", function () { i = !0; }); var n = function () { i || t(o).trigger(t.support.transition.end); }; return setTimeout(n, e), this; }), t(function () { (t.support.transition = e()), t.support.transition && (t.event.special.bsTransitionEnd = { bindType: t.support.transition.end, delegateType: t.support.transition.end, handle: function (e) { if (t(e.target).is(this)) return e.handleObj.handler.apply(this, arguments); }, }); }); })(jQuery), +(function (t) { "use strict"; function e(e) { return this.each(function () { var i = t(this), n = i.data("bs.alert"); n || i.data("bs.alert", (n = new o(this))), "string" == typeof e && n[e].call(i); }); } var i = '[data-dismiss="alert"]', o = function (e) { t(e).on("click", i, this.close); }; (o.VERSION = "3.3.7"), (o.TRANSITION_DURATION = 150), (o.prototype.close = function (e) { function i() { a.detach().trigger("closed.bs.alert").remove(); } var n = t(this), s = n.attr("data-target"); s || ((s = n.attr("href")), (s = s && s.replace(/.*(?=#[^\s]*$)/, ""))); var a = t("#" === s ? [] : s); e && e.preventDefault(), a.length || (a = n.closest(".alert")), a.trigger((e = t.Event("close.bs.alert"))), e.isDefaultPrevented() || (a.removeClass("in"), t.support.transition && a.hasClass("fade") ? a .one("bsTransitionEnd", i) .emulateTransitionEnd(o.TRANSITION_DURATION) : i()); }); var n = t.fn.alert; (t.fn.alert = e), (t.fn.alert.Constructor = o), (t.fn.alert.noConflict = function () { return (t.fn.alert = n), this; }), t(document).on("click.bs.alert.data-api", i, o.prototype.close); })(jQuery), +(function (t) { "use strict"; function e(e) { return this.each(function () { var o = t(this), n = o.data("bs.button"), s = "object" == typeof e && e; n || o.data("bs.button", (n = new i(this, s))), "toggle" == e ? n.toggle() : e && n.setState(e); }); } var i = function (e, o) { (this.$element = t(e)), (this.options = t.extend({}, i.DEFAULTS, o)), (this.isLoading = !1); }; (i.VERSION = "3.3.7"), (i.DEFAULTS = { loadingText: "loading..." }), (i.prototype.setState = function (e) { var i = "disabled", o = this.$element, n = o.is("input") ? "val" : "html", s = o.data(); (e += "Text"), null == s.resetText && o.data("resetText", o[n]()), setTimeout( t.proxy(function () { o[n](null == s[e] ? this.options[e] : s[e]), "loadingText" == e ? ((this.isLoading = !0), o.addClass(i).attr(i, i).prop(i, !0)) : this.isLoading && ((this.isLoading = !1), o.removeClass(i).removeAttr(i).prop(i, !1)); }, this), 0 ); }), (i.prototype.toggle = function () { var t = !0, e = this.$element.closest('[data-toggle="buttons"]'); if (e.length) { var i = this.$element.find("input"); "radio" == i.prop("type") ? (i.prop("checked") && (t = !1), e.find(".active").removeClass("active"), this.$element.addClass("active")) : "checkbox" == i.prop("type") && (i.prop("checked") !== this.$element.hasClass("active") && (t = !1), this.$element.toggleClass("active")), i.prop("checked", this.$element.hasClass("active")), t && i.trigger("change"); } else this.$element.attr("aria-pressed", !this.$element.hasClass("active")), this.$element.toggleClass("active"); }); var o = t.fn.button; (t.fn.button = e), (t.fn.button.Constructor = i), (t.fn.button.noConflict = function () { return (t.fn.button = o), this; }), t(document) .on( "click.bs.button.data-api", '[data-toggle^="button"]', function (i) { var o = t(i.target).closest(".btn"); e.call(o, "toggle"), t(i.target).is('input[type="radio"], input[type="checkbox"]') || (i.preventDefault(), o.is("input,button") ? o.trigger("focus") : o .find("input:visible,button:visible") .first() .trigger("focus")); } ) .on( "focus.bs.button.data-api blur.bs.button.data-api", '[data-toggle^="button"]', function (e) { t(e.target) .closest(".btn") .toggleClass("focus", /^focus(in)?$/.test(e.type)); } ); })(jQuery), +(function (t) { "use strict"; function e(e) { return this.each(function () { var o = t(this), n = o.data("bs.carousel"), s = t.extend({}, i.DEFAULTS, o.data(), "object" == typeof e && e), a = "string" == typeof e ? e : s.slide; n || o.data("bs.carousel", (n = new i(this, s))), "number" == typeof e ? n.to(e) : a ? n[a]() : s.interval && n.pause().cycle(); }); } var i = function (e, i) { (this.$element = t(e)), (this.$indicators = this.$element.find(".carousel-indicators")), (this.options = i), (this.paused = null), (this.sliding = null), (this.interval = null), (this.$active = null), (this.$items = null), this.options.keyboard && this.$element.on("keydown.bs.carousel", t.proxy(this.keydown, this)), "hover" == this.options.pause && !("ontouchstart" in document.documentElement) && this.$element .on("mouseenter.bs.carousel", t.proxy(this.pause, this)) .on("mouseleave.bs.carousel", t.proxy(this.cycle, this)); }; (i.VERSION = "3.3.7"), (i.TRANSITION_DURATION = 600), (i.DEFAULTS = { interval: 5e3, pause: "hover", wrap: !0, keyboard: !0 }), (i.prototype.keydown = function (t) { if (!/input|textarea/i.test(t.target.tagName)) { switch (t.which) { case 37: this.prev(); break; case 39: this.next(); break; default: return; } t.preventDefault(); } }), (i.prototype.cycle = function (e) { return ( e || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval( t.proxy(this.next, this), this.options.interval )), this ); }), (i.prototype.getItemIndex = function (t) { return ( (this.$items = t.parent().children(".item")), this.$items.index(t || this.$active) ); }), (i.prototype.getItemForDirection = function (t, e) { var i = this.getItemIndex(e), o = ("prev" == t && 0 === i) || ("next" == t && i == this.$items.length - 1); if (o && !this.options.wrap) return e; var n = "prev" == t ? -1 : 1, s = (i + n) % this.$items.length; return this.$items.eq(s); }), (i.prototype.to = function (t) { var e = this, i = this.getItemIndex( (this.$active = this.$element.find(".item.active")) ); if (!(t > this.$items.length - 1 || t < 0)) return this.sliding ? this.$element.one("slid.bs.carousel", function () { e.to(t); }) : i == t ? this.pause().cycle() : this.slide(t > i ? "next" : "prev", this.$items.eq(t)); }), (i.prototype.pause = function (e) { return ( e || (this.paused = !0), this.$element.find(".next, .prev").length && t.support.transition && (this.$element.trigger(t.support.transition.end), this.cycle(!0)), (this.interval = clearInterval(this.interval)), this ); }), (i.prototype.next = function () { if (!this.sliding) return this.slide("next"); }), (i.prototype.prev = function () { if (!this.sliding) return this.slide("prev"); }), (i.prototype.slide = function (e, o) { var n = this.$element.find(".item.active"), s = o || this.getItemForDirection(e, n), a = this.interval, r = "next" == e ? "left" : "right", l = this; if (s.hasClass("active")) return (this.sliding = !1); var h = s[0], d = t.Event("slide.bs.carousel", { relatedTarget: h, direction: r }); if ((this.$element.trigger(d), !d.isDefaultPrevented())) { if ( ((this.sliding = !0), a && this.pause(), this.$indicators.length) ) { this.$indicators.find(".active").removeClass("active"); var p = t(this.$indicators.children()[this.getItemIndex(s)]); p && p.addClass("active"); } var c = t.Event("slid.bs.carousel", { relatedTarget: h, direction: r, }); return ( t.support.transition && this.$element.hasClass("slide") ? (s.addClass(e), s[0].offsetWidth, n.addClass(r), s.addClass(r), n .one("bsTransitionEnd", function () { s.removeClass([e, r].join(" ")).addClass("active"), n.removeClass(["active", r].join(" ")), (l.sliding = !1), setTimeout(function () { l.$element.trigger(c); }, 0); }) .emulateTransitionEnd(i.TRANSITION_DURATION)) : (n.removeClass("active"), s.addClass("active"), (this.sliding = !1), this.$element.trigger(c)), a && this.cycle(), this ); } }); var o = t.fn.carousel; (t.fn.carousel = e), (t.fn.carousel.Constructor = i), (t.fn.carousel.noConflict = function () { return (t.fn.carousel = o), this; }); var n = function (i) { var o, n = t(this), s = t( n.attr("data-target") || ((o = n.attr("href")) && o.replace(/.*(?=#[^\s]+$)/, "")) ); if (s.hasClass("carousel")) { var a = t.extend({}, s.data(), n.data()), r = n.attr("data-slide-to"); r && (a.interval = !1), e.call(s, a), r && s.data("bs.carousel").to(r), i.preventDefault(); } }; t(document) .on("click.bs.carousel.data-api", "[data-slide]", n) .on("click.bs.carousel.data-api", "[data-slide-to]", n), t(window).on("load", function () { t('[data-ride="carousel"]').each(function () { var i = t(this); e.call(i, i.data()); }); }); })(jQuery), +(function (t) { "use strict"; function e(e) { var i, o = e.attr("data-target") || ((i = e.attr("href")) && i.replace(/.*(?=#[^\s]+$)/, "")); return t(o); } function i(e) { return this.each(function () { var i = t(this), n = i.data("bs.collapse"), s = t.extend({}, o.DEFAULTS, i.data(), "object" == typeof e && e); !n && s.toggle && /show|hide/.test(e) && (s.toggle = !1), n || i.data("bs.collapse", (n = new o(this, s))), "string" == typeof e && n[e](); }); } var o = function (e, i) { (this.$element = t(e)), (this.options = t.extend({}, o.DEFAULTS, i)), (this.$trigger = t( '[data-toggle="collapse"][href="#' + e.id + '"],[data-toggle="collapse"][data-target="#' + e.id + '"]' )), (this.transitioning = null), this.options.parent ? (this.$parent = this.getParent()) : this.addAriaAndCollapsedClass(this.$element, this.$trigger), this.options.toggle && this.toggle(); }; (o.VERSION = "3.3.7"), (o.TRANSITION_DURATION = 350), (o.DEFAULTS = { toggle: !0 }), (o.prototype.dimension = function () { var t = this.$element.hasClass("width"); return t ? "width" : "height"; }), (o.prototype.show = function () { if (!this.transitioning && !this.$element.hasClass("in")) { var e, n = this.$parent && this.$parent.children(".panel").children(".in, .collapsing"); if ( !( n && n.length && ((e = n.data("bs.collapse")), e && e.transitioning) ) ) { var s = t.Event("show.bs.collapse"); if ((this.$element.trigger(s), !s.isDefaultPrevented())) { n && n.length && (i.call(n, "hide"), e || n.data("bs.collapse", null)); var a = this.dimension(); this.$element .removeClass("collapse") .addClass("collapsing") [a](0) .attr("aria-expanded", !0), this.$trigger .removeClass("collapsed") .attr("aria-expanded", !0), (this.transitioning = 1); var r = function () { this.$element .removeClass("collapsing") .addClass("collapse in") [a](""), (this.transitioning = 0), this.$element.trigger("shown.bs.collapse"); }; if (!t.support.transition) return r.call(this); var l = t.camelCase(["scroll", a].join("-")); this.$element .one("bsTransitionEnd", t.proxy(r, this)) .emulateTransitionEnd(o.TRANSITION_DURATION) [a](this.$element[0][l]); } } } }), (o.prototype.hide = function () { if (!this.transitioning && this.$element.hasClass("in")) { var e = t.Event("hide.bs.collapse"); if ((this.$element.trigger(e), !e.isDefaultPrevented())) { var i = this.dimension(); this.$element[i](this.$element[i]())[0].offsetHeight, this.$element .addClass("collapsing") .removeClass("collapse in") .attr("aria-expanded", !1), this.$trigger.addClass("collapsed").attr("aria-expanded", !1), (this.transitioning = 1); var n = function () { (this.transitioning = 0), this.$element .removeClass("collapsing") .addClass("collapse") .trigger("hidden.bs.collapse"); }; return t.support.transition ? void this.$element[i](0) .one("bsTransitionEnd", t.proxy(n, this)) .emulateTransitionEnd(o.TRANSITION_DURATION) : n.call(this); } } }), (o.prototype.toggle = function () { this[this.$element.hasClass("in") ? "hide" : "show"](); }), (o.prototype.getParent = function () { return t(this.options.parent) .find( '[data-toggle="collapse"][data-parent="' + this.options.parent + '"]' ) .each( t.proxy(function (i, o) { var n = t(o); this.addAriaAndCollapsedClass(e(n), n); }, this) ) .end(); }), (o.prototype.addAriaAndCollapsedClass = function (t, e) { var i = t.hasClass("in"); t.attr("aria-expanded", i), e.toggleClass("collapsed", !i).attr("aria-expanded", i); }); var n = t.fn.collapse; (t.fn.collapse = i), (t.fn.collapse.Constructor = o), (t.fn.collapse.noConflict = function () { return (t.fn.collapse = n), this; }), t(document).on( "click.bs.collapse.data-api", '[data-toggle="collapse"]', function (o) { var n = t(this); n.attr("data-target") || o.preventDefault(); var s = e(n), a = s.data("bs.collapse"), r = a ? "toggle" : n.data(); i.call(s, r); } ); })(jQuery), +(function (t) { "use strict"; function e(e) { var i = e.attr("data-target"); i || ((i = e.attr("href")), (i = i && /#[A-Za-z]/.test(i) && i.replace(/.*(?=#[^\s]*$)/, ""))); var o = i && t(i); return o && o.length ? o : e.parent(); } function i(i) { (i && 3 === i.which) || (t(n).remove(), t(s).each(function () { var o = t(this), n = e(o), s = { relatedTarget: this }; n.hasClass("open") && ((i && "click" == i.type && /input|textarea/i.test(i.target.tagName) && t.contains(n[0], i.target)) || (n.trigger((i = t.Event("hide.bs.dropdown", s))), i.isDefaultPrevented() || (o.attr("aria-expanded", "false"), n .removeClass("open") .trigger(t.Event("hidden.bs.dropdown", s))))); })); } function o(e) { return this.each(function () { var i = t(this), o = i.data("bs.dropdown"); o || i.data("bs.dropdown", (o = new a(this))), "string" == typeof e && o[e].call(i); }); } var n = ".dropdown-backdrop", s = '[data-toggle="dropdown"]', a = function (e) { t(e).on("click.bs.dropdown", this.toggle); }; (a.VERSION = "3.3.7"), (a.prototype.toggle = function (o) { var n = t(this); if (!n.is(".disabled, :disabled")) { var s = e(n), a = s.hasClass("open"); if ((i(), !a)) { "ontouchstart" in document.documentElement && !s.closest(".navbar-nav").length && t(document.createElement("div")) .addClass("dropdown-backdrop") .insertAfter(t(this)) .on("click", i); var r = { relatedTarget: this }; if ( (s.trigger((o = t.Event("show.bs.dropdown", r))), o.isDefaultPrevented()) ) return; n.trigger("focus").attr("aria-expanded", "true"), s.toggleClass("open").trigger(t.Event("shown.bs.dropdown", r)); } return !1; } }), (a.prototype.keydown = function (i) { if ( /(38|40|27|32)/.test(i.which) && !/input|textarea/i.test(i.target.tagName) ) { var o = t(this); if ( (i.preventDefault(), i.stopPropagation(), !o.is(".disabled, :disabled")) ) { var n = e(o), a = n.hasClass("open"); if ((!a && 27 != i.which) || (a && 27 == i.which)) return ( 27 == i.which && n.find(s).trigger("focus"), o.trigger("click") ); var r = " li:not(.disabled):visible a", l = n.find(".dropdown-menu" + r); if (l.length) { var h = l.index(i.target); 38 == i.which && h > 0 && h--, 40 == i.which && h < l.length - 1 && h++, ~h || (h = 0), l.eq(h).trigger("focus"); } } } }); var r = t.fn.dropdown; (t.fn.dropdown = o), (t.fn.dropdown.Constructor = a), (t.fn.dropdown.noConflict = function () { return (t.fn.dropdown = r), this; }), t(document) .on("click.bs.dropdown.data-api", i) .on("click.bs.dropdown.data-api", ".dropdown form", function (t) { t.stopPropagation(); }) .on("click.bs.dropdown.data-api", s, a.prototype.toggle) .on("keydown.bs.dropdown.data-api", s, a.prototype.keydown) .on( "keydown.bs.dropdown.data-api", ".dropdown-menu", a.prototype.keydown ); })(jQuery), +(function (t) { "use strict"; function e(e, o) { return this.each(function () { var n = t(this), s = n.data("bs.modal"), a = t.extend({}, i.DEFAULTS, n.data(), "object" == typeof e && e); s || n.data("bs.modal", (s = new i(this, a))), "string" == typeof e ? s[e](o) : a.show && s.show(o); }); } var i = function (e, i) { (this.options = i), (this.$body = t(document.body)), (this.$element = t(e)), (this.$dialog = this.$element.find(".modal-dialog")), (this.$backdrop = null), (this.isShown = null), (this.originalBodyPad = null), (this.scrollbarWidth = 0), (this.ignoreBackdropClick = !1), this.options.remote && this.$element.find(".modal-content").load( this.options.remote, t.proxy(function () { this.$element.trigger("loaded.bs.modal"); }, this) ); }; (i.VERSION = "3.3.7"), (i.TRANSITION_DURATION = 300), (i.BACKDROP_TRANSITION_DURATION = 150), (i.DEFAULTS = { backdrop: !0, keyboard: !0, show: !0 }), (i.prototype.toggle = function (t) { return this.isShown ? this.hide() : this.show(t); }), (i.prototype.show = function (e) { var o = this, n = t.Event("show.bs.modal", { relatedTarget: e }); this.$element.trigger(n), this.isShown || n.isDefaultPrevented() || ((this.isShown = !0), this.checkScrollbar(), this.setScrollbar(), this.$body.addClass("modal-open"), this.escape(), this.resize(), this.$element.on( "click.dismiss.bs.modal", '[data-dismiss="modal"]', t.proxy(this.hide, this) ), this.$dialog.on("mousedown.dismiss.bs.modal", function () { o.$element.one("mouseup.dismiss.bs.modal", function (e) { t(e.target).is(o.$element) && (o.ignoreBackdropClick = !0); }); }), this.backdrop(function () { var n = t.support.transition && o.$element.hasClass("fade"); o.$element.parent().length || o.$element.appendTo(o.$body), o.$element.show().scrollTop(0), o.adjustDialog(), n && o.$element[0].offsetWidth, o.$element.addClass("in"), o.enforceFocus(); var s = t.Event("shown.bs.modal", { relatedTarget: e }); n ? o.$dialog .one("bsTransitionEnd", function () { o.$element.trigger("focus").trigger(s); }) .emulateTransitionEnd(i.TRANSITION_DURATION) : o.$element.trigger("focus").trigger(s); })); }), (i.prototype.hide = function (e) { e && e.preventDefault(), (e = t.Event("hide.bs.modal")), this.$element.trigger(e), this.isShown && !e.isDefaultPrevented() && ((this.isShown = !1), this.escape(), this.resize(), t(document).off("focusin.bs.modal"), this.$element .removeClass("in") .off("click.dismiss.bs.modal") .off("mouseup.dismiss.bs.modal"), this.$dialog.off("mousedown.dismiss.bs.modal"), t.support.transition && this.$element.hasClass("fade") ? this.$element .one("bsTransitionEnd", t.proxy(this.hideModal, this)) .emulateTransitionEnd(i.TRANSITION_DURATION) : this.hideModal()); }), (i.prototype.enforceFocus = function () { t(document) .off("focusin.bs.modal") .on( "focusin.bs.modal", t.proxy(function (t) { document === t.target || this.$element[0] === t.target || this.$element.has(t.target).length || this.$element.trigger("focus"); }, this) ); }), (i.prototype.escape = function () { this.isShown && this.options.keyboard ? this.$element.on( "keydown.dismiss.bs.modal", t.proxy(function (t) { 27 == t.which && this.hide(); }, this) ) : this.isShown || this.$element.off("keydown.dismiss.bs.modal"); }), (i.prototype.resize = function () { this.isShown ? t(window).on("resize.bs.modal", t.proxy(this.handleUpdate, this)) : t(window).off("resize.bs.modal"); }), (i.prototype.hideModal = function () { var t = this; this.$element.hide(), this.backdrop(function () { t.$body.removeClass("modal-open"), t.resetAdjustments(), t.resetScrollbar(), t.$element.trigger("hidden.bs.modal"); }); }), (i.prototype.removeBackdrop = function () { this.$backdrop && this.$backdrop.remove(), (this.$backdrop = null); }), (i.prototype.backdrop = function (e) { var o = this, n = this.$element.hasClass("fade") ? "fade" : ""; if (this.isShown && this.options.backdrop) { var s = t.support.transition && n; if ( ((this.$backdrop = t(document.createElement("div")) .addClass("modal-backdrop " + n) .appendTo(this.$body)), this.$element.on( "click.dismiss.bs.modal", t.proxy(function (t) { return this.ignoreBackdropClick ? void (this.ignoreBackdropClick = !1) : void ( t.target === t.currentTarget && ("static" == this.options.backdrop ? this.$element[0].focus() : this.hide()) ); }, this) ), s && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("in"), !e) ) return; s ? this.$backdrop .one("bsTransitionEnd", e) .emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION) : e(); } else if (!this.isShown && this.$backdrop) { this.$backdrop.removeClass("in"); var a = function () { o.removeBackdrop(), e && e(); }; t.support.transition && this.$element.hasClass("fade") ? this.$backdrop .one("bsTransitionEnd", a) .emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION) : a(); } else e && e(); }), (i.prototype.handleUpdate = function () { this.adjustDialog(); }), (i.prototype.adjustDialog = function () { var t = this.$element[0].scrollHeight > document.documentElement.clientHeight; this.$element.css({ paddingLeft: !this.bodyIsOverflowing && t ? this.scrollbarWidth : "", paddingRight: this.bodyIsOverflowing && !t ? this.scrollbarWidth : "", }); }), (i.prototype.resetAdjustments = function () { this.$element.css({ paddingLeft: "", paddingRight: "" }); }), (i.prototype.checkScrollbar = function () { var t = window.innerWidth; if (!t) { var e = document.documentElement.getBoundingClientRect(); t = e.right - Math.abs(e.left); } (this.bodyIsOverflowing = document.body.clientWidth < t), (this.scrollbarWidth = this.measureScrollbar()); }), (i.prototype.setScrollbar = function () { var t = parseInt(this.$body.css("padding-right") || 0, 10); (this.originalBodyPad = document.body.style.paddingRight || ""), this.bodyIsOverflowing && this.$body.css("padding-right", t + this.scrollbarWidth); }), (i.prototype.resetScrollbar = function () { this.$body.css("padding-right", this.originalBodyPad); }), (i.prototype.measureScrollbar = function () { var t = document.createElement("div"); (t.className = "modal-scrollbar-measure"), this.$body.append(t); var e = t.offsetWidth - t.clientWidth; return this.$body[0].removeChild(t), e; }); var o = t.fn.modal; (t.fn.modal = e), (t.fn.modal.Constructor = i), (t.fn.modal.noConflict = function () { return (t.fn.modal = o), this; }), t(document).on( "click.bs.modal.data-api", '[data-toggle="modal"]', function (i) { var o = t(this), n = o.attr("href"), s = t( o.attr("data-target") || (n && n.replace(/.*(?=#[^\s]+$)/, "")) ), a = s.data("bs.modal") ? "toggle" : t.extend({ remote: !/#/.test(n) && n }, s.data(), o.data()); o.is("a") && i.preventDefault(), s.one("show.bs.modal", function (t) { t.isDefaultPrevented() || s.one("hidden.bs.modal", function () { o.is(":visible") && o.trigger("focus"); }); }), e.call(s, a, this); } ); })(jQuery), +(function (t) { "use strict"; function e(e) { return this.each(function () { var o = t(this), n = o.data("bs.tooltip"), s = "object" == typeof e && e; (!n && /destroy|hide/.test(e)) || (n || o.data("bs.tooltip", (n = new i(this, s))), "string" == typeof e && n[e]()); }); } var i = function (t, e) { (this.type = null), (this.options = null), (this.enabled = null), (this.timeout = null), (this.hoverState = null), (this.$element = null), (this.inState = null), this.init("tooltip", t, e); }; (i.VERSION = "3.3.7"), (i.TRANSITION_DURATION = 150), (i.DEFAULTS = { animation: !0, placement: "top", selector: !1, template: '', trigger: "hover focus", title: "", delay: 0, html: !1, container: !1, viewport: { selector: "body", padding: 0 }, }), (i.prototype.init = function (e, i, o) { if ( ((this.enabled = !0), (this.type = e), (this.$element = t(i)), (this.options = this.getOptions(o)), (this.$viewport = this.options.viewport && t( t.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : this.options.viewport.selector || this.options.viewport )), (this.inState = { click: !1, hover: !1, focus: !1 }), this.$element[0] instanceof document.constructor && !this.options.selector) ) throw new Error( "`selector` option must be specified when initializing " + this.type + " on the window.document object!" ); for (var n = this.options.trigger.split(" "), s = n.length; s--; ) { var a = n[s]; if ("click" == a) this.$element.on( "click." + this.type, this.options.selector, t.proxy(this.toggle, this) ); else if ("manual" != a) { var r = "hover" == a ? "mouseenter" : "focusin", l = "hover" == a ? "mouseleave" : "focusout"; this.$element.on( r + "." + this.type, this.options.selector, t.proxy(this.enter, this) ), this.$element.on( l + "." + this.type, this.options.selector, t.proxy(this.leave, this) ); } } this.options.selector ? (this._options = t.extend({}, this.options, { trigger: "manual", selector: "", })) : this.fixTitle(); }), (i.prototype.getDefaults = function () { return i.DEFAULTS; }), (i.prototype.getOptions = function (e) { return ( (e = t.extend({}, this.getDefaults(), this.$element.data(), e)), e.delay && "number" == typeof e.delay && (e.delay = { show: e.delay, hide: e.delay }), e ); }), (i.prototype.getDelegateOptions = function () { var e = {}, i = this.getDefaults(); return ( this._options && t.each(this._options, function (t, o) { i[t] != o && (e[t] = o); }), e ); }), (i.prototype.enter = function (e) { var i = e instanceof this.constructor ? e : t(e.currentTarget).data("bs." + this.type); return ( i || ((i = new this.constructor( e.currentTarget, this.getDelegateOptions() )), t(e.currentTarget).data("bs." + this.type, i)), e instanceof t.Event && (i.inState["focusin" == e.type ? "focus" : "hover"] = !0), i.tip().hasClass("in") || "in" == i.hoverState ? void (i.hoverState = "in") : (clearTimeout(i.timeout), (i.hoverState = "in"), i.options.delay && i.options.delay.show ? void (i.timeout = setTimeout(function () { "in" == i.hoverState && i.show(); }, i.options.delay.show)) : i.show()) ); }), (i.prototype.isInStateTrue = function () { for (var t in this.inState) if (this.inState[t]) return !0; return !1; }), (i.prototype.leave = function (e) { var i = e instanceof this.constructor ? e : t(e.currentTarget).data("bs." + this.type); if ( (i || ((i = new this.constructor( e.currentTarget, this.getDelegateOptions() )), t(e.currentTarget).data("bs." + this.type, i)), e instanceof t.Event && (i.inState["focusout" == e.type ? "focus" : "hover"] = !1), !i.isInStateTrue()) ) return ( clearTimeout(i.timeout), (i.hoverState = "out"), i.options.delay && i.options.delay.hide ? void (i.timeout = setTimeout(function () { "out" == i.hoverState && i.hide(); }, i.options.delay.hide)) : i.hide() ); }), (i.prototype.show = function () { var e = t.Event("show.bs." + this.type); if (this.hasContent() && this.enabled) { this.$element.trigger(e); var o = t.contains( this.$element[0].ownerDocument.documentElement, this.$element[0] ); if (e.isDefaultPrevented() || !o) return; var n = this, s = this.tip(), a = this.getUID(this.type); this.setContent(), s.attr("id", a), this.$element.attr("aria-describedby", a), this.options.animation && s.addClass("fade"); var r = "function" == typeof this.options.placement ? this.options.placement.call(this, s[0], this.$element[0]) : this.options.placement, l = /\s?auto?\s?/i, h = l.test(r); h && (r = r.replace(l, "") || "top"), s .detach() .css({ top: 0, left: 0, display: "block" }) .addClass(r) .data("bs." + this.type, this), this.options.container ? s.appendTo(this.options.container) : s.insertAfter(this.$element), this.$element.trigger("inserted.bs." + this.type); var d = this.getPosition(), p = s[0].offsetWidth, c = s[0].offsetHeight; if (h) { var f = r, u = this.getPosition(this.$viewport); (r = "bottom" == r && d.bottom + c > u.bottom ? "top" : "top" == r && d.top - c < u.top ? "bottom" : "right" == r && d.right + p > u.width ? "left" : "left" == r && d.left - p < u.left ? "right" : r), s.removeClass(f).addClass(r); } var g = this.getCalculatedOffset(r, d, p, c); this.applyPlacement(g, r); var m = function () { var t = n.hoverState; n.$element.trigger("shown.bs." + n.type), (n.hoverState = null), "out" == t && n.leave(n); }; t.support.transition && this.$tip.hasClass("fade") ? s .one("bsTransitionEnd", m) .emulateTransitionEnd(i.TRANSITION_DURATION) : m(); } }), (i.prototype.applyPlacement = function (e, i) { var o = this.tip(), n = o[0].offsetWidth, s = o[0].offsetHeight, a = parseInt(o.css("margin-top"), 10), r = parseInt(o.css("margin-left"), 10); isNaN(a) && (a = 0), isNaN(r) && (r = 0), (e.top += a), (e.left += r), t.offset.setOffset( o[0], t.extend( { using: function (t) { o.css({ top: Math.round(t.top), left: Math.round(t.left) }); }, }, e ), 0 ), o.addClass("in"); var l = o[0].offsetWidth, h = o[0].offsetHeight; "top" == i && h != s && (e.top = e.top + s - h); var d = this.getViewportAdjustedDelta(i, e, l, h); d.left ? (e.left += d.left) : (e.top += d.top); var p = /top|bottom/.test(i), c = p ? 2 * d.left - n + l : 2 * d.top - s + h, f = p ? "offsetWidth" : "offsetHeight"; o.offset(e), this.replaceArrow(c, o[0][f], p); }), (i.prototype.replaceArrow = function (t, e, i) { this.arrow() .css(i ? "left" : "top", 50 * (1 - t / e) + "%") .css(i ? "top" : "left", ""); }), (i.prototype.setContent = function () { var t = this.tip(), e = this.getTitle(); t.find(".tooltip-inner")[this.options.html ? "html" : "text"](e), t.removeClass("fade in top bottom left right"); }), (i.prototype.hide = function (e) { function o() { "in" != n.hoverState && s.detach(), n.$element && n.$element .removeAttr("aria-describedby") .trigger("hidden.bs." + n.type), e && e(); } var n = this, s = t(this.$tip), a = t.Event("hide.bs." + this.type); if ((this.$element.trigger(a), !a.isDefaultPrevented())) return ( s.removeClass("in"), t.support.transition && s.hasClass("fade") ? s .one("bsTransitionEnd", o) .emulateTransitionEnd(i.TRANSITION_DURATION) : o(), (this.hoverState = null), this ); }), (i.prototype.fixTitle = function () { var t = this.$element; (t.attr("title") || "string" != typeof t.attr("data-original-title")) && t .attr("data-original-title", t.attr("title") || "") .attr("title", ""); }), (i.prototype.hasContent = function () { return this.getTitle(); }), (i.prototype.getPosition = function (e) { e = e || this.$element; var i = e[0], o = "BODY" == i.tagName, n = i.getBoundingClientRect(); null == n.width && (n = t.extend({}, n, { width: n.right - n.left, height: n.bottom - n.top, })); var s = window.SVGElement && i instanceof window.SVGElement, a = o ? { top: 0, left: 0 } : s ? null : e.offset(), r = { scroll: o ? document.documentElement.scrollTop || document.body.scrollTop : e.scrollTop(), }, l = o ? { width: t(window).width(), height: t(window).height() } : null; return t.extend({}, n, r, l, a); }), (i.prototype.getCalculatedOffset = function (t, e, i, o) { return "bottom" == t ? { top: e.top + e.height, left: e.left + e.width / 2 - i / 2 } : "top" == t ? { top: e.top - o, left: e.left + e.width / 2 - i / 2 } : "left" == t ? { top: e.top + e.height / 2 - o / 2, left: e.left - i } : { top: e.top + e.height / 2 - o / 2, left: e.left + e.width }; }), (i.prototype.getViewportAdjustedDelta = function (t, e, i, o) { var n = { top: 0, left: 0 }; if (!this.$viewport) return n; var s = (this.options.viewport && this.options.viewport.padding) || 0, a = this.getPosition(this.$viewport); if (/right|left/.test(t)) { var r = e.top - s - a.scroll, l = e.top + s - a.scroll + o; r < a.top ? (n.top = a.top - r) : l > a.top + a.height && (n.top = a.top + a.height - l); } else { var h = e.left - s, d = e.left + s + i; h < a.left ? (n.left = a.left - h) : d > a.right && (n.left = a.left + a.width - d); } return n; }), (i.prototype.getTitle = function () { var t, e = this.$element, i = this.options; return (t = e.attr("data-original-title") || ("function" == typeof i.title ? i.title.call(e[0]) : i.title)); }), (i.prototype.getUID = function (t) { do t += ~~(1e6 * Math.random()); while (document.getElementById(t)); return t; }), (i.prototype.tip = function () { if ( !this.$tip && ((this.$tip = t(this.options.template)), 1 != this.$tip.length) ) throw new Error( this.type + " `template` option must consist of exactly 1 top-level element!" ); return this.$tip; }), (i.prototype.arrow = function () { return (this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")); }), (i.prototype.enable = function () { this.enabled = !0; }), (i.prototype.disable = function () { this.enabled = !1; }), (i.prototype.toggleEnabled = function () { this.enabled = !this.enabled; }), (i.prototype.toggle = function (e) { var i = this; e && ((i = t(e.currentTarget).data("bs." + this.type)), i || ((i = new this.constructor( e.currentTarget, this.getDelegateOptions() )), t(e.currentTarget).data("bs." + this.type, i))), e ? ((i.inState.click = !i.inState.click), i.isInStateTrue() ? i.enter(i) : i.leave(i)) : i.tip().hasClass("in") ? i.leave(i) : i.enter(i); }), (i.prototype.destroy = function () { var t = this; clearTimeout(this.timeout), this.hide(function () { t.$element.off("." + t.type).removeData("bs." + t.type), t.$tip && t.$tip.detach(), (t.$tip = null), (t.$arrow = null), (t.$viewport = null), (t.$element = null); }); }); var o = t.fn.tooltip; (t.fn.tooltip = e), (t.fn.tooltip.Constructor = i), (t.fn.tooltip.noConflict = function () { return (t.fn.tooltip = o), this; }); })(jQuery), +(function (t) { "use strict"; function e(e) { return this.each(function () { var o = t(this), n = o.data("bs.popover"), s = "object" == typeof e && e; (!n && /destroy|hide/.test(e)) || (n || o.data("bs.popover", (n = new i(this, s))), "string" == typeof e && n[e]()); }); } var i = function (t, e) { this.init("popover", t, e); }; if (!t.fn.tooltip) throw new Error("Popover requires tooltip.js"); (i.VERSION = "3.3.7"), (i.DEFAULTS = t.extend({}, t.fn.tooltip.Constructor.DEFAULTS, { placement: "right", trigger: "click", content: "", template: '', })), (i.prototype = t.extend({}, t.fn.tooltip.Constructor.prototype)), (i.prototype.constructor = i), (i.prototype.getDefaults = function () { return i.DEFAULTS; }), (i.prototype.setContent = function () { var t = this.tip(), e = this.getTitle(), i = this.getContent(); t.find(".popover-title")[this.options.html ? "html" : "text"](e), t .find(".popover-content") .children() .detach() .end() [ this.options.html ? "string" == typeof i ? "html" : "append" : "text" ](i), t.removeClass("fade top bottom left right in"), t.find(".popover-title").html() || t.find(".popover-title").hide(); }), (i.prototype.hasContent = function () { return this.getTitle() || this.getContent(); }), (i.prototype.getContent = function () { var t = this.$element, e = this.options; return ( t.attr("data-content") || ("function" == typeof e.content ? e.content.call(t[0]) : e.content) ); }), (i.prototype.arrow = function () { return (this.$arrow = this.$arrow || this.tip().find(".arrow")); }); var o = t.fn.popover; (t.fn.popover = e), (t.fn.popover.Constructor = i), (t.fn.popover.noConflict = function () { return (t.fn.popover = o), this; }); })(jQuery), +(function (t) { "use strict"; function e(i, o) { (this.$body = t(document.body)), (this.$scrollElement = t(t(i).is(document.body) ? window : i)), (this.options = t.extend({}, e.DEFAULTS, o)), (this.selector = (this.options.target || "") + " .nav li > a"), (this.offsets = []), (this.targets = []), (this.activeTarget = null), (this.scrollHeight = 0), this.$scrollElement.on( "scroll.bs.scrollspy", t.proxy(this.process, this) ), this.refresh(), this.process(); } function i(i) { return this.each(function () { var o = t(this), n = o.data("bs.scrollspy"), s = "object" == typeof i && i; n || o.data("bs.scrollspy", (n = new e(this, s))), "string" == typeof i && n[i](); }); } (e.VERSION = "3.3.7"), (e.DEFAULTS = { offset: 10 }), (e.prototype.getScrollHeight = function () { return ( this.$scrollElement[0].scrollHeight || Math.max( this.$body[0].scrollHeight, document.documentElement.scrollHeight ) ); }), (e.prototype.refresh = function () { var e = this, i = "offset", o = 0; (this.offsets = []), (this.targets = []), (this.scrollHeight = this.getScrollHeight()), t.isWindow(this.$scrollElement[0]) || ((i = "position"), (o = this.$scrollElement.scrollTop())), this.$body .find(this.selector) .map(function () { var e = t(this), n = e.data("target") || e.attr("href"), s = /^#./.test(n) && t(n); return ( (s && s.length && s.is(":visible") && [[s[i]().top + o, n]]) || null ); }) .sort(function (t, e) { return t[0] - e[0]; }) .each(function () { e.offsets.push(this[0]), e.targets.push(this[1]); }); }), (e.prototype.process = function () { var t, e = this.$scrollElement.scrollTop() + this.options.offset, i = this.getScrollHeight(), o = this.options.offset + i - this.$scrollElement.height(), n = this.offsets, s = this.targets, a = this.activeTarget; if ((this.scrollHeight != i && this.refresh(), e >= o)) return a != (t = s[s.length - 1]) && this.activate(t); if (a && e < n[0]) return (this.activeTarget = null), this.clear(); for (t = n.length; t--; ) a != s[t] && e >= n[t] && (void 0 === n[t + 1] || e < n[t + 1]) && this.activate(s[t]); }), (e.prototype.activate = function (e) { (this.activeTarget = e), this.clear(); var i = this.selector + '[data-target="' + e + '"],' + this.selector + '[href="' + e + '"]', o = t(i).parents("li").addClass("active"); o.parent(".dropdown-menu").length && (o = o.closest("li.dropdown").addClass("active")), o.trigger("activate.bs.scrollspy"); }), (e.prototype.clear = function () { t(this.selector) .parentsUntil(this.options.target, ".active") .removeClass("active"); }); var o = t.fn.scrollspy; (t.fn.scrollspy = i), (t.fn.scrollspy.Constructor = e), (t.fn.scrollspy.noConflict = function () { return (t.fn.scrollspy = o), this; }), t(window).on("load.bs.scrollspy.data-api", function () { t('[data-spy="scroll"]').each(function () { var e = t(this); i.call(e, e.data()); }); }); })(jQuery), +(function (t) { "use strict"; function e(e) { return this.each(function () { var o = t(this), n = o.data("bs.tab"); n || o.data("bs.tab", (n = new i(this))), "string" == typeof e && n[e](); }); } var i = function (e) { this.element = t(e); }; (i.VERSION = "3.3.7"), (i.TRANSITION_DURATION = 150), (i.prototype.show = function () { var e = this.element, i = e.closest("ul:not(.dropdown-menu)"), o = e.data("target"); if ( (o || ((o = e.attr("href")), (o = o && o.replace(/.*(?=#[^\s]*$)/, ""))), !e.parent("li").hasClass("active")) ) { var n = i.find(".active:last a"), s = t.Event("hide.bs.tab", { relatedTarget: e[0] }), a = t.Event("show.bs.tab", { relatedTarget: n[0] }); if ( (n.trigger(s), e.trigger(a), !a.isDefaultPrevented() && !s.isDefaultPrevented()) ) { var r = t(o); this.activate(e.closest("li"), i), this.activate(r, r.parent(), function () { n.trigger({ type: "hidden.bs.tab", relatedTarget: e[0] }), e.trigger({ type: "shown.bs.tab", relatedTarget: n[0] }); }); } } }), (i.prototype.activate = function (e, o, n) { function s() { a .removeClass("active") .find("> .dropdown-menu > .active") .removeClass("active") .end() .find('[data-toggle="tab"]') .attr("aria-expanded", !1), e .addClass("active") .find('[data-toggle="tab"]') .attr("aria-expanded", !0), r ? (e[0].offsetWidth, e.addClass("in")) : e.removeClass("fade"), e.parent(".dropdown-menu").length && e .closest("li.dropdown") .addClass("active") .end() .find('[data-toggle="tab"]') .attr("aria-expanded", !0), n && n(); } var a = o.find("> .active"), r = n && t.support.transition && ((a.length && a.hasClass("fade")) || !!o.find("> .fade").length); a.length && r ? a .one("bsTransitionEnd", s) .emulateTransitionEnd(i.TRANSITION_DURATION) : s(), a.removeClass("in"); }); var o = t.fn.tab; (t.fn.tab = e), (t.fn.tab.Constructor = i), (t.fn.tab.noConflict = function () { return (t.fn.tab = o), this; }); var n = function (i) { i.preventDefault(), e.call(t(this), "show"); }; t(document) .on("click.bs.tab.data-api", '[data-toggle="tab"]', n) .on("click.bs.tab.data-api", '[data-toggle="pill"]', n); })(jQuery), +(function (t) { "use strict"; function e(e) { return this.each(function () { var o = t(this), n = o.data("bs.affix"), s = "object" == typeof e && e; n || o.data("bs.affix", (n = new i(this, s))), "string" == typeof e && n[e](); }); } var i = function (e, o) { (this.options = t.extend({}, i.DEFAULTS, o)), (this.$target = t(this.options.target) .on("scroll.bs.affix.data-api", t.proxy(this.checkPosition, this)) .on( "click.bs.affix.data-api", t.proxy(this.checkPositionWithEventLoop, this) )), (this.$element = t(e)), (this.affixed = null), (this.unpin = null), (this.pinnedOffset = null), this.checkPosition(); }; (i.VERSION = "3.3.7"), (i.RESET = "affix affix-top affix-bottom"), (i.DEFAULTS = { offset: 0, target: window }), (i.prototype.getState = function (t, e, i, o) { var n = this.$target.scrollTop(), s = this.$element.offset(), a = this.$target.height(); if (null != i && "top" == this.affixed) return n < i && "top"; if ("bottom" == this.affixed) return null != i ? !(n + this.unpin <= s.top) && "bottom" : !(n + a <= t - o) && "bottom"; var r = null == this.affixed, l = r ? n : s.top, h = r ? a : e; return null != i && n <= i ? "top" : null != o && l + h >= t - o && "bottom"; }), (i.prototype.getPinnedOffset = function () { if (this.pinnedOffset) return this.pinnedOffset; this.$element.removeClass(i.RESET).addClass("affix"); var t = this.$target.scrollTop(), e = this.$element.offset(); return (this.pinnedOffset = e.top - t); }), (i.prototype.checkPositionWithEventLoop = function () { setTimeout(t.proxy(this.checkPosition, this), 1); }), (i.prototype.checkPosition = function () { if (this.$element.is(":visible")) { var e = this.$element.height(), o = this.options.offset, n = o.top, s = o.bottom, a = Math.max(t(document).height(), t(document.body).height()); "object" != typeof o && (s = n = o), "function" == typeof n && (n = o.top(this.$element)), "function" == typeof s && (s = o.bottom(this.$element)); var r = this.getState(a, e, n, s); if (this.affixed != r) { null != this.unpin && this.$element.css("top", ""); var l = "affix" + (r ? "-" + r : ""), h = t.Event(l + ".bs.affix"); if ((this.$element.trigger(h), h.isDefaultPrevented())) return; (this.affixed = r), (this.unpin = "bottom" == r ? this.getPinnedOffset() : null), this.$element .removeClass(i.RESET) .addClass(l) .trigger(l.replace("affix", "affixed") + ".bs.affix"); } "bottom" == r && this.$element.offset({ top: a - e - s }); } }); var o = t.fn.affix; (t.fn.affix = e), (t.fn.affix.Constructor = i), (t.fn.affix.noConflict = function () { return (t.fn.affix = o), this; }), t(window).on("load", function () { t('[data-spy="affix"]').each(function () { var i = t(this), o = i.data(); (o.offset = o.offset || {}), null != o.offsetBottom && (o.offset.bottom = o.offsetBottom), null != o.offsetTop && (o.offset.top = o.offsetTop), e.call(i, o); }); }); })(jQuery); !(function () { "use strict"; function e(n) { return "undefined" == typeof this || Object.getPrototypeOf(this) !== e.prototype ? new e(n) : ((O = this), (O.version = "3.3.4"), (O.tools = new E()), O.isSupported() ? (O.tools.extend(O.defaults, n || {}), (O.defaults.container = t(O.defaults)), (O.store = { elements: {}, containers: [] }), (O.sequences = {}), (O.history = []), (O.uid = 0), (O.initialized = !1)) : "undefined" != typeof console && null !== console && console.log("ScrollReveal is not supported in this browser."), O); } function t(e) { if (e && e.container) { if ("string" == typeof e.container) return window.document.documentElement.querySelector(e.container); if (O.tools.isNode(e.container)) return e.container; console.log( 'ScrollReveal: invalid container "' + e.container + '" provided.' ), console.log("ScrollReveal: falling back to default container."); } return O.defaults.container; } function n(e, t) { return "string" == typeof e ? Array.prototype.slice.call(t.querySelectorAll(e)) : O.tools.isNode(e) ? [e] : O.tools.isNodeList(e) ? Array.prototype.slice.call(e) : []; } function i() { return ++O.uid; } function o(e, t, n) { t.container && (t.container = n), e.config ? (e.config = O.tools.extendClone(e.config, t)) : (e.config = O.tools.extendClone(O.defaults, t)), "top" === e.config.origin || "bottom" === e.config.origin ? (e.config.axis = "Y") : (e.config.axis = "X"); } function r(e) { var t = window.getComputedStyle(e.domEl); e.styles || ((e.styles = { transition: {}, transform: {}, computed: {} }), (e.styles.inline = e.domEl.getAttribute("style") || ""), (e.styles.inline += "; visibility: visible; "), (e.styles.computed.opacity = t.opacity), t.transition && "all 0s ease 0s" !== t.transition ? (e.styles.computed.transition = t.transition + ", ") : (e.styles.computed.transition = "")), (e.styles.transition.instant = s(e, 0)), (e.styles.transition.delayed = s(e, e.config.delay)), (e.styles.transform.initial = " -webkit-transform:"), (e.styles.transform.target = " -webkit-transform:"), a(e), (e.styles.transform.initial += "transform:"), (e.styles.transform.target += "transform:"), a(e); } function s(e, t) { var n = e.config; return ( "-webkit-transition: " + e.styles.computed.transition + "-webkit-transform " + n.duration / 1e3 + "s " + n.easing + " " + t / 1e3 + "s, opacity " + n.duration / 1e3 + "s " + n.easing + " " + t / 1e3 + "s; transition: " + e.styles.computed.transition + "transform " + n.duration / 1e3 + "s " + n.easing + " " + t / 1e3 + "s, opacity " + n.duration / 1e3 + "s " + n.easing + " " + t / 1e3 + "s; " ); } function a(e) { var t, n = e.config, i = e.styles.transform; (t = "top" === n.origin || "left" === n.origin ? /^-/.test(n.distance) ? n.distance.substr(1) : "-" + n.distance : n.distance), parseInt(n.distance) && ((i.initial += " translate" + n.axis + "(" + t + ")"), (i.target += " translate" + n.axis + "(0)")), n.scale && ((i.initial += " scale(" + n.scale + ")"), (i.target += " scale(1)")), n.rotate.x && ((i.initial += " rotateX(" + n.rotate.x + "deg)"), (i.target += " rotateX(0)")), n.rotate.y && ((i.initial += " rotateY(" + n.rotate.y + "deg)"), (i.target += " rotateY(0)")), n.rotate.z && ((i.initial += " rotateZ(" + n.rotate.z + "deg)"), (i.target += " rotateZ(0)")), (i.initial += "; opacity: " + n.opacity + ";"), (i.target += "; opacity: " + e.styles.computed.opacity + ";"); } function l(e) { var t = e.config.container; t && O.store.containers.indexOf(t) === -1 && O.store.containers.push(e.config.container), (O.store.elements[e.id] = e); } function c(e, t, n) { var i = { target: e, config: t, interval: n }; O.history.push(i); } function d() { if (O.isSupported()) { y(); for (var e = 0; e < O.store.containers.length; e++) O.store.containers[e].addEventListener("scroll", f), O.store.containers[e].addEventListener("resize", f); O.initialized || (window.addEventListener("scroll", f), window.addEventListener("resize", f), (O.initialized = !0)); } return O; } function f() { S(y); } function u() { var e, t, n, i; O.tools.forOwn(O.sequences, function (o) { (i = O.sequences[o]), (e = !1); for (var r = 0; r < i.elemIds.length; r++) (n = i.elemIds[r]), (t = O.store.elements[n]), q(t) && !e && (e = !0); i.active = e; }); } function y() { var e, t; u(), O.tools.forOwn(O.store.elements, function (n) { (t = O.store.elements[n]), (e = w(t)), g(t) ? (t.config.beforeReveal(t.domEl), e ? t.domEl.setAttribute( "style", t.styles.inline + t.styles.transform.target + t.styles.transition.delayed ) : t.domEl.setAttribute( "style", t.styles.inline + t.styles.transform.target + t.styles.transition.instant ), p("reveal", t, e), (t.revealing = !0), (t.seen = !0), t.sequence && m(t, e)) : v(t) && (t.config.beforeReset(t.domEl), t.domEl.setAttribute( "style", t.styles.inline + t.styles.transform.initial + t.styles.transition.instant ), p("reset", t), (t.revealing = !1)); }); } function m(e, t) { var n = 0, i = 0, o = O.sequences[e.sequence.id]; (o.blocked = !0), t && "onload" === e.config.useDelay && (i = e.config.delay), e.sequence.timer && ((n = Math.abs(e.sequence.timer.started - new Date())), window.clearTimeout(e.sequence.timer)), (e.sequence.timer = { started: new Date() }), (e.sequence.timer.clock = window.setTimeout(function () { (o.blocked = !1), (e.sequence.timer = null), f(); }, Math.abs(o.interval) + i - n)); } function p(e, t, n) { var i = 0, o = 0, r = "after"; switch (e) { case "reveal": (o = t.config.duration), n && (o += t.config.delay), (r += "Reveal"); break; case "reset": (o = t.config.duration), (r += "Reset"); } t.timer && ((i = Math.abs(t.timer.started - new Date())), window.clearTimeout(t.timer.clock)), (t.timer = { started: new Date() }), (t.timer.clock = window.setTimeout(function () { t.config[r](t.domEl), (t.timer = null); }, o - i)); } function g(e) { if (e.sequence) { var t = O.sequences[e.sequence.id]; return t.active && !t.blocked && !e.revealing && !e.disabled; } return q(e) && !e.revealing && !e.disabled; } function w(e) { var t = e.config.useDelay; return ( "always" === t || ("onload" === t && !O.initialized) || ("once" === t && !e.seen) ); } function v(e) { if (e.sequence) { var t = O.sequences[e.sequence.id]; return !t.active && e.config.reset && e.revealing && !e.disabled; } return !q(e) && e.config.reset && e.revealing && !e.disabled; } function b(e) { return { width: e.clientWidth, height: e.clientHeight }; } function h(e) { if (e && e !== window.document.documentElement) { var t = x(e); return { x: e.scrollLeft + t.left, y: e.scrollTop + t.top }; } return { x: window.pageXOffset, y: window.pageYOffset }; } function x(e) { var t = 0, n = 0, i = e.offsetHeight, o = e.offsetWidth; do isNaN(e.offsetTop) || (t += e.offsetTop), isNaN(e.offsetLeft) || (n += e.offsetLeft), (e = e.offsetParent); while (e); return { top: t, left: n, height: i, width: o }; } function q(e) { function t() { var t = c + a * s, n = d + l * s, i = f - a * s, y = u - l * s, m = r.y + e.config.viewOffset.top, p = r.x + e.config.viewOffset.left, g = r.y - e.config.viewOffset.bottom + o.height, w = r.x - e.config.viewOffset.right + o.width; return t < g && i > m && n > p && y < w; } function n() { return "fixed" === window.getComputedStyle(e.domEl).position; } var i = x(e.domEl), o = b(e.config.container), r = h(e.config.container), s = e.config.viewFactor, a = i.height, l = i.width, c = i.top, d = i.left, f = c + a, u = d + l; return t() || n(); } function E() {} var O, S; (e.prototype.defaults = { origin: "bottom", distance: "20px", duration: 500, delay: 0, rotate: { x: 0, y: 0, z: 0 }, opacity: 0, scale: 0.9, easing: "cubic-bezier(0.6, 0.2, 0.1, 1)", container: window.document.documentElement, mobile: !0, reset: !1, useDelay: "always", viewFactor: 0.2, viewOffset: { top: 0, right: 0, bottom: 0, left: 0 }, beforeReveal: function (e) {}, beforeReset: function (e) {}, afterReveal: function (e) {}, afterReset: function (e) {}, }), (e.prototype.isSupported = function () { var e = document.documentElement.style; return ( ("WebkitTransition" in e && "WebkitTransform" in e) || ("transition" in e && "transform" in e) ); }), (e.prototype.reveal = function (e, s, a, f) { var u, y, m, p, g, w; if ( (void 0 !== s && "number" == typeof s ? ((a = s), (s = {})) : (void 0 !== s && null !== s) || (s = {}), (u = t(s)), (y = n(e, u)), !y.length) ) return ( console.log( 'ScrollReveal: reveal on "' + e + '" failed, no elements found.' ), O ); a && "number" == typeof a && ((w = i()), (g = O.sequences[w] = { id: w, interval: a, elemIds: [], active: !1 })); for (var v = 0; v < y.length; v++) (p = y[v].getAttribute("data-sr-id")), p ? (m = O.store.elements[p]) : ((m = { id: i(), domEl: y[v], seen: !1, revealing: !1 }), m.domEl.setAttribute("data-sr-id", m.id)), g && ((m.sequence = { id: g.id, index: g.elemIds.length }), g.elemIds.push(m.id)), o(m, s, u), r(m), l(m), (O.tools.isMobile() && !m.config.mobile) || !O.isSupported() ? (m.domEl.setAttribute("style", m.styles.inline), (m.disabled = !0)) : m.revealing || m.domEl.setAttribute( "style", m.styles.inline + m.styles.transform.initial ); return ( !f && O.isSupported() && (c(e, s, a), O.initTimeout && window.clearTimeout(O.initTimeout), (O.initTimeout = window.setTimeout(d, 0))), O ); }), (e.prototype.sync = function () { if (O.history.length && O.isSupported()) { for (var e = 0; e < O.history.length; e++) { var t = O.history[e]; O.reveal(t.target, t.config, t.interval, !0); } d(); } else console.log("ScrollReveal: sync failed, no reveals found."); return O; }), (E.prototype.isObject = function (e) { return null !== e && "object" == typeof e && e.constructor === Object; }), (E.prototype.isNode = function (e) { return "object" == typeof window.Node ? e instanceof window.Node : e && "object" == typeof e && "number" == typeof e.nodeType && "string" == typeof e.nodeName; }), (E.prototype.isNodeList = function (e) { var t = Object.prototype.toString.call(e), n = /^\[object (HTMLCollection|NodeList|Object)\]$/; return "object" == typeof window.NodeList ? e instanceof window.NodeList : e && "object" == typeof e && n.test(t) && "number" == typeof e.length && (0 === e.length || this.isNode(e[0])); }), (E.prototype.forOwn = function (e, t) { if (!this.isObject(e)) throw new TypeError( 'Expected "object", but received "' + typeof e + '".' ); for (var n in e) e.hasOwnProperty(n) && t(n); }), (E.prototype.extend = function (e, t) { return ( this.forOwn( t, function (n) { this.isObject(t[n]) ? ((e[n] && this.isObject(e[n])) || (e[n] = {}), this.extend(e[n], t[n])) : (e[n] = t[n]); }.bind(this) ), e ); }), (E.prototype.extendClone = function (e, t) { return this.extend(this.extend({}, e), t); }), (E.prototype.isMobile = function () { return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent ); }), (S = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (e) { window.setTimeout(e, 1e3 / 60); }), "function" == typeof define && "object" == typeof define.amd && define.amd ? define(function () { return e; }) : "undefined" != typeof module && module.exports ? (module.exports = e) : (window.ScrollReveal = e); })(); (function () { var t = [].indexOf || function (t) { for (var e = 0, n = this.length; e < n; e++) if (e in this && this[e] === t) return e; return -1; }, e = [].slice; !(function (t, e) { return "function" == typeof define && define.amd ? define("waypoints", ["jquery"], function (n) { return e(n, t); }) : e(t.jQuery, t); })(this, function (n, r) { var i, o, l, s, c, a, u, f, h, d, p, v, y, w, g, S; return ( (i = n(r)), (f = t.call(r, "ontouchstart") >= 0), (s = { horizontal: {}, vertical: {} }), (c = 1), (u = {}), (a = "waypoints-context-id"), (p = "resize.waypoints"), (v = "scroll.waypoints"), (y = 1), (w = "waypoints-waypoint-ids"), (g = "waypoint"), (S = "waypoints"), (o = (function () { function t(t) { var e = this; (this.$element = t), (this.element = t[0]), (this.didResize = !1), (this.didScroll = !1), (this.id = "context" + c++), (this.oldScroll = { x: t.scrollLeft(), y: t.scrollTop() }), (this.waypoints = { horizontal: {}, vertical: {} }), t.data(a, this.id), (u[this.id] = this), t.bind(v, function () { var t; if (!e.didScroll && !f) return ( (e.didScroll = !0), (t = function () { return e.doScroll(), (e.didScroll = !1); }), r.setTimeout(t, n[S].settings.scrollThrottle) ); }), t.bind(p, function () { var t; if (!e.didResize) return ( (e.didResize = !0), (t = function () { return n[S]("refresh"), (e.didResize = !1); }), r.setTimeout(t, n[S].settings.resizeThrottle) ); }); } return ( (t.prototype.doScroll = function () { var t, e = this; return ( (t = { horizontal: { newScroll: this.$element.scrollLeft(), oldScroll: this.oldScroll.x, forward: "right", backward: "left", }, vertical: { newScroll: this.$element.scrollTop(), oldScroll: this.oldScroll.y, forward: "down", backward: "up", }, }), !f || (t.vertical.oldScroll && t.vertical.newScroll) || n[S]("refresh"), n.each(t, function (t, r) { var i, o, l; return ( (l = []), (o = r.newScroll > r.oldScroll), (i = o ? r.forward : r.backward), n.each(e.waypoints[t], function (t, e) { var n, i; return r.oldScroll < (n = e.offset) && n <= r.newScroll ? l.push(e) : r.newScroll < (i = e.offset) && i <= r.oldScroll ? l.push(e) : void 0; }), l.sort(function (t, e) { return t.offset - e.offset; }), o || l.reverse(), n.each(l, function (t, e) { if (e.options.continuous || t === l.length - 1) return e.trigger([i]); }) ); }), (this.oldScroll = { x: t.horizontal.newScroll, y: t.vertical.newScroll, }) ); }), (t.prototype.refresh = function () { var t, e, r, i = this; return ( (r = n.isWindow(this.element)), (e = this.$element.offset()), this.doScroll(), (t = { horizontal: { contextOffset: r ? 0 : e.left, contextScroll: r ? 0 : this.oldScroll.x, contextDimension: this.$element.width(), oldScroll: this.oldScroll.x, forward: "right", backward: "left", offsetProp: "left", }, vertical: { contextOffset: r ? 0 : e.top, contextScroll: r ? 0 : this.oldScroll.y, contextDimension: r ? n[S]("viewportHeight") : this.$element.height(), oldScroll: this.oldScroll.y, forward: "down", backward: "up", offsetProp: "top", }, }), n.each(t, function (t, e) { return n.each(i.waypoints[t], function (t, r) { var i, o, l, s, c; if ( ((i = r.options.offset), (l = r.offset), (o = n.isWindow(r.element) ? 0 : r.$element.offset()[e.offsetProp]), n.isFunction(i) ? (i = i.apply(r.element)) : "string" == typeof i && ((i = parseFloat(i)), r.options.offset.indexOf("%") > -1 && (i = Math.ceil((e.contextDimension * i) / 100))), (r.offset = o - e.contextOffset + e.contextScroll - i), (!r.options.onlyOnScroll || null == l) && r.enabled) ) return null !== l && l < (s = e.oldScroll) && s <= r.offset ? r.trigger([e.backward]) : null !== l && l > (c = e.oldScroll) && c >= r.offset ? r.trigger([e.forward]) : null === l && e.oldScroll >= r.offset ? r.trigger([e.forward]) : void 0; }); }) ); }), (t.prototype.checkEmpty = function () { if ( n.isEmptyObject(this.waypoints.horizontal) && n.isEmptyObject(this.waypoints.vertical) ) return this.$element.unbind([p, v].join(" ")), delete u[this.id]; }), t ); })()), (l = (function () { function t(t, e, r) { var i, o; (r = n.extend({}, n.fn[g].defaults, r)), "bottom-in-view" === r.offset && (r.offset = function () { var t; return ( (t = n[S]("viewportHeight")), n.isWindow(e.element) || (t = e.$element.height()), t - n(this).outerHeight() ); }), (this.$element = t), (this.element = t[0]), (this.axis = r.horizontal ? "horizontal" : "vertical"), (this.callback = r.handler), (this.context = e), (this.enabled = r.enabled), (this.id = "waypoints" + y++), (this.offset = null), (this.options = r), (e.waypoints[this.axis][this.id] = this), (s[this.axis][this.id] = this), (i = null != (o = t.data(w)) ? o : []), i.push(this.id), t.data(w, i); } return ( (t.prototype.trigger = function (t) { if (this.enabled) return ( null != this.callback && this.callback.apply(this.element, t), this.options.triggerOnce ? this.destroy() : void 0 ); }), (t.prototype.disable = function () { return (this.enabled = !1); }), (t.prototype.enable = function () { return this.context.refresh(), (this.enabled = !0); }), (t.prototype.destroy = function () { return ( delete s[this.axis][this.id], delete this.context.waypoints[this.axis][this.id], this.context.checkEmpty() ); }), (t.getWaypointsByElement = function (t) { var e, r; return (r = n(t).data(w)) ? ((e = n.extend({}, s.horizontal, s.vertical)), n.map(r, function (t) { return e[t]; })) : []; }), t ); })()), (d = { init: function (t, e) { var r; return ( null == e && (e = {}), null == (r = e.handler) && (e.handler = t), this.each(function () { var t, r, i, s; return ( (t = n(this)), (i = null != (s = e.context) ? s : n.fn[g].defaults.context), n.isWindow(i) || (i = t.closest(i)), (i = n(i)), (r = u[i.data(a)]), r || (r = new o(i)), new l(t, r, e) ); }), n[S]("refresh"), this ); }, disable: function () { return d._invoke(this, "disable"); }, enable: function () { return d._invoke(this, "enable"); }, destroy: function () { return d._invoke(this, "destroy"); }, prev: function (t, e) { return d._traverse.call(this, t, e, function (t, e, n) { if (e > 0) return t.push(n[e - 1]); }); }, next: function (t, e) { return d._traverse.call(this, t, e, function (t, e, n) { if (e < n.length - 1) return t.push(n[e + 1]); }); }, _traverse: function (t, e, i) { var o, l; return ( null == t && (t = "vertical"), null == e && (e = r), (l = h.aggregate(e)), (o = []), this.each(function () { var e; return (e = n.inArray(this, l[t])), i(o, e, l[t]); }), this.pushStack(o) ); }, _invoke: function (t, e) { return ( t.each(function () { var t; return ( (t = l.getWaypointsByElement(this)), n.each(t, function (t, n) { return n[e](), !0; }) ); }), this ); }, }), (n.fn[g] = function () { var t, r; return ( (r = arguments[0]), (t = 2 <= arguments.length ? e.call(arguments, 1) : []), d[r] ? d[r].apply(this, t) : n.isFunction(r) ? d.init.apply(this, arguments) : n.isPlainObject(r) ? d.init.apply(this, [null, r]) : r ? n.error( "The " + r + " method does not exist in jQuery Waypoints." ) : n.error( "jQuery Waypoints needs a callback function or handler option." ) ); }), (n.fn[g].defaults = { context: r, continuous: !0, enabled: !0, horizontal: !1, offset: 0, triggerOnce: !1, }), (h = { refresh: function () { return n.each(u, function (t, e) { return e.refresh(); }); }, viewportHeight: function () { var t; return null != (t = r.innerHeight) ? t : i.height(); }, aggregate: function (t) { var e, r, i; return ( (e = s), t && (e = null != (i = u[n(t).data(a)]) ? i.waypoints : void 0), e ? ((r = { horizontal: [], vertical: [] }), n.each(r, function (t, i) { return ( n.each(e[t], function (t, e) { return i.push(e); }), i.sort(function (t, e) { return t.offset - e.offset; }), (r[t] = n.map(i, function (t) { return t.element; })), (r[t] = n.unique(r[t])) ); }), r) : [] ); }, above: function (t) { return ( null == t && (t = r), h._filter(t, "vertical", function (t, e) { return e.offset <= t.oldScroll.y; }) ); }, below: function (t) { return ( null == t && (t = r), h._filter(t, "vertical", function (t, e) { return e.offset > t.oldScroll.y; }) ); }, left: function (t) { return ( null == t && (t = r), h._filter(t, "horizontal", function (t, e) { return e.offset <= t.oldScroll.x; }) ); }, right: function (t) { return ( null == t && (t = r), h._filter(t, "horizontal", function (t, e) { return e.offset > t.oldScroll.x; }) ); }, enable: function () { return h._invoke("enable"); }, disable: function () { return h._invoke("disable"); }, destroy: function () { return h._invoke("destroy"); }, extendFn: function (t, e) { return (d[t] = e); }, _invoke: function (t) { var e; return ( (e = n.extend({}, s.vertical, s.horizontal)), n.each(e, function (e, n) { return n[t](), !0; }) ); }, _filter: function (t, e, r) { var i, o; return (i = u[n(t).data(a)]) ? ((o = []), n.each(i.waypoints[e], function (t, e) { if (r(i, e)) return o.push(e); }), o.sort(function (t, e) { return t.offset - e.offset; }), n.map(o, function (t) { return t.element; })) : []; }, }), (n[S] = function () { var t, n; return ( (n = arguments[0]), (t = 2 <= arguments.length ? e.call(arguments, 1) : []), h[n] ? h[n].apply(null, t) : h.aggregate.call(null, n) ); }), (n[S].settings = { resizeThrottle: 100, scrollThrottle: 30 }), i.load(function () { return n[S]("refresh"); }) ); }); }.call(this)); (function ($) { "use strict"; var $window = $(window); var windowHeight = $window.height(); $window.resize(function () { windowHeight = $window.height(); }); $.fn.parallax = function (xpos, speedFactor, outerHeight) { var $this = $(this); var getHeight; var firstTop; var paddingTop = 0; $this.each(function () { firstTop = $this.offset().top; }); if (outerHeight) { getHeight = function (jqo) { return jqo.outerHeight(true); }; } else { getHeight = function (jqo) { return jqo.height(); }; } if (arguments.length < 1 || xpos === null) xpos = "50%"; if (arguments.length < 2 || speedFactor === null) speedFactor = 0.1; if (arguments.length < 3 || outerHeight === null) outerHeight = true; function update() { var pos = $window.scrollTop(); $this.each(function () { var $element = $(this); var top = $element.offset().top; var height = getHeight($element); if (top + height < pos || top > pos + windowHeight) { return; } $this.css( "backgroundPosition", xpos + " " + Math.round((top - pos) * speedFactor) + "px" ); }); } $window.bind("scroll", update).resize(update); update(); }; })(jQuery); ("use strict"); jQuery(document).on("ready", function () { initEvents(); initStyles(); initCollapseMenu(); checkCountUp(); initScrollReveal(); }); jQuery(window) .on("scroll", function (event) { checkNavbar(); checkGoTop(); checkScrollAnimation(); }) .scroll(); jQuery(window).on("load", function () { initMasonry(); initParallax(); }); jQuery(window) .on("resize", function () { setResizeStyles(); }) .resize(); function initCollapseMenu() { var navbar = jQuery(".lte-navbar-items"), navbar_toggle = jQuery(".lte-navbar-toggle"), navbar_wrapper = jQuery("#lte-nav-wrapper"); navbar_wrapper.on("click", ".lte-navbar-toggle", function (e) { navbar_toggle.toggleClass("collapsed"); navbar.toggleClass("collapse"); navbar_wrapper.toggleClass("mob-visible"); }); navbar.on("click", ".menu-item-type-custom > a", function (e) { if ( typeof jQuery(this).attr("href") !== "undefined" && jQuery(this).attr("href") !== "#" && jQuery(this).attr("href").charAt(0) === "#" ) { navbar_toggle.addClass("collapsed"); navbar.addClass("collapse"); navbar_wrapper.removeClass("mob-visible"); } }); navbar.on("click", ".menu-item-has-children > a", function (e) { var el = jQuery(this); if (!el.closest(".lte-navbar-items").hasClass("collapse")) { if ( el.attr("href") === undefined || el.attr("href") === "#" || e.target.tagName == "A" ) { el.next().toggleClass("show"); el.parent().toggleClass("show"); return false; } } }); var lastWidth; jQuery(window).on("resize", function () { checkNavbar(); var winWidth = jQuery(window).width(), winHeight = jQuery(window).height(); lastWidth = winWidth; }); } function checkNavbar() { var navbar = jQuery(".lte-navbar-items"), scroll = jQuery(window).scrollTop(), navBar = jQuery(".lte-navbar"), topBar = jQuery(".lte-topbar-block"), navbar_toggle = jQuery(".lte-navbar-toggle"), navbar_wrapper = jQuery("#lte-nav-wrapper"), slideDiv = jQuery(".slider-full"), winWidth = jQuery(window).width(), winHeight = jQuery(window).height(), navbar_mobile_width = navbar.data("mobile-screen-width"); if (winWidth < navbar_mobile_width) { navbar.addClass("navbar-mobile").removeClass("navbar-desktop"); navbar_wrapper .addClass("lte-navwrapper-mobile") .removeClass("lte-navwrapper-desktop"); } else { navbar.addClass("navbar-desktop").removeClass("navbar-mobile"); navbar_wrapper .addClass("lte-navwrapper-desktop") .removeClass("lte-navwrapper-mobile"); } navbar_wrapper.addClass("inited"); if (topBar.length) { navBar.data("offset-top", topBar.height()); } if (winWidth > navbar_mobile_width && navbar_toggle.is(":hidden")) { navbar.addClass("collapse"); navbar_toggle.addClass("collapsed"); navbar_wrapper.removeClass("mob-visible"); } jQuery( "#lte-nav-wrapper.navbar-layout-transparent + .lte-page-header, #lte-nav-wrapper.navbar-layout-transparent + .main-wrapper" ).css("margin-top", "-" + navbar_wrapper.height() + "px"); } function checkGoTop() { var gotop = jQuery(".lte-go-top"), scrollBottom = jQuery(document).height() - jQuery(window).height() - jQuery(window).scrollTop(); if (gotop.length) { if (jQuery(window).scrollTop() > 400) { gotop.addClass("show"); } else { gotop.removeClass("show"); } if (scrollBottom < 50) { gotop.addClass("scroll-bottom"); } else { gotop.removeClass("scroll-bottom"); } } } function initEvents() { initSearch(); setTimeout(function () { if (typeof Pace !== "undefined") { Pace.stop(); } }, 3000); jQuery(".swipebox.photo").magnificPopup({ type: "image", gallery: { enabled: true }, }); jQuery(".swipebox.lte-video-popup, .swipebox.lte-btn").magnificPopup({ type: "iframe", }); if (!/Mobi/.test(navigator.userAgent) && jQuery(window).width() > 768) { jQuery(".matchHeight").matchHeight(); jQuery(".items-matchHeight article").matchHeight(); } jQuery(".lte-sidebar-filter").on("click", function () { jQuery(this).parent().toggleClass("lte-show"); }); jQuery(".lte-sidebar-close").on("click", function () { jQuery(this).parent().parent().removeClass("lte-show"); }); jQuery(".lte-sidebar-overlay").on("click", function () { jQuery(this).parent().removeClass("lte-show"); }); jQuery(".lte-go-top").on("click", function () { jQuery("html, body").animate({ scrollTop: 0 }, 1200); return false; }); jQuery(".gridlist-toggle").on("click", "a", function () { jQuery(".matchHeight").matchHeight(); }); jQuery(".woocommerce").on("click", "div.quantity > span", function (e) { var f = jQuery(this).siblings("input"); if (jQuery(this).hasClass("more")) { f.val(Math.max(0, parseInt(f.val())) + 1); } else { f.val(Math.max(1, Math.max(0, parseInt(f.val())) - 1)); } e.preventDefault(); jQuery(this).siblings("input").change(); return false; }); jQuery(".lte-mouse-move .elementor-column-wrap") .on("mouseover", function () { if (typeof jQuery(this).data("bg-size") === "undefined") { jQuery(this).data("bg-size", jQuery(this).css("background-size")); } if (jQuery(this).css("background-size") != "cover") { jQuery(this)[0].style.setProperty( "background-size", parseInt(jQuery(this).data("bg-size")) + 10 + "%", "important" ); } }) .on("mouseout", function () { if (jQuery(this).css("background-size") != "cover") { jQuery(this)[0].style.setProperty( "background-size", jQuery(this).data("bg-size"), "important" ); } }) .on("mousemove", function (e) { if (jQuery(this).css("background-size") != "cover") { jQuery(this)[0].style.setProperty( "background-position", ((e.pageX - jQuery(this).offset().left) / jQuery(this).width()) * 100 + "% " + ((e.pageY - jQuery(this).offset().top) / jQuery(this).height()) * 100 + "%", "important" ); } }); jQuery(".lte-navbar").on("affix.bs.affix", function () { if (!jQuery(window).scrollTop()) return false; }); if (jQuery(".lte-particles-ripples").length) { jQuery(".lte-particles-ripples").ripples({ resolution: 512, dropRadius: 20, perturbance: 0.04, }); setInterval(function () { if (!document.hidden) { var $el = jQuery(".lte-particles-ripples"); var x = Math.random() * $el.outerWidth(); var y = Math.random() * $el.outerHeight(); var dropRadius = 20; var strength = 0.04 + Math.random() * 0.04; $el.ripples("drop", x, y, dropRadius, strength); } }, 400); } } function initSearch() { let searchHandler = function (event) { if ( jQuery(event.target).is( ".lte-top-search-wrapper, .lte-top-search-wrapper *" ) ) return; jQuery(document).off("click", searchHandler); jQuery(".lte-top-search-wrapper").removeClass("show-field"); jQuery(".lte-navbar-items").removeClass("muted"); }; let search_href = jQuery(".lte-top-search-wrapper").data("base-href"), search_soruce = jQuery(".lte-top-search-wrapper").data("source"); jQuery(".lte-top-search-ico").on("click", function (e) { e.preventDefault(); jQuery(this).parent().toggleClass("show-field"); jQuery(".lte-navbar-items").toggleClass("muted"); if (jQuery(this).parent().hasClass("show-field")) { jQuery(document).on("click", searchHandler); } else { jQuery(document).off("click", searchHandler); } }); jQuery(".lte-nav-search .lte-header").on("click", function (e) { jQuery(this).prev().find(".lte-top-search-ico").click(); return false; }); jQuery(".lte-top-search-ico-close").on("click", function (e) { jQuery(this).parent().toggleClass("show-field"); jQuery(".lte-navbar-items").toggleClass("muted"); return false; }); jQuery("#lte-top-search-ico-mobile").on("click", function () { if (search_soruce == "woocommerce") { window.location = search_href + "?s=" + jQuery(this).next().val() + "&post_type=product"; } else { window.location = search_href + "?s=" + jQuery(this).next().val(); } return false; }); jQuery(".lte-top-search-wrapper input").keypress(function (e) { if (e.which == 13) { if (search_soruce == "woocommerce") { window.location = search_href + "?s=" + jQuery(this).val() + "&post_type=product"; } else { window.location = search_href + "?s=" + jQuery(this).val(); } return false; } }); } function lteUrlDecode(str) { return decodeURIComponent((str + "").replace(/\+/g, "%20")); } function initParallax() { if (/Mobi/.test(navigator.userAgent)) return false; jQuery(".lte-parallax").parallax("50%", 0.2); jQuery(".lte-parallax-yes").each(function (i, el) { var val = jQuery(el) .attr("class") .match(/lte-bg-parallax-value-(\S+)/); if (val === null) var val = [0, 0.2]; jQuery(el).parallax("50%", parseFloat(val[1])); }); if (typeof jQuery().paroller === "function") { jQuery("[data-paroller-factor]").paroller(); } } function initStyles() { if (jQuery("body").hasClass("dokan-dashboard")) { return false; } jQuery( "form:not(.checkout, .woocommerce-shipping-calculator) select:not(#rating), .wpcf7-form select:not(#rating), aside select, .footer-widget-area select" ).wrap('
'); jQuery(".wpcf7-checkbox").parent().addClass("margin-none"); jQuery('input[type="submit"], button[type="submit"]') .not(".lte-btn") .addClass("lte-btn"); jQuery("#send_comment").removeClass("btn-xs"); jQuery("#searchsubmit").removeClass("lte-btn"); jQuery("table:not([class])").addClass("lte-table"); jQuery(".woocommerce .button") .addClass("lte-btn btn-main color-hover-black") .removeClass("button"); jQuery(".woocommerce .wc-forward:not(.checkout)") .removeClass("btn-black") .addClass("btn-main"); jQuery(".woocommerce-message .lte-btn, .woocommerce-info .lte-btn").addClass( "btn-xs" ); jQuery(".woocommerce .price_slider_amount .lte-btn") .removeClass("btn-black color-hover-white") .addClass("btn btn-main btn-xs color-hover-black"); jQuery(".woocommerce .checkout-button") .removeClass("btn-black color-hover-white") .addClass("btn btn-main btn-xs color-hover-black"); jQuery("button.single_add_to_cart_button") .removeClass("btn-xs color-hover-white") .addClass("color-hover-main"); jQuery(".woocommerce .coupon .lte-btn") .removeClass("color-hover-white") .addClass("color-hover-main"); jQuery(".woocommerce .product .wc-label-new") .closest(".product") .addClass("lte-wc-new"); jQuery(".widget_product_search button").removeClass("lte-btn btn-xs"); jQuery(".woocommerce div.quantity,.woocommerce-page div.quantity").append( '' ); jQuery(document) .off("updated_wc_div") .on("updated_wc_div", function () { jQuery(".woocommerce div.quantity,.woocommerce-page div.quantity").append( '' ); initStyles(); }); jQuery(".input-group-append .lte-btn").removeClass("btn-xs"); jQuery(".lte-hover-logos img").each(function (i, el) { jQuery(el).clone().addClass("lte-img-hover").insertAfter(el); }); jQuery( '.container input[type="submit"], .container input[type="button"], .container .lte-btn' ).wrap(' .lte-btn").wrap( ' a").wrapInner(""); jQuery('.blog-post .nav-links > a[rel="next"]').wrap( '' ); jQuery('.blog-post .nav-links > a[rel="prev"]').wrap( '' ); var overlays = jQuery('*[class*="lte-overlay-wrapper-"]').each(function ( i, el ) { var overlay = this.className.match(/lte-overlay-wrapper-(\S+)/); jQuery(el).prepend( '
' ); }); var header_icon_class = jQuery("#lte-header-icon").data("icon"); var update_width = jQuery( ".woocommerce-cart-form__contents .product-subtotal" ).outerWidth(); jQuery('button[name="update_cart"]').css("width", update_width); jQuery(".wp-searchform .lte-btn").removeClass("lte-btn"); var copyrights = jQuery( ".copyright-block.copyright-layout-copyright-transparent" ), footer = jQuery("#lte-widgets-footer + .copyright-block"), widgets_footer = jQuery("#lte-widgets-footer"), footerHeight = footer.outerHeight(); widgets_footer.css("padding-bottom", 0 + footerHeight + "px"); footer.css("margin-top", "-" + 0 + footerHeight + "px"); copyrights.css("margin-top", "-" + copyrights.outerHeight() + "px"); } function setResizeStyles() { var videos = jQuery(".blog-post article.format-video iframe"), container = jQuery(".blog-post"), bodyWidth = jQuery(window).outerWidth(), contentWrapper = jQuery(".lte-content-wrapper.lte-footer-parallax"), footerWrapper = jQuery( ".lte-content-wrapper.lte-footer-parallax + .lte-footer-wrapper" ); contentWrapper.css("margin-bottom", footerWrapper.outerHeight() + "px"); jQuery.each(videos, function (i, el) { var height = jQuery(el).height(), width = jQuery(el).width(), containerW = jQuery(container).width(), ratio = containerW / width; jQuery(el).css("width", width * ratio); jQuery(el).css("height", height * ratio); }); document.documentElement.style.setProperty("--fullwidth", bodyWidth + "px"); } function checkCountUp() { if (jQuery(".lte-countup-animation").length) { jQuery(".lte-countup-animation").counterUp(); } } function initScrollReveal() { if (/Mobi/.test(navigator.userAgent) || jQuery(window).width() < 768) return false; window.sr = ScrollReveal(); var srAnimations = { zoom_in: { opacity: 1, scale: 0.01 }, zoom_in_large: { opacity: 0, scale: 5.01 }, fade_in: { distance: 1, opacity: 0, scale: 1 }, slide_from_left: { distance: "50%", origin: "left", scale: 1 }, slide_from_right: { distance: "50%", origin: "right", scale: 1 }, slide_from_top: { distance: "50%", origin: "top", scale: 1 }, slide_from_bottom: { distance: "50%", origin: "bottom", scale: 1 }, slide_rotate: { rotate: { x: 0, y: 0, z: 360 } }, }; var srElCfg = { block: [""], items: ["article", ".item"], text_el: [".heading", ".lte-btn", ".lte-btn-wrap", "p", "ul", "img"], list_el: ["li"], }; jQuery(".lte-sr").each(function () { var el = jQuery(this), srClass = el.attr("class"); var srId = srClass.match(/lte-sr-id-(\S+)/), srEffect = srClass.match(/lte-sr-effect-(\S+)/), srEl = srClass.match(/lte-sr-el-(\S+)/), srDelay = srClass.match(/lte-sr-delay-(\d+)/), srDuration = srClass.match(/lte-sr-duration-(\d+)/), srSeq = srClass.match(/lte-sr-sequences-(\d+)/); var cfg = srAnimations[srEffect[1]]; var srConfig = { delay: parseInt(srDelay[1]), duration: parseInt(srDuration[1]), easing: "ease-in-out", afterReveal: function (domEl) { jQuery(domEl).css("transition", "all .3s ease"); }, }; cfg = jQuery.extend({}, cfg, srConfig); var initedEls = []; jQuery.each(srElCfg[srEl[1]], function (i, e) { initedEls.push(".lte-sr-id-" + srId[1] + " " + e); }); sr.reveal(initedEls.join(","), cfg, parseInt(srSeq[1])); }); } function initSliderFilter(swiper) { var btns = jQuery(".slider-filter"), container = jQuery(".slider-filter-container"); var ww = jQuery(window).width(), wh = jQuery(window).height(); if (btns.length) { btns.on("click", "a.cat, span.cat, span.img", function () { var el = jQuery(this), filter = el.data("filter"), limit = el.data("limit"); container.find(".filter-item").show(); el.parent().parent().find(".cat-active").removeClass("cat-active"); el.parent().parent().find(".cat-li-active").removeClass("cat-li-active"); el.addClass("cat-active"); el.parent().addClass("cat-li-active"); if (filter !== "") { container.find(".filter-item").hide(); container.find(".filter-item.filter-type-" + filter + "").fadeIn(900); } if (swiper !== 0) { swiper.slideTo(0, 0); swiper.update(); } return false; }); var firstBtn = btns.find(".cat:first"); firstBtn.addClass("cat-active"); firstBtn.parent().addClass("cat-li-active"); container.find(".filter-item").hide(); container .find(".filter-item.filter-type-" + firstBtn.data("filter") + "") .show(); } } function initMenuFilter() { var container = jQuery(".lte-menu-sc"), btns = jQuery(".lte-menu-sc .menu-filter"); if (container.length) { var bodyStyles = window.getComputedStyle(document.body); var niceScrollConf = { cursorcolor: bodyStyles.getPropertyValue("--main"), cursorborder: "0px", background: "#1E1D1C", cursorwidth: "10px", cursorborderradius: "0px", autohidemode: false, }; if (btns.length) { btns.on("click", "a.cat, span.cat", function () { var el = jQuery(this), filter = el.data("filter"); container.find("article").show(); el.parent().parent().find(".cat-active").removeClass("cat-active"); el.addClass("cat-active"); if (filter !== "") { container.find("article").hide().removeClass("show"); container .find("article.filter-type-" + filter + "") .fadeIn("slow") .addClass("show"); } jQuery(".menu-sc .items").getNiceScroll().resize(); return false; }); var firstBtn = btns.find(".cat:first"); firstBtn.addClass("cat-active"); container.find("article").hide(); container .find("article.filter-type-" + firstBtn.data("filter") + "") .show() .addClass("show"); } } } function initMasonry() { jQuery(".masonry").masonry({ itemSelector: ".item", columnWidth: ".item" }); jQuery(".gallery-inner").masonry({ itemSelector: ".mdiv", columnWidth: ".mdiv", }); } function checkScrollAnimation() { var scrollBlock = jQuery(".ltx-check-scroll"); if (scrollBlock.length) { var scrollTop = scrollBlock.offset().top - window.innerHeight; if ( !scrollBlock.hasClass("done") && jQuery(window).scrollTop() > scrollTop ) { scrollBlock.addClass("done"); } } } ("use strict"); var mapStyles = [ { featureType: "water", elementType: "geometry", stylers: [{ color: "#e9e9e9" }, { lightness: 17 }], }, { featureType: "landscape", elementType: "geometry", stylers: [{ color: "#f5f5f5" }, { lightness: 20 }], }, { featureType: "road.highway", elementType: "geometry.fill", stylers: [{ color: "#ffffff" }, { lightness: 17 }], }, { featureType: "road.highway", elementType: "geometry.stroke", stylers: [{ color: "#ffffff" }, { lightness: 29 }, { weight: 0.2 }], }, { featureType: "road.arterial", elementType: "geometry", stylers: [{ color: "#ffffff" }, { lightness: 18 }], }, { featureType: "road.local", elementType: "geometry", stylers: [{ color: "#ffffff" }, { lightness: 16 }], }, { featureType: "poi", elementType: "geometry", stylers: [{ color: "#f5f5f5" }, { lightness: 21 }], }, { featureType: "poi.park", elementType: "geometry", stylers: [{ color: "#dedede" }, { lightness: 21 }], }, { elementType: "labels.text.stroke", stylers: [{ visibility: "on" }, { color: "#ffffff" }, { lightness: 16 }], }, { elementType: "labels.text.fill", stylers: [{ saturation: 36 }, { color: "#333333" }, { lightness: 40 }], }, { elementType: "labels.icon", stylers: [{ visibility: "off" }] }, { featureType: "transit", elementType: "geometry", stylers: [{ color: "#f2f2f2" }, { lightness: 19 }], }, { featureType: "administrative", elementType: "geometry.fill", stylers: [{ color: "#fefefe" }, { lightness: 20 }], }, { featureType: "administrative", elementType: "geometry.stroke", stylers: [{ color: "#fefefe" }, { lightness: 17 }, { weight: 1.2 }], }, ]; /*! Magnific Popup - v1.1.0 - 2016-02-20 * http://dimsemenov.com/plugins/magnific-popup/ * Copyright (c) 2016 Dmitry Semenov; */ (function (factory) { if (typeof define === "function" && define.amd) { define(["jquery"], factory); } else if (typeof exports === "object") { factory(require("jquery")); } else { factory(window.jQuery || window.Zepto); } })(function ($) { var CLOSE_EVENT = "Close", BEFORE_CLOSE_EVENT = "BeforeClose", AFTER_CLOSE_EVENT = "AfterClose", BEFORE_APPEND_EVENT = "BeforeAppend", MARKUP_PARSE_EVENT = "MarkupParse", OPEN_EVENT = "Open", CHANGE_EVENT = "Change", NS = "mfp", EVENT_NS = "." + NS, READY_CLASS = "mfp-ready", REMOVING_CLASS = "mfp-removing", PREVENT_CLOSE_CLASS = "mfp-prevent-close"; var mfp, MagnificPopup = function () {}, _isJQ = !!window.jQuery, _prevStatus, _window = $(window), _document, _prevContentType, _wrapClasses, _currPopupType; var _mfpOn = function (name, f) { mfp.ev.on(NS + name + EVENT_NS, f); }, _getEl = function (className, appendTo, html, raw) { var el = document.createElement("div"); el.className = "mfp-" + className; if (html) { el.innerHTML = html; } if (!raw) { el = $(el); if (appendTo) { el.appendTo(appendTo); } } else if (appendTo) { appendTo.appendChild(el); } return el; }, _mfpTrigger = function (e, data) { mfp.ev.triggerHandler(NS + e, data); if (mfp.st.callbacks) { e = e.charAt(0).toLowerCase() + e.slice(1); if (mfp.st.callbacks[e]) { mfp.st.callbacks[e].apply(mfp, $.isArray(data) ? data : [data]); } } }, _getCloseBtn = function (type) { if (type !== _currPopupType || !mfp.currTemplate.closeBtn) { mfp.currTemplate.closeBtn = $( mfp.st.closeMarkup.replace("%title%", mfp.st.tClose) ); _currPopupType = type; } return mfp.currTemplate.closeBtn; }, _checkInstance = function () { if (!$.magnificPopup.instance) { mfp = new MagnificPopup(); mfp.init(); $.magnificPopup.instance = mfp; } }, supportsTransitions = function () { var s = document.createElement("p").style, v = ["ms", "O", "Moz", "Webkit"]; if (s["transition"] !== undefined) { return true; } while (v.length) { if (v.pop() + "Transition" in s) { return true; } } return false; }; MagnificPopup.prototype = { constructor: MagnificPopup, init: function () { var appVersion = navigator.appVersion; mfp.isLowIE = mfp.isIE8 = document.all && !document.addEventListener; mfp.isAndroid = /android/gi.test(appVersion); mfp.isIOS = /iphone|ipad|ipod/gi.test(appVersion); mfp.supportsTransition = supportsTransitions(); mfp.probablyMobile = mfp.isAndroid || mfp.isIOS || /(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test( navigator.userAgent ); _document = $(document); mfp.popupsCache = {}; }, open: function (data) { var i; if (data.isObj === false) { mfp.items = data.items.toArray(); mfp.index = 0; var items = data.items, item; for (i = 0; i < items.length; i++) { item = items[i]; if (item.parsed) { item = item.el[0]; } if (item === data.el[0]) { mfp.index = i; break; } } } else { mfp.items = $.isArray(data.items) ? data.items : [data.items]; mfp.index = data.index || 0; } if (mfp.isOpen) { mfp.updateItemHTML(); return; } mfp.types = []; _wrapClasses = ""; if (data.mainEl && data.mainEl.length) { mfp.ev = data.mainEl.eq(0); } else { mfp.ev = _document; } if (data.key) { if (!mfp.popupsCache[data.key]) { mfp.popupsCache[data.key] = {}; } mfp.currTemplate = mfp.popupsCache[data.key]; } else { mfp.currTemplate = {}; } mfp.st = $.extend(true, {}, $.magnificPopup.defaults, data); mfp.fixedContentPos = mfp.st.fixedContentPos === "auto" ? !mfp.probablyMobile : mfp.st.fixedContentPos; if (mfp.st.modal) { mfp.st.closeOnContentClick = false; mfp.st.closeOnBgClick = false; mfp.st.showCloseBtn = false; mfp.st.enableEscapeKey = false; } if (!mfp.bgOverlay) { mfp.bgOverlay = _getEl("bg").on("click" + EVENT_NS, function () { mfp.close(); }); mfp.wrap = _getEl("wrap") .attr("tabindex", -1) .on("click" + EVENT_NS, function (e) { if (mfp._checkIfClose(e.target)) { mfp.close(); } }); mfp.container = _getEl("container", mfp.wrap); } mfp.contentContainer = _getEl("content"); if (mfp.st.preloader) { mfp.preloader = _getEl("preloader", mfp.container, mfp.st.tLoading); } var modules = $.magnificPopup.modules; for (i = 0; i < modules.length; i++) { var n = modules[i]; n = n.charAt(0).toUpperCase() + n.slice(1); mfp["init" + n].call(mfp); } _mfpTrigger("BeforeOpen"); if (mfp.st.showCloseBtn) { if (!mfp.st.closeBtnInside) { mfp.wrap.append(_getCloseBtn()); } else { _mfpOn(MARKUP_PARSE_EVENT, function (e, template, values, item) { values.close_replaceWith = _getCloseBtn(item.type); }); _wrapClasses += " mfp-close-btn-in"; } } if (mfp.st.alignTop) { _wrapClasses += " mfp-align-top"; } if (mfp.fixedContentPos) { mfp.wrap.css({ overflow: mfp.st.overflowY, overflowX: "hidden", overflowY: mfp.st.overflowY, }); } else { mfp.wrap.css({ top: _window.scrollTop(), position: "absolute" }); } if ( mfp.st.fixedBgPos === false || (mfp.st.fixedBgPos === "auto" && !mfp.fixedContentPos) ) { mfp.bgOverlay.css({ height: _document.height(), position: "absolute" }); } if (mfp.st.enableEscapeKey) { _document.on("keyup" + EVENT_NS, function (e) { if (e.keyCode === 27) { mfp.close(); } }); } _window.on("resize" + EVENT_NS, function () { mfp.updateSize(); }); if (!mfp.st.closeOnContentClick) { _wrapClasses += " mfp-auto-cursor"; } if (_wrapClasses) mfp.wrap.addClass(_wrapClasses); var windowHeight = (mfp.wH = _window.height()); var windowStyles = {}; if (mfp.fixedContentPos) { if (mfp._hasScrollBar(windowHeight)) { var s = mfp._getScrollbarSize(); if (s) { windowStyles.marginRight = s; } } } if (mfp.fixedContentPos) { if (!mfp.isIE7) { windowStyles.overflow = "hidden"; } else { $("body, html").css("overflow", "hidden"); } } var classesToadd = mfp.st.mainClass; if (mfp.isIE7) { classesToadd += " mfp-ie7"; } if (classesToadd) { mfp._addClassToMFP(classesToadd); } mfp.updateItemHTML(); _mfpTrigger("BuildControls"); $("html").css(windowStyles); mfp.bgOverlay .add(mfp.wrap) .prependTo(mfp.st.prependTo || $(document.body)); mfp._lastFocusedEl = document.activeElement; setTimeout(function () { if (mfp.content) { mfp._addClassToMFP(READY_CLASS); mfp._setFocus(); } else { mfp.bgOverlay.addClass(READY_CLASS); } _document.on("focusin" + EVENT_NS, mfp._onFocusIn); }, 16); mfp.isOpen = true; mfp.updateSize(windowHeight); _mfpTrigger(OPEN_EVENT); return data; }, close: function () { if (!mfp.isOpen) return; _mfpTrigger(BEFORE_CLOSE_EVENT); mfp.isOpen = false; if (mfp.st.removalDelay && !mfp.isLowIE && mfp.supportsTransition) { mfp._addClassToMFP(REMOVING_CLASS); setTimeout(function () { mfp._close(); }, mfp.st.removalDelay); } else { mfp._close(); } }, _close: function () { _mfpTrigger(CLOSE_EVENT); var classesToRemove = REMOVING_CLASS + " " + READY_CLASS + " "; mfp.bgOverlay.detach(); mfp.wrap.detach(); mfp.container.empty(); if (mfp.st.mainClass) { classesToRemove += mfp.st.mainClass + " "; } mfp._removeClassFromMFP(classesToRemove); if (mfp.fixedContentPos) { var windowStyles = { marginRight: "" }; if (mfp.isIE7) { $("body, html").css("overflow", ""); } else { windowStyles.overflow = ""; } $("html").css(windowStyles); } _document.off("keyup" + EVENT_NS + " focusin" + EVENT_NS); mfp.ev.off(EVENT_NS); mfp.wrap.attr("class", "mfp-wrap").removeAttr("style"); mfp.bgOverlay.attr("class", "mfp-bg"); mfp.container.attr("class", "mfp-container"); if ( mfp.st.showCloseBtn && (!mfp.st.closeBtnInside || mfp.currTemplate[mfp.currItem.type] === true) ) { if (mfp.currTemplate.closeBtn) mfp.currTemplate.closeBtn.detach(); } if (mfp.st.autoFocusLast && mfp._lastFocusedEl) { $(mfp._lastFocusedEl).focus(); } mfp.currItem = null; mfp.content = null; mfp.currTemplate = null; mfp.prevHeight = 0; _mfpTrigger(AFTER_CLOSE_EVENT); }, updateSize: function (winHeight) { if (mfp.isIOS) { var zoomLevel = document.documentElement.clientWidth / window.innerWidth; var height = window.innerHeight * zoomLevel; mfp.wrap.css("height", height); mfp.wH = height; } else { mfp.wH = winHeight || _window.height(); } if (!mfp.fixedContentPos) { mfp.wrap.css("height", mfp.wH); } _mfpTrigger("Resize"); }, updateItemHTML: function () { var item = mfp.items[mfp.index]; mfp.contentContainer.detach(); if (mfp.content) mfp.content.detach(); if (!item.parsed) { item = mfp.parseEl(mfp.index); } var type = item.type; _mfpTrigger("BeforeChange", [ mfp.currItem ? mfp.currItem.type : "", type, ]); mfp.currItem = item; if (!mfp.currTemplate[type]) { var markup = mfp.st[type] ? mfp.st[type].markup : false; _mfpTrigger("FirstMarkupParse", markup); if (markup) { mfp.currTemplate[type] = $(markup); } else { mfp.currTemplate[type] = true; } } if (_prevContentType && _prevContentType !== item.type) { mfp.container.removeClass("mfp-" + _prevContentType + "-holder"); } var newContent = mfp[ "get" + type.charAt(0).toUpperCase() + type.slice(1) ](item, mfp.currTemplate[type]); mfp.appendContent(newContent, type); item.preloaded = true; _mfpTrigger(CHANGE_EVENT, item); _prevContentType = item.type; mfp.container.prepend(mfp.contentContainer); _mfpTrigger("AfterChange"); }, appendContent: function (newContent, type) { mfp.content = newContent; if (newContent) { if ( mfp.st.showCloseBtn && mfp.st.closeBtnInside && mfp.currTemplate[type] === true ) { if (!mfp.content.find(".mfp-close").length) { mfp.content.append(_getCloseBtn()); } } else { mfp.content = newContent; } } else { mfp.content = ""; } _mfpTrigger(BEFORE_APPEND_EVENT); mfp.container.addClass("mfp-" + type + "-holder"); mfp.contentContainer.append(mfp.content); }, parseEl: function (index) { var item = mfp.items[index], type; if (item.tagName) { item = { el: $(item) }; } else { type = item.type; item = { data: item, src: item.src }; } if (item.el) { var types = mfp.types; for (var i = 0; i < types.length; i++) { if (item.el.hasClass("mfp-" + types[i])) { type = types[i]; break; } } item.src = item.el.attr("data-mfp-src"); if (!item.src) { item.src = item.el.attr("href"); } } item.type = type || mfp.st.type || "inline"; item.index = index; item.parsed = true; mfp.items[index] = item; _mfpTrigger("ElementParse", item); return mfp.items[index]; }, addGroup: function (el, options) { var eHandler = function (e) { e.mfpEl = this; mfp._openClick(e, el, options); }; if (!options) { options = {}; } var eName = "click.magnificPopup"; options.mainEl = el; if (options.items) { options.isObj = true; el.off(eName).on(eName, eHandler); } else { options.isObj = false; if (options.delegate) { el.off(eName).on(eName, options.delegate, eHandler); } else { options.items = el; el.off(eName).on(eName, eHandler); } } }, _openClick: function (e, el, options) { var midClick = options.midClick !== undefined ? options.midClick : $.magnificPopup.defaults.midClick; if ( !midClick && (e.which === 2 || e.ctrlKey || e.metaKey || e.altKey || e.shiftKey) ) { return; } var disableOn = options.disableOn !== undefined ? options.disableOn : $.magnificPopup.defaults.disableOn; if (disableOn) { if ($.isFunction(disableOn)) { if (!disableOn.call(mfp)) { return true; } } else { if (_window.width() < disableOn) { return true; } } } if (e.type) { e.preventDefault(); if (mfp.isOpen) { e.stopPropagation(); } } options.el = $(e.mfpEl); if (options.delegate) { options.items = el.find(options.delegate); } mfp.open(options); }, updateStatus: function (status, text) { if (mfp.preloader) { if (_prevStatus !== status) { mfp.container.removeClass("mfp-s-" + _prevStatus); } if (!text && status === "loading") { text = mfp.st.tLoading; } var data = { status: status, text: text }; _mfpTrigger("UpdateStatus", data); status = data.status; text = data.text; mfp.preloader.html(text); mfp.preloader.find("a").on("click", function (e) { e.stopImmediatePropagation(); }); mfp.container.addClass("mfp-s-" + status); _prevStatus = status; } }, _checkIfClose: function (target) { if ($(target).hasClass(PREVENT_CLOSE_CLASS)) { return; } var closeOnContent = mfp.st.closeOnContentClick; var closeOnBg = mfp.st.closeOnBgClick; if (closeOnContent && closeOnBg) { return true; } else { if ( !mfp.content || $(target).hasClass("mfp-close") || (mfp.preloader && target === mfp.preloader[0]) ) { return true; } if (target !== mfp.content[0] && !$.contains(mfp.content[0], target)) { if (closeOnBg) { if ($.contains(document, target)) { return true; } } } else if (closeOnContent) { return true; } } return false; }, _addClassToMFP: function (cName) { mfp.bgOverlay.addClass(cName); mfp.wrap.addClass(cName); }, _removeClassFromMFP: function (cName) { this.bgOverlay.removeClass(cName); mfp.wrap.removeClass(cName); }, _hasScrollBar: function (winHeight) { return ( (mfp.isIE7 ? _document.height() : document.body.scrollHeight) > (winHeight || _window.height()) ); }, _setFocus: function () { (mfp.st.focus ? mfp.content.find(mfp.st.focus).eq(0) : mfp.wrap).focus(); }, _onFocusIn: function (e) { if (e.target !== mfp.wrap[0] && !$.contains(mfp.wrap[0], e.target)) { mfp._setFocus(); return false; } }, _parseMarkup: function (template, values, item) { var arr; if (item.data) { values = $.extend(item.data, values); } _mfpTrigger(MARKUP_PARSE_EVENT, [template, values, item]); $.each(values, function (key, value) { if (value === undefined || value === false) { return true; } arr = key.split("_"); if (arr.length > 1) { var el = template.find(EVENT_NS + "-" + arr[0]); if (el.length > 0) { var attr = arr[1]; if (attr === "replaceWith") { if (el[0] !== value[0]) { el.replaceWith(value); } } else if (attr === "img") { if (el.is("img")) { el.attr("src", value); } else { el.replaceWith( $("").attr("src", value).attr("class", el.attr("class")) ); } } else { el.attr(arr[1], value); } } } else { template.find(EVENT_NS + "-" + key).html(value); } }); }, _getScrollbarSize: function () { if (mfp.scrollbarSize === undefined) { var scrollDiv = document.createElement("div"); scrollDiv.style.cssText = "width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;"; document.body.appendChild(scrollDiv); mfp.scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth; document.body.removeChild(scrollDiv); } return mfp.scrollbarSize; }, }; $.magnificPopup = { instance: null, proto: MagnificPopup.prototype, modules: [], open: function (options, index) { _checkInstance(); if (!options) { options = {}; } else { options = $.extend(true, {}, options); } options.isObj = true; options.index = index || 0; return this.instance.open(options); }, close: function () { return $.magnificPopup.instance && $.magnificPopup.instance.close(); }, registerModule: function (name, module) { if (module.options) { $.magnificPopup.defaults[name] = module.options; } $.extend(this.proto, module.proto); this.modules.push(name); }, defaults: { disableOn: 0, key: null, midClick: false, mainClass: "", preloader: true, focus: "", closeOnContentClick: false, closeOnBgClick: true, closeBtnInside: true, showCloseBtn: true, enableEscapeKey: true, modal: false, alignTop: false, removalDelay: 0, prependTo: null, fixedContentPos: "auto", fixedBgPos: "auto", overflowY: "auto", closeMarkup: '', tClose: "Close (Esc)", tLoading: "Loading...", autoFocusLast: true, }, }; $.fn.magnificPopup = function (options) { _checkInstance(); var jqEl = $(this); if (typeof options === "string") { if (options === "open") { var items, itemOpts = _isJQ ? jqEl.data("magnificPopup") : jqEl[0].magnificPopup, index = parseInt(arguments[1], 10) || 0; if (itemOpts.items) { items = itemOpts.items[index]; } else { items = jqEl; if (itemOpts.delegate) { items = items.find(itemOpts.delegate); } items = items.eq(index); } mfp._openClick({ mfpEl: items }, jqEl, itemOpts); } else { if (mfp.isOpen) mfp[options].apply(mfp, Array.prototype.slice.call(arguments, 1)); } } else { options = $.extend(true, {}, options); if (_isJQ) { jqEl.data("magnificPopup", options); } else { jqEl[0].magnificPopup = options; } mfp.addGroup(jqEl, options); } return jqEl; }; var INLINE_NS = "inline", _hiddenClass, _inlinePlaceholder, _lastInlineElement, _putInlineElementsBack = function () { if (_lastInlineElement) { _inlinePlaceholder .after(_lastInlineElement.addClass(_hiddenClass)) .detach(); _lastInlineElement = null; } }; $.magnificPopup.registerModule(INLINE_NS, { options: { hiddenClass: "hide", markup: "", tNotFound: "Content not found", }, proto: { initInline: function () { mfp.types.push(INLINE_NS); _mfpOn(CLOSE_EVENT + "." + INLINE_NS, function () { _putInlineElementsBack(); }); }, getInline: function (item, template) { _putInlineElementsBack(); if (item.src) { var inlineSt = mfp.st.inline, el = $(item.src); if (el.length) { var parent = el[0].parentNode; if (parent && parent.tagName) { if (!_inlinePlaceholder) { _hiddenClass = inlineSt.hiddenClass; _inlinePlaceholder = _getEl(_hiddenClass); _hiddenClass = "mfp-" + _hiddenClass; } _lastInlineElement = el .after(_inlinePlaceholder) .detach() .removeClass(_hiddenClass); } mfp.updateStatus("ready"); } else { mfp.updateStatus("error", inlineSt.tNotFound); el = $("
"); } item.inlineElement = el; return el; } mfp.updateStatus("ready"); mfp._parseMarkup(template, {}, item); return template; }, }, }); var AJAX_NS = "ajax", _ajaxCur, _removeAjaxCursor = function () { if (_ajaxCur) { $(document.body).removeClass(_ajaxCur); } }, _destroyAjaxRequest = function () { _removeAjaxCursor(); if (mfp.req) { mfp.req.abort(); } }; $.magnificPopup.registerModule(AJAX_NS, { options: { settings: null, cursor: "mfp-ajax-cur", tError: 'The content could not be loaded.', }, proto: { initAjax: function () { mfp.types.push(AJAX_NS); _ajaxCur = mfp.st.ajax.cursor; _mfpOn(CLOSE_EVENT + "." + AJAX_NS, _destroyAjaxRequest); _mfpOn("BeforeChange." + AJAX_NS, _destroyAjaxRequest); }, getAjax: function (item) { if (_ajaxCur) { $(document.body).addClass(_ajaxCur); } mfp.updateStatus("loading"); var opts = $.extend( { url: item.src, success: function (data, textStatus, jqXHR) { var temp = { data: data, xhr: jqXHR }; _mfpTrigger("ParseAjax", temp); mfp.appendContent($(temp.data), AJAX_NS); item.finished = true; _removeAjaxCursor(); mfp._setFocus(); setTimeout(function () { mfp.wrap.addClass(READY_CLASS); }, 16); mfp.updateStatus("ready"); _mfpTrigger("AjaxContentAdded"); }, error: function () { _removeAjaxCursor(); item.finished = item.loadError = true; mfp.updateStatus( "error", mfp.st.ajax.tError.replace("%url%", item.src) ); }, }, mfp.st.ajax.settings ); mfp.req = $.ajax(opts); return ""; }, }, }); var _imgInterval, _getTitle = function (item) { if (item.data && item.data.title !== undefined) return item.data.title; var src = mfp.st.image.titleSrc; if (src) { if ($.isFunction(src)) { return src.call(mfp, item); } else if (item.el) { return item.el.attr(src) || ""; } } return ""; }; $.magnificPopup.registerModule("image", { options: { markup: '
' + '
' + "
" + '
' + "
" + '
' + '
' + '
' + "
" + "
" + "
" + "
", cursor: "mfp-zoom-out-cur", titleSrc: "title", verticalFit: true, tError: 'The image could not be loaded.', }, proto: { initImage: function () { var imgSt = mfp.st.image, ns = ".image"; mfp.types.push("image"); _mfpOn(OPEN_EVENT + ns, function () { if (mfp.currItem.type === "image" && imgSt.cursor) { $(document.body).addClass(imgSt.cursor); } }); _mfpOn(CLOSE_EVENT + ns, function () { if (imgSt.cursor) { $(document.body).removeClass(imgSt.cursor); } _window.off("resize" + EVENT_NS); }); _mfpOn("Resize" + ns, mfp.resizeImage); if (mfp.isLowIE) { _mfpOn("AfterChange", mfp.resizeImage); } }, resizeImage: function () { var item = mfp.currItem; if (!item || !item.img) return; if (mfp.st.image.verticalFit) { var decr = 0; if (mfp.isLowIE) { decr = parseInt(item.img.css("padding-top"), 10) + parseInt(item.img.css("padding-bottom"), 10); } item.img.css("max-height", mfp.wH - decr); } }, _onImageHasSize: function (item) { if (item.img) { item.hasSize = true; if (_imgInterval) { clearInterval(_imgInterval); } item.isCheckingImgSize = false; _mfpTrigger("ImageHasSize", item); if (item.imgHidden) { if (mfp.content) mfp.content.removeClass("mfp-loading"); item.imgHidden = false; } } }, findImageSize: function (item) { var counter = 0, img = item.img[0], mfpSetInterval = function (delay) { if (_imgInterval) { clearInterval(_imgInterval); } _imgInterval = setInterval(function () { if (img.naturalWidth > 0) { mfp._onImageHasSize(item); return; } if (counter > 200) { clearInterval(_imgInterval); } counter++; if (counter === 3) { mfpSetInterval(10); } else if (counter === 40) { mfpSetInterval(50); } else if (counter === 100) { mfpSetInterval(500); } }, delay); }; mfpSetInterval(1); }, getImage: function (item, template) { var guard = 0, onLoadComplete = function () { if (item) { if (item.img[0].complete) { item.img.off(".mfploader"); if (item === mfp.currItem) { mfp._onImageHasSize(item); mfp.updateStatus("ready"); } item.hasSize = true; item.loaded = true; _mfpTrigger("ImageLoadComplete"); } else { guard++; if (guard < 200) { setTimeout(onLoadComplete, 100); } else { onLoadError(); } } } }, onLoadError = function () { if (item) { item.img.off(".mfploader"); if (item === mfp.currItem) { mfp._onImageHasSize(item); mfp.updateStatus( "error", imgSt.tError.replace("%url%", item.src) ); } item.hasSize = true; item.loaded = true; item.loadError = true; } }, imgSt = mfp.st.image; var el = template.find(".mfp-img"); if (el.length) { var img = document.createElement("img"); img.className = "mfp-img"; if (item.el && item.el.find("img").length) { img.alt = item.el.find("img").attr("alt"); } item.img = $(img) .on("load.mfploader", onLoadComplete) .on("error.mfploader", onLoadError); img.src = item.src; if (el.is("img")) { item.img = item.img.clone(); } img = item.img[0]; if (img.naturalWidth > 0) { item.hasSize = true; } else if (!img.width) { item.hasSize = false; } } mfp._parseMarkup( template, { title: _getTitle(item), img_replaceWith: item.img }, item ); mfp.resizeImage(); if (item.hasSize) { if (_imgInterval) clearInterval(_imgInterval); if (item.loadError) { template.addClass("mfp-loading"); mfp.updateStatus("error", imgSt.tError.replace("%url%", item.src)); } else { template.removeClass("mfp-loading"); mfp.updateStatus("ready"); } return template; } mfp.updateStatus("loading"); item.loading = true; if (!item.hasSize) { item.imgHidden = true; template.addClass("mfp-loading"); mfp.findImageSize(item); } return template; }, }, }); var hasMozTransform, getHasMozTransform = function () { if (hasMozTransform === undefined) { hasMozTransform = document.createElement("p").style.MozTransform !== undefined; } return hasMozTransform; }; $.magnificPopup.registerModule("zoom", { options: { enabled: false, easing: "ease-in-out", duration: 300, opener: function (element) { return element.is("img") ? element : element.find("img"); }, }, proto: { initZoom: function () { var zoomSt = mfp.st.zoom, ns = ".zoom", image; if (!zoomSt.enabled || !mfp.supportsTransition) { return; } var duration = zoomSt.duration, getElToAnimate = function (image) { var newImg = image .clone() .removeAttr("style") .removeAttr("class") .addClass("mfp-animated-image"), transition = "all " + zoomSt.duration / 1000 + "s " + zoomSt.easing, cssObj = { position: "fixed", zIndex: 9999, left: 0, top: 0, "-webkit-backface-visibility": "hidden", }, t = "transition"; cssObj["-webkit-" + t] = cssObj["-moz-" + t] = cssObj["-o-" + t] = cssObj[t] = transition; newImg.css(cssObj); return newImg; }, showMainContent = function () { mfp.content.css("visibility", "visible"); }, openTimeout, animatedImg; _mfpOn("BuildControls" + ns, function () { if (mfp._allowZoom()) { clearTimeout(openTimeout); mfp.content.css("visibility", "hidden"); image = mfp._getItemToZoom(); if (!image) { showMainContent(); return; } animatedImg = getElToAnimate(image); animatedImg.css(mfp._getOffset()); mfp.wrap.append(animatedImg); openTimeout = setTimeout(function () { animatedImg.css(mfp._getOffset(true)); openTimeout = setTimeout(function () { showMainContent(); setTimeout(function () { animatedImg.remove(); image = animatedImg = null; _mfpTrigger("ZoomAnimationEnded"); }, 16); }, duration); }, 16); } }); _mfpOn(BEFORE_CLOSE_EVENT + ns, function () { if (mfp._allowZoom()) { clearTimeout(openTimeout); mfp.st.removalDelay = duration; if (!image) { image = mfp._getItemToZoom(); if (!image) { return; } animatedImg = getElToAnimate(image); } animatedImg.css(mfp._getOffset(true)); mfp.wrap.append(animatedImg); mfp.content.css("visibility", "hidden"); setTimeout(function () { animatedImg.css(mfp._getOffset()); }, 16); } }); _mfpOn(CLOSE_EVENT + ns, function () { if (mfp._allowZoom()) { showMainContent(); if (animatedImg) { animatedImg.remove(); } image = null; } }); }, _allowZoom: function () { return mfp.currItem.type === "image"; }, _getItemToZoom: function () { if (mfp.currItem.hasSize) { return mfp.currItem.img; } else { return false; } }, _getOffset: function (isLarge) { var el; if (isLarge) { el = mfp.currItem.img; } else { el = mfp.st.zoom.opener(mfp.currItem.el || mfp.currItem); } var offset = el.offset(); var paddingTop = parseInt(el.css("padding-top"), 10); var paddingBottom = parseInt(el.css("padding-bottom"), 10); offset.top -= $(window).scrollTop() - paddingTop; var obj = { width: el.width(), height: (_isJQ ? el.innerHeight() : el[0].offsetHeight) - paddingBottom - paddingTop, }; if (getHasMozTransform()) { obj["-moz-transform"] = obj["transform"] = "translate(" + offset.left + "px," + offset.top + "px)"; } else { obj.left = offset.left; obj.top = offset.top; } return obj; }, }, }); var IFRAME_NS = "iframe", _emptyPage = "//about:blank", _fixIframeBugs = function (isShowing) { if (mfp.currTemplate[IFRAME_NS]) { var el = mfp.currTemplate[IFRAME_NS].find("iframe"); if (el.length) { if (!isShowing) { el[0].src = _emptyPage; } if (mfp.isIE8) { el.css("display", isShowing ? "block" : "none"); } } } }; $.magnificPopup.registerModule(IFRAME_NS, { options: { markup: '
' + '
' + '' + "
", 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 () { mfp.types.push(IFRAME_NS); _mfpOn("BeforeChange", function (e, prevType, newType) { if (prevType !== newType) { if (prevType === IFRAME_NS) { _fixIframeBugs(); } else if (newType === IFRAME_NS) { _fixIframeBugs(true); } } }); _mfpOn(CLOSE_EVENT + "." + IFRAME_NS, function () { _fixIframeBugs(); }); }, getIframe: function (item, template) { var embedSrc = item.src; var iframeSt = mfp.st.iframe; $.each(iframeSt.patterns, function () { if (embedSrc.indexOf(this.index) > -1) { if (this.id) { if (typeof this.id === "string") { embedSrc = embedSrc.substr( embedSrc.lastIndexOf(this.id) + this.id.length, embedSrc.length ); } else { embedSrc = this.id.call(this, embedSrc); } } embedSrc = this.src.replace("%id%", embedSrc); return false; } }); var dataObj = {}; if (iframeSt.srcAction) { dataObj[iframeSt.srcAction] = embedSrc; } mfp._parseMarkup(template, dataObj, item); mfp.updateStatus("ready"); return template; }, }, }); var _getLoopedId = function (index) { var numSlides = mfp.items.length; if (index > numSlides - 1) { return index - numSlides; } else if (index < 0) { return numSlides + index; } return index; }, _replaceCurrTotal = function (text, curr, total) { return text.replace(/%curr%/gi, curr + 1).replace(/%total%/gi, total); }; $.magnificPopup.registerModule("gallery", { options: { enabled: false, arrowMarkup: '', preload: [0, 2], navigateByImgClick: true, arrows: true, tPrev: "Previous (Left arrow key)", tNext: "Next (Right arrow key)", tCounter: "%curr% of %total%", }, proto: { initGallery: function () { var gSt = mfp.st.gallery, ns = ".mfp-gallery"; mfp.direction = true; if (!gSt || !gSt.enabled) return false; _wrapClasses += " mfp-gallery"; _mfpOn(OPEN_EVENT + ns, function () { if (gSt.navigateByImgClick) { mfp.wrap.on("click" + ns, ".mfp-img", function () { if (mfp.items.length > 1) { mfp.next(); return false; } }); } _document.on("keydown" + ns, function (e) { if (e.keyCode === 37) { mfp.prev(); } else if (e.keyCode === 39) { mfp.next(); } }); }); _mfpOn("UpdateStatus" + ns, function (e, data) { if (data.text) { data.text = _replaceCurrTotal( data.text, mfp.currItem.index, mfp.items.length ); } }); _mfpOn(MARKUP_PARSE_EVENT + ns, function (e, element, values, item) { var l = mfp.items.length; values.counter = l > 1 ? _replaceCurrTotal(gSt.tCounter, item.index, l) : ""; }); _mfpOn("BuildControls" + ns, function () { if (mfp.items.length > 1 && gSt.arrows && !mfp.arrowLeft) { var markup = gSt.arrowMarkup, arrowLeft = (mfp.arrowLeft = $( markup .replace(/%title%/gi, gSt.tPrev) .replace(/%dir%/gi, "left") ).addClass(PREVENT_CLOSE_CLASS)), arrowRight = (mfp.arrowRight = $( markup .replace(/%title%/gi, gSt.tNext) .replace(/%dir%/gi, "right") ).addClass(PREVENT_CLOSE_CLASS)); arrowLeft.click(function () { mfp.prev(); }); arrowRight.click(function () { mfp.next(); }); mfp.container.append(arrowLeft.add(arrowRight)); } }); _mfpOn(CHANGE_EVENT + ns, function () { if (mfp._preloadTimeout) clearTimeout(mfp._preloadTimeout); mfp._preloadTimeout = setTimeout(function () { mfp.preloadNearbyImages(); mfp._preloadTimeout = null; }, 16); }); _mfpOn(CLOSE_EVENT + ns, function () { _document.off(ns); mfp.wrap.off("click" + ns); mfp.arrowRight = mfp.arrowLeft = null; }); }, next: function () { mfp.direction = true; mfp.index = _getLoopedId(mfp.index + 1); mfp.updateItemHTML(); }, prev: function () { mfp.direction = false; mfp.index = _getLoopedId(mfp.index - 1); mfp.updateItemHTML(); }, goTo: function (newIndex) { mfp.direction = newIndex >= mfp.index; mfp.index = newIndex; mfp.updateItemHTML(); }, preloadNearbyImages: function () { var p = mfp.st.gallery.preload, preloadBefore = Math.min(p[0], mfp.items.length), preloadAfter = Math.min(p[1], mfp.items.length), i; for (i = 1; i <= (mfp.direction ? preloadAfter : preloadBefore); i++) { mfp._preloadItem(mfp.index + i); } for (i = 1; i <= (mfp.direction ? preloadBefore : preloadAfter); i++) { mfp._preloadItem(mfp.index - i); } }, _preloadItem: function (index) { index = _getLoopedId(index); if (mfp.items[index].preloaded) { return; } var item = mfp.items[index]; if (!item.parsed) { item = mfp.parseEl(index); } _mfpTrigger("LazyLoad", item); if (item.type === "image") { item.img = $('') .on("load.mfploader", function () { item.hasSize = true; }) .on("error.mfploader", function () { item.hasSize = true; item.loadError = true; _mfpTrigger("LazyLoadError", item); }) .attr("src", item.src); } item.preloaded = true; }, }, }); var RETINA_NS = "retina"; $.magnificPopup.registerModule(RETINA_NS, { options: { replaceSrc: function (item) { return item.src.replace(/\.\w+$/, function (m) { return "@2x" + m; }); }, ratio: 1, }, proto: { initRetina: function () { if (window.devicePixelRatio > 1) { var st = mfp.st.retina, ratio = st.ratio; ratio = !isNaN(ratio) ? ratio : ratio(); if (ratio > 1) { _mfpOn("ImageHasSize" + "." + RETINA_NS, function (e, item) { item.img.css({ "max-width": item.img[0].naturalWidth / ratio, width: "100%", }); }); _mfpOn("ElementParse" + "." + RETINA_NS, function (e, item) { item.src = st.replaceSrc(item, ratio); }); } } }, }, }); _checkInstance(); }); (function () { var t, e, n, r, s, o, i, a, u, c, l, p, h, f, d, g, m, y, v, w, b, S, k, q, L, x, T, P, R, j, E, M, O, A, N, _, F, C, U, H, X, W, D, I, z, B, G, J, K, Q = [].slice, V = {}.hasOwnProperty, Y = function (t, e) { function n() { this.constructor = t; } for (var r in e) V.call(e, r) && (t[r] = e[r]); return ( (n.prototype = e.prototype), (t.prototype = new n()), (t.__super__ = e.prototype), t ); }, Z = [].indexOf || function (t) { for (var e = 0, n = this.length; e < n; e++) if (e in this && this[e] === t) return e; return -1; }; for ( b = { catchupTime: 100, initialRate: 0.03, minTime: 250, ghostTime: 100, maxProgressPerFrame: 20, easeFactor: 1.25, startOnPageLoad: !0, restartOnPushState: !1, restartOnRequestAfter: !1, target: "body", elements: !1, eventLag: { minSamples: 10, sampleCount: 3, lagThreshold: 3 }, ajax: !1, }, R = function () { var t; return null != (t = "undefined" != typeof performance && null !== performance && "function" == typeof performance.now ? performance.now() : void 0) ? t : +new Date(); }, E = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame, w = window.cancelAnimationFrame || window.mozCancelAnimationFrame, null == E && ((E = function (t) { return setTimeout(t, 50); }), (w = function (t) { return clearTimeout(t); })), O = function (t) { var e, n; return ( (e = R()), (n = function () { var r; return ( (r = R() - e), r >= 33 ? ((e = R()), t(r, function () { return E(n); })) : setTimeout(n, 33 - r) ); })() ); }, M = function () { var t, e, n; return ( (n = arguments[0]), (e = arguments[1]), (t = 3 <= arguments.length ? Q.call(arguments, 2) : []), "function" == typeof n[e] ? n[e].apply(n, t) : n[e] ); }, S = function () { var t, e, n, r, s, o, i; for ( e = arguments[0], r = 2 <= arguments.length ? Q.call(arguments, 1) : [], o = 0, i = r.length; o < i; o++ ) if ((n = r[o])) for (t in n) V.call(n, t) && ((s = n[t]), null != e[t] && "object" == typeof e[t] && null != s && "object" == typeof s ? S(e[t], s) : (e[t] = s)); return e; }, m = function (t) { var e, n, r, s, o; for (n = e = 0, s = 0, o = t.length; s < o; s++) (r = t[s]), (n += Math.abs(r)), e++; return n / e; }, q = function (t, e) { var n, r, s; if ( (null == t && (t = "options"), null == e && (e = !0), (s = document.querySelector("[data-pace-" + t + "]"))) ) { if (((n = s.getAttribute("data-pace-" + t)), !e)) return n; try { return JSON.parse(n); } catch (o) { return ( (r = o), "undefined" != typeof console && null !== console ? console.error("Error parsing inline pace options", r) : void 0 ); } } }, i = (function () { function t() {} return ( (t.prototype.on = function (t, e, n, r) { var s; return ( null == r && (r = !1), null == this.bindings && (this.bindings = {}), null == (s = this.bindings)[t] && (s[t] = []), this.bindings[t].push({ handler: e, ctx: n, once: r }) ); }), (t.prototype.once = function (t, e, n) { return this.on(t, e, n, !0); }), (t.prototype.off = function (t, e) { var n, r, s; if (null != (null != (r = this.bindings) ? r[t] : void 0)) { if (null == e) return delete this.bindings[t]; for (n = 0, s = []; n < this.bindings[t].length; ) this.bindings[t][n].handler === e ? s.push(this.bindings[t].splice(n, 1)) : s.push(n++); return s; } }), (t.prototype.trigger = function () { var t, e, n, r, s, o, i, a, u; if ( ((n = arguments[0]), (t = 2 <= arguments.length ? Q.call(arguments, 1) : []), null != (i = this.bindings) ? i[n] : void 0) ) { for (s = 0, u = []; s < this.bindings[n].length; ) (a = this.bindings[n][s]), (r = a.handler), (e = a.ctx), (o = a.once), r.apply(null != e ? e : this, t), o ? u.push(this.bindings[n].splice(s, 1)) : u.push(s++); return u; } }), t ); })(), c = window.Pace || {}, window.Pace = c, S(c, i.prototype), j = c.options = S({}, b, window.paceOptions, q()), G = ["ajax", "document", "eventLag", "elements"], D = 0, z = G.length; D < z; D++ ) (F = G[D]), j[F] === !0 && (j[F] = b[F]); (u = (function (t) { function e() { return (J = e.__super__.constructor.apply(this, arguments)); } return Y(e, t), e; })(Error)), (e = (function () { function t() { this.progress = 0; } return ( (t.prototype.getElement = function () { var t; if (null == this.el) { if (((t = document.querySelector(j.target)), !t)) throw new u(); (this.el = document.createElement("div")), (this.el.className = "pace pace-active"), (document.body.className = document.body.className.replace( /pace-done/g, "" )), (document.body.className += " pace-running"), (this.el.innerHTML = '
\n
\n
'); var e = document.getElementById("lte-preloader"); e && (this.el.innerHTML += '
'), (this.el.innerHTML += '
'), null != t.firstChild ? t.insertBefore(this.el, t.firstChild) : t.appendChild(this.el); } return this.el; }), (t.prototype.finish = function () { var t; return ( (t = this.getElement()), (t.className = t.className.replace("pace-active", "")), (t.className += " pace-inactive"), (document.body.className = document.body.className.replace( "pace-running", "" )), (document.body.className += " pace-done") ); }), (t.prototype.update = function (t) { return (this.progress = t), this.render(); }), (t.prototype.destroy = function () { try { this.getElement().parentNode.removeChild(this.getElement()); } catch (t) { u = t; } return (this.el = void 0); }), (t.prototype.render = function () { var t, e, n, r, s, o, i; if (null == document.querySelector(j.target)) return !1; for ( t = this.getElement(), r = "translate3d(" + this.progress + "%, 0, 0)", i = ["webkitTransform", "msTransform", "transform"], s = 0, o = i.length; s < o; s++ ) (e = i[s]), (t.children[0].style[e] = r); return ( (!this.lastRenderedProgress || this.lastRenderedProgress | (0 !== this.progress) | 0) && (t.children[0].setAttribute( "data-progress-text", "" + (0 | this.progress) + "%" ), this.progress >= 100 ? (n = "99") : ((n = this.progress < 10 ? "0" : ""), (n += 0 | this.progress)), t.children[0].setAttribute("data-progress", "" + n)), (this.lastRenderedProgress = this.progress) ); }), (t.prototype.done = function () { return this.progress >= 100; }), t ); })()), (a = (function () { function t() { this.bindings = {}; } return ( (t.prototype.trigger = function (t, e) { var n, r, s, o, i; if (null != this.bindings[t]) { for (o = this.bindings[t], i = [], r = 0, s = o.length; r < s; r++) (n = o[r]), i.push(n.call(this, e)); return i; } }), (t.prototype.on = function (t, e) { var n; return ( null == (n = this.bindings)[t] && (n[t] = []), this.bindings[t].push(e) ); }), t ); })()), (W = window.XMLHttpRequest), (X = window.XDomainRequest), (H = window.WebSocket), (k = function (t, e) { var n, r, s; s = []; for (r in e.prototype) try { null == t[r] && "function" != typeof e[r] ? "function" == typeof Object.defineProperty ? s.push( Object.defineProperty(t, r, { get: function () { return e.prototype[r]; }, configurable: !0, enumerable: !0, }) ) : s.push((t[r] = e.prototype[r])) : s.push(void 0); } catch (o) { n = o; } return s; }), (T = []), (c.ignore = function () { var t, e, n; return ( (e = arguments[0]), (t = 2 <= arguments.length ? Q.call(arguments, 1) : []), T.unshift("ignore"), (n = e.apply(null, t)), T.shift(), n ); }), (c.track = function () { var t, e, n; return ( (e = arguments[0]), (t = 2 <= arguments.length ? Q.call(arguments, 1) : []), T.unshift("track"), (n = e.apply(null, t)), T.shift(), n ); }), (_ = function (t) { var e; if ((null == t && (t = "GET"), "track" === T[0])) return "force"; if (!T.length && j.ajax) { if ("socket" === t && j.ajax.trackWebSockets) return !0; if (((e = t.toUpperCase()), Z.call(j.ajax.trackMethods, e) >= 0)) return !0; } return !1; }), (l = (function (t) { function e() { var t, n = this; e.__super__.constructor.apply(this, arguments), (t = function (t) { var e; return ( (e = t.open), (t.open = function (r, s, o) { return ( _(r) && n.trigger("request", { type: r, url: s, request: t }), e.apply(t, arguments) ); }) ); }), (window.XMLHttpRequest = function (e) { var n; return (n = new W(e)), t(n), n; }); try { k(window.XMLHttpRequest, W); } catch (r) {} if (null != X) { window.XDomainRequest = function () { var e; return (e = new X()), t(e), e; }; try { k(window.XDomainRequest, X); } catch (r) {} } if (null != H && j.ajax.trackWebSockets) { window.WebSocket = function (t, e) { var r; return ( (r = null != e ? new H(t, e) : new H(t)), _("socket") && n.trigger("request", { type: "socket", url: t, protocols: e, request: r, }), r ); }; try { k(window.WebSocket, H); } catch (r) {} } } return Y(e, t), e; })(a)), (I = null), (L = function () { return null == I && (I = new l()), I; }), (N = function (t) { var e, n, r, s; for (s = j.ajax.ignoreURLs, n = 0, r = s.length; n < r; n++) if (((e = s[n]), "string" == typeof e)) { if (t.indexOf(e) !== -1) return !0; } else if (e.test(t)) return !0; return !1; }), L().on("request", function (e) { var n, r, s, o, i; if (((o = e.type), (s = e.request), (i = e.url), !N(i))) return c.running || (j.restartOnRequestAfter === !1 && "force" !== _(o)) ? void 0 : ((r = arguments), (n = j.restartOnRequestAfter || 0), "boolean" == typeof n && (n = 0), setTimeout(function () { var e, n, i, a, u, l; if ( (e = "socket" === o ? s.readyState < 2 : 0 < (a = s.readyState) && a < 4) ) { for ( c.restart(), u = c.sources, l = [], n = 0, i = u.length; n < i; n++ ) { if (((F = u[n]), F instanceof t)) { F.watch.apply(F, r); break; } l.push(void 0); } return l; } }, n)); }), (t = (function () { function t() { var t = this; (this.elements = []), L().on("request", function () { return t.watch.apply(t, arguments); }); } return ( (t.prototype.watch = function (t) { var e, n, r, s; if (((r = t.type), (e = t.request), (s = t.url), !N(s))) return ( (n = "socket" === r ? new f(e) : new d(e)), this.elements.push(n) ); }), t ); })()), (d = (function () { function t(t) { var e, n, r, s, o, i, a = this; if (((this.progress = 0), null != window.ProgressEvent)) for ( n = null, t.addEventListener( "progress", function (t) { return t.lengthComputable ? (a.progress = (100 * t.loaded) / t.total) : (a.progress = a.progress + (100 - a.progress) / 2); }, !1 ), i = ["load", "abort", "timeout", "error"], r = 0, s = i.length; r < s; r++ ) (e = i[r]), t.addEventListener( e, function () { return (a.progress = 100); }, !1 ); else (o = t.onreadystatechange), (t.onreadystatechange = function () { var e; return ( 0 === (e = t.readyState) || 4 === e ? (a.progress = 100) : 3 === t.readyState && (a.progress = 50), "function" == typeof o ? o.apply(null, arguments) : void 0 ); }); } return t; })()), (f = (function () { function t(t) { var e, n, r, s, o = this; for ( this.progress = 0, s = ["error", "open"], n = 0, r = s.length; n < r; n++ ) (e = s[n]), t.addEventListener( e, function () { return (o.progress = 100); }, !1 ); } return t; })()), (r = (function () { function t(t) { var e, n, r, o; for ( null == t && (t = {}), this.elements = [], null == t.selectors && (t.selectors = []), o = t.selectors, n = 0, r = o.length; n < r; n++ ) (e = o[n]), this.elements.push(new s(e)); } return t; })()), (s = (function () { function t(t) { (this.selector = t), (this.progress = 0), this.check(); } return ( (t.prototype.check = function () { var t = this; return document.querySelector(this.selector) ? this.done() : setTimeout(function () { return t.check(); }, j.elements.checkInterval); }), (t.prototype.done = function () { return (this.progress = 100); }), t ); })()), (n = (function () { function t() { var t, e, n = this; (this.progress = null != (e = this.states[document.readyState]) ? e : 100), (t = document.onreadystatechange), (document.onreadystatechange = function () { return ( null != n.states[document.readyState] && (n.progress = n.states[document.readyState]), "function" == typeof t ? t.apply(null, arguments) : void 0 ); }); } return ( (t.prototype.states = { loading: 0, interactive: 50, complete: 100 }), t ); })()), (o = (function () { function t() { var t, e, n, r, s, o = this; (this.progress = 0), (t = 0), (s = []), (r = 0), (n = R()), (e = setInterval(function () { var i; return ( (i = R() - n - 50), (n = R()), s.push(i), s.length > j.eventLag.sampleCount && s.shift(), (t = m(s)), ++r >= j.eventLag.minSamples && t < j.eventLag.lagThreshold ? ((o.progress = 100), clearInterval(e)) : (o.progress = 100 * (3 / (t + 3))) ); }, 50)); } return t; })()), (h = (function () { function t(t) { (this.source = t), (this.last = this.sinceLastUpdate = 0), (this.rate = j.initialRate), (this.catchup = 0), (this.progress = this.lastProgress = 0), null != this.source && (this.progress = M(this.source, "progress")); } return ( (t.prototype.tick = function (t, e) { var n; return ( null == e && (e = M(this.source, "progress")), e >= 100 && (this.done = !0), e === this.last ? (this.sinceLastUpdate += t) : (this.sinceLastUpdate && (this.rate = (e - this.last) / this.sinceLastUpdate), (this.catchup = (e - this.progress) / j.catchupTime), (this.sinceLastUpdate = 0), (this.last = e)), e > this.progress && (this.progress += this.catchup * t), (n = 1 - Math.pow(this.progress / 100, j.easeFactor)), (this.progress += n * this.rate * t), (this.progress = Math.min( this.lastProgress + j.maxProgressPerFrame, this.progress )), (this.progress = Math.max(0, this.progress)), (this.progress = Math.min(100, this.progress)), (this.lastProgress = this.progress), this.progress ); }), t ); })()), (C = null), (A = null), (y = null), (U = null), (g = null), (v = null), (c.running = !1), (x = function () { if (j.restartOnPushState) return c.restart(); }), null != window.history.pushState && ((B = window.history.pushState), (window.history.pushState = function () { return x(), B.apply(window.history, arguments); })), null != window.history.replaceState && ((K = window.history.replaceState), (window.history.replaceState = function () { return x(), K.apply(window.history, arguments); })), (p = { ajax: t, elements: r, document: n, eventLag: o }), (P = function () { var t, n, r, s, o, i, a, u; for ( c.sources = C = [], i = ["ajax", "elements", "document", "eventLag"], n = 0, s = i.length; n < s; n++ ) (t = i[n]), j[t] !== !1 && C.push(new p[t](j[t])); for ( u = null != (a = j.extraSources) ? a : [], r = 0, o = u.length; r < o; r++ ) (F = u[r]), C.push(new F(j)); return (c.bar = y = new e()), (A = []), (U = new h()); })(), (c.stop = function () { return ( c.trigger("stop"), (c.running = !1), y.destroy(), (v = !0), null != g && ("function" == typeof w && w(g), (g = null)), P() ); }), (c.restart = function () { return c.trigger("restart"), c.stop(), c.start(); }), (c.go = function () { var t; return ( (c.running = !0), y.render(), (t = R()), (v = !1), (g = O(function (e, n) { var r, s, o, i, a, u, l, p, f, d, g, m, w, b, S, k; for ( p = 100 - y.progress, s = g = 0, o = !0, u = m = 0, b = C.length; m < b; u = ++m ) for ( F = C[u], d = null != A[u] ? A[u] : (A[u] = []), a = null != (k = F.elements) ? k : [F], l = w = 0, S = a.length; w < S; l = ++w ) (i = a[l]), (f = null != d[l] ? d[l] : (d[l] = new h(i))), (o &= f.done), f.done || (s++, (g += f.tick(e))); return ( (r = g / s), y.update(U.tick(e, r)), y.done() || o || v ? (y.update(100), c.trigger("done"), setTimeout(function () { return y.finish(), (c.running = !1), c.trigger("hide"); }, Math.max(j.ghostTime, Math.max(j.minTime - (R() - t), 0)))) : n() ); })) ); }), (c.start = function (t) { S(j, t), (c.running = !0); try { y.render(); } catch (e) { u = e; } return document.querySelector(".pace") ? (c.trigger("start"), c.go()) : setTimeout(c.start, 50); }), "function" == typeof define && define.amd ? define(["pace"], function () { return c; }) : "object" == typeof exports ? (module.exports = c) : j.startOnPageLoad && c.start(); }.call(this)); /*! elementor - v3.29.0 - 28-05-2025 */ (() => { "use strict"; var e, r, _, t, n, a = {}, i = {}; function __webpack_require__(e) { var r = i[e]; if (void 0 !== r) return r.exports; var _ = (i[e] = { exports: {} }); return a[e].call(_.exports, _, _.exports, __webpack_require__), _.exports; } (__webpack_require__.m = a), (e = []), (__webpack_require__.O = (r, _, t, n) => { if (!_) { var a = 1 / 0; for (b = 0; b < e.length; b++) { for (var [_, t, n] = e[b], i = !0, o = 0; o < _.length; o++) (!1 & n || a >= n) && Object.keys(__webpack_require__.O).every((e) => __webpack_require__.O[e](_[o]) ) ? _.splice(o--, 1) : ((i = !1), n < a && (a = n)); if (i) { e.splice(b--, 1); var c = t(); void 0 !== c && (r = c); } } return r; } n = n || 0; for (var b = e.length; b > 0 && e[b - 1][2] > n; b--) e[b] = e[b - 1]; e[b] = [_, t, n]; }), (_ = Object.getPrototypeOf ? (e) => Object.getPrototypeOf(e) : (e) => e.__proto__), (__webpack_require__.t = function (e, t) { if ((1 & t && (e = this(e)), 8 & t)) return e; if ("object" == typeof e && e) { if (4 & t && e.__esModule) return e; if (16 & t && "function" == typeof e.then) return e; } var n = Object.create(null); __webpack_require__.r(n); var a = {}; r = r || [null, _({}), _([]), _(_)]; for (var i = 2 & t && e; "object" == typeof i && !~r.indexOf(i); i = _(i)) Object.getOwnPropertyNames(i).forEach((r) => (a[r] = () => e[r])); return (a.default = () => e), __webpack_require__.d(n, a), n; }), (__webpack_require__.d = (e, r) => { for (var _ in r) __webpack_require__.o(r, _) && !__webpack_require__.o(e, _) && Object.defineProperty(e, _, { enumerable: !0, get: r[_] }); }), (__webpack_require__.f = {}), (__webpack_require__.e = (e) => Promise.all( Object.keys(__webpack_require__.f).reduce( (r, _) => (__webpack_require__.f[_](e, r), r), [] ) )), (__webpack_require__.u = (e) => 216 === e ? "lightbox.64a93c50cbfc18fcc89b.bundle.min.js" : 30 === e ? "text-path.b4771a659cee68861d30.bundle.min.js" : 131 === e ? "accordion.36aa4c8c4eba17bc8e03.bundle.min.js" : 707 === e ? "alert.42cc1d522ef5c60bf874.bundle.min.js" : 457 === e ? "counter.12335f45aaa79d244f24.bundle.min.js" : 234 === e ? "progress.3200f67fe8fb78924bea.bundle.min.js" : 575 === e ? "tabs.537e7a0f178447960143.bundle.min.js" : 775 === e ? "toggle.a6177e2e3c2bc8864bef.bundle.min.js" : 180 === e ? "video.6ebfa2c3f5493cb2eaaf.bundle.min.js" : 177 === e ? "image-carousel.6167d20b95b33386757b.bundle.min.js" : 212 === e ? "text-editor.c084ef86600b6f11690d.bundle.min.js" : 211 === e ? "wp-audio.c9624cb6e5dc9de86abd.bundle.min.js" : 215 === e ? "nested-tabs.1fde581754604147f6d7.bundle.min.js" : 915 === e ? "nested-accordion.c546968f7aebebc356f2.bundle.min.js" : 1 === e ? "contact-buttons.7c9983ed0d4964b951c2.bundle.min.js" : 336 === e ? "floating-bars.c1e9838906b386709cd4.bundle.min.js" : 557 === e ? "shared-frontend-handlers.30dc2f9c080845a413a6.bundle.min.js" : 396 === e ? "shared-editor-handlers.a182e3f9ce3b8b1e4b74.bundle.min.js" : 768 === e ? "container-editor-handlers.7e9a94a0cd0958b8c9ad.bundle.min.js" : 77 === e ? "section-frontend-handlers.d85ab872da118940910d.bundle.min.js" : 220 === e ? "section-editor-handlers.e92172888b8bf1cc1517.bundle.min.js" : 304 === e ? "nested-title-keyboard-handler.fc9d01c2cd0ef46d20fd.bundle.min.js" : void 0), (__webpack_require__.g = (function () { if ("object" == typeof globalThis) return globalThis; try { return this || new Function("return this")(); } catch (e) { if ("object" == typeof window) return window; } })()), (__webpack_require__.o = (e, r) => Object.prototype.hasOwnProperty.call(e, r)), (t = {}), (n = "elementorFrontend:"), (__webpack_require__.l = (e, r, _, a) => { if (t[e]) t[e].push(r); else { var i, o; if (void 0 !== _) for ( var c = document.getElementsByTagName("script"), b = 0; b < c.length; b++ ) { var u = c[b]; if ( u.getAttribute("src") == e || u.getAttribute("data-webpack") == n + _ ) { i = u; break; } } i || ((o = !0), ((i = document.createElement("script")).charset = "utf-8"), (i.timeout = 120), __webpack_require__.nc && i.setAttribute("nonce", __webpack_require__.nc), i.setAttribute("data-webpack", n + _), (i.src = e)), (t[e] = [r]); var onScriptComplete = (r, _) => { (i.onerror = i.onload = null), clearTimeout(d); var n = t[e]; if ( (delete t[e], i.parentNode && i.parentNode.removeChild(i), n && n.forEach((e) => e(_)), r) ) return r(_); }, d = setTimeout( onScriptComplete.bind(null, void 0, { type: "timeout", target: i }), 12e4 ); (i.onerror = onScriptComplete.bind(null, i.onerror)), (i.onload = onScriptComplete.bind(null, i.onload)), o && document.head.appendChild(i); } }), (__webpack_require__.r = (e) => { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 }); }), (() => { var e; __webpack_require__.g.importScripts && (e = __webpack_require__.g.location + ""); var r = __webpack_require__.g.document; if ( !e && r && (r.currentScript && "SCRIPT" === r.currentScript.tagName.toUpperCase() && (e = r.currentScript.src), !e) ) { var _ = r.getElementsByTagName("script"); if (_.length) for (var t = _.length - 1; t > -1 && (!e || !/^http(s?):/.test(e)); ) e = _[t--].src; } if (!e) throw new Error( "Automatic publicPath is not supported in this browser" ); (e = e .replace(/#.*$/, "") .replace(/\?.*$/, "") .replace(/\/[^\/]+$/, "/")), (__webpack_require__.p = e); })(), (() => { var e = { 76: 0 }; (__webpack_require__.f.j = (r, _) => { var t = __webpack_require__.o(e, r) ? e[r] : void 0; if (0 !== t) if (t) _.push(t[2]); else if (76 != r) { var n = new Promise((_, n) => (t = e[r] = [_, n])); _.push((t[2] = n)); var a = __webpack_require__.p + __webpack_require__.u(r), i = new Error(); __webpack_require__.l( a, (_) => { if ( __webpack_require__.o(e, r) && (0 !== (t = e[r]) && (e[r] = void 0), t) ) { var n = _ && ("load" === _.type ? "missing" : _.type), a = _ && _.target && _.target.src; (i.message = "Loading chunk " + r + " failed.\n(" + n + ": " + a + ")"), (i.name = "ChunkLoadError"), (i.type = n), (i.request = a), t[1](i); } }, "chunk-" + r, r ); } else e[r] = 0; }), (__webpack_require__.O.j = (r) => 0 === e[r]); var webpackJsonpCallback = (r, _) => { var t, n, [a, i, o] = _, c = 0; if (a.some((r) => 0 !== e[r])) { for (t in i) __webpack_require__.o(i, t) && (__webpack_require__.m[t] = i[t]); if (o) var b = o(__webpack_require__); } for (r && r(_); c < a.length; c++) (n = a[c]), __webpack_require__.o(e, n) && e[n] && e[n][0](), (e[n] = 0); return __webpack_require__.O(b); }, r = (self.webpackChunkelementorFrontend = self.webpackChunkelementorFrontend || []); r.forEach(webpackJsonpCallback.bind(null, 0)), (r.push = webpackJsonpCallback.bind(null, r.push.bind(r))); })(); })(); /*! elementor - v3.29.0 - 28-05-2025 */ (self.webpackChunkelementorFrontend = self.webpackChunkelementorFrontend || []).push([ [941], { 5213: (e, t) => { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0); t.default = (e, t) => { t = Array.isArray(t) ? t : [t]; for (const r of t) if (e.constructor.name === r.prototype[Symbol.toStringTag]) return !0; return !1; }; }, 2890: (e, t, r) => { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0), r(4846), r(6211); class _default extends elementorModules.ViewModule { getDefaultSettings() { return { selectors: { elements: ".elementor-element", nestedDocumentElements: ".elementor .elementor-element", }, classes: { editMode: "elementor-edit-mode" }, }; } getDefaultElements() { const e = this.getSettings("selectors"); return { $elements: this.$element .find(e.elements) .not(this.$element.find(e.nestedDocumentElements)), }; } getDocumentSettings(e) { let t; if (this.isEdit) { t = {}; const e = elementor.settings.page.model; jQuery.each(e.getActiveControls(), (r) => { t[r] = e.attributes[r]; }); } else t = this.$element.data("elementor-settings") || {}; return this.getItems(t, e); } runElementsHandlers() { this.elements.$elements.each((e, t) => setTimeout(() => elementorFrontend.elementsHandler.runReadyTrigger(t) ) ); } onInit() { (this.$element = this.getSettings("$element")), super.onInit(), (this.isEdit = this.$element.hasClass( this.getSettings("classes.editMode") )), this.isEdit ? elementor.on("document:loaded", () => { elementor.settings.page.model.on( "change", this.onSettingsChange.bind(this) ); }) : this.runElementsHandlers(); } onSettingsChange() {} } t.default = _default; }, 9603: (e, t, r) => { "use strict"; var n = r(6784); Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0), r(4846), r(6211), r(9655); var i = n(r(5633)); class CarouselHandlerBase extends i.default { getDefaultSettings() { return { selectors: { carousel: ".swiper", swiperWrapper: ".swiper-wrapper", slideContent: ".swiper-slide", swiperArrow: ".elementor-swiper-button", paginationWrapper: ".swiper-pagination", paginationBullet: ".swiper-pagination-bullet", paginationBulletWrapper: ".swiper-pagination-bullets", }, }; } getDefaultElements() { const e = this.getSettings("selectors"), t = { $swiperContainer: this.$element.find(e.carousel), $swiperWrapper: this.$element.find(e.swiperWrapper), $swiperArrows: this.$element.find(e.swiperArrow), $paginationWrapper: this.$element.find(e.paginationWrapper), $paginationBullets: this.$element.find(e.paginationBullet), $paginationBulletWrapper: this.$element.find( e.paginationBulletWrapper ), }; return (t.$slides = t.$swiperContainer.find(e.slideContent)), t; } getSwiperSettings() { const e = this.getElementSettings(), t = +e.slides_to_show || 3, r = 1 === t, n = elementorFrontend.config.responsive.activeBreakpoints, i = { mobile: 1, tablet: r ? 1 : 2 }, s = { slidesPerView: t, loop: "yes" === e.infinite, speed: e.speed, handleElementorBreakpoints: !0, breakpoints: {}, }; let o = t; Object.keys(n) .reverse() .forEach((t) => { const r = i[t] ? i[t] : o; (s.breakpoints[n[t].value] = { slidesPerView: +e["slides_to_show_" + t] || r, slidesPerGroup: +e["slides_to_scroll_" + t] || 1, }), e.image_spacing_custom && (s.breakpoints[n[t].value].spaceBetween = this.getSpaceBetween(t)), (o = +e["slides_to_show_" + t] || r); }), "yes" === e.autoplay && (s.autoplay = { delay: e.autoplay_speed, disableOnInteraction: "yes" === e.pause_on_interaction, }), r ? ((s.effect = e.effect), "fade" === e.effect && (s.fadeEffect = { crossFade: !0 })) : (s.slidesPerGroup = +e.slides_to_scroll || 1), e.image_spacing_custom && (s.spaceBetween = this.getSpaceBetween()); const a = "arrows" === e.navigation || "both" === e.navigation, c = "dots" === e.navigation || "both" === e.navigation || e.pagination; return ( a && (s.navigation = { prevEl: ".elementor-swiper-button-prev", nextEl: ".elementor-swiper-button-next", }), c && (s.pagination = { el: `.elementor-element-${this.getID()} .swiper-pagination`, type: e.pagination ? e.pagination : "bullets", clickable: !0, renderBullet: (e, t) => ``, }), "yes" === e.lazyload && (s.lazy = { loadPrevNext: !0, loadPrevNextAmount: 1 }), (s.a11y = { enabled: !0, prevSlideMessage: elementorFrontend.config.i18n.a11yCarouselPrevSlideMessage, nextSlideMessage: elementorFrontend.config.i18n.a11yCarouselNextSlideMessage, firstSlideMessage: elementorFrontend.config.i18n.a11yCarouselFirstSlideMessage, lastSlideMessage: elementorFrontend.config.i18n.a11yCarouselLastSlideMessage, }), (s.on = { slideChange: () => { this.a11ySetPaginationTabindex(), this.handleElementHandlers(), this.a11ySetSlideAriaHidden(); }, init: () => { this.a11ySetPaginationTabindex(), this.a11ySetSlideAriaHidden("initialisation"); }, }), this.applyOffsetSettings(e, s, t), s ); } getOffsetWidth() { const e = elementorFrontend.getCurrentDeviceMode(); return ( elementorFrontend.utils.controls.getResponsiveControlValue( this.getElementSettings(), "offset_width", "size", e ) || 0 ); } applyOffsetSettings(e, t, r) { const n = e.offset_sides; if ( !( elementorFrontend.isEditMode() && "NestedCarousel" === this.constructor.name ) && n && "none" !== n ) switch (n) { case "right": this.forceSliderToShowNextSlideWhenOnLast(t, r), this.addClassToSwiperContainer("offset-right"); break; case "left": this.addClassToSwiperContainer("offset-left"); break; case "both": this.forceSliderToShowNextSlideWhenOnLast(t, r), this.addClassToSwiperContainer("offset-both"); } } forceSliderToShowNextSlideWhenOnLast(e, t) { e.slidesPerView = t + 0.001; } addClassToSwiperContainer(e) { this.getDefaultElements().$swiperContainer[0].classList.add(e); } async onInit() { if ( (super.onInit(...arguments), !this.elements.$swiperContainer.length || 2 > this.elements.$slides.length) ) return; await this.initSwiper(); "yes" === this.getElementSettings().pause_on_hover && this.togglePauseOnHover(!0); } async initSwiper() { const e = elementorFrontend.utils.swiper; (this.swiper = await new e( this.elements.$swiperContainer, this.getSwiperSettings() )), this.elements.$swiperContainer.data("swiper", this.swiper); } bindEvents() { this.elements.$swiperArrows.on( "keydown", this.onDirectionArrowKeydown.bind(this) ), this.elements.$paginationWrapper.on( "keydown", ".swiper-pagination-bullet", this.onDirectionArrowKeydown.bind(this) ), this.elements.$swiperContainer.on( "keydown", ".swiper-slide", this.onDirectionArrowKeydown.bind(this) ), this.$element .find(":focusable") .on("focus", this.onFocusDisableAutoplay.bind(this)), elementorFrontend.elements.$window.on( "resize", this.getSwiperSettings.bind(this) ); } unbindEvents() { this.elements.$swiperArrows.off(), this.elements.$paginationWrapper.off(), this.elements.$swiperContainer.off(), this.$element.find(":focusable").off(), elementorFrontend.elements.$window.off("resize"); } onDirectionArrowKeydown(e) { const t = elementorFrontend.config.is_rtl, r = e.originalEvent.code, n = t ? "ArrowLeft" : "ArrowRight"; if (!(-1 !== ["ArrowLeft", "ArrowRight"].indexOf(r))) return !0; (t ? "ArrowRight" : "ArrowLeft") === r ? this.swiper.slidePrev() : n === r && this.swiper.slideNext(); } onFocusDisableAutoplay() { this.swiper.autoplay.stop(); } updateSwiperOption(e) { const t = this.getElementSettings()[e], r = this.swiper.params; switch (e) { case "autoplay_speed": r.autoplay.delay = t; break; case "speed": r.speed = t; } this.swiper.update(); } getChangeableProperties() { return { pause_on_hover: "pauseOnHover", autoplay_speed: "delay", speed: "speed", arrows_position: "arrows_position", }; } onElementChange(e) { if (0 === e.indexOf("image_spacing_custom")) return void this.updateSpaceBetween(e); if (this.getChangeableProperties()[e]) if ("pause_on_hover" === e) { const e = this.getElementSettings("pause_on_hover"); this.togglePauseOnHover("yes" === e); } else this.updateSwiperOption(e); } onEditSettingsChange(e) { "activeItemIndex" === e && this.swiper.slideToLoop( this.getEditSettings("activeItemIndex") - 1 ); } getSpaceBetween() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null; const t = elementorFrontend.utils.controls.getResponsiveControlValue( this.getElementSettings(), "image_spacing_custom", "size", e ); return Number(t) || 0; } updateSpaceBetween(e) { const t = e.match("image_spacing_custom_(.*)"), r = t ? t[1] : "desktop", n = this.getSpaceBetween(r); "desktop" !== r && (this.swiper.params.breakpoints[ elementorFrontend.config.responsive.activeBreakpoints[r].value ].spaceBetween = n), (this.swiper.params.spaceBetween = n), this.swiper.update(); } getPaginationBullets() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "array"; const t = this.$element.find( this.getSettings("selectors").paginationBullet ); return "array" === e ? Array.from(t) : t; } a11ySetPaginationTabindex() { const e = this.swiper?.params?.pagination.bulletClass, t = this.swiper?.params?.pagination.bulletActiveClass; this.getPaginationBullets().forEach((e) => { e.classList?.contains(t) || e.removeAttribute("tabindex"); }); const r = "ArrowLeft" === event?.code || "ArrowRight" === event?.code; event?.target?.classList?.contains(e) && r && this.$element.find(`.${t}`).trigger("focus"); } getSwiperWrapperTranformXValue() { let e = this.elements.$swiperWrapper[0]?.style.transform; return ( (e = e.replace("translate3d(", "")), (e = e.split(",")), (e = parseInt(e[0].replace("px", ""))), e || 0 ); } a11ySetSlideAriaHidden() { if ( "number" != typeof ("initialisation" === (arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "") ? 0 : this.swiper?.activeIndex) ) return; const e = this.getSwiperWrapperTranformXValue(), t = this.elements.$swiperWrapper[0].clientWidth; this.elements.$swiperContainer .find(this.getSettings("selectors").slideContent) .each((r, n) => { 0 <= n.offsetLeft + e && t > n.offsetLeft + e ? (n.removeAttribute("aria-hidden"), n.removeAttribute("inert")) : (n.setAttribute("aria-hidden", !0), n.setAttribute("inert", "")); }); } handleElementHandlers() {} } t.default = CarouselHandlerBase; }, 5633: (e, t, r) => { "use strict"; var n = r(6784); Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0); var i = n(r(7224)); class SwiperHandlerBase extends i.default { getInitialSlide() { const e = this.getEditSettings(); return e.activeItemIndex ? e.activeItemIndex - 1 : 0; } getSlidesCount() { return this.elements.$slides.length; } togglePauseOnHover(e) { e ? this.elements.$swiperContainer.on({ mouseenter: () => { this.swiper.autoplay.stop(); }, mouseleave: () => { this.swiper.autoplay.start(); }, }) : this.elements.$swiperContainer.off("mouseenter mouseleave"); } handleKenBurns() { const e = this.getSettings(); this.$activeImageBg && this.$activeImageBg.removeClass(e.classes.kenBurnsActive), (this.activeItemIndex = this.swiper ? this.swiper.activeIndex : this.getInitialSlide()), this.swiper ? (this.$activeImageBg = jQuery( this.swiper.slides[this.activeItemIndex] ).children("." + e.classes.slideBackground)) : (this.$activeImageBg = jQuery( this.elements.$slides[0] ).children("." + e.classes.slideBackground)), this.$activeImageBg.addClass(e.classes.kenBurnsActive); } } t.default = SwiperHandlerBase; }, 7224: (e, t, r) => { "use strict"; r(5724), r(4846), r(7458), r(6211), r(9655), (e.exports = elementorModules.ViewModule.extend({ $element: null, editorListeners: null, onElementChange: null, onEditSettingsChange: null, onPageSettingsChange: null, isEdit: null, __construct(e) { this.isActive(e) && ((this.$element = e.$element), (this.isEdit = this.$element.hasClass( "elementor-element-edit-mode" )), this.isEdit && this.addEditorListeners()); }, isActive: () => !0, isElementInTheCurrentDocument() { return ( !!elementorFrontend.isEditMode() && elementor.documents.currentDocument.id.toString() === this.$element[0].closest(".elementor").dataset.elementorId ); }, findElement(e) { var t = this.$element; return t.find(e).filter(function () { return jQuery(this).parent().closest(".elementor-element").is(t); }); }, getUniqueHandlerID(e, t) { return ( e || (e = this.getModelCID()), t || (t = this.$element), e + t.attr("data-element_type") + this.getConstructorID() ); }, initEditorListeners() { var e = this; if ( ((e.editorListeners = [ { event: "element:destroy", to: elementor.channels.data, callback(t) { t.cid === e.getModelCID() && e.onDestroy(); }, }, ]), e.onElementChange) ) { const t = e.getWidgetType() || e.getElementType(); let r = "change"; "global" !== t && (r += ":" + t), e.editorListeners.push({ event: r, to: elementor.channels.editor, callback(t, r) { e.getUniqueHandlerID(r.model.cid, r.$el) === e.getUniqueHandlerID() && e.onElementChange(t.model.get("name"), t, r); }, }); } e.onEditSettingsChange && e.editorListeners.push({ event: "change:editSettings", to: elementor.channels.editor, callback(t, r) { if (r.model.cid !== e.getModelCID()) return; const n = Object.keys(t.changed)[0]; e.onEditSettingsChange(n, t.changed[n]); }, }), ["page"].forEach(function (t) { var r = "on" + t[0].toUpperCase() + t.slice(1) + "SettingsChange"; e[r] && e.editorListeners.push({ event: "change", to: elementor.settings[t].model, callback(t) { e[r](t.changed); }, }); }); }, getEditorListeners() { return ( this.editorListeners || this.initEditorListeners(), this.editorListeners ); }, addEditorListeners() { var e = this.getUniqueHandlerID(); this.getEditorListeners().forEach(function (t) { elementorFrontend.addListenerOnce(e, t.event, t.callback, t.to); }); }, removeEditorListeners() { var e = this.getUniqueHandlerID(); this.getEditorListeners().forEach(function (t) { elementorFrontend.removeListeners(e, t.event, null, t.to); }); }, getElementType() { return this.$element.data("element_type"); }, getWidgetType() { const e = this.$element.data("widget_type"); if (e) return e.split(".")[0]; }, getID() { return this.$element.data("id"); }, getModelCID() { return this.$element.data("model-cid"); }, getElementSettings(e) { let t = {}; const r = this.getModelCID(); if (this.isEdit && r) { const e = elementorFrontend.config.elements.data[r], n = e.attributes; let i = n.widgetType || n.elType; n.isInner && (i = "inner-" + i); let s = elementorFrontend.config.elements.keys[i]; s || ((s = elementorFrontend.config.elements.keys[i] = []), jQuery.each(e.controls, (e, t) => { (t.frontend_available || t.editor_available) && s.push(e); })), jQuery.each(e.getActiveControls(), function (e) { if (-1 !== s.indexOf(e)) { let r = n[e]; r.toJSON && (r = r.toJSON()), (t[e] = r); } }); } else t = this.$element.data("settings") || {}; return this.getItems(t, e); }, getEditSettings(e) { var t = {}; return ( this.isEdit && (t = elementorFrontend.config.elements.editSettings[ this.getModelCID() ].attributes), this.getItems(t, e) ); }, getCurrentDeviceSetting(e) { return elementorFrontend.getCurrentDeviceSetting( this.getElementSettings(), e ); }, onInit() { this.isActive(this.getSettings()) && elementorModules.ViewModule.prototype.onInit.apply( this, arguments ); }, onDestroy() { this.isEdit && this.removeEditorListeners(), this.unbindEvents && this.unbindEvents(); }, })); }, 8140: (e, t, r) => { "use strict"; var n = r(6784); Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0), r(4846), r(6211); var i = n(r(7224)); class StretchedElement extends i.default { getStretchedClass() { return "e-stretched"; } getStretchSettingName() { return "stretch_element"; } getStretchActiveValue() { return "yes"; } bindEvents() { const e = this.getUniqueHandlerID(); elementorFrontend.addListenerOnce(e, "resize", this.stretch), elementorFrontend.addListenerOnce( e, "sticky:stick", this.stretch, this.$element ), elementorFrontend.addListenerOnce( e, "sticky:unstick", this.stretch, this.$element ), elementorFrontend.isEditMode() && ((this.onKitChangeStretchContainerChange = this.onKitChangeStretchContainerChange.bind(this)), elementor.channels.editor.on( "kit:change:stretchContainer", this.onKitChangeStretchContainerChange )); } unbindEvents() { elementorFrontend.removeListeners( this.getUniqueHandlerID(), "resize", this.stretch ), elementorFrontend.isEditMode() && elementor.channels.editor.off( "kit:change:stretchContainer", this.onKitChangeStretchContainerChange ); } isActive(e) { return ( elementorFrontend.isEditMode() || e.$element.hasClass(this.getStretchedClass()) ); } getStretchElementForConfig() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null; return e ? this.$element.find(e) : this.$element; } getStretchElementConfig() { return { element: this.getStretchElementForConfig(), selectors: { container: this.getStretchContainer() }, considerScrollbar: elementorFrontend.isEditMode() && elementorFrontend.config.is_rtl, }; } initStretch() { (this.stretch = this.stretch.bind(this)), (this.stretchElement = new elementorModules.frontend.tools.StretchElement( this.getStretchElementConfig() )); } getStretchContainer() { return ( elementorFrontend.getKitSettings("stretched_section_container") || window ); } isStretchSettingEnabled() { return ( this.getElementSettings(this.getStretchSettingName()) === this.getStretchActiveValue() ); } stretch() { this.isStretchSettingEnabled() && this.stretchElement.stretch(); } onInit() { this.isActive(this.getSettings()) && (this.initStretch(), super.onInit(...arguments), this.stretch()); } onElementChange(e) { this.getStretchSettingName() === e && (this.isStretchSettingEnabled() ? this.stretch() : this.stretchElement.reset()); } onKitChangeStretchContainerChange() { this.stretchElement.setSettings( "selectors.container", this.getStretchContainer() ), this.stretch(); } } t.default = StretchedElement; }, 4946: (e, t, r) => { "use strict"; var n = r(6784), i = n(r(1265)), s = n(r(2890)), o = n(r(7955)), a = n(r(8140)), c = n(r(7224)), l = n(r(5633)), u = n(r(9603)); i.default.frontend = { Document: s.default, tools: { StretchElement: o.default }, handlers: { Base: c.default, StretchedElement: a.default, SwiperBase: l.default, CarouselBase: u.default, }, }; }, 7955: (e) => { "use strict"; e.exports = elementorModules.ViewModule.extend({ getDefaultSettings: () => ({ element: null, direction: elementorFrontend.config.is_rtl ? "right" : "left", selectors: { container: window }, considerScrollbar: !1, cssOutput: "inline", }), getDefaultElements() { return { $element: jQuery(this.getSettings("element")) }; }, stretch() { const e = this.getSettings(); let t; try { t = jQuery(e.selectors.container); } catch (e) {} (t && t.length) || (t = jQuery(this.getDefaultSettings().selectors.container)), this.reset(); var r = this.elements.$element, n = t.innerWidth(), i = r.offset().left, s = "fixed" === r.css("position"), o = s ? 0 : i, a = window === t[0]; if (!a) { var c = t.offset().left; s && (o = c), i > c && (o = i - c); } if (e.considerScrollbar && a) { o -= window.innerWidth - n; } s || (elementorFrontend.config.is_rtl && (o = n - (r.outerWidth() + o)), (o = -o)), e.margin && (o += e.margin); var l = {}; let u = n; e.margin && (u -= 2 * e.margin), (l.width = u + "px"), (l[e.direction] = o + "px"), "variables" !== e.cssOutput ? r.css(l) : this.applyCssVariables(r, l); }, reset() { const e = {}, t = this.getSettings(), r = this.elements.$element; "variables" !== t.cssOutput ? ((e.width = ""), (e[t.direction] = ""), r.css(e)) : this.resetCssVariables(r); }, applyCssVariables(e, t) { e.css("--stretch-width", t.width), t.left ? e.css("--stretch-left", t.left) : e.css("--stretch-right", t.right); }, resetCssVariables(e) { e.css({ "--stretch-width": "", "--stretch-left": "", "--stretch-right": "", }); }, }); }, 2946: (e, t, r) => { "use strict"; var n = r(6784); Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0); var i = n(r(751)), s = n(r(5213)); class ArgsObject extends i.default { static getInstanceType() { return "ArgsObject"; } constructor(e) { super(), (this.args = e); } requireArgument(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : this.args; if (!Object.prototype.hasOwnProperty.call(t, e)) throw Error(`${e} is required.`); } requireArgumentType(e, t) { let r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : this.args; if ((this.requireArgument(e, r), typeof r[e] !== t)) throw Error(`${e} invalid type: ${t}.`); } requireArgumentInstance(e, t) { let r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : this.args; if ( (this.requireArgument(e, r), !(r[e] instanceof t || (0, s.default)(r[e], t))) ) throw Error(`${e} invalid instance.`); } requireArgumentConstructor(e, t) { let r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : this.args; if ( (this.requireArgument(e, r), r[e].constructor.toString() !== t.prototype.constructor.toString()) ) throw Error(`${e} invalid constructor type.`); } } t.default = ArgsObject; }, 8685: (e, t, r) => { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = t.ForceMethodImplementation = void 0), r(6281); class ForceMethodImplementation extends Error { constructor() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; super( `${e.isStatic ? "static " : ""}${ e.fullName }() should be implemented, please provide '${ e.functionName || e.fullName }' functionality.`, t ), Object.keys(t).length && console.error(t), Error.captureStackTrace(this, ForceMethodImplementation); } } t.ForceMethodImplementation = ForceMethodImplementation; t.default = (e) => { const t = Error().stack.split("\n")[2].trim(), r = t.startsWith("at new") ? "constructor" : t.split(" ")[1], n = {}; if ( ((n.functionName = r), (n.fullName = r), n.functionName.includes(".")) ) { const e = n.functionName.split("."); (n.className = e[0]), (n.functionName = e[1]); } else n.isStatic = !0; throw new ForceMethodImplementation(n, e); }; }, 751: (e, t, r) => { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0), r(5724), r(4846), r(9655); class InstanceType { static [Symbol.hasInstance](e) { let t = super[Symbol.hasInstance](e); if (e && !e.constructor.getInstanceType) return t; if ( e && (e.instanceTypes || (e.instanceTypes = []), t || (this.getInstanceType() === e.constructor.getInstanceType() && (t = !0)), t) ) { const t = this.getInstanceType === InstanceType.getInstanceType ? "BaseInstanceType" : this.getInstanceType(); -1 === e.instanceTypes.indexOf(t) && e.instanceTypes.push(t); } return ( !t && e && (t = e.instanceTypes && Array.isArray(e.instanceTypes) && -1 !== e.instanceTypes.indexOf(this.getInstanceType())), t ); } static getInstanceType() { elementorModules.ForceMethodImplementation(); } constructor() { let e = new.target; const t = []; for (; e.__proto__ && e.__proto__.name; ) t.push(e.__proto__), (e = e.__proto__); t.reverse().forEach((e) => this instanceof e); } } t.default = InstanceType; }, 641: (e, t, r) => { "use strict"; r(5724), r(4846), r(7458), r(9655); const Module = function () { const e = jQuery, t = arguments, r = this, n = {}; let i; (this.getItems = function (e, t) { if (t) { const r = t.split("."), n = r.splice(0, 1); if (!r.length) return e[n]; if (!e[n]) return; return this.getItems(e[n], r.join(".")); } return e; }), (this.getSettings = function (e) { return this.getItems(i, e); }), (this.setSettings = function (t, n, s) { if ((s || (s = i), "object" == typeof t)) return e.extend(s, t), r; const o = t.split("."), a = o.splice(0, 1); return o.length ? (s[a] || (s[a] = {}), r.setSettings(o.join("."), n, s[a])) : ((s[a] = n), r); }), (this.getErrorMessage = function (e, t) { let r; if ("forceMethodImplementation" === e) r = `The method '${t}' must to be implemented in the inheritor child.`; else r = "An error occurs"; return r; }), (this.forceMethodImplementation = function (e) { throw new Error( this.getErrorMessage("forceMethodImplementation", e) ); }), (this.on = function (t, i) { if ("object" == typeof t) return ( e.each(t, function (e) { r.on(e, this); }), r ); return ( t.split(" ").forEach(function (e) { n[e] || (n[e] = []), n[e].push(i); }), r ); }), (this.off = function (e, t) { if (!n[e]) return r; if (!t) return delete n[e], r; const i = n[e].indexOf(t); return ( -1 !== i && (delete n[e][i], (n[e] = n[e].filter((e) => e))), r ); }), (this.trigger = function (t) { const i = "on" + t[0].toUpperCase() + t.slice(1), s = Array.prototype.slice.call(arguments, 1); r[i] && r[i].apply(r, s); const o = n[t]; return o ? (e.each(o, function (e, t) { t.apply(r, s); }), r) : r; }), r.__construct.apply(r, t), e.each(r, function (e) { const t = r[e]; "function" == typeof t && (r[e] = function () { return t.apply(r, arguments); }); }), (function () { i = r.getDefaultSettings(); const n = t[0]; n && e.extend(!0, i, n); })(), r.trigger("init"); }; (Module.prototype.__construct = function () {}), (Module.prototype.getDefaultSettings = function () { return {}; }), (Module.prototype.getConstructorID = function () { return this.constructor.name; }), (Module.extend = function (e) { const t = jQuery, r = this, child = function () { return r.apply(this, arguments); }; return ( t.extend(child, r), ((child.prototype = Object.create( t.extend({}, r.prototype, e) )).constructor = child), (child.__super__ = r.prototype), child ); }), (e.exports = Module); }, 3980: (e, t, r) => { "use strict"; var n = r(6784); Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0), r(5724); var i = n(r(2425)); t.default = i.default.extend({ getDefaultSettings: () => ({ container: null, items: null, columnsCount: 3, verticalSpaceBetween: 30, }), getDefaultElements() { return { $container: jQuery(this.getSettings("container")), $items: jQuery(this.getSettings("items")), }; }, run() { var e = [], t = this.elements.$container.position().top, r = this.getSettings(), n = r.columnsCount; (t += parseInt(this.elements.$container.css("margin-top"), 10)), this.elements.$items.each(function (i) { var s = Math.floor(i / n), o = jQuery(this), a = o[0].getBoundingClientRect().height + r.verticalSpaceBetween; if (s) { var c = o.position(), l = i % n, u = c.top - t - e[l]; (u -= parseInt(o.css("margin-top"), 10)), (u *= -1), o.css("margin-top", u + "px"), (e[l] += a); } else e.push(a); }); }, }); }, 2970: (e, t, r) => { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0), r(5724); t.default = class Scroll { static scrollObserver(e) { let t = 0; const r = { root: e.root || null, rootMargin: e.offset || "0px", threshold: (function () { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0; const t = []; if (e > 0 && e <= 100) { const r = 100 / e; for (let e = 0; e <= 100; e += r) t.push(e / 100); } else t.push(0); return t; })(e.sensitivity), }; return new IntersectionObserver(function handleIntersect(r) { const n = r[0].boundingClientRect.y, i = r[0].isIntersecting, s = n < t ? "down" : "up", o = Math.abs( parseFloat((100 * r[0].intersectionRatio).toFixed(2)) ); e.callback({ sensitivity: e.sensitivity, isInViewport: i, scrollPercentage: o, intersectionScrollDirection: s, }), (t = n); }, r); } static getElementViewportPercentage(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; const r = e[0].getBoundingClientRect(), n = t.start || 0, i = t.end || 0, s = (window.innerHeight * n) / 100, o = (window.innerHeight * i) / 100, a = r.top - window.innerHeight, c = 0 - a + s, l = r.top + s + e.height() - a + o, u = Math.max(0, Math.min(c / l, 1)); return parseFloat((100 * u).toFixed(2)); } static getPageScrollPercentage() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0; const r = e.start || 0, n = e.end || 0, i = t || document.documentElement.scrollHeight - document.documentElement.clientHeight, s = (i * r) / 100, o = i + s + (i * n) / 100; return ( ((document.documentElement.scrollTop + document.body.scrollTop + s) / o) * 100 ); } }; }, 2425: (e, t, r) => { "use strict"; var n = r(6784); Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0); var i = n(r(641)); t.default = i.default.extend({ elements: null, getDefaultElements: () => ({}), bindEvents() {}, onInit() { this.initElements(), this.bindEvents(); }, initElements() { this.elements = this.getDefaultElements(); }, }); }, 1265: (e, t, r) => { "use strict"; var n = r(6784); Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0); var i = n(r(641)), s = n(r(2425)), o = n(r(2946)), a = n(r(3980)), c = n(r(2970)), l = n(r(8685)); t.default = window.elementorModules = { Module: i.default, ViewModule: s.default, ArgsObject: o.default, ForceMethodImplementation: l.default, utils: { Masonry: a.default, Scroll: c.default }, }; }, 6784: (e) => { (e.exports = function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }), (e.exports.__esModule = !0), (e.exports.default = e.exports); }, 8120: (e, t, r) => { "use strict"; var n = r(1483), i = r(8761), s = TypeError; e.exports = function (e) { if (n(e)) return e; throw new s(i(e) + " is not a function"); }; }, 7095: (e, t, r) => { "use strict"; var n = r(1), i = r(5290), s = r(5835).f, o = n("unscopables"), a = Array.prototype; void 0 === a[o] && s(a, o, { configurable: !0, value: i(null) }), (e.exports = function (e) { a[o][e] = !0; }); }, 6021: (e, t, r) => { "use strict"; var n = r(4815), i = TypeError; e.exports = function (e, t) { if (n(t, e)) return e; throw new i("Incorrect invocation"); }; }, 2293: (e, t, r) => { "use strict"; var n = r(1704), i = String, s = TypeError; e.exports = function (e) { if (n(e)) return e; throw new s(i(e) + " is not an object"); }; }, 6651: (e, t, r) => { "use strict"; var n = r(5599), i = r(3392), s = r(6960), createMethod = function (e) { return function (t, r, o) { var a = n(t), c = s(a); if (0 === c) return !e && -1; var l, u = i(o, c); if (e && r != r) { for (; c > u; ) if ((l = a[u++]) != l) return !0; } else for (; c > u; u++) if ((e || u in a) && a[u] === r) return e || u || 0; return !e && -1; }; }; e.exports = { includes: createMethod(!0), indexOf: createMethod(!1) }; }, 9273: (e, t, r) => { "use strict"; var n = r(382), i = r(4914), s = TypeError, o = Object.getOwnPropertyDescriptor, a = n && !(function () { if (void 0 !== this) return !0; try { Object.defineProperty([], "length", { writable: !1 }).length = 1; } catch (e) { return e instanceof TypeError; } })(); e.exports = a ? function (e, t) { if (i(e) && !o(e, "length").writable) throw new s("Cannot set read only .length"); return (e.length = t); } : function (e, t) { return (e.length = t); }; }, 8901: (e, t, r) => { "use strict"; var n = r(2293), i = r(6721); e.exports = function (e, t, r, s) { try { return s ? t(n(r)[0], r[1]) : t(r); } catch (t) { i(e, "throw", t); } }; }, 1278: (e, t, r) => { "use strict"; var n = r(4762), i = n({}.toString), s = n("".slice); e.exports = function (e) { return s(i(e), 8, -1); }; }, 6145: (e, t, r) => { "use strict"; var n = r(4338), i = r(1483), s = r(1278), o = r(1)("toStringTag"), a = Object, c = "Arguments" === s( (function () { return arguments; })() ); e.exports = n ? s : function (e) { var t, r, n; return void 0 === e ? "Undefined" : null === e ? "Null" : "string" == typeof (r = (function (e, t) { try { return e[t]; } catch (e) {} })((t = a(e)), o)) ? r : c ? s(t) : "Object" === (n = s(t)) && i(t.callee) ? "Arguments" : n; }; }, 6726: (e, t, r) => { "use strict"; var n = r(5755), i = r(9497), s = r(4961), o = r(5835); e.exports = function (e, t, r) { for (var a = i(t), c = o.f, l = s.f, u = 0; u < a.length; u++) { var d = a[u]; n(e, d) || (r && n(r, d)) || c(e, d, l(t, d)); } }; }, 9441: (e, t, r) => { "use strict"; var n = r(8473); e.exports = !n(function () { function F() {} return ( (F.prototype.constructor = null), Object.getPrototypeOf(new F()) !== F.prototype ); }); }, 5247: (e) => { "use strict"; e.exports = function (e, t) { return { value: e, done: t }; }; }, 9037: (e, t, r) => { "use strict"; var n = r(382), i = r(5835), s = r(7738); e.exports = n ? function (e, t, r) { return i.f(e, t, s(1, r)); } : function (e, t, r) { return (e[t] = r), e; }; }, 7738: (e) => { "use strict"; e.exports = function (e, t) { return { enumerable: !(1 & e), configurable: !(2 & e), writable: !(4 & e), value: t, }; }; }, 670: (e, t, r) => { "use strict"; var n = r(382), i = r(5835), s = r(7738); e.exports = function (e, t, r) { n ? i.f(e, t, s(0, r)) : (e[t] = r); }; }, 3864: (e, t, r) => { "use strict"; var n = r(169), i = r(5835); e.exports = function (e, t, r) { return ( r.get && n(r.get, t, { getter: !0 }), r.set && n(r.set, t, { setter: !0 }), i.f(e, t, r) ); }; }, 7914: (e, t, r) => { "use strict"; var n = r(1483), i = r(5835), s = r(169), o = r(2095); e.exports = function (e, t, r, a) { a || (a = {}); var c = a.enumerable, l = void 0 !== a.name ? a.name : t; if ((n(r) && s(r, l, a), a.global)) c ? (e[t] = r) : o(t, r); else { try { a.unsafe ? e[t] && (c = !0) : delete e[t]; } catch (e) {} c ? (e[t] = r) : i.f(e, t, { value: r, enumerable: !1, configurable: !a.nonConfigurable, writable: !a.nonWritable, }); } return e; }; }, 2313: (e, t, r) => { "use strict"; var n = r(7914); e.exports = function (e, t, r) { for (var i in t) n(e, i, t[i], r); return e; }; }, 2095: (e, t, r) => { "use strict"; var n = r(5578), i = Object.defineProperty; e.exports = function (e, t) { try { i(n, e, { value: t, configurable: !0, writable: !0 }); } catch (r) { n[e] = t; } return t; }; }, 382: (e, t, r) => { "use strict"; var n = r(8473); e.exports = !n(function () { return ( 7 !== Object.defineProperty({}, 1, { get: function () { return 7; }, })[1] ); }); }, 3145: (e, t, r) => { "use strict"; var n = r(5578), i = r(1704), s = n.document, o = i(s) && i(s.createElement); e.exports = function (e) { return o ? s.createElement(e) : {}; }; }, 1091: (e) => { "use strict"; var t = TypeError; e.exports = function (e) { if (e > 9007199254740991) throw t("Maximum allowed index exceeded"); return e; }; }, 4741: (e) => { "use strict"; e.exports = [ "constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf", ]; }, 9461: (e, t, r) => { "use strict"; var n = r(5578).navigator, i = n && n.userAgent; e.exports = i ? String(i) : ""; }, 6477: (e, t, r) => { "use strict"; var n, i, s = r(5578), o = r(9461), a = s.process, c = s.Deno, l = (a && a.versions) || (c && c.version), u = l && l.v8; u && (i = (n = u.split("."))[0] > 0 && n[0] < 4 ? 1 : +(n[0] + n[1])), !i && o && (!(n = o.match(/Edge\/(\d+)/)) || n[1] >= 74) && (n = o.match(/Chrome\/(\d+)/)) && (i = +n[1]), (e.exports = i); }, 8612: (e, t, r) => { "use strict"; var n = r(5578), i = r(4961).f, s = r(9037), o = r(7914), a = r(2095), c = r(6726), l = r(8730); e.exports = function (e, t) { var r, u, d, p, h, f = e.target, g = e.global, m = e.stat; if ((r = g ? n : m ? n[f] || a(f, {}) : n[f] && n[f].prototype)) for (u in t) { if ( ((p = t[u]), (d = e.dontCallGetSet ? (h = i(r, u)) && h.value : r[u]), !l(g ? u : f + (m ? "." : "#") + u, e.forced) && void 0 !== d) ) { if (typeof p == typeof d) continue; c(p, d); } (e.sham || (d && d.sham)) && s(p, "sham", !0), o(r, u, p, e); } }; }, 8473: (e) => { "use strict"; e.exports = function (e) { try { return !!e(); } catch (e) { return !0; } }; }, 2914: (e, t, r) => { "use strict"; var n = r(3786), i = r(8120), s = r(274), o = n(n.bind); e.exports = function (e, t) { return ( i(e), void 0 === t ? e : s ? o(e, t) : function () { return e.apply(t, arguments); } ); }; }, 274: (e, t, r) => { "use strict"; var n = r(8473); e.exports = !n(function () { var e = function () {}.bind(); return "function" != typeof e || e.hasOwnProperty("prototype"); }); }, 1807: (e, t, r) => { "use strict"; var n = r(274), i = Function.prototype.call; e.exports = n ? i.bind(i) : function () { return i.apply(i, arguments); }; }, 2048: (e, t, r) => { "use strict"; var n = r(382), i = r(5755), s = Function.prototype, o = n && Object.getOwnPropertyDescriptor, a = i(s, "name"), c = a && "something" === function something() {}.name, l = a && (!n || (n && o(s, "name").configurable)); e.exports = { EXISTS: a, PROPER: c, CONFIGURABLE: l }; }, 3786: (e, t, r) => { "use strict"; var n = r(1278), i = r(4762); e.exports = function (e) { if ("Function" === n(e)) return i(e); }; }, 4762: (e, t, r) => { "use strict"; var n = r(274), i = Function.prototype, s = i.call, o = n && i.bind.bind(s, s); e.exports = n ? o : function (e) { return function () { return s.apply(e, arguments); }; }; }, 1409: (e, t, r) => { "use strict"; var n = r(5578), i = r(1483); e.exports = function (e, t) { return arguments.length < 2 ? ((r = n[e]), i(r) ? r : void 0) : n[e] && n[e][t]; var r; }; }, 41: (e) => { "use strict"; e.exports = function (e) { return { iterator: e, next: e.next, done: !1 }; }; }, 6665: (e, t, r) => { "use strict"; var n = r(6145), i = r(2564), s = r(5983), o = r(6775), a = r(1)("iterator"); e.exports = function (e) { if (!s(e)) return i(e, a) || i(e, "@@iterator") || o[n(e)]; }; }, 4887: (e, t, r) => { "use strict"; var n = r(1807), i = r(8120), s = r(2293), o = r(8761), a = r(6665), c = TypeError; e.exports = function (e, t) { var r = arguments.length < 2 ? a(e) : t; if (i(r)) return s(n(r, e)); throw new c(o(e) + " is not iterable"); }; }, 2564: (e, t, r) => { "use strict"; var n = r(8120), i = r(5983); e.exports = function (e, t) { var r = e[t]; return i(r) ? void 0 : n(r); }; }, 5578: function (e, t, r) { "use strict"; var check = function (e) { return e && e.Math === Math && e; }; e.exports = check("object" == typeof globalThis && globalThis) || check("object" == typeof window && window) || check("object" == typeof self && self) || check("object" == typeof r.g && r.g) || check("object" == typeof this && this) || (function () { return this; })() || Function("return this")(); }, 5755: (e, t, r) => { "use strict"; var n = r(4762), i = r(2347), s = n({}.hasOwnProperty); e.exports = Object.hasOwn || function hasOwn(e, t) { return s(i(e), t); }; }, 1507: (e) => { "use strict"; e.exports = {}; }, 2811: (e, t, r) => { "use strict"; var n = r(1409); e.exports = n("document", "documentElement"); }, 1799: (e, t, r) => { "use strict"; var n = r(382), i = r(8473), s = r(3145); e.exports = !n && !i(function () { return ( 7 !== Object.defineProperty(s("div"), "a", { get: function () { return 7; }, }).a ); }); }, 2121: (e, t, r) => { "use strict"; var n = r(4762), i = r(8473), s = r(1278), o = Object, a = n("".split); e.exports = i(function () { return !o("z").propertyIsEnumerable(0); }) ? function (e) { return "String" === s(e) ? a(e, "") : o(e); } : o; }, 7268: (e, t, r) => { "use strict"; var n = r(4762), i = r(1483), s = r(1831), o = n(Function.toString); i(s.inspectSource) || (s.inspectSource = function (e) { return o(e); }), (e.exports = s.inspectSource); }, 4483: (e, t, r) => { "use strict"; var n, i, s, o = r(4644), a = r(5578), c = r(1704), l = r(9037), u = r(5755), d = r(1831), p = r(5409), h = r(1507), f = "Object already initialized", g = a.TypeError, m = a.WeakMap; if (o || d.state) { var v = d.state || (d.state = new m()); (v.get = v.get), (v.has = v.has), (v.set = v.set), (n = function (e, t) { if (v.has(e)) throw new g(f); return (t.facade = e), v.set(e, t), t; }), (i = function (e) { return v.get(e) || {}; }), (s = function (e) { return v.has(e); }); } else { var y = p("state"); (h[y] = !0), (n = function (e, t) { if (u(e, y)) throw new g(f); return (t.facade = e), l(e, y, t), t; }), (i = function (e) { return u(e, y) ? e[y] : {}; }), (s = function (e) { return u(e, y); }); } e.exports = { set: n, get: i, has: s, enforce: function (e) { return s(e) ? i(e) : n(e, {}); }, getterFor: function (e) { return function (t) { var r; if (!c(t) || (r = i(t)).type !== e) throw new g("Incompatible receiver, " + e + " required"); return r; }; }, }; }, 5299: (e, t, r) => { "use strict"; var n = r(1), i = r(6775), s = n("iterator"), o = Array.prototype; e.exports = function (e) { return void 0 !== e && (i.Array === e || o[s] === e); }; }, 4914: (e, t, r) => { "use strict"; var n = r(1278); e.exports = Array.isArray || function isArray(e) { return "Array" === n(e); }; }, 1483: (e) => { "use strict"; var t = "object" == typeof document && document.all; e.exports = void 0 === t && void 0 !== t ? function (e) { return "function" == typeof e || e === t; } : function (e) { return "function" == typeof e; }; }, 8730: (e, t, r) => { "use strict"; var n = r(8473), i = r(1483), s = /#|\.prototype\./, isForced = function (e, t) { var r = a[o(e)]; return r === l || (r !== c && (i(t) ? n(t) : !!t)); }, o = (isForced.normalize = function (e) { return String(e).replace(s, ".").toLowerCase(); }), a = (isForced.data = {}), c = (isForced.NATIVE = "N"), l = (isForced.POLYFILL = "P"); e.exports = isForced; }, 5983: (e) => { "use strict"; e.exports = function (e) { return null == e; }; }, 1704: (e, t, r) => { "use strict"; var n = r(1483); e.exports = function (e) { return "object" == typeof e ? null !== e : n(e); }; }, 9557: (e) => { "use strict"; e.exports = !1; }, 1423: (e, t, r) => { "use strict"; var n = r(1409), i = r(1483), s = r(4815), o = r(5022), a = Object; e.exports = o ? function (e) { return "symbol" == typeof e; } : function (e) { var t = n("Symbol"); return i(t) && s(t.prototype, a(e)); }; }, 1506: (e, t, r) => { "use strict"; var n = r(2914), i = r(1807), s = r(2293), o = r(8761), a = r(5299), c = r(6960), l = r(4815), u = r(4887), d = r(6665), p = r(6721), h = TypeError, Result = function (e, t) { (this.stopped = e), (this.result = t); }, f = Result.prototype; e.exports = function (e, t, r) { var g, m, v, y, w, b, S, x = r && r.that, E = !(!r || !r.AS_ENTRIES), I = !(!r || !r.IS_RECORD), C = !(!r || !r.IS_ITERATOR), _ = !(!r || !r.INTERRUPTED), O = n(t, x), stop = function (e) { return g && p(g, "normal", e), new Result(!0, e); }, callFn = function (e) { return E ? (s(e), _ ? O(e[0], e[1], stop) : O(e[0], e[1])) : _ ? O(e, stop) : O(e); }; if (I) g = e.iterator; else if (C) g = e; else { if (!(m = d(e))) throw new h(o(e) + " is not iterable"); if (a(m)) { for (v = 0, y = c(e); y > v; v++) if ((w = callFn(e[v])) && l(f, w)) return w; return new Result(!1); } g = u(e, m); } for (b = I ? e.next : g.next; !(S = i(b, g)).done; ) { try { w = callFn(S.value); } catch (e) { p(g, "throw", e); } if ("object" == typeof w && w && l(f, w)) return w; } return new Result(!1); }; }, 6721: (e, t, r) => { "use strict"; var n = r(1807), i = r(2293), s = r(2564); e.exports = function (e, t, r) { var o, a; i(e); try { if (!(o = s(e, "return"))) { if ("throw" === t) throw r; return r; } o = n(o, e); } catch (e) { (a = !0), (o = e); } if ("throw" === t) throw r; if (a) throw o; return i(o), r; }; }, 8660: (e, t, r) => { "use strict"; var n = r(1807), i = r(5290), s = r(9037), o = r(2313), a = r(1), c = r(4483), l = r(2564), u = r(1851).IteratorPrototype, d = r(5247), p = r(6721), h = a("toStringTag"), f = "IteratorHelper", g = "WrapForValidIterator", m = c.set, createIteratorProxyPrototype = function (e) { var t = c.getterFor(e ? g : f); return o(i(u), { next: function next() { var r = t(this); if (e) return r.nextHandler(); try { var n = r.done ? void 0 : r.nextHandler(); return d(n, r.done); } catch (e) { throw ((r.done = !0), e); } }, return: function () { var r = t(this), i = r.iterator; if (((r.done = !0), e)) { var s = l(i, "return"); return s ? n(s, i) : d(void 0, !0); } if (r.inner) try { p(r.inner.iterator, "normal"); } catch (e) { return p(i, "throw", e); } return i && p(i, "normal"), d(void 0, !0); }, }); }, v = createIteratorProxyPrototype(!0), y = createIteratorProxyPrototype(!1); s(y, h, "Iterator Helper"), (e.exports = function (e, t) { var r = function Iterator(r, n) { n ? ((n.iterator = r.iterator), (n.next = r.next)) : (n = r), (n.type = t ? g : f), (n.nextHandler = e), (n.counter = 0), (n.done = !1), m(this, n); }; return (r.prototype = t ? v : y), r; }); }, 1851: (e, t, r) => { "use strict"; var n, i, s, o = r(8473), a = r(1483), c = r(1704), l = r(5290), u = r(3181), d = r(7914), p = r(1), h = r(9557), f = p("iterator"), g = !1; [].keys && ("next" in (s = [].keys()) ? (i = u(u(s))) !== Object.prototype && (n = i) : (g = !0)), !c(n) || o(function () { var e = {}; return n[f].call(e) !== e; }) ? (n = {}) : h && (n = l(n)), a(n[f]) || d(n, f, function () { return this; }), (e.exports = { IteratorPrototype: n, BUGGY_SAFARI_ITERATORS: g }); }, 6775: (e) => { "use strict"; e.exports = {}; }, 6960: (e, t, r) => { "use strict"; var n = r(8324); e.exports = function (e) { return n(e.length); }; }, 169: (e, t, r) => { "use strict"; var n = r(4762), i = r(8473), s = r(1483), o = r(5755), a = r(382), c = r(2048).CONFIGURABLE, l = r(7268), u = r(4483), d = u.enforce, p = u.get, h = String, f = Object.defineProperty, g = n("".slice), m = n("".replace), v = n([].join), y = a && !i(function () { return 8 !== f(function () {}, "length", { value: 8 }).length; }), w = String(String).split("String"), b = (e.exports = function (e, t, r) { "Symbol(" === g(h(t), 0, 7) && (t = "[" + m(h(t), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), r && r.getter && (t = "get " + t), r && r.setter && (t = "set " + t), (!o(e, "name") || (c && e.name !== t)) && (a ? f(e, "name", { value: t, configurable: !0 }) : (e.name = t)), y && r && o(r, "arity") && e.length !== r.arity && f(e, "length", { value: r.arity }); try { r && o(r, "constructor") && r.constructor ? a && f(e, "prototype", { writable: !1 }) : e.prototype && (e.prototype = void 0); } catch (e) {} var n = d(e); return ( o(n, "source") || (n.source = v(w, "string" == typeof t ? t : "")), e ); }); Function.prototype.toString = b(function toString() { return (s(this) && p(this).source) || l(this); }, "toString"); }, 1703: (e) => { "use strict"; var t = Math.ceil, r = Math.floor; e.exports = Math.trunc || function trunc(e) { var n = +e; return (n > 0 ? r : t)(n); }; }, 5290: (e, t, r) => { "use strict"; var n, i = r(2293), s = r(5799), o = r(4741), a = r(1507), c = r(2811), l = r(3145), u = r(5409), d = "prototype", p = "script", h = u("IE_PROTO"), EmptyConstructor = function () {}, scriptTag = function (e) { return "<" + p + ">" + e + ""; }, NullProtoObjectViaActiveX = function (e) { e.write(scriptTag("")), e.close(); var t = e.parentWindow.Object; return (e = null), t; }, NullProtoObject = function () { try { n = new ActiveXObject("htmlfile"); } catch (e) {} var e, t, r; NullProtoObject = "undefined" != typeof document ? document.domain && n ? NullProtoObjectViaActiveX(n) : ((t = l("iframe")), (r = "java" + p + ":"), (t.style.display = "none"), c.appendChild(t), (t.src = String(r)), (e = t.contentWindow.document).open(), e.write(scriptTag("document.F=Object")), e.close(), e.F) : NullProtoObjectViaActiveX(n); for (var i = o.length; i--; ) delete NullProtoObject[d][o[i]]; return NullProtoObject(); }; (a[h] = !0), (e.exports = Object.create || function create(e, t) { var r; return ( null !== e ? ((EmptyConstructor[d] = i(e)), (r = new EmptyConstructor()), (EmptyConstructor[d] = null), (r[h] = e)) : (r = NullProtoObject()), void 0 === t ? r : s.f(r, t) ); }); }, 5799: (e, t, r) => { "use strict"; var n = r(382), i = r(3896), s = r(5835), o = r(2293), a = r(5599), c = r(3658); t.f = n && !i ? Object.defineProperties : function defineProperties(e, t) { o(e); for (var r, n = a(t), i = c(t), l = i.length, u = 0; l > u; ) s.f(e, (r = i[u++]), n[r]); return e; }; }, 5835: (e, t, r) => { "use strict"; var n = r(382), i = r(1799), s = r(3896), o = r(2293), a = r(3815), c = TypeError, l = Object.defineProperty, u = Object.getOwnPropertyDescriptor, d = "enumerable", p = "configurable", h = "writable"; t.f = n ? s ? function defineProperty(e, t, r) { if ( (o(e), (t = a(t)), o(r), "function" == typeof e && "prototype" === t && "value" in r && h in r && !r[h]) ) { var n = u(e, t); n && n[h] && ((e[t] = r.value), (r = { configurable: p in r ? r[p] : n[p], enumerable: d in r ? r[d] : n[d], writable: !1, })); } return l(e, t, r); } : l : function defineProperty(e, t, r) { if ((o(e), (t = a(t)), o(r), i)) try { return l(e, t, r); } catch (e) {} if ("get" in r || "set" in r) throw new c("Accessors not supported"); return "value" in r && (e[t] = r.value), e; }; }, 4961: (e, t, r) => { "use strict"; var n = r(382), i = r(1807), s = r(7611), o = r(7738), a = r(5599), c = r(3815), l = r(5755), u = r(1799), d = Object.getOwnPropertyDescriptor; t.f = n ? d : function getOwnPropertyDescriptor(e, t) { if (((e = a(e)), (t = c(t)), u)) try { return d(e, t); } catch (e) {} if (l(e, t)) return o(!i(s.f, e, t), e[t]); }; }, 2278: (e, t, r) => { "use strict"; var n = r(6742), i = r(4741).concat("length", "prototype"); t.f = Object.getOwnPropertyNames || function getOwnPropertyNames(e) { return n(e, i); }; }, 4347: (e, t) => { "use strict"; t.f = Object.getOwnPropertySymbols; }, 3181: (e, t, r) => { "use strict"; var n = r(5755), i = r(1483), s = r(2347), o = r(5409), a = r(9441), c = o("IE_PROTO"), l = Object, u = l.prototype; e.exports = a ? l.getPrototypeOf : function (e) { var t = s(e); if (n(t, c)) return t[c]; var r = t.constructor; return i(r) && t instanceof r ? r.prototype : t instanceof l ? u : null; }; }, 4815: (e, t, r) => { "use strict"; var n = r(4762); e.exports = n({}.isPrototypeOf); }, 6742: (e, t, r) => { "use strict"; var n = r(4762), i = r(5755), s = r(5599), o = r(6651).indexOf, a = r(1507), c = n([].push); e.exports = function (e, t) { var r, n = s(e), l = 0, u = []; for (r in n) !i(a, r) && i(n, r) && c(u, r); for (; t.length > l; ) i(n, (r = t[l++])) && (~o(u, r) || c(u, r)); return u; }; }, 3658: (e, t, r) => { "use strict"; var n = r(6742), i = r(4741); e.exports = Object.keys || function keys(e) { return n(e, i); }; }, 7611: (e, t) => { "use strict"; var r = {}.propertyIsEnumerable, n = Object.getOwnPropertyDescriptor, i = n && !r.call({ 1: 2 }, 1); t.f = i ? function propertyIsEnumerable(e) { var t = n(this, e); return !!t && t.enumerable; } : r; }, 348: (e, t, r) => { "use strict"; var n = r(1807), i = r(1483), s = r(1704), o = TypeError; e.exports = function (e, t) { var r, a; if ("string" === t && i((r = e.toString)) && !s((a = n(r, e)))) return a; if (i((r = e.valueOf)) && !s((a = n(r, e)))) return a; if ("string" !== t && i((r = e.toString)) && !s((a = n(r, e)))) return a; throw new o("Can't convert object to primitive value"); }; }, 9497: (e, t, r) => { "use strict"; var n = r(1409), i = r(4762), s = r(2278), o = r(4347), a = r(2293), c = i([].concat); e.exports = n("Reflect", "ownKeys") || function ownKeys(e) { var t = s.f(a(e)), r = o.f; return r ? c(t, r(e)) : t; }; }, 3312: (e, t, r) => { "use strict"; var n = r(5983), i = TypeError; e.exports = function (e) { if (n(e)) throw new i("Can't call method on " + e); return e; }; }, 5409: (e, t, r) => { "use strict"; var n = r(7255), i = r(1866), s = n("keys"); e.exports = function (e) { return s[e] || (s[e] = i(e)); }; }, 1831: (e, t, r) => { "use strict"; var n = r(9557), i = r(5578), s = r(2095), o = "__core-js_shared__", a = (e.exports = i[o] || s(o, {})); (a.versions || (a.versions = [])).push({ version: "3.39.0", mode: n ? "pure" : "global", copyright: "© 2014-2024 Denis Pushkarev (zloirock.ru)", license: "https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE", source: "https://github.com/zloirock/core-js", }); }, 7255: (e, t, r) => { "use strict"; var n = r(1831); e.exports = function (e, t) { return n[e] || (n[e] = t || {}); }; }, 6029: (e, t, r) => { "use strict"; var n = r(6477), i = r(8473), s = r(5578).String; e.exports = !!Object.getOwnPropertySymbols && !i(function () { var e = Symbol("symbol detection"); return ( !s(e) || !(Object(e) instanceof Symbol) || (!Symbol.sham && n && n < 41) ); }); }, 3392: (e, t, r) => { "use strict"; var n = r(3005), i = Math.max, s = Math.min; e.exports = function (e, t) { var r = n(e); return r < 0 ? i(r + t, 0) : s(r, t); }; }, 5599: (e, t, r) => { "use strict"; var n = r(2121), i = r(3312); e.exports = function (e) { return n(i(e)); }; }, 3005: (e, t, r) => { "use strict"; var n = r(1703); e.exports = function (e) { var t = +e; return t != t || 0 === t ? 0 : n(t); }; }, 8324: (e, t, r) => { "use strict"; var n = r(3005), i = Math.min; e.exports = function (e) { var t = n(e); return t > 0 ? i(t, 9007199254740991) : 0; }; }, 2347: (e, t, r) => { "use strict"; var n = r(3312), i = Object; e.exports = function (e) { return i(n(e)); }; }, 2355: (e, t, r) => { "use strict"; var n = r(1807), i = r(1704), s = r(1423), o = r(2564), a = r(348), c = r(1), l = TypeError, u = c("toPrimitive"); e.exports = function (e, t) { if (!i(e) || s(e)) return e; var r, c = o(e, u); if (c) { if ( (void 0 === t && (t = "default"), (r = n(c, e, t)), !i(r) || s(r)) ) return r; throw new l("Can't convert object to primitive value"); } return void 0 === t && (t = "number"), a(e, t); }; }, 3815: (e, t, r) => { "use strict"; var n = r(2355), i = r(1423); e.exports = function (e) { var t = n(e, "string"); return i(t) ? t : t + ""; }; }, 4338: (e, t, r) => { "use strict"; var n = {}; (n[r(1)("toStringTag")] = "z"), (e.exports = "[object z]" === String(n)); }, 8761: (e) => { "use strict"; var t = String; e.exports = function (e) { try { return t(e); } catch (e) { return "Object"; } }; }, 1866: (e, t, r) => { "use strict"; var n = r(4762), i = 0, s = Math.random(), o = n((1).toString); e.exports = function (e) { return "Symbol(" + (void 0 === e ? "" : e) + ")_" + o(++i + s, 36); }; }, 5022: (e, t, r) => { "use strict"; var n = r(6029); e.exports = n && !Symbol.sham && "symbol" == typeof Symbol.iterator; }, 3896: (e, t, r) => { "use strict"; var n = r(382), i = r(8473); e.exports = n && i(function () { return ( 42 !== Object.defineProperty(function () {}, "prototype", { value: 42, writable: !1, }).prototype ); }); }, 4644: (e, t, r) => { "use strict"; var n = r(5578), i = r(1483), s = n.WeakMap; e.exports = i(s) && /native code/.test(String(s)); }, 1: (e, t, r) => { "use strict"; var n = r(5578), i = r(7255), s = r(5755), o = r(1866), a = r(6029), c = r(5022), l = n.Symbol, u = i("wks"), d = c ? l.for || l : (l && l.withoutSetter) || o; e.exports = function (e) { return s(u, e) || (u[e] = a && s(l, e) ? l[e] : d("Symbol." + e)), u[e]; }; }, 6281: (e, t, r) => { "use strict"; var n = r(8612), i = r(6651).includes, s = r(8473), o = r(7095); n( { target: "Array", proto: !0, forced: s(function () { return !Array(1).includes(); }), }, { includes: function includes(e) { return i(this, e, arguments.length > 1 ? arguments[1] : void 0); }, } ), o("includes"); }, 5724: (e, t, r) => { "use strict"; var n = r(8612), i = r(2347), s = r(6960), o = r(9273), a = r(1091); n( { target: "Array", proto: !0, arity: 1, forced: r(8473)(function () { return 4294967297 !== [].push.call({ length: 4294967296 }, 1); }) || !(function () { try { Object.defineProperty([], "length", { writable: !1 }).push(); } catch (e) { return e instanceof TypeError; } })(), }, { push: function push(e) { var t = i(this), r = s(t), n = arguments.length; a(r + n); for (var c = 0; c < n; c++) (t[r] = arguments[c]), r++; return o(t, r), r; }, } ); }, 3617: (e, t, r) => { "use strict"; var n = r(8612), i = r(5578), s = r(6021), o = r(2293), a = r(1483), c = r(3181), l = r(3864), u = r(670), d = r(8473), p = r(5755), h = r(1), f = r(1851).IteratorPrototype, g = r(382), m = r(9557), v = "constructor", y = "Iterator", w = h("toStringTag"), b = TypeError, S = i[y], x = m || !a(S) || S.prototype !== f || !d(function () { S({}); }), E = function Iterator() { if ((s(this, f), c(this) === f)) throw new b("Abstract class Iterator not directly constructable"); }, defineIteratorPrototypeAccessor = function (e, t) { g ? l(f, e, { configurable: !0, get: function () { return t; }, set: function (t) { if ((o(this), this === f)) throw new b("You can't redefine this property"); p(this, e) ? (this[e] = t) : u(this, e, t); }, }) : (f[e] = t); }; p(f, w) || defineIteratorPrototypeAccessor(w, y), (!x && p(f, v) && f[v] !== Object) || defineIteratorPrototypeAccessor(v, E), (E.prototype = f), n({ global: !0, constructor: !0, forced: x }, { Iterator: E }); }, 1975: (e, t, r) => { "use strict"; var n = r(8612), i = r(1807), s = r(8120), o = r(2293), a = r(41), c = r(8660), l = r(8901), u = r(9557), d = c(function () { for ( var e, t, r = this.iterator, n = this.predicate, s = this.next; ; ) { if (((e = o(i(s, r))), (this.done = !!e.done))) return; if (((t = e.value), l(r, n, [t, this.counter++], !0))) return t; } }); n( { target: "Iterator", proto: !0, real: !0, forced: u }, { filter: function filter(e) { return o(this), s(e), new d(a(this), { predicate: e }); }, } ); }, 3242: (e, t, r) => { "use strict"; var n = r(8612), i = r(1506), s = r(8120), o = r(2293), a = r(41); n( { target: "Iterator", proto: !0, real: !0 }, { find: function find(e) { o(this), s(e); var t = a(this), r = 0; return i( t, function (t, n) { if (e(t, r++)) return n(t); }, { IS_RECORD: !0, INTERRUPTED: !0 } ).result; }, } ); }, 9930: (e, t, r) => { "use strict"; var n = r(8612), i = r(1506), s = r(8120), o = r(2293), a = r(41); n( { target: "Iterator", proto: !0, real: !0 }, { forEach: function forEach(e) { o(this), s(e); var t = a(this), r = 0; i( t, function (t) { e(t, r++); }, { IS_RECORD: !0 } ); }, } ); }, 4846: (e, t, r) => { "use strict"; r(3617); }, 7458: (e, t, r) => { "use strict"; r(1975); }, 6211: (e, t, r) => { "use strict"; r(3242); }, 9655: (e, t, r) => { "use strict"; r(9930); }, }, (e) => { var t; (t = 4946), e((e.s = t)); }, ]); /*! jQuery UI - v1.13.3 - 2024-04-26 * https://jqueryui.com * Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ !(function (t) { "use strict"; "function" == typeof define && define.amd ? define(["jquery"], t) : t(jQuery); })(function (x) { "use strict"; var t, e, i, n, W, C, o, s, r, l, a, h, u; function E(t, e, i) { return [ parseFloat(t[0]) * (a.test(t[0]) ? e / 100 : 1), parseFloat(t[1]) * (a.test(t[1]) ? i / 100 : 1), ]; } function L(t, e) { return parseInt(x.css(t, e), 10) || 0; } function N(t) { return null != t && t === t.window; } (x.ui = x.ui || {}), (x.ui.version = "1.13.3"), /*! * jQuery UI :data 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ x.extend(x.expr.pseudos, { data: x.expr.createPseudo ? x.expr.createPseudo(function (e) { return function (t) { return !!x.data(t, e); }; }) : function (t, e, i) { return !!x.data(t, i[3]); }, }), /*! * jQuery UI Disable Selection 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ x.fn.extend({ disableSelection: ((t = "onselectstart" in document.createElement("div") ? "selectstart" : "mousedown"), function () { return this.on(t + ".ui-disableSelection", function (t) { t.preventDefault(); }); }), enableSelection: function () { return this.off(".ui-disableSelection"); }, }), /*! * jQuery UI Focusable 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ (x.ui.focusable = function (t, e) { var i, n, o, s = t.nodeName.toLowerCase(); return "area" === s ? ((o = (i = t.parentNode).name), !(!t.href || !o || "map" !== i.nodeName.toLowerCase()) && 0 < (i = x("img[usemap='#" + o + "']")).length && i.is(":visible")) : (/^(input|select|textarea|button|object)$/.test(s) ? (n = !t.disabled) && (o = x(t).closest("fieldset")[0]) && (n = !o.disabled) : (n = ("a" === s && t.href) || e), n && x(t).is(":visible") && (function (t) { var e = t.css("visibility"); for (; "inherit" === e; ) (t = t.parent()), (e = t.css("visibility")); return "visible" === e; })(x(t))); }), x.extend(x.expr.pseudos, { focusable: function (t) { return x.ui.focusable(t, null != x.attr(t, "tabindex")); }, }), (x.fn._form = function () { return "string" == typeof this[0].form ? this.closest("form") : x(this[0].form); }), /*! * jQuery UI Form Reset Mixin 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ (x.ui.formResetMixin = { _formResetHandler: function () { var e = x(this); setTimeout(function () { var t = e.data("ui-form-reset-instances"); x.each(t, function () { this.refresh(); }); }); }, _bindFormResetHandler: function () { var t; (this.form = this.element._form()), this.form.length && ((t = this.form.data("ui-form-reset-instances") || []).length || this.form.on("reset.ui-form-reset", this._formResetHandler), t.push(this), this.form.data("ui-form-reset-instances", t)); }, _unbindFormResetHandler: function () { var t; this.form.length && ((t = this.form.data("ui-form-reset-instances")).splice( x.inArray(this, t), 1 ), t.length ? this.form.data("ui-form-reset-instances", t) : this.form .removeData("ui-form-reset-instances") .off("reset.ui-form-reset")); }, }), (x.ui.ie = !!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())), /*! * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license * */ x.expr.pseudos || (x.expr.pseudos = x.expr[":"]), x.uniqueSort || (x.uniqueSort = x.unique), x.escapeSelector || ((e = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g), (i = function (t, e) { return e ? "\0" === t ? "�" : t.slice(0, -1) + "\\" + t.charCodeAt(t.length - 1).toString(16) + " " : "\\" + t; }), (x.escapeSelector = function (t) { return (t + "").replace(e, i); })), (x.fn.even && x.fn.odd) || x.fn.extend({ even: function () { return this.filter(function (t) { return t % 2 == 0; }); }, odd: function () { return this.filter(function (t) { return t % 2 == 1; }); }, }), /*! * jQuery UI Keycode 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ (x.ui.keyCode = { BACKSPACE: 8, COMMA: 188, DELETE: 46, DOWN: 40, END: 35, ENTER: 13, ESCAPE: 27, HOME: 36, LEFT: 37, PAGE_DOWN: 34, PAGE_UP: 33, PERIOD: 190, RIGHT: 39, SPACE: 32, TAB: 9, UP: 38, }), /*! * jQuery UI Labels 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ (x.fn.labels = function () { var t, e, i; return this.length ? this[0].labels && this[0].labels.length ? this.pushStack(this[0].labels) : ((e = this.eq(0).parents("label")), (t = this.attr("id")) && ((i = (i = this.eq(0).parents().last()).add( (i.length ? i : this).siblings() )), (t = "label[for='" + x.escapeSelector(t) + "']"), (e = e.add(i.find(t).addBack(t)))), this.pushStack(e)) : this.pushStack([]); }), (x.ui.plugin = { add: function (t, e, i) { var n, o = x.ui[t].prototype; for (n in i) (o.plugins[n] = o.plugins[n] || []), o.plugins[n].push([e, i[n]]); }, call: function (t, e, i, n) { var o, s = t.plugins[e]; if ( s && (n || (t.element[0].parentNode && 11 !== t.element[0].parentNode.nodeType)) ) for (o = 0; o < s.length; o++) t.options[s[o][0]] && s[o][1].apply(t.element, i); }, }), /*! * jQuery UI Position 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license * * https://api.jqueryui.com/position/ */ (W = Math.max), (C = Math.abs), (o = /left|center|right/), (s = /top|center|bottom/), (r = /[\+\-]\d+(\.[\d]+)?%?/), (l = /^\w+/), (a = /%$/), (h = x.fn.position), (x.position = { scrollbarWidth: function () { var t, e, i; return void 0 !== n ? n : ((i = (e = x( "
" )).children()[0]), x("body").append(e), (t = i.offsetWidth), e.css("overflow", "scroll"), t === (i = i.offsetWidth) && (i = e[0].clientWidth), e.remove(), (n = t - i)); }, getScrollInfo: function (t) { var e = t.isWindow || t.isDocument ? "" : t.element.css("overflow-x"), i = t.isWindow || t.isDocument ? "" : t.element.css("overflow-y"), e = "scroll" === e || ("auto" === e && t.width < t.element[0].scrollWidth); return { width: "scroll" === i || ("auto" === i && t.height < t.element[0].scrollHeight) ? x.position.scrollbarWidth() : 0, height: e ? x.position.scrollbarWidth() : 0, }; }, getWithinInfo: function (t) { var e = x(t || window), i = N(e[0]), n = !!e[0] && 9 === e[0].nodeType; return { element: e, isWindow: i, isDocument: n, offset: !i && !n ? x(t).offset() : { left: 0, top: 0 }, scrollLeft: e.scrollLeft(), scrollTop: e.scrollTop(), width: e.outerWidth(), height: e.outerHeight(), }; }, }), (x.fn.position = function (f) { var c, d, p, g, m, v, y, w, b, _, t, e; return f && f.of ? ((v = "string" == typeof (f = x.extend({}, f)).of ? x(document).find(f.of) : x(f.of)), (y = x.position.getWithinInfo(f.within)), (w = x.position.getScrollInfo(y)), (b = (f.collision || "flip").split(" ")), (_ = {}), (e = 9 === (e = (t = v)[0]).nodeType ? { width: t.width(), height: t.height(), offset: { top: 0, left: 0 }, } : N(e) ? { width: t.width(), height: t.height(), offset: { top: t.scrollTop(), left: t.scrollLeft() }, } : e.preventDefault ? { width: 0, height: 0, offset: { top: e.pageY, left: e.pageX } } : { width: t.outerWidth(), height: t.outerHeight(), offset: t.offset(), }), v[0].preventDefault && (f.at = "left top"), (d = e.width), (p = e.height), (m = x.extend({}, (g = e.offset))), x.each(["my", "at"], function () { var t, e, i = (f[this] || "").split(" "); ((i = 1 === i.length ? o.test(i[0]) ? i.concat(["center"]) : s.test(i[0]) ? ["center"].concat(i) : ["center", "center"] : i)[0] = o.test(i[0]) ? i[0] : "center"), (i[1] = s.test(i[1]) ? i[1] : "center"), (t = r.exec(i[0])), (e = r.exec(i[1])), (_[this] = [t ? t[0] : 0, e ? e[0] : 0]), (f[this] = [l.exec(i[0])[0], l.exec(i[1])[0]]); }), 1 === b.length && (b[1] = b[0]), "right" === f.at[0] ? (m.left += d) : "center" === f.at[0] && (m.left += d / 2), "bottom" === f.at[1] ? (m.top += p) : "center" === f.at[1] && (m.top += p / 2), (c = E(_.at, d, p)), (m.left += c[0]), (m.top += c[1]), this.each(function () { var i, t, r = x(this), l = r.outerWidth(), a = r.outerHeight(), e = L(this, "marginLeft"), n = L(this, "marginTop"), o = l + e + L(this, "marginRight") + w.width, s = a + n + L(this, "marginBottom") + w.height, h = x.extend({}, m), u = E(_.my, r.outerWidth(), r.outerHeight()); "right" === f.my[0] ? (h.left -= l) : "center" === f.my[0] && (h.left -= l / 2), "bottom" === f.my[1] ? (h.top -= a) : "center" === f.my[1] && (h.top -= a / 2), (h.left += u[0]), (h.top += u[1]), (i = { marginLeft: e, marginTop: n }), x.each(["left", "top"], function (t, e) { x.ui.position[b[t]] && x.ui.position[b[t]][e](h, { targetWidth: d, targetHeight: p, elemWidth: l, elemHeight: a, collisionPosition: i, collisionWidth: o, collisionHeight: s, offset: [c[0] + u[0], c[1] + u[1]], my: f.my, at: f.at, within: y, elem: r, }); }), f.using && (t = function (t) { var e = g.left - h.left, i = e + d - l, n = g.top - h.top, o = n + p - a, s = { target: { element: v, left: g.left, top: g.top, width: d, height: p, }, element: { element: r, left: h.left, top: h.top, width: l, height: a, }, horizontal: i < 0 ? "left" : 0 < e ? "right" : "center", vertical: o < 0 ? "top" : 0 < n ? "bottom" : "middle", }; d < l && C(e + i) < d && (s.horizontal = "center"), p < a && C(n + o) < p && (s.vertical = "middle"), W(C(e), C(i)) > W(C(n), C(o)) ? (s.important = "horizontal") : (s.important = "vertical"), f.using.call(this, t, s); }), r.offset(x.extend(h, { using: t })); })) : h.apply(this, arguments); }), (x.ui.position = { fit: { left: function (t, e) { var i, n = e.within, o = n.isWindow ? n.scrollLeft : n.offset.left, n = n.width, s = t.left - e.collisionPosition.marginLeft, r = o - s, l = s + e.collisionWidth - n - o; n < e.collisionWidth ? 0 < r && l <= 0 ? ((i = t.left + r + e.collisionWidth - n - o), (t.left += r - i)) : (t.left = !(0 < l && r <= 0) && l < r ? o + n - e.collisionWidth : o) : 0 < r ? (t.left += r) : 0 < l ? (t.left -= l) : (t.left = W(t.left - s, t.left)); }, top: function (t, e) { var i, n = e.within, n = n.isWindow ? n.scrollTop : n.offset.top, o = e.within.height, s = t.top - e.collisionPosition.marginTop, r = n - s, l = s + e.collisionHeight - o - n; o < e.collisionHeight ? 0 < r && l <= 0 ? ((i = t.top + r + e.collisionHeight - o - n), (t.top += r - i)) : (t.top = !(0 < l && r <= 0) && l < r ? n + o - e.collisionHeight : n) : 0 < r ? (t.top += r) : 0 < l ? (t.top -= l) : (t.top = W(t.top - s, t.top)); }, }, flip: { left: function (t, e) { var i = e.within, n = i.offset.left + i.scrollLeft, o = i.width, i = i.isWindow ? i.scrollLeft : i.offset.left, s = t.left - e.collisionPosition.marginLeft, r = s - i, s = s + e.collisionWidth - o - i, l = "left" === e.my[0] ? -e.elemWidth : "right" === e.my[0] ? e.elemWidth : 0, a = "left" === e.at[0] ? e.targetWidth : "right" === e.at[0] ? -e.targetWidth : 0, h = -2 * e.offset[0]; r < 0 ? ((o = t.left + l + a + h + e.collisionWidth - o - n) < 0 || o < C(r)) && (t.left += l + a + h) : 0 < s && (0 < (n = t.left - e.collisionPosition.marginLeft + l + a + h - i) || C(n) < s) && (t.left += l + a + h); }, top: function (t, e) { var i = e.within, n = i.offset.top + i.scrollTop, o = i.height, i = i.isWindow ? i.scrollTop : i.offset.top, s = t.top - e.collisionPosition.marginTop, r = s - i, s = s + e.collisionHeight - o - i, l = "top" === e.my[1] ? -e.elemHeight : "bottom" === e.my[1] ? e.elemHeight : 0, a = "top" === e.at[1] ? e.targetHeight : "bottom" === e.at[1] ? -e.targetHeight : 0, h = -2 * e.offset[1]; r < 0 ? ((o = t.top + l + a + h + e.collisionHeight - o - n) < 0 || o < C(r)) && (t.top += l + a + h) : 0 < s && (0 < (n = t.top - e.collisionPosition.marginTop + l + a + h - i) || C(n) < s) && (t.top += l + a + h); }, }, flipfit: { left: function () { x.ui.position.flip.left.apply(this, arguments), x.ui.position.fit.left.apply(this, arguments); }, top: function () { x.ui.position.flip.top.apply(this, arguments), x.ui.position.fit.top.apply(this, arguments); }, }, }), (x.ui.safeActiveElement = function (e) { var i; try { i = e.activeElement; } catch (t) { i = e.body; } return (i = (i = i || e.body).nodeName ? i : e.body); }), (x.ui.safeBlur = function (t) { t && "body" !== t.nodeName.toLowerCase() && x(t).trigger("blur"); }), /*! * jQuery UI Scroll Parent 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ (x.fn.scrollParent = function (t) { var e = this.css("position"), i = "absolute" === e, n = t ? /(auto|scroll|hidden)/ : /(auto|scroll)/, t = this.parents() .filter(function () { var t = x(this); return ( (!i || "static" !== t.css("position")) && n.test( t.css("overflow") + t.css("overflow-y") + t.css("overflow-x") ) ); }) .eq(0); return "fixed" !== e && t.length ? t : x(this[0].ownerDocument || document); }), /*! * jQuery UI Tabbable 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ x.extend(x.expr.pseudos, { tabbable: function (t) { var e = x.attr(t, "tabindex"), i = null != e; return (!i || 0 <= e) && x.ui.focusable(t, i); }, }), /*! * jQuery UI Unique ID 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ x.fn.extend({ uniqueId: ((u = 0), function () { return this.each(function () { this.id || (this.id = "ui-id-" + ++u); }); }), removeUniqueId: function () { return this.each(function () { /^ui-id-\d+$/.test(this.id) && x(this).removeAttr("id"); }); }, }); /*! * jQuery UI Widget 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ var f, c = 0, d = Array.prototype.hasOwnProperty, p = Array.prototype.slice; (x.cleanData = ((f = x.cleanData), function (t) { for (var e, i, n = 0; null != (i = t[n]); n++) (e = x._data(i, "events")) && e.remove && x(i).triggerHandler("remove"); f(t); })), (x.widget = function (t, i, e) { var n, o, s, r = {}, l = t.split(".")[0], a = l + "-" + (t = t.split(".")[1]); return ( e || ((e = i), (i = x.Widget)), Array.isArray(e) && (e = x.extend.apply(null, [{}].concat(e))), (x.expr.pseudos[a.toLowerCase()] = function (t) { return !!x.data(t, a); }), (x[l] = x[l] || {}), (n = x[l][t]), (o = x[l][t] = function (t, e) { if (!this || !this._createWidget) return new o(t, e); arguments.length && this._createWidget(t, e); }), x.extend(o, n, { version: e.version, _proto: x.extend({}, e), _childConstructors: [], }), ((s = new i()).options = x.widget.extend({}, s.options)), x.each(e, function (e, n) { function o() { return i.prototype[e].apply(this, arguments); } function s(t) { return i.prototype[e].apply(this, t); } r[e] = "function" != typeof n ? n : function () { var t, e = this._super, i = this._superApply; return ( (this._super = o), (this._superApply = s), (t = n.apply(this, arguments)), (this._super = e), (this._superApply = i), t ); }; }), (o.prototype = x.widget.extend( s, { widgetEventPrefix: (n && s.widgetEventPrefix) || t }, r, { constructor: o, namespace: l, widgetName: t, widgetFullName: a } )), n ? (x.each(n._childConstructors, function (t, e) { var i = e.prototype; x.widget(i.namespace + "." + i.widgetName, o, e._proto); }), delete n._childConstructors) : i._childConstructors.push(o), x.widget.bridge(t, o), o ); }), (x.widget.extend = function (t) { for (var e, i, n = p.call(arguments, 1), o = 0, s = n.length; o < s; o++) for (e in n[o]) (i = n[o][e]), d.call(n[o], e) && void 0 !== i && (x.isPlainObject(i) ? (t[e] = x.isPlainObject(t[e]) ? x.widget.extend({}, t[e], i) : x.widget.extend({}, i)) : (t[e] = i)); return t; }), (x.widget.bridge = function (s, e) { var r = e.prototype.widgetFullName || s; x.fn[s] = function (i) { var t = "string" == typeof i, n = p.call(arguments, 1), o = this; return ( t ? this.length || "instance" !== i ? this.each(function () { var t, e = x.data(this, r); return "instance" === i ? ((o = e), !1) : e ? "function" != typeof e[i] || "_" === i.charAt(0) ? x.error( "no such method '" + i + "' for " + s + " widget instance" ) : (t = e[i].apply(e, n)) !== e && void 0 !== t ? ((o = t && t.jquery ? o.pushStack(t.get()) : t), !1) : void 0 : x.error( "cannot call methods on " + s + " prior to initialization; attempted to call method '" + i + "'" ); }) : (o = void 0) : (n.length && (i = x.widget.extend.apply(null, [i].concat(n))), this.each(function () { var t = x.data(this, r); t ? (t.option(i || {}), t._init && t._init()) : x.data(this, r, new e(i, this)); })), o ); }; }), (x.Widget = function () {}), (x.Widget._childConstructors = []), (x.Widget.prototype = { widgetName: "widget", widgetEventPrefix: "", defaultElement: "
", options: { classes: {}, disabled: !1, create: null }, _createWidget: function (t, e) { (e = x(e || this.defaultElement || this)[0]), (this.element = x(e)), (this.uuid = c++), (this.eventNamespace = "." + this.widgetName + this.uuid), (this.bindings = x()), (this.hoverable = x()), (this.focusable = x()), (this.classesElementLookup = {}), e !== this && (x.data(e, this.widgetFullName, this), this._on(!0, this.element, { remove: function (t) { t.target === e && this.destroy(); }, }), (this.document = x(e.style ? e.ownerDocument : e.document || e)), (this.window = x( this.document[0].defaultView || this.document[0].parentWindow ))), (this.options = x.widget.extend( {}, this.options, this._getCreateOptions(), t )), this._create(), this.options.disabled && this._setOptionDisabled(this.options.disabled), this._trigger("create", null, this._getCreateEventData()), this._init(); }, _getCreateOptions: function () { return {}; }, _getCreateEventData: x.noop, _create: x.noop, _init: x.noop, destroy: function () { var i = this; this._destroy(), x.each(this.classesElementLookup, function (t, e) { i._removeClass(e, t); }), this.element.off(this.eventNamespace).removeData(this.widgetFullName), this.widget().off(this.eventNamespace).removeAttr("aria-disabled"), this.bindings.off(this.eventNamespace); }, _destroy: x.noop, widget: function () { return this.element; }, option: function (t, e) { var i, n, o, s = t; if (0 === arguments.length) return x.widget.extend({}, this.options); if ("string" == typeof t) if (((s = {}), (t = (i = t.split(".")).shift()), i.length)) { for ( n = s[t] = x.widget.extend({}, this.options[t]), o = 0; o < i.length - 1; o++ ) (n[i[o]] = n[i[o]] || {}), (n = n[i[o]]); if (((t = i.pop()), 1 === arguments.length)) return void 0 === n[t] ? null : n[t]; n[t] = e; } else { if (1 === arguments.length) return void 0 === this.options[t] ? null : this.options[t]; s[t] = e; } return this._setOptions(s), this; }, _setOptions: function (t) { for (var e in t) this._setOption(e, t[e]); return this; }, _setOption: function (t, e) { return ( "classes" === t && this._setOptionClasses(e), (this.options[t] = e), "disabled" === t && this._setOptionDisabled(e), this ); }, _setOptionClasses: function (t) { var e, i, n; for (e in t) (n = this.classesElementLookup[e]), t[e] !== this.options.classes[e] && n && n.length && ((i = x(n.get())), this._removeClass(n, e), i.addClass( this._classes({ element: i, keys: e, classes: t, add: !0 }) )); }, _setOptionDisabled: function (t) { this._toggleClass( this.widget(), this.widgetFullName + "-disabled", null, !!t ), t && (this._removeClass(this.hoverable, null, "ui-state-hover"), this._removeClass(this.focusable, null, "ui-state-focus")); }, enable: function () { return this._setOptions({ disabled: !1 }); }, disable: function () { return this._setOptions({ disabled: !0 }); }, _classes: function (o) { var s = [], r = this; function t(t, e) { for (var i, n = 0; n < t.length; n++) (i = r.classesElementLookup[t[n]] || x()), (i = o.add ? ((function () { var i = []; o.element.each(function (t, e) { x .map(r.classesElementLookup, function (t) { return t; }) .some(function (t) { return t.is(e); }) || i.push(e); }), r._on(x(i), { remove: "_untrackClassesElement" }); })(), x(x.uniqueSort(i.get().concat(o.element.get())))) : x(i.not(o.element).get())), (r.classesElementLookup[t[n]] = i), s.push(t[n]), e && o.classes[t[n]] && s.push(o.classes[t[n]]); } return ( (o = x.extend( { element: this.element, classes: this.options.classes || {} }, o )).keys && t(o.keys.match(/\S+/g) || [], !0), o.extra && t(o.extra.match(/\S+/g) || []), s.join(" ") ); }, _untrackClassesElement: function (i) { var n = this; x.each(n.classesElementLookup, function (t, e) { -1 !== x.inArray(i.target, e) && (n.classesElementLookup[t] = x(e.not(i.target).get())); }), this._off(x(i.target)); }, _removeClass: function (t, e, i) { return this._toggleClass(t, e, i, !1); }, _addClass: function (t, e, i) { return this._toggleClass(t, e, i, !0); }, _toggleClass: function (t, e, i, n) { var o = "string" == typeof t || null === t, e = { extra: o ? e : i, keys: o ? t : e, element: o ? this.element : t, add: (n = "boolean" == typeof n ? n : i), }; return e.element.toggleClass(this._classes(e), n), this; }, _on: function (o, s, t) { var r, l = this; "boolean" != typeof o && ((t = s), (s = o), (o = !1)), t ? ((s = r = x(s)), (this.bindings = this.bindings.add(s))) : ((t = s), (s = this.element), (r = this.widget())), x.each(t, function (t, e) { function i() { if ( o || (!0 !== l.options.disabled && !x(this).hasClass("ui-state-disabled")) ) return ("string" == typeof e ? l[e] : e).apply(l, arguments); } "string" != typeof e && (i.guid = e.guid = e.guid || i.guid || x.guid++); var t = t.match(/^([\w:-]*)\s*(.*)$/), n = t[1] + l.eventNamespace, t = t[2]; t ? r.on(n, t, i) : s.on(n, i); }); }, _off: function (t, e) { (e = (e || "").split(" ").join(this.eventNamespace + " ") + this.eventNamespace), t.off(e), (this.bindings = x(this.bindings.not(t).get())), (this.focusable = x(this.focusable.not(t).get())), (this.hoverable = x(this.hoverable.not(t).get())); }, _delay: function (t, e) { var i = this; return setTimeout(function () { return ("string" == typeof t ? i[t] : t).apply(i, arguments); }, e || 0); }, _hoverable: function (t) { (this.hoverable = this.hoverable.add(t)), this._on(t, { mouseenter: function (t) { this._addClass(x(t.currentTarget), null, "ui-state-hover"); }, mouseleave: function (t) { this._removeClass(x(t.currentTarget), null, "ui-state-hover"); }, }); }, _focusable: function (t) { (this.focusable = this.focusable.add(t)), this._on(t, { focusin: function (t) { this._addClass(x(t.currentTarget), null, "ui-state-focus"); }, focusout: function (t) { this._removeClass(x(t.currentTarget), null, "ui-state-focus"); }, }); }, _trigger: function (t, e, i) { var n, o, s = this.options[t]; if ( ((i = i || {}), ((e = x.Event(e)).type = ( t === this.widgetEventPrefix ? t : this.widgetEventPrefix + t ).toLowerCase()), (e.target = this.element[0]), (o = e.originalEvent)) ) for (n in o) n in e || (e[n] = o[n]); return ( this.element.trigger(e, i), !( ("function" == typeof s && !1 === s.apply(this.element[0], [e].concat(i))) || e.isDefaultPrevented() ) ); }, }), x.each({ show: "fadeIn", hide: "fadeOut" }, function (s, r) { x.Widget.prototype["_" + s] = function (e, t, i) { var n, o = (t = "string" == typeof t ? { effect: t } : t) ? (!0 !== t && "number" != typeof t && t.effect) || r : s; "number" == typeof (t = t || {}) ? (t = { duration: t }) : !0 === t && (t = {}), (n = !x.isEmptyObject(t)), (t.complete = i), t.delay && e.delay(t.delay), n && x.effects && x.effects.effect[o] ? e[s](t) : o !== s && e[o] ? e[o](t.duration, t.easing, i) : e.queue(function (t) { x(this)[s](), i && i.call(e[0]), t(); }); }; }); }); /*! elementor - v3.29.0 - 28-05-2025 */ ("use strict"); (self.webpackChunkelementorFrontend = self.webpackChunkelementorFrontend || []).push([ [313], { 4047: (e, t, n) => { var r = n(6784); Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0); var o = r(n(2890)); class _default extends elementorModules.ViewModule { constructor() { super(...arguments), (this.documents = {}), this.initDocumentClasses(), this.attachDocumentsClasses(); } getDefaultSettings() { return { selectors: { document: ".elementor" } }; } getDefaultElements() { const e = this.getSettings("selectors"); return { $documents: jQuery(e.document) }; } initDocumentClasses() { (this.documentClasses = { base: o.default }), elementorFrontend.hooks.doAction( "elementor/frontend/documents-manager/init-classes", this ); } addDocumentClass(e, t) { this.documentClasses[e] = t; } attachDocumentsClasses() { this.elements.$documents.each((e, t) => this.attachDocumentClass(jQuery(t)) ); } attachDocumentClass(e) { const t = e.data(), n = t.elementorId, r = t.elementorType, o = this.documentClasses[r] || this.documentClasses.base; this.documents[n] = new o({ $element: e, id: n }); } } t.default = _default; }, 7248: (e, t, n) => { var r = n(6784); n(4846), n(9655); var o = r(n(4970)), s = r(n(3678)), i = r(n(2126)), a = r(n(8891)); e.exports = function (e) { var t = this; const r = {}; (this.elementsHandlers = { "accordion.default": () => n.e(131).then(n.bind(n, 9675)), "alert.default": () => n.e(707).then(n.bind(n, 7243)), "counter.default": () => n.e(457).then(n.bind(n, 3905)), "progress.default": () => n.e(234).then(n.bind(n, 9754)), "tabs.default": () => n.e(575).then(n.bind(n, 3485)), "toggle.default": () => n.e(775).then(n.bind(n, 3049)), "video.default": () => n.e(180).then(n.bind(n, 3774)), "image-carousel.default": () => n.e(177).then(n.bind(n, 4315)), "text-editor.default": () => n.e(212).then(n.bind(n, 5362)), "wp-widget-media_audio.default": () => n.e(211).then(n.bind(n, 2793)), container: s.default, section: i.default, column: a.default, }), elementorFrontendConfig.experimentalFeatures["nested-elements"] && (this.elementsHandlers["nested-tabs.default"] = () => n.e(215).then(n.bind(n, 4328))), elementorFrontendConfig.experimentalFeatures["nested-elements"] && (this.elementsHandlers["nested-accordion.default"] = () => n.e(915).then(n.bind(n, 8216))), elementorFrontendConfig.experimentalFeatures.container && ((this.elementsHandlers["contact-buttons.default"] = () => n.e(1).then(n.bind(n, 6285))), (this.elementsHandlers["floating-bars-var-1.default"] = () => n.e(336).then(n.bind(n, 5199)))); const addElementsHandlers = () => { e.each(this.elementsHandlers, (e, t) => { const n = e.split("."); e = n[0]; const r = n[1] || null; this.attachHandler(e, t, r); }); }, isClassHandler = (e) => e.prototype?.getUniqueHandlerID; (this.addHandler = function (t, n) { const o = n.$element.data("model-cid"); let s; if (o) { (s = t.prototype.getConstructorID()), r[o] || (r[o] = {}); const e = r[o][s]; e && e.onDestroy(); } const i = new t(n); elementorFrontend.hooks.doAction( `frontend/element_handler_ready/${n.elementName}`, n.$element, e ), o && (r[o][s] = i); }), (this.attachHandler = (e, n, r) => { Array.isArray(n) || (n = [n]), n.forEach((n) => (function (e, n) { let r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "default"; r = r ? "." + r : ""; const o = e + r; elementorFrontend.hooks.addAction( `frontend/element_ready/${o}`, (e) => { if (isClassHandler(n)) t.addHandler(n, { $element: e, elementName: o }, !0); else { const r = n(); if (!r) return; r instanceof Promise ? r.then((n) => { let { default: r } = n; t.addHandler( r, { $element: e, elementName: o }, !0 ); }) : t.addHandler( r, { $element: e, elementName: o }, !0 ); } } ); })(e, n, r) ); }), (this.getHandler = function (e) { const t = this.elementsHandlers[e]; return isClassHandler(t) ? t : new Promise((e) => { t().then((t) => { let { default: n } = t; e(n); }); }); }), (this.getHandlers = function (e) { return ( elementorDevTools.deprecation.deprecated( "getHandlers", "3.1.0", "elementorFrontend.elementsHandler.getHandler" ), e ? this.getHandler(e) : this.elementsHandlers ); }), (this.runReadyTrigger = function (t) { const n = !!t.closest('[data-delay-child-handlers="true"]') && 0 !== t.closest('[data-delay-child-handlers="true"]').length; if (elementorFrontend.config.is_static || n) return; const r = jQuery(t), o = r.attr("data-element_type"); if ( o && (elementorFrontend.hooks.doAction( "frontend/element_ready/global", r, e ), elementorFrontend.hooks.doAction( `frontend/element_ready/${o}`, r, e ), "widget" === o) ) { const t = r.attr("data-widget_type"); elementorFrontend.hooks.doAction( `frontend/element_ready/${t}`, r, e ); } }), (this.init = () => { elementorFrontend.hooks.addAction( "frontend/element_ready/global", o.default ), addElementsHandlers(); }); }; }, 7603: (e, t, n) => { var r = n(6784); n(4846), n(6211), n(9655), n(8309); var o = r(n(4047)), s = r(n(8767)), i = r(n(5115)), a = r(n(5073)), l = r(n(3126)), d = r(n(8427)), c = r(n(3582)), u = r(n(4901)), h = r(n(4252)), m = r(n(8422)), f = r(n(5896)), g = r(n(4799)), p = r(n(7842)), v = r(n(607)), y = r(n(9807)), b = n(7672); const w = n(5956), _ = n(7248); class Frontend extends elementorModules.ViewModule { constructor() { super(...arguments), (this.config = elementorFrontendConfig), (this.config.legacyMode = { get elementWrappers() { return ( elementorFrontend.isEditMode() && window.top.elementorDevTools.deprecation.deprecated( "elementorFrontend.config.legacyMode.elementWrappers", "3.1.0" ), !1 ); }, }), this.populateActiveBreakpointsConfig(); } get Module() { return ( this.isEditMode() && parent.elementorDevTools.deprecation.deprecated( "elementorFrontend.Module", "2.5.0", "elementorModules.frontend.handlers.Base" ), elementorModules.frontend.handlers.Base ); } getDefaultSettings() { return { selectors: { elementor: ".elementor", adminBar: "#wpadminbar" }, }; } getDefaultElements() { const e = { window, $window: jQuery(window), $document: jQuery(document), $head: jQuery(document.head), $body: jQuery(document.body), $deviceMode: jQuery("", { id: "elementor-device-mode", class: "elementor-screen-only", }), }; return e.$body.append(e.$deviceMode), e; } bindEvents() { this.elements.$window.on("resize", () => this.setDeviceModeData()); } getElements(e) { return this.getItems(this.elements, e); } getPageSettings(e) { const t = this.isEditMode() ? elementor.settings.page.model.attributes : this.config.settings.page; return this.getItems(t, e); } getGeneralSettings(e) { return ( this.isEditMode() && parent.elementorDevTools.deprecation.deprecated( "getGeneralSettings()", "3.0.0", "getKitSettings() and remove the `elementor_` prefix" ), this.getKitSettings(`elementor_${e}`) ); } getKitSettings(e) { return this.getItems(this.config.kit, e); } getCurrentDeviceMode() { return getComputedStyle( this.elements.$deviceMode[0], ":after" ).content.replace(/"/g, ""); } getDeviceSetting(e, t, n) { if ("widescreen" === e) return this.getWidescreenSetting(t, n); const r = elementorFrontend.breakpoints.getActiveBreakpointsList({ largeToSmall: !0, withDesktop: !0, }); let o = r.indexOf(e); for (; o > 0; ) { const e = t[n + "_" + r[o]]; if (e || 0 === e) return e; o--; } return t[n]; } getWidescreenSetting(e, t) { const n = t + "_widescreen"; let r; return (r = e[n] ? e[n] : e[t]), r; } getCurrentDeviceSetting(e, t) { return this.getDeviceSetting( elementorFrontend.getCurrentDeviceMode(), e, t ); } isEditMode() { return this.config.environmentMode.edit; } isWPPreviewMode() { return this.config.environmentMode.wpPreview; } initDialogsManager() { let e; this.getDialogsManager = () => ( e || (e = new DialogsManager.Instance()), e ); } initOnReadyComponents() { (this.utils = { youtube: new a.default(), vimeo: new l.default(), baseVideoLoader: new d.default(), get lightbox() { return h.default.getLightbox(); }, urlActions: new c.default(), swiper: u.default, environment: i.default, assetsLoader: new m.default(), escapeHTML: b.escapeHTML, events: g.default, controls: new v.default(), anchor_scroll_margin: new y.default(), }), (this.modules = { StretchElement: elementorModules.frontend.tools.StretchElement, Masonry: elementorModules.utils.Masonry, }), this.elementsHandler.init(), this.isEditMode() ? elementor.once("document:loaded", () => this.onDocumentLoaded()) : this.onDocumentLoaded(); } initOnReadyElements() { this.elements.$wpAdminBar = this.elements.$document.find( this.getSettings("selectors.adminBar") ); } addUserAgentClasses() { for (const [e, t] of Object.entries(i.default)) t && this.elements.$body.addClass("e--ua-" + e); } setDeviceModeData() { this.elements.$body.attr( "data-elementor-device-mode", this.getCurrentDeviceMode() ); } addListenerOnce(e, t, n, r) { if ((r || (r = this.elements.$window), this.isEditMode())) if ((this.removeListeners(e, t, r), r instanceof jQuery)) { const o = t + "." + e; r.on(o, n); } else r.on(t, n, e); else r.on(t, n); } removeListeners(e, t, n, r) { if ((r || (r = this.elements.$window), r instanceof jQuery)) { const o = t + "." + e; r.off(o, n); } else r.off(t, n, e); } debounce(e, t) { let n; return function () { const r = this, o = arguments, s = !n; clearTimeout(n), (n = setTimeout(() => { (n = null), e.apply(r, o); }, t)), s && e.apply(r, o); }; } muteMigrationTraces() { (jQuery.migrateMute = !0), (jQuery.migrateTrace = !1); } initModules() { const e = { shapes: p.default }; elementorFrontend.trigger("elementor/modules/init:before"), elementorFrontend.trigger("elementor/modules/init/before"), Object.entries(e).forEach((e) => { let [t, n] = e; this.modulesHandlers[t] = new n(); }); } populateActiveBreakpointsConfig() { (this.config.responsive.activeBreakpoints = {}), Object.entries(this.config.responsive.breakpoints).forEach((e) => { let [t, n] = e; n.is_enabled && (this.config.responsive.activeBreakpoints[t] = n); }); } init() { (this.hooks = new w()), (this.breakpoints = new f.default(this.config.responsive)), (this.storage = new s.default()), (this.elementsHandler = new _(jQuery)), (this.modulesHandlers = {}), this.addUserAgentClasses(), this.setDeviceModeData(), this.initDialogsManager(), this.isEditMode() && this.muteMigrationTraces(), g.default.dispatch( this.elements.$window, "elementor/frontend/init" ), this.initModules(), this.initOnReadyElements(), this.initOnReadyComponents(); } onDocumentLoaded() { (this.documentsManager = new o.default()), this.trigger("components:init"), new h.default(); } } (window.elementorFrontend = new Frontend()), elementorFrontend.isEditMode() || jQuery(() => elementorFrontend.init()); }, 8891: (e, t, n) => { Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0); t.default = [() => n.e(557).then(n.bind(n, 628))]; }, 3678: (e, t, n) => { Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0); var r = n(3002); t.default = [ () => n.e(557).then(n.bind(n, 628)), () => n.e(557).then(n.bind(n, 3031)), (0, r.createEditorHandler)(() => n.e(396).then(n.bind(n, 9956))), (0, r.createEditorHandler)(() => n.e(768).then(n.bind(n, 8847))), (0, r.createEditorHandler)(() => n.e(768).then(n.bind(n, 3323))), ]; }, 3002: (e, t) => { Object.defineProperty(t, "__esModule", { value: !0 }), (t.createEditorHandler = function createEditorHandler(e) { return () => new Promise((t) => { elementorFrontend.isEditMode() && e().then(t); }); }); }, 4970: (e, t) => { Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0); class GlobalHandler extends elementorModules.frontend.handlers.Base { getWidgetType() { return "global"; } animate() { const e = this.$element, t = this.getAnimation(); if ("none" === t) return void e.removeClass("elementor-invisible"); const n = this.getElementSettings(), r = n._animation_delay || n.animation_delay || 0; e.removeClass(t), this.currentAnimation && e.removeClass(this.currentAnimation), (this.currentAnimation = t), setTimeout(() => { e.removeClass("elementor-invisible").addClass("animated " + t); }, r); } getAnimation() { return ( this.getCurrentDeviceSetting("animation") || this.getCurrentDeviceSetting("_animation") ); } onInit() { if ((super.onInit(...arguments), this.getAnimation())) { const e = elementorModules.utils.Scroll.scrollObserver({ callback: (t) => { t.isInViewport && (this.animate(), e.unobserve(this.$element[0])); }, }); e.observe(this.$element[0]); } } onElementChange(e) { /^_?animation/.test(e) && this.animate(); } } t.default = (e) => { elementorFrontend.elementsHandler.addHandler(GlobalHandler, { $element: e, }); }; }, 2126: (e, t, n) => { Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0); var r = n(3002); t.default = [ () => n.e(77).then(n.bind(n, 2439)), () => n.e(557).then(n.bind(n, 628)), () => n.e(557).then(n.bind(n, 3031)), (0, r.createEditorHandler)(() => n.e(396).then(n.bind(n, 9956))), (0, r.createEditorHandler)(() => n.e(220).then(n.bind(n, 3243))), ]; }, 9807: (e, t, n) => { Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0), n(5724), n(4846), n(7458), n(9655); class _default extends elementorModules.ViewModule { getDefaultSettings() { return { selectors: { links: '.elementor-element a[href*="#"]', stickyElements: ".elementor-element.elementor-sticky", }, }; } onInit() { this.observeStickyElements(() => { this.initializeStickyAndAnchorTracking(); }); } observeStickyElements(e) { new MutationObserver((t) => { for (const n of t) ("childList" === n.type || ("attributes" === n.type && n.target.classList.contains("elementor-sticky"))) && e(); }).observe(document.body, { childList: !0, subtree: !0, attributes: !0, attributeFilter: ["class", "style"], }); } initializeStickyAndAnchorTracking() { const e = this.getAllAnchorLinks(), t = this.getAllStickyElements(), n = []; (!t.length > 0 && !e.length > 0) || (this.trackStickyElements(t, n), this.trackAnchorLinks(e, n), this.organizeStickyAndAnchors(n)); } trackAnchorLinks(e, t) { e.forEach((e) => { const n = this.getAnchorTarget(e), r = this.getScrollPosition(n); t.push({ element: n, type: "anchor", scrollPosition: r }); }); } trackStickyElements(e, t) { e.forEach((e) => { const n = this.getElementSettings(e); if (!n || !n.sticky_anchor_link_offset) return; const { sticky_anchor_link_offset: r } = n; if (0 === r) return; const o = this.getScrollPosition(e); t.push({ scrollMarginTop: r, type: "sticky", scrollPosition: o }); }); } organizeStickyAndAnchors(e) { const t = this.filterAndSortElementsByType(e, "sticky"), n = this.filterAndSortElementsByType(e, "anchor"); t.forEach((e, r) => { this.defineCurrentStickyRange(e, r, t, n); }); } defineCurrentStickyRange(e, t, n, r) { const o = t + 1 < n.length ? n[t + 1].scrollPosition : 1 / 0; e.anchor = r.filter((t) => { const n = t.scrollPosition > e.scrollPosition && t.scrollPosition < o; return ( n && (t.element.style.scrollMarginTop = `${e.scrollMarginTop}px`), n ); }); } getScrollPosition(e) { let t = 0; for (; e; ) (t += e.offsetTop), (e = e.offsetParent); return t; } getAllStickyElements() { const e = document.querySelectorAll( this.getSettings("selectors.stickyElements") ); return Array.from(e).filter( (e, t, n) => t === n.findIndex( (t) => t.getAttribute("data-id") === e.getAttribute("data-id") ) ); } getAllAnchorLinks() { const e = document.querySelectorAll( this.getSettings("selectors.links") ); return Array.from(e).filter( (e, t, n) => t === n.findIndex( (t) => t.getAttribute("href") === e.getAttribute("href") ) ); } filterAndSortElementsByType(e, t) { return e .filter((e) => t === e.type) .sort((e, t) => e.scrollPosition - t.scrollPosition); } isValidSelector(e) { return /^#[A-Za-z_][\w-]*$/.test(e); } getAnchorTarget(e) { const t = e?.hash; return this.isValidSelector(t) ? document.querySelector(t) : null; } getElementSettings(e) { return JSON.parse(e.getAttribute("data-settings")); } } t.default = _default; }, 8422: (e, t) => { Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0); class AssetsLoader { getScriptElement(e) { const t = document.createElement("script"); return (t.src = e), t; } getStyleElement(e) { const t = document.createElement("link"); return (t.rel = "stylesheet"), (t.href = e), t; } load(e, t) { const n = AssetsLoader.assets[e][t]; return ( n.loader || (n.loader = this.isAssetLoaded(n, e) ? Promise.resolve(!0) : this.loadAsset(n, e)), n.loader ); } isAssetLoaded(e, t) { const n = "script" === t ? `script[src="${e.src}"]` : `link[href="${e.src}"]`; return !!document.querySelectorAll(n)?.length; } loadAsset(e, t) { return new Promise((n) => { const r = "style" === t ? this.getStyleElement(e.src) : this.getScriptElement(e.src); (r.onload = () => n(!0)), this.appendAsset(e, r); }); } appendAsset(e, t) { const n = document.querySelector(e.before); if (n) return void n.insertAdjacentElement("beforebegin", t); const r = "head" === e.parent ? e.parent : "body"; document[r].appendChild(t); } } t.default = AssetsLoader; const n = elementorFrontendConfig.urls.assets, r = elementorFrontendConfig.environmentMode.isScriptDebug ? "" : ".min", o = elementorFrontendConfig.version; AssetsLoader.assets = { script: { dialog: { src: `${n}lib/dialog/dialog${r}.js?ver=4.9.3` }, "share-link": { src: `${n}lib/share-link/share-link${r}.js?ver=${o}`, }, swiper: { src: `${n}lib/swiper/v8/swiper${r}.js?ver=8.4.5` }, }, style: { swiper: { src: `${n}lib/swiper/v8/css/swiper${r}.css?ver=8.4.5`, parent: "head", }, "e-lightbox": { src: elementorFrontendConfig?.responsive?.hasCustomBreakpoints ? `${elementorFrontendConfig.urls.uploadUrl}/elementor/css/custom-lightbox.min.css?ver=${o}` : `${n}css/conditionals/lightbox${r}.css?ver=${o}`, }, dialog: { src: `${n}css/conditionals/dialog${r}.css?ver=${o}`, parent: "head", before: "#elementor-frontend-css", }, }, }; }, 607: (e, t) => { Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0); t.default = class Controls { getControlValue(e, t, n) { let r; return (r = "object" == typeof e[t] && n ? e[t][n] : e[t]), r; } getResponsiveControlValue(e, t) { let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : ""; const r = (arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : null) || elementorFrontend.getCurrentDeviceMode(), o = this.getControlValue(e, t, n); if ("widescreen" === r) { const r = this.getControlValue(e, `${t}_widescreen`, n); return r || 0 === r ? r : o; } const s = elementorFrontend.breakpoints.getActiveBreakpointsList({ withDesktop: !0, }); let i = r, a = s.indexOf(r), l = ""; for (; a <= s.length; ) { if ("desktop" === i) { l = o; break; } const r = `${t}_${i}`, d = this.getControlValue(e, r, n); if (d || 0 === d) { l = d; break; } a++, (i = s[a]); } return l; } }; }, 4252: (e, t, n) => { Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0), n(4846), n(6211); class LightboxManager extends elementorModules.ViewModule { static getLightbox() { const e = new Promise((e) => { n.e(216) .then(n.t.bind(n, 3942, 23)) .then((t) => { let { default: n } = t; return e(new n()); }); }), t = elementorFrontend.utils.assetsLoader.load("script", "dialog"), r = elementorFrontend.utils.assetsLoader.load("style", "dialog"), o = elementorFrontend.utils.assetsLoader.load( "script", "share-link" ), s = elementorFrontend.utils.assetsLoader.load("style", "swiper"), i = elementorFrontend.utils.assetsLoader.load( "style", "e-lightbox" ); return Promise.all([e, t, r, o, s, i]).then(() => e); } getDefaultSettings() { return { selectors: { links: "a, [data-elementor-lightbox]", slideshow: "[data-elementor-lightbox-slideshow]", }, }; } getDefaultElements() { return { $links: jQuery(this.getSettings("selectors.links")), $slideshow: jQuery(this.getSettings("selectors.slideshow")), }; } isLightboxLink(e) { if ( "a" === e.tagName.toLowerCase() && (e.hasAttribute("download") || !/^[^?]+\.(png|jpe?g|gif|svg|webp|avif)(\?.*)?$/i.test(e.href)) && !e.dataset.elementorLightboxVideo ) return !1; const t = elementorFrontend.getKitSettings("global_image_lightbox"), n = e.dataset.elementorOpenLightbox; return "yes" === n || (t && "no" !== n); } isLightboxSlideshow() { return 0 !== this.elements.$slideshow.length; } async onLinkClick(e) { const t = e.currentTarget, n = jQuery(e.target), r = elementorFrontend.isEditMode(), o = r && elementor.$previewContents .find("body") .hasClass("elementor-editor__ui-state__color-picker"), s = !!n.closest(".elementor-edit-area").length; if (!this.isLightboxLink(t)) return void (r && s && e.preventDefault()); if ( (e.preventDefault(), r && !elementor.getPreferences("lightbox_in_editor")) ) return; if (o) return; (await LightboxManager.getLightbox()).createLightbox(t); } bindEvents() { elementorFrontend.elements.$document.on( "click", this.getSettings("selectors.links"), (e) => this.onLinkClick(e) ); } onInit() { super.onInit(...arguments), elementorFrontend.isEditMode() || this.maybeActivateLightboxOnLink(); } maybeActivateLightboxOnLink() { this.elements.$links.each((e, t) => { if (this.isLightboxLink(t)) return LightboxManager.getLightbox(), !1; }); } } t.default = LightboxManager; }, 4901: (e, t, n) => { Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0), n(4846), n(9655); t.default = class SwiperHandler { constructor(e, t) { return ( (this.config = t), this.config.breakpoints && (this.config = this.adjustConfig(t)), e instanceof jQuery && (e = e[0]), e .closest(".elementor-widget-wrap") ?.classList.add("e-swiper-container"), e.closest(".elementor-widget")?.classList.add("e-widget-swiper"), new Promise((t) => { "undefined" != typeof Swiper ? ("function" == typeof Swiper && void 0 === window.Swiper && (window.Swiper = Swiper), t(this.createSwiperInstance(e, this.config))) : elementorFrontend.utils.assetsLoader .load("script", "swiper") .then(() => t(this.createSwiperInstance(e, this.config))); }) ); } createSwiperInstance(e, t) { const n = window.Swiper; return (n.prototype.adjustConfig = this.adjustConfig), new n(e, t); } adjustConfig(e) { if (!e.handleElementorBreakpoints) return e; const t = elementorFrontend.config.responsive.activeBreakpoints, n = elementorFrontend.breakpoints.getBreakpointValues(); return ( Object.keys(e.breakpoints).forEach((r) => { const o = parseInt(r); let s; if (o === t.mobile.value || o + 1 === t.mobile.value) s = 0; else if ( !t.widescreen || (o !== t.widescreen.value && o + 1 !== t.widescreen.value) ) { const e = n.findIndex((e) => o === e || o + 1 === e); s = n[e - 1]; } else s = o; (e.breakpoints[s] = e.breakpoints[r]), (e.breakpoints[r] = { slidesPerView: e.slidesPerView, slidesPerGroup: e.slidesPerGroup ? e.slidesPerGroup : 1, }); }), e ); } }; }, 3582: (e, t, n) => { Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0), n(6409); class _default extends elementorModules.ViewModule { getDefaultSettings() { return { selectors: { links: 'a[href^="%23elementor-action"], a[href^="#elementor-action"]', }, }; } bindEvents() { elementorFrontend.elements.$document.on( "click", this.getSettings("selectors.links"), this.runLinkAction.bind(this) ); } initActions() { this.actions = { lightbox: async (e) => { const t = await elementorFrontend.utils.lightbox; e.slideshow ? t.openSlideshow(e.slideshow, e.url) : (e.id && (e.type = "image"), t.showModal(e)); }, }; } addAction(e, t) { this.actions[e] = t; } runAction(e) { e = decodeURI(e); const t = (e = decodeURIComponent(e)).match(/action=(.+?)&/); if (!t) return; const n = this.actions[t[1]]; if (!n) return; let r = {}; const o = e.match(/settings=(.+)/); o && (r = JSON.parse(atob(o[1]))), (r.previousEvent = event); for ( var s = arguments.length, i = new Array(s > 1 ? s - 1 : 0), a = 1; a < s; a++ ) i[a - 1] = arguments[a]; n(r, ...i); } runLinkAction(e) { e.preventDefault(), this.runAction(jQuery(e.currentTarget).attr("href"), e); } runHashAction() { if (!location.hash) return; const e = document.querySelector( `[data-e-action-hash="${location.hash}"], a[href*="${location.hash}"]` ); e && this.runAction(e.getAttribute("data-e-action-hash")); } createActionHash(e, t) { return encodeURIComponent( `#elementor-action:action=${e}&settings=${btoa(JSON.stringify(t))}` ); } onInit() { super.onInit(), this.initActions(), elementorFrontend.on( "components:init", this.runHashAction.bind(this) ); } } t.default = _default; }, 7672: (e, t) => { Object.defineProperty(t, "__esModule", { value: !0 }), (t.isScrollSnapActive = t.escapeHTML = void 0); t.escapeHTML = (e) => { const t = { "&": "&", "<": "<", ">": ">", "'": "'", '"': """, }; return e.replace(/[&<>'"]/g, (e) => t[e] || e); }; t.isScrollSnapActive = () => "yes" === (elementorFrontend.isEditMode() ? elementor.settings.page.model.attributes?.scroll_snap : elementorFrontend.config.settings.page?.scroll_snap); }, 8427: (e, t) => { Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0); class BaseLoader extends elementorModules.ViewModule { getDefaultSettings() { return { isInserted: !1, selectors: { firstScript: "script:first" } }; } getDefaultElements() { return { $firstScript: jQuery(this.getSettings("selectors.firstScript")), }; } insertAPI() { this.elements.$firstScript.before( jQuery("