-
Notifications
You must be signed in to change notification settings - Fork 0
/
7a635b5fa824dc8842286efe84ee4d56fa528918-178aa8423e984015a4cc.js
2 lines (2 loc) · 65.2 KB
/
7a635b5fa824dc8842286efe84ee4d56fa528918-178aa8423e984015a4cc.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"28nh":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n("q1tI"),c=(i=l)&&i.__esModule?i:{default:i},u=n("17x9"),d=n("ar19"),p=(0,u.shape)({make:u.func,duration:u.number.isRequired,delay:u.number.isRequired,forever:u.bool,count:u.number.isRequired,style:u.object.isRequired,reverse:u.bool}),f={collapse:u.bool,collapseEl:u.element,cascade:u.bool,wait:u.number,force:u.bool,disabled:u.bool,appear:u.bool,enter:u.bool,exit:u.bool,fraction:u.number,refProp:u.string,innerRef:u.func,onReveal:u.func,unmountOnExit:u.bool,mountOnEnter:u.bool,inEffect:p.isRequired,outEffect:(0,u.oneOfType)([p,(0,u.oneOf)([!1])]).isRequired,ssrReveal:u.bool,collapseOnly:u.bool,ssrFadeout:u.bool},m={transitionGroup:u.object},h=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.isOn=void 0===e.when||!!e.when,i.state={collapse:e.collapse?t.getInitialCollapseStyle(e):void 0,style:{opacity:i.isOn&&!e.ssrReveal||!e.outEffect?void 0:0}},i.savedChild=!1,i.isShown=!1,d.observerMode?i.handleObserve=i.handleObserve.bind(i):(i.revealHandler=i.makeHandler(i.reveal),i.resizeHandler=i.makeHandler(i.resize)),i.saveRef=i.saveRef.bind(i),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),s(t,[{key:"saveRef",value:function(e){this.childRef&&this.childRef(e),this.props.innerRef&&this.props.innerRef(e),this.el!==e&&(this.el=e&&"offsetHeight"in e?e:void 0,this.observe(this.props,!0))}},{key:"invisible",value:function(){this&&this.el&&(this.savedChild=!1,this.isShown||(this.setState({hasExited:!0,collapse:this.props.collapse?a({},this.state.collapse,{visibility:"hidden"}):null,style:{opacity:0}}),!d.observerMode&&this.props.collapse&&window.document.dispatchEvent(d.collapseend)))}},{key:"animationEnd",value:function(e,t,n){var i=this,r=n.forever,o=n.count,a=n.delay,s=n.duration;if(!r){this.animationEndTimeout=window.setTimeout((function(){i&&i.el&&(i.animationEndTimeout=void 0,e.call(i))}),a+(s+(t?s:0)*o))}}},{key:"getDimensionValue",value:function(){return this.el.offsetHeight+parseInt(window.getComputedStyle(this.el,null).getPropertyValue("margin-top"),10)+parseInt(window.getComputedStyle(this.el,null).getPropertyValue("margin-bottom"),10)}},{key:"collapse",value:function(e,t,n){var i=n.duration+(t.cascade?n.duration:0),r=this.isOn?this.getDimensionValue():0,o=void 0,a=void 0;if(t.collapseOnly)o=n.duration/3,a=n.delay;else{var s=i>>2,l=s>>1;o=s,a=n.delay+(this.isOn?0:i-s-l),e.style.animationDuration=i-s+(this.isOn?l:-l)+"ms",e.style.animationDelay=n.delay+(this.isOn?s-l:0)+"ms"}return e.collapse={height:r,transition:"height "+o+"ms ease "+a+"ms",overflow:t.collapseOnly?"hidden":void 0},e}},{key:"animate",value:function(e){if(this&&this.el&&(this.unlisten(),this.isShown!==this.isOn)){this.isShown=this.isOn;var t=!this.isOn&&e.outEffect,n=e[t?"outEffect":"inEffect"],i="style"in n&&n.style.animationName||void 0,r=void 0;e.collapseOnly?r={hasAppeared:!0,hasExited:!1,style:{opacity:1}}:((e.outEffect||this.isOn)&&n.make&&(i=n.make),r={hasAppeared:!0,hasExited:!1,collapse:void 0,style:a({},n.style,{animationDuration:n.duration+"ms",animationDelay:n.delay+"ms",animationIterationCount:n.forever?"infinite":n.count,opacity:1,animationName:i}),className:n.className}),this.setState(e.collapse?this.collapse(r,e,n):r),t?(this.savedChild=c.default.cloneElement(this.getChild()),this.animationEnd(this.invisible,e.cascade,n)):this.savedChild=!1,this.onReveal(e)}}},{key:"onReveal",value:function(e){e.onReveal&&this.isOn&&(this.onRevealTimeout&&(this.onRevealTimeout=window.clearTimeout(this.onRevealTimeout)),e.wait?this.onRevealTimeout=window.setTimeout(e.onReveal,e.wait):e.onReveal())}},{key:"componentWillUnmount",value:function(){this.unlisten(),d.ssr&&(0,d.disableSsr)()}},{key:"handleObserve",value:function(e,t){o(e,1)[0].intersectionRatio>0&&(t.disconnect(),this.observer=null,this.reveal(this.props,!0))}},{key:"observe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.el&&d.observerMode){if(this.observer){if(!t)return;this.observer.disconnect()}else if(t)return;this.observer=new IntersectionObserver(this.handleObserve,{threshold:e.fraction}),this.observer.observe(this.el)}}},{key:"reveal",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];d.globalHide||(0,d.hideAll)(),this&&this.el&&(e||(e=this.props),d.ssr&&(0,d.disableSsr)(),this.isOn&&this.isShown&&void 0!==e.spy?(this.isShown=!1,this.setState({style:{}}),window.setTimeout((function(){return t.reveal(e)}),200)):n||this.inViewport(e)||e.force?this.animate(e):d.observerMode?this.observe(e):this.listen())}},{key:"componentDidMount",value:function(){var e=this;if(this.el&&!this.props.disabled){this.props.collapseOnly||("make"in this.props.inEffect&&this.props.inEffect.make(!1,this.props),void 0!==this.props.when&&this.props.outEffect&&"make"in this.props.outEffect&&this.props.outEffect.make(!0,this.props));var n=this.context.transitionGroup,i=n&&!n.isMounting?!("enter"in this.props&&!1===this.props.enter):this.props.appear;return this.isOn&&((void 0!==this.props.when||void 0!==this.props.spy)&&!i||d.ssr&&!d.fadeOutEnabled&&!this.props.ssrFadeout&&this.props.outEffect&&!this.props.ssrReveal&&t.getTop(this.el)<window.pageYOffset+window.innerHeight)?(this.isShown=!0,this.setState({hasAppeared:!0,collapse:this.props.collapse?{height:this.getDimensionValue()}:this.state.collapse,style:{opacity:1}}),void this.onReveal(this.props)):d.ssr&&(d.fadeOutEnabled||this.props.ssrFadeout)&&this.props.outEffect&&t.getTop(this.el)<window.pageYOffset+window.innerHeight?(this.setState({style:{opacity:0,transition:"opacity 1000ms 1000ms"}}),void window.setTimeout((function(){return e.reveal(e.props,!0)}),2e3)):void(this.isOn&&(this.props.force?this.animate(this.props):this.reveal(this.props)))}}},{key:"cascade",value:function(e){var t=this,n=void 0;n="string"==typeof e?e.split("").map((function(e,t){return c.default.createElement("span",{key:t,style:{display:"inline-block",whiteSpace:"pre"}},e)})):c.default.Children.toArray(e);var i=this.props[this.isOn||!this.props.outEffect?"inEffect":"outEffect"],o=i.duration,s=i.reverse,l=n.length,u=2*o;this.props.collapse&&(u=parseInt(this.state.style.animationDuration,10),o=u/2);var p=s?l:0;return n.map((function(e){return"object"===(void 0===e?"undefined":r(e))&&e?c.default.cloneElement(e,{style:a({},e.props.style,t.state.style,{animationDuration:Math.round((0,d.cascade)(s?p--:p++,0,l,o,u))+"ms"})}):e}))}},{key:"componentWillReceiveProps",value:function(e){void 0!==e.when&&(this.isOn=!!e.when),e.fraction!==this.props.fraction&&this.observe(e,!0),!this.isOn&&e.onExited&&"exit"in e&&!1===e.exit?e.onExited():e.disabled||(e.collapse&&!this.props.collapse&&(this.setState({style:{},collapse:t.getInitialCollapseStyle(e)}),this.isShown=!1),e.when===this.props.when&&e.spy===this.props.spy||this.reveal(e),this.onRevealTimeout&&!this.isOn&&(this.onRevealTimeout=window.clearTimeout(this.onRevealTimeout)))}},{key:"getChild",value:function(){if(this.savedChild&&!this.props.disabled)return this.savedChild;if("object"===r(this.props.children)){var e=c.default.Children.only(this.props.children);return"type"in e&&"string"==typeof e.type||"ref"!==this.props.refProp?e:c.default.createElement("div",null,e)}return c.default.createElement("div",null,this.props.children)}},{key:"render",value:function(){var e;e=this.state.hasAppeared?!this.props.unmountOnExit||!this.state.hasExited||this.isOn:!this.props.mountOnEnter||this.isOn;var t=this.getChild();"function"==typeof t.ref&&(this.childRef=t.ref);var n=!1,i=t.props,r=i.style,o=i.className,s=i.children,l=this.props.disabled?o:(this.props.outEffect?d.namespace:"")+(this.state.className?" "+this.state.className:"")+(o?" "+o:"")||void 0,u=void 0;"function"==typeof this.state.style.animationName&&(this.state.style.animationName=this.state.style.animationName(!this.isOn,this.props)),this.props.cascade&&!this.props.disabled&&s&&this.state.style.animationName?(n=this.cascade(s),u=a({},r,{opacity:1})):u=this.props.disabled?r:a({},r,this.state.style);var p=a({},this.props.props,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({className:l,style:u},this.props.refProp,this.saveRef)),f=c.default.cloneElement(t,p,e?n||s:void 0);return void 0!==this.props.collapse?this.props.collapseEl?c.default.cloneElement(this.props.collapseEl,{style:a({},this.props.collapseEl.style,this.props.disabled?void 0:this.state.collapse),children:f}):c.default.createElement("div",{style:this.props.disabled?void 0:this.state.collapse,children:f}):f}},{key:"makeHandler",value:function(e){var t=this,n=function(){e.call(t,t.props),t.ticking=!1};return function(){t.ticking||((0,d.raf)(n),t.ticking=!0)}}},{key:"inViewport",value:function(e){if(!this.el||window.document.hidden)return!1;var n=this.el.offsetHeight,i=window.pageYOffset-t.getTop(this.el),r=Math.min(n,window.innerHeight)*(d.globalHide?e.fraction:0);return i>r-window.innerHeight&&i<n-r}},{key:"resize",value:function(e){this&&this.el&&this.isOn&&this.inViewport(e)&&(this.unlisten(),this.isShown=this.isOn,this.setState({hasExited:!this.isOn,hasAppeared:!0,collapse:void 0,style:{opacity:this.isOn||!e.outEffect?1:0}}),this.onReveal(e))}},{key:"listen",value:function(){d.observerMode||this.isListener||(this.isListener=!0,window.addEventListener("scroll",this.revealHandler,{passive:!0}),window.addEventListener("orientationchange",this.revealHandler,{passive:!0}),window.document.addEventListener("visibilitychange",this.revealHandler,{passive:!0}),window.document.addEventListener("collapseend",this.revealHandler,{passive:!0}),window.addEventListener("resize",this.resizeHandler,{passive:!0}))}},{key:"unlisten",value:function(){!d.observerMode&&this.isListener&&(window.removeEventListener("scroll",this.revealHandler,{passive:!0}),window.removeEventListener("orientationchange",this.revealHandler,{passive:!0}),window.document.removeEventListener("visibilitychange",this.revealHandler,{passive:!0}),window.document.removeEventListener("collapseend",this.revealHandler,{passive:!0}),window.removeEventListener("resize",this.resizeHandler,{passive:!0}),this.isListener=!1),this.onRevealTimeout&&(this.onRevealTimeout=window.clearTimeout(this.onRevealTimeout)),this.animationEndTimeout&&(this.animationEndTimeout=window.clearTimeout(this.animationEndTimeout))}}],[{key:"getInitialCollapseStyle",value:function(e){return{height:0,visibility:e.when?void 0:"hidden"}}},{key:"getTop",value:function(e){for(;void 0===e.offsetTop;)e=e.parentNode;for(var t=e.offsetTop;e.offsetParent;t+=e.offsetTop)e=e.offsetParent;return t}}]),t}(c.default.Component);h.propTypes=f,h.defaultProps={fraction:.2,refProp:"ref"},h.contextTypes=m,h.displayName="RevealBase",t.default=h,e.exports=t.default},"3HZZ":function(e,t,n){"undefined"!=typeof self&&self,e.exports=function(e){return i={},t.m=n=[function(t){t.exports=e},function(e,t,n){e.exports=n(2)()},function(e,t,n){"use strict";function i(){}function r(){}var o=n(3);r.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,r,a){if(a!==o){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:i};return n.PropTypes=n}},function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){null!=t&&t<=e.length||(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){null!=t&&t<=e.length||(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){null!=t&&t<=e.length||(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){null!=t&&t<=e.length||(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function d(e,t,n,i,r,o){var a=e.getElementsByTagName(t)[0],s=a,l=a;(l=e.createElement(t)).id=n,l.src=i,s&&s.parentNode?s.parentNode.insertBefore(l,s):e.head.appendChild(l),l.onerror=o,l.onload=r}function p(e,t){var n=e.getElementById(t);n&&n.parentNode.removeChild(n)}function f(e){return I.a.createElement("span",{style:{paddingRight:10,fontWeight:500,paddingLeft:e.icon?0:10,paddingTop:10,paddingBottom:10}},e.children)}function m(e){return I.a.createElement("div",{style:{marginRight:10,background:e.active?"#eee":"#fff",padding:10,borderRadius:2}},I.a.createElement("svg",{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg"},I.a.createElement("g",{fill:"#000",fillRule:"evenodd"},I.a.createElement("path",{d:"M9 3.48c1.69 0 2.83.73 3.48 1.34l2.54-2.48C13.46.89 11.43 0 9 0 5.48 0 2.44 2.02.96 4.96l2.91 2.26C4.6 5.05 6.62 3.48 9 3.48z",fill:"#EA4335"}),I.a.createElement("path",{d:"M17.64 9.2c0-.74-.06-1.28-.19-1.84H9v3.34h4.96c-.1.83-.64 2.08-1.84 2.92l2.84 2.2c1.7-1.57 2.68-3.88 2.68-6.62z",fill:"#4285F4"}),I.a.createElement("path",{d:"M3.88 10.78A5.54 5.54 0 0 1 3.58 9c0-.62.11-1.22.29-1.78L.96 4.96A9.008 9.008 0 0 0 0 9c0 1.45.35 2.82.96 4.04l2.92-2.26z",fill:"#FBBC05"}),I.a.createElement("path",{d:"M9 18c2.43 0 4.47-.8 5.96-2.18l-2.84-2.2c-.76.53-1.78.9-3.12.9-2.38 0-4.4-1.57-5.12-3.74L.97 13.04C2.45 15.98 5.48 18 9 18z",fill:"#34A853"}),I.a.createElement("path",{fill:"none",d:"M0 0h18v18H0z"}))))}function h(e){var t=o(Object(y.useState)(!1),2),n=t[0],i=t[1],r=o(Object(y.useState)(!1),2),a=r[0],s=r[1],l=e.tag,c=e.type,u=e.className,d=e.disabledStyle,p=e.buttonText,h=e.children,b=e.render,T=e.theme,v=e.icon,E=e.disabled,M=g({onSuccess:e.onSuccess,onAutoLoadFinished:e.onAutoLoadFinished,onRequest:e.onRequest,onFailure:e.onFailure,onScriptLoadFailure:e.onScriptLoadFailure,clientId:e.clientId,cookiePolicy:e.cookiePolicy,loginHint:e.loginHint,hostedDomain:e.hostedDomain,autoLoad:e.autoLoad,isSignedIn:e.isSignedIn,fetchBasicProfile:e.fetchBasicProfile,redirectUri:e.redirectUri,discoveryDocs:e.discoveryDocs,uxMode:e.uxMode,scope:e.scope,accessType:e.accessType,responseType:e.responseType,jsSrc:e.jsSrc,prompt:e.prompt}),S=M.signIn,N=E||!M.loaded;if(b)return b({onClick:S,disabled:N});var j={backgroundColor:"dark"===T?"rgb(66, 133, 244)":"#fff",display:"inline-flex",alignItems:"center",color:"dark"===T?"#fff":"rgba(0, 0, 0, .54)",boxShadow:"0 2px 2px 0 rgba(0, 0, 0, .24), 0 0 1px 0 rgba(0, 0, 0, .24)",padding:0,borderRadius:2,border:"1px solid transparent",fontSize:14,fontWeight:"500",fontFamily:"Roboto, sans-serif"},w={cursor:"pointer",backgroundColor:"dark"===T?"#3367D6":"#eee",color:"dark"===T?"#fff":"rgba(0, 0, 0, .54)",opacity:1},A=N?Object.assign({},j,d):a?Object.assign({},j,w):n?Object.assign({},j,{cursor:"pointer",opacity:.9}):j;return I.a.createElement(l,{onMouseEnter:function(){return i(!0)},onMouseLeave:function(){i(!1),s(!1)},onMouseDown:function(){return s(!0)},onMouseUp:function(){return s(!1)},onClick:S,style:A,type:c,disabled:N,className:u},[v&&I.a.createElement(m,{key:1,active:a}),I.a.createElement(f,{icon:v,key:2},h||p)])}n.r(t),n.d(t,"default",(function(){return T})),n.d(t,"GoogleLogin",(function(){return T})),n.d(t,"GoogleLogout",(function(){return E})),n.d(t,"useGoogleLogin",(function(){return g})),n.d(t,"useGoogleLogout",(function(){return v}));var y=n(0),I=n.n(y),g=(n(1),function(e){function t(e){var t=e.getBasicProfile(),n=e.getAuthResponse(!0);e.googleId=t.getId(),e.tokenObj=n,e.tokenId=n.id_token,e.accessToken=n.access_token,e.profileObj={googleId:t.getId(),imageUrl:t.getImageUrl(),email:t.getEmail(),name:t.getName(),givenName:t.getGivenName(),familyName:t.getFamilyName()},o(e)}function n(e){if(e&&e.preventDefault(),x){var n=window.gapi.auth2.getAuthInstance(),i={prompt:P};f(),"code"===A?n.grantOfflineAccess(i).then((function(e){return o(e)}),(function(e){return c(e)})):n.signIn(i).then((function(e){return t(e)}),(function(e){return c(e)}))}}var r=e.onSuccess,o=void 0===r?function(){}:r,a=e.onAutoLoadFinished,s=void 0===a?function(){}:a,l=e.onFailure,c=void 0===l?function(){}:l,u=e.onRequest,f=void 0===u?function(){}:u,m=e.onScriptLoadFailure,h=e.clientId,I=e.cookiePolicy,g=e.loginHint,b=e.hostedDomain,T=e.autoLoad,v=e.isSignedIn,E=e.fetchBasicProfile,M=e.redirectUri,S=e.discoveryDocs,N=e.uxMode,j=e.scope,w=e.accessType,A=e.responseType,O=e.jsSrc,L=void 0===O?"https://apis.google.com/js/api.js":O,P=e.prompt,k=i(Object(y.useState)(!1),2),x=k[0],R=k[1];return Object(y.useEffect)((function(){var e=!1,n=m||c;return d(document,"script","google-login",L,(function(){var i={client_id:h,cookie_policy:I,login_hint:g,hosted_domain:b,fetch_basic_profile:E,discoveryDocs:S,ux_mode:N,redirect_uri:M,scope:j,access_type:w};"code"===A&&(i.access_type="offline"),window.gapi.load("auth2",(function(){var r=window.gapi.auth2.getAuthInstance();r?r.then((function(){e||(v&&r.isSignedIn.get()?(R(!0),s(!0),t(r.currentUser.get())):(R(!0),s(!1)))}),(function(e){c(e)})):window.gapi.auth2.init(i).then((function(n){if(!e){R(!0);var i=v&&n.isSignedIn.get();s(i),i&&t(n.currentUser.get())}}),(function(e){R(!0),s(!1),n(e)}))}))}),(function(e){n(e)})),function(){e=!0,p(document,"google-login")}}),[]),Object(y.useEffect)((function(){T&&n()}),[x]),{signIn:n,loaded:x}});function b(e){var t=c(Object(y.useState)(!1),2),n=t[0],i=t[1],r=c(Object(y.useState)(!1),2),o=r[0],a=r[1],s=e.tag,l=e.type,u=e.className,d=e.disabledStyle,p=e.buttonText,h=e.children,g=e.render,b=e.theme,T=e.icon,E=e.disabled,M=v({jsSrc:e.jsSrc,onFailure:e.onFailure,onScriptLoadFailure:e.onScriptLoadFailure,clientId:e.clientId,cookiePolicy:e.cookiePolicy,loginHint:e.loginHint,hostedDomain:e.hostedDomain,fetchBasicProfile:e.fetchBasicProfile,discoveryDocs:e.discoveryDocs,uxMode:e.uxMode,redirectUri:e.redirectUri,scope:e.scope,accessType:e.accessType,onLogoutSuccess:e.onLogoutSuccess}),S=M.signOut,N=E||!M.loaded;if(g)return g({onClick:S,disabled:N});var j={backgroundColor:"dark"===b?"rgb(66, 133, 244)":"#fff",display:"inline-flex",alignItems:"center",color:"dark"===b?"#fff":"rgba(0, 0, 0, .54)",boxShadow:"0 2px 2px 0 rgba(0, 0, 0, .24), 0 0 1px 0 rgba(0, 0, 0, .24)",padding:0,borderRadius:2,border:"1px solid transparent",fontSize:14,fontWeight:"500",fontFamily:"Roboto, sans-serif"},w={cursor:"pointer",backgroundColor:"dark"===b?"#3367D6":"#eee",color:"dark"===b?"#fff":"rgba(0, 0, 0, .54)",opacity:1},A=N?Object.assign({},j,d):o?Object.assign({},j,w):n?Object.assign({},j,{cursor:"pointer",opacity:.9}):j;return I.a.createElement(s,{onMouseEnter:function(){return i(!0)},onMouseLeave:function(){i(!1),a(!1)},onMouseDown:function(){return a(!0)},onMouseUp:function(){return a(!1)},onClick:S,style:A,type:l,disabled:N,className:u},[T&&I.a.createElement(m,{key:1,active:o}),I.a.createElement(f,{icon:T,key:2},h||p)])}h.defaultProps={type:"button",tag:"button",buttonText:"Sign in with Google",scope:"profile email",accessType:"online",prompt:"",cookiePolicy:"single_host_origin",fetchBasicProfile:!0,isSignedIn:!1,uxMode:"popup",disabledStyle:{opacity:.6},icon:!0,theme:"light",onRequest:function(){}};var T=h,v=function(e){var t=e.jsSrc,n=void 0===t?"https://apis.google.com/js/api.js":t,i=e.onFailure,r=e.onScriptLoadFailure,o=e.clientId,a=e.cookiePolicy,l=e.loginHint,c=e.hostedDomain,u=e.fetchBasicProfile,f=e.discoveryDocs,m=e.uxMode,h=e.redirectUri,I=e.scope,g=e.accessType,b=e.onLogoutSuccess,T=s(Object(y.useState)(!1),2),v=T[0],E=T[1],M=Object(y.useCallback)((function(){if(window.gapi){var e=window.gapi.auth2.getAuthInstance();null!=e&&e.then((function(){e.signOut().then((function(){e.disconnect(),b()}))}),(function(e){return i(e)}))}}),[b]);return Object(y.useEffect)((function(){var e=r||i;return d(document,"script","google-login",n,(function(){var t={client_id:o,cookie_policy:a,login_hint:l,hosted_domain:c,fetch_basic_profile:u,discoveryDocs:f,ux_mode:m,redirect_uri:h,scope:I,access_type:g};window.gapi.load("auth2",(function(){window.gapi.auth2.getAuthInstance()?E(!0):window.gapi.auth2.init(t).then((function(){return E(!0)}),(function(t){return e(t)}))}))}),(function(t){e(t)})),function(){p(document,"google-login")}}),[]),{signOut:M,loaded:v}};b.defaultProps={type:"button",tag:"button",buttonText:"Logout of Google",disabledStyle:{opacity:.6},icon:!0,theme:"light",jsSrc:"https://apis.google.com/js/api.js"};var E=b}],t.c=i,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(i,r,function(t){return e[t]}.bind(null,r));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4);function t(e){if(i[e])return i[e].exports;var r=i[e]={i:e,l:!1,exports:{}};return n[e].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n,i}(n("q1tI"))},"7Sz2":function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyBpZD0iMDYwZTE5YWEtM2Y3ZC00ZjA3LWFhN2UtODIwZjhkMzcxZjU1IiBkYXRhLW5hbWU9IkxheWVyIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSI4NzAuNzEiIGhlaWdodD0iNjkxLjIxIiB2aWV3Qm94PSIwIDAgODcwLjcxIDY5MS4yMSI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSI5NmQ1YmIyMS0xOTY1LTRkM2UtYWIzNy0xYmNjN2JlNTE0Z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Q4Ljc1IiB3aWR0aD0iMjc0LjE5IiBoZWlnaHQ9IjEzLjg2IiBmaWxsPSIjZjVmNWY1Ii8+PHJlY3QgeD0iMjk4LjU2IiB5PSIyNzIuNSIgd2lkdGg9IjI3NC4xOSIgaGVpZ2h0PSIxMy44NiIgZmlsbD0iI2Y1ZjVmNSIvPjxyZWN0IHg9IjI5OC41NiIgeT0iMjk2LjI2IiB3aWR0aD0iMTI0LjcyIiBoZWlnaHQ9IjEzLjg2IiBmaWxsPSIjZjVmNWY1Ii8+PHJlY3QgeD0iNDQ4LjAzIiB5PSIyOTYuMjYiIHdpZHRoPSIxMjQuNzIiIGhlaWdodD0iMTMuODYiIGZpbGw9IiM0Mjg1ZjQiLz48L3N2Zz4="},"8+s/":function(e,t,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var r=n("q1tI"),o=i(r),a=i(n("Gytx"));function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(i){if("function"!=typeof i)throw new Error("Expected WrappedComponent to be a React component.");var c,u=[];function d(){c=e(u.map((function(e){return e.props}))),p.canUseDOM?t(c):n&&(c=n(c))}var p=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.peek=function(){return c},r.rewind=function(){if(r.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,u=[],e};var s=r.prototype;return s.shouldComponentUpdate=function(e){return!a(e,this.props)},s.componentWillMount=function(){u.push(this),d()},s.componentDidUpdate=function(){d()},s.componentWillUnmount=function(){var e=u.indexOf(this);u.splice(e,1),d()},s.render=function(){return o.createElement(i,this.props)},r}(r.Component);return s(p,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(i)+")"),s(p,"canUseDOM",l),p}}},Gytx:function(e,t){e.exports=function(e,t,n,i){var r=n?n.call(i,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(r=n?n.call(i,u,d,c):void 0)||void 0===r&&u!==d)return!1}return!0}},HR9k:function(e,t,n){e.exports=n.p+"static/google-8b201685859c6b291fb39019e19896fd.png"},Kvkj:function(e,t,n){"use strict";n.d(t,"b",(function(){return i.a})),n.d(t,"f",(function(){return b})),n.d(t,"a",(function(){return v})),n.d(t,"d",(function(){return k})),n.d(t,"c",(function(){return x.b})),n.d(t,"e",(function(){return R.a}));var i=n("LbRr"),r=n("q1tI"),o=n.n(r),a=n("vOnD"),s=n("Wbzz"),l=n("HR9k"),c=n.n(l),u=n("3HZZ");const d=a.a.button.withConfig({displayName:"google-btn__MyBtn",componentId:"sc-1vfwj2v-0"})(["background:transparent;border:0;color:white;font-size:1.2em;@media(max-width:860px){font-size:1em;}"]),p=a.a.img.withConfig({displayName:"google-btn__MyImg",componentId:"sc-1vfwj2v-1"})(["width:3em;@media(max-width:860px){width:2.5em;}"]);var f=e=>{let{res:t}=e;return o.a.createElement(u.GoogleLogin,{clientId:"432904370571-10sna4o5st6k2aee0q3p09bt05qjgbng.apps.googleusercontent.com",buttonText:"Login",render:e=>o.a.createElement(d,{onClick:e.onClick,disabled:e.disabled},o.a.createElement(p,{src:c.a}),o.a.createElement("div",{className:"label"},"Login")),onSuccess:t,onFailure:t,cookiePolicy:"single_host_origin"})},m=n("qr5T"),h=n("oLwc"),y=n("20nU");const I=s.Link,g=a.a.div.withConfig({displayName:"sidebar__Nav",componentId:"sc-1r0sell-0"})(["left:0;box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);bottom:0;place-items:center stretch;top:0;font-size:0.85em;height:100vh;display:grid;padding:0.3em;position:fixed;font-size:1em;grid-gap:4em 1em;grid-template-rows:auto auto auto auto auto 1fr;background:",";z-index:10;@media (max-width:860px){height:70px;width:100vw;top:inherit;bottom:0;grid-gap:1em;grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:1fr;}"],e=>e.background);var b=e=>{let{active:t,darkMode:n}=e;const{modal:i,text:a,closeModal:s,displayModal:l}=Object(r.useContext)(m.b),{user:c,setUser:u}=Object(r.useContext)(h.b);let d=e=>{console.log(e);let{givenName:t,familyName:n,email:i,imageUrl:r,googleId:o}=e;return{id:o,fname:t,lname:n,email:i,photo:r}};return o.a.createElement("div",{style:{position:"absolute"}},o.a.createElement(k,{modal:i,close:s,text:a}),o.a.createElement(g,{background:n?"rgb(17 24 39/1)":y.c},o.a.createElement(I,{className:"nav-item txt-md center-items",to:"/",style:{borderLeft:"3px solid "+("home"===t?"white":"transparent")}},o.a.createElement("i",{className:"material-icons lg-icon "+("home"===t?"active-nav":"")},"home"),o.a.createElement("div",null,"Home")),o.a.createElement(I,{className:"nav-item txt-md center-items",to:"/#projects",style:{borderLeft:"3px solid "+("project"===t?"white":"transparent")}}," ",o.a.createElement("i",{className:"material-icons lg-icon "+("project"===t?"active-nav":"")},"work"),o.a.createElement("div",null,"Projects")),o.a.createElement(I,{className:"nav-item txt-md center-items",to:"/articles",style:{borderLeft:"3px solid "+("articles"===t?"white":"transparent")}}," ",o.a.createElement("i",{className:"material-icons lg-icon "+("articles"===t?"active-nav":"")},"work"),o.a.createElement("div",null,"Articles")),o.a.createElement("a",{className:"nav-item txt-md center-items",onClick:()=>l("Thank you for downloading my Resume"),href:"https://github.com/aayush6194/aayush6194.github.io/raw/master/Resume.pdf"},o.a.createElement("i",{className:"material-icons lg-icon "},"account_circle"),o.a.createElement("div",null,"Resume")),o.a.createElement("span",{className:"nav-item txt-md center-items"},c?o.a.createElement("div",{style:{display:"grid",placeItems:"center",textAlign:"center"}},o.a.createElement("img",{style:{borderRadius:"50%",width:"3.5em"},src:c.photo}),o.a.createElement("div",{style:{color:"white",textOverflow:"ellipsis",textSize:"1.5em",lineHeight:"100$"}},c.fname)):o.a.createElement(f,{res:e=>{let t=d(e.profileObj);u(t)}}))))};const T=a.a.div.withConfig({displayName:"dark-mode__FloatBtn",componentId:"sc-ribr3h-0"})(["position:fixed;bottom:6em;right:10px;display:grid;grid-template-columns:auto auto;border:0.15em solid white;border-radius:50px;background:#30ABE8;background:",";color:white;text-align:center;@media( max-width:860px){bottom:5em;}"],e=>e.background);var v=e=>{let{toggleDarkMode:t,darkMode:n}=e;return o.a.createElement(T,{background:""+(n?"black":"#30ABE8")},o.a.createElement("div",{onClick:()=>{t("dark")},style:{padding:".5em 1em"}},o.a.createElement("i",{className:"fas fa-moon white-txt "+(n&&"active-nav")})),o.a.createElement("div",{style:{borderLeft:"2px solid white",padding:".5em 1em"},onClick:()=>t("notDark")},o.a.createElement("i",{className:"fas fa-sun white-txt "+(!n&&"active-nav")})))},E=n("7Sz2"),M=n.n(E),S=n("hXnw"),N=n.n(S);const j=Object(a.b)(["0%{opacity:0;}100%{opacity:1;}"]),w=a.a.div.withConfig({displayName:"modal__Wrapper",componentId:"sc-1b1bv96-0"})(["position:fixed;z-index:1;left:0;top:0;width:100%;height:100%;background-color:rgb(0,0,0);background-color:rgba(0,0,0,0.4);animation:"," 0.5s ease-out;"],j),A=a.a.div.withConfig({displayName:"modal__Modall",componentId:"sc-1b1bv96-1"})(["background:white;margin:2% auto;border:.25em solid dodgerblue;box-shadow:0 14px 28px rgba(0,0,0,0.25),0 10px 10px rgba(0,0,0,0.22);border-radius:1em;width:80%;text-align:center;font-size:1.5em;padding:0;max-width:800px;color:black;@media(max-width:600px){position:absolute;bottom:90px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}"]),O=a.a.button.withConfig({displayName:"modal__Btn",componentId:"sc-1b1bv96-2"})(["color:white;border-radius:50%;background:dodgerblue;border:0;font-size:1em;width:2em;height:2em;margin:0.2em;&:hover{background:red;}"]),L=a.a.div.withConfig({displayName:"modal__Header",componentId:"sc-1b1bv96-3"})(["color:white;background-image:linear-gradient( rgba(12,38,92,0.7),rgba(12,38,92,0.9));border-top-right-radius:.75em;border-top-left-radius:.75em;border:0;margin:0;height:2.5em;"]),P=a.a.div.withConfig({displayName:"modal__Body",componentId:"sc-1b1bv96-4"})(["color:white;font-weight:bolder;background-image:linear-gradient( rgba(32,43,78,0.7),rgba(32,43,78,0.6)),url(",");border-bottom-right-radius:.75em;border-bottom-left-radius:.75em;"],M.a),k=e=>{let{modal:t,text:n,close:i}=e;return o.a.createElement(o.a.Fragment,null,t?o.a.createElement(w,null,o.a.createElement(N.a,null,o.a.createElement(A,null,o.a.createElement(L,null,o.a.createElement(O,{style:{float:"right"},onClick:i}," X ")),o.a.createElement(P,null,o.a.createElement("div",{style:{minHeight:"5em",padding:".2em"},className:""},o.a.createElement("h5",null,n||"Caught an Error. Please Refresh the page!")),o.a.createElement("div",null,o.a.createElement("button",{className:"bt bt-custom",style:{padding:".2em",fontSize:".9em",background:" "},onClick:i},"Cancel")))))):null)};var x=n("kT3S"),R=n("vrFN")},LbRr:function(e,t,n){"use strict";var i=n("q1tI"),r=n.n(i),o=n("Wbzz"),a=n("vOnD");const s=Array.from(Array(20).keys()),l=a.a.span.withConfig({displayName:"Navbar__Animation",componentId:"sc-13abk2p-0"})(["display:block;"]),c=a.a.div.withConfig({displayName:"Navbar__Box",componentId:"sc-13abk2p-1"})(["display:grid;grid-template-columns:1fr 1fr;"]),u=a.a.div.withConfig({displayName:"Navbar__Name",componentId:"sc-13abk2p-2"})(["color:white;font-weight:bold;font-size:1.3em;align-self:stretch"]);var d=e=>{let{darkMode:t,active:n}=e;return r.a.createElement("div",null,r.a.createElement(l,{className:"hide"},s.map(e=>r.a.createElement("span",{pose:"start",key:e,style:{background:"rgba(0 , 0, 0, 0.1)",top:Math.floor(95*Math.random())+"%",left:Math.floor(95*Math.random())+"%",position:"absolute",display:"block",width:"1em",height:"1em",bottom:0,borderRadius:"0.1em",animationDelay:"0s",overflow:"hidden",animationDuration:Math.floor(24*Math.random())+18+"s",animationIterationCount:"infinite"},className:"particle",time:Math.floor(24*Math.random())+12}))),r.a.createElement(c,null,r.a.createElement(u,null,r.a.createElement("span",{className:"white",style:{fontSize:"2em"}},"<Aayush />")),r.a.createElement(o.Link,{to:"/Message",style:{position:"fixed",zIndex:1e3,filter:"message"===n?"drop-shadow(2px 3px 10px gray)":"",color:"message"===n?"#30ABE8":"",background:"message"===n?"white":"",justifySelf:"end"},className:"bt bt-round-white "+(t&&"dark-btn")},"Say Hi!")),r.a.createElement("div",null))};const p=e=>{let{siteTitle:t,active:n,darkMode:i}=e;return r.a.createElement("header",null,r.a.createElement("div",{className:"header"},r.a.createElement(d,{active:n,darkMode:i})))};p.defaultProps={siteTitle:""};t.a=p},TJpk:function(e,t,n){t.__esModule=!0,t.Helmet=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=d(n("q1tI")),a=d(n("17x9")),s=d(n("8+s/")),l=d(n("bmMU")),c=n("v1p5"),u=n("hFT/");function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h,y,I,g=(0,s.default)(c.reducePropsToState,c.handleClientStateChange,c.mapStateOnServer)((function(){return null})),b=(h=g,I=y=function(e){function t(){return f(this,t),m(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!(0,l.default)(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case u.TAG_NAMES.SCRIPT:case u.TAG_NAMES.NOSCRIPT:return{innerHTML:t};case u.TAG_NAMES.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,a=e.nestedChildren;return i({},r,((t={})[n.type]=[].concat(r[n.type]||[],[i({},o,this.mapNestedChildrenToProps(n,a))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,s=e.nestedChildren;switch(r.type){case u.TAG_NAMES.TITLE:return i({},o,((t={})[r.type]=s,t.titleAttributes=i({},a),t));case u.TAG_NAMES.BODY:return i({},o,{bodyAttributes:i({},a)});case u.TAG_NAMES.HTML:return i({},o,{htmlAttributes:i({},a)})}return i({},o,((n={})[r.type]=i({},a),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=i({},t);return Object.keys(e).forEach((function(t){var r;n=i({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,i={};return o.default.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,o=r.children,a=p(r,["children"]),s=(0,c.convertReactPropstoHtmlAttributes)(a);switch(n.warnOnInvalidChildren(e,o),e.type){case u.TAG_NAMES.LINK:case u.TAG_NAMES.META:case u.TAG_NAMES.NOSCRIPT:case u.TAG_NAMES.SCRIPT:case u.TAG_NAMES.STYLE:i=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:i,newChildProps:s,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:o})}}})),t=this.mapArrayTypeChildrenToProps(i,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=p(e,["children"]),r=i({},n);return t&&(r=this.mapChildrenToProps(t,r)),o.default.createElement(h,r)},r(t,null,[{key:"canUseDOM",set:function(e){h.canUseDOM=e}}]),t}(o.default.Component),y.propTypes={base:a.default.object,bodyAttributes:a.default.object,children:a.default.oneOfType([a.default.arrayOf(a.default.node),a.default.node]),defaultTitle:a.default.string,defer:a.default.bool,encodeSpecialCharacters:a.default.bool,htmlAttributes:a.default.object,link:a.default.arrayOf(a.default.object),meta:a.default.arrayOf(a.default.object),noscript:a.default.arrayOf(a.default.object),onChangeClientState:a.default.func,script:a.default.arrayOf(a.default.object),style:a.default.arrayOf(a.default.object),title:a.default.string,titleAttributes:a.default.object,titleTemplate:a.default.string},y.defaultProps={defer:!0,encodeSpecialCharacters:!0},y.peek=h.peek,y.rewind=function(){var e=h.rewind();return e||(e=(0,c.mapStateOnServer)({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},I);b.renderStatic=b.rewind,t.Helmet=b,t.default=b},ar19:function(e,t,n){"use strict";function i(e){try{return m.insertRule(e,m.cssRules.length)}catch(e){console.warn("react-reveal - animation failed")}}function r(){u||(t.globalHide=u=!0,window.removeEventListener("scroll",r,!0),i("."+o+" { opacity: 0; }"),window.removeEventListener("orientationchange",r,!0),window.document.removeEventListener("visibilitychange",r))}Object.defineProperty(t,"__esModule",{value:!0}),t.insertRule=i,t.cascade=function(e,t,n,i,r){var o=Math.log(i),a=(Math.log(r)-o)/(n-t);return Math.exp(o+a*(e-t))},t.animation=function(e){if(!m)return"";var t="@keyframes "+(h+p)+"{"+e+"}",n=f[e];return n?""+h+n:(m.insertRule(t,m.cssRules.length),f[e]=p,""+h+p++)},t.hideAll=r,t.default=function(e){var n=e.ssrFadeout;t.fadeOutEnabled=n};var o=t.namespace="react-reveal",a=(t.defaults={duration:1e3,delay:0,count:1},t.ssr=!0),s=t.observerMode=!1,l=t.raf=function(e){return window.setTimeout(e,66)},c=t.disableSsr=function(){return t.ssr=a=!1},u=(t.fadeOutEnabled=!1,t.ssrFadeout=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t.fadeOutEnabled=e},t.globalHide=!1),d=(t.ie10=!1,t.collapseend=void 0),p=1,f={},m=!1,h=o+"-"+Math.floor(1e15*Math.random())+"-";if("undefined"!=typeof window&&"nodejs"!==window.name&&window.document&&"undefined"!=typeof navigator){t.observerMode=s="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&/\{\s*\[native code\]\s*\}/.test(""+IntersectionObserver),t.raf=l=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||l,t.ssr=a=window.document.querySelectorAll("div[data-reactroot]").length>0,-1!==navigator.appVersion.indexOf("MSIE 10")&&(t.ie10=!0),a&&"performance"in window&&"timing"in window.performance&&"domContentLoadedEventEnd"in window.performance.timing&&window.performance.timing.domLoading&&Date.now()-window.performance.timing.domLoading<300&&(t.ssr=a=!1),a&&window.setTimeout(c,1500),s||(t.collapseend=d=document.createEvent("Event"),d.initEvent("collapseend",!0,!0));var y=document.createElement("style");document.head.appendChild(y),y.sheet&&y.sheet.cssRules&&y.sheet.insertRule&&(m=y.sheet,window.addEventListener("scroll",r,!0),window.addEventListener("orientationchange",r,!0),window.document.addEventListener("visibilitychange",r))}},bmMU:function(e,t,n){"use strict";var i=Array.isArray,r=Object.keys,o=Object.prototype.hasOwnProperty,a="undefined"!=typeof Element;e.exports=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var s,l,c,u=i(t),d=i(n);if(u&&d){if((l=t.length)!=n.length)return!1;for(s=l;0!=s--;)if(!e(t[s],n[s]))return!1;return!0}if(u!=d)return!1;var p=t instanceof Date,f=n instanceof Date;if(p!=f)return!1;if(p&&f)return t.getTime()==n.getTime();var m=t instanceof RegExp,h=n instanceof RegExp;if(m!=h)return!1;if(m&&h)return t.toString()==n.toString();var y=r(t);if((l=y.length)!==r(n).length)return!1;for(s=l;0!=s--;)if(!o.call(n,y[s]))return!1;if(a&&t instanceof Element&&n instanceof Element)return t===n;for(s=l;0!=s--;)if(!("_owner"===(c=y[s])&&t.$$typeof||e(t[c],n[c])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||-2146828260===n.number)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}},"eH+L":function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};t.default=function(e,t,n,i){return"in"in e&&(e.when=e.in),o.default.Children.count(i)<2?o.default.createElement(a.default,r({},e,{inEffect:t,outEffect:n,children:i})):(i=o.default.Children.map(i,(function(i){return o.default.createElement(a.default,r({},e,{inEffect:t,outEffect:n,children:i}))})),"Fragment"in o.default?o.default.createElement(o.default.Fragment,null,i):o.default.createElement("span",null,i))};var o=i(n("q1tI")),a=i(n("28nh"));e.exports=t.default},"hFT/":function(e,t){t.__esModule=!0;t.ATTRIBUTE_NAMES={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"};var n=t.TAG_NAMES={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},i=(t.VALID_TAG_NAMES=Object.keys(n).map((function(e){return n[e]})),t.TAG_PROPERTIES={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src"},t.REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"});t.HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},t.HTML_TAG_MAP=Object.keys(i).reduce((function(e,t){return e[i[t]]=t,e}),{}),t.SELF_CLOSING_TAGS=[n.NOSCRIPT,n.SCRIPT,n.STYLE],t.HELMET_ATTRIBUTE="data-react-helmet"},hXnw:function(e,t,n){"use strict";function i(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function r(e,t){var n=t.left,i=t.right,r=t.up,o=t.down,a=t.top,s=t.bottom,l=t.mirror,c=t.opposite,d=(n?1:0)|(i?2:0)|(a||o?4:0)|(s||r?8:0)|(l?16:0)|(c?32:0)|(e?64:0);if(p.hasOwnProperty(d))return p[d];if(!l!=!(e&&c)){var f=[i,n,s,a,o,r];n=f[0],i=f[1],a=f[2],s=f[3],r=f[4],o=f[5]}var m=n||i,h=a||s||r||o,y=void 0;return m||h?e?y="40% {\n opacity: 1;\n transform: scale3d(.475, .475, .475) translate3d("+(m?(n?"":"-")+"42px":"0")+", "+(h?(o||a?"-":"")+"60px":"0")+", 0);\n }\n to {\n opacity: 0;\n transform: scale(.1) translate3d("+(m?(i?"":"-")+"2000px":"0")+", "+(h?(r||s?"":"-")+"2000px":"0")+", 0);\n transform-origin: "+(h?"center bottom":(n?"left":"right")+" center")+";\n }":y="from {\n opacity: 0;\n transform: scale3d(.1, .1, .1) translate3d("+(m?(n?"-":"")+"1000px":"0")+", "+(h?(o||a?"-":"")+"1000px":"0")+", 0);\n animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);\n }\n 60% {\n opacity: 1;\n transform: scale3d(.475, .475, .475) translate3d("+(m?(i?"-":"")+"10px":"0")+", "+(h?(r||s?"-":"")+"60px":"0")+", 0);\n animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);\n }":y=(e?"to":"from")+" {opacity: 0; transform: scale3d(.1, .1, .1);} "+(e?"from":"to")+" { opacity: 1; transform: none;}",p[d]=(0,u.animation)(y),p[d]}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.defaults,t=e.children,n=(e.out,e.forever),o=e.timeout,a=e.duration,s=void 0===a?u.defaults.duration:a,l=e.delay,d=void 0===l?u.defaults.delay:l,p=e.count,f=void 0===p?u.defaults.count:p,m=i(e,["children","out","forever","timeout","duration","delay","count"]),h={make:r,duration:void 0===o?s:o,delay:d,forever:n,count:f,style:{animationFillMode:"both"},reverse:m.left};return(0,c.default)(m,h,h,t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n("17x9"),l=n("eH+L"),c=(a=l)&&a.__esModule?a:{default:a},u=n("ar19"),d={out:s.bool,left:s.bool,right:s.bool,top:s.bool,bottom:s.bool,mirror:s.bool,opposite:s.bool,duration:s.number,timeout:s.number,delay:s.number,count:s.number,forever:s.bool},p={};o.propTypes=d,t.default=o,e.exports=t.default},v1p5:function(e,t,n){(function(e){t.__esModule=!0,t.warn=t.requestAnimationFrame=t.reducePropsToState=t.mapStateOnServer=t.handleClientStateChange=t.convertReactPropstoHtmlAttributes=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o=l(n("q1tI")),a=l(n("YVoz")),s=n("hFT/");function l(e){return e&&e.__esModule?e:{default:e}}var c,u=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},d=function(e){var t=y(e,s.TAG_NAMES.TITLE),n=y(e,s.HELMET_PROPS.TITLE_TEMPLATE);if(n&&t)return n.replace(/%s/g,(function(){return t}));var i=y(e,s.HELMET_PROPS.DEFAULT_TITLE);return t||i||void 0},p=function(e){return y(e,s.HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||function(){}},f=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return r({},e,t)}),{})},m=function(e,t){return t.filter((function(e){return void 0!==e[s.TAG_NAMES.BASE]})).map((function(e){return e[s.TAG_NAMES.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var i=Object.keys(n),r=0;r<i.length;r++){var o=i[r].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},h=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&v("Helmet: "+e+' should be of type "Array". Instead found type "'+i(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var i={};n.filter((function(e){for(var n=void 0,o=Object.keys(e),a=0;a<o.length;a++){var l=o[a],c=l.toLowerCase();-1===t.indexOf(c)||n===s.TAG_PROPERTIES.REL&&"canonical"===e[n].toLowerCase()||c===s.TAG_PROPERTIES.REL&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(l)||l!==s.TAG_PROPERTIES.INNER_HTML&&l!==s.TAG_PROPERTIES.CSS_TEXT&&l!==s.TAG_PROPERTIES.ITEM_PROP||(n=l)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][u]&&(i[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(i),l=0;l<o.length;l++){var c=o[l],u=(0,a.default)({},r[c],i[c]);r[c]=u}return e}),[]).reverse()},y=function(e,t){for(var n=e.length-1;n>=0;n--){var i=e[n];if(i.hasOwnProperty(t))return i[t]}return null},I=(c=Date.now(),function(e){var t=Date.now();t-c>16?(c=t,e(t)):setTimeout((function(){I(e)}),0)}),g=function(e){return clearTimeout(e)},b="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||I:e.requestAnimationFrame||I,T="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||g:e.cancelAnimationFrame||g,v=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},E=null,M=function(e,t){var n=e.baseTag,i=e.bodyAttributes,r=e.htmlAttributes,o=e.linkTags,a=e.metaTags,l=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,d=e.styleTags,p=e.title,f=e.titleAttributes;j(s.TAG_NAMES.BODY,i),j(s.TAG_NAMES.HTML,r),N(p,f);var m={baseTag:w(s.TAG_NAMES.BASE,n),linkTags:w(s.TAG_NAMES.LINK,o),metaTags:w(s.TAG_NAMES.META,a),noscriptTags:w(s.TAG_NAMES.NOSCRIPT,l),scriptTags:w(s.TAG_NAMES.SCRIPT,u),styleTags:w(s.TAG_NAMES.STYLE,d)},h={},y={};Object.keys(m).forEach((function(e){var t=m[e],n=t.newTags,i=t.oldTags;n.length&&(h[e]=n),i.length&&(y[e]=m[e].oldTags)})),t&&t(),c(e,h,y)},S=function(e){return Array.isArray(e)?e.join(""):e},N=function(e,t){void 0!==e&&document.title!==e&&(document.title=S(e)),j(s.TAG_NAMES.TITLE,t)},j=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var i=n.getAttribute(s.HELMET_ATTRIBUTE),r=i?i.split(","):[],o=[].concat(r),a=Object.keys(t),l=0;l<a.length;l++){var c=a[l],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===r.indexOf(c)&&r.push(c);var d=o.indexOf(c);-1!==d&&o.splice(d,1)}for(var p=o.length-1;p>=0;p--)n.removeAttribute(o[p]);r.length===o.length?n.removeAttribute(s.HELMET_ATTRIBUTE):n.getAttribute(s.HELMET_ATTRIBUTE)!==a.join(",")&&n.setAttribute(s.HELMET_ATTRIBUTE,a.join(","))}},w=function(e,t){var n=document.head||document.querySelector(s.TAG_NAMES.HEAD),i=n.querySelectorAll(e+"["+s.HELMET_ATTRIBUTE+"]"),r=Array.prototype.slice.call(i),o=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var i in t)if(t.hasOwnProperty(i))if(i===s.TAG_PROPERTIES.INNER_HTML)n.innerHTML=t.innerHTML;else if(i===s.TAG_PROPERTIES.CSS_TEXT)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var l=void 0===t[i]?"":t[i];n.setAttribute(i,l)}n.setAttribute(s.HELMET_ATTRIBUTE,"true"),r.some((function(e,t){return a=t,n.isEqualNode(e)}))?r.splice(a,1):o.push(n)})),r.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return n.appendChild(e)})),{oldTags:r,newTags:o}},A=function(e){return Object.keys(e).reduce((function(t,n){var i=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+i:i}),"")},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[s.REACT_TAG_MAP[n]||n]=e[n],t}),t)},L=function(e,t,n){switch(e){case s.TAG_NAMES.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(i={key:e})[s.HELMET_ATTRIBUTE]=!0,r=O(n,i),[o.default.createElement(s.TAG_NAMES.TITLE,r,e)];var e,n,i,r},toString:function(){return function(e,t,n,i){var r=A(n),o=S(t);return r?"<"+e+" "+s.HELMET_ATTRIBUTE+'="true" '+r+">"+u(o,i)+"</"+e+">":"<"+e+" "+s.HELMET_ATTRIBUTE+'="true">'+u(o,i)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case s.ATTRIBUTE_NAMES.BODY:case s.ATTRIBUTE_NAMES.HTML:return{toComponent:function(){return O(t)},toString:function(){return A(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var i,r=((i={key:n})[s.HELMET_ATTRIBUTE]=!0,i);return Object.keys(t).forEach((function(e){var n=s.REACT_TAG_MAP[e]||e;if(n===s.TAG_PROPERTIES.INNER_HTML||n===s.TAG_PROPERTIES.CSS_TEXT){var i=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:i}}else r[n]=t[e]})),o.default.createElement(e,r)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,i){var r=Object.keys(i).filter((function(e){return!(e===s.TAG_PROPERTIES.INNER_HTML||e===s.TAG_PROPERTIES.CSS_TEXT)})).reduce((function(e,t){var r=void 0===i[t]?t:t+'="'+u(i[t],n)+'"';return e?e+" "+r:r}),""),o=i.innerHTML||i.cssText||"",a=-1===s.SELF_CLOSING_TAGS.indexOf(e);return t+"<"+e+" "+s.HELMET_ATTRIBUTE+'="true" '+r+(a?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}};t.convertReactPropstoHtmlAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[s.HTML_TAG_MAP[n]||n]=e[n],t}),t)},t.handleClientStateChange=function(e){E&&T(E),e.defer?E=b((function(){M(e,(function(){E=null}))})):(M(e),E=null)},t.mapStateOnServer=function(e){var t=e.baseTag,n=e.bodyAttributes,i=e.encode,r=e.htmlAttributes,o=e.linkTags,a=e.metaTags,l=e.noscriptTags,c=e.scriptTags,u=e.styleTags,d=e.title,p=void 0===d?"":d,f=e.titleAttributes;return{base:L(s.TAG_NAMES.BASE,t,i),bodyAttributes:L(s.ATTRIBUTE_NAMES.BODY,n,i),htmlAttributes:L(s.ATTRIBUTE_NAMES.HTML,r,i),link:L(s.TAG_NAMES.LINK,o,i),meta:L(s.TAG_NAMES.META,a,i),noscript:L(s.TAG_NAMES.NOSCRIPT,l,i),script:L(s.TAG_NAMES.SCRIPT,c,i),style:L(s.TAG_NAMES.STYLE,u,i),title:L(s.TAG_NAMES.TITLE,{title:p,titleAttributes:f},i)}},t.reducePropsToState=function(e){return{baseTag:m([s.TAG_PROPERTIES.HREF],e),bodyAttributes:f(s.ATTRIBUTE_NAMES.BODY,e),defer:y(e,s.HELMET_PROPS.DEFER),encode:y(e,s.HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:f(s.ATTRIBUTE_NAMES.HTML,e),linkTags:h(s.TAG_NAMES.LINK,[s.TAG_PROPERTIES.REL,s.TAG_PROPERTIES.HREF],e),metaTags:h(s.TAG_NAMES.META,[s.TAG_PROPERTIES.NAME,s.TAG_PROPERTIES.CHARSET,s.TAG_PROPERTIES.HTTPEQUIV,s.TAG_PROPERTIES.PROPERTY,s.TAG_PROPERTIES.ITEM_PROP],e),noscriptTags:h(s.TAG_NAMES.NOSCRIPT,[s.TAG_PROPERTIES.INNER_HTML],e),onChangeClientState:p(e),scriptTags:h(s.TAG_NAMES.SCRIPT,[s.TAG_PROPERTIES.SRC,s.TAG_PROPERTIES.INNER_HTML],e),styleTags:h(s.TAG_NAMES.STYLE,[s.TAG_PROPERTIES.CSS_TEXT],e),title:d(e),titleAttributes:f(s.ATTRIBUTE_NAMES.TITLE,e)}},t.requestAnimationFrame=b,t.warn=v}).call(this,n("yLpj"))},vrFN:function(e,t,n){"use strict";var i=n("q1tI"),r=n.n(i),o=n("TJpk"),a=n.n(o),s=n("Wbzz");function l(e){let{description:t,lang:n,meta:i,keywords:o,title:l}=e;return r.a.createElement(s.StaticQuery,{query:c,render:e=>{const t="A Portfolio Site";return r.a.createElement(a.a,{htmlAttributes:{lang:n},title:l,titleTemplate:"%s | "+e.site.siteMetadata.title,meta:[{name:"description",content:t},{property:"og:title",content:l},{property:"og:description",content:t},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"twitter:creator",content:e.site.siteMetadata.author},{name:"twitter:title",content:l},{name:"twitter:description",content:t}].concat(o.length>0?{name:"keywords",content:o.join(", ")}:[]).concat(i)})}})}l.defaultProps={lang:"en",meta:[],keywords:[]},t.a=l;const c="3128451518"}}]);
//# sourceMappingURL=7a635b5fa824dc8842286efe84ee4d56fa528918-178aa8423e984015a4cc.js.map