-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
67615-8049200c0f7868e.js.download
1 lines (1 loc) · 8.55 KB
/
67615-8049200c0f7868e.js.download
1
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[67615],{85978:function(e,n,t){var r;!function(){"use strict";var i=!("undefined"===typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(n,t,n,e))||(e.exports=r)}()},93321:function(e,n,t){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});const i=r(t(25237)),o=r(t(59850)),a=()=>null;n.default=function(e,n={on:[],loading:a}){return(0,o.default)({on:n.on,onBefore:e,compatibleMode:n.compatibleMode,wrapperProps:Object.assign({},n.wrapperProps)})((0,i.default)(e,{loading:n.loading||a,ssr:!0}))}},59850:function(e,n,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,n,t,r){void 0===r&&(r=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,r,i)}:function(e,n,t,r){void 0===r&&(r=t),e[r]=n[t]}),i=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&r(n,e,t);return i(n,e),n},a=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(n){o(n)}}function u(e){try{c(r.throw(e))}catch(n){o(n)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,u)}c((r=r.apply(e,n||[])).next())}))},u=this&&this.__rest||function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});const s=t(52322),l=o(t(2784)),d=c(t(28316)),f="undefined"!==typeof window,p={once:!0,capture:!0,passive:!0},v=({disableFallback:e=!1,isInputPendingFallbackValue:n=!0,on:t=[],onBefore:r,whenInputPending:i=!1,wrapperProps:o,compatibleMode:c})=>f=>{const v=v=>{var{forceHydration:b=!1}=v,h=u(v,["forceHydration"]);const w=(0,l.useRef)(null),y=(0,l.useRef)([]),[m,g]=(0,l.useState)((()=>{const e=i&&!(()=>{var e,t;const r=null===(t=null===(e=null===navigator||void 0===navigator?void 0:navigator.scheduling)||void 0===e?void 0:e.isInputPending)||void 0===t?void 0:t.call(e);return null!==r&&void 0!==r?r:n})();return(e||b)&&!r})()),O=()=>{y.current.forEach((e=>e())),y.current=[]},_=()=>a(void 0,void 0,void 0,(function*(){if(O(),m)return;let e=null;r&&(e=(yield r()).default),g(!0);const n=w.current;if(c||!e);else if(n){const t=n.hasChildNodes()?"hydrate":"render";d.default[t](l.default.createElement(e,h),n)}})),k=(e=2e3)=>{if(e<=0)return;const n=setTimeout(_,e);y.current.push((()=>clearTimeout(n)))},j=(e,n)=>{switch(e){case"delay":k(n);break;case"visible":((e=Function.prototype)=>{if(!("IntersectionObserver"in window))return void _();if(!w.current)return void _();const n=e(),t=new IntersectionObserver((([e])=>{e.isIntersecting&&e.intersectionRatio>0&&_()}),n);y.current.push((()=>{t&&t.disconnect()})),t.observe(w.current)})(n);break;case"idle":(()=>{if(!("requestIdleCallback"in window))return void k();const e=requestIdleCallback((()=>requestAnimationFrame((()=>_()))),{timeout:500});"cancelIdleCallback"in window&&y.current.push((()=>{cancelIdleCallback(e)}))})();break;default:((e,n=(()=>w.current))=>{const t=n();null===t||void 0===t||t.addEventListener(e,_,p),y.current.push((()=>{t&&t.removeEventListener(e,_,p)}))})(e,n)}};return(0,l.useLayoutEffect)((()=>{var n;if(m)return;if(b)return void _();!!!(null===(n=w.current)||void 0===n?void 0:n.getAttribute("data-hydration-on-demand"))&&!e&&_()}),[b]),(0,l.useEffect)((()=>{if(!m)return t.forEach((e=>Array.isArray(e)?j(...e):j(e))),O}),[]),m&&m&&c?(0,s.jsx)("section",Object.assign({},o,{children:(0,s.jsx)(f,Object.assign({},h))})):(0,s.jsx)("section",Object.assign({ref:w,dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0},o))};return v.displayName=`withHydrationOnDemand(${(e=>e.displayName||e.name||"Component")(f)})`,v};n.default=(e={})=>f?v(e):(({wrapperProps:e})=>n=>t=>{var r=u(t,[]);return(0,s.jsx)("section",Object.assign({"data-hydration-on-demand":!0},e,{children:(0,s.jsx)(n,Object.assign({},r))}))})(e)},2883:function(e,n,t){"use strict";var r=t(34590),i=t(71600);n.Z=void 0;var o=i(t(73408)),a=i(t(82841)),u=i(t(91461)),c=i(t(43681)),s=i(t(77028)),l=i(t(24923)),d=r(t(2784)),f=i(t(85978)).default.canUseDOM,p={once:!0,capture:!0,passive:!0},v=function(e){return function(n){var t=n.wrapperProps,r=(0,l.default)(n,["wrapperProps"]);return d.default.createElement("section",(0,s.default)({"data-hydration-on-demand":!0},t),d.default.createElement(e,r))}},b=function(e){var n=e.disableFallback,t=void 0!==n&&n,r=e.isInputPendingFallbackValue,i=void 0===r||r,f=e.on,v=void 0===f?[]:f,b=e.onBefore,h=e.whenInputPending,w=void 0!==h&&h;return function(e){var n=function(n){var r=n.forceHydration,f=void 0!==r&&r,h=n.wrapperProps,y=(0,l.default)(n,["forceHydration","wrapperProps"]),m=(0,d.useRef)(null),g=(0,d.useRef)([]),O=(0,d.useState)(function(){var e=w&&!function(){var e,n,t,r=null===(e=navigator)||void 0===e||null===(n=e.scheduling)||void 0===n||null===(t=n.isInputPending)||void 0===t?void 0:t.call(n);return null!==r&&void 0!==r?r:i}();return(e||f)&&!b}()),_=(0,c.default)(O,2),k=_[0],j=_[1],P=function(){g.current.forEach((function(e){return e()})),g.current=[]},E=function(){var e=(0,u.default)(a.default.mark((function e(){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(P(),!k){e.next=3;break}return e.abrupt("return");case 3:if(!b){e.next=6;break}return e.next=6,b();case 6:j(!0);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e3;if(!(e<=0)){var n=setTimeout(E,e);g.current.push((function(){return clearTimeout(n)}))}},M=function(e,n){switch(e){case"delay":I(n);break;case"visible":!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Function.prototype;if("IntersectionObserver"in window){var n=e(),t=new IntersectionObserver((function(e){var n=(0,c.default)(e,1)[0];n.isIntersecting&&n.intersectionRatio>0&&E()}),n);g.current.push((function(){t&&t.disconnect()})),t.observe(m.current)}else E()}(n);break;case"idle":!function(){if("requestIdleCallback"in window){var e=requestIdleCallback((function(){return requestAnimationFrame((function(){return E()}))}),{timeout:500});"cancelIdleCallback"in window&&g.current.push((function(){cancelIdleCallback(e)}))}else I()}();break;default:!function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return m.current})();n.addEventListener(e,E,p),g.current.push((function(){n&&n.removeEventListener(e,E,p)}))}(e,n)}};return(0,d.useLayoutEffect)((function(){k||(f||!!!m.current.getAttribute("data-hydration-on-demand")&&!t)&&E()}),[f]),(0,d.useEffect)((function(){if(!k)return v.forEach((function(e){return Array.isArray(e)?M.apply(void 0,(0,o.default)(e)):M(e)})),P}),[]),k?d.default.createElement("section",h,d.default.createElement(e,y)):d.default.createElement("section",(0,s.default)({ref:m,dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0},h))};return n.displayName="withHydrationOnDemand(".concat(function(e){return e.displayName||e.name||"Component"}(e),")"),n}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f?b(e):v};n.Z=h},34590:function(e,n,t){var r=t(67425).default;function i(e){if("function"!==typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(i=function(e){return e?t:n})(e)}e.exports=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=i(n);if(t&&t.has(e))return t.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=a?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=e[u]}return o.default=e,t&&t.set(e,o),o},e.exports.__esModule=!0,e.exports.default=e.exports}}]);