Files
baiducom/bcdaipage/static/js/5048.0de159cd9a88e6ab.js
2024-09-24 17:45:24 +08:00

1 line
9.2 KiB
JavaScript

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5048],{55968:function(e,t,n){n.d(t,{F:function(){return c},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 a(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 c(e){var t=e.type,n=e.label,c=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,c])};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 a(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 a(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),a=function(){return(a=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)},c=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 a=e.length-1;a>=0;a--)(o=e[a])&&(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,a({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=c([(0,o.GS)()],e)}()},70718:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getTransitionName=t.getTransitionDirection=t.default=void 0;var r=n(49893),o=function(){return{height:0,opacity:0}},i=function(e){return{height:e.scrollHeight,opacity:1}},u=function(e){return{height:e?e.offsetHeight:0}},a=function(e,t){return(null==t?void 0:t.deadline)===!0||"height"===t.propertyName};(0,r.tuple)("bottomLeft","bottomRight","topLeft","topRight");var c=function(e){return void 0!==e&&("topLeft"===e||"topRight"===e)?"slide-down":"slide-up"};t.getTransitionDirection=c;var s=function(e,t,n){return void 0!==n?n:"".concat(e,"-").concat(t)};t.getTransitionName=s,t.default={motionName:"ant-motion-collapse",onAppearStart:o,onEnterStart:o,onAppearActive:i,onEnterActive:i,onLeaveStart:u,onLeaveActive:o,onAppearEnd:a,onEnterEnd:a,onLeaveEnd:a,motionDeadline:500}},12181:function(e,t,n){var r=n(66356).default;Object.defineProperty(t,"__esModule",{value:!0}),t.cloneElement=function(e,t){return u(e,e,t)},t.isFragment=function(e){return e&&i(e)&&e.type===o.Fragment},t.isValidElement=void 0,t.replaceElement=u;var o=r(n(59496)),i=o.isValidElement;function u(e,t,n){return i(e)?o.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}t.isValidElement=i},49893:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tupleNum=t.tuple=void 0;var n=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t};t.tuple=n;var r=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t};t.tupleNum=r},84012:function(e,t,n){var r=n(66356).default,o=n(98772).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=u.useRef(!1),n=u.useState(e),r=(0,i.default)(n,2),o=r[0],a=r[1];return u.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[o,function(e,n){(!n||!t.current)&&a(e)}]};var i=o(n(54306)),u=r(n(59496))}}]);