UNPKG

@afiniti/video-player

Version:

React component for Afiniti's Video Learning Environment

6 lines 247 kB
import e,{createElement as t,Fragment as o,Component as i,PureComponent as r,useState as n,useEffect as l}from"react";import a from"prop-types";import d from"gsap";import s from"react-markdown";import _ from"react-dom";import c from"react-slick";function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t,o){return t&&m(e.prototype,t),o&&m(e,o),e}function h(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}function x(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t){if(null==e)return{};var o,i,r=function(e,t){if(null==e)return{};var o,i,r={},n=Object.keys(e);for(i=0;i<n.length;i++)o=n[i],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)o=n[i],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?y(e):t}function E(e){var t=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(e){return!1}}();return function(){var o,i=g(e);if(t){var r=g(this).constructor;o=Reflect.construct(i,arguments,r)}else o=i.apply(this,arguments);return b(this,o)}}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var o=[],i=!0,r=!1,n=void 0;try{for(var l,a=e[Symbol.iterator]();!(i=(l=a.next()).done)&&(o.push(l.value),!t||o.length!==t);i=!0);}catch(e){r=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(r)throw n}}return o}(e,t)||S(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 k(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||S(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){if(e){if("string"==typeof e)return A(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=new Array(t);o<t;o++)i[o]=e[o];return i}var O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function P(e,t,o){return e(o={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&o.path)}},o.exports),o.exports}function q(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var N=q(e),W=q((function(e,t,o,i){var r=o?o.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 n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),d=0;d<n.length;d++){var s=n[d];if(!a(s))return!1;var _=e[s],c=t[s];if(!1===(r=o?o.call(i,_,c,s):void 0)||void 0===r&&_!==c)return!1}return!0}));function M(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var I=!("undefined"==typeof window||!window.document||!window.document.createElement);var R=function(t,o,i){if("function"!=typeof t)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof o)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==i&&"function"!=typeof i)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 n,l=[];function a(){n=t(l.map((function(e){return e.props}))),d.canUseDOM?o(n):i&&(n=i(n))}var d=function(e){var t,o;function i(){return e.apply(this,arguments)||this}o=e,(t=i).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o,i.peek=function(){return n},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=n;return n=void 0,l=[],e};var d=i.prototype;return d.shouldComponentUpdate=function(e){return!W(e,this.props)},d.componentWillMount=function(){l.push(this),a()},d.componentDidUpdate=function(){a()},d.componentWillUnmount=function(){var e=l.indexOf(this);l.splice(e,1),a()},d.render=function(){return N.createElement(r,this.props)},i}(e.Component);return M(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),M(d,"canUseDOM",I),d}},z=Array.isArray,L=Object.keys,B=Object.prototype.hasOwnProperty,j="undefined"!=typeof Element;function F(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var o,i,r,n=z(e),l=z(t);if(n&&l){if((i=e.length)!=t.length)return!1;for(o=i;0!=o--;)if(!F(e[o],t[o]))return!1;return!0}if(n!=l)return!1;var a=e instanceof Date,d=t instanceof Date;if(a!=d)return!1;if(a&&d)return e.getTime()==t.getTime();var s=e instanceof RegExp,_=t instanceof RegExp;if(s!=_)return!1;if(s&&_)return e.toString()==t.toString();var c=L(e);if((i=c.length)!==L(t).length)return!1;for(o=i;0!=o--;)if(!B.call(t,c[o]))return!1;if(j&&e instanceof Element&&t instanceof Element)return e===t;for(o=i;0!=o--;)if(!("_owner"===(r=c[o])&&e.$$typeof||F(e[r],t[r])))return!1;return!0}return e!=e&&t!=t}var G=function(e,t){try{return F(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}},V=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable; /* object-assign (c) Sindre Sorhus @license MIT */function Y(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var U=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var o,i,r=Y(e),n=1;n<arguments.length;n++){for(var l in o=Object(arguments[n]))D.call(o,l)&&(r[l]=o[l]);if(V){i=V(o);for(var a=0;a<i.length;a++)H.call(o,i[a])&&(r[i[a]]=o[i[a]])}}return r},Q=P((function(e,t){t.__esModule=!0,t.ATTRIBUTE_NAMES={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"};var o=t.TAG_NAMES={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};t.VALID_TAG_NAMES=Object.keys(o).map((function(e){return o[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"};var i=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=[o.NOSCRIPT,o.SCRIPT,o.STYLE],t.HELMET_ATTRIBUTE="data-react-helmet"})),X=P((function(t,o){o.__esModule=!0,o.warn=o.requestAnimationFrame=o.reducePropsToState=o.mapStateOnServer=o.handleClientStateChange=o.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 o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},n=a(e),l=a(U);function a(e){return e&&e.__esModule?e:{default:e}}var d,s=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},_=function(e){var t=h(e,Q.TAG_NAMES.TITLE),o=h(e,Q.HELMET_PROPS.TITLE_TEMPLATE);if(o&&t)return o.replace(/%s/g,(function(){return t}));var i=h(e,Q.HELMET_PROPS.DEFAULT_TITLE);return t||i||void 0},c=function(e){return h(e,Q.HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||function(){}},u=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[Q.TAG_NAMES.BASE]})).map((function(e){return e[Q.TAG_NAMES.BASE]})).reverse().reduce((function(t,o){if(!t.length)for(var i=Object.keys(o),r=0;r<i.length;r++){var n=i[r].toLowerCase();if(-1!==e.indexOf(n)&&o[n])return t.concat(o)}return t}),[])},p=function(e,t,o){var r={};return o.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&w("Helmet: "+e+' should be of type "Array". Instead found type "'+i(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,o){var i={};o.filter((function(e){for(var o=void 0,n=Object.keys(e),l=0;l<n.length;l++){var a=n[l],d=a.toLowerCase();-1===t.indexOf(d)||o===Q.TAG_PROPERTIES.REL&&"canonical"===e[o].toLowerCase()||d===Q.TAG_PROPERTIES.REL&&"stylesheet"===e[d].toLowerCase()||(o=d),-1===t.indexOf(a)||a!==Q.TAG_PROPERTIES.INNER_HTML&&a!==Q.TAG_PROPERTIES.CSS_TEXT&&a!==Q.TAG_PROPERTIES.ITEM_PROP||(o=a)}if(!o||!e[o])return!1;var s=e[o].toLowerCase();return r[o]||(r[o]={}),i[o]||(i[o]={}),!r[o][s]&&(i[o][s]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var n=Object.keys(i),a=0;a<n.length;a++){var d=n[a],s=(0,l.default)({},r[d],i[d]);r[d]=s}return e}),[]).reverse()},h=function(e,t){for(var o=e.length-1;o>=0;o--){var i=e[o];if(i.hasOwnProperty(t))return i[t]}return null},f=(d=Date.now(),function(e){var t=Date.now();t-d>16?(d=t,e(t)):setTimeout((function(){f(e)}),0)}),x=function(e){return clearTimeout(e)},g="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||f:O.requestAnimationFrame||f,v="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||x:O.cancelAnimationFrame||x,w=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},y=null,b=function(e,t){var o=e.baseTag,i=e.bodyAttributes,r=e.htmlAttributes,n=e.linkTags,l=e.metaTags,a=e.noscriptTags,d=e.onChangeClientState,s=e.scriptTags,_=e.styleTags,c=e.title,u=e.titleAttributes;k(Q.TAG_NAMES.BODY,i),k(Q.TAG_NAMES.HTML,r),T(c,u);var m={baseTag:S(Q.TAG_NAMES.BASE,o),linkTags:S(Q.TAG_NAMES.LINK,n),metaTags:S(Q.TAG_NAMES.META,l),noscriptTags:S(Q.TAG_NAMES.NOSCRIPT,a),scriptTags:S(Q.TAG_NAMES.SCRIPT,s),styleTags:S(Q.TAG_NAMES.STYLE,_)},p={},h={};Object.keys(m).forEach((function(e){var t=m[e],o=t.newTags,i=t.oldTags;o.length&&(p[e]=o),i.length&&(h[e]=m[e].oldTags)})),t&&t(),d(e,p,h)},E=function(e){return Array.isArray(e)?e.join(""):e},T=function(e,t){void 0!==e&&document.title!==e&&(document.title=E(e)),k(Q.TAG_NAMES.TITLE,t)},k=function(e,t){var o=document.getElementsByTagName(e)[0];if(o){for(var i=o.getAttribute(Q.HELMET_ATTRIBUTE),r=i?i.split(","):[],n=[].concat(r),l=Object.keys(t),a=0;a<l.length;a++){var d=l[a],s=t[d]||"";o.getAttribute(d)!==s&&o.setAttribute(d,s),-1===r.indexOf(d)&&r.push(d);var _=n.indexOf(d);-1!==_&&n.splice(_,1)}for(var c=n.length-1;c>=0;c--)o.removeAttribute(n[c]);r.length===n.length?o.removeAttribute(Q.HELMET_ATTRIBUTE):o.getAttribute(Q.HELMET_ATTRIBUTE)!==l.join(",")&&o.setAttribute(Q.HELMET_ATTRIBUTE,l.join(","))}},S=function(e,t){var o=document.head||document.querySelector(Q.TAG_NAMES.HEAD),i=o.querySelectorAll(e+"["+Q.HELMET_ATTRIBUTE+"]"),r=Array.prototype.slice.call(i),n=[],l=void 0;return t&&t.length&&t.forEach((function(t){var o=document.createElement(e);for(var i in t)if(t.hasOwnProperty(i))if(i===Q.TAG_PROPERTIES.INNER_HTML)o.innerHTML=t.innerHTML;else if(i===Q.TAG_PROPERTIES.CSS_TEXT)o.styleSheet?o.styleSheet.cssText=t.cssText:o.appendChild(document.createTextNode(t.cssText));else{var a=void 0===t[i]?"":t[i];o.setAttribute(i,a)}o.setAttribute(Q.HELMET_ATTRIBUTE,"true"),r.some((function(e,t){return l=t,o.isEqualNode(e)}))?r.splice(l,1):n.push(o)})),r.forEach((function(e){return e.parentNode.removeChild(e)})),n.forEach((function(e){return o.appendChild(e)})),{oldTags:r,newTags:n}},A=function(e){return Object.keys(e).reduce((function(t,o){var i=void 0!==e[o]?o+'="'+e[o]+'"':""+o;return t?t+" "+i:i}),"")},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,o){return t[Q.REACT_TAG_MAP[o]||o]=e[o],t}),t)},P=function(e,t,o){switch(e){case Q.TAG_NAMES.TITLE:return{toComponent:function(){return e=t.title,o=t.titleAttributes,(i={key:e})[Q.HELMET_ATTRIBUTE]=!0,r=C(o,i),[n.default.createElement(Q.TAG_NAMES.TITLE,r,e)];var e,o,i,r},toString:function(){return function(e,t,o,i){var r=A(o),n=E(t);return r?"<"+e+" "+Q.HELMET_ATTRIBUTE+'="true" '+r+">"+s(n,i)+"</"+e+">":"<"+e+" "+Q.HELMET_ATTRIBUTE+'="true">'+s(n,i)+"</"+e+">"}(e,t.title,t.titleAttributes,o)}};case Q.ATTRIBUTE_NAMES.BODY:case Q.ATTRIBUTE_NAMES.HTML:return{toComponent:function(){return C(t)},toString:function(){return A(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,o){var i,r=((i={key:o})[Q.HELMET_ATTRIBUTE]=!0,i);return Object.keys(t).forEach((function(e){var o=Q.REACT_TAG_MAP[e]||e;if(o===Q.TAG_PROPERTIES.INNER_HTML||o===Q.TAG_PROPERTIES.CSS_TEXT){var i=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:i}}else r[o]=t[e]})),n.default.createElement(e,r)}))}(e,t)},toString:function(){return function(e,t,o){return t.reduce((function(t,i){var r=Object.keys(i).filter((function(e){return!(e===Q.TAG_PROPERTIES.INNER_HTML||e===Q.TAG_PROPERTIES.CSS_TEXT)})).reduce((function(e,t){var r=void 0===i[t]?t:t+'="'+s(i[t],o)+'"';return e?e+" "+r:r}),""),n=i.innerHTML||i.cssText||"",l=-1===Q.SELF_CLOSING_TAGS.indexOf(e);return t+"<"+e+" "+Q.HELMET_ATTRIBUTE+'="true" '+r+(l?"/>":">"+n+"</"+e+">")}),"")}(e,t,o)}}}};o.convertReactPropstoHtmlAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,o){return t[Q.HTML_TAG_MAP[o]||o]=e[o],t}),t)},o.handleClientStateChange=function(e){y&&v(y),e.defer?y=g((function(){b(e,(function(){y=null}))})):(b(e),y=null)},o.mapStateOnServer=function(e){var t=e.baseTag,o=e.bodyAttributes,i=e.encode,r=e.htmlAttributes,n=e.linkTags,l=e.metaTags,a=e.noscriptTags,d=e.scriptTags,s=e.styleTags,_=e.title,c=void 0===_?"":_,u=e.titleAttributes;return{base:P(Q.TAG_NAMES.BASE,t,i),bodyAttributes:P(Q.ATTRIBUTE_NAMES.BODY,o,i),htmlAttributes:P(Q.ATTRIBUTE_NAMES.HTML,r,i),link:P(Q.TAG_NAMES.LINK,n,i),meta:P(Q.TAG_NAMES.META,l,i),noscript:P(Q.TAG_NAMES.NOSCRIPT,a,i),script:P(Q.TAG_NAMES.SCRIPT,d,i),style:P(Q.TAG_NAMES.STYLE,s,i),title:P(Q.TAG_NAMES.TITLE,{title:c,titleAttributes:u},i)}},o.reducePropsToState=function(e){return{baseTag:m([Q.TAG_PROPERTIES.HREF],e),bodyAttributes:u(Q.ATTRIBUTE_NAMES.BODY,e),defer:h(e,Q.HELMET_PROPS.DEFER),encode:h(e,Q.HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:u(Q.ATTRIBUTE_NAMES.HTML,e),linkTags:p(Q.TAG_NAMES.LINK,[Q.TAG_PROPERTIES.REL,Q.TAG_PROPERTIES.HREF],e),metaTags:p(Q.TAG_NAMES.META,[Q.TAG_PROPERTIES.NAME,Q.TAG_PROPERTIES.CHARSET,Q.TAG_PROPERTIES.HTTPEQUIV,Q.TAG_PROPERTIES.PROPERTY,Q.TAG_PROPERTIES.ITEM_PROP],e),noscriptTags:p(Q.TAG_NAMES.NOSCRIPT,[Q.TAG_PROPERTIES.INNER_HTML],e),onChangeClientState:c(e),scriptTags:p(Q.TAG_NAMES.SCRIPT,[Q.TAG_PROPERTIES.SRC,Q.TAG_PROPERTIES.INNER_HTML],e),styleTags:p(Q.TAG_NAMES.STYLE,[Q.TAG_PROPERTIES.CSS_TEXT],e),title:_(e),titleAttributes:u(Q.ATTRIBUTE_NAMES.TITLE,e)}},o.requestAnimationFrame=g,o.warn=w})),J=P((function(t,o){o.__esModule=!0,o.Helmet=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},r=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),n=_(e),l=_(a),d=_(R),s=_(G);function _(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var o={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i]);return o}function u(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 p=function(e){var t,o;return o=t=function(t){function o(){return u(this,o),m(this,t.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)}(o,t),o.prototype.shouldComponentUpdate=function(e){return!(0,s.default)(this.props,e)},o.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Q.TAG_NAMES.SCRIPT:case Q.TAG_NAMES.NOSCRIPT:return{innerHTML:t};case Q.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.")},o.prototype.flattenArrayTypeChildren=function(e){var t,o=e.child,r=e.arrayTypeChildren,n=e.newChildProps,l=e.nestedChildren;return i({},r,((t={})[o.type]=[].concat(r[o.type]||[],[i({},n,this.mapNestedChildrenToProps(o,l))]),t))},o.prototype.mapObjectTypeChildren=function(e){var t,o,r=e.child,n=e.newProps,l=e.newChildProps,a=e.nestedChildren;switch(r.type){case Q.TAG_NAMES.TITLE:return i({},n,((t={})[r.type]=a,t.titleAttributes=i({},l),t));case Q.TAG_NAMES.BODY:return i({},n,{bodyAttributes:i({},l)});case Q.TAG_NAMES.HTML:return i({},n,{htmlAttributes:i({},l)})}return i({},n,((o={})[r.type]=i({},l),o))},o.prototype.mapArrayTypeChildrenToProps=function(e,t){var o=i({},t);return Object.keys(e).forEach((function(t){var r;o=i({},o,((r={})[t]=e[t],r))})),o},o.prototype.warnOnInvalidChildren=function(e,t){if("production"!==process.env.NODE_ENV){if(!Q.VALID_TAG_NAMES.some((function(t){return e.type===t})))return"function"==typeof e.type?(0,X.warn)("You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information."):(0,X.warn)("Only elements types "+Q.VALID_TAG_NAMES.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information.");if(t&&"string"!=typeof t&&(!Array.isArray(t)||t.some((function(e){return"string"!=typeof e}))))throw new Error("Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information.")}return!0},o.prototype.mapChildrenToProps=function(e,t){var o=this,i={};return n.default.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,n=r.children,l=c(r,["children"]),a=(0,X.convertReactPropstoHtmlAttributes)(l);switch(o.warnOnInvalidChildren(e,n),e.type){case Q.TAG_NAMES.LINK:case Q.TAG_NAMES.META:case Q.TAG_NAMES.NOSCRIPT:case Q.TAG_NAMES.SCRIPT:case Q.TAG_NAMES.STYLE:i=o.flattenArrayTypeChildren({child:e,arrayTypeChildren:i,newChildProps:a,nestedChildren:n});break;default:t=o.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:n})}}})),t=this.mapArrayTypeChildrenToProps(i,t)},o.prototype.render=function(){var t=this.props,o=t.children,r=c(t,["children"]),l=i({},r);return o&&(l=this.mapChildrenToProps(o,l)),n.default.createElement(e,l)},r(o,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),o}(n.default.Component),t.propTypes={base:l.default.object,bodyAttributes:l.default.object,children:l.default.oneOfType([l.default.arrayOf(l.default.node),l.default.node]),defaultTitle:l.default.string,defer:l.default.bool,encodeSpecialCharacters:l.default.bool,htmlAttributes:l.default.object,link:l.default.arrayOf(l.default.object),meta:l.default.arrayOf(l.default.object),noscript:l.default.arrayOf(l.default.object),onChangeClientState:l.default.func,script:l.default.arrayOf(l.default.object),style:l.default.arrayOf(l.default.object),title:l.default.string,titleAttributes:l.default.object,titleTemplate:l.default.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=(0,X.mapStateOnServer)({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},o}((0,d.default)(X.reducePropsToState,X.handleClientStateChange,X.mapStateOnServer)((function(){return null})));p.renderStatic=p.rewind,o.Helmet=p,o.default=p})),K="https://api-eu-central-1.graphcms.com/v2/cjy9rcfxp0m8601d2unozm6mt/master",Z=null,$=function(e){return fetch(Z,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e})}).then((function(e){return e.json()})).then((function(e){return{data:e.data}})).catch((function(){}))},ee=P((function(e,t){function o(e){try{return m.insertRule(e,m.cssRules.length)}catch(e){console.warn("react-reveal - animation failed")}}function i(){s||(t.globalHide=s=!0,window.removeEventListener("scroll",i,!0),o("."+r+" { opacity: 0; }"),window.removeEventListener("orientationchange",i,!0),window.document.removeEventListener("visibilitychange",i))}Object.defineProperty(t,"__esModule",{value:!0}),t.insertRule=o,t.cascade=function(e,t,o,i,r){var n=Math.log(i),l=(Math.log(r)-n)/(o-t);return Math.exp(n+l*(e-t))},t.animation=function(e){if(!m)return"";var t="@keyframes "+(p+c)+"{"+e+"}",o=u[e];return o?""+p+o:(m.insertRule(t,m.cssRules.length),u[e]=c,""+p+c++)},t.hideAll=i,t.default=function(e){var o=e.ssrFadeout;t.fadeOutEnabled=o};var r=t.namespace="react-reveal";t.defaults={duration:1e3,delay:0,count:1};var n=t.ssr=!0,l=t.observerMode=!1,a=t.raf=function(e){return window.setTimeout(e,66)},d=t.disableSsr=function(){return t.ssr=n=!1};t.fadeOutEnabled=!1,t.ssrFadeout=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t.fadeOutEnabled=e};var s=t.globalHide=!1;t.ie10=!1;var _=t.collapseend=void 0,c=1,u={},m=!1,p=r+"-"+Math.floor(1e15*Math.random())+"-";if("undefined"!=typeof window&&"nodejs"!==window.name&&window.document&&"undefined"!=typeof navigator){t.observerMode=l="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&/\{\s*\[native code\]\s*\}/.test(""+IntersectionObserver),t.raf=a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||a,t.ssr=n=window.document.querySelectorAll("div[data-reactroot]").length>0,-1!==navigator.appVersion.indexOf("MSIE 10")&&(t.ie10=!0),n&&"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=n=!1),n&&window.setTimeout(d,1500),l||(t.collapseend=_=document.createEvent("Event"),_.initEvent("collapseend",!0,!0));var h=document.createElement("style");document.head.appendChild(h),h.sheet&&h.sheet.cssRules&&h.sheet.insertRule&&(m=h.sheet,window.addEventListener("scroll",i,!0),window.addEventListener("orientationchange",i,!0),window.document.addEventListener("visibilitychange",i))}})),te=C(ee),oe=P((function(t,o){Object.defineProperty(o,"__esModule",{value:!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=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],i=!0,r=!1,n=void 0;try{for(var l,a=e[Symbol.iterator]();!(i=(l=a.next()).done)&&(o.push(l.value),!t||o.length!==t);i=!0);}catch(e){r=!0,n=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw n}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},l=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),d=function(e){return e&&e.__esModule?e:{default:e}}(e),s=(0,a.shape)({make:a.func,duration:a.number.isRequired,delay:a.number.isRequired,forever:a.bool,count:a.number.isRequired,style:a.object.isRequired,reverse:a.bool}),_={collapse:a.bool,collapseEl:a.element,cascade:a.bool,wait:a.number,force:a.bool,disabled:a.bool,appear:a.bool,enter:a.bool,exit:a.bool,fraction:a.number,refProp:a.string,innerRef:a.func,onReveal:a.func,unmountOnExit:a.bool,mountOnEnter:a.bool,inEffect:s.isRequired,outEffect:(0,a.oneOfType)([s,(0,a.oneOf)([!1])]).isRequired,ssrReveal:a.bool,collapseOnly:a.bool,ssrFadeout:a.bool},c={transitionGroup:a.object},u=function(e){function t(e,o){!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,o));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,ee.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),l(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?n({},this.state.collapse,{visibility:"hidden"}):null,style:{opacity:0}}),!ee.observerMode&&this.props.collapse&&window.document.dispatchEvent(ee.collapseend)))}},{key:"animationEnd",value:function(e,t,o){var i=this,r=o.forever,n=o.count,l=o.delay,a=o.duration;if(!r){this.animationEndTimeout=window.setTimeout((function(){i&&i.el&&(i.animationEndTimeout=void 0,e.call(i))}),l+(a+(t?a:0)*n))}}},{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,o){var i=o.duration+(t.cascade?o.duration:0),r=this.isOn?this.getDimensionValue():0,n=void 0,l=void 0;if(t.collapseOnly)n=o.duration/3,l=o.delay;else{var a=i>>2,d=a>>1;n=a,l=o.delay+(this.isOn?0:i-a-d),e.style.animationDuration=i-a+(this.isOn?d:-d)+"ms",e.style.animationDelay=o.delay+(this.isOn?a-d:0)+"ms"}return e.collapse={height:r,transition:"height "+n+"ms ease "+l+"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,o=e[t?"outEffect":"inEffect"],i="style"in o&&o.style.animationName||void 0,r=void 0;e.collapseOnly?r={hasAppeared:!0,hasExited:!1,style:{opacity:1}}:((e.outEffect||this.isOn)&&o.make&&(i=o.make),r={hasAppeared:!0,hasExited:!1,collapse:void 0,style:n({},o.style,{animationDuration:o.duration+"ms",animationDelay:o.delay+"ms",animationIterationCount:o.forever?"infinite":o.count,opacity:1,animationName:i}),className:o.className}),this.setState(e.collapse?this.collapse(r,e,o):r),t?(this.savedChild=d.default.cloneElement(this.getChild()),this.animationEnd(this.invisible,e.cascade,o)):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(),ee.ssr&&(0,ee.disableSsr)()}},{key:"handleObserve",value:function(e,t){r(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&&ee.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,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ee.globalHide||(0,ee.hideAll)(),this&&this.el&&(e||(e=this.props),ee.ssr&&(0,ee.disableSsr)(),this.isOn&&this.isShown&&void 0!==e.spy?(this.isShown=!1,this.setState({style:{}}),window.setTimeout((function(){return t.reveal(e)}),200)):o||this.inViewport(e)||e.force?this.animate(e):ee.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 o=this.context.transitionGroup,i=o&&!o.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||ee.ssr&&!ee.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)):ee.ssr&&(ee.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,o=void 0;o="string"==typeof e?e.split("").map((function(e,t){return d.default.createElement("span",{key:t,style:{display:"inline-block",whiteSpace:"pre"}},e)})):d.default.Children.toArray(e);var r=this.props[this.isOn||!this.props.outEffect?"inEffect":"outEffect"],l=r.duration,a=r.reverse,s=o.length,_=2*l;this.props.collapse&&(_=parseInt(this.state.style.animationDuration,10),l=_/2);var c=a?s:0;return o.map((function(e){return"object"===(void 0===e?"undefined":i(e))&&e?d.default.cloneElement(e,{style:n({},e.props.style,t.state.style,{animationDuration:Math.round((0,ee.cascade)(a?c--:c++,0,s,l,_))+"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"===i(this.props.children)){var e=d.default.Children.only(this.props.children);return"type"in e&&"string"==typeof e.type||"ref"!==this.props.refProp?e:d.default.createElement("div",null,e)}return d.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 o=!1,i=t.props,r=i.style,l=i.className,a=i.children,s=this.props.disabled?l:(this.props.outEffect?ee.namespace:"")+(this.state.className?" "+this.state.className:"")+(l?" "+l:"")||void 0,_=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&&a&&this.state.style.animationName?(o=this.cascade(a),_=n({},r,{opacity:1})):_=this.props.disabled?r:n({},r,this.state.style);var c=n({},this.props.props,function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}({className:s,style:_},this.props.refProp,this.saveRef)),u=d.default.cloneElement(t,c,e?o||a:void 0);return void 0!==this.props.collapse?this.props.collapseEl?d.default.cloneElement(this.props.collapseEl,{style:n({},this.props.collapseEl.style,this.props.disabled?void 0:this.state.collapse),children:u}):d.default.createElement("div",{style:this.props.disabled?void 0:this.state.collapse,children:u}):u}},{key:"makeHandler",value:function(e){var t=this,o=function(){e.call(t,t.props),t.ticking=!1};return function(){t.ticking||((0,ee.raf)(o),t.ticking=!0)}}},{key:"inViewport",value:function(e){if(!this.el||window.document.hidden)return!1;var o=this.el.offsetHeight,i=window.pageYOffset-t.getTop(this.el),r=Math.min(o,window.innerHeight)*(ee.globalHide?e.fraction:0);return i>r-window.innerHeight&&i<o-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(){ee.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(){!ee.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}(d.default.Component);u.propTypes=_,u.defaultProps={fraction:.2,refProp:"ref"},u.contextTypes=c,u.displayName="RevealBase",o.default=u,t.exports=o.default})),ie=P((function(t,o){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e};o.default=function(e,t,o,i){return"in"in e&&(e.when=e.in),n.default.Children.count(i)<2?n.default.createElement(l.default,r({},e,{inEffect:t,outEffect:o,children:i})):(i=n.default.Children.map(i,(function(i){return n.default.createElement(l.default,r({},e,{inEffect:t,outEffect:o,children:i}))})),"Fragment"in n.default?n.default.createElement(n.default.Fragment,null,i):n.default.createElement("span",null,i))};var n=i(e),l=i(oe);t.exports=o.default})),re=C(P((function(e,t){function o(e,t){var o={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i]);return o}function i(e,t){var o=t.distance,i=t.left,r=t.right,n=t.up,l=t.down,a=t.top,d=t.bottom,_=t.big,c=t.mirror,u=t.opposite,m=(o?o.toString():0)+((i?1:0)|(r?2:0)|(a||l?4:0)|(d||n?8:0)|(c?16:0)|(u?32:0)|(e?64:0)|(_?128:0));if(s.hasOwnProperty(m))return s[m];var p=i||r||n||l||a||d,h=void 0,f=void 0;if(p){if(!c!=!(e&&u)){var x=[r,i,d,a,l,n];i=x[0],r=x[1],a=x[2],d=x[3],n=x[4],l=x[5]}var g=o||(_?"2000px":"100%");h=i?"-"+g:r?g:"0",f=l||a?"-"+g:n||d?g:"0"}return s[m]=(0,ee.animation)((e?"to":"from")+" {opacity: 0;"+(p?" transform: translate3d("+h+", "+f+", 0);":"")+"}\n "+(e?"from":"to")+" {opacity: 1;transform: none;} "),s[m]}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ee.defaults,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.children,n=(e.out,e.forever),a=e.timeout,d=e.duration,s=void 0===d?ee.defaults.duration:d,_=e.delay,c=void 0===_?ee.defaults.delay:_,u=e.count,m=void 0===u?ee.defaults.count:u,p=o(e,["children","out","forever","timeout","duration","delay","count"]),h={make:i,duration:void 0===a?s:a,delay:c,forever:n,count:m,style:{animationFillMode:"both"},reverse:p.left};return t?(0,l.default)(p,h,h,r):h}Object.defineProperty(t,"__esModule",{value:!0});var n,l=(n=ie)&&n.__esModule?n:{default:n},d={out:a.bool,left:a.bool,right:a.bool,top:a.bool,bottom:a.bool,big:a.bool,mirror:a.bool,opposite:a.bool,duration:a.number,timeout:a.number,distance:a.string,delay:a.number,count:a.number,forever:a.bool},s={};r.propTypes=d,t.default=r,e.exports=t.default})));function ne(e,t){void 0===t&&(t={});var o=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===o&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}var le={videoBtn:"index-module_videoBtn__1i9XK"};function ae(){return(ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}ne(".index-module_videoBtn__1i9XK{display:flex;flex-direction:column}.index-module_videoBtn__1i9XK svg{left:1px}");var de=t("path",{d:"M38.25 0v357l280.5-178.5z",fill:"#fff"});function se(e){return t("svg",ae({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 357 357",width:357,height:357},e),de)}var _e=function(){return e.createElement(se,null)},ce=function(t){var o=t.title,i=t.type,r=t.description,n=t.slug,l=t.callback;return e.createElement("button",{type:"button",className:le.videoBtn,onClick:function(){return l(i,n)}},e.createElement("div",{className:"iconTitle"},e.createElement("span",{className:"icon"},e.createElement(_e,null)),e.createElement("h4",{className:le.title},o)),e.createElement("p",{className:le.videoDescription},r))};ce.propTypes={title:a.string.isRequired,type:a.string.isRequired,slug:a.string.isRequired,description:a.string.isRequired,callback:a.func.isRequired};var ue=function(e){var t=e.path,o=e.handle,i=e.resizeWidth,r=e.type,n=void 0===r?"":r,l=""===n?"":"/output=format:".concat(n);return"".concat(t,"/resize=w:").concat(i).concat(l,"/quality=value:80/compress/").concat(o)},me=function(e){var t,o,i=e.path,r=e.handle,n=e.width,l=e.breakpointWidths,a=e.hiDPIMultiplier,d=e.type,s=Math.round(n*a),_="".concat(ue({path:i,handle:r,resizeWidth:s,type:d})," ").concat(s,"w");return t=[n].concat(k(l)).sort((function(e,t){return t-e})).filter((function(e){return n>=e})).map((function(e){return"".concat(ue({path:i,handle:r,resizeWidth:s=e,type:d})," ").concat(e,"w")})),(o=[_].concat(k(t)),k(new Set(o))).join(",")},pe="index-module_picture__dh9m4",he="index-module_picture_objectFit__2aT80",fe="index-module_objectFitFallback__2p1x_";ne(".index-module_picture__dh9m4 img{width:100%;height:auto}.index-module_picture_objectFit__2aT80{width:100%;height:100%}.index-module_picture_objectFit__2aT80 img{width:100%;height:100%;object-fit:cover;max-width:none;object-position:50% 25%}.index-module_objectFitFallback__2p1x_{width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:50%}.index-module_objectFitPicture__3zTdc{top:0;left:0;width:100%;height:100%;position:absolute}");var xe=function(t){var i=t.width,r=t.breakpointWidths,n=t.alt,l=t.sizes,a=t.hiDPIMultiplier,d=t.path,s=t.className,_=t.handle,c=t.objectFitMode,u=me({path:d,handle:_,width:i,breakpointWidths:r,hiDPIMultiplier:a,type:"webp"}),m=me({path:d,handle:_,width:i,breakpointWidths:r,hiDPIMultiplier:a}),p=i,h=!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"img";if("undefined"!=typeof document){return void 0!==document.createElement(e).style.objectFit}return!0}()&&c;return e.createElement(o,null,!h&&e.createElement("picture",{className:"".concat(pe," \n ").concat(c?he:"","\n ").concat(s,"\n ")},e.createElement("source",{srcSet:u,sizes:l,type:"image/webp"}),e.createElement("source",{srcSet:m,sizes:l,type:"image/jpeg"}),e.createElement("img",{src:ue({path:d,handle:_,resizeWidth:p}),alt:n})),h&&e.createElement("div",{className:"\n ".concat(h?fe:"","\n ").concat(s,"\n "),style:{backgroundImage:"url(".concat(ue({path:d,handle:_,resizeWidth:p}),")")}}))};xe.propTypes={width:a.number,breakpointWidths:a.array,alt:a.string,sizes:a.string,hiDPIMultiplier:a.number,path:a.string,className:a.string,handle:a.string.isRequired,objectFitMode:a.bool},xe.defaultProps={width:1400,breakpointWidths:[320,640,1024],alt:"",sizes:"100vw",hiDPIMultiplier:1.5,path:"//media.graphassets.com",className:"",objectFitMode:!1};var ge="index-module_profileBtn__1cV4R",ve="index-module_profileIcon__1mfpd",we="index-module_introduction__5Mg1n",ye="index-module_icon__23N3U";function be(){return(be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}ne(".index-module_profileBtn__1cV4R .index-module_profileIcon__1mfpd{width:30px;height:30px;border-radius:50%;margin-right:10px;display:flex;justify-content:center;align-items:center;border:1px solid #fff}.index-module_profileBtn__1cV4R .index-module_profileIcon__1mfpd svg{width:12px;height:12px;position:relative;fill:#fff}.index-module_profileBtn__1cV4R{width:100%;display:flex;flex-wrap:wrap;align-items:center}.index-module_profileBtn__1cV4R .index-module_introduction__5Mg1n{display:flex;flex-direction:column;width:calc(100% - 72px)}.index-module_profileBtn__1cV4R .index-module_icon__23N3U{width:60px;height:60px;overflow:hidden;border-radius:50%;margin-right:12px}@media (max-width:767px){.index-module_profileBtn__1cV4R .index-module_introduction__5Mg1n{width:calc(100% - 57px)}.index-module_profileBtn__1cV4R .index-module_introduction__5Mg1n span{width:unset!important}.index-module_profileBtn__1cV4R .index-module_icon__23N3U{width:45px;height:45px}}");var Ee=t("path",{d:"M175 171.173c38.914 0 70.463-38.318 70.463-85.586C245.463 38.318 235.105 0 175 0s-70.465 38.318-70.465 85.587c0 47.268 31.549 85.586 70.465 85.586zM41.909 301.853c-.012-2.882-.024-.812 0 0zm266.176 2.251c.038-.789.013-5.474 0 0z"}),Te=t("path",{d:"M307.935 298.397c-1.305-82.342-12.059-105.805-94.352-120.657 0 0-11.584 14.761-38.584 14.761s-38.586-14.761-38.586-14.761C55.018 192.43 43.61 215.545 42.11 295.722c-.123 6.547-.18 6.891-.202 6.131.005 1.424.011 4.058.011 8.651 0 0 19.592 39.496 133.08 39.496 113.486 0 133.08-39.496 133.08-39.496 0-2.951.002-5.003.005-6.399-.022.47-.066-.441-.149-5.708z"});function ke(e){return t("svg",be({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 350 350"},e),Ee,Te)}var Se=function(){return e.createElement(ke,null)},Ae=function(t){var o=t.title,i=t.type,r=t.description,n=t.icon,l=t.slug,a=t.callback;return e.createElement("button",{type:"button",className:ge,onClick:function(){return a(i,l)}},n?e.createElement(xe,{className:ye,handle:n,width:60,alt:o,objectFitMode:!0,isLazy:!1}):e.createElement("span",{className:ve},e.createElement(Se,null)),e.createElement("div",{className:we},e.createElement("h4",null,o),e.createElement("span",null,r)))};Ae.propTypes={icon:a.string,type:a.string.isRequired,title:a.string.isRequired,slug:a.string.isRequired,description:a.string.isRequired,callback:a.func.isRequired},Ae.defaultProps={icon:""};var Oe={contentBtn:"index-module_contentBtn__2FN8k"};function Ce(){return(Ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}ne(".index-module_contentBtn__2FN8k{display:flex;flex-direction:column;flex-wrap:wrap;flex-direction:unset}");var Pe=t("path",{d:"M469.874 29.312H17.155C7.671 29.312 0 36.987 0 46.467v69.405c0 9.48 7.671 17.157 17.155 17.157h452.719c9.48 0 17.151-7.677 17.151-17.157V46.467c0-9.48-7.671-17.155-17.151-17.155zm0 162.344H17.155C7.671 191.656 0 199.329 0 208.809v69.407c0 9.482 7.671 17.155 17.155 17.155h452.719c9.48 0 17.151-7.673 17.151-17.155v-69.407c0-9.48-7.671-17.153-17.151-17.153zM226.357 353.998H17.155C7.671 353.998 0 361.672 0 371.151v69.407c0 9.482 7.671 17.155 17.155 17.155h209.202c9.484 0 17.155-7.673 17.155-17.155v-69.407c.001-9.479-7.67-17.153-17.155-17.153z"});function qe(e){return t("svg",Ce({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 487.025 487.025"},e),Pe)}function Ne(){return(Ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}var We=t("path",{d:"M12.912 6.343L10.284 8.97a3.715 3.715 0 01-5.255 0 3.712 3.712 0 01-.564-.749L5.686 7c.058-.059.13-.092.199-.132.084.289.231.562.458.789a1.86 1.86 0 002.627 0l2.628-2.627a1.86 1.86 0 000-2.628 1.86 1.86 0 00-2.628 0l-.934.935a4.662 4.662 0 00-2.37-.258l1.99-1.99a3.716 3.716 0 015.256 5.254zm-6.948 4.32l-.935.936a1.861 1.861 0 01-2.627 0 1.86 1.86 0 010-2.629l2.627-2.627a1.859 1.859 0 012.628 0c.226.227.374.5.459.788.069-.04.14-.073.197-.131l1.222-1.22a3.652 3.652 0 00-.565-.75 3.716 3.716 0 00-5.255 0L1.088 7.657a3.716 3.716 0 005.255 5.255l1.992-1.991a4.659 4.659 0 01-2.37-.258z",fill:"currentColor"});function Me(e){return t("svg",Ne({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},e),We)}function Ie(){return(Ie=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}var Re=t("path",{d:"M0 0v3h3V0zm4 0v1h4V0zm0 2v1h3V2zM0 4v3h3V4zm4 0v1h4V4zm0 2v1h3V6z"});function ze(e){return t("svg",Ie({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 8 7"},e),Re)}var Le=function(){return e.createElement(qe,null)},Be=function(){return e.createElement(Me,null)},je=function(){return e.createElement(ze,null)},Fe=function(t){var o,i,r=t.type,n=t.title,l=t.description,a=t.content,d=t.slug,s=t.href,