-
Notifications
You must be signed in to change notification settings - Fork 0
/
commons-c5627c1425c681447599.js
2 lines (2 loc) · 23.8 KB
/
commons-c5627c1425c681447599.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"8+s/":function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var a=n("q1tI"),o=r(a),i=r(n("Gytx"));function u(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(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var c,s=[];function T(){c=e(s.map((function(e){return e.props}))),f.canUseDOM?t(c):n&&(c=n(c))}var f=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.peek=function(){return c},a.rewind=function(){if(a.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,s=[],e};var u=a.prototype;return u.shouldComponentUpdate=function(e){return!i(e,this.props)},u.componentWillMount=function(){s.push(this),T()},u.componentDidUpdate=function(){T()},u.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),T()},u.render=function(){return o.createElement(r,this.props)},a}(a.Component);return u(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),u(f,"canUseDOM",l),f}}},Bl7J:function(e,t,n){"use strict";var r=n("q1tI"),a=n.n(r),o=n("Wbzz"),i=n("TJpk"),u=n("Eax7"),l=n.n(u),c=function(e){var t=e.d,n=e.size,r=void 0===n?"1em":n,o=e.label,i=e.style;return a.a.createElement("span",{className:l.a.root,style:i,role:"figure"},a.a.createElement("svg",{version:"1.1",width:r,height:r,viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:t,className:l.a.icon})),o&&a.a.createElement("span",{className:l.a.label},o))},s=n("WnXS"),T=n.n(s),f=function(e){var t=e.mainMenu,n=e.mainMenuItems,r=e.isMobileMenu,i=t.slice(0);return!r&&i.splice(n),i.map((function(e,t){return a.a.createElement("li",{key:t},a.a.createElement(o.Link,{to:e.path},e.title))}))},m=function(e){var t=e.mainMenu,n=e.mainMenuItems,r=e.onToggleSubMenu,i=t.slice(0);i.splice(0,n);var u=i.map((function(e,t){return a.a.createElement("li",{key:t},a.a.createElement(o.Link,{to:e.path},e.title))}));return a.a.createElement(a.a.Fragment,null,u,a.a.createElement("div",{className:T.a.subMenuOverlay,role:"button",tabIndex:0,onClick:r}))},E=function(e){var t=e.mainMenu,n=e.mainMenuItems,r=e.menuMoreText,o=e.isMobileMenuVisible,i=e.isSubMenuVisible,u=e.onToggleMobileMenu,l=e.onToggleSubMenu,s=e.onChangeTheme,E=!(n>=t.length)&&n>0;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:T.a.mobileMenuContainer},a.a.createElement(a.a.Fragment,null,o?a.a.createElement(a.a.Fragment,null,a.a.createElement("ul",{className:T.a.mobileMenu},a.a.createElement(f,{mainMenu:t,isMobileMenu:!0})),a.a.createElement("div",{onClick:u,className:T.a.mobileMenuOverlay})):null,a.a.createElement("button",{className:T.a.menuTrigger,style:{color:"inherit"},onClick:u,type:"button","aria-label":"Menu"},a.a.createElement(c,{style:{cursor:"pointer"},size:24,d:"M4 34H40V30H4V34ZM4 24H40V20H4V24ZM4 10V14H40V10H4Z"})))),a.a.createElement("div",{className:T.a.desktopMenuContainer},a.a.createElement("ul",{className:T.a.menu},a.a.createElement(f,{mainMenu:t,mainMenuItems:n}),E?a.a.createElement(a.a.Fragment,null,a.a.createElement("button",{className:T.a.subMenuTrigger,onClick:l,type:"button","aria-label":"Menu"},r||"Menu"," ",a.a.createElement("span",{className:T.a.menuArrow},">")),i?a.a.createElement("ul",{className:T.a.subMenu},a.a.createElement(m,{mainMenu:t,mainMenuItems:n,onToggleSubMenu:l})):null):null)),a.a.createElement("button",{className:T.a.themeToggle,onClick:s,type:"button","aria-label":"Theme toggle"},a.a.createElement(c,{style:{cursor:"pointer"},size:24,d:"M22 41C32.4934 41 41 32.4934 41 22C41 11.5066 32.4934 3 22\n3C11.5066 3 3 11.5066 3 22C3 32.4934 11.5066 41 22 41ZM7 22C7\n13.7157 13.7157 7 22 7V37C13.7157 37 7 30.2843 7 22Z"})))},d=n("OUhe"),p=n.n(d),A=function(e){var t=e.siteLogo,n=e.logoText,u=e.mainMenu,l=e.mainMenuItems,c=e.menuMoreText,s=e.defaultTheme,T="undefined"!=typeof window&&window.localStorage.getItem("theme")||null,f=Object(r.useState)(T),m=f[0],d=f[1],A=Object(r.useState)(!1),h=A[0],b=A[1],y=Object(r.useState)(!1),M=y[0],S=y[1];return a.a.createElement(a.a.Fragment,null,a.a.createElement(i.Helmet,null,a.a.createElement("body",{className:"light"===(m||s)?"light-theme":"dark-theme"})),a.a.createElement("header",{className:p.a.header},a.a.createElement("div",{className:p.a.inner},a.a.createElement(o.Link,{to:"/"},a.a.createElement("div",{className:p.a.logo},t.src?a.a.createElement("img",{src:t.src,alt:t.alt}):a.a.createElement(a.a.Fragment,null,a.a.createElement("span",{className:p.a.text},"// ",n)))),a.a.createElement("span",{className:p.a.right},a.a.createElement(E,{mainMenu:u,mainMenuItems:l,isMobileMenuVisible:h,isSubMenuVisible:M,menuMoreText:c,onToggleMobileMenu:function(){return b(!h)},onToggleSubMenu:function(){return S(!M)},onChangeTheme:function(){var e="light"===(m||s)?"dark":"light";d(e),"undefined"!=typeof window&&window.localStorage.setItem("theme",e)}})))))},h=n("RwA0"),b=n.n(h),y=function(e){var t=e.copyrights;return a.a.createElement("footer",{className:b.a.footer},t?a.a.createElement("div",{dangerouslySetInnerHTML:{__html:t}}):a.a.createElement(a.a.Fragment,null,a.a.createElement("span",{className:b.a.footerCopyrights},"© 2019 Raphael Odini"),a.a.createElement("span",{className:b.a.footerCopyrights},a.a.createElement(o.Link,{to:"/sitemap"},"Sitemap"))))};n("wmEu"),t.a=function(e){var t=e.children,n=Object(o.useStaticQuery)("1425477374").site.siteMetadata,r=n.title,i=n.logo,u=n.logoText,l=n.defaultTheme,c=n.mainMenu,s=n.showMenuItems,T=n.menuMoreText,f=n.copyrights;return a.a.createElement("div",{className:"container"},a.a.createElement(A,{siteTitle:r,siteLogo:i,logoText:u,defaultTheme:l,mainMenu:c,mainMenuItems:s,menuMoreText:T}),a.a.createElement("div",{className:"content"},a.a.createElement("div",null,t)),a.a.createElement(y,{copyrights:f}))}},Eax7:function(e,t,n){e.exports={root:"icon-module--root--aZeph",icon:"icon-module--icon--1ihz7",label:"icon-module--label--fHC-f"}},Gytx:function(e,t){e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!u(c))return!1;var s=e[c],T=t[c];if(!1===(a=n?n.call(r,s,T,c):void 0)||void 0===a&&s!==T)return!1}return!0}},OUhe:function(e,t,n){e.exports={header:"header-module--header--tFeG9",inner:"header-module--inner--7ao1M",logo:"header-module--logo--2kX-3",mark:"header-module--mark--J6C0c",cursor:"header-module--cursor--33Aoa",text:"header-module--text--3UAQj",right:"header-module--right--1Zeb6"}},RwA0:function(e,t,n){e.exports={footer:"footer-module--footer--cs6wc",footerCopyrights:"footer-module--footerCopyrights--1sanr"}},TJpk:function(e,t,n){t.__esModule=!0,t.Helmet=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=T(n("q1tI")),i=T(n("17x9")),u=T(n("8+s/")),l=T(n("bmMU")),c=n("v1p5"),s=n("hFT/");function T(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(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 d,p,A,h=(0,u.default)(c.reducePropsToState,c.handleClientStateChange,c.mapStateOnServer)((function(){return null})),b=(d=h,A=p=function(e){function t(){return m(this,t),E(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 s.TAG_NAMES.SCRIPT:case s.TAG_NAMES.NOSCRIPT:return{innerHTML:t};case s.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,a=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return r({},a,((t={})[n.type]=[].concat(a[n.type]||[],[r({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,a=e.child,o=e.newProps,i=e.newChildProps,u=e.nestedChildren;switch(a.type){case s.TAG_NAMES.TITLE:return r({},o,((t={})[a.type]=u,t.titleAttributes=r({},i),t));case s.TAG_NAMES.BODY:return r({},o,{bodyAttributes:r({},i)});case s.TAG_NAMES.HTML:return r({},o,{htmlAttributes:r({},i)})}return r({},o,((n={})[a.type]=r({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=r({},t);return Object.keys(e).forEach((function(t){var a;n=r({},n,((a={})[t]=e[t],a))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return o.default.Children.forEach(e,(function(e){if(e&&e.props){var a=e.props,o=a.children,i=f(a,["children"]),u=(0,c.convertReactPropstoHtmlAttributes)(i);switch(n.warnOnInvalidChildren(e,o),e.type){case s.TAG_NAMES.LINK:case s.TAG_NAMES.META:case s.TAG_NAMES.NOSCRIPT:case s.TAG_NAMES.SCRIPT:case s.TAG_NAMES.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:u,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:u,nestedChildren:o})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=f(e,["children"]),a=r({},n);return t&&(a=this.mapChildrenToProps(t,a)),o.default.createElement(d,a)},a(t,null,[{key:"canUseDOM",set:function(e){d.canUseDOM=e}}]),t}(o.default.Component),p.propTypes={base:i.default.object,bodyAttributes:i.default.object,children:i.default.oneOfType([i.default.arrayOf(i.default.node),i.default.node]),defaultTitle:i.default.string,defer:i.default.bool,encodeSpecialCharacters:i.default.bool,htmlAttributes:i.default.object,link:i.default.arrayOf(i.default.object),meta:i.default.arrayOf(i.default.object),noscript:i.default.arrayOf(i.default.object),onChangeClientState:i.default.func,script:i.default.arrayOf(i.default.object),style:i.default.arrayOf(i.default.object),title:i.default.string,titleAttributes:i.default.object,titleTemplate:i.default.string},p.defaultProps={defer:!0,encodeSpecialCharacters:!0},p.peek=d.peek,p.rewind=function(){var e=d.rewind();return e||(e=(0,c.mapStateOnServer)({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},A);b.renderStatic=b.rewind,t.Helmet=b,t.default=b},WnXS:function(e,t,n){e.exports={mobileMenuContainer:"menu-module--mobileMenuContainer--T9wTN",desktopMenuContainer:"menu-module--desktopMenuContainer--3iXKR",menu:"menu-module--menu--dd4-Y",menuTrigger:"menu-module--menuTrigger--32seM",mobileMenu:"menu-module--mobileMenu--2VGmR",mobileMenuOverlay:"menu-module--mobileMenuOverlay--2RcSs",themeToggle:"menu-module--themeToggle--2E8ye",subMenuTrigger:"menu-module--subMenuTrigger--1crdm",subMenu:"menu-module--subMenu--3Rgj_",subMenuOverlay:"menu-module--subMenuOverlay--3TQRy",menuArrow:"menu-module--menuArrow--1COMf"}},bmMU:function(e,t,n){"use strict";var r=Array.isArray,a=Object.keys,o=Object.prototype.hasOwnProperty,i="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 u,l,c,s=r(t),T=r(n);if(s&&T){if((l=t.length)!=n.length)return!1;for(u=l;0!=u--;)if(!e(t[u],n[u]))return!1;return!0}if(s!=T)return!1;var f=t instanceof Date,m=n instanceof Date;if(f!=m)return!1;if(f&&m)return t.getTime()==n.getTime();var E=t instanceof RegExp,d=n instanceof RegExp;if(E!=d)return!1;if(E&&d)return t.toString()==n.toString();var p=a(t);if((l=p.length)!==a(n).length)return!1;for(u=l;0!=u--;)if(!o.call(n,p[u]))return!1;if(i&&t instanceof Element&&n instanceof Element)return t===n;for(u=l;0!=u--;)if(!("_owner"===(c=p[u])&&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}}},"hFT/":function(e,t,n){n("E9XD"),t.__esModule=!0;t.ATTRIBUTE_NAMES={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"};var r=t.TAG_NAMES={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},a=(t.VALID_TAG_NAMES=Object.keys(r).map((function(e){return r[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(a).reduce((function(e,t){return e[a[t]]=t,e}),{}),t.SELF_CLOSING_TAGS=[r.NOSCRIPT,r.SCRIPT,r.STYLE],t.HELMET_ATTRIBUTE="data-react-helmet"},v1p5:function(e,t,n){(function(e){n("E9XD"),t.__esModule=!0,t.warn=t.requestAnimationFrame=t.reducePropsToState=t.mapStateOnServer=t.handleClientStateChange=t.convertReactPropstoHtmlAttributes=void 0;var 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},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=l(n("q1tI")),i=l(n("YVoz")),u=n("hFT/");function l(e){return e&&e.__esModule?e:{default:e}}var c,s=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,"'")},T=function(e){var t=p(e,u.TAG_NAMES.TITLE),n=p(e,u.HELMET_PROPS.TITLE_TEMPLATE);if(n&&t)return n.replace(/%s/g,(function(){return t}));var r=p(e,u.HELMET_PROPS.DEFAULT_TITLE);return t||r||void 0},f=function(e){return p(e,u.HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||function(){}},m=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return a({},e,t)}),{})},E=function(e,t){return t.filter((function(e){return void 0!==e[u.TAG_NAMES.BASE]})).map((function(e){return e[u.TAG_NAMES.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a<r.length;a++){var o=r[a].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},d=function(e,t,n){var a={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&M("Helmet: "+e+' should be of type "Array". Instead found type "'+r(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var r={};n.filter((function(e){for(var n=void 0,o=Object.keys(e),i=0;i<o.length;i++){var l=o[i],c=l.toLowerCase();-1===t.indexOf(c)||n===u.TAG_PROPERTIES.REL&&"canonical"===e[n].toLowerCase()||c===u.TAG_PROPERTIES.REL&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(l)||l!==u.TAG_PROPERTIES.INNER_HTML&&l!==u.TAG_PROPERTIES.CSS_TEXT&&l!==u.TAG_PROPERTIES.ITEM_PROP||(n=l)}if(!n||!e[n])return!1;var s=e[n].toLowerCase();return a[n]||(a[n]={}),r[n]||(r[n]={}),!a[n][s]&&(r[n][s]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(r),l=0;l<o.length;l++){var c=o[l],s=(0,i.default)({},a[c],r[c]);a[c]=s}return e}),[]).reverse()},p=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},A=(c=Date.now(),function(e){var t=Date.now();t-c>16?(c=t,e(t)):setTimeout((function(){A(e)}),0)}),h=function(e){return clearTimeout(e)},b="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||A:e.requestAnimationFrame||A,y="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||h:e.cancelAnimationFrame||h,M=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},S=null,g=function(e,t){var n=e.baseTag,r=e.bodyAttributes,a=e.htmlAttributes,o=e.linkTags,i=e.metaTags,l=e.noscriptTags,c=e.onChangeClientState,s=e.scriptTags,T=e.styleTags,f=e.title,m=e.titleAttributes;R(u.TAG_NAMES.BODY,r),R(u.TAG_NAMES.HTML,a),_(f,m);var E={baseTag:O(u.TAG_NAMES.BASE,n),linkTags:O(u.TAG_NAMES.LINK,o),metaTags:O(u.TAG_NAMES.META,i),noscriptTags:O(u.TAG_NAMES.NOSCRIPT,l),scriptTags:O(u.TAG_NAMES.SCRIPT,s),styleTags:O(u.TAG_NAMES.STYLE,T)},d={},p={};Object.keys(E).forEach((function(e){var t=E[e],n=t.newTags,r=t.oldTags;n.length&&(d[e]=n),r.length&&(p[e]=E[e].oldTags)})),t&&t(),c(e,d,p)},v=function(e){return Array.isArray(e)?e.join(""):e},_=function(e,t){void 0!==e&&document.title!==e&&(document.title=v(e)),R(u.TAG_NAMES.TITLE,t)},R=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(u.HELMET_ATTRIBUTE),a=r?r.split(","):[],o=[].concat(a),i=Object.keys(t),l=0;l<i.length;l++){var c=i[l],s=t[c]||"";n.getAttribute(c)!==s&&n.setAttribute(c,s),-1===a.indexOf(c)&&a.push(c);var T=o.indexOf(c);-1!==T&&o.splice(T,1)}for(var f=o.length-1;f>=0;f--)n.removeAttribute(o[f]);a.length===o.length?n.removeAttribute(u.HELMET_ATTRIBUTE):n.getAttribute(u.HELMET_ATTRIBUTE)!==i.join(",")&&n.setAttribute(u.HELMET_ATTRIBUTE,i.join(","))}},O=function(e,t){var n=document.head||document.querySelector(u.TAG_NAMES.HEAD),r=n.querySelectorAll(e+"["+u.HELMET_ATTRIBUTE+"]"),a=Array.prototype.slice.call(r),o=[],i=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===u.TAG_PROPERTIES.INNER_HTML)n.innerHTML=t.innerHTML;else if(r===u.TAG_PROPERTIES.CSS_TEXT)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var l=void 0===t[r]?"":t[r];n.setAttribute(r,l)}n.setAttribute(u.HELMET_ATTRIBUTE,"true"),a.some((function(e,t){return i=t,n.isEqualNode(e)}))?a.splice(i,1):o.push(n)})),a.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return n.appendChild(e)})),{oldTags:a,newTags:o}},C=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[u.REACT_TAG_MAP[n]||n]=e[n],t}),t)},w=function(e,t,n){switch(e){case u.TAG_NAMES.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[u.HELMET_ATTRIBUTE]=!0,a=P(n,r),[o.default.createElement(u.TAG_NAMES.TITLE,a,e)];var e,n,r,a},toString:function(){return function(e,t,n,r){var a=C(n),o=v(t);return a?"<"+e+" "+u.HELMET_ATTRIBUTE+'="true" '+a+">"+s(o,r)+"</"+e+">":"<"+e+" "+u.HELMET_ATTRIBUTE+'="true">'+s(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case u.ATTRIBUTE_NAMES.BODY:case u.ATTRIBUTE_NAMES.HTML:return{toComponent:function(){return P(t)},toString:function(){return C(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,a=((r={key:n})[u.HELMET_ATTRIBUTE]=!0,r);return Object.keys(t).forEach((function(e){var n=u.REACT_TAG_MAP[e]||e;if(n===u.TAG_PROPERTIES.INNER_HTML||n===u.TAG_PROPERTIES.CSS_TEXT){var r=t.innerHTML||t.cssText;a.dangerouslySetInnerHTML={__html:r}}else a[n]=t[e]})),o.default.createElement(e,a)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!(e===u.TAG_PROPERTIES.INNER_HTML||e===u.TAG_PROPERTIES.CSS_TEXT)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+s(r[t],n)+'"';return e?e+" "+a:a}),""),o=r.innerHTML||r.cssText||"",i=-1===u.SELF_CLOSING_TAGS.indexOf(e);return t+"<"+e+" "+u.HELMET_ATTRIBUTE+'="true" '+a+(i?"/>":">"+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[u.HTML_TAG_MAP[n]||n]=e[n],t}),t)},t.handleClientStateChange=function(e){S&&y(S),e.defer?S=b((function(){g(e,(function(){S=null}))})):(g(e),S=null)},t.mapStateOnServer=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,o=e.linkTags,i=e.metaTags,l=e.noscriptTags,c=e.scriptTags,s=e.styleTags,T=e.title,f=void 0===T?"":T,m=e.titleAttributes;return{base:w(u.TAG_NAMES.BASE,t,r),bodyAttributes:w(u.ATTRIBUTE_NAMES.BODY,n,r),htmlAttributes:w(u.ATTRIBUTE_NAMES.HTML,a,r),link:w(u.TAG_NAMES.LINK,o,r),meta:w(u.TAG_NAMES.META,i,r),noscript:w(u.TAG_NAMES.NOSCRIPT,l,r),script:w(u.TAG_NAMES.SCRIPT,c,r),style:w(u.TAG_NAMES.STYLE,s,r),title:w(u.TAG_NAMES.TITLE,{title:f,titleAttributes:m},r)}},t.reducePropsToState=function(e){return{baseTag:E([u.TAG_PROPERTIES.HREF],e),bodyAttributes:m(u.ATTRIBUTE_NAMES.BODY,e),defer:p(e,u.HELMET_PROPS.DEFER),encode:p(e,u.HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:m(u.ATTRIBUTE_NAMES.HTML,e),linkTags:d(u.TAG_NAMES.LINK,[u.TAG_PROPERTIES.REL,u.TAG_PROPERTIES.HREF],e),metaTags:d(u.TAG_NAMES.META,[u.TAG_PROPERTIES.NAME,u.TAG_PROPERTIES.CHARSET,u.TAG_PROPERTIES.HTTPEQUIV,u.TAG_PROPERTIES.PROPERTY,u.TAG_PROPERTIES.ITEM_PROP],e),noscriptTags:d(u.TAG_NAMES.NOSCRIPT,[u.TAG_PROPERTIES.INNER_HTML],e),onChangeClientState:f(e),scriptTags:d(u.TAG_NAMES.SCRIPT,[u.TAG_PROPERTIES.SRC,u.TAG_PROPERTIES.INNER_HTML],e),styleTags:d(u.TAG_NAMES.STYLE,[u.TAG_PROPERTIES.CSS_TEXT],e),title:T(e),titleAttributes:m(u.ATTRIBUTE_NAMES.TITLE,e)}},t.requestAnimationFrame=b,t.warn=M}).call(this,n("yLpj"))},vrFN:function(e,t,n){"use strict";var r=n("q1tI"),a=n.n(r),o=n("TJpk"),i=n.n(o),u=n("Wbzz"),l=function(e){var t=e.description,n=e.lang,r=e.meta,o=e.keywords,l=e.title,c=Object(u.useStaticQuery)("3128451518").site.siteMetadata,s=c.title,T=c.description,f=c.author,m=l||s,E=t||T;return a.a.createElement(i.a,{htmlAttributes:{lang:n},title:m,titleTemplate:l?l+" :: "+s:s,meta:[{name:"description",content:E},{property:"og:title",content:m},{property:"og:description",content:E},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"twitter:title",content:m},{name:"twitter:description",content:E},{name:"twitter:creator",content:f}].concat(o.length>0?{name:"keywords",content:o.join(", ")}:[]).concat(r)})};l.defaultProps={lang:"en",meta:[],keywords:["gatsby","blog","dark","light","personal site"]},t.a=l},wmEu:function(e,t,n){}}]);
//# sourceMappingURL=commons-c5627c1425c681447599.js.map