(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ [4759], { 53241: function (e, n, t) { "use strict"; t.d(n, { R: function () { return l; }, p: function () { return s; }, }); var r = t(72006), i = t(4637), o = t(16114), c = t(59496), a = t(4795); t.n(a)().a; var l = "55875f38623d4faa842ce78af0fbb631", u = { width: "100%", height: "100%", title: "", file: "", image: "http://cyberplayer.bcelive.com/thumbnail.jpg", autostart: !1, stretching: "uniform", repeat: !1, volume: 50, controls: !0, starttime: 0, ak: l, flv: { reconnecttime: 2 }, }, s = c.memo( function (e) { var n, t, a = (0, c.useState)(!1), l = a[0], s = a[1], d = (0, c.useRef)(null), f = (0, c.useRef)(null), v = function () { var n = function () { var n; (d.current = null === (n = window.cyberplayer( e.playerId || "playercontainer" )) || void 0 === n ? void 0 : n.setup((0, r.Z)({}, u, e.config))), d.current.on("error", function (e) { var n; console.info(e), (null === (n = e.msg) || void 0 === n ? void 0 : n.details) !== "internalException" && s(!0); }), e.onload && e.onload(d.current); }; window.cyberplayer ? n() : window.require && window.require(["cyberplayer"], function (e) { (window.cyberplayer = e), n(); }); }; (0, o.FI)(function () { var n; e.initSdk ? ((n = e.cyberplayerVersion), new Promise(function (e) { if (window.cyberplayer) { e(!0); return; } var t = document.createElement("script"); "3.5.2" === n ? (t.src = "ht:/bce.bdstatic.com/jwplayer/3.5.2/cyberplayer.js") : "4.4.2.1" === n ? (t.src = "ht:/bce-cdn.bj.bcebos.com/jwplayer/4.4.2.1/cyberplayer-evs.js") : (t.src = "ht:/bce.bdstatic.com/portal-cloud-server/dep/cyberplayer_v4.3.2/cyberplayer.js"), document.head.appendChild(t), (t.onload = function () { e(!0); }); })).then(function () { v(); }) : v(); }); var h = function (e) { d.current.setControls(!0), f.current && (clearTimeout(f.current), (f.current = null)), e || (f.current = setTimeout(function () { d.current.setControls(!1); }, 1e3)); }, m = function () { d.current && ("playing" === d.current.getState() && h(!1), "paused" === d.current.getState() && h(!0)); }, p = function () { setTimeout(function () { d.current && "paused" === d.current.getState() ? h(!0) : h(!1); }); }; return (0, i.jsxs)("div", { className: "u-cyberplayer", onMouseMove: m, onClick: p, children: [ (0, i.jsx)("div", { id: e.playerId || "playercontainer" }), l && (null == e ? void 0 : null === (n = e.config) || void 0 === n ? void 0 : n.errorTip) && (0, i.jsx)("div", { className: "error-tips", children: null == e ? void 0 : null === (t = e.config) || void 0 === t ? void 0 : t.errorTip, }), ], }); }, function (e, n) { return JSON.stringify(e) === JSON.stringify(n); } ); }, 79918: function (e, n, t) { "use strict"; t.d(n, { N: function () { return s; }, }); var r = t(72006), i = t(4637), o = t(39145), c = t(59496), a = t(53241), l = t(24489), u = t.n(l), s = function (e) { var n = (0, c.useState)(!0), t = n[0], l = n[1], s = function () { l(!1); }; return (0, i.jsx)(o.d, { className: u()["modal-mask"], show: t, maskClosable: !0, onClose: s, children: (0, i.jsxs)(i.Fragment, { children: [ (0, i.jsx)("div", { id: "playercontainer", children: (0, i.jsx)(a.p, { initSdk: e.initSdk, onload: function (e) { e.play(); }, config: (0, r.Z)( { controls: "over", stretching: "uniform", image: "" }, e.config ), }), }), !e.hideCloseIcon && (0, i.jsx)("i", { className: u()["close-icon"], onClick: s }), ], }), }); }; }, 58988: function (e, n, t) { "use strict"; t.d(n, { k: function () { return f; }, }); var r = t(72006), i = t(59072), o = t(4637), c = t(47147), a = t(12005), l = t(98537), u = t(16114), s = t(59496), d = { position: "fixed", left: 0, top: 0 }; function f(e) { var n = (0, s.useRef)(null), t = (0, i.Z)((0, l.Y)(null), 3), f = t[0], v = t[1], h = t[2], m = e.children, p = e.fixedStyle, w = e.startFixed, x = void 0 === w ? 0 : w, b = e.onScrollHandler, y = e.defaultStyle, g = e.fixedTop, j = function (e) { return e + (0, a.ig)(window.innerWidth); }; return ( (0, u.FI)(function () { var e = function () { var e = (0, a.U4)(n.current.parentElement) + u + x; (0, c.o8)(g) && i !== e && (i = e); var t = document.documentElement.scrollTop; i <= t && !h.current ? v((0, r.Z)({}, d, y)) : i > t && h.current && v(null), b && b(t); }, t = function () { o !== (l = (0, a.ig)(window.innerWidth)) && ((i = (0, c.o8)(g) ? (i = (0, a.U4)(n.current.parentElement) - (0, a.U4)(document.getElementById("__next")) + l + x + u) : j(g)), (o = l)); }, i = (0, c.o8)(g) ? (0, a.U4)(n.current) + x : j(g), o = (0, a.ig)(window.innerWidth), l = o, u = (0, a.U4)(n.current) - (0, a.U4)(n.current.parentElement); return ( e(), window.addEventListener("scroll", e), window.addEventListener("resize", t), function () { window.removeEventListener("scroll", e), window.removeEventListener("resize", t); } ); }), (0, o.jsx)(o.Fragment, { children: (0, s.cloneElement)(m, { ref: n, style: (0, r.Z)({}, f, p), }), }) ); } }, 18446: function (e, n, t) { "use strict"; t.d(n, { i: function () { return p; }, }); var r = t(59072), i = t(4637), o = t(58988), c = t(16037), a = t(98537), l = t(16114), u = t(59496), s = t(32699), d = t(84875), f = t.n(d), v = t(25658), h = t(38653), m = t.n(h), p = function (e) { var n = e.subNavData, t = e.className, d = e.scrollBindOption, h = e.id, p = e.wrapperRef, w = e.hashHandlerFn, x = (0, r.Z)( (0, c.Y)(d || { itemSelector: ".module", fixTop: -52 }), 3 ), b = x[0], y = x[1], g = x[2], j = (0, r.Z)((0, a.Y)(0), 3), S = j[0], N = j[1], k = j[2], E = (0, u.useState)(null), C = E[0], T = E[1], I = (0, u.useState)(!1), L = I[0], F = I[1], R = (0, u.useState)(0), _ = R[0], U = R[1], W = (0, u.useRef)(null), q = function (e) { var n = W.current.querySelector( "li:nth-child(".concat(e + 1, ")") ), t = n.querySelector("span").offsetWidth, r = n.offsetLeft + (n.offsetWidth - t) / 2; T({ width: t, left: r }); }, Y = function (e) { var n = W.current.offsetWidth; if ("left" === e && 0 !== S) { var t = Math.max(0, S - n); W.current.scrollTo({ left: t, behavior: "smooth" }), N(t); } else if ("right" === e && S < _ - n) { var r = Math.min(_ - n, S + n); W.current.scrollTo({ left: r, behavior: "smooth" }), N(r); } }; return ( (0, l.FI)(function () { var e = W.current.querySelectorAll("li"); if ( (U( Math.floor( (0, s.reduce)( e, function (e, n) { return ( e + n.getBoundingClientRect().width + parseInt(getComputedStyle(n, null).marginLeft, 10) + parseInt(getComputedStyle(n, null).marginRight, 10) ); }, 0 ) ) ), location.hash) ) { var t = decodeURIComponent(location.hash).slice(1), r = n.findIndex(function (e) { return e.name === t; }); r >= 0 && setTimeout(function () { return y(r); }, 400), r < 0 && w && w(t); } var i = (0, s.throttle)(function () { return q(g.current); }, 40); return ( window.addEventListener("resize", i), function () { window.removeEventListener("resize", i); } ); }), (0, u.useEffect)( function () { var e = W.current.offsetWidth; if (_ > e) { var n = W.current.querySelector( "li:nth-child(".concat(b + 1, ")") ), t = n.offsetLeft; t - 92 < k.current ? W.current.scrollTo({ left: t - 92, behavior: "smooth" }) : t + 92 > k.current + e && W.current.scrollTo({ left: t - e + n.offsetWidth + 92, behavior: "smooth", }); } q(b); }, [b, _] ), (0, u.useEffect)( function () { var e = W.current.offsetWidth; F(_ > e && S < _ - e); }, [S, _] ), (0, i.jsx)("div", { className: f()(m()["sub-nav-wrapper"], t), id: void 0 === h ? "" : h, ref: p, children: (0, i.jsx)(o.k, { children: (0, i.jsx)("div", { className: m()["sub-nav"], children: (0, i.jsxs)("div", { className: "container", children: [ S ? (0, i.jsx)(v.Q, { className: m()["btn-left"], src: "ht:/bce.bdstatic.com/portal-cloud-server/images/arrow_down.svg", onClick: function () { return Y("left"); }, }) : null, (0, i.jsxs)("ul", { ref: W, onScroll: (0, s.throttle)(function () { N(W.current.scrollLeft); }, 40), children: [ n.map(function (e, t) { return (0, i.jsx)( "li", { className: f()(t === b && "current"), onClick: function () { b !== t && (y(t), history.pushState( { index: t }, "", "" .concat(location.pathname) .concat(location.search, "#") .concat(n[t].name) )); }, children: (0, i.jsx)("span", { children: e.name, }), }, e.name ); }), (0, i.jsx)("li", { className: m().line, style: C }), ], }), L && (0, i.jsx)(v.Q, { className: m()["btn-right"], onClick: function () { return Y("right"); }, src: "ht:/bce.bdstatic.com/portal-cloud-server/images/arrow_down.svg", }), ], }), }), }), }) ); }; }, 16037: function (e, n, t) { "use strict"; t.d(n, { Y: function () { return s; }, }); var r = t(59072), i = t(59496), o = t(12005), c = t(98537), a = t(16114), l = t(47147), u = t(32699), s = function (e) { var n = e.itemSelector, t = e.throttleDelay, s = void 0 === t ? 40 : t, d = e.duration, f = void 0 === d ? 300 : d, v = e.defaultIndex, h = e.fixTop, m = void 0 === h ? 0 : h, p = e.scrollUpHeaderFixTop, w = void 0 === p ? 0 : p, x = e.getItemTopList, b = e.findCurrentIndex, y = (0, r.Z)((0, c.Y)(void 0 === v ? 0 : v), 3), g = y[0], j = y[1], S = y[2], N = (0, i.useRef)(null), k = (0, i.useRef)(0), E = function () { if (x) return x(); var e = document.querySelectorAll(n); return Array.prototype.map.call(e, function (e) { var n = (0, l.mf)(m) ? m() : m; return Math.floor((0, o.U4)(e) + n); }); }; return ( (0, a.FI)(function () { var e = (0, u.throttle)(function () { var e = Math.ceil((0, o.cx)()), n = 0; if (b) n = b(E()); else { var t = e < k.current ? w : 0; E().forEach(function (r, i) { (e >= r - t || 0 === i) && (n = i); }); } j(n), (k.current = e); }, s); return ( window.addEventListener("scroll", e), function () { window.removeEventListener("scroll", e); } ); }), [ g, function (e) { N.current && (window.cancelAnimationFrame(N.current), (N.current = null)); var n = E(), t = n[e] - (0, o.cx)(), r = t / (f / (1e3 / 60)), i = t < 0 ? w : 0, c = function () { var t = (0, o.cx)(); if (Math.abs(n[e] - t) < Math.abs(r)) { (0, o.QU)(n[e] - i), window.cancelAnimationFrame(N.current); return; } (0, o.QU)(r + t), (N.current = window.requestAnimationFrame(c)); }; N.current = window.requestAnimationFrame(c); }, S, ] ); }; }, 83646: function (e, n, t) { "use strict"; t.d(n, { Z: function () { return l; }, }); var r = t(4637), i = t(84875), o = t.n(i), c = t(94654), a = t.n(c), l = function (e) { var n, t = e.data; return (0, r.jsx)("section", { className: a().news, children: (0, r.jsx)("div", { className: o()("width1180-center", a().container), children: null === (n = t.items) || void 0 === n ? void 0 : n.slice(0, 2).map(function (e, n) { var i; return (0, r.jsxs)( "div", { className: a()["text-link-item"], children: [ (0, r.jsx)("h3", { children: e.title }), (0, r.jsx)("ul", { children: null === (i = e.textRows) || void 0 === i ? void 0 : i.slice(0, t.rows).map(function (t) { return ( t.tag && (0, r.jsxs)("li", { children: [ (0, r.jsx)("span", { className: o()( a()["text-link-tag"], 0 === n && a().red, 1 === n && a().blue ), children: (0, r.jsx)("span", { children: t.tag, }), }), (0, r.jsx)("a", { href: t.content.href, target: "_blank", "data-track-category": "banner推广区域-两列文字链", "data-track-name": e.title, "data-track-value": t.content.text, children: t.content.text, }), ], }) ); }), }), ], }, e.title ); }), }), }); }; }, 24462: function (e, n, t) { "use strict"; t.d(n, { o: function () { return v; }, }); var r = t(4637), i = t(18446), o = t(59496), c = t(16114), a = t(32699), l = t(12005), u = t(84875), s = t.n(u), d = t(90571), f = t.n(d), v = function (e) { var n = e.data, t = e.isDefaultHide, u = (0, o.useRef)(null), d = (0, o.useState)(t), v = d[0], h = d[1]; return ((0, c.FI)(function () { var e = (0, a.throttle)(function () { (0, l.cx)() >= u.current.offsetHeight + (0, l.U4)(u.current) ? h(!1) : h(!0); }, 40); return ( t && window.addEventListener("scroll", e, !1), function () { t && window.removeEventListener("scroll", e, !1); } ); }), n.content.length) ? (0, r.jsx)(i.i, { id: f().subNav, subNavData: n.content.map(function (e) { return { name: e.data.name }; }), className: s()( t && (v ? f().hide : f().show), t && f()["default-hide"] ), scrollBindOption: { itemSelector: '[ui-type="module-box"] > section', fixTop: -48, }, wrapperRef: u, }) : null; }; }, 4795: function (e) { e.exports = { circle: "CZ1RhmKP" }; }, 24489: function (e) { e.exports = { "modal-mask": "SYpghrTF", "close-icon": "w_SYckuh" }; }, 38653: function (e) { e.exports = { "sub-nav-wrapper": "qaNyd8vJ", "sub-nav": "IYb6EB2J", "btn-left": "s5hKerPy", "btn-right": "WvR_jVJT", line: "j_kYDLbr", }; }, 94654: function (e) { e.exports = { news: "SjjqV8lj", container: "HI7LYNpY", "text-link-item": "bNNSuWmd", "text-link-tag": "K6jlPddq", red: "b3hUjlA4", blue: "GFmj0z4D", }; }, 90571: function (e) { e.exports = { subNav: "iEW_1Xi7", "default-hide": "yJExnCk6", hide: "ztKZ6GWu", show: "xkJMZbNY", }; }, }, ]);