text: (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{3096:function(t,e,r){var n="Expected a function",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,u="object"==typeof self&&self&&self.Object===Object&&self,p=l||u||Function("return this")(),f=Object.prototype.toString,d=Math.max,m=Math.min,g=function(){return p.Date.now()};function h(t,e,r){var i,o,s,c,a,l,u=0,p=!1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError(n);function y(e){var r=i,n=o;return i=o=void 0,u=e,c=t.apply(n,r)}function b(t){return u=t,a=setTimeout(w,e),p?y(t):c}function O(t){var r=t-l;return void 0===l||r>=e||r<0||f&&t-u>=s}function w(){var t=g();if(O(t))return x(t);a=setTimeout(w,function(t){var r=e-(t-l);return f?m(r,s-(t-u)):r}(t))}function x(t){return a=void 0,h&&i?y(t):(i=o=void 0,c)}function P(){var t=g(),r=O(t);if(i=arguments,o=this,l=t,r){if(void 0===a)return b(l);if(f)return a=setTimeout(w,e),y(l)}return void 0===a&&(a=setTimeout(w,e)),c}return e=j(e)||0,v(r)&&(p=!!r.leading,s=(f="maxWait"in r)?d(j(r.maxWait)||0,e):s,h="trailing"in r?!!r.trailing:h),P.cancel=function(){void 0!==a&&clearTimeout(a),u=0,i=l=o=a=void 0},P.flush=function(){return void 0===a?c:x(g())},P}function v(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function j(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==f.call(t)}(t))return NaN;if(v(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=v(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var r=s.test(t);return r||c.test(t)?a(t.slice(2),r?2:8):o.test(t)?NaN:+t}t.exports=function(t,e,r){var i=!0,o=!0;if("function"!=typeof t)throw new TypeError(n);return v(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),h(t,e,{leading:i,maxWait:e,trailing:o})}},5116:function(t,e,r){"use strict";r.d(e,{w:function(){return i}});var n=r(5893),i=function(t){var e=t.srcImg,r=t.children;return(0,n.jsx)(n.Fragment,{children:e?(0,n.jsx)("div",{className:"outer site-header-background responsive-header-img",style:{backgroundImage:"url(".concat(e,")")},children:r}):(0,n.jsx)("div",{className:"outer site-header-background no-image",children:r})})}},4786:function(t,e,r){"use strict";r.d(e,{I:function(){return u}});var n=r(6265),i=r(5893),o=r(2982);function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var c=function(t){var e=t.settings,r=t.posts,c=t.isHome;return(0,i.jsx)(i.Fragment,{children:r.map((function(t,r){return(0,i.jsx)(o.y,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},{settings:e,post:t,isHome:c,num:r}),r)}))})};function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var u=function(t){return(0,i.jsx)("div",{className:"inner posts",children:(0,i.jsx)("div",{className:"post-feed",children:(0,i.jsx)(c,l({},t))})})}},5565:function(t,e,r){"use strict";r.d(e,{R:function(){return d}});var n=r(4047),i=r(2700),o=r(4706),s=r(8127),c=r(4102),a=r(775),l=r(6265),u=r(7294);function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,a.Z)(t);if(e){var i=(0,a.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,c.Z)(this,r)}}var f=r(3096),d=function(t){(0,s.Z)(r,t);var e=p(r);function r(t){var i;return(0,n.Z)(this,r),i=e.call(this,t),(0,l.Z)((0,o.Z)(i),"anchorRef",void 0),(0,l.Z)((0,o.Z)(i),"activeClass",void 0),(0,l.Z)((0,o.Z)(i),"isPost",void 0),(0,l.Z)((0,o.Z)(i),"state",void 0),(0,l.Z)((0,o.Z)(i),"scrollHandler",(function(){})),(0,l.Z)((0,o.Z)(i),"resizeHandler",(function(){})),(0,l.Z)((0,o.Z)(i),"onScroll",(function(){i.setState({lastScrollY:window.scrollY}),i.requestTick()})),(0,l.Z)((0,o.Z)(i),"requestTick",(function(){i.state.ticking||requestAnimationFrame(i.update),i.setState({ticking:!1})})),(0,l.Z)((0,o.Z)(i),"update",(function(){var t=i.anchorRef&&i.anchorRef.current,e=(t&&t.getBoundingClientRect().top||0)+window.scrollY,r=-20;i.isPost&&(r=t&&t.offsetHeight+35||0),i.state.lastScrollY>=e+r?i.setState({currentClass:i.activeClass}):i.setState({currentClass:""}),i.setState({ticking:!1})})),i.scrollHandler=i.scrollHandler.bind((0,o.Z)(i)),i.resizeHandler=i.resizeHandler.bind((0,o.Z)(i)),i.anchorRef=(0,u.createRef)(),i.activeClass=i.props.activeClass,i.isPost=i.props.isPost||!1,i.state={ticking:!1,lastScrollY:0,currentClass:""},i}return(0,i.Z)(r,[{key:"componentDidMount",value:function(){this.scrollHandler=f(this.onScroll,this.props.throttle),this.resizeHandler=f(this.onScroll,this.props.throttle),window.addEventListener("scroll",this.scrollHandler,{passive:!0}),window.addEventListener("resize",this.resizeHandler,{passive:!0})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.scrollHandler),window.removeEventListener("resize",this.resizeHandler)}},{key:"render",value:function(){return this.props.render(this)}}]),r}(u.Component)},8277:function(t,e,r){"use strict";r.d(e,{H:function(){return f},N:function(){return d}});var n=r(5893),i=r(6265),o=r(1163),s=r(9008),c=r(861),a=r(8211);function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){(0,i.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var p=function(t){return t?t.filter((function(t){var e;return"hash-"!==(null===(e=t.name)||void 0===e?void 0:e.substr(0,5))})):[]},f=function(t){var e=t.title,r=t.description,i=t.seoImage,l=t.settings,f=t.article,d=f||{},g=d.og_title,h=d.og_description,v=d.published_at,j=d.updated_at,y=d.primary_author,b=d.primary_tag,O=d.twitter_title,w=d.twitter_description,x=f?"article":"website",P=null===y||void 0===y?void 0:y.facebook,_=(0,o.useRouter)(),Z=l.processEnv.siteUrl,S=c.resolve(Z,_.asPath),k=l.twitter,E=l.title,D=l.description,N=l.meta_title,H=l.meta_description,I=e||N||E||a.wJ,T=r||H||D||a.Gj,R=m(u(u({},t),{},{title:I,description:T,seoImage:i}));return(0,n.jsxs)(s.default,{children:[(0,n.jsx)("title",{children:I}),(0,n.jsx)("meta",{name:"description",content:T}),(0,n.jsx)("link",{rel:"canonical",href:S}),(0,n.jsx)("meta",{property:"og:type",content:x}),(0,n.jsx)("meta",{property:"og:title",content:g||I}),(0,n.jsx)("meta",{property:"og:description",content:h||T}),(0,n.jsx)("meta",{property:"og:site_name",content:I}),(0,n.jsx)("meta",{property:"og:url",content:S}),v&&(0,n.jsx)("meta",{property:"article:published_time",content:v}),j&&(0,n.jsx)("meta",{property:"article:modified_time",content:j}),p(null===f||void 0===f?void 0:f.tags).map((function(t,e){var r=t.name;return(0,n.jsx)("meta",{property:"article:tag",content:r},e)})),P&&(0,n.jsx)("meta",{property:"article:author",content:"https://www.facebook.com/".concat(P.replace(/^\//,""),"/")}),(0,n.jsx)("meta",{property:"twitter:title",content:O||I}),(0,n.jsx)("meta",{property:"twitter:description",content:w||T}),(0,n.jsx)("meta",{property:"twitter:url",content:S}),y&&(0,n.jsx)("meta",{property:"twitter:label1",content:"Written by"}),y&&(0,n.jsx)("meta",{property:"twitter:data1",content:null===y||void 0===y?void 0:y.name}),b&&(0,n.jsx)("meta",{property:"twitter:label2",content:"Filed under"}),b&&(0,n.jsx)("meta",{property:"twitter:data2",content:null===b||void 0===b?void 0:b.name}),(0,n.jsx)("meta",{property:"twitter:card",content:"summary_large_image"}),k&&(0,n.jsx)("meta",{property:"twitter:creator",content:k}),k&&(0,n.jsx)("meta",{property:"twitter:site",content:"https://twitter.com/".concat(k.replace(/^@/,""),"/")}),i&&(0,n.jsx)("meta",{name:"twitter:image",content:i.url}),i&&(0,n.jsx)("meta",{property:"og:image",content:i.url}),i&&(0,n.jsx)("meta",{property:"og:image:width",content:"".concat(i.dimensions.width)}),i&&(0,n.jsx)("meta",{property:"og:image:height",content:"".concat(i.dimensions.height)}),(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(R)}})]})},d=function(t){var e=t.website,r=t.twitter,n=t.facebook,i=[e,r&&"https://twitter.com/".concat(r.replace(/^@/,""),"/"),n&&"https://www.facebook.com/".concat(n.replace(/^\//,""),"/")].filter((function(t){return!!t}));return i.length>0&&'["'.concat(i.join('", "'),'"]')||void 0},m=function(t){var e=t.title,r=t.description,n=t.canonical,i=t.seoImage,o=t.settings,s=t.sameAs,l=t.article,p=o.processEnv.siteUrl,f=o.logo||c.resolve(p,a.__);return u(u({"@context":"https://schema.org/","@type":l?"Article":"WebSite",sameAs:s,url:n},l&&u({},g(l))),{},{image:u({},i&&u({"@type":"ImageObject",url:i.url},i.dimensions)),publisher:{"@type":"Organization",name:e,logo:{"@type":"ImageObject",url:f,width:60,height:60}},mainEntityOfPage:{"@type":"WebPage","@id":p},description:r})},g=function(t){var e=t.published_at,r=t.updated_at,n=t.primary_author,i=t.tags,o=t.meta_title,s=t.title,c=null===n||void 0===n?void 0:n.name,a=null===n||void 0===n?void 0:n.profile_image,l=n&&d(n)||void 0,u=p(i);return{datePublished:e,dateModified:r,author:{"@type":"Article",name:c,image:a,sameAs:l},keywords:null!==u&&void 0!==u&&u.length?u.join(", "):void 0,headline:o||s}}},1788:function(t,e,r){"use strict";r.r(e),r.d(e,{__N_SSG:function(){return b},default:function(){return O}});var n=r(5893),i=r(6265),o=r(1163),s=r(5887),c=r(4786),a=r(5675),l=r(1664),u=r(1362),p=r(5116),f=r(3148);function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){(0,i.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var g=function(t){var e=t.settings,r=(0,f.U)((0,f.V)()),i=e,o=i.logoImage,s=i.cover_image||"",c=r("SITE_TITLE",i.title),d=e.processEnv,g=d.siteUrl,h=d.nextImages,v=h.feature,j=h.quality;return(0,n.jsx)("header",{className:"site-home-header",children:(0,n.jsx)(p.w,{srcImg:s,children:(0,n.jsxs)("div",{className:"inner",children:[(0,n.jsx)(u.h,m({className:"site-nav"},{siteUrl:g,settings:e})),(0,n.jsxs)("div",{className:"site-header-content",children:[(0,n.jsx)("h1",{className:"site-title",children:o&&v?(0,n.jsx)(l.default,{href:"/",children:(0,n.jsx)("a",{children:(0,n.jsx)("div",{className:"site-logo",style:{marginTop:"8px",height:"".concat(55,"px"),width:"".concat(function(t,e){var r=t.dimensions;return e*r.width/r.height}(o,55),"px")},children:(0,n.jsx)(a.default,m({src:o.url,alt:c,layout:"responsive",quality:j},o.dimensions))})})}):i.logo?(0,n.jsx)(l.default,{href:"/",children:(0,n.jsx)("a",{children:(0,n.jsx)("img",{className:"site-logo",src:i.logo,alt:c})})}):c}),(0,n.jsx)("h2",{className:"site-description",children:i.description})]})]})})})},h=r(5565),v=r(8277);function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach((function(e){(0,i.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var b=!0;function O(t){var e=t.cmsData;if((0,o.useRouter)().isFallback)return(0,n.jsx)("div",{children:"Loading..."});var r=e.settings,i=e.posts,a=e.seoImage,l=e.bodyClass;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.H,y({},{settings:r,seoImage:a})),(0,n.jsx)(h.R,{throttle:300,activeClass:"fixed-nav-active",render:function(t){return(0,n.jsx)(s.A,y(y({},{bodyClass:l,sticky:t,settings:r,isHome:!0}),{},{header:(0,n.jsx)(g,y({},{settings:r})),children:(0,n.jsx)(c.I,y({},{settings:r,posts:i,isHome:!0}))}))}})]})}},5301:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return r(1788)}])},9008:function(t,e,r){t.exports=r(2775)}},function(t){t.O(0,[139,584,774,888,179],(function(){return e=5301,t(t.s=e);var e}));var e=t.O();_N_E=e}]);