(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[442],{2578:function(t,e,n){let r=n(18721),o=n(44908),i=n(27361),u=n(7287),a=[1920,1760,1600,1440,1280,1120,960,800,640,480,320],s=["16_9","4_3","1"],{AVAILABLE_VERSIONS:c,VERSION_DATA:f}=(()=>{let t=[],e={};a.forEach(n=>{t.push(`w${n}`),e[`w${n}`]={v:`w${n}`,size:`${n}w`},s.forEach(r=>{let o=`w${n}r${r}`;t.push(o),e[o]={v:o,size:`${n}w`}})});let n=["wall"].concat(s.map(t=>`wallr${t}`));return{AVAILABLE_VERSIONS:t.concat(n),VERSION_DATA:e}})(),p=u(c.map(t=>t.toUpperCase()),c),l=`w${a[0]}`,h=t=>i(f,t,f[l]),v=(t,e)=>{if("string"!=typeof t)return null;if("wall"===e.substr(0,4)){let n=e.substr(4);return t+"?v="+h(`w${a[0]}${n}`).v}return t+"?v="+h(`${e}`).v},d=(t,e)=>{let n=[];return e.forEach(e=>{n.push(v(t,e)+" "+h(e).size)}),o(n).join(",")};t.exports={VERSIONS:p,getMediaAttr:(t,e)=>{let n=[];if(e&&r(p,e.toUpperCase())){if("wall"===e.substr(0,4)){let t=e.substr(4);n=n.concat(a.map(e=>`w${e}${t}`))}else n.push(e)}else n.push(l);return{srcset:d(t,n),src:v(t,e)}},getCdnUrl:v,formatSrcset:d}},91296:function(t,e,n){var r=0/0,o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,f="object"==typeof self&&self&&self.Object===Object&&self,p=c||f||Function("return this")(),l=Object.prototype.toString,h=Math.max,v=Math.min,d=function(){return p.Date.now()};function y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function x(t){if("number"==typeof t)return t;if("symbol"==typeof(e=t)||e&&"object"==typeof e&&"[object Symbol]"==l.call(e))return r;if(y(t)){var e,n="function"==typeof t.valueOf?t.valueOf():t;t=y(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var c=u.test(t);return c||a.test(t)?s(t.slice(2),c?2:8):i.test(t)?r:+t}t.exports=function(t,e,n){var r,o,i,u,a,s,c=0,f=!1,p=!1,l=!0;if("function"!=typeof t)throw TypeError("Expected a function");function b(e){var n=r,i=o;return r=o=void 0,c=e,u=t.apply(i,n)}function g(t){var n=t-s,r=t-c;return void 0===s||n>=e||n<0||p&&r>=i}function O(){var t,n,r,o=d();if(g(o))return _(o);a=setTimeout(O,(t=o-s,n=o-c,r=e-t,p?v(r,i-n):r))}function _(t){return(a=void 0,l&&r)?b(t):(r=o=void 0,u)}function E(){var t,n=d(),i=g(n);if(r=arguments,o=this,s=n,i){if(void 0===a)return c=t=s,a=setTimeout(O,e),f?b(t):u;if(p)return a=setTimeout(O,e),b(s)}return void 0===a&&(a=setTimeout(O,e)),u}return e=x(e)||0,y(n)&&(f=!!n.leading,i=(p="maxWait"in n)?h(x(n.maxWait)||0,e):i,l="trailing"in n?!!n.trailing:l),E.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=s=o=a=void 0},E.flush=function(){return void 0===a?u:_(d())},E}},1989:function(t,e,n){var r=n(51789),o=n(80401),i=n(57667),u=n(21327),a=n(81866);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}},1196:function(t){t.exports=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r=200){var d=e?null:a(t);if(d)return s(d);l=!1,f=u,v=new r}else v=e?[]:h;t:for(;++c-1&&t%1==0&&t-1}},54705:function(t,e,n){var r=n(18470);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},24785:function(t,e,n){var r=n(1989),o=n(38407),i=n(57071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},11285:function(t,e,n){var r=n(45050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},96e3:function(t,e,n){var r=n(45050);t.exports=function(t){return r(this,t).get(t)}},49916:function(t,e,n){var r=n(45050);t.exports=function(t){return r(this,t).has(t)}},95265:function(t,e,n){var r=n(45050);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},24523:function(t,e,n){var r=n(88306);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},94536:function(t,e,n){var r=n(10852)(Object,"create");t.exports=r},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},78638:function(t,e,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},90619:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},12082:function(t){t.exports=function(t){return this.__data__.has(t)}},21814:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},42351:function(t){t.exports=function(t,e,n){for(var r=n-1,o=t.length;++r-1&&t%1==0&&t<=9007199254740991}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},33448:function(t,e,n){var r=n(44239),o=n(37005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},88306:function(t,e,n){var r=n(83369);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},50308:function(t){t.exports=function(){}},79833:function(t,e,n){var r=n(80531);t.exports=function(t){return null==t?"":r(t)}},44908:function(t,e,n){var r=n(45652);t.exports=function(t){return t&&t.length?r(t):[]}},7287:function(t,e,n){var r=n(34865),o=n(1757);t.exports=function(t,e){return o(t||[],e||[],r)}},13961:function(t,e,n){"use strict";var r=n(8307),o=n(93967),i=n.n(o),u=n(67294),a=n(85893);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t){for(var e=1;e(0,a.jsx)("img",c(c({},t),{},{ref:e,className:i()(["block","h-full w-full max-w-full","relative left-0 top-0","object-cover","image-rendering-optimize-contrast",t.className])})));e.Z=f},40442:function(t,e,n){"use strict";n.d(e,{Z:function(){return M}});var r,o,i=n(8307),u=n(4730),a=n(2578),s=n(67294);let c={1920:960,1760:960,1600:800,1440:800,1280:640,1120:640,960:480,800:480,640:480},f=({mediaSrcset:t,originalWidth:e,keepImageOriginal:n,isArticleFeed:r,isGallery:o})=>{if(r)return"";let i=RegExp("\\?v=w(\\d+)r","g"),u=RegExp("\\?v=w(\\d+)\\s","g"),a=i.test(t),s=u.test(t),f={widthAndRatio:()=>t?.replace(i,(t,e)=>{let n=c[e];return n?`?v=w${n}r`:t}),widthOnly:()=>t?.replace(u,(t,n)=>Number(e)>Number(n)?`?v=w${n} `:" ")};return o&&a?f.widthAndRatio():n&&s&&e?f.widthOnly():t};var p=n(93967),l=n.n(p),h=n(91296),v=n.n(h),d=n(1216),y=n(63366),x=n(94578),b=n(73935),g={disabled:!1},O=s.createContext(null),_="unmounted",E="exited",m="entering",j="entered",w="exiting",S=function(t){function e(e,n){r=t.call(this,e,n)||this;var r,o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o=E,r.appearStatus=m):o=j:o=e.unmountOnExit||e.mountOnEnter?_:E,r.state={status:o},r.nextCallback=null,r}(0,x.Z)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===_?{status:E}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==m&&n!==j&&(e=m):(n===m||n===j)&&(e=w)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){if(this.cancelNextCallback(),e===m){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:b.findDOMNode(this);n&&n.scrollTop}this.performEnter(t)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===E&&this.setState({status:_})},n.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.isMounting:t,o=this.props.nodeRef?[r]:[b.findDOMNode(this),r],i=o[0],u=o[1],a=this.getTimeouts(),s=r?a.appear:a.enter;if(!t&&!n||g.disabled){this.safeSetState({status:j},function(){e.props.onEntered(i)});return}this.props.onEnter(i,u),this.safeSetState({status:m},function(){e.props.onEntering(i,u),e.onTransitionEnd(s,function(){e.safeSetState({status:j},function(){e.props.onEntered(i,u)})})})},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:b.findDOMNode(this);if(!e||g.disabled){this.safeSetState({status:E},function(){t.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:w},function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,function(){t.safeSetState({status:E},function(){t.props.onExited(r)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:b.findDOMNode(this),r=null==t&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],u=o[1];this.props.addEndListener(i,u)}null!=t&&setTimeout(this.nextCallback,t)},n.render=function(){var t=this.state.status;if(t===_)return null;var e=this.props,n=e.children,r=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,(0,y.Z)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(O.Provider,{value:null},"function"==typeof n?n(t,r):s.cloneElement(s.Children.only(n),r))},e}(s.Component);function P(){}S.contextType=O,S.propTypes={},S.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:P,onEntering:P,onEntered:P,onExit:P,onExiting:P,onExited:P},S.UNMOUNTED=_,S.EXITED=E,S.ENTERING=m,S.ENTERED=j,S.EXITING=w;var N=n(85893);let k=["height","duration","offset","easing","disableLazy","children","className","display","lazyPlaceholder"];function $(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function T(t){for(var e=1;e{let{height:e,duration:n=500,offset:r=150,easing:o=C.EASE_IN_OUT,disableLazy:i=!1,children:a,className:c,display:f,lazyPlaceholder:p}=t,h=(0,u.Z)(t,k),{0:y,1:x}=(0,s.useState)(!1),b=i?s.Fragment:d.ZP,g=i?{}:T({height:e,offset:r,placeholder:p},h);(0,s.useEffect)(()=>{let t=v()(()=>{i||(0,d.be)()},200);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]);let O=()=>x(!0);return(0,N.jsx)(b,T(T({},g),{},{children:(0,N.jsx)(S,{in:y,timeout:n,children:t=>(0,N.jsx)("div",{className:l()("transition-opacity duration-[var(--fade-duration)] ease-[var(--fade-ease)]","opacity-0",{inline:"inline",block:"block",flex:"flex",none:"hidden"}[f],c),style:T({"--fade-duration":`${n}ms`,"--fade-ease":o},z[t]),children:a?.(O)})})}))},D=n(13961);let R=((o={}).DARK="dark",o.LIGHT="light",o);var I=t=>{let{theme:e=R.LIGHT,className:n}=t;return(0,N.jsx)("div",{className:l()(["h-full w-full","relative","border-blue-500","bg-cover bg-center bg-no-repeat",n]),style:{backgroundImage:{[R.LIGHT]:"url(/images/placeholder-thumbnail-square.svg)",[R.DARK]:"url(/images/placeholder-thumbnail-square-dark.svg)"}[e]}})};let L=["imageUrl","alt","imageVersion","srcSetSizes","lazyOnce","fadeInOnly","fadeInClassName","swiperLazy","lazyOffset","lazyOverflow","showPlaceholderOnError","theme","fadeInDisplay","attrWidth","attrHeight","lazyPlaceholder","keepImageOriginal","originalWidth","isGallery","isArticleFeed"];function Z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var M=s.forwardRef((t,e)=>{let{imageUrl:n,alt:r,imageVersion:o=a.VERSIONS.WALL,srcSetSizes:c,lazyOnce:p=!0,fadeInOnly:l=!1,fadeInClassName:h,swiperLazy:v,lazyOffset:d,lazyOverflow:y,showPlaceholderOnError:x=!1,theme:b,fadeInDisplay:g,attrWidth:O,attrHeight:_,lazyPlaceholder:E,keepImageOriginal:m=!1,originalWidth:j,isGallery:w=!1,isArticleFeed:S}=t,P=(0,u.Z)(t,L),k=(0,a.getMediaAttr)(n,m?a.VERSIONS.WALL:o),{0:$,1:T}=(0,s.useState)(!1),z=m?(()=>{let t=j&&j>1920?"?v=w1920":"";return`${n}${t}`})():(()=>{let t=RegExp("\\?v=w(\\d+)");return S?k.src?.replace(t,`?v=w${"vertical"===S?640:320}`):k.src})(),C=f({mediaSrcset:k.srcset,originalWidth:j,keepImageOriginal:m,isArticleFeed:S,isGallery:w});return(0,N.jsx)(A,{height:"100%",once:p,disableLazy:l,className:h,display:g,offset:d??500,duration:200,overflow:y,lazyPlaceholder:E,children:t=>x&&$?(0,N.jsx)(I,{theme:b}):(0,N.jsx)(D.Z,function(t){for(var e=1;e{x&&T(!0)}},P))})})},94578:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(89611);function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,r.Z)(t,e)}},89611:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}n.d(e,{Z:function(){return r}})}}]); //# sourceMappingURL=442-cf39420375a69098.js.map