Files
baiducom/cdn/static/js/6860.87a89c6b0efe8a1c.js
T
2024-09-24 17:45:24 +08:00

1 line
8.9 KiB
JavaScript

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6860],{55968:function(e,t,n){n.d(t,{F:function(){return a},s:function(){return s}});var r=n(59496),o=n(16114),i=n(29196);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e){var t=e.type,n=e.label,a=e.value,s=e.className,l=e.once,f=void 0===l||l,d=e.useRootDom,p=(0,r.useRef)(null);return(0,o.FI)(function(){var r=null;if(p.current&&!r&&window.IntersectionObserver){var o=new i.c(null),s=function(){e.exposureHandler&&e.exposureHandler(),e.type&&e.label&&window&&window._hmt&&window._hmt.push(["_trackEvent",t,"exposure",n,a])};o.subscribe(s),(r=new IntersectionObserver(function(e){for(var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(t=n()).done;){var i=t.value;i.isIntersecting&&(o.next(i.target),f&&(o.unsubscribe(s),r.unobserve(p.current)))}},u({threshold:1},e.options))).observe(p.current)}return function(){r&&p.current&&r.unobserve(p.current)}}),void 0!==d&&d?(0,r.cloneElement)(e.children,{ref:p}):r.createElement("div",{ref:p,className:s},e.children)}function s(e){var t=(0,r.useRef)(null);return(0,r.useEffect)(function(){var n=null;try{(n=new IntersectionObserver(function(t){t.forEach(function(t){var r=t.target;t.isIntersecting&&r.classList.contains("lazy")&&(l(e.type,r,e.lazyCallback),r.classList.remove("lazy"),n.unobserve(r))})},u({rootMargin:"0px 0px 256px 0px"},e.option))).observe(t.current)}catch(r){l(e.type,t.current,e.lazyCallback)}return function(){t.current&&n&&n.unobserve(t.current)}},[]),(0,r.cloneElement)(e.children,{ref:t,className:e.children.props.className+" lazy"})}function l(e,t,n){switch(e){case"background":t.classList.add("visible");break;case"backgroundImage":t.style.backgroundImage="url("+t.dataset.url+")";break;case"all-imgs":t.querySelectorAll("img.lazy").forEach(function(e){e.src=e.dataset.src});break;case"callback":n&&n(t);break;default:t.src=t.dataset.src}}},84535:function(e,t,n){function r(e,t,n){void 0===n&&(n=function(e,t,n){e[t]=n}),t=t&&"function"==typeof t?t:function(){return!1};for(var r=0,o=0;o<e.length;o++)t(e[o],o)?r++:r>0&&n(e,o-r,e[o]);for(var o=0;o<r;o++)e.pop();return e}function o(e,t,n){var r=e[t];return e[t]=e[n],e[n]=r,e}n.d(t,{un:function(){return r},wt:function(){return o}})},53594:function(e,t,n){function r(){return Boolean(navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))}function o(){return!r()&&!Boolean(!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/))&&!i()}function i(){var e=navigator.userAgent;return e.indexOf("Android")>-1||e.indexOf("Adr")>-1}n.d(t,{Dt:function(){return i},b9:function(){return o},tq:function(){return r}})},29196:function(e,t,n){n.d(t,{c:function(){return o}});var r=0,o=function(){function e(e,t){void 0===t&&(t=Symbol(r++)),this.id=t,this.completed=!1,this.index=0,this.completedHandlers=[],this.subscribeHandlers=[],this.onSubscribeHandlers=[],e&&this.next(e)}return e.prototype.getValue=function(){return this.value},e.prototype.getId=function(){return this.id},e.prototype.next=function(e){var t=this;this.value=e,this.subscribeHandlers.forEach(function(n){return n.handler(e,t.index++)})},e.prototype.complete=function(){!this.completed&&(this.completed=!0,this.completedHandlers.forEach(function(e){return e()}),this.unsubscribe())},e.prototype.throttleTime=function(t){var n=this;if(void 0===t&&(t=0),!t||t<=1)return this;var r=new e,o=!0;return this.onCompleted(function(){return r.complete()}),r.onSubscribe(function(){n.subscribe(function(e){o&&(r.next(e),o=!1,setTimeout(function(){o=!0},t-1))})}),r},e.prototype.debounceTime=function(t){var n=this;void 0===t&&(t=10);var r=new e,o=null,i=null;return this.onCompleted(function(){return r.complete()}),r.onSubscribe(function(){n.subscribe(function(e){clearTimeout(i),o=e,i=setTimeout(function(){r.next(o)},t)})}),r},e.prototype.subscribe=function(e){var t=this,n=Symbol();return this.subscribeHandlers.push({symbol:n,handler:e}),this.onSubscribeHandlers.forEach(function(e){return e()}),function(){for(var e=-1,r=0;r<t.subscribeHandlers.length;r++)if(t.subscribeHandlers[r].symbol===n){e=r;break}e>=0&&t.subscribeHandlers.splice(e,1)}},e.prototype.onSubscribe=function(e,t){void 0===t&&(t=!1);var n=!1;return this.onSubscribeHandlers.push(function(){(!n||!t)&&(n=!0,e())}),this},e.prototype.unsubscribe=function(e){var t=this;this.subscribeHandlers.reduce(function(t,n,r){return e&&e!==n.handler||t.push(r),t},[]).forEach(function(e,n){return t.subscribeHandlers.splice(e-n,1)})},e.prototype.onCompleted=function(e){return this.completedHandlers.push(e),this},e}()},98537:function(e,t,n){n.d(t,{Y:function(){return i}});var r=n(59496),o=n(47147);function i(e){var t=(0,r.useRef)(),n=(0,r.useState)(function(){var n=(0,o.mf)(e)?e():e;return t.current=n,n}),i=n[0],u=n[1];return[i,(0,r.useCallback)(function(e){(0,o.mf)(e)?u(function(n){var r=e(n);return t.current=r,r}):(u(e),t.current=e)},[]),t]}},674:function(e,t,n){n.d(t,{K:function(){return s}});var r=n(4637),o=n(41934),i=n(87995),u=n(84535),c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=function(e,t,n,r){var o,i=arguments.length,u=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(u=(i<3?o(u):i>3?o(t,n,u):o(t,n))||u);return i>3&&u&&Object.defineProperty(t,n,u),u},s=function(){function e(){this.nameDivMap=new Map,this.divNameMap=new Map}return e.prototype.open=function(e){var t=e.component,n=t.name,o=document.createElement("div");i.render((0,r.jsx)(t,c({id:o},e.props)),o),e.selector?e.selector.appendChild(o):document.body.appendChild(o);var u=this.nameDivMap.get(n)||[];return u.push(o),this.nameDivMap.set(n,u),this.divNameMap.set(o,n),o},e.prototype.destroyedEleAndCom=function(e){i.unmountComponentAtNode(e),e.remove()},e.prototype.removeDivFormMap=function(e,t){this.divNameMap.delete(t);var n=this.nameDivMap.get(e)||[];n.length>0&&(0,u.un)(n,function(e){return e===t})},e.prototype.destroyed=function(e,t){var n=this;setTimeout(function(){var r=n.divNameMap.get(e);if(t)for(var o=n.nameDivMap.has(r)?n.nameDivMap.get(r):[];o.length>0;)n.destroyedEleAndCom(o[0]),n.removeDivFormMap(r,o[0]);else n.destroyedEleAndCom(e),n.removeDivFormMap(r,e)},300)},e=a([(0,o.GS)()],e)}()},11749:function(e,t,n){var r,o=n(98772).default;Object.defineProperty(t,"__esModule",{value:!0}),t.detectFlexGapSupported=t.canUseDocElement=void 0,Object.defineProperty(t,"isStyleSupport",{enumerable:!0,get:function(){return u.isStyleSupport}});var i=o(n(18036)),u=n(17433),c=function(){return(0,i.default)()&&window.document.documentElement};t.canUseDocElement=c;var a=function(){if(!c())return!1;if(void 0!==r)return r;var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),r=1===e.scrollHeight,document.body.removeChild(e),r};t.detectFlexGapSupported=a},17433:function(e,t,n){var r=n(98772).default;Object.defineProperty(t,"__esModule",{value:!0}),t.isStyleSupport=function(e,t){return Array.isArray(e)||void 0===t?i(e):u(e,t)};var o=r(n(18036)),i=function(e){if((0,o.default)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},u=function(e,t){if(!i(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}},77637:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}}}]);