! function o(s, a, l) { function c(e, t) { if (!a[e]) { if (!s[e]) { var i = "function" == typeof require && require; if (!t && i) return i(e, !0); if (d) return d(e, !0); var n = new Error("Cannot find module '" + e + "'"); throw n.code = "MODULE_NOT_FOUND", n } var r = a[e] = { exports: {} }; s[e][0].call(r.exports, function(t) { return c(s[e][1][t] || t) }, r, r.exports, o, s, a, l) } return a[e].exports } for (var d = "function" == typeof require && require, t = 0; t < l.length; t++) c(l[t]); return c }({ 1: [ function(t, e, i) { "use strict"; function a(t) { return function(t) { if (Array.isArray(t)) return n(t) }(t) || function(t) { if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) return Array.from(t) }(t) || function(t, e) { if (!t) return; if ("string" == typeof t) return n(t, e); var i = Object.prototype.toString.call(t).slice(8, -1); "Object" === i && t.constructor && (i = t.constructor.name); if ("Map" === i || "Set" === i) return Array.from(i); if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return n(t, e) }(t) || function() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") }() } function n(t, e) { (null == e || e > t.length) && (e = t.length); for (var i = 0, n = new Array(e); i < e; i++) n[i] = t[i]; return n } function r(e, t) { var i = Object.keys(e); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); t && (n = n.filter(function(t) { return Object.getOwnPropertyDescriptor(e, t).enumerable })), i.push.apply(i, n) } return i } function l(e) { for (var t = 1; t < arguments.length; t++) { var i = null != arguments[t] ? arguments[t] : {}; t % 2 ? r(Object(i), !0).forEach(function(t) { o(e, t, i[t]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : r(Object(i)).forEach(function(t) { Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(i, t)) }) } return e } function o(t, e, i) { return e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t }! function(t) { function e() {} var i = { player: null, isPlaying: !(e.fn = e.prototype = { constructor: e, version: function() { return "x.x.x" } }), playList: [], curIndex: 0, playingSelector: "", type: "", begin: function(t) { this.reset(); var e = l({}, { selector: "", type: "mp4", initIndex: 0, hasControl: !0, isAutoPlay: !0, isLoop: !1, isMuted: !1, hasTitle: !0, isOnLive: !1, isCombine: !1, list: [], callback: null, playerEndCallback: null }, {}, t); this.type = e.type, this.curIndex = e.initIndex, e.isCombine && 0 <= this.type.indexOf("mp4") ? this.playList = this._setPlayList(e.list) : this.playList = e.list; var i = this._setDom(e); if (!("" !== $.trim(e.selector) && 0 < $(e.selector).length)) return !1; this.playingSelector = e.selector, $(this.playingSelector).append(i), this.isPlaying = !0; var n = { selector: this.playingSelector, height: $(this.playingSelector).height(), isPlaying: this.isPlaying }; e.callback && e.callback(n), "mp3" === this.type ? this._end(e) : "mp4" === this.type && this.addPlayer(e) }, stop: function(t) { 0 < $(t.selector).find(".media-box").length && $(t.selector).find(".media-box").remove() }, addPlayer: function(i) { var n = this; this.player = new DHYPlayer("DH-PLAYERID", { src: this.playList[this.curIndex].url, eventCallback: function(t, e) { "ended" === e && (n.next(n.playingSelector), i.playerEndCallback && i.playerEndCallback("ended", n.curIndex)) }, autoplay: i.isAutoPlay, loop: i.isLoop, poster: this.playList[this.curIndex].poster, onLive: i.isOnLive, logo: "", watermark: "" }) }, _end: function(t) { var e = this; $("#mediaBox").find(".media-video").get(0).addEventListener("ended", function() { if (!t.isLoop && 1 == e.playList.length) return e.close(), t.playerEndCallback && t.playerEndCallback("ended"), !1; e.next(e.playingSelector) }, !1) }, next: function(t) { this.playingSelector === t && (this.curIndex = this.curIndex - 0 + 1, this.curIndex > this.playList.length - 1 && (this.curIndex = 0), this.setCurrentPlay()) }, prev: function(t) { this.playingSelector === t && (this.curIndex = this.curIndex - 0 - 1, this.curIndex < 0 && (this.curIndex = this.playList.length - 1), this.setCurrentPlay()) }, pause: function() { var t = $("#mediaBox"); if (t.length <= 0) return !1; t.find(".media-video").get(0).pause(), this.isPlaying = !1 }, play: function() { var t = $("#mediaBox"); if (t.length <= 0) return !1; t.find(".media-video").get(0).play(), this.isPlaying = !0 }, switchPlayStatus: function(t, e) { this.playingSelector === t && (e && e(!this.isPlaying), this.isPlaying ? this.pause(t) : this.play(t)) }, setCurrentPlay: function() { var t = $("#mediaBox"); t.find(".media-title").html(this.playList[this.curIndex].title), "mp4" == this.type ? this.player.loadMedia(this.playList[this.curIndex].url) : t.find(".media-video").attr("src", this.playList[this.curIndex].url) }, close: function() { this.reset() }, _setTitle: function(t) { t.isShowTitle ? $(t.selector).find(".media-title").show() : $(".media-title").hide() }, setBoxSize: function(t) { var e = l({}, { selector: "", position: "fixed", left: "auto", right: 10, bottom: 60, top: "auto", zIndex: 999, width: 328, height: 210, isShowTitle: !0 }, {}, t), i = e.selector, n = e.isShowTitle; this._setTitle({ selector: i, isShowTitle: n }), 0 < $(t.selector).find(".media-box").length && ($(t.selector).find(".media-box").css({ position: e.position, left: e.left, right: e.right, bottom: e.bottom, top: e.top, zIndex: e.zIndex, width: e.width, height: e.height, "box-shadow": "0px 8px 16.02px 1.98px rgba(0, 0, 0, 0.16)" }), $(t.selector).find(".media-box #DH-PLAYERID").css({ height: "88%" })) }, clearBoxSize: function() { $(".media-box").removeAttr("style"), $(".media-box #DH-PLAYERID").removeAttr("style"); this._setTitle(!1) }, addList: function(t) { this.playList = [].concat(a(this.playList), a(t.list)) }, reset: function() { null != this.player && this.player.destroy(), $(".media-box").remove(), this.clearBoxSize(), this.player = null, this.isPlaying = !1, this.playList = [], this.curIndex = 0, this.playingSelector = "", this.type = "" } }, n = { toTop: function() { $("html , body").animate({ scrollTop: 0 }, "slow") }, direction: "up", monitorLoc: function(t) { var e, r = l({}, { selector: "", callback: null, height: 0, type: "img", reference: "winTop", distants: 0 }, {}, t), o = $(window).height(); if (0 === (e = r.selector.split(",")).length) return !1; $.each(e, function(t, e) { if (!$(this).length) return !1; var i = $(e).offset().top, n = {}; $(window).scroll(function() { var t = $(this); "winTop" == r.reference && (n = t.scrollTop() >= i + r.height ? { selector: e, location: "windowTop", status: "hide" } : { selector: e, location: "windowTop", status: "show" }), "winBottom" == r.reference && (n = t.scrollTop() >= i - o - r.distants ? { selector: e, location: "windowBottom", status: "show" } : { selector: e, location: "windowBottom", status: "hide" }), r.callback && r.callback(n) }) }) }, monitorDir: function(t) { var e = this, i = $(window).scrollTop(); $(window).scroll(function() { var t = $(window).scrollTop(); i < t && (i = t, e.direction = "up"), t < i && (i = t, e.direction = "down") }) }, scorllTo: function(t) { var e = $(t).offset().top; $("html , body").animate({ scrollTop: e }, "slow") } }, r = { curIndex: 0, init: function(t) { var e = l({}, { selector: "", clickedBtn: "", type: "click", effect: "fade", initIndex: 0, callback: null }, {}, t), i = this; "click" == e.type ? $(e.selector).on("click", e.clickedBtn, function() { var t = $(this).index(); i.curIndex = t, $(this).addClass("active").siblings().removeClass("active"), e.callback && e.callback({ selector: this, index: i.curIndex }) }) : $(e.selector + " " + e.clickedBtn).hover(function() { var t = $(this).index(); i.curIndex = t, $(this).addClass("active").siblings().removeClass("active"), e.callback && e.callback({ selector: this, index: i.curIndex }) }, function() {}) }, storageInitIndex: function(t) {} }, o = { loading: function(i, n) { $(i).find("img").each(function(t, e) { "" != $.trim($(this).attr("src")) && $(this).attr("src") || ($(this).attr("src", $(this).attr("data-src")), t == $(i).find("img").length - 1 && n && n("end")) }) } }, s = { isMobile: /iPad|iPhone|Android|Windows Phone|Nokia/.test(navigator.userAgent), userAgent: navigator.userAgent, browserVersion: function() { var t = {}, e = -1 < this.userAgent.indexOf("Opera"), i = -1 < this.userAgent.indexOf("compatible") && -1 < this.userAgent.indexOf("MSIE") && !e, n = -1 < this.userAgent.indexOf("Windows NT 6.1; Trident/7.0;") && !i, r = -1 < this.userAgent.indexOf("Firefox"), o = -1 < this.userAgent.indexOf("Safari") && -1 == this.userAgent.indexOf("Chrome"), s = -1 < this.userAgent.indexOf("Chrome") && -1 < this.userAgent.indexOf("Safari"); if (i) { t.browserType = "isIE", new RegExp("MSIE (\\d+\\.\\d+);").test(this.userAgent); var a = parseFloat(RegExp.$1); t.ieType = a } return r && (t.browserType = "FF"), e && (t.browserType = "Opera"), o && (t.browserType = "Safari"), s && (t.browserType = "Chrome"), n && (t.browserType = "Edge"), t }, removeScript: function(t) { for (var e = document.getElementsByTagName("script"), i = 0; i < e.length; i++) e[i] && e[i].src && -1 != e[i].src.indexOf(t) && e[i].parentNode.removeChild(e[i]) }, removeCss: function(t) { for (var e = document.getElementsByTagName("link"), i = 0; i < e.length; i++) { e[i].href; e[i] && e[i].href && -1 != e[i].href.indexOf(t) && e[i].parentNode.removeChild(e[i]) } }, addScript: function(t, e) { for (var i = !0, n = document.getElementsByTagName("script"), r = 0; r < n.length; r++) n[r] && n[r].src && -1 != n[r].src.indexOf(t) && (i = !1); if (i) { var o = document.createElement("script"); o.setAttribute("type", "text/javascript"), o.setAttribute("src", t), $(e).after(o) } }, addCss: function(t, e) { for (var i = !0, n = document.getElementsByTagName("link"), r = 0; r < n.length; r++) n[r] && n[r].href && -1 != n[r].href.indexOf(t) && (i = !1); if (i) { var o = document.createElement("link"); o.setAttribute("rel", "stylesheet"), o.setAttribute("type", "text/css"), o.setAttribute("href", t), $(e).after(o) } } }; $.extend(e.fn, { media: i, scroll: n, tab: r, lazy: o, browser: s }), t.XHOME = new e }(window) }, {} ] }, {}, [1]);