PageSourceSearch

https://hcde.org/_static/??-eJylkEsOwjAMRC9EGn4SZYE4CjKJoQ75WLEL6u…s3oFKrxGGEwAa4grhLriO/TbrHZztt22a7W4Q7Lwbct

js hcde.org collected 2026-10-02 04:37:31 UTC 111,503 bytes, 645 lines download raw bytes

1document.documentElement.className += " js_active ", document.documentElement.className += "ontouchstart" in document.documentElement ? " vc_mobile " : " vc_desktop ", (() => {
2    for (var e = ["-webkit-", "-moz-", "-ms-", "-o-", ""], t = 0; t < e.length; t++) e[t] + "transform" in document.documentElement.style && (document.documentElement.className += " vc_transform ")
3  })(), (c => {
4    "function" != typeof window.vc_js && (window.vc_js = function() {
5        /* nectar addition - limit to vc_rowBehaviour only */
6         vc_rowBehaviour();
7         /* nectar addition end */
8    }), "function" != typeof window.vc_plugin_flexslider && (window.vc_plugin_flexslider = function(e) {
9        (e ? e.find(".wpb_flexslider") : jQuery(".wpb_flexslider")).each(function() {
10            var e = jQuery(this),
11                t = 1e3 * parseInt(e.attr("data-interval"), 10),
12                o = e.attr("data-flex_fx"),
13                i = 0 == t ? !1 : !0;
14            e.is(":visible") && setTimeout(function() {
15                e.flexslider({
16                    animation: o,
17                    slideshow: i,
18                    slideshowSpeed: t,
19                    sliderSpeed: 800,
20                    smoothHeight: !0
21                })
22            }, 1)
23        })
24    }), "function" != typeof window.vc_googleplus && (window.vc_googleplus = function() {
25        var e, t;
26        0 < jQuery(".wpb_googleplus").length && ((e = document.createElement("script")).type = "text/javascript", e.async = !0, e.src = "https://apis.google.com/js/plusone.js", (t = document.getElementsByTagName("script")[0]).parentNode.insertBefore(e, t))
27    }), "function" != typeof window.vc_pinterest && (window.vc_pinterest = function() {
28        var e, t;
29        0 < jQuery(".wpb_pinterest").length && ((e = document.createElement("script")).type = "text/javascript", e.async = !0, e.src = "https://assets.pinterest.com/js/pinit.js", (t = document.getElementsByTagName("script")[0]).parentNode.insertBefore(e, t))
30    }), "function" != typeof window.vc_progress_bar && (window.vc_progress_bar = function() {
31        void 0 !== jQuery.fn.vcwaypoint && jQuery(".vc_progress_bar").each(function() {
32            var e = jQuery(this);
33            e.vcwaypoint(function() {
34                e.find(".vc_single_bar").each(function(e) {
35                    var t = jQuery(this).find(".vc_bar"),
36                        o = t.data("percentage-value");
37                    setTimeout(function() {
38                        t.css({
39                            width: o + "%"
40                        })
41                    }, 200 * e)
42                })
43            }, {
44                offset: "85%"
45            })
46        })
47    }), "function" != typeof window.vc_waypoints && (window.vc_waypoints = function() {
48        void 0 !== jQuery.fn.vcwaypoint && jQuery(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").each(function() {
49            var e = jQuery(this);
50            e.vcwaypoint(function() {
51                e.addClass("wpb_start_animation animated")
52            }, {
53                offset: "85%"
54            })
55        })
56    }), "function" != typeof window.vc_toggleBehaviour && (window.vc_toggleBehaviour = function(e) {
57        function t(e) {
58            e && e.preventDefault && e.preventDefault();
59            var t = jQuery(this).closest(".vc_toggle"),
60                e = t.find(".vc_toggle_content");
61            t.hasClass("vc_toggle_active") ? e.slideUp({
62                duration: 300,
63                complete: function() {
64                    t.removeClass("vc_toggle_active")
65                }
66            }) : e.slideDown({
67                duration: 300,
68                complete: function() {
69                    t.addClass("vc_toggle_active")
70                }
71            })
72        }(e ? e.hasClass("vc_toggle_title") ? e.unbind("click") : e.find(".vc_toggle_title").off("click") : jQuery(".vc_toggle_title").off("click")).on("click", t)
73    }), "function" != typeof window.vc_ttaToggleBehaviour && (window.vc_ttaToggleBehaviour = function(e) {
74        function t() {
75            var e = jQuery(this);
76            e.toggleClass("wpb-tta-toggle-active"), e.parent().parent().parent().find(".vc_pagination-item").each(function() {
77                if (!c(this).hasClass("vc_active")) return c(this).find("a").click(), !1
78            })
79        }(e ? e.find(".wpb-tta-toggle") : jQuery(".wpb-tta-toggle")).off("click").on("click", t), setTimeout(function() {
80            jQuery(".wpb-tta-toggle").each(function() {
81                var e = jQuery(this);
82                e.parent().parent().parent().find(".vc_tta-panels-container .vc_pagination li:first").hasClass("vc_active") || e.addClass("wpb-tta-toggle-active")
83            })
84        }, 1e3)
85    }), "function" != typeof window.vc_tabsBehaviour && (window.vc_tabsBehaviour = function(e) {
86        var t, i;
87        jQuery.ui && (e = e || jQuery(".wpb_tabs, .wpb_tour"), t = jQuery.ui && jQuery.ui.version ? jQuery.ui.version.split(".") : "1.10", i = 1 === parseInt(t[0], 10) && parseInt(t[1], 10) < 9, e.each(function() {
88            var e = jQuery(this).attr("data-interval"),
89                t = [],
90                o = jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({
91                    show: function(e, t) {
92                        wpb_prepare_tab_content(e, t)
93                    },
94                    activate: function(e, t) {
95                        wpb_prepare_tab_content(e, t)
96                    }
97                });
98            if (e && 0 < e) try {
99                o.tabs("rotate", 1e3 * e)
100            } catch (e) {
101                window.console && window.console.warn && console.warn("tabs behaviours error", e)
102            }
103            jQuery(this).find(".wpb_tab").each(function() {
104                t.push(this.id)
105            }), jQuery(this).find(".wpb_tabs_nav li").on("click", function(e) {
106                return e && e.preventDefault && e.preventDefault(), i ? o.tabs("select", jQuery("a", this).attr("href")) : o.tabs("option", "active", jQuery(this).index()), !1
107            }), jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").on("click", function(e) {
108                var t;
109                e && e.preventDefault && e.preventDefault(), i ? (t = o.tabs("option", "selected"), jQuery(this).parent().hasClass("wpb_next_slide") ? t++ : t--, t < 0 ? t = o.tabs("length") - 1 : t >= o.tabs("length") && (t = 0), o.tabs("select", t)) : (t = o.tabs("option", "active"), e = o.find(".wpb_tab").length, t = jQuery(this).parent().hasClass("wpb_next_slide") ? e <= t + 1 ? 0 : t + 1 : t - 1 < 0 ? e - 1 : t - 1, o.tabs("option", "active", t))
110            })
111        }))
112    }), "function" != typeof window.vc_accordionBehaviour && (window.vc_accordionBehaviour = function() {
113        jQuery(".wpb_accordion").each(function() {
114            var e = jQuery(this),
115                t = (e.attr("data-interval"), !isNaN(jQuery(this).data("active-tab")) && 0 < parseInt(e.data("active-tab"), 10) && parseInt(e.data("active-tab"), 10) - 1),
116                o = !1 === t || "yes" === e.data("collapsible"),
117                t = e.find(".wpb_accordion_wrapper").accordion({
118                    header: "> div > h3",
119                    autoHeight: !1,
120                    heightStyle: "content",
121                    active: t,
122                    collapsible: o,
123                    navigation: !0,
124                    activate: vc_accordionActivate,
125                    change: function(e, t) {
126                        void 0 !== jQuery.fn.isotope && t.newContent.find(".
126isotope").isotope("layout"), vc_carouselBehaviour(t.newPanel)
127                    }
128                });
129            !0 === e.data("vcDisableKeydown") && (t.data("uiAccordion")._keydown = function() {})
130        })
131    }), "function" != typeof window.vc_teaserGrid && (window.vc_teaserGrid = function() {
132        var i = {
133            fitrows: "fitRows",
134            masonry: "masonry"
135        };
136        jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function() {
137            var e = jQuery(this),
138                t = e.find(".wpb_thumbnails"),
139                o = t.attr("data-layout-mode");
140            t.isotope({
141                itemSelector: ".isotope-item",
142                layoutMode: void 0 === i[o] ? "fitRows" : i[o]
143            }), e.find(".categories_filter a").data("isotope", t).on("click", function(e) {
144                e && e.preventDefault && e.preventDefault();
145                e = jQuery(this).data("isotope");
146                jQuery(this).parent().parent().find(".active").removeClass("active"), jQuery(this).parent().addClass("active"), e.isotope({
147                    filter: jQuery(this).attr("data-filter")
148                })
149            }), jQuery(window).on("load resize", function() {
150                t.isotope("layout")
151            })
152        })
153    }), "function" != typeof window.vc_carouselBehaviour && (window.vc_carouselBehaviour = function(e) {
154        (e ? e.find(".wpb_carousel") : jQuery(".wpb_carousel")).each(function() {
155            var e = jQuery(this);
156            !0 !== e.data("carousel_enabled") && e.is(":visible") && (e.data("carousel_enabled", !0), getColumnsCount(jQuery(this)), jQuery(this).hasClass("columns_count_1"), (e = jQuery(this).find(".wpb_thumbnails-fluid li")).css({
157                "margin-right": e.css("margin-left"),
158                "margin-left": 0
159            }), (e = jQuery(this).find("ul.wpb_thumbnails-fluid")).width(e.width() + 300))
160        })
161    }), "function" != typeof window.vc_slidersBehaviour && (window.vc_slidersBehaviour = function() {
162        jQuery(".wpb_gallery_slides").each(function() {
163            var e, t, o = jQuery(this);
164            o.hasClass("wpb_slider_nivo") ? (0 === (t = 1e3 * o.attr("data-interval")) && (t = 9999999999), o.find(".nivoSlider").nivoSlider({
165                effect: "boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",
166                slices: 15,
167                boxCols: 8,
168                boxRows: 4,
169                animSpeed: 800,
170                pauseTime: t,
171                startSlide: 0,
172                directionNav: !0,
173                directionNavHide: !0,
174                controlNav: !0,
175                keyboardNav: !1,
176                pauseOnHover: !0,
177                manualAdvance: !1,
178                prevText: "Prev",
179                nextText: "Next"
180            })) : i.hasClass("wpb_image_grid") && i.find(".wpb_image_grid_ul") && i.find(".wpb_image_grid_ul").isotope && (jQuery.fn.imagesLoaded ? e = i.find(".wpb_image_grid_ul").imagesLoaded(function() {
181                e.isotope({
182                    itemSelector: ".isotope-item",
183                    layoutMode: "fitRows"
184                })
185            }) : o.find(".wpb_image_grid_ul").isotope({
186                itemSelector: ".isotope-item",
187                layoutMode: "fitRows"
188            }))
189        })
190    }), "function" != typeof window.vc_prettyPhoto && (window.vc_prettyPhoto = function() {
191        try {
192            jQuery && jQuery.fn && jQuery.fn.prettyPhoto && jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({
193                animationSpeed: "normal",
194                hook: "data-rel",
195                padding: 15,
196                opacity: .7,
197                showTitle: !0,
198                allowresize: !0,
199                counter_separator_label: "/",
200                hideflash: !1,
201                deeplinking: !1,
202                modal: !1,
203                callback: function() {
204                    -1 < location.href.indexOf("#!prettyPhoto") && (location.hash = "")
205                },
206                social_tools: ""
207            })
208        } catch (e) {
209            window.console && window.console.warn && window.console.warn("vc_prettyPhoto initialize error", e)
210        }
211    }), "function" != typeof window.vc_google_fonts && (window.vc_google_fonts = function() {
212        return window.console && window.console.warn && window.console.warn("function vc_google_fonts is deprecated, no need to use it"), !1
213    }), window.vcParallaxSkroll = !1, "function" != typeof window.vc_rowBehaviour && (window.vc_rowBehaviour = function() {
214        var s = window.jQuery;
215
216        function e() {
217            var e;
218            void 0 !== window.wpb_disable_full_width_row_js && window.wpb_disable_full_width_row_js || (e = s('[data-vc-full-width="true"]'), s.each(e, function() {
219                var e, t, o, i, n, a, r, c = s(this),
220                    d = (c.addClass("vc_hidden"), c.next(".vc_row-full-width"));
221                (d = d.length ? d : c.parent().next(".vc_row-full-width")).length && (e = parseInt(c.css("margin-left"), 10), t = parseInt(c.css("margin-right"), 10), o = 0 - d.offset().left - e, i = s(window).width(), n = {
222                    position: "relative",
223                    left: o = "rtl" === c.css("direction") ? (o = o - d.width() + i) + e + t : o,
224                    "box-sizing": "border-box",
225                    width: i,
226                    "max-width": i
227                }, c.css(n), c.data("vcStretchContent") || ("rtl" === c.css("direction") ? ((a = o) < 0 && (a = 0), (r = o) < 0 && (r = 0)) : (r = i - (a = (a = -1 * o) < 0 ? 0 : a) - d.width() + e + t) < 0 && (r = 0), c.css({
228                    "padding-left": a + "px",
229                    "padding-right": r + "px"
230                })), c.attr("data-vc-full-width-init", "true"), c.removeClass("vc_hidden"), s(document).trigger("vc-full-width-row-single", {
231                    el: c,
232                    offset: o,
233                    marginLeft: e,
234                    marginRight: t,
235                    elFull: d,
236                    width: i,
237                    maxWidth: i
238                }))
239            }), s(document).trigger("vc-full-width-row", e))
240        }
241
242        function t() {
243            var e, t, o = s(".vc_row-o-full-height:first");
244            o.length && (e = s(window).height(), (t = o.offset().top) < e) && o.css("min-height", 100 - t / (e / 100) + "vh"), s(document).trigger("vc-full-height-row", o)
245        }
246        s(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour", e).on("resize.vcRowBehaviour", t), e(), t(), (0 < window.navigator.userAgent.indexOf("MSIE ") || navigator.userAgent.match(/Trident.*rv\:11\./)) && s(".vc_row-o-full-height").each(function() {
247            "flex" === s(this).css("display") && s(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')
248        }
248), vc_initVideoBackgrounds();
249        var n = !1;
250        if (window.vcParallaxSkroll && window.vcParallaxSkroll.destroy(), s(".vc_parallax-inner").remove(), s("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"), s("[data-vc-parallax]").each(function() {
251                var e, t, o, i;
252                n = !0, "on" === s(this).data("vcParallaxOFade") && s(this).children().attr("data-5p-top-bottom", "opacity:0;").attr("data-30p-top-bottom", "opacity:1;"), e = 100 * s(this).data("vcParallax"), (t = s("<div />").addClass("vc_parallax-inner").appendTo(s(this))).height(e + "%"), o = s(this).data("vcParallaxImage"), (i = vcExtractYoutubeId(o)) ? insertYoutubeVideoAsBackground(t, i) : void 0 !== o && t.css("background-image", "url(" + o + ")"), t.attr("data-bottom-top", "top: " + -(e - 100) + "%;").attr("data-top-bottom", "top: 0%;")
253            }), n && window.skrollr) window.vcParallaxSkroll = skrollr.init({
254            forceHeight: !1,
255            smoothScrolling: !1,
256            mobileCheck: function() {
257                return !1
258            }
259        }), window.vcParallaxSkroll
260    }), "function" != typeof window.vc_gridBehaviour && (window.vc_gridBehaviour = function() {
261        jQuery.fn.vcGrid && jQuery("[data-vc-grid]").vcGrid()
262    }), "function" != typeof window.getColumnsCount && (window.getColumnsCount = function(e) {
263        for (var t = !1, o = 1; !1 === t;) {
264            if (e.hasClass("columns_count_" + o)) return t = !0, o;
265            o++
266        }
267    }), "function" != typeof window.wpb_prepare_tab_content && (window.wpb_prepare_tab_content = function(e, t) {
268        var o = t.panel || t.newPanel,
269            i = o.find(".vc_pie_chart:not(.vc_ready)"),
270            n = o.find(".vc_round-chart"),
271            a = o.find(".vc_line-chart"),
272            r = o.find('[data-ride="vc_carousel"]');
273        vc_carouselBehaviour(), vc_plugin_flexslider(o), t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length && t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function() {
274            var e = jQuery(this).data("vcGrid");
275            e && e.gridBuilder && e.gridBuilder.setMasonry && e.gridBuilder.setMasonry()
276        }), o.find(".vc_masonry_media_grid, .vc_masonry_grid").length && o.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function() {
277            var e = jQuery(this).data("vcGrid");
278            e && e.gridBuilder && e.gridBuilder.setMasonry && e.gridBuilder.setMasonry()
279        }), i.length && jQuery.fn.vcChat && i.vcChat(), n.length && jQuery.fn.vcRoundChart && n.vcRoundChart({
280            reload: !1
281        }), a.length && jQuery.fn.vcLineChart && a.vcLineChart({
282            reload: !1
283        }), r.length && jQuery.fn.carousel && r.carousel("resizeAction"), t = o.find(".isotope, .wpb_image_grid_ul"), i = o.find(".wpb_gmaps_widget"), 0 < t.length && t.isotope("layout"), i.length && !i.is(".map_ready") && ((n = i.find("iframe")).attr("src", n.attr("src")), i.addClass("map_ready")), o.parents(".isotope").length && o.parents(".isotope").each(function() {
284            jQuery(this).isotope("layout")
285        }), c(document).trigger("wpb_prepare_tab_content", o)
286    }), "function" != typeof window.vc_ttaActivation && (window.vc_ttaActivation = function() {
287        jQuery("[data-vc-accordion]").on("show.vc.accordion", function(e) {
288            var t = window.jQuery,
289                o = {};
290            o.newPanel = t(this).data("vc.accordion").getTarget(), window.wpb_prepare_tab_content(e, o)
291        })
292    }), "function" != typeof window.vc_accordionActivate && (window.vc_accordionActivate = function(e, t) {
293        var o, i, n, a;
294        t.newPanel.length && t.newHeader.length && (o = t.newPanel.find(".vc_pie_chart:not(.vc_ready)"), i = t.newPanel.find(".vc_round-chart"), n = t.newPanel.find(".vc_line-chart"), a = t.newPanel.find('[data-ride="vc_carousel"]'), void 0 !== jQuery.fn.isotope && t.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"), t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length && t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function() {
295            var e = jQuery(this).data("vcGrid");
296            e && e.gridBuilder && e.gridBuilder.setMasonry && e.gridBuilder.setMasonry()
297        }), vc_carouselBehaviour(t.newPanel), vc_plugin_flexslider(t.newPanel), o.length && jQuery.fn.vcChat && o.vcChat(), i.length && jQuery.fn.vcRoundChart && i.vcRoundChart({
298            reload: !1
299        }), n.length && jQuery.fn.vcLineChart && n.vcLineChart({
300            reload: !1
301        }), a.length && jQuery.fn.carousel && a.carousel("resizeAction"), t.newPanel.parents(".isotope").length) && t.newPanel.parents(".isotope").each(function() {
302            jQuery(this).isotope("layout")
303        })
304    }
304), "function" != typeof window.initVideoBackgrounds && (window.initVideoBackgrounds = function() {
305        return window.console && window.console.warn && window.console.warn("this function is deprecated use vc_initVideoBackgrounds"), vc_initVideoBackgrounds()
306    }), "function" != typeof window.vc_initVideoBackgrounds && (window.vc_initVideoBackgrounds = function() {
307        c(".vc_video-bg").remove(), c("[data-vc-video-bg]").each(function() {
308            var e, o = jQuery(this);
309            o.data("vcVideoBg") ? (e = o.data("vcVideoBg"), (e = vcExtractYoutubeId(e)) && (o.find(".vc_video-bg").remove(), insertYoutubeVideoAsBackground(o, e)), jQuery(window).on("grid:items:added", function(e, t) {
310                o.has(t).length && vcResizeVideoBackground(o)
311            })) : o.find(".vc_video-bg").remove()
312        })
313    }), "function" != typeof window.insertYoutubeVideoAsBackground && (window.insertYoutubeVideoAsBackground = function(e, t, o) {
314        if ("undefined" == typeof YT || void 0 === YT.Player) return 100 < (o = void 0 === o ? 0 : o) ? void console.warn("Too many attempts to load YouTube api") : void setTimeout(function() {
315            insertYoutubeVideoAsBackground(e, t, o++)
316        }, 100);
317        var i = e.prepend('<div class="vc_video-bg"><div class="inner"></div></div>').find(".inner");
318        new YT.Player(i[0], {
319            width: "100%",
320            height: "100%",
321            videoId: t,
322            playerVars: {
323                playlist: t,
324                iv_load_policy: 3,
325                enablejsapi: 1,
326                disablekb: 1,
327                autoplay: 1,
328                controls: 0,
329                showinfo: 0,
330                rel: 0,
331                loop: 1,
332                mute: 1,
333                wmode: "transparent"
334            },
335            events: {
336                onReady: function(e) {
337                    e.target.mute().setLoop(!0)
338                }
339            }
340        }), vcResizeVideoBackground(e), jQuery(window).on("resize", function() {
341            vcResizeVideoBackground(e)
342        })
343    }), "function" != typeof window.vcResizeVideoBackground && (window.vcResizeVideoBackground = function(e) {
344        var t, o, i, n, a = e.innerWidth(),
345            r = e.innerHeight();
346        a / r < 16 / 9 ? (t = r * (16 / 9), o = r, i = -Math.round((t - a) / 2) + "px", n = -Math.round((o - r) / 2) + "px") : (o = (t = a) * (9 / 16), n = -Math.round((o - r) / 2) + "px", i = -Math.round((t - a) / 2) + "px"), t += "px", o += "px", e.find(".vc_video-bg iframe").css({
347            maxWidth: "1000%",
348            marginLeft: i,
349            marginTop: n,
350            width: t,
351            height: o
352        })
353    }), "function" != typeof window.vcExtractYoutubeId && (window.vcExtractYoutubeId = function(e) {
354        return void 0 !== e && null !== (e = e.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/)) && e[1]
355    }), "function" != typeof window.vc_googleMapsPointer && (window.vc_googleMapsPointer = function() {
356        var e = window.jQuery,
357            t = e(".wpb_gmaps_widget");
358        t.on("click", function() {
359            e("iframe", this).css("pointer-events", "auto")
360        }), t.on("mouseleave", function() {
361            e("iframe", this).css("pointer-events", "none")
362        }), e(".wpb_gmaps_widget iframe").css("pointer-events", "none")
363    }), "function" != typeof window.vc_setHoverBoxPerspective && (window.vc_setHoverBoxPerspective = function(e) {
364        e.each(function() {
365            var e = jQuery(this),
366                t = e.width();
367            e.css("perspective", 4 * t + "px")
368        })
369    }), "function" != typeof window.vc_setHoverBoxHeight && (window.vc_setHoverBoxHeight = function(e) {
370        e.each(function() {
371            var e = jQuery(this),
372                t = e.find(".vc-hoverbox-inner"),
373                o = (t.css("min-height", 0), e.find(".vc-hoverbox-front-inner").outerHeight()),
374                e = e.find(".vc-hoverbox-back-inner").outerHeight(),
375                o = e < o ? o : e;
376            t.css("min-height", (o = o < 250 ? 250 : o) + "px")
377        })
378    }
378), "function" != typeof window.vc_prepareHoverBox && (window.vc_prepareHoverBox = function() {
379        var e = jQuery(".vc-hoverbox");
380        vc_setHoverBoxHeight(e), vc_setHoverBoxPerspective(e)
381    }), jQuery(document).ready(window.vc_prepareHoverBox), jQuery(window).on("resize", window.vc_prepareHoverBox), jQuery(document).ready(function() {
382        window.vc_js()
383    })
384  })(window.jQuery);;
385function setupEmployeeSearch(input, wrapper) {
386	const isSchool = wrapper.getAttribute('data-is-school') === 'true';
387
388	const rawLocation = wrapper.getAttribute('data-location') || '';
389	const locations = rawLocation
390		.split(',')
391		.map(loc => loc.trim())
392		.filter(loc => loc.length > 0);
393
394	const locationParam = locations.map(encodeURIComponent).join(',');
395
396	const handleSearch = debounce(() => {
397		const query = input.value.trim();
398		if (query.length === 0) {
399			hcdeCustomUpdateEmployeeResults([]);
400			return;
401		}
402		fetch(`${HCDE_Employee_Directory.searchEndpoint}?query=${encodeURIComponent(query)}&is_school=${isSchool}&location=${locationParam}`)
403			.then(res => res.json())
404			.then(data => {
405				if (Array.isArray(data)) {
406					hcdeCustomUpdateEmployeeResults(data);
407				} else {
408					console.error('Unexpected response format:', data);
409				}
410			})
411			.catch(err => {
412				console.error('Fetch error:', err);
413			});
414	}, 300);
415
416	input.addEventListener('input', handleSearch);
417}
418
419function hcdeCustomUpdateEmployeeResults(employees) {
420	const container = document.getElementById('hcde-employee-results-container');
421	container.innerHTML = '';
422	employees.forEach(employee => {
423		container.appendChild(hcdeCustomRenderEmployeeCard(employee));
424	});
425}
426
427function hcdeCustomRenderEmployeeCard(employee) {
428	const wrapper = document.createElement('div');
429	wrapper.className = 'hcde-custom-employee-card';
430	wrapper.setAttribute('role', 'region');
431	wrapper.setAttribute('aria-label', `Employee: ${employee.DisplayName}`);
432
433	const button = document.createElement('button');
434	button.className = 'hcde-custom-icon-container';
435	button.setAttribute('aria-label', `Email ${employee.DisplayName}`);
436	button.setAttribute('title', `Click to email ${employee.DisplayName}`);
437	button.onclick = () => {
438		hcdeCustomOpenEmailForm({
439			email: employee.Email,
440			name: employee.DisplayName
441		});
442	};
443
444	const icon = document.createElement('img');
445	icon.src = HCDE_Employee_Directory.emailIconUrl;
446	icon.alt = 'Email Icon';
447	icon.className = 'hcde-custom-email-icon';
448	icon.setAttribute('aria-hidden', 'true');
449
450	button.appendChild(icon);
451
452	const info = document.createElement('div');
453	info.className = 'hcde-custom-employee-info';
454	info.innerHTML = `
455		<div class="hcde-custom-employee-name" title="Name">${employee.DisplayName}</div>
456		<div class="hcde-custom-employee-job" title="Job Title">${employee.JobDesc}</div>
457		<div class="hcde-custom-employee-location" title="Location">${employee.LocationDesc}</div>
458	`;
459
460	wrapper.appendChild(button);
461	wrapper.appendChild(info);
462
463	return wrapper;
464}
465window.setupEmployeeSearch = setupEmployeeSearch;
466;
467function hcdeCustomOpenEmailForm(employeeContact) {
468	const popup = document.getElementById('hcde-custom-emailPopup-container');
469	const popup2 = document.getElementById('hcde-custom-emailPopup');
470	if (popup) popup.classList.remove('hidden');
471	if (popup2) popup2.classList.remove('hidden');
472
473	window.recipientEmail = employeeContact.email;
474	window.recipientName = employeeContact.name;
475
476	const titleEl = document.getElementById('hcde-email-form-title');
477	if (titleEl) titleEl.textContent = `Contact Employee: ${employeeContact.name ?? ''}`;
478}
479
480function hcdeCustomCloseEmailForm() {
481	const form = document.getElementById('hcde-custom-emailForm');
482	if (form) form.reset();
483
484	const titleEl = document.getElementById('hcde-email-form-title');
485	if (titleEl) titleEl.textContent = 'Contact Employee';
486
487	const messageBox = document.getElementById('hcde-custom-emailMessage');
488	const popup = document.getElementById('hcde-custom-emailPopup-container');
489	const popup2 = document.getElementById('hcde-custom-emailPopup');
490
491	if (popup) popup.classList.add('hidden');
492	if (popup2) popup2.classList.add('hidden');
493	if (messageBox) messageBox.innerHTML = '';
494
495	window.recipientEmail = null;
496}
497
498function hcdeCustomFormatText(command) {
499	document.execCommand(command, false, null);
500}
501window.hcdeCustomOpenEmailForm = hcdeCustomOpenEmailForm;
502window.hcdeCustomCloseEmailForm = hcdeCustomCloseEmailForm;
503window.hcdeCustomFormatText = hcdeCustomFormatText;
504;
505function hcdeCustomValidateForm(form, sendButton) {
506	const fromEmail = form.querySelector('[name="fromEmail"]').value;
507	const fromName = form.querySelector('[name="fromName"]').value;
508	const subject = form.querySelector('[name="subject"]').value;
509	const message = document.getElementById('hcde-custom-emailMessage').innerText;
510
511	const isValid = (
512		/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(fromEmail) &&
513		fromName.trim().length >= 2 &&
514		subject.trim().length >= 2 &&
515		message.trim().length >= 2
516	);
517
518	sendButton.disabled = !isValid;
519}
520
521function hcdeCustomSendEmail() {
522	const form = document.getElementById('hcde-custom-emailForm');
523	const fromEmailInput = form.querySelector('[name="fromEmail"]');
524	const fromNameInput = form.querySelector('[name="fromName"]');
525	const subjectInput = form.querySelector('[name="subject"]');
526	const messageDiv = document.getElementById('hcde-custom-emailMessage');
527
528	const fromEmail = fromEmailInput.value.trim();
529	const fromName = fromNameInput.value.trim();
530	const subject = subjectInput.value.trim();
531	const message = messageDiv.innerHTML.trim();
532	const toEmail = window.recipientEmail;
533	const toName = window.recipientName;
534
535	if (!validateEmailForm(form, fromEmailInput, fromNameInput, subjectInput, messageDiv, fromEmail, fromName, subject, message)) {
536		return;
537	}
538
539	const payload = {
540		FormEmail: fromEmail,
541		FormName: fromName,
542		FormSubject: subject,
543		FormMessage: message,
544		ToEmail: toEmail,
545		ToName: toName
546	};
547
548	fetch('/wp-json/hcde-custom-employee-data/v1/send-email', {
549		method: 'POST',
550		headers: {
551			'Content-Type': 'application/json',
552			'Authorization': 'Bearer ' + window.hcdeCustomApiToken
553		},
554		body: JSON.stringify(payload)
555	})
556	.then(res => res.json())
557	.then(data => {
558		if (data.success) {
559			alert('✅ Email sent successfully!');
560			hcdeCustomCloseEmailForm();
561		} else {
562			alert('❌ Failed to send email: ' + (data.error || 'Unknown error.'));
563		}
564	})
565	.catch(err => {
566		console.error('Error sending email:', err);
567		alert('Something went wrong.');
568	});
569}
570
571function validateEmailForm(form, fromEmailInput, fromNameInput, subjectInput, messageDiv, fromEmail, fromName, subject, message) {
572	let hasError = false;
573
574	form.querySelectorAll('.hcde-error').forEach(el => el.remove());
575
576	function showError(inputEl, message) {
577		const errorEl = document.createElement('div');
578		errorEl.className = 'hcde-error';
579		errorEl.style.color = 'red';
580		errorEl.style.fontSize = '0.875rem';
581		errorEl.style.marginTop = '4px';
582		errorEl.textContent = message;
583		inputEl.insertAdjacentElement('afterend', errorEl);
584		hasError = true;
585	}
586
587	if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(fromEmail) || fromEmail.length > 255) {
588		showError(fromEmailInput, 'Valid email under 256 characters is required *');
589	}
590	if (fromName.length < 2 || fromName.length > 255) {
591		showError(fromNameInput, 'Your name must be under 256 characters *');
592	}
593	if (subject.length < 2 || subject.length > 999) {
594		showError(subjectInput, 'Subject must be under 1000 characters *');
595	}
596	if (message.length < 2) {
597		showError(messageDiv, 'Message is required *');
598	}
599
600	return !hasError;
601}
602window.hcdeCustomValidateForm = hcdeCustomValidateForm;
603window.hcdeCustomSendEmail = hcdeCustomSendEmail;
604;
605document.addEventListener('DOMContentLoaded', () => {
606	// Employee Search
607	const input = document.getElementById('hcde-employee-search-input');
608	const wrapper = document.querySelector('.hcde-employee-search-wrapper');
609	if (input && wrapper) {
610		setupEmployeeSearch(input, wrapper); // 👈 Call from employee-search.js
611	}
612
613	// Email Link Integration
614	document.querySelectorAll('.hcde-email-link').forEach(link => {
615		link.addEventListener('click', function (e) {
616			e.preventDefault();
617			const email = this.dataset.email;
618			const name = this.dataset.name || 'Employee';
619			if (email) hcdeCustomOpenEmailForm({ email, name }); // 👈 From email-popup.js
620		});
621	});
622
623	// Email Form Validation
624	const form = document.getElementById('hcde-custom-emailForm');
625	if (form) {
626		const sendButton = form.querySelector('button[type="submit"]');
627		const inputs = form.querySelectorAll('input, [contenteditable="true"]');
628
629		inputs.forEach(input => {
630			input.addEventListener('input', () => hcdeCustomValidateForm(form, sendButton));
631			input.addEventListener('blur', () => hcdeCustomValidateForm(form, sendButton));
632		});
633	}
634});
635
636function debounce(func, delay) {
637	let timeout;
638	return function (...args) {
639		clearTimeout(timeout);
640		timeout = setTimeout(() => func.apply(this, args), delay);
641	};
642}
643;
644window.nectarFlickityActive=!0,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";var i=Array.prototype.slice,n=t.console,s=void 0===n?function(){}:function(t){n.error(t)};function o(n,o,a){(a=a||e||t.jQuery)&&(o.prototype.option||(o.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[n]=function(t){var e;
644return"string"==typeof t?function(t,e,i){var o,r="$()."+n+'("'+e+'")';return t.each(function(t,l){var h=a.data(l,n);if(h){var c=h[e];if(c&&"_"!=e.charAt(0)){var d=c.apply(h,i);o=void 0===o?d:o}else s(r+" is not a valid method")}else s(n+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==o?o:t}(this,t,i.call(arguments,1)):(e=t,this.each(function(t,i){var s=a.data(i,n);s?(s.option(e),s._init()):(s=new o(i,e),a.data(i,n,s))}),this)},r(a))}function r(t){!t||t&&t.bridget||(t.bridget=o)}return r(e||t.jQuery),o}),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||{};return(i[t]=i[t]||{})[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],s=0;s<i.length;s++){var o=i[s];n&&n[o]&&(this.off(t,o),delete n[o]),o.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);return-1==t.indexOf("%")&&!isNaN(e)&&e}var e="undefined"==typeof console?function(){}:function(t){console.error(t)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],n=i.length;function s(t){var i=getComputedStyle(t);return i||e("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),i}var o,r=!1;function a(e){if(function(){if(!r){r=!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 n=s(e);o=200==Math.round(t(n.width)),a.isBoxSizeOuter=o,i.removeChild(e)}}(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var l=s(e);if("none"==l.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<n;e++)t[i[e]]=0;return t}();var h={};h.width=e.offsetWidth,h.height=e.offsetHeight;for(var c=h.isBorderBox="border-box"==l.boxSizing,d=0;d<n;d++){var u=i[d],f=l[u],p=parseFloat(f);h[u]=isNaN(p)?0:p}var g=h.paddingLeft+h.paddingRight,v=h.paddingTop+h.paddingBottom,m=h.marginLeft+h.marginRight,y=h.marginTop+h.marginBottom,b=h.borderLeftWidth+h.borderRightWidth,E=h.borderTopWidth+h.borderBottomWidth,S=c&&o,C=t(l.width);!1!==C&&(h.width=C+(S?0:g+b));var x=t(l.height);return!1!==x&&(h.height=x+(S?0:v+E)),h.innerWidth=h.width-(g+b),h.innerHeight=h.height-(v+E),h.outerWidth=h.width+m,h.outerHeight=h.height+y,h}}return a}),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]+"MatchesSelector";if(t[n])return n}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
644sandro-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={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},n=Array.prototype.slice;i.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?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 s=[];return t.forEach(function(t){if(t instanceof HTMLElement||0!=jQuery("body.compose-mode").length)if(n){e(t,n)&&s.push(t);for(var i=t.querySelectorAll(n),o=0;o<i.length;o++)s.push(i[o])}else s.push(t)}),s},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s];clearTimeout(t);var e=arguments,o=this;this[s]=setTimeout(function(){n.apply(o,e),delete o[s]},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 s=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var o=i.toDashed(n),r="data-"+o,a=document.querySelectorAll("["+r+"]"),l=document.querySelectorAll(".js-"+o),h=i.makeArray(a).concat(i.makeArray(l)),c=r+"-options",d=t.jQuery;h.forEach(function(t){var i,o=t.getAttribute(r)||t.getAttribute(c);try{i=o&&JSON.parse(o)}catch(e){return void(s&&s.error("Error parsing "+r+" on "+t.className+": "+e))}var a=new e(t,i);d&&d.data(t,n,a)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("get-size")):(t.Flickity=t.Flickity||{},t.Flickity.Cell=e(t,t.getSize))}(window,function(t,e){function i(t,e){this.element=t,this.parent=e,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0,this.element.style[this.parent.originSide]=0},n.showFocusables=function(){var t=this.element.querySelectorAll("a[href], button, input, textarea, select, details,[tabindex]");t.length>0&&Array.from(t).forEach(function(t){t.removeAttribute("aria-hidden"),t.setAttribute("tabindex","0")})},n.hideFocusables=function(){var t=this.element.querySelectorAll("a[href], button, input, textarea, select, details,[tabindex]");t.length>0&&Array.from(t).forEach(function(t){t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")})},n.destroy=function(){this.unselect(),this.element.style.position="";var t=this.parent.originSide;this.element.style[t]="",this.element.style.transform="",this.element.removeAttribute("aria-hidden")},n.getSize=function(){this.size=e(this.element)},n.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},n.updateTarget=n.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},n.renderPosition=function(t){var e="left"===this.parent.originSide?1:-1,i=this.parent.options.percentPosition?t*e*(this.parent.size.innerWidth/this.size.width):t*e;this.element.style.transform="translateX("+this.parent.getPositionValue(i)+")"},n.select=function(){this.element.classList.add("is-selected"),this.showFocusables(),this.element.removeAttribute("aria-hidden")},n.unselect=function(){this.element.classList.remove("is-selected"),this.hideFocusables(),this.element.setAttribute("aria-hidden","true")},n.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/slide",e):"object"==typeof module&&module.exports?module.exports=e():(t.Flickity=t.Flickity||{},t.Flickity.Slide=e())}(window,function(){"use strict";function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){if(this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}},e.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),i=e?e.size[t]:0,n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]}
644,e.select=function(){this.cells.forEach(function(t){t.select()})},e.unselect=function(){this.cells.forEach(function(t){t.unselect()})},e.getCellElements=function(){return this.cells.map(function(t){return t.element})},t}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("fizzy-ui-utils")):(t.Flickity=t.Flickity||{},t.Flickity.animatePrototype=e(t,t.fizzyUIUtils))}(window,function(t,e){var i={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var t=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating){var e=this;requestAnimationFrame(function(){e.animate()})}},positionSlider:function(){var i=this.x;this.options.wrapAround&&this.cells.length>1&&(i=e.modulo(i,this.slideableWidth),i-=this.slideableWidth,this.shiftWrapCells(i)),this.setTranslateX(i,this.isAnimating||this.options.alwaysUse3dTransforms);var n=this.options.scrollEventThrottle||0;if(n>0){var s=t.performance&&performance.now?performance.now():Date.now();this._lastScrollDispatch||(this._lastScrollDispatch=0),s-this._lastScrollDispatch>=n&&(this._lastScrollDispatch=s,this.dispatchScrollEvent())}else this.dispatchScrollEvent()},setTranslateX:function(t,e){t+=this.cursorPosition,t=this.options.rightToLeft?-t:t;var i=this.getPositionValue(t);this.slider.style.transform=e?"translate3d("+i+",0,0)":"translateX("+i+")"},dispatchScrollEvent:function(){var t=this.slides[0];if(t){var e=-this.x-t.target,i=e/this.slidesWidth;this.dispatchEvent("scroll",null,[i,e])}},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},settle:function(t){!this.isPointerDown&&Math.round(100*this.x)==Math.round(100*t)&&this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},_shiftCells:function(t,e,i){for(var n=0;n<t.length;n++){var s=t[n],o=e>0?i:0;s.wrapShift(o),e-=s.size.outerWidth}},_unshiftCells:function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},integratePhysics:function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},applyForce:function(t){this.velocity+=t},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){if(this.isDraggable&&this.isPointerDown){var t=this.dragX-this.x-this.velocity;this.applyForce(t)}},applySelectedAttraction:function(){if(!(this.isDraggable&&this.isPointerDown)&&!this.isFreeScrolling&&this.slides.length){var t=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction;this.applyForce(t)}}};return i}),function(t,e){if("function"==typeof define&&define.amd)define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(i,n,s,o,r,a){return e(t,i,n,s,o,r,a)});else if("object"==typeof module&&module.exports)module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./sli
644de"),require("./animate"));else{var i=t.Flickity;t.Flickity=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,i.Cell,i.Slide,i.animatePrototype)}}(window,function(t,e,i,n,s,o,r){var a=t.jQuery,l=t.getComputedStyle,h=t.console;function c(t,e){for(t=n.makeArray(t);t.length;)e.appendChild(t.shift())}var d=0,u={};function f(t,e){var i=n.getQueryElement(t);if(i){if(this.element=i,this.element.flickityGUID){var s=u[this.element.flickityGUID];return s&&s.option(e),s}a&&(this.$element=a(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),this._create()}else h&&h.error("Bad element for Flickity: "+(i||t))}f.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},f.createMethods=[];var p=f.prototype;n.extend(p,e.prototype),p._create=function(){var e=this.guid=++d;this.element.flickityGUID=e,u[e]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.$element.hasClass("generate-markup")?(this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport"):(this.viewport=this.$element.find(".flickity-viewport")[0],this.slider=this.$element.find(".flickity-slider")[0],this.viewport.className="flickity-viewport"),this._createSlider(),this.nectarOnMobile=!!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/),this.nectarOrientationChanged=!1;var i=this;for(var n in t.addEventListener("orientationchange",function(){i.nectarOrientationChanged=!0}),(this.options.resize||this.options.watchCSS)&&t.addEventListener("resize",this),this.options.on){var s=this.options.on[n];this.on(n,s)}f.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},p.option=function(t){n.extend(this.options,t)},p.activate=function(){if(!this.isActive){this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize();var t=this._filterFindCellElements(this.element.children);this.$element.hasClass("generate-markup")&&(c(t,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport)),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready")}},p._createSlider=function(){if(this.$element.hasClass("generate-markup")){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t}else this.slider.style[this.originSide]=0},p._filterFindCellElements=function(t){return n.filterFindElements(t,this.options.cellSelector)},p.reloadCells=function(){if(a(this.slider).parent().parent().find(".flickity-page-dots").length>0){var t=this;setTimeout(function(){t.pageDots.setDots()},100)}var e=[];a(this.slider).find("> *").each(function(t){e[t]=a(this)[0]}),this.cells=this._makeCells(e),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},p._makeCells=function(t){return this._filterFindCellElements(t).map(function(t){return new s(t,this)},this)},p.getLastCell=function(){return this.cells[this.cells.length-1]},p.getLastSlide=function(){return this.slides[this.slides.length-1]},p.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},p._positionCells=function(t){t=t||0,this.maxCellHeight=t&&this.maxCellHeight||0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}for(var n=this.cells.length,s=t;s<n;s++){var o=this.cells[s];o.setPosition(e),e+=o.size.outerWidth,this.maxCellHeight=Math.max(o.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},p._sizeCells=function(t){t.forEach(function(t){t.getSize()})},p.updateSlides=function(){if(this.slides=[],this.cells.length){var t=new o(this);this.slides.push(t);
vendor: 5,554 bytes, line 644
644var e="left"==this.originSide?"marginRight":"marginLeft",i=this._getCanCellFit();this.cells.forEach(function(n,s){if(t.cells.length){var r=t.outerWidth-t.firstMargin+(n.size.outerWidth-n.size[e]);i.call(this,s,r)?t.addCell(n):(t.updateTarget(),t=new o(this),this.slides.push(t),t.addCell(n))}else t.addCell(n)},this),t.updateTarget(),this.updateSelectedSlide()}},p._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var e=parseInt(t,10);return function(t){return t%e!=0}}var i="string"==typeof t&&t.match(/^(\d+)%$/),n=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*n}},p._init=p.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},p.getSize=function(){this.size=i(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var g={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return p.setCellAlign=function(){var t=g[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},p.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},p._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)}},p._getGapCells=function(t,e,i){for(var n=[];t>0;){var s=this.cells[e];if(!s)break;n.push(s),e+=i,t-=s.size.outerWidth}return n},p._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":"marginLeft",i=t?"marginLeft":"marginRight",n=this.slideableWidth-this.getLastCell().size[i],s=n<this.size.innerWidth,o=this.cursorPosition+this.cells[0].size[e],r=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){s?t.target=n*this.cellAlign:(t.target=Math.max(t.target,o),t.target=Math.min(t.target,r))},this)}},p.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),a&&this.$element){var s=t+=this.options.namespaceJQueryEvents?".flickity":"";if(e){var o=new a.Event(e);o.type=t,s=o}this.$element.trigger(s,i)}},p.select=function(t,e,i){if(this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=n.modulo(t,this.slides.length)),this.slides[t])){var s=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=s&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect")}},p._wrapSelect=function(t){var e=this.slides.length;if(!(this.options.wrapAround&&e>1))return t;var i=n.modulo(t,e),s=Math.abs(i-this.selectedIndex),o=Math.abs(i+e-this.selectedIndex),r=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&o<s?t+=e:!this.isDragSelect&&r<s&&(t-=e),t<0?this.x-=this.slideableWidth:t>=e&&(this.x+=this.slideableWidth)},p.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},p.next=function(t,e){this.select(this.selectedIndex+1,t,e)},p.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},p.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},p.selectInitialIndex=function(){var t=this.options.initialIndex;if(this.isInitActivated)this.select(this.selectedIndex,!1,!0);else{if(t&&"string"==typeof t)if(this.queryCell(t))return void this.selectCell(t,!1,!0);var e=0;t&&this.slides[t]&&(e=t),this.select(e,!1,!0)}},p.selectCell=function(t,e,i){var n=this.queryCell(t);if(n){var s=this.getCellSlideIndex(n);this.select(s,e,i)}},p.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++){if(-1!=this.slides[e].cells.indexOf(t))return e}},p.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t)return i}},p.getCells=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getCell(t);i&&e.push(i)},this),e},p.getCellElements=function(){return this.cells.map(function(t){return t.element})},p.getParentCell=function(t){var e=this.getCell(t);return e||(t=n.getParent(t,".flickity-slider > *"),this.getCell(t))},p.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(1+2*t>=i)return this.getCellElements();for(var s=[],o=e-t;o<=e+t;o++){var r=this.options.wrapAround?n.modulo(o,i):o,a=this.slides[r];a&&(s=s.concat(a.getCellElements()))}return s},p.queryCell=function(t){if("number"==typeof t)return this.cells[t];if("string"==typeof t){if(t.match(/^[#.]?[\d/]/))return;t=this.element.querySelector(t)}return this.getCell(t)},p.uiChange=function(){this.emitEvent("uiChange")},p.childUIPointerDown=function(t){"touchstart"!=t.type&&t.preventDefault(),this.focus()},p.onresize=function(){this.watchCSS(),this.resize()},n.debounceMethod(f,"onresize",150),p.resize=function(){if((!this.nectarOnMobile||0!=this.nectarOrientationChanged)&&this.isActive&&!this.isAnimating&&!this.isDragging){this.get
644Size(),this.options.wrapAround&&(this.x=n.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},p.watchCSS=function(){this.options.watchCSS&&(-1!=l(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},p.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!e){var i=f.keyboardHandlers[t.keyCode];i&&i.call(this)}},f.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}},p.focus=function(){var e=t.pageYOffset;this.element.focus({preventScroll:!0}),t.pageYOffset!=e&&e>10&&t.scrollTo(t.pageXOffset,e)},p.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(t){t.destroy()}),this.element.removeChild(this.viewport),c(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},p.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),a&&this.$element&&a.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete u[this.guid]},n.extend(p,r),f.data=function(t){var e=(t=n.getQueryElement(t))&&t.flickityGUID;return e&&u[e]},n.htmlInit(f,"flickity"),a&&a.bridget&&a.bridget("flickity",f),f.setJQuery=function(t){a=t},f.Cell=s,f.Slide=o,f}),function(t,e){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.Unipointer=e(t,t.EvEmitter)}(window,function(t,e){function i(){}var n=i.prototype=Object.create(e.prototype);n.bindStartEvent=function(t){this._bindStartEvent(t,!0)},n.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},n._bindStartEvent=function(e,i){var n=(i=void 0===i||i)?"addEventListener":"removeEventListener",s="mousedown";"ontouchstart"in t?s="touchstart":t.PointerEvent&&(s="pointerdown"),e[n](s,this)},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier)return i}},n.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},n.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},n.onpointerdown=function(t){this._pointerDown(t,t)},n._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},n.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var s={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return n._bindPostStartEvents=function(e){if(e){var i=s[e.type];i.forEach(function(e){t.addEventListener(e,this)},this),this._boundPointerEvents=i}},n._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(e){t.removeEventListener(e,this)},this),delete this._boundPointerEvents)},n.onmousemove=function(t){this._pointerMove(t,t)},n.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},n.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},n._pointerMove=function(t,e){this.pointerMove(t,e)},n.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},n.onmouseup=function(t){this._pointerUp(t,t)},n.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},n.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},n._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])}
644,n._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},n._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},n.pointerDone=function(){},n.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},n.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},n._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},n.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},i.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},i}),function(t,e){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("unipointer")):t.Unidragger=e(t,t.Unipointer)}(window,function(t,e){function i(){}var n=i.prototype=Object.create(e.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(e){for(var i=(e=void 0===e||e)?"addEventListener":"removeEventListener",n=e?this._touchActionValue:"",s=0;s<this.handles.length;s++){var o=this.handles[s];this._bindStartEvent(o,e),o[i]("click",this),t.PointerEvent&&(o.style.touchAction=n)}},n._touchActionValue="none",n.pointerDown=function(t,e){this.okayPointerDown(t)&&(this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var s={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},o={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return n.okayPointerDown=function(t){var e=s[t.target.nodeName],i=o[t.target.type],n=!e||i;return n||this._pointerReset(),n},n.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},n._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},n.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},n._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},n._dragStart=function(t,e){this.isDragging=!0,this.isPreventing
vendor: 9,726 bytes, line 644
644Clicks=!0,this.dragStart(t,e)},n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},n._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},n.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},n._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},n.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},n._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},i.getPointerPoint=e.getPointerPoint,i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(i,n,s){return e(t,i,n,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):t.Flickity=e(t,t.Flickity,t.Unidragger,t.fizzyUIUtils)}(window,function(t,e,i,n){n.extend(e.defaults,{draggable:">1",dragThreshold:3,scrollEventThrottle:0,alwaysUse3dTransforms:!1}),e.createMethods.push("_createDrag");var s=e.prototype;n.extend(s,i.prototype),s._touchActionValue="pan-y",s._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable)},s.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},s.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},s.updateDraggable=function(){">1"==this.options.draggable?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},s.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},s.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},s._uiChangeDrag=function(){delete this.isFreeScrolling},s.pointerDown=function(e,i){this.isDraggable?this.okayPointerDown(e)&&(this._pointerDownPreventDefault(e),this.pointerDownFocus(e),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=r(),t.addEventListener("scroll",this),this._pointerDownDefault(e,i)):this._pointerDownDefault(e,i)},s._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},this._bindPostStartEvents(t),this.dispatchEvent("pointerDown",t,[e])};var o={INPUT:!0,TEXTAREA:!0,SELECT:!0};function r(){return{x:t.pageXOffset,y:t.pageYOffset}}return s.pointerDownFocus=function(t){o[t.target.nodeName]||this.focus()},s._pointerDownPreventDefault=function(t){var e="touchstart"==t.type,i="touch"==t.pointerType,n=o[t.target.nodeName];e||i||n||t.preventDefault()},s.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},s.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},s.pointerDone=function(){t.removeEventListener("scroll",this),delete this.pointerDownScroll},s.dragStart=function(e,i){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),t.removeEventListener("scroll",this),this.dispatchEvent("dragStart",e,[i]))},s.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},s.dragMove=function(t,e,i){if(this.isDraggable){t.preventDefault(),this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1;this.options.wrapAround&&(i.x%=this.slideableWidth);var s=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var o=Math.max(-this.slides[0].target,this.dragStartPosition);s=s>o?.5*(s+o):s;var r=Math.min(-this.getLastSlide().target,this.dragStartPosition);s=s<r?.5*(s+r):s}this.dragX=s,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i])}},s.dragEnd=function(t,e){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var n=this.getRestingPosition();this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target}else this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e])}},s.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),n=this._getClosestResting(t,e,-1);return i.distance<n.distance?i.index:n.index},s._getClosestResting=function(t,e,i){for(var n=this.selectedIndex,s=1/0,o=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};o(e,s)&&(n+=i,s=e,null!==(e=this.getSlideDistance(-t,n)));)e=Math.abs(e);return{distance:s,index:n-i}},s.getSlideDistance=function(t,e){var i=this.slides.length,s=this.options.wrapAround&&i>1,o=s?n.modulo(e,i):e,r=this.slides[o];if(!r)return null;var a=s?this.slideableWidth*Math.floor(e/i):0;return t-(r.target+a)},s.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return t>0&&e>0?1:t<0&&e<0?-1:0},s.staticClick=function(t,e){var i=this.getParentCell(t.target),n=i&&i.element,s=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,s])},s.onscroll=function(){var t=r(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(Math.abs(e)>3||Math.abs(i)>3)&&this._pointerDone()},e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(i,n,s){return e(t,i,n,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):e(t,t.Flickity,t.Unipointer,t.fizzyUIUtils)}(window,function(t,e,i,n){"use strict";var s="http://www.w3.org/2000/svg";function o(t,e){this.direction=t,this.parent=e,this._create()}o.prototype=Object.create(i.prototype),o.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},o.prototype.createSVG=function(){var t=document.createElementNS(s,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(s,"path"),i=function(t){if("string"==typeof t)return t;return"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50  L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}(this.parent.options.arrowShape);return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},o.prototype.handleEvent=n.handleEvent,o.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},o.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},o.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},o.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1)this.enable();else{var e=t.length?t.length-1:0,i=this.isPrevious?0:e;this[this.parent.selectedIndex==i?"disable":"enable"]()}},o.prototype.destroy=function(){this.deactivate(),this.allOff()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var r=e.prototype;return r._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new o(-1,this),this.nextButton=new o(1,this),this.on("activate",this.activatePrevNextButtons))},r.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},r.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=o,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(i,n,s){return e(t,i,n,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):e(t,t.Flickity,t.Unipointer,t.fizzyUIUtils)}
644(window,function(t,e,i,n){function s(t){this.parent=t,this._create()}s.prototype=Object.create(i.prototype),s.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},s.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},s.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},s.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},s.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],n=this.dots.length,s=n+t,o=n;o<s;o++){var r=document.createElement("li");r.className="dot",r.setAttribute("aria-label","Page dot "+(o+1)),e.appendChild(r),i.push(r)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},s.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach(function(t){this.holder.removeChild(t)},this)},s.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},s.prototype.onTap=s.prototype.onClick=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},s.prototype.destroy=function(){this.deactivate(),this.allOff()},e.PageDots=s,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var o=e.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new s(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},o.activatePageDots=function(){this.pageDots.activate()},o.updateSelectedPageDots=function(){this.pageDots.updateSelected()},o.updatePageDots=function(){this.pageDots.setDots()},o.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=s,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(t,i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):e(t.EvEmitter,t.fizzyUIUtils,t.Flickity)}(window,function(t,e,i){function n(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}n.prototype=Object.create(t.prototype),n.prototype.play=function(){"playing"!=this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},n.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var s=i.prototype;return s._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},s.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},s.playPlayer=function(){this.player.play()},s.stopPlayer=function(){this.player.stop()},s.pausePlayer=function(){this.player.pause()},s.unpausePlayer=function(){this.player.unpause()},s.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},s.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},s.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("fizzy-ui-utils")):e(t,t.Flickity,t.fizzyUIUtils)}
644(window,function(t,e,i){var n=e.prototype;return n.insert=function(t,e){var i=this._makeCells(t);if(i&&i.length){var n=this.cells.length;e=void 0===e?n:e;var s=function(t){var e=document.createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element)}),e}(i),o=e==n;if(o)this.slider.appendChild(s);else{var r=this.cells[e].element;this.slider.insertBefore(s,r)}if(0===e)this.cells=i.concat(this.cells);else if(o)this.cells=this.cells.concat(i);else{var a=this.cells.splice(e,n-e);this.cells=this.cells.concat(i).concat(a)}this._sizeCells(i),this.cellChange(e,!0)}},n.append=function(t){this.insert(t,this.cells.length)},n.prepend=function(t){this.insert(t,0)},n.remove=function(t){var e=this.getCells(t);if(e&&e.length){var n=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);n=Math.min(e,n),i.removeFrom(this.cells,t)},this),this.cellChange(n,!0)}},n.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},n.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize();var n=this.getCell(i);n&&(this.selectedIndex=this.getCellSlideIndex(n)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("fizzy-ui-utils")):e(t,t.Flickity,t.fizzyUIUtils)}(window,function(t,e,i){"use strict";e.createMethods.push("_createLazyload");var n=e.prototype;function s(t,e){this.img=t,this.flickity=e,this.load()}return n._createLazyload=function(){this.on("select",this.lazyLoad)},n.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,n=this.getAdjacentCellElements(e),o=[];n.forEach(function(t){var e=function(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),n=t.getAttribute("data-flickity-lazyload-src"),s=t.getAttribute("data-flickity-lazyload-srcset");if(e||n||s)return[t]}var o=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return i.makeArray(o)}(t);o=o.concat(e)}),o.forEach(function(t){new s(t,this)},this)}},s.prototype.handleEvent=i.handleEvent,s.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},s.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},s.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},s.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,n)},e.LazyLoader=s,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],e):"object"==typeof module&&module.exports&&(module.exports=e(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))}(window,function(t){return t}),function(t,e){"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],e):"object"==typeof module&&module.exports?module.exports=e(require("flickity"),require("fizzy-ui-utils")):t.Flickity=e(t.Flickity,t.fizzyUIUtils)}(window,function(t,e){t.createMethods.push("_createAsNavFor");var i=t.prototype;return i._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var t=this.options.asNavFor;if(t){var e=this;setTimeout(function(){e.setNavCompanion(t)})}},i.setNavCompanion=function(i){i=e.getQueryElement(i);var n=t.data(i);if(n&&n!=this){this.navCompanion=n;var s=this;this.onNavCompanionSelect=function(){s.navCompanionSelect()},n.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},i.navCompanionSelect=function(t){var e=this.navCompanion&&this.navCompanion.selectedCells;if(e){var i,n,s,o=e[0],r=this.navCompanion.cells.indexOf(o),a=r+e.length-1,l=Math.floor((i=r,n=a,s=this.navCompanion.cellAlign,(n-i)*s+i));if(this.selectCell(l,!1,t),this.removeNavSelectedElements(),!(l>=this.cells.length)){var h=this.cells.slice(r,a+1);this.navSelectedElements=h.map(function(t){return t.element}),this.changeNavSelectedClass("add")}}},i.changeNavSelectedClass=function(t){this.navSelectedElements.forEac
644h(function(e){e.classList[t]("is-nav-selected")})},i.activateAsNavFor=function(){this.navCompanionSelect(!0)},i.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},i.onNavStaticClick=function(t,e,i,n){"number"==typeof n&&this.navCompanion.selectCell(n)},i.deactivateAsNavFor=function(){this.removeNavSelectedElements()},i.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"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){var i=t.jQuery,n=t.console;function s(t,e){for(var i in e)t[i]=e[i];return t}var o=Array.prototype.slice;function r(t,e,a){if(!(this instanceof r))return new r(t,e,a);var l,h=t;("string"==typeof t&&(h=document.querySelectorAll(t)),h)?(this.elements=(l=h,Array.isArray(l)?l:"object"==typeof l&&"number"==typeof l.length?o.call(l):[l]),this.options=s({},this.options),"function"==typeof e?a=e:s(this.options,e),a&&this.on("always",a),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):n.error("Bad element for imagesLoaded "+(h||t))}r.prototype=Object.create(e.prototype),r.prototype.options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&a[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var s=i[n];this.addImage(s)}if("string"==typeof this.options.background){var o=t.querySelectorAll(this.options.background);for(n=0;n<o.length;n++){var r=o[n];this.addElementBackgroundImages(r)}}}};var a={1:!0,9:!0,11:!0};function l(t){this.img=t}function h(t,e){this.url=t,this.element=e,this.img=new Image}return r.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var s=n&&n[2];s&&this.addBackground(s,t),n=i.exec(e.backgroundImage)}},r.prototype.addImage=function(t){var e=new l(t);this.images.push(e)},r.prototype.addBackground=function(t,e){var i=new h(t,e);this.images.push(i)},r.prototype.check=function(){var t=this;function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},r.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&&n&&n.log("progress: "+i,t,e)},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},l.prototype=Object.create(e.prototype),l.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,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.src)},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},l.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},h.prototype=Object.create(l.prototype),h.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.naturalWi
644dth,"naturalWidth"),this.unbindEvents())},h.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},h.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},r.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((i=e).fn.imagesLoaded=function(t,e){return new r(this,t,e).jqDeferred.promise(i(this))})},r.makeJQueryPlugin(),r}),function(t,e){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("flickity"),require("imagesloaded")):t.Flickity=e(t,t.Flickity,t.imagesLoaded)}(window,function(t,e,i){"use strict";e.createMethods.push("_createImagesLoaded");var n=e.prototype;return n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},n.imagesLoaded=function(){if(this.options.imagesLoaded){var t=this;i(this.slider).on("progress",function(e,i){var n=t.getParentCell(i.img);t.cellSizeChange(n&&n.element),t.options.freeScroll||t.positionSliderAtSelected()})}},e});;
645!function(e,t,a){"use strict";function n(){this.scripts=[],this.eventListeners=["click","scroll","touchstart","touchmove","keydown","mousemove"],this.windowWidth=t.innerWidth,this.windowHeight=t.innerHeight,this.noClick=this.preventClick.bind(this),this.load=this.triggerLoad.bind(this),this.shouldDelayForViewTransition=this.shouldDelayForViewTransition(),this.pageCritical(),this.pauseOffscreenMarquees(),this.lazyLoadCriticalMedia(),this.loadCriticalAnimations(),this.gatherElements(),this.addEvents()}const i=n.prototype;i.gatherElements=function(){a.querySelectorAll('script[type="salientlazyscript"]').forEach(e=>{this.scripts.push(e)})},i.pauseOffscreenMarquees=function(){const e=this.windowHeight;a.querySelectorAll(".nectar-scrolling-text").forEach(t=>{const a=t.getBoundingClientRect();(a.top>e+150||a.bottom<-150)&&t.classList.add("offscreen-paused")})},i.aboveTheFoldElements=function(e){let t=[];const n=this;a.querySelectorAll(".container-wrap .vc_row:not(.inner_row)").forEach((a,i)=>{if(i<2){if(1==i){if(a.getBoundingClientRect().top>n.windowHeight)return}a.querySelectorAll(e).forEach(e=>{t.push(e)})}});const i=a.querySelectorAll(".woocommerce.archive .products, .archive .posts-container, .nectar_hook_global_section_after_header_navigation, .nectar_hook_before_secondary_header");return i&&i.forEach((a,n)=>{a.querySelectorAll(e).forEach(e=>{t.push(e)})}),t},i.maybeAddAnimationEasing=function(e){let t="";if(this.windowWidth>1e3||this.shouldDelayForViewTransition){let n="cubic-bezier(0.33, 1, 0.68, 1)",i="0s",r="1s";if(e.hasAttribute("data-animation-easing")){const t=e.getAttribute("data-animation-easing");void 0!==this.easings[t]&&(n="cubic-bezier("+this.easings[t]+")")}a.body.hasAttribute("data-cad")&&(r=parseInt(a.body.getAttribute("data-cad"))+"ms"),e.hasAttribute("data-delay")&&""!==e.getAttribute("data-delay")&&(i=parseInt(e.getAttribute("data-delay"))+"ms"),t="transform "+r+" "+n+" "+i+", clip-path "+r+" "+n+" "+i+", opacity "+r+" "+n+" "+i}return t},i.pageCritical=function(){const e=a.querySelector(".container-wrap > .main-content > .row");if(e){const t=e.children;if(t.length>0){const e=t[t.length-1];(e.classList.contains("full-width-section")||e.classList.contains("full-width-content"))&&(a.querySelector(".container-wrap").style.paddingBottom="0")}}const t=a.getElementById("header-outer");if(t){t.querySelectorAll("a[href*='"+location.pathname+"']").forEach(function(e){const t=e.getAttribute("href");if(t&&-1!==t.indexOf("#")){const n=t.substring(t.indexOf("#")+1).replace(/[^a-zA-Z0-9-]/g,"");if(n.length>0){if(a.getElementById(n)){const t=e.parentNode;t.classList.add("no-pseudo-after-transition"),t.classList.remove("current_page_item"),t.classList.remove("current-menu-item"),setTimeout(()=>{t.classList.remove("no-pseudo-after-transition")},100)}a.querySelector('div[data-fullscreen-anchor-id="'+n+'"]')&&(e.parentNode.classList.remove("current_page_item"),e.parentNode.classList.remove("current-menu-item"))}}})}if(this.windowWidth<1e3&&null!==a.querySelector('#header-outer[data-mobile-fixed="1"]')&&null===a.querySelector('#header-outer[data-transparent-header="true"]')){var n=a.querySelector("#header-outer"),i=a.querySelector("#header-space");n&&i&&(i.style.height=n.offsetHeight+"px")}const r=a.querySelector(".container.main-content");
645if(r){var o=this.stickyOffsetCalc();r.style.setProperty("--nectar-sticky-top-distance",o+"px")}if(a.querySelector("#nectar_fullscreen_rows")){const e=null!==a.querySelector('#nectar_fullscreen_rows[data-mobile-disable="off"]'),t=this.aboveTheFoldElements('.nectar-split-heading[data-text-effect="letter-reveal-bottom"]');this.windowWidth<1e3&&e?t.forEach(e=>{e.setAttribute("data-text-effect","default")}):this.windowWidth>=1e3&&t.forEach(e=>{e.setAttribute("data-text-effect","default")})}this.wooCommerce(),this.parallaxPositioning(),this.backdropFilters()},i.backdropFilters=function(){a.querySelectorAll(".wpb_column").forEach(function(e){if(e.classList.contains("backdrop_filter_blur")){var t=e.closest(".wpb_row");if(t){t.classList.add("row-col-gap");var a=t.getAttribute("data-column-margin")||"default";if("default"!==a){var n=t.querySelector(".span_12");n&&(n.style.columnGap=a)}}}})},i.stickyOffsetCalc=function(){var e=50,t=a.querySelector('#header-outer[data-remove-fixed="0"]'),n=null===a.querySelector('#header-outer[data-format="left-header"]'),i="true"===a.body.getAttribute("data-contained-header"),r=this.windowWidth<1e3,o=a.querySelector("#wpadminbar"),s=a.querySelector('#header-outer[data-shrink-num][data-header-resize="1"]'),l=a.querySelector('#header-outer[data-condense="true"]');if(t&&n){if(e+=t.offsetHeight,i&&(e+=parseInt(getComputedStyle(t).marginTop)),s){var c=parseInt(t.getAttribute("data-padding"))-parseInt(t.getAttribute("data-padding"))/1.8;e-=parseInt(t.getAttribute("data-shrink-num"))||0,e-=2*c}if(!r&&l){var d=a.querySelector('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9'),u=a.querySelector("#header-outer #logo"),h=a.querySelector("#header-secondary-outer"),m=h&&h.length>0&&"none"!==h.style.display?h.offsetHeight:0;e=50,e+=t.offsetHeight-(d.offsetTop-parseInt(getComputedStyle(u).marginTop))-parseInt(m)}}return o&&(e+=o.offsetHeight),e},i.parallaxPositioning=function(){const e=t.scrollY,n=this.windowWidth,i=this.windowHeight;a.querySelectorAll('.wpb_column[data-scroll-animation="true"], .nectar-el-parallax-scroll[data-scroll-animation="true"]').forEach(function(r,o){if("true"===r.getAttribute("data-scroll-animation")&&null===a.getElementById("nectar_fullscreen_rows")&&null===r.closest(".
645n-sticky")&&null===r.closest(".nectar-global-section-megamenu")){let o=r,s=o.querySelector(":scope > .vc_column-inner"),l=o.getAttribute("data-scroll-animation-intensity")?Math.max(Math.min(parseFloat(o.getAttribute("data-scroll-animation-intensity")),8),-8):3;l/=10;const c=!(!o.hasAttribute("data-scroll-animation-mobile")||"true"!==o.getAttribute("data-scroll-animation-mobile"));r.classList.contains("wpb_column")||null!==r.closest(".cell")||(s=r,o=r.parentNode,r.hasAttribute("data-scroll-animation-movement")&&o.setAttribute("data-scroll-animation-movement",r.getAttribute("data-scroll-animation-movement")));const d=o.closest(".col.has-animation");let u=0;if(d){const e=t.getComputedStyle(d).transform.split(",")[5];e&&(u=parseInt(e))}const h=o.getBoundingClientRect(),m=h.top+e-u,f=o.offsetHeight,p=i/2-f/2;let y="translateY";"transform_x"===o.getAttribute("data-scroll-animation-movement")&&(y="translateX");let g=!1;o.closest(".top-level")&&(g=!0,o.getBoundingClientRect().top+e>i&&(g=!1));let b=!1;a.querySelector(".nectar_hook_global_section_parallax_footer")&&(b=!0);let w=l;if(n<1025&&(w/=1.2),n<690&&(w/=1.35),h.top>2*i||h.top+f<-i)return;s.style.transform=!0===g&&n>1e3||!0===g&&c?y+"("+-e*w+"px) translateZ(0)":!0===b&&n>1e3||!0===b&&c?y+"("+-(e-(m+f)+i)*w+"px) translateZ(0)":n>1e3||c?y+"("+-(e-m+p)*w+"px) translateZ(0)":y+"(0px) translateZ(0)"}})},i.wooCommerce=function(){if(!a.querySelector("body.woocommerce-account #customer_login"))return;const e=a.querySelector(".woocommerce-account .woocommerce > #customer_login");if(!e)return;const t=a.createElement("div");t.className="nectar-form-controls",e.prepend(t),a.querySelectorAll(".woocommerce-account .woocommerce > #customer_login > div:not(.nectar-form-controls)").forEach(function(e,n){const i=e.querySelector(":scope > h2");if(i){const e=i.textContent,r=a.createElement("div");r.className=0===n?"control active":"control",r.textContent=e,t.appendChild(r)}});const n=a.querySelector(".woocommerce-account .woocommerce > #customer_login .u-column1");n&&n.classList.add("visible")},i.splitLineHeadingAnimation=function(e){const t=e.hasAttribute("data-animation-delay")?parseInt(e.getAttribute("data-animation-delay")):0,a=Array.from(e.children),n=e.hasAttribute("data-text-effect")?e.getAttribute("data-text-effect"):"default";if("none"===n||"scroll-opacity-reveal"===n)return;let i="opacity 1s cubic-bezier(0.33, 1, 0.68, 1), transform 1s cubic-bezier(0.33, 1, 0.68, 1), filter 1s cubic-bezier(0.33, 1, 0.68, 1)";
645e.closest(".nectar-post-grid-item")&&(i=""),a.forEach(e=>{let t=e.textContent;const a=(t=t?t.trim():"").split(" "),i=n.includes("letter-reveal");t&&e.setAttribute("aria-label",t),e.innerHTML="";for(var r=0;r<a.length;r++)e.innerHTML+=i?'<span aria-hidden="true">'+a[r]+"</span> ":'<span aria-hidden="true"><span class="inner" style="transition: none;">'+a[r]+"</span></span> ";i&&e.querySelectorAll("span").forEach(e=>{let t=e.textContent;e.innerHTML="";for(var a=0;a<t.length;a++)e.innerHTML+='<span class="inner" style="transition: none;">'+t[a]+"</span>"})});const r=this.shouldDelayForViewTransition?450:0;setTimeout(()=>{setTimeout(()=>{e.querySelectorAll(".inner").forEach((t,a)=>{const r=e.hasAttribute("data-stagger")&&"true"===e.getAttribute("data-stagger")?40:0;setTimeout(()=>{t.style="","twist-bottom-2"===n&&(t.style.transition="transform 1100ms cubic-bezier(0.165, 0.84, 0.44, 1), opacity 1100ms cubic-bezier(0.165, 0.84, 0.44, 1)"),0==r&&(t.style.transition=i),t.style.transform="translateY(0em)",t.style.opacity="1",t.style.filter="none"},r*a)})},t+10)},r),e.classList.add("animated-in","markup-generated"),e.setAttribute("data-stored-text-effect",n),e.setAttribute("data-text-effect","none")},i.loadCriticalAnimations=function(){const n=this.shouldDelayForViewTransition?450:0;this.easings={linear:"0,0,1,1",easeInSine:"0.12, 0, 0.39, 0",easeOutSine:"0.61, 1, 0.88, 1",easeInOutSine:"0.37, 0, 0.63, 1",easeInQuad:"0.11, 0, 0.5, 0",easeOutQuad:"0.5, 1, 0.89, 1",easeInOutQuad:"0.45, 0, 0.55, 1",easeInCubic:"0.32, 0, 0.67, 0",easeOutCubic:"0.33, 1, 0.68, 1",easeInOutCubic:"0.65, 0, 0.35, 1",easeInQuart:"0.5, 0, 0.75, 0",easeOutQuart:"0.25, 1, 0.5, 1",easeInOutQuart:"0.76, 0, 0.24, 1",easeInQuint:"0.64, 0, 0.78, 0",easeOutQuint:"0.22, 1, 0.36, 1",easeInOutQuint:"0.83, 0, 0.17, 1",easeInExpo:"0.8, 0, 0.2, 0",easeOutExpo:"0.19, 1, 0.22, 1",easeInOutExpo:"0.87, 0, 0.13, 1",easeInCirc:"0.6, 0, 0.98, 0",easeOutCirc:"0, 0.55, 0.45, 1",easeInOutCirc:"0.85, 0, 0.15, 1"};const i=a.getElementById("ajax-loading-screen");if(i&&i.classList.add("loaded"),t.nectarOptions&&t.nectarOptions.header_entrance&&"true"==t.nectarOptions.header_entrance&&a.querySelector("#header-outer")&&a.querySelector("#header-outer").classList.add("entrance-animation"),t.NectarBoxRollHelper&&a.querySelector(".nectar-box-roll")){(new NectarBoxRollHelper).setInitialSize(),a.querySelectorAll("body, html, #ajax-content-wrap, .container-wrap, .blurred-wrap").forEach(e=>{e.classList.add("no-scroll")})}const r=a.querySelector("#page-header-bg .nectar-particles .inner-wrap >*:not(.top-heading)");r&&(r.style.transform="translate3d(0,0,0)",r.style.opacity="1"),setTimeout(()=>{const e=a.querySelector(".widget_shopping_cart .cart_list .empty"),t=a.querySelector(".widget_shopping_cart .cart_list"),n=a.querySelector("#mobile-cart-link"),i=a.querySelector(".cart-menu-wrap.static");!e&&!i&&n&&t&&n.classList.add("first-load")},80),a.querySelectorAll(".vc_row.top-level").forEach(e=>{e.classList.add("loaded")}),this.aboveTheFoldElements('.img-with-aniamtion-wrap:not([data-animation="none"])').forEach(e=>{const t=e.querySelector(".hover-wrap"),a=e.querySelector(".inner"),i=e.querySelector(".img-with-animation"),r=[e,a,t,i];i&&t&&(t.style.transition=this.maybeAddAnimationEasing(i)),this.windowWidth<1e3&&r.forEach(e=>{e&&(e.style.transition="none")}),setTimeout(()=>{r.forEach(e=>{e&&(e.style.opacity="1",e.style.transform="translate3d(0,0,0)")})},n),i&&i.classList.add("animated-in")}),this.aboveTheFoldElements('.wpb_column.has-animation:not([data-animation*="reveal"]), .nectar-fancy-box.has-animation').forEach(e=>{e.style.transition=this.maybeAddAnimationEasing(e),setTimeout(()=>{e.style.transform="translate3d(0,0,0)",e.style.opacity="1"},n),e.classList.add("animated-in")}),this.aboveTheFoldElements('.wpb_column.has-animation[data-animation*="reveal"]').forEach(e=>{[e,e.querySelector(".vc_column-inner")].forEach(t=>{t&&(t.style.transition=this.maybeAddAnimationEasing(e),setTimeout(()=>{t.style.opacity="1",t.style.transform="translate3d(0,0,0)"},n))}),e.classList.add("animated-in")});const o=this.aboveTheFoldElements(".nectar_cascading_images");setTimeout(()=>
645{o.forEach(e=>{e.querySelectorAll(".inner-wrap, .inner-wrap img").forEach(e=>{e.style.transition="none",e.style.transform="translate3d(0,0,0)",e.style.opacity="1"})})},n);const s=this.aboveTheFoldElements('.row-bg-wrap[data-bg-animation]:not([data-bg-animation="none"])'),l=this.aboveTheFoldElements('.column-image-bg-wrap[data-bg-animation]:not([data-bg-animation="none"])'),c=this.aboveTheFoldElements('.nectar-post-grid:not([data-animation="none"])'),d=this.aboveTheFoldElements(".wpb_animate_when_almost_visible"),u=this.aboveTheFoldElements(".nectar-waypoint-el");if(setTimeout(()=>{s.forEach(e=>{e.parentElement.classList.add("animated-in"),e.classList.add("animated-in"),e.querySelectorAll(".row-bg, .inner-wrap").forEach(e=>{e.classList.add("animated-in")})}),l.forEach(e=>{e.parentElement.classList.add("revealed-bg"),e.classList.add("animated-in"),e.parentElement.querySelectorAll(".column-bg-layer").forEach(e=>{e.classList.add("animated-in")}),e.querySelectorAll(".column-image-bg, .inner-wrap").forEach(e=>{e.classList.add("animated-in")})}),c.forEach(e=>{const t=e.hasAttribute("data-animation-stagger")?e.getAttribute("data-animation-stagger"):90,a=e.querySelectorAll(".nectar-post-grid-item");e.parentElement.classList.add("delay-js-loaded"),a.forEach((e,a)=>{setTimeout(()=>{e.classList.add("animated-in")},a*t)});const n=e.parentElement.querySelector(".nectar-post-grid-filters");n&&n.classList.add("animated-in"),setTimeout(function(){e.classList.add("finished-animating")},950)}),d.forEach(e=>{e.classList.add("wpb_start_animation"),e.classList.add("animated")}),u.forEach(e=>{e.classList.add("animated-in")})},n),this.aboveTheFoldElements(".nectar-split-heading").forEach(e=>{"line-reveal-by-space"===e.getAttribute("data-animation-type")&&this.windowWidth>=1e3?this.splitLineHeadingAnimation(e):setTimeout(()=>{e.setAttribute("data-text-effect","none"),e.classList.add("animated-in"),e.querySelectorAll(".heading-line > div").forEach(e=>{e.style.transform="translate3d(0,0,0)"})},n)}),setTimeout(()=>{this.aboveTheFoldElements(".nectar-text-inline-images__marker").forEach(e=>{e.classList.add("animated-in")}),this.aboveTheFoldElements(".nectar-highlighted-text em").forEach(e=>{e.classList.add("animated")}),this.aboveTheFoldElements(".nectar-animated-title").forEach(e=>{e.classList.add("completed")}),this.aboveTheFoldElements('.nectar-icon-list[data-animate="true"]').forEach(e=>{e.classList.add("completed"),e.querySelectorAll(".nectar-icon-list-item").forEach(e=>{e.classList.add("animated")})}),this.aboveTheFoldElements('.nectar-fancy-ul[data-animation="true"]').forEach(e=>{e.classList.add("animated-in");const t=e.getAttribute("data-list-icon"),n=t.split(" "),i=e.getAttribute("data-color");e.querySelectorAll("ul li").forEach(e=>{const r=a.createElement("i");t&&i&&(r.classList.add("icon-default-style",i),n.forEach(e=>{r.classList.add(e)})),e.style.left="0",e.style.opacity="1",e.prepend(r)})}),this.aboveTheFoldElements('.divider-border[data-animate="yes"], .divider-small-border[data-animate="yes"]').forEach(e=>{e.style.visibility="visible",e.classList.add("completed")})},n),this.aboveTheFoldElements(".nectar-rotating-words-title").forEach(e=>{e.style.opacity="1",e.classList.add("animated-in"),e.classList.add("delay-js-loaded");const t=e.querySelectorAll(".text-wrap > span"),a=e.getAttribute("data-delay"),i=a&&""!==a&&!isNaN(parseInt(a))?parseInt(a):0;setTimeout(()=>{t.forEach(e=>{e.style.transform="translate3d(0,0,0)"})},n+i)}),"undefined"!=typeof SalientRecentProjectsFullScreen){this.aboveTheFoldElements(".nectar_fullscreen_zoom_recent_projects").forEach(t=>{new SalientRecentProjectsFullScreen(e(t))})}this.aboveTheFoldElements(".wpb_gallery_slidesflickity_static_height_style .item-meta").forEach(e=>{const t=e.parentElement.querySelector("img");t&&(e.style.width=t.offsetWidth+"px")}),this.aboveTheFoldElements('.nectar-woo-flickity[data-animation*="fade"]').forEach(e=>{e.classList.add("animated-in");const t=e.querySelectorAll(".product");setTimeout(()=>{t.forEach(e=>{e.style.opacity="1",e.style.transform="translate3d(0,0,0)"})},n)});const h=a.querySelectorAll(".vc_row-o-full-height:not(.top-level)"),m=this.windowHeight;
645h.forEach(e=>{e.style.minHeight=parseInt(m)+"px";const t=e.querySelector(".col.span_12");t&&(t.style.minHeight=parseInt(m)+"px")});const f=a.querySelectorAll('.row > .top-level:not(.has-global-section) .wpb_wrapper > .nectar-slider-wrap[data-full-width="true"], .row > .top-level:not(.has-global-section) .portfolio-items[data-col-num="elastic"]'),p=a.querySelectorAll('#page-header-bg, .page-header-no-bg, .project-title, .body[data-bg-header="true"], body.single'),y=a.querySelectorAll("#portfolio-extra"),g=a.querySelectorAll("#full_width_portfolio"),b=y.length>0&&0==g.length;if(f.length>0&&0==p.length&&!1===b){const e=a.querySelector(".container-wrap");e&&(e.style.paddingTop="0px")}const w=a.querySelector(".blog-fullwidth-wrap");if(!!(w&&w.querySelectorAll(".span_12.masonry.meta_overlaid").length>0)){w.classList.add("meta-overlaid");const e=a.querySelector(".container-wrap");e&&e.classList.add("meta_overlaid_blog")}this.windowWidth>470&&setTimeout(()=>{const e=function(){};a.querySelectorAll(".portfolio-items:not(.carousel)").forEach(t=>{"undefined"!=typeof SalientPortfolio&&"undefined"!=typeof jQuery&&new SalientPortfolio(jQuery(t),e,"",e)}),a.querySelectorAll(".masonry:not(.auto_meta_overlaid_spaced) > .posts-container").forEach(t=>{if("undefined"!=typeof NectarMasonryBlog&&"undefined"!=typeof jQuery){new NectarMasonryBlog(jQuery(t),e,e),t.querySelectorAll(".masonry-blog-item").forEach(e=>{e.classList.add("animated-in")})}})},200);const v=a.querySelector("body.material #slide-out-widget-area.slide-out-from-right .slide_out_area_close");v&&v.classList.add("hide_until_rendered")},i.shouldDelayForViewTransition=function(){if(!a.startViewTransition)return!1;if(this.windowWidth<1e3)return!1;if("reveal-from-bottom"!==(t.nectarOptions&&t.nectarOptions.view_transitions_effect?t.nectarOptions.view_transitions_effect:""))return!1;if("undefined"==typeof performance||!performance.getEntriesByType)return!1;const e=performance.getEntriesByType("navigation");if(e.length>0){const n=e[0].type,i=a.referrer,r=t.location.origin;if(!i||i.includes("wp-admin"))return!1;if("reload"===n)return!1;if("navigate"===n)return!0;if("back_forward"===n)return new URL(i).origin===r}return!1},i.pageLoadHashCheck=function(){let e=t.location.hash;if(e&&e.length>0){e=e.replace(/[^a-zA-Z0-9-]/g,""),a.getElementById(e)&&this.load()}},i.lazyLoadCriticalMedia=function(){let e=this.aboveTheFoldElements("[data-nectar-img-src]");const t=new Map;(e=e.filter(e=>{if(e.closest(".nectar-post-grid[data-lazy-skip]"))return!1;if(e.closest(".nectar-content-trail"))return!1;const a=e.closest("ul.products");if(a){const e=t.get(a)||0;if(e>=3)return!1;t.set(a,e+1)}return!0})).forEach(e=>{var t=e.getAttribute("data-nectar-img-src");if(t)if(e.classList.contains("nectar-lazy")){e.addEventListener("load",function(){e.classList.add("loaded"),e.removeAttribute("data-nectar-img-src")}),e.src=t;var a=e.getAttribute("data-nectar-img-srcset");a&&(e.setAttribute("srcset",a),e.removeAttribute("data-nectar-img-srcset")),e.parentNode.classList.add("img-loaded")}else e.style.backgroundImage="url('"+t+"')",e.classList.add("loaded"),e.removeAttribute("data-nectar-img-src")}),this.aboveTheFoldElements(".nectar-lazy-video").forEach(e=>{for(var t in e.children){const a=e.children[t];"string"==typeof a.tagName&&"SOURCE"===a.tagName&&(a.src=a.dataset.nectarVideoSrc)}e.load(),e.classList.remove("lazy"),e.classList.add("loaded")}),this.handleBackgroundVideoAutoplay()},i.handleBackgroundVideoAutoplay=function(){const e=this;a.querySelectorAll(".nectar-video-wrap .nectar-video-bg").forEach(t=>{e.watchBackgroundVideoAutoplay(t)})},i.watchBackgroundVideoAutoplay=function(e){if("true"===e.dataset.nectarAutoplayChecked)return;e.dataset.nectarAutoplayChecked="true";const a=()=>{const a=e.play();a&&"function"==typeof a.catch&&a.catch(a=>{a&&"NotAllowedError"===a.name&&(()=>{const a=e.closest(".nectar-video-wrap");if(!a||"true"===a.dataset.autoplayHidden)return;const n=a.parentNode;if(!n)return;const i=n.querySelector(":scope > .mobile-video-image");if(!i)return;const r=t.getComputedStyle(i).backgroundImage;
645r&&"none"!==r&&!/^url\(["']?["']?\)$/.test(r)&&(a.dataset.autoplayHidden="true",i.style.display="block",a.style.opacity="0",a.style.pointerEvents="none")})()})};e.readyState>=2?a():e.addEventListener("loadeddata",a,{once:!0})},i.addEvents=function(){this.ocmLinks=a.querySelectorAll(".slide-out-widget-area-toggle a"),this.ocmLinks&&this.ocmLinks.forEach(e=>{e.addEventListener("click",()=>{t.nectarOcmOpen=!0},{once:!0}),e.addEventListener("touchend",()=>{t.nectarOcmOpen=!0},{once:!0})}),setTimeout(()=>{this.linksToPrevent=a.querySelectorAll("a.nectar_video_lightbox, a.pp, a[data-fancybox], a.pretty_photo, .wpb_gallery_slidesflickity_style .cell > a:not(.ext-url-link), .wpb_gallery_slidesflickity_static_height_style .cell > a:not(.ext-url-link), #mobile-cart-link, .mobile-search");let e=this;this.eventListeners.forEach(a=>{t.addEventListener(a,e.load)}),this.linksToPrevent&&this.linksToPrevent.forEach(t=>{t.addEventListener("click",e.noClick)}),this.pageLoadHashCheck()},80)},i.preventClick=function(e){if(!a.body.classList.contains("nectar-delay-js-loaded"))return e.preventDefault(),!1},i.removeEvents=function(){let e=this;this.eventListeners.forEach(a=>{t.removeEventListener(a,e.load)})},i.triggerLoad=async function(e){var t=this;this.removeEvents(),await new Promise(e=>setTimeout(e,30)),this.preloadScripts(),await this.sequentialScripts(),this.dispatchEvents(),(e&&"click"===e.type||e&&"touchstart"===e.type)&&(e.target&&e.target.matches("a")||e.target.closest("a"))&&setTimeout(()=>{this.linksToPrevent&&this.linksToPrevent.forEach(a=>{if(a.removeEventListener("click",t.noClick),a===e.target||a.contains(e.target)){"absolute"!==getComputedStyle(e.target).position&&e.target.click()}})},90),a.body.classList.add("nectar-delay-js-loaded")},i.preloadScripts=function(){this.scripts.forEach(function(e){const t=e.getAttribute("src");if(t){const e=a.createElement("link");e.href=t,e.rel="preload",e.as="script",a.head.appendChild(e)}})},i.sequentialScripts=async function(){const e=this.scripts.shift();return e?(await this.loadScript(e),this.sequentialScripts(e)):Promise.resolve()},i.loadScript=async function(e){if(e.hasAttribute("src"))return new Promise(function(t,n){const i=a.createElement("script");[...e.attributes].forEach(e=>{const t=e.nodeName,a=e.nodeValue;"type"!==t?"data-salient-lazy-type"!==t?"data-nowprocket"!==t&&"data-pagespeed-no-defer"!==t&&i.setAttribute(t,a):i.setAttribute("type",a):i.setAttribute("data-salient-delayed-js-loaded","true")}),i.addEventListener("load",()=>{t()}),i.addEventListener("error",()=>{t()}),e.parentNode.replaceChild(i,e)})},i.dispatchEvents=function(){t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("salient-delayed-js-loaded"))},new n}(window.jQuery,window,document);;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.